/* Warehouse: a compact blueprint masthead above two views of the same stock records. */
.wh-page{--wh-blue:#234fd8;--wh-ink:#173877;--wh-muted:#536985;--wh-rule:#dce6fa;--wh-gutter:var(--page-gutter,clamp(16px,3vw,48px));position:relative;isolation:isolate;container:wh / inline-size;display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#fff;color:var(--wh-ink);font-family:var(--font-ui,system-ui)}
.wh-page *,.wh-page *::after,.wh-page *::before{box-sizing:border-box}
.wh-banner{display:flex;flex:none;align-items:center;justify-content:space-between;gap:14px;padding:18px var(--wh-gutter);background-color:var(--wh-blue);background-image:linear-gradient(30deg,transparent 48.5%,#ffffff12 49.5%,#ffffff12 50.3%,transparent 51.3%),linear-gradient(-30deg,transparent 48.5%,#ffffff12 49.5%,#ffffff12 50.3%,transparent 51.3%);background-size:76px 44px;color:white}
.wh-headcopy>div{display:flex;align-items:baseline;gap:12px}.wh-headcopy h1{margin:0;font-size:clamp(23px,1.7vw,29px);font-weight:650;line-height:1.3;color:white}
.wh-headcopy small{color:#c6d8ff;font:500 11px/1.3 var(--font-mono,monospace);letter-spacing:.13em}
.wh-headcopy p{font-size:.83rem;line-height:1.5;color:#d9e7ff;margin:4px 0 0}
.wh-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;position:static;width:auto;height:auto;padding:0;background:none;border:0}
.wh-btn,.wh-exit,.wh-empty-action,.wh-next{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;cursor:pointer;font:inherit}
.wh-actions .wh-btn{padding:0 13px;min-height:38px;border-radius:6px;border:1px solid #91aaf5;background:#244fd8;color:white;font-size:.88rem;line-height:1.2}
.wh-actions .wh-btn-primary,.wh-empty-action{background:white;color:#234fd8;border-color:white}.wh-actions .wh-manage{background:transparent}
.wh-actions .wh-exit{width:30px;height:36px;border:0;background:none;color:white;font-size:24px;line-height:1}
.wh-actions button:enabled:hover{box-shadow:inset 0 0 0 1px #d3e0ff}.wh-page button:disabled{opacity:.54;cursor:default}
.wh-main{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:0 var(--wh-gutter) 18px;scrollbar-width:thin}
.wh-summary{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;flex:none;min-width:0;gap:8px 24px;padding:16px 0;border-bottom:1px solid var(--wh-rule);line-height:1.5}
.wh-stat,.wh-totals,.wh-amount{display:inline-flex;align-items:baseline;gap:8px;min-width:0}
.wh-stat>span,.wh-muted{color:var(--wh-muted);font-size:.82rem}.wh-stat>b{font:550 .96rem var(--font-mono,monospace);color:var(--wh-ink)}
.wh-totals{gap:5px 16px;flex-wrap:wrap}.wh-amount{gap:4px;white-space:nowrap}.wh-qty{font:600 .97rem/1.5 var(--font-mono,monospace);color:#173779;font-variant-numeric:tabular-nums}.wh-unit{font-size:.83rem;color:#516580}.wh-units{font-size:.79rem;color:var(--wh-blue);position:relative}
.wh-units summary{cursor:pointer}.wh-units>div{position:absolute;z-index:3;top:calc(100% + 4px);left:0;display:grid;gap:3px;min-width:90px;padding:7px 11px;border:1px solid var(--wh-rule);border-radius:6px;background:white;box-shadow:0 4px 14px #233f701c}
.wh-sync{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:var(--wh-muted);font-size:.76rem}
.wh-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px 16px;padding:15px 0 12px;flex:none}
.wh-tabs{display:flex;align-items:center;gap:5px;min-width:0;background:none;position:static;padding:0;width:auto;height:auto;border:0}
.wh-tab{padding:8px 12px;border:0;border-radius:5px;background:none;color:var(--wh-muted);font:500 .91rem/1.4 var(--font-ui,system-ui);cursor:pointer;white-space:nowrap}
.wh-tab.is-current{background:#edf2ff;color:#214bd2;font-weight:650}
.wh-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;margin:0}
.wh-search{display:flex;height:36px;align-items:center;border:1px solid #d2def6;border-radius:5px;min-width:0;background:#fff}
.wh-search:focus-within{border-color:#6483ec;box-shadow:0 0 0 2px #436cda18}
.wh-search button{display:grid;place-items:center;width:33px;height:32px;padding:0;border:0;color:#466298;background:transparent;cursor:pointer}
.wh-search input{width:clamp(130px,12vw,215px);min-width:0;outline:0;border:0;background:transparent;padding:6px 7px 6px 0;color:var(--wh-ink);font:inherit;font-size:.87rem}
.wh-select select{height:36px;padding:5px 7px;border:1px solid #d2def6;border-radius:5px;background:white;color:#28467c;max-width:14em;font:inherit;font-size:.85rem}
.wh-text,.wh-product{border:0;background:transparent;cursor:pointer;color:var(--wh-blue);font:inherit;text-align:left}
.wh-text{padding:3px 0;font-size:.83rem;white-space:nowrap}.wh-text:hover,.wh-product:hover strong{text-decoration:underline;text-underline-offset:3px}.wh-scope{display:flex;align-items:center;gap:10px;padding:0 0 10px;font-size:.83rem;color:var(--wh-muted);overflow-wrap:anywhere}
.wh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wh-scroll{position:relative;isolation:isolate;flex:0 1 auto;min-height:43px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9bb0dc transparent}
.wh-page .wh-table{width:100%;min-width:710px;table-layout:fixed;border-collapse:separate;border-spacing:0;background:white;color:var(--wh-ink);line-height:1.4}
.wh-page .wh-ledger-table{min-width:1160px}
.wh-page .wh-table th,.wh-page .wh-table td{padding:8px clamp(9px,1vw,15px);border:0;border-bottom:1px solid var(--wh-rule);line-height:1.4;text-align:left;background:white;vertical-align:middle;color:var(--wh-ink);font-size:.87rem;overflow-wrap:anywhere}
.wh-page .wh-table thead th{position:sticky;top:0;z-index:2;height:42px;border-block:1px solid var(--wh-rule);background:#f4f7fd;color:#486084;font-weight:550;font-size:.82rem;white-space:nowrap}
.wh-page .wh-table tr>th:first-child{position:sticky;left:0;z-index:1;width:25%;background:white}
.wh-page .wh-table thead>tr>th:first-child{z-index:3;background:#f4f7fd}
.wh-page .wh-ledger-table tr>th:first-child{width:18%}.wh-page .wh-ledger-table thead th:nth-child(2){width:7%}.wh-page .wh-ledger-table thead th:nth-child(6){width:12%}.wh-page .wh-ledger-table thead th:nth-child(8){width:15%}.wh-page .wh-ledger-table thead th:last-child{width:7%}
.wh-product{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:100%;padding:0;font-size:.9rem;line-height:1.45}
.wh-product strong{font-weight:600;color:#1e448f;overflow-wrap:anywhere}span.wh-product{cursor:default}.wh-product small{font:400 .8rem/1.4 var(--font-mono,monospace);color:#566b8e;overflow-wrap:anywhere}
.wh-page .wh-table td.wh-num{white-space:normal}.wh-time{font:500 .77rem/1.45 var(--font-mono,monospace);font-variant-numeric:tabular-nums}
.wh-direction{display:inline-block;padding:2px 7px;border-radius:4px;font-size:.78rem;white-space:nowrap;color:#425b80;background:#eef2f7}
.wh-in{color:#124f7f;background:#e8f3fc}.wh-out{color:#334e97;background:#edf0ff}
.wh-detail-row[hidden]{display:none}.wh-page .wh-table .wh-detail-row td{background:#f6f9ff;color:#425c82}
.wh-detail-row dl{display:flex;flex-wrap:wrap;gap:6px 28px;margin:0}.wh-detail-row dl>div{display:flex;align-items:baseline;gap:8px}.wh-detail-row dt{font-size:.78rem;color:var(--wh-muted);white-space:nowrap}.wh-detail-row dd{margin:0;white-space:pre-wrap;font-size:.84rem;overflow-wrap:anywhere}
.wh-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:9px 0;color:var(--wh-muted);font-size:.78rem}
.wh-foot nav{position:static;display:flex;align-items:center;justify-content:flex-end;gap:8px;height:auto;width:auto;background:none;border:0}
.wh-next{background:white;border:1px solid var(--wh-rule);border-radius:4px;color:#2b4d94;padding:4px 9px}
.wh-empty{flex:none;padding:clamp(25px,4.7vh,65px) 12px;text-align:center;border-bottom:1px solid var(--wh-rule)}
.wh-empty h2{font-size:1.13rem;font-weight:600;color:var(--wh-ink);margin:0}
.wh-empty p{margin:8px 0 0;color:var(--wh-muted);font-size:.87rem;line-height:1.6}
.wh-empty-action{margin-top:14px;min-height:36px;padding:0 13px;background:var(--wh-blue);color:white;border:0;border-radius:5px;font-size:.85rem}
.wh-page button:focus-visible,.wh-page select:focus-visible,.wh-scroll:focus-visible,.wh-units summary:focus-visible{outline:2px solid #4d77e7;outline-offset:-2px}
.wh-banner button:focus-visible{outline-color:white}
@container wh (max-width:760px){.wh-page .wh-main{padding-inline:16px}.wh-tools{align-items:flex-start;gap:8px}.wh-filters{flex-wrap:wrap}.wh-banner{padding-inline:16px}.wh-summary{gap:7px 13px}.wh-page .wh-table tr>th:first-child{width:160px}}
@container wh (max-width:535px){
 .wh-banner{align-items:flex-start;flex-direction:column;gap:9px;padding:12px}.wh-headcopy p{display:none}.wh-headcopy h1{font-size:22px}
 .wh-actions{gap:5px;flex-wrap:wrap;justify-content:flex-start}.wh-actions .wh-btn{padding-inline:8px;min-height:34px;font-size:.78rem}.wh-actions .wh-exit{position:absolute;right:8px;top:7px}
 .wh-page .wh-main{padding-inline:10px}.wh-summary{padding:10px 0;gap:5px 11px}.wh-stat,.wh-totals{gap:4px 7px}.wh-sync{font-size:.72rem}.wh-tools{padding:8px 0;gap:5px}.wh-filters{width:100%;gap:4px}.wh-search{flex:1 1 135px}.wh-search input{width:0;flex:1}
 .wh-tab{padding:6px 9px}.wh-select select{font-size:16px;max-width:10em;height:34px}.wh-search input{font-size:16px}.wh-page .wh-table tr>th:first-child{width:134px}
}
@media(max-height:540px){.wh-main{overflow:auto}.wh-scroll{flex-shrink:0;max-height:max(155px,48dvh)}}
