/* Inventory detail surfaces share the workspace palette, with readable controls in both themes. */
html body .modal-mask .modal .m-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:1px solid #dce4ed!important;border-radius:9px!important;background:#f1f5f9!important;color:#4e6580!important;-webkit-text-fill-color:#4e6580!important;opacity:1!important;box-shadow:none!important;line-height:1!important;font-size:21px!important;cursor:pointer!important;position:static!important}
html body .modal-mask .modal .m-close:hover{background:#e4ebf3!important;border-color:#a9bbcf!important;color:#233c56!important}
html body .modal-mask .modal .m-close svg{display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important}
html body .modal-mask .modal:is(.sd-history-modal,.sd-dispatch-modal){width:min(820px,calc(100vw - 40px))!important;max-height:calc(100dvh - 48px)!important;border:1px solid #d8e2ee!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important;color:#2c4057!important;box-shadow:0 24px 85px #17283c2b!important;display:flex!important;flex-direction:column!important;font-size:12px!important}
html body .modal-mask .sd-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;background:#f6f8fb!important;border-bottom:1px solid #e0e7ef!important;padding:20px 24px!important;flex:none!important}
html body .modal-mask .sd-head>div{min-width:0!important}
html body .modal-mask .sd-head>div>span{font-size:9px!important;letter-spacing:1.3px!important;color:#8396ac!important}
html body .modal-mask .sd-head h3{font-size:18px!important;line-height:1.5!important;font-weight:650!important;margin:5px 0 0!important;color:#283f58!important}
html body .modal-mask .sd-body{padding:22px 24px!important;background:#fff!important;overflow:auto!important;min-height:0!important;overscroll-behavior:contain!important}
html body .modal-mask .sd-product{display:flex;align-items:center;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e8edf3}
html body .modal-mask .sd-product>div{min-width:0;flex:1}
html body .modal-mask .sd-product b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.6;color:#2c435b;font-weight:600}
html body .modal-mask .sd-product>div>span{display:block;font-size:11px;color:#8596a9;margin-top:7px;overflow-wrap:anywhere}
html body .modal-mask .sd-product-image{width:64px;height:70px;flex:0 0 64px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:5px;border:1px solid #e4eaf1;border-radius:10px;background:#fafbfd;color:#8195ab;cursor:zoom-in}
html body .modal-mask .sd-product-image img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
html body .modal-mask .sd-section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 13px;min-width:0}
html body .modal-mask .sd-section-title b{font-size:12px;font-weight:650;color:#344c66}
html body .modal-mask .sd-section-title small,html body .modal-mask .sd-section-title>span{display:block;color:#8b9aad;font-size:10px;font-weight:400;line-height:1.5}
html body .modal-mask .sd-section-title>div>small{margin-top:4px}
html body .modal-mask .sd-section-title select{width:220px;max-width:55%;flex:none}
html body .modal-mask .sd-body .input{box-sizing:border-box;min-width:0;width:100%;height:40px;min-height:40px;border:1px solid #dce4ee!important;border-radius:8px!important;padding:9px 11px!important;background:#fafbfd!important;color:#30465f!important;font-size:12px!important;box-shadow:none!important;line-height:20px}
html body .modal-mask .sd-body .input:focus{border-color:#829dbb!important;outline:2px solid #c7d5e43d!important;outline-offset:1px!important;background:#fff!important}
html body .modal-mask .sd-body .input::placeholder{color:#a1adbc;font-size:11px}
html body .modal-mask .sd-body select.mobile-native-select-hidden{width:1px!important;max-width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;pointer-events:none!important}
html body .modal-mask .sd-history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#f5f8fb;border:1px solid #e1e8f0;border-radius:11px;margin-bottom:26px;padding:16px 0}
html body .modal-mask .sd-history-metrics>div{padding:0 15px;min-width:0;border-right:1px solid #e0e7ef}
html body .modal-mask .sd-history-metrics>div:last-child{border:0}
html body .modal-mask .sd-history-metrics span{display:block;color:#8596a9;font-size:10px}
html body .modal-mask .sd-history-metrics b{display:block;font-size:17px;font-weight:600;margin-top:8px;color:#2b435e;line-height:1.45;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html body .modal-mask .sd-history-metrics>div:last-child b{font-size:12px;padding-top:3px}
html body .modal-mask .sd-history-metrics small{font-size:10px;font-weight:400}
html body .modal-mask .sd-note{font-size:10px;color:#8b9bad;line-height:1.6;margin:0 0 12px}
html body .modal-mask :is(.sd-history-columns,.sd-history-row){display:grid;grid-template-columns:1.5fr 1.1fr 1fr .8fr 1.1fr;gap:12px;align-items:center}
html body .modal-mask .sd-history-columns{font-size:10px;color:#8a9bad;padding:10px 14px;background:#f4f7fa;border-radius:7px}
html body .modal-mask .sd-history-columns>span:nth-child(n+3){text-align:right}
html body .modal-mask .sd-history-row{padding:16px 14px;border-bottom:1px solid #edf1f6;font-size:11px}
html body .modal-mask .sd-history-row>div{min-width:0}
html body .modal-mask .sd-history-row>div:nth-child(n+3){text-align:right}
html body .modal-mask .sd-history-row b{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap;color:#344b64}
html body .modal-mask .sd-history-row small{display:none}
html body .modal-mask .sd-history-row em{font-style:normal;font-size:10px;color:#8c9aae}
html body .modal-mask .sd-location-tag{display:inline-block;padding:4px 8px;background:#edf2f7;color:#6b829b;border-radius:5px;font-size:10px;max-width:100%;overflow-wrap:anywhere}
html body .modal-mask .sd-pager{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#8b9bae;font-size:10px}
html body .modal-mask .sd-empty{background:#f7f9fc;border:1px dashed #dce5ef;padding:25px 18px;border-radius:10px;color:#90a0b3;font-size:11px;line-height:1.8;text-align:center}
html body .modal-mask .sd-warehouse{padding:16px;background:#f5f8fb;border:1px solid #e0e7ef;border-radius:11px;margin-bottom:24px}
html body .modal-mask .sd-warehouse-overview{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;max-height:130px;overflow:auto}
html body .modal-mask .sd-warehouse-overview[hidden]{display:none!important}
html body .modal-mask .sd-warehouse-overview button{display:flex;align-items:center;gap:12px;padding:7px 10px;border:1px solid #dfe7ef;border-radius:7px;background:#fff;color:#7b8ea4;cursor:pointer;min-height:34px;font-size:11px}
html body .modal-mask .sd-warehouse-overview button b{font-size:12px;color:#455e78}
html body .modal-mask .sd-warehouse-overview button small{font-size:9px;font-weight:400}
html body .modal-mask .sd-warehouse-overview button.is-selected{background:#263d56;border-color:#263d56;color:#cfdeed}
html body .modal-mask .sd-warehouse-overview button.is-selected b{color:white}
html body .modal-mask .sd-dispatch-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(100px,1fr) minmax(130px,1fr);gap:14px;align-items:start;border:1px solid #e1e8f1;border-radius:10px;padding:16px;margin:0 0 10px;background:#fff}
html body .modal-mask .sd-size-meta{min-width:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 10px}
html body .modal-mask .sd-size-meta>b{font-size:21px;color:#304860;font-weight:600;grid-row:span 2;overflow-wrap:anywhere}
html body .modal-mask .sd-size-meta>span{font-size:11px;color:#667e97;white-space:nowrap}
html body .modal-mask .sd-size-meta>small{font-size:10px;color:#93a2b3;white-space:nowrap}
html body .modal-mask .sd-dispatch-row>label{display:flex;flex-direction:column;gap:7px;color:#8496ab;font-size:10px;min-width:0}
html body .modal-mask .sd-batch-details{grid-column:1/-1;border-top:1px solid #eef2f6;padding-top:9px;font-size:10px;color:#8b9db1}
html body .modal-mask .sd-batch-details>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;cursor:pointer}
html body .modal-mask .sd-batch-details>div{padding-top:9px}
html body .modal-mask .sd-batch-details>div>span{display:grid;grid-template-columns:22px 1fr 90px 55px;align-items:center;gap:10px;padding:7px 0;color:#8597aa;font-size:10px}
html body .modal-mask .sd-batch-details i{font-size:9px;font-style:normal;display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;background:#edf2f7;border-radius:4px}
html body .modal-mask .sd-batch-details b{font-weight:500;text-align:right;color:#5f7892}
html body .modal-mask .sd-sale-extra{border:1px solid #e2e8f0;border-radius:9px;padding:12px 14px;margin-top:20px;font-size:11px;color:#7a8fa5}
html body .modal-mask .sd-sale-extra summary{display:flex;justify-content:space-between;list-style:none;cursor:pointer}
html body .modal-mask .sd-sale-extra summary>span{color:#9ba9b8;font-size:10px}
html body .modal-mask .sd-sale-extra label{display:block;font-size:10px;padding-top:12px}
html body .modal-mask .sd-sale-extra input{margin-top:7px}
html body .modal-mask .sd-dispatch-foot{display:block!important;flex:none!important;background:#f7f9fc!important;padding:18px 24px!important;border-top:1px solid #dfe7f0!important}
html body .modal-mask .sd-dispatch-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html body .modal-mask .sd-dispatch-totals>div{min-width:0}
html body .modal-mask .sd-dispatch-totals span{display:block;font-size:10px;color:#8698ad}
html body .modal-mask .sd-dispatch-totals b{display:block;margin-top:5px;font-size:20px;font-weight:600;color:#2c435c;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html body .modal-mask .sd-dispatch-foot>p{font-size:10px;color:#869ab1;line-height:1.6;margin:12px 0}
html body .modal-mask .sd-foot-actions{display:flex;justify-content:flex-end;gap:9px}
html body .modal-mask .sd-foot-actions .btn{min-width:84px;height:38px;min-height:38px;border:1px solid #dbe4ef!important;border-radius:8px!important;background:#fff!important;color:#5a728c!important;padding:8px 15px!important;font-size:12px!important;box-shadow:none!important}
html body .modal-mask .sd-foot-actions .btn.primary{background:#283e57!important;color:#fff!important;border-color:#283e57!important}
html body .modal-mask .sd-foot-actions .btn:disabled{opacity:.45!important;cursor:not-allowed!important}
html body .modal-mask .sd-loss{color:#b86c66!important}
/* A moderately sized product image replaces the small icon plus oversized brand badge. */
html body #app #view-root .os-page .stock-head .stock-thumb{width:70px!important;height:78px!important;min-height:78px!important;flex:0 0 70px!important;border:1px solid #e6ebf2!important;background:#fafbfd!important;border-radius:10px!important;padding:5px!important}
html body #app #view-root .os-page .stock-head .stock-thumb img,html body #app #view-root .os-page .m-stock-card .stock-thumb img{object-fit:contain!important;border-radius:5px!important;width:100%!important;height:100%!important;mix-blend-mode:multiply}
html body #app #view-root .os-page .stock-head>.brand-tag{display:none!important}
html body #app #view-root .os-page .stock-head{gap:16px!important}
html body #app #view-root .os-page .stock-dense-row .stock-head{grid-template-columns:70px minmax(0,1fr) auto 34px!important}
html body .modal-mask.image-preview-mask{z-index:200180!important;background:#111b2be8!important}
html body .modal-mask.image-preview-mask .modal.image-preview{width:min(1120px,96vw)!important;max-width:96vw!important;max-height:96dvh!important;border:1px solid #40516a!important;border-radius:14px!important;background:#111b2b!important;overflow:hidden!important}
html body .modal-mask.image-preview-mask .image-viewer{height:min(900px,92dvh)!important;background:#111b2b!important;display:flex!important;flex-direction:column!important}
html body .modal-mask.image-preview-mask .image-viewer-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:20px!important;padding:12px 18px!important;min-height:58px!important;flex:none!important;border-bottom:1px solid #334358!important;background:#172438!important;color:#dbe5f2!important}
html body .modal-mask.image-preview-mask .image-viewer-head>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
html body .modal-mask.image-preview-mask .m-close{background:#293c53!important;color:#e1eaf7!important;-webkit-text-fill-color:#e1eaf7!important;border-color:#48607b!important}
html body .modal-mask.image-preview-mask .image-viewer-stage{padding:0!important;display:block!important;flex:1!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-x pan-y!important}
html body .modal-mask.image-preview-mask .image-viewer-canvas{min-width:100%;min-height:100%;width:max-content;height:max-content;display:grid;place-items:center;padding:16px;box-sizing:border-box}
html body .modal-mask.image-preview-mask .image-viewer-stage img{display:block;max-width:none!important;max-height:none!important;object-fit:contain!important;border-radius:6px!important;flex:none!important;box-shadow:0 8px 35px #0004}
html body .modal-mask.image-preview-mask .image-viewer-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:13px 14px 5px;flex:none;font-size:11px;color:#aabed4}
html body .modal-mask.image-preview-mask .image-viewer-controls button{padding:5px 12px;min-height:32px;min-width:32px;border:1px solid #3d526c;border-radius:7px;background:#24354b;color:#d7e4f3;cursor:pointer;font-size:12px}
html body .modal-mask.image-preview-mask .image-viewer-controls button:disabled{opacity:.35}
html body .modal-mask.image-preview-mask .image-viewer-tip{padding:8px 14px 13px!important;color:#8da2bc!important;font-size:10px!important;flex:none!important}
@media(max-width:720px){
 html body .modal-mask .modal:is(.sd-history-modal,.sd-dispatch-modal){width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 20px)!important;border-radius:13px!important;margin:0!important}
 html body .modal-mask .sd-head{padding:16px!important;gap:12px!important}
 html body .modal-mask .sd-head h3{font-size:16px!important}
 html body .modal-mask .sd-body{padding:16px!important}
 html body .modal-mask .sd-product{gap:12px;padding-bottom:16px;margin-bottom:17px}
 html body .modal-mask .sd-product b{font-size:12px}
 html body .modal-mask .sd-product-image{width:56px;height:63px;flex-basis:56px}
 html body .modal-mask .sd-section-title{gap:10px;align-items:flex-start;flex-wrap:wrap}
 html body .modal-mask .sd-section-title select,html body .modal-mask .sd-section-title>.mobile-select-trigger{width:100%!important;max-width:100%!important;flex:auto!important}
 html body .modal-mask .sd-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0;padding:16px 0;margin-bottom:22px}
 html body .modal-mask .sd-history-metrics>div{padding:0 12px}
 html body .modal-mask .sd-history-metrics>div:nth-child(2){border:0}
 html body .modal-mask .sd-history-metrics b{font-size:17px;margin-top:5px}
 html body .modal-mask .sd-history-columns{display:none}
 html body .modal-mask .sd-history-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 9px;padding:14px 12px;border:1px solid #e3eaf2;border-radius:10px;margin-bottom:9px}
 html body .modal-mask .sd-history-row>div:first-child{grid-column:span 2}
 html body .modal-mask .sd-history-row>div:nth-child(2){text-align:right}
 html body .modal-mask .sd-history-row>div:nth-child(n+3){text-align:left}
 html body .modal-mask .sd-history-row small{display:block;font-size:9px;color:#91a1b5;margin-bottom:5px}
 html body .modal-mask .sd-history-row b{font-size:11px;white-space:normal;overflow-wrap:anywhere}
 html body .modal-mask .sd-dispatch-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px}
 html body .modal-mask .sd-size-meta{grid-column:1/-1;grid-template-columns:auto auto 1fr;gap:12px;align-items:baseline}
 html body .modal-mask .sd-size-meta>b{grid-row:auto;font-size:20px}
 html body .modal-mask .sd-size-meta>small{text-align:right;font-size:9px}
 html body .modal-mask .sd-dispatch-foot{padding:14px 16px!important}
 html body .modal-mask .sd-dispatch-totals{gap:12px}
 html body .modal-mask .sd-dispatch-totals b{font-size:17px}
 html body .modal-mask .sd-dispatch-totals span{font-size:9px}
 html body .modal-mask .sd-foot-actions{display:grid;grid-template-columns:1fr 1.5fr}
 html body .modal-mask .sd-foot-actions .btn{width:100%;min-width:0}
 html body .modal-mask .sd-warehouse{padding:13px}
 html body .modal-mask .sd-batch-details>div>span{grid-template-columns:18px 1fr 65px 35px;gap:7px;font-size:9px}
 html body #app #view-root .os-page .m-stock-card .m-stock-head .stock-thumb{width:60px!important;height:68px!important;min-height:68px!important;flex:0 0 60px!important;border-radius:9px!important;padding:4px!important;background:#fafbfd!important;border:1px solid #e4ebf2!important}
 html body #app #view-root .os-page .m-stock-card .m-stock-head{gap:12px!important}
 html body .modal-mask.image-preview-mask{padding:6px!important}
 html body .modal-mask.image-preview-mask .modal.image-preview{width:100%!important;max-width:100%!important;max-height:98dvh!important;border-radius:11px!important}
 html body .modal-mask.image-preview-mask .image-viewer{height:94dvh!important}
 html body .modal-mask.image-preview-mask .image-viewer-head{padding:10px 12px!important;min-height:55px!important}
}
html.eye-mode body .modal-mask .modal .m-close{background:#30455e!important;border-color:#4a617b!important;color:#d0dfef!important;-webkit-text-fill-color:#d0dfef!important}
html.eye-mode body .modal-mask :is(.sd-history-modal,.sd-dispatch-modal,.sd-body){background:#202e40!important;color:#ccdaea!important}
html.eye-mode body .modal-mask :is(.sd-head,.sd-dispatch-foot,.sd-warehouse,.sd-history-metrics,.sd-empty,.sd-history-columns){background:#26374c!important;border-color:#3b5069!important}
html.eye-mode body .modal-mask :is(.sd-product,.sd-dispatch-row,.sd-history-row,.sd-sale-extra,.sd-batch-details){border-color:#3b4f67!important}
html.eye-mode body .modal-mask .sd-dispatch-row{background:#223247!important}
html.eye-mode body .modal-mask :is(.sd-product b,.sd-head h3,.sd-section-title b,.sd-history-row b,.sd-history-metrics b,.sd-size-meta>b,.sd-dispatch-totals b){color:#d4e2f3!important}
html.eye-mode body .modal-mask .sd-body .input{background:#2a3e55!important;border-color:#4a5f78!important;color:#cfdded!important}
html.eye-mode body .modal-mask .sd-warehouse-overview button{background:#30465e!important;border-color:#4b617b!important;color:#bbcee3!important}
html.eye-mode body .modal-mask .sd-warehouse-overview button b{color:#e1eafa!important}
html.eye-mode body .modal-mask .sd-warehouse-overview button.is-selected{background:#8ca6c3!important;color:#172f48!important}
html.eye-mode body .modal-mask .sd-warehouse-overview button.is-selected b{color:#172f48!important}
html.eye-mode body .modal-mask .sd-foot-actions .btn{background:#2c425c!important;border-color:#4a617d!important;color:#d0deef!important}
html.eye-mode body .modal-mask .sd-foot-actions .btn.primary{background:#a4bcd5!important;color:#1d3550!important}
.sd-sale-datetime{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin-top:12px;font-size:13px;font-weight:600}
.sd-sale-datetime input{width:100%;min-width:0;box-sizing:border-box;font-weight:400}
