/* Warehouse work surfaces: readable data first, quieter supporting controls. */
:root{--ops-ink:#234a3c;--ops-muted:#647c70;--ops-line:#dbe5df;--ops-tint:#f4f8f5;--ops-green:#24694f}

/* Records retain the existing grouping and actions; metadata lives in details. */
.record-panel th{font-size:13px;font-weight:600;color:var(--ops-muted);background:#f1f6f2;padding:14px 16px}
.record-panel th:first-child{width:12%}.record-panel th:nth-child(2){width:26%}.record-panel th:nth-child(3){width:30%}.record-panel th:nth-child(4){width:24%}.record-panel th:nth-child(5){width:8%}
.record-panel .record-box-cell{vertical-align:top;padding:18px 16px;background:#f8fbf8}
.record-panel .record-copy-box strong{font-size:19px;line-height:1.35;color:var(--ops-ink)}
.record-panel .record-box-cell>.record-status{margin:10px 0 12px 24px;font-size:12px;padding:4px 8px;background:#e9f3e7;color:#447149}
.record-panel .record-status.closed{background:#eaf0ed;color:#64766c}
.record-panel .record-box-actions{margin-top:0!important;gap:6px!important}
.record-panel .record-box-actions .text-button{font-size:12px;padding:8px;min-height:34px;border:1px solid var(--ops-line);color:#456955;background:#fff}
.record-panel .record-box-actions .text-button:hover{background:#eaf3ec;border-color:#9fbaaa}
.record-panel .record-box-actions [data-edit-box]{color:#7e6545;background:#fdfbf7}
.record-panel .record-box-actions .box-details-action{color:var(--ops-green);font-weight:600}
.record-panel .record-order-cell,.record-panel .record-sku-code{font-size:14px;letter-spacing:.01em;line-height:1.55}
.record-panel .record-sku-cell,.record-panel .record-quantity-cell{padding-block:13px}
.record-panel .record-quantity-cell>strong{font-size:21px;color:var(--ops-green)}
.record-panel tbody tr:hover>td:not(.record-identity-cell):not(.record-box-cell){background:#edf5ef}
.record-panel .record-identity-cell{vertical-align:top;padding-top:20px;background:#fbfcfa}
.record-panel .record-identity-cell>strong{font-size:15px;letter-spacing:.02em}
.record-panel .box-group-start:not(:first-child)>td{border-top:8px solid #eef3ef}
.box-details-meta{padding:14px 16px;border:1px solid var(--ops-line);border-radius:8px;background:var(--ops-tint);font-size:14px;color:var(--ops-ink)}

/* Keep the current box and product above the forecast; empty space stays small. */
#workView .workspace-grid{align-items:start}
#workView .destination{background:#f4f8f3}
#workView #destinationBody{flex:0 0 auto;min-height:140px;padding:22px 24px;gap:0;background:#f1f7ef}
#workView #destinationBody:has(.destination-number){min-height:0;padding:22px 24px 18px}
#workView .destination-number{font-size:clamp(38px,4.2vw,64px);line-height:1.1;margin:12px 0 8px;color:#1e5c42}
#workView .destination-sku{font-size:16px;line-height:1.5;margin:6px 0;color:#355e49}
#workView .destination-qty{font-size:13px!important;margin:10px 0 12px;color:#617c69}
#workView .box-illustration{display:none}
#workView .waiting{font-size:18px;margin:0 0 6px;color:#4d7059}
#workView #destinationBody>.flow{margin-top:14px;font-size:12px}
#workView #destinationBody>p{margin-block:6px;font-size:13px}
#workView .box-sku-list{width:100%;max-width:470px;display:grid;gap:0;border:1px solid #dae6d8;border-radius:8px;overflow:hidden;background:#fff}
#workView .box-sku-list>div{display:flex;justify-content:space-between;gap:16px;padding:10px 14px;border-bottom:1px solid #e7eee5;font:14px/1.4 Consolas,monospace}
#workView .box-sku-list>div:last-child{border-bottom:0}
#workView .box-sku-list b{color:var(--ops-green);white-space:nowrap}
#workView .print-current{margin:12px 0 0;font-size:12px}
#workView .scan-origin-panel{margin:0 18px 16px;padding:16px 18px;border-radius:10px;border-color:#d5e2d6}
#workView .scan-origin-panel h3{font-size:21px;line-height:1.4;margin:5px 0 2px}
#workView .scan-origin-panel header small{font-size:12px;color:#657e6b}
#workView .scan-origin-panel .sku-images{gap:10px;margin:14px 0}
#workView .scan-origin-panel .sku-images img{width:120px;height:120px;border-radius:6px}
#workView .scan-origin-panel .button{font-size:12px;padding:8px 10px;min-height:34px}
#workView .scan-origin-panel>small{display:block;font-size:11px;line-height:1.6;color:#6f8174;margin-top:10px}
#workView .scan-origin-panel p:empty{display:none}
#workView .forecast-panel{margin:0 18px 16px;padding:14px 16px;background:#fcfdfb}
#workView .forecast-panel header{font-size:13px}
#workView .forecast-panel .forecast-request{margin-top:10px}
#workView .destination-footer{padding:12px 18px;font-size:11px;background:#fbfdfa}
#workView .quick-seal{padding:18px;gap:16px}
#workView .seal-controls{padding:12px 18px}
@media(min-width:1100px){
 #workView #destinationBody:has(.destination-number){display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:5px 16px;padding:18px 22px;text-align:left}
 #workView #destinationBody:has(.destination-number)>.badge{grid-column:1/-1;justify-self:start;margin-bottom:4px;font-size:12px}
 #workView .destination-number{grid-column:1;grid-row:2/5;font-size:clamp(32px,3.4vw,52px);margin:0;align-self:center}
 #workView .destination-sku{grid-column:2;grid-row:2;font-size:14px;margin:0}
 #workView #destinationBody:has(.destination-number)>p:not(.destination-qty){grid-column:2;grid-row:3;margin:0;font-size:11px;overflow-wrap:anywhere}
 #workView #destinationBody:has(.destination-number)>.destination-qty{grid-column:2;grid-row:4;font-size:12px!important;margin:0}
 #workView .box-sku-list{grid-column:1/-1;max-width:none;margin-top:8px}
 #workView .box-sku-list>div{padding:8px 12px}
 #workView .print-current{grid-column:1/-1;justify-self:end;margin-top:4px}
}

/* One consistent control and table rhythm for outbound work and batch review. */
#outboundView .button,#batchesView .button{min-height:38px;padding:9px 14px;border-radius:6px;font-size:13px;font-weight:500}
#outboundView .primary,#batchesView .primary{background:var(--ops-green);color:#fff;border-color:var(--ops-green);font-weight:600}
#outboundView .button:hover:not(:disabled),#batchesView .button:hover:not(:disabled){filter:brightness(.97)}
#outboundView .button:focus-visible,#batchesView .button:focus-visible,.record-panel button:focus-visible{outline:3px solid #8eaf9b;outline-offset:3px}
#outboundView .outbound-register-route{padding:22px 24px;gap:20px;background:#fbfdfb;border-bottom:1px solid var(--ops-line)}
#outboundView .outbound-register-route #outboundReceiver{width:240px;font-size:15px;height:44px;border-radius:6px}
#outboundView #outboundRouteChoices{gap:8px 16px;align-items:center}
#outboundView #outboundRouteChoices label{padding:7px 10px;border:1px solid transparent;border-radius:6px;font-size:14px}
#outboundView #outboundRouteChoices label:has(input:checked){background:#e8f2e9;border-color:#bfd4c3;color:#205f43}
#outboundView .outbound-register-heading{padding:18px 24px 12px;gap:12px;flex-wrap:wrap}
#outboundView .outbound-register-heading h2{font-size:18px;color:var(--ops-ink)}
#outboundView .outbound-register-heading>span{font-size:12px;color:var(--ops-muted)}
#outboundView .outbound-items-scroll{margin-inline:24px;border:1px solid var(--ops-line);border-radius:8px}
#outboundView .outbound-entry-table th,#batchesView .batch-master-table th{padding:13px 10px;background:#f0f5f1;color:#60796b;font-weight:600;font-size:12px;line-height:1.45}
#outboundView .outbound-entry-table td,#batchesView .batch-master-table td{padding:14px 10px;line-height:1.5;border-color:#e5ece6;font-size:13px}
#outboundView .outbound-entry-table tbody tr:nth-child(even),#batchesView .batch-master-table tbody tr:nth-child(even){background:#fafcf9}
#outboundView .outbound-entry-table tbody tr:hover,#batchesView .batch-master-table tbody tr:hover{background:#f0f6f1}
#outboundView .outbound-entry-table .outbound-completed-code{font:600 15px/1.5 Consolas,monospace;color:#215b42}
#outboundView .outbound-entry-table input{min-height:38px;font-size:13px;border-radius:5px;background:#fff}
#outboundView #outboundBoxCode{font-size:16px;min-height:46px;background:#f7fbf7;border-color:#6e9d82}
#outboundView .outbound-entry-table [data-entry-remove]{color:#9b5f46}
#outboundView #bulkAirwayForm{padding:18px 24px;margin:0;gap:12px}
#outboundView #bulkAirwayForm label{font-size:13px;max-width:560px}
#outboundView #bulkAirway{min-height:42px;margin:0;border-radius:6px;font-size:14px}
#outboundView .outbound-submit-bar{padding:18px 24px;border-top:1px solid var(--ops-line);background:#f7faf6;gap:18px}
#outboundView #reviewOutboundBatch{min-height:46px;min-width:150px;font-size:15px}
#outboundView #reviewOutboundBatch kbd{background:#eef5f0;color:#225b43;border:1px solid #c5d9cb;padding:3px 6px;font:600 12px/1.3 Consolas,monospace;border-radius:4px;margin-left:6px;opacity:1}
#outboundView #outboundSubmitCount{font-size:15px;color:var(--ops-ink)}
#outboundView #outboundSubmitHint{font-size:12px;line-height:1.6;color:var(--ops-muted)}
#outboundView #outboundSubmitHint.needs-attention{color:#99612b}
#batchesView .batch-master-heading{padding:20px 24px;background:#fbfdfb}
#batchesView .batch-filters-primary{gap:14px;padding-top:18px}
#batchesView .batch-advanced-filters{background:#f7faf7;border-color:var(--ops-line)}
#batchesView .batch-tools{margin:14px 24px;padding:0 14px;background:#fafcf9;border-color:var(--ops-line);border-radius:7px}
#batchesView .batch-tools>summary{padding:12px 0;font-size:13px;font-weight:500;color:var(--ops-muted);cursor:pointer}
#batchesView .batch-tools[open]>summary{border-bottom:1px solid var(--ops-line)}
#batchesView .batch-tools .batch-toolbar{padding-block:12px;margin:0;gap:8px}
#batchesView .batch-state{display:inline-block;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:600;white-space:nowrap}
#batchesView .batch-state.is-complete{background:#e7f2e8;color:#3e7148}
#batchesView .batch-state.is-incomplete{background:#fff4e1;color:#91652d}
#batchesView .batch-review{font-size:11px;color:#879388;margin-top:6px}
#batchesView .batch-review.is-reviewed{color:#42744c}
#batchesView .batch-master-table td:nth-child(4) button{font:600 14px/1.5 Consolas,monospace;color:#215e46}
#batchesView .batch-row-actions .text-button{font-size:12px;padding:4px 7px;border:1px solid var(--ops-line);border-radius:5px;background:#fff;margin:2px 5px 2px 0}
#batchesView .batch-row-actions [data-batch-action=delete]{color:#9b5f46}
#batchesView .batch-row-actions [data-batch-action=restore]{color:var(--ops-green)}

@media(max-width:1000px){
 .record-panel th:first-child{width:12%}.record-panel th:nth-child(2){width:29%}.record-panel th:nth-child(3){width:28%}.record-panel th:nth-child(4){width:23%}
 .record-panel .record-copy-box strong{font-size:17px}
 .record-panel .record-box-actions .text-button{font-size:11px;padding:7px 5px}
 #workView .scan-origin-panel .sku-images img{width:104px;height:104px}
}
@media(max-width:700px){
 #workView #destinationBody{padding:20px 16px;min-height:120px}
 #workView .scan-origin-panel,#workView .forecast-panel{margin-inline:12px}
 #workView .quick-seal{padding:14px;gap:12px}
 #outboundView .outbound-register-route,#outboundView .outbound-register-heading,#outboundView #bulkAirwayForm,#outboundView .outbound-submit-bar{padding-inline:16px}
 #outboundView .outbound-items-scroll{margin-inline:16px}
 #outboundView #bulkAirwayForm{flex-wrap:wrap}
 #outboundView #bulkAirwayForm label{min-width:180px}
 #batchesView .batch-tools{margin-inline:16px}
}

/* Server-side record pages preserve whole boxes and cross-page selections. */
.record-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #dbe5df;background:#f8fbf7;font-size:12px;color:#617a6b}.record-pagination[hidden]{display:none}.record-pagination>div{display:flex;align-items:center;gap:12px}.record-pagination .button{padding:8px 12px;min-height:36px}.record-pagination select{padding:7px 10px;min-height:36px;background:#fff;border:1px solid #9bb0a2;border-radius:6px;color:#244c3b}.record-pagination button:disabled{opacity:.45;cursor:default}.record-pagination #recordPageNumber{font-variant-numeric:tabular-nums;min-width:52px;text-align:center}

.record-box-deleted [data-print],.record-box-deleted [data-print-sku]{display:none}

/* SKU totals stay compact; provenance remains available per SKU without duplicating rows. */
#recordView th:nth-child(1){width:12%}#recordView th:nth-child(2){width:27%}#recordView th:nth-child(3){width:22%}#recordView th:nth-child(4){width:10%;text-align:center}#recordView th:nth-child(5){width:29%;text-align:left}
#recordView .record-quantity-cell{text-align:center}#recordView .record-source-cell{vertical-align:middle;padding:12px 18px}#recordView .record-source-cell summary{font-size:13px;color:#35634b;cursor:pointer;line-height:1.7}.record-source-cell summary span{display:inline-block;color:#829488;font-size:11px;margin-left:6px}.record-source-lines{display:grid;gap:8px;margin-top:10px;background:#f6f9f5;border-radius:7px;padding:12px}.record-source-lines>div{display:flex;gap:14px;justify-content:space-between;align-items:start;font-size:12px}.record-source-lines code{font:12px/1.7 Consolas,monospace;overflow-wrap:anywhere}.record-source-lines strong{white-space:nowrap;color:#37624b;font-variant-numeric:tabular-nums}
#boxDetailsDialog .detail-item-row>td:first-child{width:55%}#boxDetailsDialog .detail-item-row>.detail-quantity{width:18%}#boxDetailsDialog .detail-order-heading small{font-variant-numeric:tabular-nums}

/* Keep the fixed photo entry in the navigation rail, outside the scanner form. */
@media(min-width:761px){aside{overflow-y:auto;scrollbar-width:thin}aside>.nav,aside>.brand,aside>.warehouse,aside>.nav-label,aside>.side-note,aside>.operator{flex-shrink:0}}
aside>.origin-photo-qr{align-self:stretch;flex-shrink:0;width:100%;max-width:190px;margin:14px auto 18px;padding:10px 8px;background:#fff;gap:5px}
aside>.origin-photo-qr img{width:100%;max-width:160px;height:auto;aspect-ratio:1;object-fit:contain}aside>.origin-photo-qr strong{font-size:13px}aside>.origin-photo-qr small{font-size:10px;line-height:1.4}
@media(min-width:761px) and (max-height:850px){aside{padding-block:20px}aside>.warehouse{margin-block:18px}aside>.nav{padding-block:10px;margin-bottom:3px}aside>.origin-photo-qr{margin-block:10px}aside>.side-note{margin-top:12px}aside>.operator{margin-top:12px}}
@media(max-width:760px){aside>.origin-photo-qr{display:inline-flex;vertical-align:middle;width:auto;max-width:none;margin:10px 4px 0;padding:8px 12px}aside>.origin-photo-qr img,aside>.origin-photo-qr small{display:none}}

/* Move manual box targeting below open boxes, leaving the scan guidance unobstructed. */
#workView>.bottom-seal-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 24px;margin-top:20px;padding:16px 20px;border:1px solid #dbe5dc;border-radius:10px;background:#fff}
#workView>.bottom-seal-controls>#sealTarget{margin:0;font-size:13px;line-height:1.7}#workView>.bottom-seal-controls>details{min-width:0}#workView>.bottom-seal-controls>details[open]{grid-column:1/-1}#workView>.bottom-seal-controls .select-box-form{margin-bottom:0}
@media(max-width:650px){#workView>.bottom-seal-controls{grid-template-columns:1fr;padding:14px 16px;gap:8px}}

.open-box-scope{margin:0;padding:0 22px 12px;font-size:12px;line-height:1.6;color:#73877a}.open-box-station{display:block;font-size:11px;line-height:1.6;color:#6e8375}.open-box-card.open-box-other{background:#f7faf7;border-color:#dce5dc}.open-box-readonly{font-size:11px;color:#85958a;white-space:nowrap}

/* Make the active tracking number easy to verify from the scan position. */
#workView .current-parcel{flex-wrap:wrap;gap:6px 14px;align-items:center;padding:14px 16px}
#workView .current-parcel>span{flex:0 0 auto;font-size:12px;white-space:nowrap}
#workView #currentTrackingValue{flex:1 1 240px;min-width:0;max-width:100%;font-family:Consolas,"Cascadia Mono",monospace;font-size:clamp(24px,2.2vw,32px);font-weight:700;line-height:1.35;letter-spacing:.025em;text-transform:uppercase;color:#164d36;overflow-wrap:anywhere;word-break:break-all}
@media(max-width:650px){#workView #currentTrackingValue{font-size:24px;flex-basis:100%}}
