.route-input-cells:has(>[data-structured-route-editor]){display:block!important}.route-input-cells>[data-structured-route-editor]{grid-column:1/-1;width:100%;min-width:0}[data-structured-route-editor]{min-width:0;margin:8px 0 12px}[data-structured-route-editor] .sr-table-scroll{width:100%;max-width:100%;max-height:420px;overflow:auto;border:1px solid #dce4d8;border-radius:5px}[data-structured-route-editor] .sr-table{width:100%;min-width:620px;table-layout:fixed;border-collapse:collapse}[data-structured-route-editor] .sr-table th{padding:8px 6px;font-size:11px;line-height:1.4;text-align:left;background:#f1f5ec;color:#65765d}[data-structured-route-editor] .sr-table td{padding:5px 6px;border-top:1px solid #e5eadf;vertical-align:top;font-size:12px}[data-structured-route-editor] .sr-table td:first-child{line-height:32px;color:#79886f;text-align:center}[data-structured-route-editor] .sr-operation-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}[data-structured-route-editor] .sr-operation-fields.sr-drawing{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}[data-structured-route-editor] .sr-table input,[data-structured-route-editor] .sr-table select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:32px;min-height:32px;margin:0;font-size:12px;padding:5px 7px}[data-structured-route-editor] .sr-row-actions{display:flex;justify-content:end;align-items:start;gap:3px}[data-structured-route-editor] .sr-row-actions button{padding:0;width:27px;min-width:27px;height:32px;min-height:32px;font-size:14px}[data-structured-route-editor]>button{margin-top:8px;font-size:12px}[data-structured-route-editor] .sr-help,.sr-help{font-size:11px;line-height:1.5;color:#76856b;margin:8px 0}[data-structured-route-editor] .sr-legacy{display:block;font-size:10px;line-height:1.4;color:#956b2b;margin-top:4px;overflow-wrap:anywhere}[data-structured-route-editor] .sr-locked{font-size:10px;color:#7b886e;line-height:1.5}[data-structured-route-editor] .sr-empty{padding:15px;font-size:12px;color:#7b896f}.structured-route-dialog{width:min(1040px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px);max-height:90vh;overflow:auto}.structured-route-dialog>form>label{display:block;font-size:12px}.structured-route-dialog textarea{box-sizing:border-box;width:100%;margin-top:5px}.structured-route-dialog details{font-size:11px;line-height:1.5;margin-top:14px}.structured-route-dialog details p{overflow-wrap:anywhere}

@media(min-width:801px){
.packing-sequence{min-width:0}
.packing-sequence-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:8px 0 12px;font-size:13px}
.packing-sequence-summary span{color:#677467;font-size:12px}
.packing-sequence-batch{margin:10px 0;border:1px solid #dce4db;border-radius:7px;overflow:hidden}
.packing-sequence-batch-heading{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;align-items:baseline;padding:9px 12px;background:#f3f6f0;font-size:13px}
.packing-sequence-batch-heading span{color:#657362;font-size:11px}
.packing-sequence-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;margin:0}
.packing-sequence-table th,.packing-sequence-table td{padding:8px 10px;border-bottom:1px solid #e5ebe1;vertical-align:middle;text-align:left}
.packing-sequence-table th:first-child{width:56px}
.packing-sequence-table th:nth-child(2),.packing-sequence-table th:nth-child(3){width:110px}
.packing-sequence-table input{box-sizing:border-box;width:92px;max-width:100%;min-width:0;height:34px;margin:0;padding:6px 8px;font-size:13px}
.packing-sequence-table button{font-size:11px;min-height:32px;padding:6px 9px;margin:0;white-space:normal}
.packing-sequence-row-actions{display:flex;flex-wrap:wrap;gap:6px}
.packing-sequence-table .packing-sequence-confirm{width:34px;min-width:34px;max-width:34px;height:34px;padding:0;color:#fff;background:#287d4d;border-color:#287d4d;font-size:20px;font-weight:700;line-height:1}
.packing-sequence-table .packing-sequence-cancel{width:34px;min-width:34px;max-width:34px;height:34px;padding:0;font-size:20px;line-height:1}
.packing-sequence-table .packing-sequence-confirm:disabled{opacity:.5}
.packing-sequence-active{background:#f9fbf6}
.packing-sequence-help{font-size:11px;line-height:1.5;color:#76816d;margin:8px 0}
.packing-sequence [data-packing-status]{font-size:12px;line-height:1.5;margin:8px 0}
.packing-sequence-quantity{margin:8px 0 12px;font-size:11px;color:#677461}
.packing-sequence-quantity summary{cursor:pointer}
.packing-sequence-quantity p{font-size:11px;line-height:1.5;max-width:620px}
.packing-sequence-quantity label{display:inline-grid;gap:5px;width:110px;margin-right:8px}
.packing-sequence-quantity input{box-sizing:border-box;width:100%;height:32px;font-size:12px}
}

@media (min-width:801px){
 .desktop-orders-section,.desktop-production-queue{padding:8px 10px!important;margin:8px 0!important;}
 .desktop-orders-table,.desktop-order-positions,.desktop-queue-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.3;}
 .desktop-orders-table th,.desktop-orders-table td,.desktop-order-positions th,.desktop-order-positions td,.desktop-queue-table th,.desktop-queue-table td{padding:7px 8px!important;text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;}
 .desktop-orders-table>thead th,.desktop-queue-table>thead th{color:#64748b;font-size:11px;font-weight:600;background:#f8fafc;white-space:nowrap;}
 .desktop-order-summary,.desktop-order-position,.desktop-queue-row{cursor:pointer;}
 .desktop-order-summary:hover,.desktop-order-position:hover,.desktop-queue-row:hover{background:#f1f5f9;}
 .desktop-order-summary:focus-visible,.desktop-order-position:focus-visible,.desktop-queue-row:focus-visible{outline:2px solid #2563eb;outline-offset:-2px;}
 .desktop-order-summary>td:first-child{white-space:nowrap;min-width:95px;}
 .desktop-order-number{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;}
 .desktop-order-toggle{display:inline-flex;align-items:center;justify-content:center;width:23px;min-width:23px;height:25px;min-height:25px;margin:0 5px 0 0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#64748b!important;}
 .desktop-order-client{max-width:220px;overflow-wrap:anywhere;}
 .desktop-order-group>[data-desktop-order-children]>td{padding:0 0 8px 18px!important;background:#f8fafc;}
 .desktop-order-group>[data-desktop-order-children][hidden]{display:none!important;}
 .desktop-order-positions{background:#fff;border-left:2px solid #cbd5e1;}
 .desktop-order-positions th{font-size:11px;color:#64748b;font-weight:600;background:#f8fafc;white-space:nowrap;}
 .desktop-position-index{width:24px;color:#64748b;font-variant-numeric:tabular-nums;}
 .desktop-position-pipe,.desktop-queue-pipe{white-space:nowrap;}
 .desktop-pipe-size{font-weight:650;color:#0f172a;display:inline-block;min-width:70px;margin-right:8px;}
 .desktop-pipe-grade{display:inline-block;min-width:78px;margin-right:8px;}
 .desktop-pipe-state{color:#475569;display:inline-block;}
 .desktop-position-action{font-size:12px;color:#334155;white-space:normal;}
 .desktop-status{display:inline-block;padding:3px 6px;border-radius:5px;font-size:11px;line-height:1.25;background:#edf2f7;color:#475569;}
 .desktop-status.is-work{background:#dbeafe;color:#1e40af;}.desktop-status.is-ready{background:#dcfce7;color:#166534;}
 .desktop-deadline-legend{display:none;}
 .desktop-orders-table button:not(.desktop-order-toggle):not(.order-add-plus){font-size:11px;padding:4px 7px;min-height:26px;margin-left:5px;}
 body.production-orders-active>header .orders-compact-heading{gap:8px!important;flex-wrap:wrap;}
 .orders-compact-heading .orders-sort,.orders-compact-heading .orders-sort label{margin:0!important;padding:0!important;display:flex;align-items:center;gap:6px;}
 .orders-compact-heading .orders-sort select{width:190px!important;min-height:31px;height:31px;}
 .desktop-queue-heading{display:flex;align-items:center;gap:12px;margin:0 0 7px!important;flex-wrap:wrap;}
 .desktop-queue-heading h1{font-size:20px;margin:0!important;white-space:nowrap;}
 .desktop-queue-heading .production-register-search{margin:0!important;max-width:360px;flex:1;}
 .desktop-queue-toolbar,.desktop-queue-filters,.desktop-queue-context{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
 .desktop-queue-toolbar{justify-content:space-between;margin-bottom:8px;}
 .desktop-queue-filters button,.desktop-queue-toolbar>button,.desktop-queue-context button{padding:5px 8px!important;min-height:29px;font-size:12px;white-space:nowrap;}
 .desktop-queue-filters button.active{background:#e0ecff!important;border-color:#93b4f6!important;color:#1e40af!important;}
 .desktop-queue-filters button span{font-size:10px;color:#64748b;margin-left:2px;}
 .desktop-queue-context{padding:7px 10px;background:#f0f5ff;border:1px solid #dbeafe;border-radius:7px;font-size:12px;margin:5px 0 8px;}
 .desktop-queue-context>span{flex:1;color:#475569;}
 .desktop-queue-row td small{display:block;font-size:11px;color:#64748b;margin-top:3px;max-width:220px;overflow-wrap:anywhere;}
 .desktop-queue-row td:nth-child(1){white-space:nowrap;min-width:85px;}
 .desktop-queue-row td:nth-child(3){white-space:nowrap;}
 .desktop-queue-row td:nth-child(4){min-width:135px;}
 .desktop-queue-table{min-width:840px;}
 .desktop-queue-scroll{overflow-x:auto;}
 .desktop-route-matrix{margin-top:8px;font-size:12px;}
 .desktop-route-matrix>summary{color:#64748b;cursor:pointer;padding:5px 0;}
 .desktop-route-matrix .production-toolbar{display:none;}
 .desktop-route-matrix .production-board{padding:0!important;margin:4px 0!important;}
 .desktop-route-matrix .board-scroll{max-width:100%;overflow-x:auto;}
 .operation-timing-compact{display:flex;gap:5px 15px;flex-wrap:wrap;font-size:12px;margin:7px 0!important;}
 .operation-timing-compact>span{white-space:nowrap;}
 .operation-session-scroll{max-width:100%;overflow-x:auto;}
 .operation-session-table{width:100%;border-collapse:collapse;font-size:12px;}
 .operation-session-table th,.operation-session-table td{padding:5px 8px!important;white-space:nowrap;text-align:left;border-bottom:1px solid #e2e8f0;}
 .operation-session-table td:first-child{white-space:normal;min-width:180px;}
}

@media(min-width:801px){
 .production-desktop-card{--card-gap:10px;display:block;max-width:100%;min-width:0}
 .production-desktop-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dce2e8;padding:5px 0 8px}
 .production-desktop-card-title{flex:1;min-width:200px}.production-desktop-card .job-card-heading{font-size:22px;margin:0 0 3px}.production-desktop-card-title p{margin:0;color:#556171;font-size:13px}
 .production-desktop-card-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px;max-width:60%}.production-desktop-card-actions button{font-size:12px;min-height:30px;padding:5px 8px;margin:0}
 .production-desktop-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;background:#f4f7fa;border-radius:6px;padding:8px 10px;font-size:13px;margin:8px 0}.production-desktop-metrics .job-deadline{margin:0 0 0 auto}
 .production-desktop-card-tabs{display:flex;gap:4px;padding:0 0 7px;border-bottom:1px solid #dce2e8}.production-desktop-card-tabs button{border-radius:5px;font-size:13px;padding:7px 12px;background:#eef2f6;color:#283548;border:1px solid transparent}.production-desktop-card-tabs [aria-selected=true]{background:#174c78;color:#fff}
 .production-desktop-panel[hidden]{display:none!important}.production-desktop-panel{padding-top:8px;min-width:0}.production-desktop-panel section{margin:0 0 9px;padding:10px 12px}.production-desktop-panel h2{font-size:16px;margin:0 0 7px}.production-desktop-panel h3{font-size:14px;margin:8px 0}.production-desktop-panel p{margin:5px 0}
 .production-desktop-panel .operations{display:grid;gap:7px}.production-desktop-operation{border:1px solid #d8e0e8;border-radius:6px;background:white;min-width:0}.production-desktop-operation>summary{cursor:pointer;padding:9px 12px;font-size:14px;font-weight:600}.production-desktop-operation-summary{display:inline;margin-left:10px;color:#657183;font-size:12px;font-weight:400}.production-desktop-operation .operation{margin:0;border:0;padding:8px;min-width:0}.production-desktop-operation .operation-heading h3{font-size:15px;margin:0}.production-desktop-operation .operation-timing{font-size:12px}.production-desktop-operation .operation-history table{font-size:12px}.production-desktop-operation .operation-history td,.production-desktop-operation .operation-history th{padding:5px 7px}.production-desktop-operation .actions{margin:7px 0}
 .production-desktop-panel .job-summary-grid{display:flex;gap:14px;flex-wrap:wrap}.production-desktop-panel .job-summary-main{display:flex;flex-wrap:wrap;gap:5px 18px}.production-desktop-panel .job-summary-main p{margin:0}.production-desktop-panel .job-packing-summary{width:100%;margin:0}
 .production-desktop-control .grid{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end;margin:0}.production-desktop-control .grid label{flex:none;min-width:0;width:100px;font-size:12px}.production-desktop-control input,.production-desktop-control select{height:32px;min-height:32px;padding:4px 6px;width:100%;box-sizing:border-box}.production-desktop-control label:has(#actualD),.production-desktop-control label:has(#actualT),.production-desktop-control label:has(#semiD),.production-desktop-control label:has(#semiT){width:78px}.production-desktop-control label:has(#semiCondition){width:130px}.production-desktop-control label:has(#resultLength),.production-desktop-control label:has(#semiLength){width:120px}.production-desktop-control .production-desktop-waste{display:flex;gap:8px;margin-top:8px}.production-desktop-control .production-desktop-waste label{width:100px;font-size:12px}.production-desktop-control>label:has(#resultNotes){max-width:680px;font-size:12px}.production-desktop-control #resultNotes{min-height:42px;height:42px}
 .production-desktop-history-item{overflow:auto}.production-desktop-history-item .operation-history table{font-size:12px}.production-desktop-history-item td,.production-desktop-history-item th{padding:5px 8px;white-space:nowrap}
 .production-desktop-card .packing-finish>summary{display:none}.production-desktop-packing-actions{display:flex;align-items:center;gap:8px;margin-top:7px}.production-desktop-packing-actions button{width:auto;min-height:34px;margin:0;padding:7px 12px;font-size:13px}.production-desktop-card .packing-finish{margin-top:7px;padding:7px}.production-desktop-card .packaging-photo:empty{display:none}
}
