/* Keep working tables wide while making their values readable. */
.compact-orders-table,.orders-list-table,.stock-table,.heatTable .heat-table{font-size:15px;line-height:1.35}
.compact-orders-table th,.orders-list-table th,.stock-table th,.heatTable .heat-table th{font-size:14px}
.compact-orders-table small,.orders-list-table small,.stock-table small,.heatTable .heat-table .muted{font-size:14px;line-height:1.3}
.compact-orders-table .size,.orders-list-table .size{font-size:19px}
.orders-list-table .orders-list-number button{font-size:18px;font-weight:600}
.orders-list-table .orders-list-client{font-size:16px;line-height:1.3}
.orders-list-table button,.compact-orders-table button,.stock-table button,.heatTable .heat-table button{font-size:14px}
.order-position-number,.order-status{font-size:14px}
.compact-orders-table th,.compact-orders-table td,.orders-list-table th,.orders-list-table td,.stock-table th,.stock-table td{padding-block:8px}
.stock-table .stock-group-toggle{font-size:17px}
.stock-table .heat-link{font-size:15px}
.stock-table .stock-planned{white-space:nowrap}
.heatTable .heat-table th,.heatTable .heat-table td{padding-block:9px}
.heatTable .heat-table .chem-column{font-size:15px}
.heat-composition input{font-size:17px}
.production-board table{font-size:14px;line-height:1.3}
.production-board th{font-size:13px}
.production-board th:nth-child(1){width:102px}
.production-board th:nth-child(3){width:96px}
.production-board th:nth-child(6){width:100px}
.production-board th:nth-child(1),.production-board th:nth-child(6),.production-board .date-cell,.production-board .due-cell,.production-board .quantity-cell{white-space:nowrap;overflow-wrap:normal}
.production-toolbar{flex-wrap:wrap}
.production-toolbar>b{overflow-wrap:normal;word-break:normal}
.production-board .stage{font-size:14px;line-height:1.25;padding:10px 2px}
.production-board small{font-size:13px;line-height:1.25}
.production-board .position-size{font-size:19px}
.production-board .queue-order-number{font-size:18px;font-weight:600}
.production-board .queue-batch-number{font-size:14px}
.production-board .production-actions button{font-size:13px}
.production-board .heat-link{font-size:14px}
.route-chain-step,.trace-route span{font-size:17px}
.orders-list-table{line-height:1.15}
.orders-list-table th,.orders-list-table td{padding:3px 4px}
.orders-list-table small{font-size:13px;line-height:1.15}
.orders-list-table .size{font-size:18px;line-height:1.15}
.orders-list-table button{padding:3px 4px;margin:0;line-height:1.15}
.orders-list-table tr.orders-list-group-start td{border-top-width:4px}
.orders-list-table .orders-list-client{line-height:1.15}
.orders-list-table td.orders-list-status.order-ready-status{background:#b9e6c3;color:#205d2e;font-weight:600}
.operation-history{margin:10px 0;color:#294656}
.operation-history p{font-size:14px;line-height:1.5}
.operation-history table{width:100%;font-size:14px;table-layout:fixed}
.operation-history th,.operation-history td{padding:5px;text-align:left;overflow-wrap:anywhere}
.operation-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.operation-title{flex:0 1 auto}
.operation-heading .operation-timing{margin:0;padding-left:16px;border-left:1px solid #b9c8d2;font-size:14px;line-height:1.5}
.completed-route{margin:16px 0;padding:12px;background:#fff;border:1px solid #b9c8d2;border-radius:10px}
.completed-route summary{cursor:pointer;list-style:none}
.completed-route summary::-webkit-details-marker{display:none}
.completed-route-label{display:block;font-size:18px;font-weight:600;margin-bottom:8px}
.completed-route-label::before{content:'▸ ';color:#087f83}
.completed-route[open] .completed-route-label::before{content:'▾ '}
.completed-route-cells{display:flex;flex-wrap:wrap;gap:3px}
.completed-route-cell{display:grid;place-items:center;min-width:45px;min-height:42px;padding:6px;border:1px solid #93a4ae;background:#edf1f3;font-size:16px;text-align:center}
.completed-route-cell.done{background:#b9e6c3}
.completed-route-cell.work{background:#d9b7ec}
.completed-route-hint{display:block;margin-top:8px;color:#607586;font-size:13px}
.completed-route>.operations{margin-top:14px}
.completed-queue{margin:14px 0}
.completed-queue>summary{cursor:pointer;background:#dfe7ec;border:1px solid #b9c8d2;border-radius:8px;padding:10px 14px;font-size:17px;font-weight:600;color:#294656}
.completed-queue>.production-board{margin-top:8px}
.completed-result-line{line-height:1.7;font-size:16px}
.completed-result h2{font-size:18px;margin:0 0 8px}
.heatTable tr[data-edit-heat]{cursor:pointer}
.heatTable tr[data-edit-heat]:hover{background:#edf6f6}
.heatTable tr.heat-selected{background:#dceeee;outline:2px solid #087f83;outline-offset:-2px}
.orders-without-client th:nth-child(1){width:8%}
.orders-without-client th:nth-child(2){width:17%}
.orders-without-client th:nth-child(3){width:8%}
.orders-without-client th:nth-child(4){width:8%}
.orders-without-client th:nth-child(5){width:10%}
.orders-without-client th:nth-child(6){width:9%}
.orders-without-client th:nth-child(7){width:9%}
.orders-without-client th:nth-child(8){width:8%}
.orders-without-client th:nth-child(9){width:10%}
.orders-without-client th:nth-child(10){width:13%}
.orders-list-table th:nth-child(1){width:8%}
.order-number-actions{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.orders-list-table .order-number{font-size:18px;font-weight:600;line-height:1.15}
.orders-list-table button.order-number{padding:0;border:0;background:transparent;color:#087f83;text-decoration:underline}
.orders-list-table .order-add-plus{flex:0 0 24px;width:24px;height:24px;padding:0;font-size:20px;font-weight:500;line-height:1;background:#e5f2f2;color:#087f83;border:1px solid #a7cccc;border-radius:5px}
@media(max-width:700px){
 .compact-orders-table,.orders-list-table,.stock-table,.heatTable .heat-table{font-size:14px}
 .production-board table,.production-board .stage{font-size:13px}
 .heatTable .heat-table td::before{font-size:12px}
}

.machine-row{cursor:pointer}.machine-row:hover{background:#e8eef6}.machine-form{max-width:720px}.machine-form fieldset{display:flex;flex-wrap:wrap;gap:12px;padding:16px}.machine-form fieldset label,.machine-form>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}.machine-form input[type=checkbox]{width:auto}#claimMachineDialog{width:min(440px,90vw);border:1px solid #cbd5e1;border-radius:12px;padding:24px}#claimMachineDialog::backdrop{background:#0006}

.packaging-field{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:14px}.packaging-field select{width:130px;min-width:0;padding:5px 8px}.packaging-record{margin:8px 0;font-size:14px}

.pickling-field{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:14px}.pickling-field input{width:100px;min-width:0;padding:5px 8px}.pickling-record{margin:8px 0;font-size:14px}

.crm-history-controls{display:flex;gap:8px;padding:8px 16px;margin:auto;max-width:1600px}.crm-history-controls[hidden]{display:none}.crm-history-controls button{padding:6px 12px;background:#e4ecef;color:#183447;border-color:#c5d2d9}.crm-history-controls button:disabled{opacity:.45}

.employee-name-short{display:none}@media(max-width:800px){.employee-name-full{display:none}.employee-name-short{display:inline;white-space:nowrap}}

.attendance-date{max-width:190px}.attendance-table select{min-width:85px;width:100px}.attendance-table .actions{margin:0;gap:6px}.attendance-history{margin-top:18px}.attendance-history summary{font-weight:600;cursor:pointer;margin-bottom:10px}@media(max-width:800px){.attendance-table th,.attendance-table td{padding:8px 5px}.attendance-table .actions{flex-direction:column}.attendance-table select{width:80px;min-width:75px}}

.worker-queue{width:100%;min-width:0}.worker-queue-list{display:grid;gap:8px}.worker-queue-card{width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px;text-align:left;background:#fff;color:#183447;border:1px solid #c5d2d9;border-radius:9px}.worker-queue-card:active{background:#edf3f5}.worker-queue-order{font-size:20px;font-weight:600;overflow-wrap:anywhere}.worker-queue-order small{font-size:15px;font-weight:400}.worker-queue-state{font-size:12px;align-self:center;text-align:right;max-width:135px;white-space:normal}.worker-queue-position{min-width:0}.worker-queue-position strong{display:block;font-size:19px}.worker-queue-position small{display:block;font-size:13px;white-space:normal;overflow-wrap:anywhere}.worker-queue-quantity{align-self:center;font-size:18px;white-space:nowrap}.worker-queue-card.ready{border-color:#7fbb92}.worker-queue-card.ready .worker-queue-state{color:#217742}.worker-queue .production-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:10px}@media(min-width:801px){.worker-queue{max-width:600px;margin:auto}}

.queue-mobile{display:none}@media(max-width:800px){.queue-desktop{display:none}.queue-mobile{display:block}}
