/* TX Warehouse: shared visual language for daily warehouse work. */
:root{--ink:#202b3c;--muted:#5d6a7c;--line:#dce1e7;--blue:#315b99;--amber:#926423}
body,.workspace{background:#f6f6f3;color:var(--ink)}
.rail{background:#171c23}.rail .eyebrow,.rail .meta{color:#9ca7b6}.nav button{color:#b7c0cd}.nav button:hover{background:#ffffff0b;color:#fff}.nav button.active{color:#fff;background:#2c3543;border-color:#4b596d;box-shadow:none}.nav button.active:before{background:#8fa9cf}.rail .logo{letter-spacing:-.035em}
.topbar{background:#fffffff5;border-bottom:1px solid #e0e3e7;box-shadow:none}.topbar .search{background:#f6f7f8;border-color:#e1e5e9}.topbar .search input::placeholder{color:#677487}.portal-toggle{background:#eef0f2;border-color:#dce1e6;box-shadow:none}.portal-toggle button{color:#627084}.portal-toggle button.active{color:#203c63;border:1px solid #ccd6e2;box-shadow:0 2px 5px #1d2d4610}.portal-token{background:#e3e9f2;color:#426294}.scope-pill{font-size:12px;font-weight:650;color:#596b81;border-left:1px solid var(--line);padding-left:18px;white-space:nowrap}.mobile-search{display:none}
h1,.overview-hero h1{color:#192637;letter-spacing:-.055em;font-weight:750}.page-head p,.hero-date{color:#606d7e}.eyebrow,.hero-kicker{color:#596b82}.page-head{margin-bottom:26px}.content{max-width:1650px;margin:0 auto 0 0;width:100%;box-sizing:border-box}.section-heading p{color:#647184}.section-heading{margin-top:26px}.section-heading h2{font-size:1.05rem}
.card{border:1px solid #dde2e7;box-shadow:0 2px 4px #1f2d3d03;border-radius:14px}.card-title{border-color:#e1e5e9}.meta,.muted,.hint,.date,.category-count{color:#617083}.metric .label,.product-total,.tracking-caption,.panel-note,.rank,.stock-value .meta{color:#5e6e83}.dashboard-metrics .meta,.insights-card .card-title p{color:#607086}.metric .number{color:#24384f}.metric-3 .number{color:#315b99}.metric-symbol{color:#607696;background:#edf1f6}.overview-hero{padding-bottom:20px;border-bottom:1px solid #dce1e6;margin-bottom:24px}.dashboard-bottom{margin-top:20px;margin-bottom:30px;gap:20px}.dashboard-panels{margin-top:20px}.dashboard-metrics{margin-bottom:20px}
button,.secondary{border-color:#ccd5de;color:#33465e;box-shadow:none}button:hover{background:#f1f4f7;border-color:#aab9cc}button.primary,.hero-actions .primary{background:#315b99;border-color:#315b99;color:white;box-shadow:0 3px 8px #27497414}button.primary:hover,.hero-actions .primary:hover{background:#264a80;border-color:#264a80}.portal-card .actions .primary{background:#edf2f9;color:#315580;border-color:#cdd9e8}.portal-card .actions .primary:hover{background:#e4ebf5}.hero-secondary{background:white;border-color:#ccd5de}.portal-card{border-color:#d7dfe8;box-shadow:none}.portal-monogram{background:#eef2f8;color:#3e5f88}.portal-stats strong{color:#253b55}.portal-stats span{color:#657389}.shared-pill{color:#536882;background:#edf1f5}.text-button,.panel-expand>summary{color:#315b99}.demand-track>span,.popular-row:first-child .demand-track>span{background:#537aa9}
.badge{font-weight:550;border-radius:5px}.badge.good{background:#edf4ef;color:#39694e}.badge.blue{background:#edf2f8;color:#3b608c}.badge.purple{background:#f0edf5;color:#675581}.badge.warn{background:#faf1df;color:#805c23}.badge.bad{background:#f9eaea;color:#97494c}.stock-pool-banner{background:#edf2f7;color:#426383;border-color:#d8e2ee}.stock-pool-banner p{color:#5f7288}.inventory-category th,th{color:#637083;background:#f9fafb;font-weight:650}.inventory-category>summary{background:#f8fafb}.inventory-category td,td{border-bottom-color:#e5e8ec}.stock-row:hover,.row-open:hover{background:#f3f6fa}.table-link:hover{color:#315b99}.tabs button.active{background:#edf2f8;color:#294e7d;border-color:#b8c8dc}.empty{padding:48px 24px}.empty p{color:#657287;max-width:470px;margin:10px auto 0;line-height:1.65}
input,select,textarea{color:#24364c;border-color:#ccd4de;background:#fff}input::placeholder,textarea::placeholder{color:#728096}input:focus,select:focus,textarea:focus{border-color:#507caf;box-shadow:0 0 0 3px #315b9913;outline:none}label{color:#56677c}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #4678b9;outline-offset:3px}.notice.info{color:#466689;background:#edf3fa;border-color:#d7e3f1}.purchase-summary{background:#edf2f7;color:#506b89;border-color:#d8e1ec}.purchase-summary strong,.financial .due,.financial .breakdown .total{color:#315b99}.pagination{color:#5c6b81}
.inbox-stack{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #d5dfeb;border-radius:13px;background:#edf2f8;padding:22px 24px;margin-bottom:20px}.inbox-stack strong{font-size:1.1rem;color:#29496e}.inbox-stack p{font-size:.8125rem;color:#5b6f88;margin-top:7px}.inbox-stack>span{font-size:.8125rem;color:#5b6f88;max-width:290px;line-height:1.6}.submission-summary{display:flex;gap:20px;align-items:center;padding:20px;border:1px solid #d7e2ef;border-radius:12px;background:#f2f6fa;margin-bottom:20px}.submission-summary strong{font-size:1.4rem;color:#264f7f}.paste-preview{max-height:52vh;overflow:auto;margin-top:20px;border:1px solid var(--line);border-radius:10px}.paste-preview th{position:sticky;top:0;z-index:1}.preview-issue{font-size:12px;line-height:1.6;color:#855e24;max-width:320px}
.shipping-intro{background:#f6f8fb}.shipping-columns,.shipping-box-title,.shipping-fields label,.shipping-sequence,.shipping-savebar p{color:#5b6f88}.shipping-customer .table-link{color:#3a6090}.shipping-row:focus-within{background:#f3f7fb}.shipping-row{border-bottom-color:#aebbc9}.shipping-savebar{border-color:#bfcddc;box-shadow:0 8px 28px #1e344a13}.shipping-add .text-button{color:#315b99}.shipping-address-text{color:#33475f}.shipping-box-title>span:first-child{color:#2e4d73}
dialog{border-color:#d8dfe7;border-radius:16px;box-shadow:0 24px 80px #12263c30}dialog::backdrop{background:#13233844;backdrop-filter:blur(2px)}.modal-head{position:sticky;top:0;z-index:5;border-bottom-color:#dce2e9;background:#fff}.modal-footer{position:sticky;bottom:0;z-index:5;border-top:1px solid #dce2e9;background:#fffffff5}.order-panel{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,calc(100vw - 60px));max-width:none;height:100dvh;max-height:100dvh;border-radius:0;border-top:0;border-bottom:0;border-right:0;overflow:auto}.order-panel .detail-columns{display:block}.order-panel .modal-body{padding:24px 28px}.order-panel .modal-section{margin-bottom:22px;border-bottom:1px solid #e0e6ec;padding-bottom:20px}.order-panel .modal-section:last-child{border-bottom:0}.order-panel .modal-head h2{line-height:1.6;max-width:490px}.order-panel .copy-block{font-size:14px;line-height:1.65;color:#3a506a}.order-actions{position:relative;margin-left:auto}.order-actions summary{list-style:none;cursor:pointer;border:1px solid #ccd5de;border-radius:8px;padding:11px 14px;color:#566a83;font-size:13px}.order-actions summary::-webkit-details-marker{display:none}.order-actions[open]>.actions{position:absolute;right:0;top:48px;z-index:4;background:#fff;border:1px solid var(--line);box-shadow:0 8px 28px #12263c20;border-radius:10px;padding:10px;min-width:190px;display:flex;flex-direction:column;align-items:stretch}.order-actions:not([open])>.actions{display:none}.order-submitted{padding-bottom:18px;margin-top:5px}.change-field{display:block;font-size:13px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.change-field strong{display:block;color:#415e80}.activity{grid-template-columns:130px 105px minmax(0,1fr) auto;gap:18px}.activity>span,.activity>strong{overflow-wrap:anywhere}.account-security p{max-width:560px}
@media(max-width:1180px){.scope-pill{display:none}.topbar .search{max-width:300px}}
@media(max-width:800px){.mobile-search{display:inline-flex;font-size:12px;padding:9px;border-color:#d5dee9}.topbar{gap:7px}.topbar .portal-toggle{margin-right:auto}.order-panel{width:100%;border:0}.order-panel .modal-body{padding:20px}.order-panel .modal-head{padding:16px 20px}.order-panel .modal-head h2{font-size:1rem}.inbox-stack{align-items:start;padding:18px;flex-direction:column;gap:10px}.inbox-stack>span{max-width:none}.scope-pill{display:none}.activity{grid-template-columns:90px minmax(0,1fr);gap:10px}.activity>span:nth-child(3){grid-column:1/-1}.activity>button{grid-column:2;justify-self:end}.submission-summary{padding:16px;gap:12px;flex-wrap:wrap}.dashboard-bottom{margin-bottom:22px}.topbar .nav-toggle{font-size:20px}.dashboard-metrics .number{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Portal scope, reship selection and receiving intake. */
.single-portal{grid-template-columns:1fr}.single-portal .portal-card{max-width:none}.single-portal .portal-stats{max-width:650px}.portal-toggle button{white-space:nowrap}.paste-destination{border:1px solid #cbd7e6;background:#f3f6fb;border-radius:12px;padding:18px 20px;margin-bottom:22px}.paste-destination .eyebrow{display:block;margin-bottom:10px}.paste-destination select{font-weight:650}.paste-destination .hint{margin:10px 0 0}.remember-device{margin:12px 0 18px!important;align-items:flex-start;line-height:1.5}.check-row input{width:auto;flex:none}.device-signin{max-width:560px}.account-security{gap:24px;align-items:start}.device-signin .hint:first-child{margin-top:0}.history-delivery-note{font-size:12px;color:#66758b;padding:12px 20px;margin:0}.history-card td:last-child{white-space:nowrap}.reship-mark{margin-top:6px;color:#315b99}.reship-context{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #d7e0eb;border-radius:10px;background:#f6f8fb;margin-bottom:20px}.reship-mode{border:0;padding:0;margin:20px 0 12px;display:flex;flex-wrap:wrap;gap:22px}.reship-mode legend{font-size:14px;font-weight:650;margin-bottom:10px}.reship-mode .check-row{margin:0}.reship-select-actions{margin:10px 0}.reship-items{border:1px solid #ced8e5;border-radius:10px;overflow:hidden}.reship-item{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0!important;border-bottom:1px solid #d1dbe7}.reship-item:last-child{border:0}.reship-item>input[type=checkbox]{width:17px;height:17px;flex:none}.reship-item>input[type=number]{width:78px;flex:none}.reship-item .meta{display:block;margin-top:4px}.reship-item>input:disabled{opacity:.75}.reship-address{margin-top:20px}.intake-metadata{display:flex;gap:24px;flex-wrap:wrap;padding:14px 16px;background:#f3f6fa;border:1px solid #dce3ed;border-radius:9px}.intake-metadata>div{display:grid;gap:5px;min-width:110px}.intake-metadata span{font-size:12px;color:#68788c}.intake-metadata strong{font-size:14px;color:#2c4565}
@media(max-width:760px){.account-security{display:block}.device-signin{margin-top:20px}.portal-toggle button{padding:8px 9px;font-size:12px}.portal-toggle button[data-action=home-scope]{display:inline-flex}.reship-context{flex-direction:column}.reship-item{padding:12px;gap:8px}.reship-item>input[type=number]{width:64px}.reship-item .grow{min-width:0;overflow-wrap:anywhere}.intake-metadata{gap:16px}.paste-destination{padding:15px}.history-card .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.dashboard-bottom .recent-card .activity{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:start}.dashboard-bottom .recent-card .activity>span:first-child{grid-column:1;grid-row:1}.dashboard-bottom .recent-card .activity>strong{grid-column:1;grid-row:2}.dashboard-bottom .recent-card .activity>span:nth-child(3){grid-column:1/-1;grid-row:3;line-height:1.6}.dashboard-bottom .recent-card .activity>button{grid-column:2;grid-row:1/3;align-self:center}.reship-shipping{margin:20px 0;border:1px solid #d2dce8;border-radius:10px;padding:15px 18px;background:#f8fafc}.reship-shipping summary{font-size:14px;font-weight:650;color:#3f5d81;cursor:pointer}.reship-shipping .form-grid{margin-top:18px}.reship-shipping>.hint{margin:14px 0 0}

/* Portal identities and audited reimbursement corrections. */
.brand-mark{display:block;width:29px;height:29px;flex:none;object-fit:contain;filter:drop-shadow(0 1px 1px #14223515)}
.portal-toggle button.active{background:#fff}.portal-monogram{background:transparent!important;padding:0!important;border:0!important;border-radius:12px;box-shadow:none!important}.portal-monogram .brand-mark{width:48px;height:48px}.portal-brand{gap:14px}.portal-toggle button[data-action=home-scope]{gap:8px}
.adjustment-card .card-title p{margin:6px 0 0}.accounting-note{padding:0 24px 16px;color:#68758a;font-size:13px;line-height:1.6;margin:0}.adjustment-amount{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:#354e70}.adjustment-amount.credit{color:#347163}.accounting-history{margin-top:22px;border-top:1px solid #dce3ea;padding-top:18px}.accounting-history summary{cursor:pointer;color:#3a5578;font-weight:650;font-size:14px}.accounting-change{margin-top:14px;background:#f6f8fa;border:1px solid #e0e6ed;border-radius:10px;padding:14px 16px}.accounting-change strong{font-size:12px;color:#647287}.accounting-change p{margin:8px 0 0;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
@media(max-width:450px){.brand-mark{width:29px;height:29px}.portal-toggle button[data-action=home-scope]>span:last-child{display:inline}.portal-toggle button{gap:5px}.portal-monogram .brand-mark{width:43px;height:43px}.accounting-note{padding:0 18px 15px}}

/* Daily-work refinements */
.warehouse-scope{display:flex;align-items:center;gap:10px;font-size:14px}.warehouse-scope img{width:32px;height:32px}.home-layout{display:flex;flex-direction:column;gap:16px}.home-layout>.section-heading,.home-layout>.overview-hero,.home-layout>.dashboard-metrics,.home-layout>.dashboard-panels,.home-layout>.dashboard-bottom,.home-layout>.batch-hold-banner,.home-layout>.restock-ready-banner{margin:0}.home-quiet>.at-glance-heading{order:1}.home-quiet>.dashboard-metrics{order:2}.home-quiet>.dashboard-panels{order:3}.home-quiet>.today-heading{order:4}.home-quiet>.portal-work{order:5}.home-quiet>.issue-counter{order:6}.home-quiet>.dashboard-bottom{order:7}.home-quiet>.overview-hero{order:0}.home-quiet .portal-card{padding:18px 22px}.home-quiet .portal-stats{margin:12px 0}.home-quiet .portal-stats strong{font-size:24px}.issue-counter{display:flex;align-items:center;gap:20px;width:100%;text-align:left;padding:18px 22px;cursor:pointer;border:1px solid var(--line)}.issue-counter>span:first-child{flex:1}.issue-counter strong,.issue-counter .meta{display:block}.issue-counter b{font-size:28px;font-weight:650}.issue-counter.has-issues{border-color:#b87a3f;background:#fff9f1}.week-picker{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 22px}.week-picker label{max-width:180px}.receipt-history>summary,.printer-help>summary,.stock-history>summary{padding:18px 22px;cursor:pointer;font-weight:600}.printer-help{margin-top:18px}.printer-help p{line-height:1.6}.stock-history>summary{padding:10px 0}.stock-history{margin-top:10px}.pending-save{display:flex;flex-wrap:wrap;align-items:center;gap:14px}.pending-save p{flex:1;margin:0}.shortage-text{color:#94602f;font-weight:600}.setup-steps li{line-height:1.7;margin-bottom:12px}.draft-notice{font-size:13px}.notice dl{display:grid;grid-template-columns:1fr 2fr;gap:8px;font-size:12px}.notice dd{margin:0;overflow-wrap:anywhere}html[data-density=compact] .content td{padding-top:8px;padding-bottom:8px}html[data-density=compact] .shipping-row{padding-top:16px;padding-bottom:16px}html[data-density=compact] .list-row{padding-top:8px;padding-bottom:8px}@media(max-width:600px){.week-picker{gap:8px}.week-picker strong{flex-basis:100%;order:2}.warehouse-scope strong{font-size:12px}.issue-counter{padding:16px}.home-layout{gap:16px}.pending-save{display:block}.pending-save button{margin-top:10px}}

.batch-review-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.batch-review-order{padding:24px;margin:0 0 22px;border-bottom:2px solid #b8c3d7}.batch-review-order>header{display:flex;align-items:center;gap:14px;margin-bottom:20px}.batch-review-order>header h2{margin:0 0 5px;font-size:18px}.batch-review-order>header .table-link{margin-left:auto}.batch-review-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px}.batch-review-order.has-review-issues{border-color:#bb8552}.batch-review-order .product-row{grid-template-columns:minmax(160px,1fr) 70px 80px}.batch-review-order .check-row{margin-top:14px;font-size:12px}.batch-review-order .review-problems{margin-bottom:18px}.batch-review-order .form-grid{gap:12px}.review-stock{margin-top:12px}.source-product{margin:4px 0 14px}@media(max-width:850px){.batch-review-columns{grid-template-columns:1fr}.batch-review-order{padding:18px}.batch-review-order .product-row{grid-template-columns:minmax(100px,1fr) 60px 70px}}

/* Proof thumbnails open a separate dialog, retaining the matching form underneath. */
.proof-order-filter{margin-top:16px}.photo-thumbnail{flex:0 0 90px;padding:0;overflow:hidden;background:#f5f7fa;text-align:center;border:1px solid #cbd5e1}.photo-thumbnail img{display:block;width:90px;height:80px;object-fit:cover}.photo-thumbnail span{display:block;font-size:11px;padding:5px}.photo-lightbox{width:min(1240px,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;padding:0;overflow:hidden;--photo-zoom:1}.photo-lightbox[open]{display:flex;flex-direction:column}.photo-preview-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #dce2e9;flex-shrink:0}.photo-preview-toolbar>strong{min-width:0;overflow-wrap:anywhere}.photo-preview-toolbar .actions{flex-shrink:0}.photo-preview-stage{flex:1;min-height:0;overflow:auto;background:#15202c;padding:12px}.photo-preview-stage img{display:block;width:calc(100% * var(--photo-zoom));height:calc(100% * var(--photo-zoom));object-fit:contain;max-width:none;max-height:none}.photo-preview-caption{padding:10px 16px;font-size:12px;color:#526579;flex-shrink:0}#photo-zoom-level{min-width:42px;font-size:12px;text-align:center}.photo-lightbox::backdrop{background:#0d172bcc}@media(max-width:700px){.photo-preview-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.photo-preview-toolbar .actions{gap:5px;flex-wrap:wrap}.photo-preview-toolbar button{padding:8px}.photo-lightbox{width:calc(100vw - 12px);height:calc(100dvh - 12px)}.photo-assignment{flex-wrap:wrap}.photo-assignment .photo-order{flex:1 1 100%;min-width:0}}

.saved-proof-preview{display:block;width:100%;padding:0;border:0;border-radius:8px;overflow:hidden}.saved-proof-preview img{display:block;width:100%;object-fit:cover;cursor:zoom-in}

/* Lot-specific testing ledger; deliberately separate from stock balances. */
.testing-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.testing-overview>.card{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.testing-overview span{font-size:13px;color:#62738a}.testing-overview strong{font-size:28px;letter-spacing:-.04em}.testing-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:18px 24px;background:#f7f9fc;border-bottom:1px solid var(--line)}.testing-filters>input{flex:1;min-width:180px}.testing-filters>select{width:auto;max-width:200px}.testing-filters .check-row{margin:0;white-space:nowrap}.testing-record{padding:24px;border-bottom:1px solid #d1dbe7}.testing-record-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}.testing-record h2{font-size:18px;letter-spacing:-.025em;overflow-wrap:anywhere}.testing-record .eyebrow{display:block;margin-bottom:7px;font-size:10px}.testing-record-heading p{font-size:12px;color:#65748a;margin-top:8px;overflow-wrap:anywhere}.testing-record-meta{display:grid;grid-template-columns:1.2fr .8fr .8fr 1.4fr;gap:20px;margin:22px 0}.testing-record-meta dt{font-size:11px;color:#6a7a8e;margin-bottom:6px}.testing-record-meta dd{margin:0;font-size:13px;overflow-wrap:anywhere}.testing-result{white-space:pre-wrap;padding:14px 16px;border-left:3px solid #7191b8;background:#f4f7fb;font-size:13px;line-height:1.7}.testing-record-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.testing-record-actions .meta{margin-left:auto;font-size:11px}.testing-notes{margin-top:14px;font-size:13px}.testing-notes p{white-space:pre-wrap;margin:12px 0;line-height:1.65}.testing-change{padding:15px 0;border-bottom:1px solid #d7e1ed;font-size:13px}.testing-change p{white-space:pre-wrap;margin-top:8px;overflow-wrap:anywhere}.testing-changes{margin-top:22px}.testing-scope-note{max-width:750px;margin-top:18px}
.test-intake{padding:14px 16px;border:1px solid #c6d4e6;background:#f4f7fc;border-radius:10px;align-items:flex-start;margin:0 0 20px}.test-intake input{width:18px;height:18px;margin-top:3px}.test-intake small{display:block;font-weight:400;color:#62738a;font-size:12px;margin-top:5px;line-height:1.5}.test-notice strong{display:block}.test-notice p{margin-top:7px}.inbox-mode-label{margin:0}.inbox-mode-label select{width:auto;font-size:13px}.camera-upload{display:none}.photo-retry-actions{display:flex;gap:6px;flex-wrap:wrap;max-width:175px;justify-content:flex-end}.photo-assignment .grow{min-width:0;overflow-wrap:anywhere}.photo-assignment .photo-order{min-width:180px;max-width:340px}.photo-preview-footer{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #d7e1ed}.photo-preview-footer>span{font-size:12px}.qr-crop-surface{position:relative;max-width:850px;margin:auto;touch-action:none;cursor:crosshair}.qr-crop-surface img{width:100%;height:auto;display:block;pointer-events:none}.qr-crop-dialog .photo-preview-stage{padding:16px}.qr-crop-surface #qr-crop-box{position:absolute;border:3px solid #66ddff;box-shadow:0 0 0 1px #0009;background:#66ddff15;pointer-events:none}#qr-crop-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:12px 16px;border-top:1px solid #d7e1ed}#qr-crop-controls label{font-size:12px;margin:0}#qr-crop-controls input{display:block;width:100%;padding:0;margin-top:6px;height:30px}.mobile-search svg{display:block;width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none}

/* Phone workflows use one column and keep the primary actions reachable. */
@media(max-width:700px){
 input,select,textarea{font-size:16px}.content{padding:20px 12px 36px}.workspace,.content,.card,.form-grid>*{min-width:0}button{min-height:42px}.topbar{height:66px;padding:0 10px;gap:6px}.topbar .nav-toggle,.topbar .mobile-search{width:36px;height:42px;padding:8px;flex:none}.topbar .language{min-width:76px;width:76px;font-size:12px;padding:8px 2px}.topbar .portal-toggle{min-width:0;padding:3px}.portal-toggle button{padding:5px 7px;min-height:42px}.portal-toggle .brand-mark{width:25px;height:25px}.warehouse-scope{font-size:12px;min-width:0;margin-right:auto;gap:6px}.warehouse-scope img{width:25px;height:25px}.page-head{margin-bottom:20px;gap:14px}.page-head>.actions{width:100%}.page-head>.actions>button{flex:1}.page-head p{font-size:13px;line-height:1.6}.hero-actions{flex-direction:row;flex-wrap:wrap}.overview-hero{flex-direction:column;align-items:stretch}.hero-actions>button{flex:1}.portal-card{padding:20px}.shared-pill{font-size:10px}.tabs{gap:18px;overflow-x:auto;white-space:nowrap}.tabs button{flex:none}.table-toolbar{flex-wrap:wrap;padding:14px}.table-toolbar .right{margin-left:auto}.inbox-toolbar>strong{flex:1}.inbox-toolbar>.right{width:100%;margin:0}.inbox-toolbar>.right button{width:100%}.inbox-stack{padding:18px;gap:12px;align-items:start;flex-direction:column}.inbox-stack>span{max-width:none;font-size:12px}.table-scroll{max-width:100%}
 dialog:not(.photo-lightbox){width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:12px}.order-panel{width:100%!important;height:100dvh;max-height:100dvh!important;border-radius:0!important}.modal-head,.order-panel .modal-head{padding:13px 16px;gap:10px}.modal-head h2{font-size:17px;overflow-wrap:anywhere}.modal-body,.order-panel .modal-body{padding:17px 16px}.modal-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap}.modal-footer>button{flex:1;min-width:100px;font-size:13px}.form-grid{gap:14px}.field-row{align-items:start}.product-row{grid-template-columns:minmax(0,1fr) 60px 74px 30px;gap:5px}.product-row select,.product-row input{padding:10px 6px;min-width:0;font-size:16px}.product-row button{padding:0;min-height:42px}.submission-summary{padding:16px;gap:10px;flex-wrap:wrap}.paste-preview{max-height:44dvh}
 .batch-review-order{padding:18px 14px}.batch-review-order>header{flex-wrap:wrap;gap:9px}.batch-review-order>header h2{font-size:16px;overflow-wrap:anywhere}.batch-review-order>header .table-link{margin-left:0}.batch-review-order .product-row{grid-template-columns:minmax(0,1fr) 60px 74px}.batch-review-columns{gap:18px}.batch-review-order .product-row select,.batch-review-order .product-row input{font-size:16px}.shipping-row{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px 15px}.shipping-address{border-left:2px solid #d0dcea;padding-left:13px}.shipping-address-text{font-size:14px;line-height:1.65;overflow-wrap:anywhere}.shipping-fields{grid-template-columns:minmax(0,1fr);gap:12px}.shipping-fields label{font-size:12px}.shipping-fields input{font-size:16px;min-height:44px}.shipping-box{padding:13px}.shipping-customer strong{font-size:17px;overflow-wrap:anywhere}.shipping-toolbar{padding:15px;gap:13px}.shipping-intro{padding:19px 15px;align-items:start}.shipping-intro>.badge{font-size:11px}.shipping-intro h2{font-size:17px}.shipping-savebar{position:sticky;bottom:0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));gap:10px;border-radius:12px;margin-top:16px;background:#fff;z-index:4}.shipping-savebar p{display:none}.shipping-savebar strong{font-size:12px}.shipping-savebar .actions{width:100%;display:grid;grid-template-columns:.8fr 1.4fr;gap:8px}.shipping-savebar button{min-width:0;min-height:46px;padding:9px;font-size:12px;line-height:1.35}
 .upload-zone{padding:20px 14px}.upload-zone input{width:100%;max-width:100%;font-size:13px}.camera-upload{display:block;margin-top:16px}.proof-order-filter{align-items:flex-start}.photo-assignment{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:13px}.photo-assignment .photo-order{grid-column:1/-1;width:100%;max-width:none;min-width:0}.photo-retry-actions{grid-column:1/-1;max-width:none;justify-content:flex-start}.photo-retry-actions button{flex:1;font-size:12px;padding:8px}.photo-assignment .grow strong{font-size:12px}.photo-assignment .hint{font-size:12px}.photo-lightbox{width:calc(100vw - 8px);height:calc(100dvh - 8px);border-radius:10px}.photo-preview-toolbar{padding:12px;gap:9px}.photo-preview-toolbar strong{font-size:13px}.photo-preview-toolbar .actions{width:100%;gap:5px}.photo-preview-toolbar button{font-size:11px;padding:7px;flex:1}.photo-preview-caption{padding:10px 12px;font-size:11px;line-height:1.55}.photo-preview-footer{padding:12px;align-items:stretch;flex-direction:column}.photo-preview-footer button{width:100%}#qr-crop-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 16px;padding:10px 12px}.qr-crop-dialog .photo-preview-stage{padding:9px}
 .testing-overview{gap:8px}.testing-overview>.card{padding:13px;flex-direction:column;align-items:start;gap:7px}.testing-overview span{font-size:11px}.testing-overview strong{font-size:23px}.testing-filters{padding:14px;gap:10px}.testing-filters>input{flex-basis:100%;min-width:0}.testing-filters>select{flex:1;max-width:none;min-width:0;font-size:13px}.testing-filters .check-row{flex-basis:100%;font-size:13px}.testing-record{padding:19px 15px}.testing-record h2{font-size:16px}.testing-record-heading{gap:10px}.testing-record-heading>.badge{font-size:11px}.testing-record-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.testing-record-actions{gap:8px}.testing-record-actions .meta{width:100%;margin:3px 0 0}.testing-record-actions button{font-size:12px}.testing-result{font-size:12px;padding:12px}.testing-scope-note{padding:0 3px;font-size:11px}
}
@media(max-width:380px){.portal-toggle button{padding:5px}.portal-toggle button>span:last-child{display:none!important}.topbar .language{width:70px;min-width:70px}.shared-pill{display:none}.testing-record-heading{flex-direction:column}.photo-retry-actions button{font-size:11px}}
/* Compact, in-page suggestions and lot-specific testing. */
.warehouse-picker{position:relative;min-width:0}.warehouse-picker>label{display:block;margin-bottom:8px;color:#61728b;font-size:13px}.picker-control{position:relative}.picker-control>input{padding-right:44px!important;width:100%;font-size:14px}.picker-control>button{position:absolute;inset:1px 1px 1px auto;width:40px;padding:0;background:transparent;border:0;color:#64748b;font-size:19px;box-shadow:none}.picker-list{position:absolute;top:100%;left:0;right:0;z-index:15;background:#fff;border:1px solid #c7d3e1;border-radius:10px;box-shadow:0 12px 28px #243a581a;max-height:220px;overflow:auto;margin-top:5px;padding:5px}.picker-list[hidden]{display:none}.picker-list>[role=option]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;width:100%;border:0;background:transparent;border-radius:6px;padding:9px 11px;text-align:left;font-size:13px;font-weight:500;box-shadow:none}.picker-list>[role=option]:hover,.picker-list>[aria-selected=true]{background:#edf3fa;color:#244e83}.picker-list small{font-size:10px;color:#697c94;text-align:right;max-width:40%}.picker-empty{padding:12px;font-size:12px;color:#63748b}.testing-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:#526278}.testing-status i{width:7px;height:7px;border-radius:50%;background:#8b97a7;flex-shrink:0}.testing-status.sent i{background:#c48b20}.testing-status.complete i{background:#288764}.testing-test-choices{border:1px solid #d5dfeb;padding:16px;border-radius:10px;min-width:0}.testing-test-choices legend{font-size:13px;color:#61728b;padding:0 5px}.testing-test-choices>div{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:14px}.testing-test-choices .check-row{margin:0;font-size:13px}.testing-test-choices>label{font-size:12px;color:#61728b}.testing-link-info{padding:12px 14px;background:#f4f7fb;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#61728b}.inventory-lot-row[hidden]{display:none}.inventory-lot-row>td{padding:0!important;background:#f7f9fc}.inventory-lot-panel{padding:18px 24px;white-space:normal}.inventory-lot-panel>.hint{margin:8px 0 15px}.inventory-lot{display:flex;align-items:center;gap:18px;padding:12px 0;border-top:1px solid #d8e1ec}.inventory-lot>div{flex:1;min-width:0}.inventory-lot strong{font-size:13px;overflow-wrap:anywhere}.inventory-lot .meta{display:block;font-size:11px;margin-top:5px}.inventory-lot .small{font-size:12px}.stock-row [data-action=inventory-lots]{white-space:nowrap}
@media(max-width:680px){.picker-control>input{font-size:16px!important}.picker-list>[role=option]{min-height:44px;font-size:13px}.testing-test-choices>div{gap:15px}.testing-link-info{align-items:start;flex-direction:column}.inventory-lot-panel{padding:16px}.inventory-lot{flex-wrap:wrap;gap:10px}.inventory-lot>div{flex-basis:100%}.inventory-lot .small{margin-left:auto}}
.inventory-testing-summary{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid transparent;background:transparent;border-radius:8px;box-shadow:none;white-space:nowrap}.inventory-testing-summary:hover{background:#eef3fa;border-color:#d6e0ec}.testing-summary-arrow{color:#8090a6;font-size:20px}.testing-failed-count{color:#a83737;font-size:11px;font-weight:650}.has-fail .testing-status i{background:#b64040}.testing-record-statuses{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.testing-outcome{display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;font-size:11px;font-weight:600;white-space:nowrap;background:#eef1f5;color:#6b7789}.testing-outcome.pass{background:#e8f4ed;color:#236a47}.testing-outcome.fail{background:#fbeaea;color:#a03232}.testing-outcome.inconclusive{background:#fff3dc;color:#906114}#modal:has(.testing-quick-view){width:min(1140px,calc(100vw - 40px));max-width:1140px}.testing-quick-heading h3{font-size:21px;letter-spacing:-.025em;margin:0 0 6px}.testing-quick-counts{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.testing-quick-counts>span{padding:7px 11px;border:1px solid #d9e2ee;border-radius:7px;font-size:12px;color:#546880;background:#f7f9fc}.testing-quick-table{overflow:auto;border:1px solid #d6e0ec;border-radius:9px;margin-bottom:18px}.testing-quick-table table{width:100%;font-size:12px}.testing-quick-table th{font-size:10px;white-space:nowrap;color:#60728c;background:#f5f8fc;padding:12px;text-align:left}.testing-quick-table td{padding:14px 12px;vertical-align:middle;border-top:1px solid #dce4ef;white-space:normal}.testing-quick-table td:first-child{max-width:190px}.testing-quick-table .meta{display:block;font-size:10px;margin-top:6px}.testing-quick-actions button{font-size:11px;margin:3px 0}.testing-quick-view>.hint{font-size:11px;line-height:1.7}
@media(max-width:680px){#modal:has(.testing-quick-view){width:100%;max-width:none}.testing-record-statuses{gap:7px;align-items:flex-end;flex-direction:column}.testing-quick-table{border:0;overflow:visible}.testing-quick-table table,.testing-quick-table tbody,.testing-quick-table tr,.testing-quick-table td{display:block}.testing-quick-table thead{display:none}.testing-quick-table tr{border:1px solid #d8e1ed;border-radius:10px;margin-bottom:12px;padding:8px 13px;background:#fafbfd}.testing-quick-table td{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.3fr);gap:10px;border:0;padding:8px 0;font-size:12px;max-width:none!important}.testing-quick-table td:before{content:attr(data-label);color:#6c7c91;font-size:11px}.testing-quick-table td>.meta{grid-column:2;margin-top:0}.testing-quick-table .testing-status,.testing-quick-table .testing-outcome{justify-self:start}.testing-quick-table .testing-quick-actions{display:flex;justify-content:flex-end;border-top:1px solid #e0e6ef;margin-top:5px}.testing-quick-actions:before{display:none}.testing-quick-heading h3{font-size:18px}}

/* Expanded review keeps search, quantity and units visible together. */
.review-product-row {display:grid;grid-template-columns:minmax(130px,1fr) 64px 76px auto;align-items:end;gap:10px;margin:12px 0;}
.review-product-row label {font-size:12px;color:var(--muted);display:grid;gap:6px;}
.review-product-row .warehouse-picker {min-width:0;}
.review-product-row .source-product {grid-column:1/-1;margin:0;}
.review-conflict dl {margin:10px 0;}
.review-conflict dd {margin:0 0 8px;overflow-wrap:anywhere;}
.testing-filters {flex-wrap:wrap;}
.client-update {position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:120;display:flex;align-items:center;gap:16px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);box-shadow:0 8px 30px #0002;max-width:calc(100vw - 24px);}
@media(max-width:700px){.review-product-row{grid-template-columns:1fr 1fr auto;}.review-product-row .warehouse-picker{grid-column:1/-1;}.client-update{width:calc(100vw - 24px);}.testing-filters select{min-width:130px;}}

/* Pay-period drilldowns */
.payment-breakdown-links{display:grid;gap:10px;margin:18px 0}.payment-breakdown-link{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;gap:16px;align-items:center;width:100%;padding:15px 16px;text-align:left;border:1px solid #e2e7f2;border-radius:10px;background:#fafbff}.payment-breakdown-link strong{font-variant-numeric:tabular-nums}.payment-breakdown-link.selected{border-color:#b8c6ee;background:#eef2fc;color:#30488e}.payment-breakdown-link>span:last-child{color:#7a89af}dialog.payment-panel{width:min(1120px,calc(100vw - 32px));max-width:1120px}.payment-panel .payment-breakdown-links{grid-template-columns:repeat(3,minmax(0,1fr))}.payment-panel .payment-breakdown-link{grid-template-columns:minmax(0,1fr) 16px;gap:7px}.payment-panel .payment-breakdown-link strong{grid-row:2;grid-column:1;font-size:1.3rem}.payment-panel .payment-breakdown-link>span:last-child{grid-row:1 / 3;grid-column:2}.payment-detail-heading p{margin:0 0 6px}.payment-detail-caption{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}.payment-detail-caption h3{margin:0}.payment-detail-table td:first-child{white-space:nowrap}.payment-detail-table tfoot th,.payment-detail-table tfoot td{padding:16px 12px;border-top:1px solid #e2e7f2;background:#f8faff}.payment-detail-table tfoot th{text-align:right}.payment-detail-total,.payment-reconciliation>div{display:flex;justify-content:space-between;gap:20px}.payment-detail-total{border-top:1px solid #e2e7f2;margin-top:20px;padding-top:18px;font-weight:650}.payment-reconciliation{margin-top:20px}.payment-reconciliation>div{margin:10px 0;font-variant-numeric:tabular-nums}@media(max-width:650px){.payment-panel .payment-breakdown-links{grid-template-columns:1fr}.payment-panel .payment-breakdown-link{grid-template-columns:minmax(0,1fr) auto 16px}.payment-panel .payment-breakdown-link strong{grid-row:auto;grid-column:2;font-size:1rem}.payment-panel .payment-breakdown-link>span:last-child{grid-row:auto;grid-column:3}.payment-detail-table{margin-right:-4px}}

/* Confirmed shortage follow-up */
.oos-overview{display:flex;gap:28px;margin:0 0 20px;color:#7a87a5}.oos-overview strong{font-size:1.35rem;color:#334fbb;margin-right:6px}.oos-filters{display:grid;grid-template-columns:minmax(200px,2fr) 1fr 1fr;gap:18px;padding:20px;margin-bottom:15px}.oos-order{margin-top:20px;overflow:hidden}.oos-order-heading{display:flex;justify-content:space-between;gap:25px;padding:22px 24px;border-bottom:1px solid #e2e7f2}.oos-order-heading h2{margin:0 0 8px}.oos-order-heading .meta{margin-top:8px}.oos-address{font-size:.875rem;color:#64718c;max-width:320px;line-height:1.5}.oos-order td{vertical-align:top}.oos-order td:first-child{min-width:190px}.oos-order td>.meta{display:block;margin-top:5px}.oos-order .badge{display:block;width:max-content;margin-top:7px}.oos-actions{max-width:300px;min-width:180px;flex-wrap:wrap}.shortage-history{font-size:.8125rem;margin-top:12px;max-width:450px}.shortage-history summary{cursor:pointer;color:#6679a1}.shortage-event{padding:12px 0;border-top:1px solid #edf0f6;overflow-wrap:anywhere}.shortage-event:first-of-type{margin-top:10px}.shortage-event p{margin:6px 0;font-size:.8125rem}.shortage-modal-context{margin-bottom:22px}.shortage-modal-context p{margin:8px 0;color:#7785a0}@media(max-width:650px){.oos-filters{grid-template-columns:1fr;gap:12px}.oos-order-heading{flex-direction:column;padding:18px}.oos-overview{gap:18px;font-size:.8125rem}.oos-address{max-width:none}.oos-order table{min-width:690px}}

.shortage-shipment-items{border:1px solid #e0e6f2;border-radius:12px;padding:8px 16px 16px;margin:0 0 10px;min-width:0}.shortage-shipment-items legend{font-size:.875rem;color:#64789e;padding:0 6px}.shortage-shipment-item{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:16px;align-items:center;padding-top:14px}.shortage-shipment-item .check-row{align-items:flex-start}.shortage-shipment-item .meta{display:block;margin-top:5px}.shortage-shipment-item>label:last-child{font-size:.8125rem}

/* Restock readiness uses the same order cards as the OOS portal. */
.restock-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.restock-overview>.card{padding:18px;display:grid;gap:7px}.restock-overview strong{font-size:26px}.restock-overview span{font-size:13px;color:var(--muted)}.restock-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(120px,1fr));gap:14px;padding:20px;margin-bottom:16px}.restock-order{margin-bottom:18px;overflow:hidden}.restock-order-actions{padding:16px 20px}.restock-hold-note{padding:0 20px 16px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.restock-ready-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;margin-bottom:22px}.restock-ready-banner h2{margin:0 0 10px}.restock-ready-banner p{margin:6px 0}.restock-ready-banner .meta{font-size:13px}
@media(max-width:800px){.restock-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.restock-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.restock-ready-banner{align-items:flex-start;flex-direction:column}}
@media(max-width:460px){.restock-filters{grid-template-columns:1fr}.restock-order-actions{padding:14px}.restock-ready-banner{padding:18px}}

.substitution-fields{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr) minmax(100px,1fr);gap:14px;padding-top:12px;border-top:1px solid var(--line)}.substitution-fields select{max-width:100%}.shortage-shipment-item{min-width:0}
@media(max-width:760px){.substitution-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.substitution-fields>label:first-child{grid-column:1/-1}}

/* Inventory lot drilldowns retain the existing responsive testing table. */
.lot-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.lot-totals>div{border:1px solid var(--border,#dbe2eb);border-radius:12px;padding:12px}.lot-totals>div>span{display:block;color:var(--muted,#65758a);font-size:12px;margin-bottom:6px}.lot-totals strong{font-size:18px}.batch-held{color:#a35414}.batch-hold-banner{padding:20px;margin:18px 0}.batch-hold-banner h2{margin-bottom:12px}.stock-lot-detail .lot-orders td{white-space:normal;min-width:100px}.stock-lot-detail #lot-ledger-query{width:100%;margin:12px 0}.lot-history,.legacy-lot-orders{margin-top:16px}.lot-history summary,.legacy-lot-orders summary{cursor:pointer;font-weight:600}.lot-history p{padding:10px 0;border-bottom:1px solid var(--border,#dbe2eb)}.lot-history .meta{display:block}.stock-lot-detail .notice{margin:18px 0}
@media(max-width:640px){.lot-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.lot-totals strong{font-size:16px}.stock-lot-detail .flex-between{align-items:flex-start;gap:12px;flex-wrap:wrap}.batch-hold-banner .list-row{flex-wrap:wrap}}
/* Warehouse navigation keeps location visible beside the company scope. */
.warehouse-nav-group{border-top:1px solid var(--line,#dbe2eb);margin-top:8px;padding-top:5px}.warehouse-nav-group summary{cursor:pointer;padding:12px 8px;font-weight:750;display:flex;align-items:center;gap:10px}.warehouse-nav-group summary>.meta{margin-left:auto}.warehouse-nav-group summary::before{content:'▸';margin-right:4px}.warehouse-nav-group[open] summary::before{content:'▾'}.warehouse-nav-group>div{display:grid;padding-left:8px}.active-warehouse-badge{font-weight:750;font-size:12px;white-space:nowrap;padding:8px 11px;border:1px solid #dbe2eb;border-radius:8px;background:#f4f7fc}.warehouse-access-form{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1fr) 1fr auto;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid #dbe2eb}.warehouse-transfer-row{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:18px 0;border-bottom:1px solid #dbe2eb}.warehouse-transfers{margin-bottom:20px}.warehouse-transfers summary{cursor:pointer;font-weight:750}.inventory-local-controls{margin-bottom:15px}.warehouse-recall-row{padding:12px 0;border-bottom:1px solid #dbe2eb}.warehouse-recall-row p{margin:5px 0}@media(max-width:900px){.warehouse-access-form{grid-template-columns:1fr 1fr}.active-warehouse-badge{font-size:11px;padding:6px}.warehouse-transfer-row{align-items:flex-start;flex-wrap:wrap}.topbar{flex-wrap:wrap}}@media(max-width:550px){.warehouse-access-form{grid-template-columns:1fr}.active-warehouse-badge{order:0}.warehouse-transfer-row .actions{width:100%}}
/* Keep every warehouse page reachable when both sidebar groups are expanded. */
.rail{overflow:hidden}.rail>.logo,.rail>.eyebrow,.rail-bottom{flex-shrink:0}.rail>.nav{flex:1;min-height:0;align-content:start;grid-auto-rows:max-content;overflow-y:auto;overscroll-behavior:contain;padding-right:3px}.rail-bottom{margin-top:0;padding-top:16px}

/* Overview coordinates the operation; Home keeps the daily work close. */
.ops-dashboard{display:grid;gap:20px;min-width:0}.ops-dashboard>.section-heading,.ops-dashboard>.dashboard-metrics{margin:0}.operations-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 0 22px;border-bottom:1px solid #dce1e6}.operations-hero h1{font-size:clamp(26px,2.4vw,38px);line-height:1.2;letter-spacing:-.05em;margin:10px 0;color:#192637}.operations-hero p{font-size:14px;line-height:1.65;color:#617083;margin:0;max-width:620px}.operations-hero .hero-kicker{color:#456c9b}.operations-hero .hero-date{margin-top:12px;font-size:12px}.operations-hero .hero-actions{display:flex;flex-direction:column;gap:10px;min-width:165px}.work-metrics>.metric{cursor:pointer}.work-metrics>.metric:hover{border-color:#a7bbd4;background:#fbfdff}.work-metrics>.metric:focus-visible,.warehouse-workload>button:focus-visible,.dashboard-attention-row:focus-visible,.coordination-row:focus-visible,.local-followup:focus-visible{outline:2px solid #315b99;outline-offset:3px}.ops-dashboard .metric .number{font-size:clamp(26px,2.4vw,36px)}.ops-dashboard .portal-card{padding:20px 22px}.ops-dashboard .portal-stats{margin:18px 0}.ops-dashboard .portal-stats strong{font-size:25px}.operations-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.operations-panel{overflow:hidden;min-width:0}.operations-panel .card-title{padding:19px 22px;align-items:center}.operations-panel .card-title h2{font-size:16px}.operations-panel .card-title>svg{width:21px;height:21px;fill:none;stroke:#7890af;stroke-width:1.7}.operations-panel .card-title p{margin-top:5px;font-size:12px}.dashboard-empty{padding:30px 22px;display:flex;align-items:flex-start;flex-direction:column;gap:10px;color:#627489;min-height:176px}.dashboard-empty>svg{width:27px;height:27px;fill:none;stroke:#7a96b8;stroke-width:1.5}.dashboard-empty strong{font-size:14px;color:#365171}.dashboard-empty p{font-size:13px;line-height:1.6;margin:0;max-width:350px}.dashboard-clear{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf4ef;color:#527360}.work-batch{padding:18px 22px;border-bottom:1px solid #e4e9ef}.work-batch:last-child{border-bottom:0}.work-batch strong{font-size:14px}.work-batch p{font-size:12px;margin:5px 0 0;line-height:1.6}.work-progress{height:6px;border-radius:8px;overflow:hidden;background:#eaf0f6;margin:14px 0 10px}.work-progress>span{height:100%;display:block;border-radius:8px;background:#567da9}.dashboard-attention-row,.coordination-row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;border:0;border-bottom:1px solid #e4e9ef;background:#fff;border-radius:0;padding:17px 22px;min-width:0;font-weight:400}.dashboard-attention-row:hover,.coordination-row:hover{background:#f5f8fb}.dashboard-attention-row strong,.coordination-row strong{display:block;font-size:13px;line-height:1.6;color:#334d6c}.dashboard-attention-row .meta,.coordination-row .meta{display:block;font-size:12px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.attention-dot{width:7px;height:7px;border-radius:50%;background:#bc925f;flex:none}.local-followup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.local-followup{display:flex;align-items:center;gap:14px;padding:18px 20px;text-align:left;font-weight:400;background:#fff}.local-followup>span:first-child{flex:1;min-width:0}.local-followup strong{display:block;font-size:13px;color:#334d6c}.local-followup .meta{display:block;font-size:12px;line-height:1.6;margin-top:5px}.local-followup b{font-size:24px;font-weight:700;color:#315b99}.dashboard-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;color:#6a798c;font-size:12px;padding:4px 0 10px}.dashboard-footer .actions{gap:16px}.dashboard-queue-actions{margin-top:18px}.warehouse-overview-card{padding:22px;min-width:0;border-top:3px solid #527cab}.warehouse-overview-card:nth-child(2){border-top-color:#ac9470}.warehouse-card-heading{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.warehouse-card-heading h2{font-size:19px;margin:0 0 5px}.warehouse-code{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d6e0ec;background:#eef3f9;border-radius:11px;font-size:14px;font-weight:750;color:#40628d;flex:none}.warehouse-overview-card:nth-child(2) .warehouse-code{background:#f7f4ef;border-color:#e4ddd1;color:#897252}.warehouse-workload{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:22px 0 18px}.warehouse-workload>button{padding:9px 5px;border:0;background:none;text-align:left;display:grid;gap:6px;font-weight:400;min-width:0}.warehouse-workload>button:hover{background:#f3f6fa}.warehouse-workload strong{font-size:26px;color:#2f4868}.warehouse-workload span{font-size:12px;color:#617083;line-height:1.5}.warehouse-finance{display:flex;justify-content:space-between;gap:20px;padding:16px 0 20px;border-top:1px solid #e1e7ee}.warehouse-finance>div{display:grid;gap:7px}.warehouse-finance span{font-size:12px;color:#64758b}.warehouse-finance strong{font-size:20px;color:#334d6c}.warehouse-overview-card>.actions{gap:8px;flex-wrap:wrap}.warehouse-overview-card>.actions button{font-size:12px;padding:10px 12px}.location-chip{font-size:11px;font-weight:750;padding:7px 9px;background:#eef3f9;border:1px solid #dce5ef;border-radius:7px;color:#45658d;flex:none}.coordination-row b{font-size:18px;color:#47678f}.warehouse-comparison{padding:6px 22px}.warehouse-comparison-row{padding:20px 0;border-bottom:1px solid #e3e8ee}.warehouse-comparison-row:last-child{border-bottom:0}.warehouse-comparison-row>.flex-between{font-size:13px;gap:12px;flex-wrap:wrap}.warehouse-comparison-row>.flex-between>span{font-size:12px;color:#657b97}.warehouse-comparison-row:nth-child(2) .work-progress>span{background:#a38f72}.comparison-money{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:12px}.comparison-money span{font-size:12px;line-height:1.6;color:#687b94}.comparison-money b{display:block;font-weight:650;font-size:15px;color:#334d6c}.warehouse-comparison-row .text-button{font-size:12px}.fulfillment-scorecard{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-self:start}.fulfillment-scorecard>div{min-width:0}.fulfillment-scorecard span{font-size:13px;color:#617083}.fulfillment-scorecard strong{display:block;font-size:36px;letter-spacing:-.04em;color:#315b99;margin:18px 0 10px}.fulfillment-scorecard p{font-size:12px;color:#617083;line-height:1.6;margin:0}.fulfillment-scorecard>.hint{grid-column:1/-1;border-top:1px solid #e4e9ef;padding-top:16px}
@media(max-width:1050px){.local-followup-grid{grid-template-columns:1fr}.warehouse-card-heading .badge{flex-basis:auto}.warehouse-workload{gap:4px}.warehouse-workload strong{font-size:23px}.ops-dashboard .portal-stats{gap:16px}}
@media(max-width:800px){.operations-hero{align-items:flex-start;flex-direction:column;gap:18px}.operations-hero .hero-actions{flex-direction:row;flex-wrap:wrap;min-width:0}.operations-columns{grid-template-columns:1fr}.ops-dashboard{gap:16px}.warehouse-overview-cards{grid-template-columns:1fr}.ops-dashboard .metric{padding:18px}.operations-hero h1{font-size:28px}.operations-hero p{font-size:13px}.warehouse-overview-card{padding:18px}.dashboard-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:450px){.warehouse-workload{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-card-heading>.badge{margin-left:57px}.operations-panel .card-title{padding:17px}.work-batch,.dashboard-attention-row,.coordination-row{padding:16px 17px}.ops-dashboard .metric .number{font-size:25px}.ops-dashboard .metric .meta{font-size:11px}.fulfillment-scorecard{padding:20px;gap:15px}.fulfillment-scorecard strong{font-size:30px}.warehouse-finance strong{font-size:18px}.operations-hero .hero-actions button{font-size:12px;padding:10px 12px}}

/* Let wrapped headers size naturally and keep the mobile drawer dismissible. */
.mobile-nav-close,.nav-backdrop{display:none}
@media(max-width:900px){.topbar{height:auto;min-height:72px;padding-top:10px;padding-bottom:10px;row-gap:8px}}
@media(max-width:800px){.rail.mobile-open{z-index:20;box-shadow:none}.rail .mobile-nav-close{display:flex;align-items:center;justify-content:center;align-self:flex-end;flex-shrink:0;width:42px;min-height:42px;margin-bottom:12px;padding:0;font-size:25px;background:transparent;color:#fff;border-color:#657086}.nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:15;width:100%;height:100%;border:0;border-radius:0;background:#111a3466;cursor:pointer}.topbar .nav-toggle,.topbar .mobile-search{min-height:44px;min-width:40px}.operations-hero>div:first-child{min-width:0}.operations-hero h1{overflow-wrap:break-word}.operations-hero .hero-actions button{min-height:44px}.modal-footer{flex-wrap:wrap}.modal-footer button{min-height:44px}.work-batch>div,.dashboard-attention-row>div,.coordination-row>span,.local-followup>span{min-width:0;overflow-wrap:anywhere}}
@media(max-width:550px){.topbar{column-gap:4px;padding-left:10px;padding-right:10px}.topbar>.active-warehouse-badge{flex-basis:100%;order:-1;white-space:normal}.topbar .portal-toggle{flex:1;justify-content:center;margin-right:0}.topbar .language{flex:none;width:70px;min-width:70px}.topbar .warehouse-scope{flex:1;overflow-wrap:anywhere}.topbar .portal-toggle button{padding-left:5px;padding-right:5px}.modal-head h2{min-width:0;overflow-wrap:anywhere}.modal-head .actions{flex-shrink:0}.dashboard-footer .actions{flex-wrap:wrap}}
/* Readable fields also prevent focus zoom on small iPhone screens. */
@media(max-width:640px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}}
