.heading-actions,.list-actions,.batch-toolbar,.row-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.batch-table table{display:table;min-width:520px}.batch-table thead{display:table-header-group}.batch-table tbody{display:table-row-group}.batch-table tr{display:table-row}.batch-table th,.batch-table td{display:table-cell}.batch-table td::before{display:none}
.list-actions{justify-content:flex-end}.list-actions button{font-size:12px}.wide-editor{width:min(960px,96vw);max-width:96vw}
.batch-job{border:1px solid #dce3f0;border-radius:10px;padding:18px;margin:18px 0 20px}.batch-job legend{font-weight:700;font-size:14px}.row-actions{justify-content:flex-end;margin-top:12px}.row-actions button{font-size:12px}
.batch-table{max-height:52vh;overflow:auto}.batch-table table{table-layout:auto}.batch-table th{position:sticky;top:0;background:#edf2fc}.batch-table td{white-space:normal;overflow-wrap:anywhere}.batch-table input{min-width:76px;max-width:100px}.batch-table th:nth-child(1){width:65px}.batch-table th:nth-child(2){width:120px}
.warning-text{padding:14px;background:#fff2dd;color:#86501b;line-height:1.7;border-radius:8px}.reason-row{padding:16px 0;border-top:1px solid #e0e6ef}.reason-row>p{font-size:12px;color:#62728c;margin:7px 0 12px;overflow-wrap:anywhere}.reason-row textarea{min-height:90px}
.download-link{display:inline-block;color:#2652c6;font-size:13px;padding:10px 0}.upload-field{margin-top:18px}.master-items{max-height:48vh;overflow:auto;margin-top:15px}.master-items>div{padding:12px;border-bottom:1px solid #e5eaf2;overflow-wrap:anywhere}.master-items span{font-size:11px;color:#64728a;display:block;margin-bottom:5px}.master-items strong{font-size:13px;font-weight:500;white-space:pre-wrap}
#master-fields{margin-top:18px}.import-preview{max-height:52vh;overflow:auto}.import-preview article{border:1px solid #dce3f0;padding:14px;border-radius:8px;margin-bottom:12px}.import-preview article.has-error{border-color:#db9e85;background:#fff5ed}.import-preview strong{font-size:13px}.import-preview dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:0}.import-preview dt{font-size:11px;color:#657895}.import-preview dd{margin:4px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.import-preview p{font-size:12px;color:#aa3324;margin:12px 0 0}
#work-table[data-view=shipping] .col-container-count{width:10%}.cell-container-count .value-button{white-space:normal}.cell-customer .site,.instruction{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.page-heading{align-items:flex-start}.heading-actions{flex-direction:column;align-items:stretch;gap:6px}.heading-actions button{font-size:11px;min-height:35px}.list-heading{align-items:flex-start}.list-actions{align-items:flex-end;flex-direction:column;gap:6px}.list-actions .hint{font-size:10px;max-width:150px;text-align:right}.batch-job{padding:12px}.batch-job .form-grid{grid-template-columns:1fr}.batch-table th,.batch-table td{padding:8px;font-size:11px}.batch-table input{min-width:60px;width:70px;padding:8px}.import-preview dl{grid-template-columns:1fr}.cell-container-count{grid-column:1/-1}.batch-toolbar button{font-size:12px}.wide-editor{width:96vw}}

.daily-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:16px 20px;background:#fff;border:1px solid #dce3f0;border-radius:10px;margin:0 0 18px}.daily-controls label{width:240px;font-size:12px}.daily-controls input{margin-top:6px}.day-buttons{display:flex;gap:6px;flex-wrap:wrap}.day-buttons button{min-height:44px}.day-buttons .selected{background:#eaf0fe;color:#2652c6;border-color:#9bb3e6}.daily-controls p{width:100%;font-size:12px;color:#60738f;margin:0}.cell-actions .edit-button{display:block;width:100%;margin-bottom:5px}
.import-options{border:1px solid #dce3f0;border-radius:8px;padding:12px 14px;margin:16px 0}.import-options summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.6}.import-options[open] summary{margin-bottom:14px}.import-cell-example{white-space:pre-wrap;overflow-wrap:anywhere;max-height:70px;overflow:auto}.import-defaults{padding:14px;background:#f2f6fd;border-radius:8px}.import-range{grid-template-columns:repeat(2,minmax(0,1fr))}.source-sample{overflow:auto;max-height:280px}.source-sample table{display:table;width:max-content;min-width:100%;table-layout:auto}.source-sample thead{display:table-header-group}.source-sample tbody{display:table-row-group}.source-sample tr{display:table-row}.source-sample th,.source-sample td{display:table-cell;min-width:110px;max-width:270px;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;font-size:12px}.source-sample td::before{display:none}.source-sample th{background:#eaf0fc}
#import-main-mapping{grid-template-columns:repeat(3,minmax(0,1fr))}.import-defaults{grid-template-columns:repeat(4,minmax(0,1fr))}
#import-main-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-job{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){#import-main-mapping{grid-template-columns:1fr}.import-defaults{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.import-defaults,.import-range{grid-template-columns:1fr}}
@media(max-width:760px){.daily-controls{padding:12px;gap:8px}.daily-controls label{width:100%}.daily-controls p{font-size:11px}.day-buttons button{font-size:11px;padding:8px 12px}.cell-actions .edit-button{display:inline-block;width:auto;margin:0 0 0 6px}}

.shipping-pick-list{max-height:42vh;overflow:auto;display:grid;gap:10px;margin:12px 0 20px}.shipping-choice{border:1px solid #cbd6e7;border-radius:9px;padding:13px;background:#fff}.shipping-choice.is-selected{border-color:#3768ca;background:#f3f7ff}.shipping-select-all{display:flex;align-items:center;gap:9px;margin-top:15px}.shipping-select-all input,.shipping-job-check>input{width:18px;min-height:18px;height:18px;flex-shrink:0;margin:0}.shipping-job-check{display:flex;gap:12px;align-items:flex-start}.shipping-job-check>span{display:grid;gap:5px;overflow-wrap:anywhere;min-width:0}.shipping-job-check small{color:#64728a;font-weight:400}.shipping-row-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0 30px}.shipping-row-inputs input:disabled{background:#f0f2f6}.shipping-select-all strong{margin-left:auto;color:#2652c6}@media(max-width:480px){.shipping-row-inputs{grid-template-columns:1fr;margin-left:0}.shipping-choice{padding:10px}.shipping-select-all{font-size:12px}}

.order-cards{display:grid;gap:10px;margin:18px 0;max-height:55vh;overflow:auto;padding:3px}
.order-card{display:flex;align-items:center;gap:14px;border:1px solid #c9d4e4;border-radius:12px;padding:14px;background:#fff}
.order-index{display:grid;place-items:center;min-width:42px;height:42px;border-radius:10px;background:#eaf0ff;color:#244ab0;font-size:24px}
.order-identity{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}.order-identity small{color:#52627b}
.order-arrows{display:flex;gap:8px}.order-arrows button{min-width:62px;min-height:60px;font-size:28px;font-weight:700;color:#2049b5;background:#eff4ff}.order-arrows small{display:block;font-size:10px}
.order-arrows button:disabled{opacity:.3}.permission-grid{margin:16px 0}
#editor:has(#order-cards) .order-cards{max-height:min(45vh,calc(100dvh - 390px))}
#editor:has(#order-cards) .form-actions{position:sticky;bottom:0;background:white;padding:14px 0 2px;margin-top:8px}
[data-action]:disabled{cursor:default}.value-button:disabled,.note-button:disabled{color:inherit;opacity:1}.order-button:disabled{border:0;background:transparent;color:inherit}
@media(max-width:600px){.order-card{gap:8px;padding:10px}.order-arrows{gap:4px}.order-arrows button{min-width:48px;min-height:58px}.order-index{min-width:30px;font-size:20px}.order-identity{font-size:13px}.user-row{flex-wrap:wrap;gap:10px}}

.urgent-badge{display:block;width:fit-content;background:#fff0ed;border:1px solid #f1b5a8;color:#b33624;padding:3px 6px;border-radius:5px;font-size:11px;font-weight:700;margin-top:6px}.urgent-job{background:#fff8f5!important}.urgent-job .order-index,.urgent-job .order-button{color:#b22a22;background:#ffe9e4;font-size:16px}.urgent-select select{border-color:#d58f7d}
#editor:has(#order-cards) .order-cards{max-height:min(40vh,calc(100dvh - 450px))}
.urgent-job .order-button{white-space:nowrap;min-width:36px;padding:4px;font-size:13px}.urgent-job .order-index{white-space:nowrap;min-width:42px}
#editor:has(.reason-row) .form-actions{position:sticky;bottom:0;background:white;padding-bottom:8px}
.order-card{scroll-margin:10px}
.machine-checks{display:flex;flex-direction:column;gap:7px}.machine-check{display:flex;align-items:center;gap:6px;border:1px solid #d1d9e8;border-radius:7px;padding:7px;background:#fff;font-size:12px;cursor:pointer;white-space:nowrap}.machine-check.selected{border-color:#647bd1;color:#203995;background:#edf2ff}.machine-check input[type=radio]{width:19px;height:19px;min-height:19px;margin:0;accent-color:#263ca6;flex-shrink:0}.machine-clear{padding:5px 0;font-size:10px;min-height:28px}.machine-change{font-weight:700;color:#263ca6}.order-machine{font-size:12px;color:#405a8e;white-space:nowrap}#work-table[data-view=cutting] .col-machine{width:100px}#work-table[data-view=cutting] .col-status{width:13%}#cutting-order-cards{max-height:42vh;overflow:auto;margin:12px 0}#editor:has(#cutting-order-cards) .form-actions{position:sticky;bottom:0;background:white;padding:12px 0 2px}
@media(max-width:760px){td.cell-machine{grid-column:1/-1}.machine-checks{flex-direction:row}.machine-check{min-height:44px;padding:9px 16px;font-size:14px}.machine-clear{min-height:36px;font-size:12px}.order-card:has(.order-machine){flex-wrap:wrap}.order-card:has(.order-machine) .order-identity{flex-basis:calc(100% - 64px)}.order-machine{margin-left:50px}.order-card:has(.order-machine) .order-arrows{margin-left:auto}#cutting-order-cards{max-height:35vh}}
#cutting-tools{padding:0 24px 18px}.machine-views,.machine-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.machine-views .selected{background:#263eae;color:#fff}.machine-actions button{background:#edf2ff;border:2px solid #a4b5ea;color:#203a9c;min-height:52px;font-size:16px}.machine-actions button:before{content:'↕ ';font-size:23px}#cutting-policy,.order-policy{font-size:12px;line-height:1.7;color:#34557c;margin:8px 0}.order-policy{background:#eef4ff;border-radius:8px;padding:10px}
.cut-order{display:grid;justify-items:center;gap:5px}.cut-order>b{font-size:23px;color:#263eae}.cut-order>small{white-space:nowrap}.cut-arrows{display:flex;gap:5px}.cut-arrows button{min-width:42px;min-height:54px;padding:5px;color:#263eae;font-size:25px;background:#eef3ff}.cut-arrows small{display:block;font-size:9px;color:inherit}#work-table[data-view=cutting] .col-order{width:112px}#work-table[data-view=cutting] .col-code{width:14%}#work-table[data-view=cutting] .col-customer{width:22%}#work-table[data-view=cutting] .col-argon{width:9%}#work-table[data-view=cutting] .col-note{width:auto}
#machine-selected{max-height:32vh;margin:12px 0}.machine-candidates{max-height:25vh;overflow:auto;border:1px solid #ccd7e7;border-radius:8px;margin:10px 0}.machine-candidate{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #dce4ef}.machine-candidate input{width:22px;height:22px;min-height:22px;margin:0;flex-shrink:0}.machine-candidate>span{flex:1;min-width:0;overflow-wrap:anywhere}.machine-candidate small{display:block;color:#62708a;font-weight:400;margin-top:4px}.machine-candidate em{font-size:11px;font-style:normal;white-space:nowrap;color:#4a6092}#machine-pool summary{cursor:pointer;color:#2448ad;font-weight:700;padding:12px 0}.remove-choice{padding:4px;min-width:30px;min-height:38px;color:#a23b32}#machine-reason{margin-top:14px}#editor:has(#machine-selected) .form-actions{position:sticky;bottom:0;background:white;padding:12px 0 2px}
@media(max-width:760px){#cutting-tools{padding:0 14px 12px}.machine-views button{font-size:12px;padding:8px 10px}.machine-actions button{flex:1;font-size:14px;padding:8px}.cut-order{display:flex;flex-wrap:wrap;gap:8px}.cut-order>b{font-size:22px}.cut-arrows{flex-basis:100%}.cut-arrows button{min-width:48px}.cut-order>small{font-size:10px}.order-card:has(.remove-choice){flex-wrap:wrap}.order-card:has(.remove-choice) .order-identity{flex-basis:calc(100% - 62px)}.order-card:has(.remove-choice) .order-arrows{margin-left:48px}.order-card:has(.remove-choice) .remove-choice{margin-left:auto}.machine-candidate{padding:10px;font-size:12px}#machine-selected{max-height:30vh}}
