/* Warehouse: task-oriented navigation, task-first home, and touch-sized forms. */
body.is-warehouse-view>main>.status-notice,
body.is-warehouse-view>main>#finance-sync-status,
body.is-warehouse-view>main>footer{display:none!important}
.wh-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 26px}
body.is-warehouse-view .wh-quick-actions button{display:flex;align-items:center;gap:12px;min-width:0;min-height:98px;padding:16px;border:1px solid #465039;background:#242c20;color:#e9ecdf;border-radius:12px;text-align:left;box-shadow:none;transition:background .15s,border-color .15s}
body.is-warehouse-view .wh-quick-actions button:hover{background:#303b28;border-color:#a3b47e}
.wh-quick-actions svg{width:25px;height:25px;flex:none;color:#d0d891}
.wh-quick-actions button>span:not(.wh-quick-arrow){display:grid;gap:7px;min-width:0}
.wh-quick-actions strong{font-size:14px;font-weight:600;line-height:1.4}
.wh-quick-actions small{font-size:11px;font-weight:400;color:#b9c3ad;line-height:1.4}
.wh-quick-arrow{margin-left:auto;color:#c3ceaa;font-size:18px}
.wh-work-heading{padding:0 0 12px}.wh-work-heading h2{font-size:20px;margin:0}
.wh-work-heading h2>span{display:inline-block;margin-left:7px;color:#b6c799;font:15px ui-monospace,monospace}
.wh-work-stages{border:0;border-radius:0;gap:7px;background:transparent}
.wh-work-stages button{display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:44px;border:1px solid #394330!important;border-radius:7px;background:#1c2219;box-shadow:none!important}
.wh-work-stages .wh-work-index,.wh-work-stages small{display:none}
.wh-work-stages button>b{font:14px ui-monospace,monospace;letter-spacing:0;margin-left:auto}
.wh-work-stages button[aria-pressed=true]{border-color:#9dad77!important;background:#313d27}
.wh-work-controls{padding-top:12px}.wh-work-filters button{min-height:40px}
.wh-work-empty{min-height:200px}
body.is-warehouse-view .wh-work-row{min-height:90px}
body.is-warehouse-view :is(.wh-workspace,.wh-dialog) :is(button,a):focus-visible{outline:2px solid #d8e7a5;outline-offset:3px}
body.is-warehouse-view .wh-dialog :is(.wh-field,.wh-checklist label,.wh-opening-confirm){font-size:13px;line-height:1.5}
body.is-warehouse-view .wh-dialog :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){min-height:44px;font-size:14px}
body.is-warehouse-view .wh-dialog :is(button.primary,button.secondary,.wh-remove){min-height:44px;min-width:44px}
body.is-warehouse-view .wh-dialog-head button{width:44px;height:44px}
.wh-step-form [hidden]{display:none!important}
.wh-step-header{margin:0 0 18px}.wh-step-header ol{display:flex;gap:12px;justify-content:space-between;list-style:none;margin:0;padding:0}
.wh-step-header li{display:flex;align-items:center;gap:7px;color:#aab7a0;font-size:12px;line-height:1.3}
.wh-step-header li>span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #53624b;border-radius:50%;flex:none;font-size:11px}
.wh-step-header li[aria-current=step]{color:#e4edc4;font-weight:600}
.wh-step-header li[aria-current=step]>span{background:#d0d891;color:#28321d;border-color:#d0d891}
.wh-step-panel{min-height:270px}.wh-step-panel>.wh-section-head:first-child{margin-top:0}
.wh-step-form .wh-form-actions{position:sticky;bottom:-20px;z-index:10;display:flex;gap:10px;padding:14px 0;margin-top:16px;background:#19232f;border-top:1px solid #465447}
.wh-step-form .wh-form-actions .primary{margin-left:auto;max-width:100%;white-space:normal;line-height:1.4}
.wh-capture-review{margin-bottom:18px}.wh-capture-review h3{font-size:17px;color:#e5eddf;margin:0 0 12px}
.wh-capture-review p{font-size:13px;line-height:1.5;color:#bdcdb6;margin:5px 0;overflow-wrap:anywhere}
.wh-capture-review article{display:grid;gap:6px;padding:14px;margin-top:10px;border:1px solid #41513e;border-radius:9px;background:#213027;font-size:13px;overflow-wrap:anywhere}
.wh-capture-review article small{color:#b5c5ac}
.wh-pallet-options{max-height:55dvh;overflow-y:auto}
.wh-supplier-options{min-width:0;margin:4px 0;padding:11px;border:1px solid #43503e;border-radius:9px}
.wh-supplier-options legend{padding:0 6px;font-size:13px;color:#dce7d4;font-weight:600}
.wh-supplier-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.wh-supplier-options label{display:flex;align-items:center;gap:9px;min-width:0;min-height:44px;padding:9px 10px;border:1px solid #384733;border-radius:7px;background:#1b291e;color:#cedac4;font-size:12px;line-height:1.4;cursor:pointer}
.wh-supplier-options label:has(input:checked){border-color:#9eb479;background:#303e27;color:#e6f0d2}
.wh-supplier-options label:focus-within{outline:2px solid #d0d891;outline-offset:2px}
.wh-supplier-options label span{min-width:0;overflow-wrap:anywhere}
.wh-supplier-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
@media(max-width:520px){.wh-supplier-options>div{grid-template-columns:minmax(0,1fr)}.wh-supplier-options label{font-size:13px}}
@media(max-width:900px){.wh-quick-actions{gap:8px}body.is-warehouse-view .wh-quick-actions button{padding:12px;gap:8px}.wh-quick-arrow{display:none}.wh-quick-actions strong{font-size:13px}}
@media(max-width:760px){
 body.is-warehouse-view #sio-page-actions .sio-page-action{min-height:44px;font-size:13px}
 body.is-warehouse-view .wh-workspace .wh-summary{margin-bottom:12px;gap:12px 0}
 body.is-warehouse-view .wh-workspace .wh-summary>div{padding:4px 9px}
 body.is-warehouse-view .wh-workspace .wh-summary strong{font-size:24px;letter-spacing:-1px}
 body.is-warehouse-view .wh-workspace .wh-summary small{font-size:11px;color:#bac4ae}
 body.is-warehouse-view .wh-search-row input,.wh-work-search input{min-height:44px;font-size:16px!important}
 body.is-warehouse-view .wh-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0!important;border:0!important;overscroll-behavior:contain}
 body.is-warehouse-view .wh-dialog-content{padding:16px 14px calc(18px + env(safe-area-inset-bottom))}
 body.is-warehouse-view .wh-dialog-head{padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top))}
 body.is-warehouse-view .wh-dialog :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){font-size:16px;min-width:0;max-width:100%}
 body.is-warehouse-view .wh-dialog input[type=checkbox]{width:20px!important;height:20px!important;min-height:20px!important;margin:1px 0 0}
 body.is-warehouse-view .wh-dialog :is(.wh-fields,.wh-checklist,.wh-upload-form,.wh-trace-inputs){grid-template-columns:minmax(0,1fr)}
 body.is-warehouse-view .wh-dialog :is(fieldset,.wh-field){min-width:0}
 body.is-warehouse-view .wh-checklist label{min-height:44px;align-items:center}
 body.is-warehouse-view .wh-dialog :is(.wh-opening-confirm,.wh-document-list a){padding:12px;line-height:1.5;overflow-wrap:anywhere}
 body.is-warehouse-view .wh-dialog .wh-section-head{flex-wrap:wrap;gap:8px}
 .wh-step-header li{font-size:11px;gap:5px}.wh-step-header ol{gap:7px}
 .wh-step-panel{min-height:280px}
 .wh-step-form .wh-form-actions{bottom:calc(-18px - env(safe-area-inset-bottom));padding-bottom:calc(14px + env(safe-area-inset-bottom))}
 body.is-warehouse-view .wh-work-row{padding:15px 8px;gap:9px;border:1px solid #394330;border-radius:9px;margin-top:8px;background:#1b2218}
 .wh-work-copy strong{font-size:14px}.wh-work-row small{font-size:11px}.wh-work-person b,.wh-work-date b{font-size:12px}
 body.is-warehouse-view .wh-receipt-row{padding:15px 8px}.wh-receipt-copy b{overflow-wrap:anywhere}
 body.is-warehouse-view .wh-stock-card{padding:16px 8px}
 body.is-warehouse-view :is(.wh-workspace,.wh-dialog) :is(button.primary,button.secondary,button.textbtn){min-height:44px;white-space:normal}
 body.is-warehouse-view .wh-dialog :is(.wh-dispatch-actions,.wh-packet-actions){flex-wrap:wrap}
}
@media(max-width:520px){
 .wh-quick-actions{grid-template-columns:1fr;gap:7px;margin-bottom:22px}
 body.is-warehouse-view .wh-quick-actions button{min-height:72px;padding:13px 15px;gap:14px}
 .wh-quick-actions strong{font-size:14px}.wh-quick-actions small{font-size:12px}.wh-quick-arrow{display:block}
 .wh-work-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-work-stages button{padding:10px}
 .wh-work-stages button>span:not(.wh-work-index){font-size:12px}
 .wh-work-live{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.wh-quick-actions button{transition:none}}
