.prod-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0}.prod-toolbar input{max-width:280px}.prod-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.prod-stat{background:white;border:1px solid #e2e8f0;border-radius:10px;padding:16px}.prod-stat strong{display:block;font-size:26px;color:#174a43;margin-top:8px}.prod-table{min-width:950px}.prod-table th,.prod-table td{text-align:center;vertical-align:middle}.prod-table td{white-space:normal;max-width:260px}.prod-table .prod-actions{justify-content:center;align-items:center}.prod-table button,.prod-table .prod-sub{text-align:center}.prod-sub{font-size:12px;color:#667085;margin-top:5px;line-height:1.6}.prod-actions{display:flex;gap:8px;flex-wrap:wrap}.prod-machine.active{background:#174a43;color:white}.prod-dialog{border:1px solid #dce3e8;border-radius:14px;padding:0;width:min(940px,94vw);max-height:90vh;color:#1e293b}.prod-dialog::backdrop{background:#142a3d80}.prod-dialog form{display:flex;flex-direction:column;max-height:88vh}.prod-dialog header,.prod-dialog footer{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:12px;flex-shrink:0}.prod-dialog header{border-bottom:1px solid #e2e8f0}.prod-dialog h3{margin:0}.prod-dialog footer{border-top:1px solid #e2e8f0;background:white}.prod-body{padding:20px 22px;overflow:auto}.prod-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.prod-field{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}.prod-field input,.prod-field select,.prod-field textarea,.prod-toolbar input,.prod-toolbar select{padding:9px;border:1px solid #cbd5e1;border-radius:6px;width:100%;box-sizing:border-box;min-width:0;background:white;font:inherit}.prod-field textarea{min-height:65px}.prod-wide{grid-column:1/-1}.prod-note{padding:12px;background:#f2f7f6;color:#365b52;border-radius:7px;line-height:1.7;margin-bottom:16px}.prod-error{color:#b42318;white-space:pre-wrap;line-height:1.6}.prod-stage{padding:14px;background:#f7f9fb;border:1px solid #e2e8f0;border-radius:8px;margin:12px 0}.prod-task-row{display:grid;grid-template-columns:1fr 1fr 1.4fr .8fr auto;gap:8px;margin-top:12px;align-items:end}.prod-dies{max-height:240px;overflow:auto;margin:12px 0}.prod-die{display:block;width:100%;background:#fff;border:1px solid #d8e1e5;text-align:left;padding:12px;margin-bottom:6px;line-height:1.6;border-radius:6px}.prod-die:disabled{opacity:.55}.prod-empty{padding:45px;text-align:center;color:#667085}.prod-history summary{cursor:pointer;font-weight:600;padding:14px}.prod-selected{border:1px solid #86b7a9;background:#f0faf5;padding:10px;margin:10px 0}.prod-checklist{max-height:410px;overflow:auto}.prod-checklist td{padding:8px}.prod-checklist select{max-width:110px}.prod-dialog button{cursor:pointer}.prod-dialog button:disabled{cursor:default}.prod-badge{display:inline-block;padding:3px 8px;border-radius:5px;background:#eef3f7;font-size:12px}.prod-badge.warn{background:#fff0d8;color:#8c4e08}@media(max-width:700px){.prod-stats{grid-template-columns:repeat(2,1fr)}.prod-grid{grid-template-columns:1fr 1fr}.prod-task-row{grid-template-columns:1fr 1fr}.prod-body{padding:14px}.prod-dialog header,.prod-dialog footer{padding:14px}.prod-dialog footer{flex-wrap:wrap}.prod-toolbar{align-items:stretch}.prod-dialog{width:96vw}.prod-stat{padding:12px}}

.prod-die-table{width:100%;min-width:1050px;border-collapse:collapse;font-size:13px}.prod-die-table th,.prod-die-table td{text-align:center;vertical-align:middle;padding:10px 8px;border:1px solid #e5e7eb;white-space:normal;overflow-wrap:anywhere}.prod-die-table th{position:sticky;top:0;background:#f5f5f4;font-weight:500;z-index:1}.prod-die-table th:nth-child(2),.prod-die-table td:nth-child(2){min-width:150px}.prod-die-table th:nth-child(3),.prod-die-table td:nth-child(3){min-width:120px}.prod-die-table td:last-child{white-space:nowrap}.prod-die-table tbody tr:hover{background:#f0faf7}

.prod-die-table tbody tr[aria-disabled="false"]{cursor:pointer}.prod-die-table tbody tr:focus-visible{outline:2px solid #10b9a5;outline-offset:-2px;background:#f0faf7}.prod-die-table tbody tr[aria-disabled="true"]{opacity:.5;cursor:not-allowed}

.work-order-filters{margin:16px 0}.work-order-filters .prod-toolbar{margin:0;padding:16px}.work-order-filters .prod-query{flex:1 1 260px}.work-order-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.work-order-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.work-order-summary>div{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid #e2e8f0;border-radius:8px;background:#f8faf9}.work-order-summary span{font-size:12px;color:#667085}.work-order-summary small{color:#667085}.work-order-detail-actions{justify-content:flex-end;margin-top:18px}@media(max-width:900px){.work-order-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.work-order-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.work-order-summary{grid-template-columns:1fr}}
.work-order-export-dialog{width:min(680px,94vw)}.work-order-export-dialog .prod-body{padding-bottom:16px}.work-order-export-dialog .prod-form-section{padding:16px;margin-bottom:14px}.work-order-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-order-export-dialog footer .prod-error{margin-right:auto}.work-order-export-dialog footer [data-reset-export]{margin-left:auto}.work-order-export-dialog footer [type="submit"]{margin-left:0}@media(max-width:700px){.work-order-export-grid{grid-template-columns:1fr}.work-order-export-dialog footer [data-reset-export]{margin-left:auto}}

body .prod-dialog.prod-closure-dialog{width:min(620px,94vw)}
.prod-dialog [data-route-review][hidden],.prod-dialog [data-material-coverage][hidden],.planner-editor [data-route-review][hidden],.planner-editor [data-material-coverage][hidden]{display:none!important}
[data-route-review]{margin-top:16px;display:grid;gap:12px}
[data-route-review] .prod-field>span{display:flex;align-items:center;gap:8px}
[data-route-review] input[type="checkbox"]{width:auto;min-height:0;flex:0 0 auto;margin:0}
body .prod-dialog.production-overview-dialog{width:min(1400px,96vw)}
.work-order-product-panel .table-wrap{overflow-x:auto}
.work-order-product-table{min-width:0;width:100%;table-layout:fixed;font-size:12px}
.work-order-col-source{width:15%}.work-order-col-product{width:16%}.work-order-col-order-summary{width:11%}.work-order-col-date{width:9%}.work-order-col-teeth{width:4%}.work-order-col-planned-dates{width:8%}.work-order-col-machines{width:13%}.work-order-col-progress{width:8%}.work-order-col-actions{width:16%}
.work-order-product-table th,.work-order-product-table td{text-align:center;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;max-width:none}
.work-order-product-table>tbody>tr>td[data-summary-field="product"]{white-space:normal}
.work-order-product-table .work-order-column-label{display:inline-block;white-space:nowrap}
.work-order-product-table>thead>tr>th,.work-order-product-table>tbody>tr>td{padding:8px 6px;font-size:inherit}
.work-order-product-table>tbody[data-summary-line]{--work-order-group-bg:#fff}
.work-order-product-table>tbody[data-summary-line]:nth-of-type(even){--work-order-group-bg:#f4f8f7}
.work-order-product-table>tbody[data-summary-line]>tr>td{padding:6px 6px;white-space:normal;background:var(--work-order-group-bg)}
.work-order-product-table>tbody[data-summary-line]+tbody>tr:first-child>td{border-top:2px solid #dce6e4}
.work-order-product-table>tbody[data-summary-line]>tr.work-order-inline-batch-start:not(:first-child)>td,.work-order-product-table>tbody[data-summary-line]>tr.work-order-product-summary-row>td{border-top:1px solid #dce6e4}
.work-order-product-table [data-summary-field="orderDate"],.work-order-product-table>tbody[data-summary-line]>tr>td[data-summary-field="dueDate"]{white-space:nowrap;overflow-wrap:normal}
.work-order-product-table .link-button{white-space:normal;overflow-wrap:anywhere;text-align:center;max-width:100%}
.work-order-product-table .work-order-source-link{display:block;width:100%;font-size:inherit;font-weight:600;color:#1e293b;padding:0}
.work-order-product-table [data-summary-field="product"]>strong,.work-order-product-table [data-summary-field="source"]>.prod-sub,.work-order-product-table [data-summary-field="product"]>.prod-sub,.work-order-product-table [data-summary-field="orderSummary"]>strong,.work-order-product-table [data-summary-field="orderSummary"]>.prod-sub{font-size:inherit}
.work-order-product-table .prod-actions{justify-content:center;align-items:center;gap:4px}
.work-order-product-table .prod-sub{margin-top:2px;line-height:1.35}
.work-order-product-table .prod-actions>.button{font-size:inherit;padding:6px 8px;max-width:100%;white-space:normal}
.work-order-product-table .badge{font-size:inherit;padding:3px 6px;max-width:100%;box-sizing:border-box}
.work-order-route-date{display:inline-block;white-space:nowrap}
.work-order-inline-stage,.work-order-inline-machine,.work-order-inline-restriction,.work-order-product-totals>*{font-size:inherit;text-align:center}
.work-order-inline-stage,.work-order-inline-machine{display:block;line-height:1.5}
.work-order-inline-stage{font-weight:500}
.work-order-inline-restriction{color:#93600b;line-height:1.35;margin-top:2px}
.work-order-product-totals{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px 8px}
.work-order-product-totals>.prod-sub{margin:0}
.work-order-summary-help{margin-bottom:12px}.work-order-product-stats .prod-stat>span{font-size:13px}
.work-order-product-stats{gap:8px;margin:10px 0}
.work-order-product-stats .prod-stat{padding:8px 10px}
.work-order-product-stats .prod-stat strong{margin-top:2px}
.work-order-filters{margin:10px 0}
.work-order-filters .prod-toolbar{padding:10px;gap:8px}
.work-order-filters .prod-field{gap:4px}
.work-order-filters input,.work-order-filters select{min-height:36px;padding:6px 8px}
.prod-located-order{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border:1px solid #dce6e4;border-radius:8px;background:#f0faf5;margin:10px 0;overflow-wrap:anywhere}
.prod-overview-compact{font-size:12px}
.prod-overview-compact .prod-compact-task-table{min-width:0;width:100%;table-layout:fixed;border-collapse:collapse}
.prod-overview-compact .prod-compact-task-table th,.prod-overview-compact .prod-compact-task-table>tbody>tr>td{font-size:inherit;text-align:center;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.prod-overview-compact .prod-compact-task-table>tbody{--prod-compact-group-bg:#fff}
.prod-overview-compact .prod-compact-task-table>tbody:nth-of-type(even){--prod-compact-group-bg:#f4f8f7}
.prod-overview-compact .prod-compact-task-table>tbody>tr>td{background:var(--prod-compact-group-bg)}
.prod-overview-compact .prod-compact-task-table>tbody+tbody>tr:first-child>td{border-top:1px solid #d8e4e1}
.prod-overview-compact .prod-compact-batch-cell>strong{display:block;font-size:inherit}
.prod-overview-compact .prod-compact-batch-status{margin-top:5px;font-size:inherit}
.prod-overview-compact .prod-compact-task-table .badge,.prod-overview-compact .prod-compact-task-table .link-button{font-size:inherit;text-align:center;max-width:100%}
.prod-compact-col-batch{width:8%}.prod-compact-col-batch-quantity{width:9%}.prod-compact-col-batch-completed{width:10%}.prod-compact-col-step{width:20%}.prod-compact-col-machine{width:8%}.prod-compact-col-date{width:11%}.prod-compact-col-planned,.prod-compact-col-completed,.prod-compact-col-status{width:8%}.prod-compact-col-actions{width:10%}
.prod-overview-compact .prod-compact-date{display:inline-block;white-space:nowrap;font-size:inherit}
.prod-overview-compact .prod-compact-restriction{font-size:inherit;color:#93600b;line-height:1.5;margin-top:5px;text-align:center}
.prod-overview-compact .prod-compact-quantity-help{font-size:inherit;text-align:center;margin-top:12px}
.prod-overview-compact .prod-compact-quantity-help>summary{cursor:pointer;color:#0d827a;padding:8px;font-size:inherit;list-style-position:inside}
.prod-overview-compact .prod-compact-quantity-help>p{font-size:inherit;line-height:1.6;margin:4px 0 8px;text-align:center}

.work-order-management-actions{display:flex;flex-direction:column;align-items:center;gap:5px}.work-order-management-actions .button{max-width:100%;white-space:normal}.work-order-stat-scope{margin:8px 0 4px}

.work-order-machine-group-table .work-order-col-machine-group{width:8%}.work-order-machine-group-table .work-order-col-source{width:13%}.work-order-machine-group-table .work-order-col-product{width:14%}.work-order-machine-group-table .work-order-col-order-summary{width:11%}.work-order-machine-group-table .work-order-col-date{width:8%}.work-order-machine-group-table .work-order-col-teeth{width:4%}.work-order-machine-group-table .work-order-col-planned-dates{width:9%}.work-order-machine-group-table .work-order-col-machines{width:13%}.work-order-machine-group-table .work-order-col-progress{width:9%}.work-order-machine-group-table .work-order-col-actions{width:11%}
.work-order-machine-group-table [data-summary-field="machineGroup"]{color:var(--brand,#087f70)}
.work-order-machine-group-table>tbody[data-summary-group-start]:not(:first-of-type)>tr:first-child>td{border-top:2px solid var(--brand,#087f70)}
.work-order-machine-group-table>tbody[data-summary-line]>tr>td{padding:4px 6px;line-height:1.3}
.work-order-machine-group-table .prod-sub{margin-top:2px;line-height:1.3}
.work-order-machine-group-table [data-summary-field="machines"] .work-order-inline-stage,.work-order-machine-group-table [data-summary-field="machines"] .work-order-inline-machine{display:inline-block;line-height:1.3;max-width:100%}
.work-order-machine-group-table [data-summary-field="machines"] .work-order-inline-machine{margin-left:6px}
.work-order-machine-group-table [data-summary-field="plannedDates"] .work-order-inline-stage{line-height:1.3}
.work-order-machine-group-table .work-order-inline-restriction{line-height:1.3}
.work-order-machine-group-table .work-order-management-actions{gap:4px}
.work-order-history-actions{display:flex;justify-content:center;align-items:center;gap:6px}
.work-order-history-actions .button{font-size:inherit;padding:6px 8px;white-space:nowrap;flex-shrink:0}

@media screen and (min-width:1001px){
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-source{width:15%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-product{width:17%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-order-summary{width:10%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-date{width:8%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-teeth{width:4%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-planned-dates{width:9%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-machines{width:10%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-progress{width:7%}
 .work-order-product-table:not(.work-order-machine-group-table) .work-order-col-actions{width:20%}
 .work-order-history-actions{flex-wrap:wrap;gap:4px;max-width:100%}
 .work-order-history-actions .button{flex-shrink:1;white-space:normal;max-width:100%;line-height:1.4;padding:5px 7px}
 .prod-dialog{max-height:calc(100dvh - 32px)}
 .prod-dialog>form{max-height:calc(100dvh - 34px);min-height:0}
 .prod-dialog header,.prod-dialog footer{padding:10px 16px;gap:8px}
 .prod-dialog .prod-body{padding:12px 16px;min-height:0;flex:1}
 .prod-dialog .prod-grid{gap:8px 12px}
 .prod-dialog .prod-field{gap:4px}
 .prod-dialog .prod-field :is(input,select){min-height:34px;padding:6px 8px}
 .prod-dialog .prod-field textarea{min-height:48px;padding:6px 8px}
 .prod-dialog .prod-note{padding:8px 10px;line-height:1.5;margin-bottom:10px}
 .prod-dialog .prod-stage{padding:10px;margin:8px 0}
 .prod-stage-toolbar{display:flex;align-items:flex-start;gap:8px}
 .prod-stage-toolbar>.prod-stage-name{flex:1;min-width:0}
 .prod-stage-toolbar>[data-add-task],.prod-stage-toolbar>.prod-actions{margin-top:23px;flex:0 0 auto}
 .prod-stage-toolbar .button{min-height:32px;line-height:20px;padding:5px 9px;align-self:flex-start}
 .prod-stage-toolbar>.prod-actions{gap:4px;flex-wrap:nowrap}
 .prod-stage-toolbar>.prod-stage-name>.field-hint{font-size:12px;margin-top:0}
 .prod-task-row{margin-top:8px}
 .work-order-filters .prod-toolbar{gap:8px;padding:10px}
 .work-order-filters.prod-common-filters>.prod-field,.work-order-filters .prod-common-filters>.prod-field{flex:1 1 135px;min-width:120px}
 .work-order-filters.prod-common-filters>.prod-query,.work-order-filters .prod-common-filters>.prod-query{flex:1.4 1 205px}
 .work-order-filters.prod-common-filters>.prod-field:has([data-customer-picker-scope="production"]),.work-order-filters .prod-common-filters>.prod-field:has([data-customer-picker-scope="production"]){flex:1.4 1 205px}
 .work-order-filters.prod-common-filters>.prod-field:has(input[type=date]){flex:0 0 142px;min-width:142px}
 .prod-dialog:has([name="sortOrder"]),.prod-dialog:has([data-completion-correction]){max-width:calc(100vw - 32px)}
 .prod-dialog footer:empty{display:none}
}

.work-order-completion-dialog .work-order-summary{gap:8px}
.work-order-completion-dialog .work-order-summary>div{padding:10px;gap:4px}
.work-order-completion-dialog .prod-form-section{padding:12px;margin-bottom:0}
.work-order-completion-dialog .prod-form-section h4{margin-bottom:10px}
.work-order-completion-dialog .prod-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.work-order-completion-dialog .prod-note{padding:8px 10px;margin-bottom:10px}
.work-order-completion-dialog [data-completion-preview]{margin-bottom:0}

.planner-pending-combobox{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 30px;min-width:0}
.planner-pending-combobox>input{min-width:0;border-radius:6px 0 0 6px}
.planner-pending-combobox>[data-workspace-choice-toggle]{border:1px solid #cbd5e1;border-left:0;border-radius:0 6px 6px 0;background:#fff;color:#42515d;cursor:pointer;font:inherit}
.planner-pending-combobox>[data-workspace-choice-options]{position:absolute;z-index:80;top:calc(100% + 4px);left:0;right:0;box-sizing:border-box;max-height:240px;overflow-y:auto;overflow-x:hidden;padding:5px;border:1px solid #ccd9d7;border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(20,34,48,.15)}
.planner-pending-combobox [data-workspace-choice-value]{display:block;width:100%;max-width:100%;box-sizing:border-box;padding:8px 10px;border:0;border-radius:5px;background:#fff;color:#27343e;font:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.planner-pending-combobox [data-workspace-choice-value]:hover,.planner-pending-combobox [data-workspace-choice-value]:focus{background:#eaf6f3;outline:none}
.planner-pending-combobox [data-workspace-choice-empty]{display:block;padding:8px 10px;color:#75808d}
.planner-pending-combobox [hidden]{display:none!important}

@media screen{
 .machine-query-table .machine-queue-draggable{cursor:grab}
 .machine-query-table .machine-queue-draggable :is(button,a,input,select,textarea){cursor:pointer}
 .machine-query-table .machine-queue-dragging{opacity:.5;cursor:grabbing}
 .machine-query-table .machine-queue-drop-before>td{box-shadow:inset 0 3px var(--brand,#087f70)}
 .machine-query-table .machine-queue-drop-after>td{box-shadow:inset 0 -3px var(--brand,#087f70)}
 .machine-query-table .machine-queue-drag-hint{display:block;color:var(--brand,#087f70);font-size:11px;line-height:1.3;margin-top:2px}
 .machine-queue-saving .machine-queue-draggable{cursor:wait}
}
