:root{--navy:#17263c;--navy-2:#22344e;--blue:#1769e0;--blue-soft:#eaf2ff;--ink:#172033;--muted:#657187;--line:#dce2ea;--bg:#f4f6f9;--white:#fff;--green:#16825d;--red:#c23d4b;--purple:#7252c8;--shadow:0 8px 30px rgba(23,38,60,.14)}
[hidden]{display:none!important}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}.app{min-height:100%;display:grid;grid-template:56px 1fr/224px 1fr;grid-template-areas:"top top" "side work"}.topbar{grid-area:top;background:var(--navy);color:#fff;display:flex;align-items:center;position:sticky;top:0;z-index:30}.brand{height:56px;width:224px;display:flex;align-items:center;gap:10px;padding:0 18px;color:#fff;text-decoration:none;letter-spacing:.04em;font-weight:700}.brand b{color:#88b8ff;font-weight:700}.brand-mark{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#277ee8,#1559b7);color:#fff;font-weight:800;font-size:21px;box-shadow:0 6px 18px rgba(23,105,224,.28)}.brand-mark.small{width:28px;height:28px;border-radius:7px;font-size:14px}.primary-nav{height:100%;display:flex;align-items:stretch}.nav-item{border:0;background:transparent;color:#bec9d8;padding:0 18px;border-bottom:3px solid transparent;font-size:13px;font-weight:600}.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}.nav-item.active{color:#fff;border-bottom-color:#4c96ff;background:rgba(255,255,255,.05)}.top-actions{margin-left:auto;height:100%;display:flex;align-items:center;gap:7px;padding-right:14px;position:relative}.icon-button,.user-button,.classic-button{border:0;background:transparent;color:#d6deea;text-decoration:none;border-radius:5px}.icon-button{width:34px;height:34px;font-size:20px}.classic-button{padding:8px 10px;border:1px solid #53637a;font-size:12px}.user-button{display:flex;align-items:center;gap:8px;padding:5px 9px}.user-button #avatar{width:27px;height:27px;background:#3f5370;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700}.user-menu{position:absolute;right:14px;top:50px;background:#fff;color:var(--ink);min-width:190px;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:7px;padding:8px;z-index:40}.user-menu .tenant-name{padding:8px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.user-menu button{width:100%;border:0;background:#fff;text-align:left;padding:10px;border-radius:4px}.user-menu button:hover{background:var(--bg)}
.sidebar{grid-area:side;background:#fff;border-right:1px solid var(--line);padding:18px 10px 112px;position:fixed;top:56px;bottom:0;width:224px;overflow:auto}.side-heading{padding:4px 11px 8px;color:#8b95a6;font-size:10px;font-weight:800;letter-spacing:.1em}.stores-heading{margin-top:25px}.queue{width:100%;height:37px;border:0;background:transparent;border-radius:5px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;color:#465268;text-align:left;font-size:13px}.queue span{display:flex;align-items:center;gap:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.queue b{font-size:11px;color:#7b8799;background:#edf0f4;border-radius:10px;padding:2px 7px}.queue:hover{background:#f1f5fa}.queue.active{background:var(--blue-soft);color:#125cbc;font-weight:650}.queue.active b{background:#fff;color:#125cbc}.dot{width:7px;height:7px;border-radius:50%;display:block}.dot.blue{background:var(--blue)}.dot.purple{background:var(--purple)}.dot.green{background:var(--green)}.dot.grey{background:#98a1b0}.dot.dark{background:var(--navy)}.side-footer{position:fixed;bottom:0;left:0;width:224px;background:#fafbfc;border-top:1px solid var(--line);padding:13px 18px;color:#465268;font-size:11px}.side-footer div{display:flex;align-items:center;gap:7px;font-weight:600}.side-footer small{display:block;color:#8b95a6;margin-top:4px}.health-dot{width:7px;height:7px;border-radius:50%;background:#20ad7b;box-shadow:0 0 0 3px #dff7ef}
.workspace{grid-area:work;padding:26px 30px 44px;min-width:0}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.page-header h1{font-size:23px;margin:0 0 5px}.page-header p{margin:0;color:var(--muted);font-size:13px}.header-actions{display:flex;gap:8px}.button{height:34px;border:1px solid #c9d0db;background:#fff;color:#344056;border-radius:5px;padding:0 13px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.button:hover{background:#f7f9fb}.button.primary{border-color:var(--blue);background:var(--blue);color:#fff}.button.primary:hover{background:#105fcf}.button.full{width:100%;height:40px}.toolbar{height:50px;background:#fff;border:1px solid var(--line);border-radius:7px 7px 0 0;display:flex;align-items:center;padding:8px 10px;gap:8px}.search-wrap{height:33px;width:min(410px,40vw);border:1px solid #c9d0da;border-radius:5px;display:flex;align-items:center;gap:7px;padding:0 10px;color:#788499}.search-wrap:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.12)}.search-wrap input{border:0;outline:0;width:100%;color:var(--ink)}.filter-button{height:33px;border:1px solid #c9d0da;background:#fff;border-radius:5px;color:#465268;padding:0 11px}.filter-button.active{border-color:#e19a3c;background:#fff7e8;color:#8c590b}.filter-count{display:inline-grid;place-items:center;min-width:19px;height:18px;padding:0 5px;border-radius:9px;background:#f0f2f5;margin-left:4px;font-size:10px}.toolbar-spacer{flex:1}.page-size{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.page-size select{height:31px;border:1px solid #c9d0da;border-radius:5px;background:#fff}.selection-bar{min-height:48px;background:#eef5ff;border:1px solid #bcd5f7;border-top:0;padding:7px 12px;display:flex;align-items:center;gap:8px}.selection-bar strong{color:#125cbc;margin-right:5px}.selection-note{font-size:11px;color:#718099}.clear-selection{border:0;background:transparent;color:#1769e0;margin-left:auto}.table-card{background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px;position:relative;min-height:370px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{height:39px;padding:0 11px;text-align:left;color:#69758a;background:#f7f8fa;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.04em;text-transform:uppercase}td{height:58px;padding:7px 11px;border-bottom:1px solid #e8ebf0;vertical-align:middle;font-size:12px}tbody tr{cursor:pointer}tbody tr:hover{background:#f7faff}tbody tr.selected{background:#edf5ff}.check-cell{width:38px;text-align:center}.order-link{color:#125fc5;font-weight:700}.subtext{display:block;color:#8a94a5;font-size:10px;margin-top:3px;max-width:190px;overflow:hidden;text-overflow:ellipsis}.ship-name{font-weight:600}.item-sku{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:11px;background:#eff2f5;color:#536074;font-weight:650;font-size:10px;text-transform:capitalize}.status.pending{background:#eaf2ff;color:#125fc5}.status.label_generated{background:#f0ebff;color:#6243b2}.status.completed{background:#e6f6f0;color:#117150}.status.cancelled,.status.error{background:#fdebed;color:#a72e3a}.error-chip{display:inline-block;color:#b23a45;background:#fff0f1;padding:2px 6px;border-radius:4px;margin-top:3px;font-size:10px}.row-open{border:0;background:transparent;color:#7b8798;font-size:20px}.loading,.empty{position:absolute;inset:39px 0 50px;z-index:2;background:#fff;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted)}.empty{flex-direction:column;text-align:center}.empty>div{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#e8f6f0;color:var(--green);font-size:20px}.empty h2{font-size:16px;margin:4px 0 0}.empty p{margin:0}.spinner{width:16px;height:16px;border:2px solid #d9e0e9;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pagination{height:50px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.pagination div{display:flex;align-items:center;gap:10px}.page-button{width:29px;height:29px;border:1px solid #ccd3dc;background:#fff;border-radius:4px;font-size:18px;color:#536074}.page-button:disabled{opacity:.4;cursor:not-allowed}
.drawer-backdrop{position:fixed;inset:56px 0 0;background:rgba(23,32,51,.26);z-index:45}.drawer{position:fixed;z-index:50;right:0;top:56px;bottom:0;width:min(540px,95vw);background:#fff;box-shadow:-10px 0 35px rgba(20,31,48,.18);transform:translateX(105%);transition:transform .2s ease;display:flex;flex-direction:column}.drawer.open{transform:none}.drawer-header{min-height:78px;padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.drawer-header h2{margin:4px 0 0;font-size:20px}.eyebrow{font-size:9px;letter-spacing:.1em;font-weight:800;color:#8b95a6}.close-button{width:34px;height:34px;border:0;background:transparent;font-size:25px;color:#788499}.drawer-loading{padding:40px;display:flex;justify-content:center;gap:8px;color:var(--muted)}.drawer-content{padding:18px 20px;overflow:auto;flex:1}.detail-section{border:1px solid var(--line);border-radius:6px;margin-bottom:13px}.detail-title{height:37px;background:#f7f8fa;border-bottom:1px solid var(--line);padding:0 12px;display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800;color:#536074}.detail-body{padding:13px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.detail-label{font-size:9px;color:#8b95a6;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}.detail-value{font-size:12px;line-height:1.45}.address{line-height:1.55}.item-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 0;border-bottom:1px solid #edf0f3}.item-row:last-child{border:0}.drawer-footer{min-height:61px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:11px 20px}.toast{position:fixed;right:22px;bottom:22px;z-index:100;background:#17263c;color:#fff;padding:11px 15px;border-radius:6px;box-shadow:var(--shadow);font-size:12px}.login-view{min-height:100%;display:grid;place-items:center;background:radial-gradient(circle at 65% 20%,#e8f1ff,transparent 34%),#f4f6f9}.login-card{width:min(390px,92vw);background:#fff;padding:32px;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.login-card>.brand-mark{margin:0 auto}.login-card h1{text-align:center;font-size:21px;margin:18px 0 6px}.login-card>p{text-align:center;color:var(--muted);margin:0 0 25px}.login-card label{display:block;font-size:11px;font-weight:700;color:#526077;margin:13px 0}.login-card input{display:block;width:100%;height:40px;margin-top:6px;border:1px solid #c8d0da;border-radius:5px;padding:0 10px;outline:0}.login-card input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.12)}.form-error{min-height:19px;color:var(--red);font-size:11px}.classic-link{display:block;text-align:center;margin-top:18px;color:#657187;font-size:11px}
.prep-grid{display:grid;grid-template-columns:1fr 92px;gap:10px}.prep-field{display:flex;flex-direction:column;gap:5px}.prep-field.wide{grid-column:1/-1}.prep-field label{font-size:9px;color:#7d889a;text-transform:uppercase;letter-spacing:.06em;font-weight:700}.prep-field input,.prep-field select{height:34px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 9px;color:var(--ink);min-width:0}.prep-field input:focus,.prep-field select:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.dimension-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.check-field{display:flex;align-items:center;gap:7px;margin-top:5px;font-size:12px;color:#4e5a6e}.rates-shell{margin-top:13px}.rate-state{padding:14px;text-align:center;color:var(--muted);font-size:11px;background:#f7f8fa;border-radius:5px}.rate-card{display:grid;grid-template-columns:1fr auto;gap:10px;padding:11px 0;border-bottom:1px solid #e8ebef}.rate-card:last-child{border-bottom:0}.rate-name{font-weight:700;font-size:12px}.rate-meta{font-size:10px;color:#7d8899;margin-top:3px}.rate-price{text-align:right;font-weight:800;color:#1a2638}.rate-card .select-rate{height:27px;margin-top:5px}.selected-rate{background:#eaf7f1;color:#137152;padding:8px 10px;border-radius:5px;font-size:11px;margin-bottom:9px}.drawer-footer .button[disabled]{opacity:.55;cursor:not-allowed}
@media(max-width:1000px){.nav-item{padding:0 9px}.workspace{padding:20px 18px}.selection-note{display:none}}@media(max-width:760px){body{padding-bottom:52px}.app{grid-template:56px 1fr/1fr;grid-template-areas:"top" "work"}.brand{width:auto}.primary-nav{position:fixed;display:flex;left:0;right:0;bottom:0;height:52px;background:var(--navy);overflow-x:auto;z-index:60}.nav-item{flex:1 0 auto;min-width:82px;border-top:3px solid transparent;border-bottom:0;padding:0 10px}.nav-item.active{border-top-color:#4c96ff;border-bottom-color:transparent}.sidebar{display:none}.workspace{padding:16px 10px}.classic-button,#userName{display:none}.page-header{align-items:center}.page-header p{display:none}.toolbar{flex-wrap:wrap;height:auto}.search-wrap{width:100%}.toolbar-spacer{display:none}.selection-bar{flex-wrap:wrap}.selection-bar .button:not(.primary){display:none}}
.status.purchase_unknown{background:#fdebed;color:#a72e3a}.drawer-footer{flex-wrap:wrap}
.reconciliation-panel{margin-bottom:13px;padding:14px;border:1px solid #e8a8ae;border-radius:6px;background:#fff4f5;color:#70252d}.reconciliation-panel strong{display:block;font-size:12px}.reconciliation-panel p{font-size:11px;line-height:1.5;margin:7px 0 11px}.reconciliation-panel label{display:block;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-bottom:5px}.reconciliation-panel textarea{display:block;width:100%;min-height:72px;resize:vertical;border:1px solid #d99ba2;border-radius:5px;padding:8px;background:#fff;color:var(--ink);font:inherit;font-size:11px}.reconciliation-panel textarea:focus{outline:0;border-color:var(--red);box-shadow:0 0 0 2px rgba(194,61,75,.1)}
.connections-view{background:#fff;border:1px solid var(--line);border-radius:7px;padding:20px}.connections-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.connections-intro h2{font-size:16px;margin:0 0 5px}.connections-intro p{color:var(--muted);font-size:11px;margin:0}.connections-grid{display:grid;gap:22px}.connection-group-head{display:flex;align-items:center;gap:9px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #edf0f3}.connection-group-head h3{margin:0;font-size:13px}.connection-group-head p{margin:2px 0 0;color:var(--muted);font-size:9px}.connection-count{min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--blue-soft);color:#125fc5;display:grid;place-items:center;font-size:9px;font-weight:800}.connection-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:13px}.connection-card{border:1px solid var(--line);border-radius:7px;padding:14px;background:#fff}.connection-card-head{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center}.connection-logo{width:38px;height:38px;border-radius:8px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}.connection-card h3{font-size:13px;margin:0 0 3px}.connection-card-head span{font-size:10px;color:var(--muted);text-transform:capitalize}.connection-status{font-style:normal;font-size:9px;text-transform:uppercase;color:var(--green);background:#e6f6f0;padding:4px 7px;border-radius:10px}.connection-status.error,.connection-status.disabled{color:var(--red);background:#fdebed}.capability-list{display:flex;flex-wrap:wrap;gap:5px;margin:13px 0}.capability-list span{font-size:9px;color:#536074;background:#f0f2f5;padding:4px 6px;border-radius:4px}.connection-meta{font-size:10px;color:var(--muted);padding:9px 0;border-top:1px solid #edf0f3}.connection-actions{display:flex;gap:7px;margin-top:7px}.connection-empty{grid-column:1/-1;min-height:90px;border:1px dashed #ccd4df;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:5px}
.operation-help{margin:18px 10px;padding:12px;border-radius:6px;background:#f4f7fb;color:#7a8699;font-size:10px;line-height:1.5}.operations-view{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}.operations-card-head{min-height:76px;padding:17px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.operations-card-head h2{font-size:16px;margin:0 0 4px}.operations-card-head p{font-size:11px;color:var(--muted);margin:0}.batches-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;padding:18px}.batch-card{border:1px solid var(--line);border-radius:7px;padding:14px;text-align:left;background:#fff}.batch-card:hover{border-color:#aac7ec;box-shadow:0 4px 16px rgba(23,38,60,.08)}.batch-title{display:flex;justify-content:space-between;gap:10px}.batch-title strong{font-size:13px}.batch-title span{font-size:10px;color:var(--muted)}.batch-progress{height:6px;background:#edf0f4;border-radius:4px;overflow:hidden;margin:13px 0 8px}.batch-progress i{display:block;height:100%;background:var(--green)}.batch-stats{display:flex;gap:11px;font-size:10px;color:var(--muted)}.batch-detail{border-top:1px solid var(--line);padding:18px}.batch-detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.batch-detail-head h3{margin:0;font-size:14px}.batch-order{display:grid;grid-template-columns:1fr 120px 100px auto;align-items:center;gap:12px;padding:10px;border-top:1px solid #edf0f3;font-size:11px}.batch-order:first-of-type{border-top:0}.scan-view{padding:0}.scan-shell{max-width:760px;margin:0 auto;padding:46px 28px;text-align:center}.scan-shell h2{font-size:24px;margin:8px 0 6px}.scan-shell>p{color:var(--muted);margin:0 0 24px}.scan-form{display:flex;gap:8px}.scan-form input{height:52px;flex:1;min-width:0;border:2px solid #aebed2;border-radius:7px;padding:0 15px;font-size:18px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.scan-form input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.12)}.scan-form .button{height:52px}.scan-result{margin-top:20px;text-align:left}.scan-match{border:1px solid var(--line);border-radius:7px;padding:15px;margin-top:9px;background:#fff}.scan-match-head{display:flex;justify-content:space-between;align-items:flex-start}.scan-match h3{margin:0;color:#125fc5;font-size:15px}.scan-match-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:15px 0}.scan-actions{display:flex;gap:8px}.operation-empty{padding:42px;text-align:center;color:var(--muted);font-size:12px}.inline-search{display:flex;gap:7px}.inline-search input{height:34px;width:270px;border:1px solid #c9d1dc;border-radius:5px;padding:0 10px}.tracking-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#125fc5;font-weight:650}.tracking-carrier{font-weight:650}.operations-view .table-scroll{max-height:620px}.operations-view tbody tr{cursor:default}.operations-view .row-open{cursor:pointer}.status.unknown{background:#eff2f5;color:#536074}.status.in_transit{background:#eaf2ff;color:#125fc5}.status.delivered{background:#e6f6f0;color:#117150}
@media(max-width:760px){.operations-card-head{align-items:flex-start;flex-direction:column}.scan-shell{padding:30px 15px}.scan-form{flex-direction:column}.scan-match-grid{grid-template-columns:1fr 1fr}.inline-search{width:100%}.inline-search input{width:100%}.batch-order{grid-template-columns:1fr auto}.batch-order>*:nth-child(2),.batch-order>*:nth-child(3){display:none}}

/* ShipStation-inspired application shell */
.app{--sidebar-width:280px;grid-template:56px 1fr/var(--sidebar-width) minmax(0,1fr);grid-template-areas:"top top" "side work";transition:grid-template-columns .2s ease}
.topbar{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(23,38,60,.02)}
.brand-shell{width:var(--sidebar-width);height:56px;flex:0 0 var(--sidebar-width);display:flex;align-items:center;background:var(--navy);transition:width .2s ease,flex-basis .2s ease}
.brand{width:auto;min-width:0;flex:1;padding:0 0 0 18px;gap:10px}.brand-copy{display:flex;min-width:0;flex-direction:column;font-size:13px;line-height:1.05;white-space:nowrap}.brand-copy small{margin-top:4px;color:#8fa4c2;font-size:8px;font-weight:700;letter-spacing:.13em}.nav-toggle{width:29px;height:29px;margin-right:10px;border:1px solid rgba(255,255,255,.15);border-radius:5px;background:rgba(255,255,255,.04);color:#dce6f3;font-size:18px;line-height:1}.nav-toggle:hover{background:rgba(255,255,255,.1)}
.global-search{height:34px;width:min(440px,38vw);margin-left:16px;padding:0 10px;border:1px solid #cfd7e2;border-radius:6px;background:#f8fafc;color:#6a7689;display:flex;align-items:center;gap:9px;text-align:left;font-size:12px}.global-search:hover{border-color:#9fb4d1;background:#fff}.global-search span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-search kbd{margin-left:auto;padding:2px 6px;border:1px solid #d5dce5;border-radius:4px;background:#fff;color:#758196;font:10px ui-monospace,SFMono-Regular,Menlo,monospace}.top-actions{color:var(--ink)}.icon-button,.user-button,.classic-button{color:#56647a}.icon-button:hover{background:#eef3f8;color:#174f99}.utility-settings.active{background:var(--blue-soft);color:#125fc5;box-shadow:inset 0 0 0 1px #b8d1f2}.classic-button{border-color:#cbd3de}.user-button #avatar{background:#dce8fb;color:#214f93}.user-menu{top:49px}
.sidebar{width:var(--sidebar-width);top:56px;padding:13px 10px 82px;background:var(--navy);border-right:0;color:#d8e2ef;transition:width .2s ease}.side-primary{display:flex;flex-direction:column;gap:2px}.side-heading{padding:7px 10px;color:#778ca9}.side-section-gap{margin-top:7px}.side-nav-item{width:100%;min-height:54px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#ccd7e6;display:flex;align-items:center;gap:9px;text-align:left}.side-nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.side-nav-item.active{background:#2d66cc;color:#fff}.side-nav-icon{width:21px;flex:0 0 21px;text-align:center;font-size:15px}.side-nav-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}.side-nav-copy strong{font-size:12px;font-weight:700}.side-nav-copy small{color:#8fa3bf;font-size:9px;line-height:1.3;white-space:normal}.side-nav-item.active .side-nav-copy small{color:#d5e4ff}.side-nav-total{align-self:flex-start;color:#90a4c0;font-size:10px;font-weight:700}.side-nav-item.active .side-nav-total{color:#e4eeff}
.contextual-nav{margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.09)}.stores-heading{margin-top:14px}.queue{height:34px;color:#aebdd0;font-size:11px}.queue:hover{background:rgba(255,255,255,.06);color:#fff}.queue.active{background:rgba(74,132,236,.2);color:#dceaff}.queue b{background:rgba(255,255,255,.08);color:#9fb0c7}.queue.active b{background:rgba(255,255,255,.12);color:#e5efff}.dot.dark,.dot.pale{background:#9aabc1}.operation-help{margin:4px 9px;padding:10px;background:rgba(255,255,255,.05);color:#8fa3bd}.side-footer{left:0;width:var(--sidebar-width);padding:11px 18px;background:#142239;border-top-color:rgba(255,255,255,.09);color:#c6d3e2;transition:width .2s ease}.side-footer small{color:#8094af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace{padding:22px 24px 40px}.page-header{margin-bottom:18px}.page-header h1{font-size:22px}.toolbar{box-shadow:0 1px 2px rgba(23,38,60,.03)}.table-card{box-shadow:0 5px 18px rgba(23,38,60,.04)}
.app.nav-collapsed{--sidebar-width:72px}.app.nav-collapsed .brand{justify-content:center;padding:0}.app.nav-collapsed .brand-copy,.app.nav-collapsed .side-heading,.app.nav-collapsed .side-nav-copy,.app.nav-collapsed .side-nav-total,.app.nav-collapsed .contextual-nav,.app.nav-collapsed .side-footer div,.app.nav-collapsed .side-footer small{display:none}.app.nav-collapsed .brand-mark.small{width:32px;height:32px}.app.nav-collapsed .nav-toggle{position:absolute;left:59px;width:20px;height:25px;margin:0;padding:0;background:var(--navy-2)}.app.nav-collapsed .sidebar{padding:13px 8px}.app.nav-collapsed .side-nav-item{min-height:43px;justify-content:center;padding:0}.app.nav-collapsed .side-footer{height:48px;padding:0}.app.nav-collapsed .side-footer:after{content:"●";display:grid;height:100%;place-items:center;color:#20ad7b}
@media(max-width:1100px) and (min-width:761px){.app{--sidebar-width:250px}.global-search{width:min(350px,33vw)}.workspace{padding:20px 18px}.side-nav-copy small{font-size:9px}}
@media(max-width:760px){body{padding-bottom:0}.app{--sidebar-width:64px;grid-template:56px 1fr/var(--sidebar-width) minmax(0,1fr);grid-template-areas:"top top" "side work"}.sidebar{display:block;width:var(--sidebar-width);padding:10px 7px 58px}.brand-shell{width:var(--sidebar-width);flex-basis:var(--sidebar-width)}.brand{justify-content:center;padding:0}.brand-copy,.nav-toggle,.side-heading,.side-nav-copy,.side-nav-total,.contextual-nav,.side-footer div,.side-footer small{display:none}.side-nav-item{min-height:43px;justify-content:center;padding:0}.side-footer{display:block;width:var(--sidebar-width);height:48px;padding:0}.side-footer:after{content:"●";display:grid;height:100%;place-items:center;color:#20ad7b}.global-search{display:none}.top-actions{padding-right:8px}.workspace{padding:15px 10px}.page-header h1{font-size:19px}}

/* Settings workspace */
.settings-view{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.settings-nav{position:sticky;top:78px;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;padding:9px 0}.settings-nav-heading{padding:9px 14px 5px;color:#8a95a7;font-size:9px;font-weight:800;letter-spacing:.09em}.settings-nav-gap{margin-top:7px;border-top:1px solid #edf0f4;padding-top:14px}.settings-nav-item{width:100%;padding:9px 14px;border:0;border-left:3px solid transparent;background:#fff;color:#3f4c61;text-align:left;display:flex;flex-direction:column;gap:3px}.settings-nav-item:hover{background:#f6f8fb}.settings-nav-item.active{border-left-color:var(--blue);background:var(--blue-soft);color:#125fc5}.settings-nav-item strong{font-size:12px}.settings-nav-item small{color:#8a95a6;font-size:9px;line-height:1.35}.settings-nav-item.active small{color:#6683ad}.settings-content{min-width:0;position:relative}.settings-loading{min-height:220px;background:#fff;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted)}.settings-pane{display:none}.settings-pane.active{display:block}.settings-pane-header{min-height:54px;margin-bottom:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.settings-pane-header h2{margin:0 0 4px;font-size:18px}.settings-pane-header p,.settings-panel-header p,.settings-setting-row p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.settings-panel{margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}.settings-panel-header{min-height:60px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fafbfc;display:flex;align-items:center;justify-content:space-between;gap:16px}.settings-panel h3,.settings-setting-row h3{margin:0 0 4px;font-size:12px}.settings-list{min-height:52px}.settings-list-empty{padding:22px 16px;text-align:center;color:var(--muted);font-size:11px}.settings-list-row{min-height:64px;padding:11px 16px;border-top:1px solid #edf0f3;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px}.settings-list-row:first-child{border-top:0}.settings-provider-mark{width:34px;height:34px;border-radius:7px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800}.settings-list-row strong{display:block;font-size:11px}.settings-list-row small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.settings-list-actions{display:flex;align-items:center;gap:7px}.settings-connection-state{color:var(--green);font-size:9px;font-weight:800;text-transform:uppercase}.settings-connection-state.error,.settings-connection-state.disabled{color:var(--red)}.settings-form-panel{padding:0}.settings-setting-row{min-height:84px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid #edf0f3}.settings-setting-row:first-child{border-top:0}.settings-control{min-width:210px;display:flex;flex-direction:column;gap:5px;color:#6c778a;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.settings-control input,.settings-control select,.settings-field-grid input,.settings-field-grid select,.settings-reference-table input,.settings-reference-table select{height:34px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:var(--ink);padding:0 9px;outline:0}.settings-control input:focus,.settings-control select:focus,.settings-field-grid input:focus,.settings-field-grid select:focus,.settings-reference-table input:focus,.settings-reference-table select:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.settings-control small{color:var(--muted);font-size:9px;font-weight:500;text-transform:none;letter-spacing:0}.settings-control code{color:#125fc5}.settings-switch{display:flex;align-items:center;gap:8px;color:#536074;font-size:11px;font-weight:700}.settings-switch input{width:17px;height:17px;accent-color:var(--blue)}.settings-form-actions{min-height:53px;padding:9px 16px;border-top:1px solid var(--line);background:#fafbfc;display:flex;align-items:center;gap:10px}.settings-form-actions span{color:var(--green);font-size:10px}.settings-reference-table{min-width:780px}.settings-reference-table th,.settings-reference-table td{height:auto;padding:9px}.settings-reference-table input{width:70px}.settings-reference-table select{min-width:130px}.settings-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:16px}.settings-field-grid label{display:flex;flex-direction:column;gap:6px;color:#667286;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.settings-field-grid input,.settings-field-grid select{width:100%;text-transform:none;letter-spacing:0;font-weight:400}.settings-pane[hidden]{display:none}
@media(max-width:980px){.settings-view{grid-template-columns:180px minmax(0,1fr)}.settings-setting-row{align-items:flex-start;flex-direction:column}.settings-control{width:100%;min-width:0}}
@media(max-width:760px){.settings-view{display:block}.settings-nav{position:static;display:flex;overflow-x:auto;margin-bottom:12px;padding:0}.settings-nav-heading{display:none}.settings-nav-item{min-width:150px;border-left:0;border-bottom:3px solid transparent}.settings-nav-item.active{border-left:0;border-bottom-color:var(--blue)}.settings-field-grid{grid-template-columns:1fr}.settings-pane-header{flex-direction:column}.settings-list-row{grid-template-columns:34px minmax(0,1fr)}.settings-list-actions{grid-column:1/-1;padding-left:45px}}

/* Live order-sync progress */
.sync-progress-backdrop{position:fixed;inset:0;z-index:120;background:rgba(12,23,39,.48);display:grid;place-items:center;padding:20px;backdrop-filter:blur(2px)}.sync-progress-dialog{width:min(520px,100%);background:#fff;border:1px solid #cfd7e2;border-radius:10px;box-shadow:0 24px 70px rgba(12,23,39,.28);overflow:hidden}.sync-progress-header{display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px;align-items:center;padding:20px 21px 17px;border-bottom:1px solid var(--line)}.sync-progress-header h2{margin:3px 0 4px;font-size:19px}.sync-progress-header p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.sync-progress-icon{width:46px;height:46px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:22px;font-weight:800}.sync-progress-icon .spinner{width:20px;height:20px}.sync-progress-dialog.complete .sync-progress-icon{background:#e6f6f0;color:var(--green)}.sync-progress-dialog.failed .sync-progress-icon{background:#fdebed;color:var(--red)}.sync-progress-body{padding:19px 21px}.sync-progress-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px}.sync-progress-label span{color:var(--muted);font-variant-numeric:tabular-nums}.sync-progress-track{height:9px;border-radius:5px;background:#e8edf3;overflow:hidden}.sync-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1769e0,#4d93f2);transition:width .2s ease}.sync-progress-dialog.complete .sync-progress-track i{background:var(--green)}.sync-progress-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}.sync-progress-stats div{padding:11px 8px;border:1px solid #e3e7ed;border-radius:6px;background:#fafbfc;text-align:center}.sync-progress-stats strong{display:block;font-size:17px;font-variant-numeric:tabular-nums}.sync-progress-stats span{display:block;margin-top:3px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.sync-progress-activity{min-height:37px;padding:10px 11px;border-radius:6px;background:#f3f6fa;color:#536074;display:flex;align-items:center;gap:8px;font-size:10px}.sync-progress-activity .health-dot{flex:0 0 auto}.sync-progress-footer{min-height:58px;padding:10px 21px;border-top:1px solid var(--line);background:#fafbfc;display:flex;align-items:center;justify-content:space-between}.sync-progress-footer>span{color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.sync-progress-footer .button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:520px){.sync-progress-backdrop{padding:10px}.sync-progress-stats{grid-template-columns:1fr 1fr}.sync-progress-header,.sync-progress-body,.sync-progress-footer{padding-left:15px;padding-right:15px}}

.sync-progress-dialog:has(.sync-detail-panel){width:min(760px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column}.sync-progress-dialog:has(.sync-detail-panel) .sync-progress-body{overflow:auto}.sync-detail-panel{margin:0 0 13px;border:1px solid #dce3ec;border-radius:8px;overflow:hidden;background:#fff}.sync-detail-head{min-height:58px;padding:11px 13px;background:#f4f7fb;display:flex;align-items:center;justify-content:space-between;gap:18px}.sync-detail-head>div:first-child{min-width:0}.sync-detail-head strong{display:block;font-size:14px}.sync-detail-head span{display:block;margin-top:3px;color:#637086;font-size:12px;line-height:1.35}.sync-detail-head>div:last-child{flex:0 0 auto;text-align:right}.sync-detail-head>div:last-child strong{font-variant-numeric:tabular-nums}.sync-detail-head>div:last-child span{font-size:11px}.sync-detail-matrix{padding:10px 12px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;border-top:1px solid #e2e7ee;border-bottom:1px solid #e2e7ee}.sync-detail-matrix>div{min-width:0;padding:8px 9px;border-radius:6px;background:#fafbfd}.sync-detail-matrix span{display:block;color:#69758a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.sync-detail-matrix strong{display:block;margin-top:4px;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}.sync-stall-warning{margin:10px 12px 0;padding:10px 12px;border:1px solid #efc36a;border-radius:6px;background:#fff8e8;color:#80570c}.sync-stall-warning strong,.sync-stall-warning span{display:block}.sync-stall-warning strong{font-size:13px}.sync-stall-warning span{margin-top:3px;font-size:12px;line-height:1.4}.sync-activity-log-wrap{padding:11px 12px}.sync-activity-log-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sync-activity-log-head strong{font-size:13px}.sync-activity-log-head span{color:#69758a;font-size:11px;font-variant-numeric:tabular-nums}.sync-activity-log{height:114px;margin:8px 0 0;padding:0;overflow:auto;border:1px solid #e4e8ee;border-radius:6px;background:#fbfcfd;list-style:none}.sync-activity-log li{min-height:34px;padding:7px 9px;border-top:1px solid #e8ecf1;display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px;align-items:center;font-size:12px}.sync-activity-log li:first-child{border-top:0}.sync-activity-log time{color:#778397;font-size:11px;font-variant-numeric:tabular-nums}.sync-activity-log li.success span{color:#197758}.sync-activity-log li.error span{color:#ad2f3c}.sync-progress-dialog.complete .sync-detail-head{background:#eff9f5}.sync-progress-dialog.failed .sync-detail-head{background:#fff3f4}@media(max-width:700px){.sync-detail-matrix{grid-template-columns:repeat(3,minmax(0,1fr))}.sync-activity-log li{grid-template-columns:72px minmax(0,1fr)}}

/* Expanded batch operations workspace */
.batch-card.active{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.batch-expand-copy{margin-left:auto;color:#1769e0;font-weight:700}.batch-detail{background:#f8fafc}.batch-detail-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.batch-collapse{white-space:nowrap}.batch-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.batch-action-card{min-height:142px;padding:14px;border:1px solid var(--line);border-radius:7px;background:#fff;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-content:start}.batch-action-card>.button,.batch-action-card>.batch-action-buttons{grid-column:2;margin-top:8px;justify-self:start}.batch-step{width:25px;height:25px;border-radius:50%;background:var(--blue-soft);color:#125fc5;display:grid;place-items:center;font-size:10px;font-weight:800}.batch-action-card strong{font-size:11px}.batch-action-card small{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.4}.batch-assign-card form{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin-top:8px}.batch-assign-card select{height:32px;min-width:0;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 7px;font-size:10px}.batch-action-buttons,.batch-secondary-actions{display:flex;flex-wrap:wrap;gap:7px}.batch-rate-results{margin-top:12px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden}.batch-rate-head{min-height:54px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f3f7fc}.batch-rate-head small,.batch-rate-order-head small,.batch-rate-option small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.batch-rate-order{padding:13px;border-top:1px solid #e1e6ed}.batch-rate-order-head,.batch-rate-provider-head,.batch-rate-option{display:flex;align-items:center;justify-content:space-between;gap:12px}.batch-rate-order-head{padding-bottom:10px}.batch-rate-order-head>div>strong{font-size:12px}.batch-rate-order-head>span{color:var(--muted);font-size:10px}.batch-rate-provider{padding:10px 0;border-top:1px solid #edf0f3}.batch-rate-provider-head>div{display:flex;align-items:center;gap:7px}.batch-rate-provider-head>div>span{padding:2px 6px;border-radius:10px;background:#eef3f8;color:#5a687c;font-size:8px;font-weight:700;text-transform:uppercase}.batch-rate-provider-head small{color:var(--muted);font-size:9px}.batch-rate-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:7px;margin-top:8px}.batch-rate-option{min-height:54px;padding:9px 10px;border:1px solid #dfe5ec;border-radius:6px;background:#fff}.batch-rate-option.best{border-color:#7eb1f2;background:#f3f8ff}.batch-rate-option>div:last-child{display:flex;align-items:center;gap:7px;white-space:nowrap}.best-rate-badge{padding:2px 6px;border-radius:10px;background:#dcecff;color:#125fc5;font-size:8px;font-weight:800;text-transform:uppercase}.batch-rate-provider-error{margin-top:8px;padding:8px 10px;border-radius:5px;background:#fff3f4;color:#a72e3a;font-size:9px}.batch-action-status{min-height:40px;margin-top:12px;padding:10px 12px;border-radius:6px;background:#eef3f8;color:#536074;display:flex;align-items:center;gap:7px;font-size:10px}.batch-secondary-actions{margin:12px 0 17px;padding-bottom:16px;border-bottom:1px solid var(--line)}.button.danger{border-color:#c23d4b;background:#c23d4b;color:#fff}.button.danger-quiet{border-color:#dba8ae;color:#a72e3a;background:#fff}.batch-orders-head{display:flex;align-items:center;gap:7px;margin-bottom:5px}.batch-orders-head strong{font-size:12px}.batch-orders-head span{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#e7ebf0;color:#657187;display:grid;place-items:center;font-size:9px}@media(max-width:1050px){.batch-action-grid{grid-template-columns:1fr}.batch-action-card{min-height:0}.batch-assign-card form{grid-template-columns:1fr 1fr auto}}@media(max-width:650px){.batch-detail{padding:13px}.batch-detail-head{align-items:flex-start;gap:10px}.batch-assign-card form{grid-template-columns:1fr}.batch-secondary-actions .button{width:100%}.batch-action-buttons{width:100%}.batch-rate-options{grid-template-columns:1fr}}

/* Detailed batch rate-shopping progress */
.batch-rate-progress{margin-top:12px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;overflow:hidden}.batch-rate-progress>header{min-height:58px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f3f7fc}.batch-rate-progress>header strong{display:block;font-size:12px}.batch-rate-progress>header small{display:block;margin-top:4px;color:#5f6d81;font-size:10px}.batch-rate-progress>header>span{color:#647289;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}.batch-rate-progress-track{height:5px;background:#e7ecf2;overflow:hidden}.batch-rate-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#1769e0,#4d93f2);transition:width .2s ease}.batch-rate-progress.complete .batch-rate-progress-track i{background:var(--green)}.batch-rate-progress.failed .batch-rate-progress-track i{background:var(--red)}.batch-rate-progress-stats{padding:11px 14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-bottom:1px solid #e3e8ef}.batch-rate-progress-stats>div{padding:9px 10px;border:1px solid #e1e7ee;border-radius:6px;background:#fafbfd}.batch-rate-progress-stats strong{display:block;font-size:14px;font-variant-numeric:tabular-nums}.batch-rate-progress-stats span{display:block;margin-top:3px;color:#6d798c;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.batch-rate-active{padding:11px 14px;border-bottom:1px solid #e3e8ef}.batch-rate-active>strong,.batch-rate-progress-orders>strong{display:block;margin-bottom:8px;color:#536074;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.batch-rate-active-list{display:grid;gap:6px}.batch-rate-active-list>div:not(.batch-rate-progress-idle){min-height:31px;padding:6px 8px;border-radius:5px;background:#edf5ff;display:grid;grid-template-columns:9px minmax(110px,auto) 1fr;gap:7px;align-items:center;font-size:9px}.batch-rate-active-list>div>span:last-child{color:#5c6b80;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-rate-active-list>small,.batch-rate-progress-idle{color:#6e7b8e;font-size:9px}.batch-rate-progress-orders{padding:11px 14px}.batch-rate-progress-orders>div{max-height:230px;overflow:auto;border:1px solid #e1e7ee;border-radius:6px}.batch-rate-progress-order{min-height:48px;padding:7px 9px;border-top:1px solid #e8ecf1;display:grid;grid-template-columns:24px minmax(130px,1fr) auto;gap:8px;align-items:center}.batch-rate-progress-order:first-child{border-top:0}.batch-rate-progress-order>div strong{display:block;font-size:10px}.batch-rate-progress-order>div small{display:block;margin-top:3px;color:#758195;font-size:9px}.batch-rate-progress-order>span:last-child{color:#536074;font-size:9px;text-align:right}.batch-rate-order-state{width:22px;height:22px;border-radius:50%;background:#edf1f5;color:#7d8898;display:grid;place-items:center;font-size:10px;font-weight:800}.batch-rate-order-state .spinner{width:12px;height:12px}.batch-rate-progress-order.done .batch-rate-order-state{background:#e2f5ed;color:var(--green)}.batch-rate-progress-order.error .batch-rate-order-state{background:#fdebed;color:var(--red)}@media(max-width:650px){.batch-rate-progress-stats{grid-template-columns:1fr 1fr}.batch-rate-progress>header{align-items:flex-start}.batch-rate-progress-order{grid-template-columns:24px 1fr}.batch-rate-progress-order>span:last-child{grid-column:2;text-align:left}.batch-rate-active-list>div:not(.batch-rate-progress-idle){grid-template-columns:9px 1fr}.batch-rate-active-list>div>span:last-child{grid-column:2}}

/* Connection health-test progress */
.sync-progress-track.indeterminate i{width:38%;animation:connection-scan 1.15s ease-in-out infinite}@keyframes connection-scan{0%{transform:translateX(-110%)}100%{transform:translateX(285%)}}.connection-test-steps{margin:18px 0;display:grid;gap:8px}.connection-test-steps>div{min-height:48px;padding:8px 10px;border:1px solid #e2e7ed;border-radius:6px;display:grid;grid-template-columns:27px minmax(0,1fr);gap:9px;align-items:center;color:#778296}.connection-test-steps>div>span{width:25px;height:25px;border-radius:50%;background:#edf0f4;display:grid;place-items:center;font-size:10px;font-weight:800}.connection-test-steps strong{display:block;color:#536074;font-size:10px}.connection-test-steps small{display:block;margin-top:3px;font-size:9px}.connection-test-steps>div.active{border-color:#aac7ec;background:#f5f9ff}.connection-test-steps>div.active>span{background:var(--blue-soft);color:var(--blue)}.connection-test-steps>div.done>span{background:#e6f6f0;color:var(--green)}.connection-test-steps>div.failed{border-color:#e5b3b9;background:#fff6f7}.connection-test-steps>div.failed>span{background:#fdebed;color:var(--red)}.connection-test-steps>div.skipped{opacity:.62}.sync-progress-activity.success{background:#e9f7f2;color:#117150}.sync-progress-activity.failure{background:#fff0f1;color:#a72e3a}.connection-last-test{margin:9px 0 0;padding:8px 9px;border-radius:5px;display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;align-items:center}.connection-last-test>span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:800}.connection-last-test strong{display:block;font-size:9px}.connection-last-test small{display:block;margin-top:2px;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connection-last-test.success{background:#e9f7f2;color:#117150}.connection-last-test.success>span{background:#ccecdf}.connection-last-test.failure{background:#fff0f1;color:#a72e3a}.connection-last-test.failure>span{background:#f7d5d9}.settings-list-row .connection-last-test{max-width:360px}.connection-card .connection-last-test{margin-bottom:4px}

/* Categorized connection setup */
.settings-connection-group+.settings-connection-group{border-top:1px solid var(--line)}.settings-connection-group-head{padding:11px 16px;background:#f7f9fc;display:flex;align-items:center;gap:8px}.settings-connection-group-head strong{font-size:10px;text-transform:uppercase;letter-spacing:.05em}.settings-connection-group-head small{color:var(--muted);font-size:9px}.add-connection-dialog{width:min(680px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #cfd7e2;border-radius:10px;box-shadow:0 24px 70px rgba(12,23,39,.28)}.add-connection-header{padding:19px 21px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:18px}.add-connection-header h2{margin:3px 0 4px;font-size:19px}.add-connection-header p{margin:0;color:var(--muted);font-size:10px}.add-connection-body{padding:18px 21px}.connection-choice{margin:0 0 18px;padding:0;border:0}.connection-choice legend{margin-bottom:8px;color:#536074;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.connection-category-tabs,.connection-provider-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.connection-category,.connection-provider{min-height:69px;padding:10px;border:1px solid #d3dae4;border-radius:7px;background:#fff;text-align:left;display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 9px;align-items:center;color:var(--ink)}.connection-category:hover,.connection-provider:hover{border-color:#9ebee8;background:#f8fbff}.connection-category.active,.connection-provider.active{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 0 0 1px var(--blue)}.connection-category>span,.connection-provider>span{grid-row:1/3;width:34px;height:34px;border-radius:7px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:8px;font-weight:800}.connection-category strong,.connection-provider strong{font-size:11px}.connection-category small,.connection-provider small{color:var(--muted);font-size:9px}.connection-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.connection-fields label{display:flex;flex-direction:column;gap:5px;color:#667286;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.connection-fields label.wide{grid-column:1/-1}.connection-fields input{height:36px;width:100%;border:1px solid #c9d1dc;border-radius:5px;padding:0 9px;outline:0;text-transform:none;letter-spacing:0;font-weight:400}.connection-fields input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.connection-fields em{color:var(--muted);font-size:8px;font-style:normal;font-weight:500;text-transform:none;letter-spacing:0}.add-connection-footer{padding:11px 21px;border-top:1px solid var(--line);background:#fafbfc;display:flex;justify-content:flex-end;gap:8px}.form-error{min-height:16px;color:var(--red);font-size:10px}.add-connection-dialog.busy{pointer-events:none}.add-connection-dialog.busy .button{opacity:.55}@media(max-width:600px){.connection-category-tabs,.connection-provider-choices,.connection-fields{grid-template-columns:1fr}.connection-fields label.wide{grid-column:auto}.add-connection-header,.add-connection-body,.add-connection-footer{padding-left:15px;padding-right:15px}}

/* Automation CRUD */
.automation-list{min-height:100px}.automation-row{min-height:82px;padding:13px 16px;border-top:1px solid #edf0f3;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center}.automation-row:first-child{border-top:0}.automation-mark{width:38px;height:38px;border-radius:8px;background:var(--blue-soft);color:#125fc5;display:grid;place-items:center;font-size:9px;font-weight:800}.automation-row h3{margin:0 0 4px;font-size:11px}.automation-row p{margin:0;color:var(--muted);font-size:9px}.automation-row-actions{display:flex;align-items:center;gap:7px}.automation-state{padding:4px 7px;border-radius:10px;background:#e6f6f0;color:var(--green);font-size:8px;font-weight:800;text-transform:uppercase}.automation-state.disabled{background:#edf0f4;color:#687487}.automation-toggle{min-width:62px}.automation-dialog{width:min(520px,100%)}.automation-form-fields{display:grid;gap:13px}.automation-form-fields>label:not(.automation-enabled){display:flex;flex-direction:column;gap:6px;color:#667286;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.automation-form-fields input[type=text],.automation-form-fields input:not([type]),.automation-form-fields select{height:36px;width:100%;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 9px;outline:0;text-transform:none;letter-spacing:0;font-weight:400}.automation-form-fields input:focus,.automation-form-fields select:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.automation-enabled{display:flex;align-items:center;gap:8px;color:#536074;font-size:10px;font-weight:700}.automation-enabled input{width:17px;height:17px;accent-color:var(--blue)}@media(max-width:700px){.automation-row{grid-template-columns:38px minmax(0,1fr)}.automation-row-actions{grid-column:1/-1;padding-left:50px;flex-wrap:wrap}}

/* ShipStation-style progressive connection setup */
.add-connection-dialog{width:min(760px,100%)}.connection-wizard-progress{height:50px;padding:0 22px;border-bottom:1px solid var(--line);background:#fafbfc;display:flex;align-items:center}.connection-wizard-progress span{display:flex;align-items:center;gap:7px;min-width:120px;color:#8a95a6;font-size:11px;font-weight:700}.connection-wizard-progress span:not(:last-child)::after{content:"";width:36px;height:1px;margin:0 12px;background:#d6dce5}.connection-wizard-progress i{width:23px;height:23px;border-radius:50%;background:#e6eaf0;color:#738095;display:grid;place-items:center;font-size:10px;font-style:normal}.connection-wizard-progress span.active{color:#1769e0}.connection-wizard-progress span.active i{background:#1769e0;color:#fff}.connection-wizard-progress span.done{color:#27875f}.connection-wizard-progress span.done i{background:#dff3eb;color:#27875f}.connection-wizard-back{align-self:center;width:35px;height:35px;flex:0 0 auto;border:1px solid #cbd4df;border-radius:6px;background:#fff;color:#526176;font-size:18px}.connection-step-heading{margin-bottom:15px}.connection-step-heading h3{margin:0 0 5px;font-size:16px}.connection-step-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.connection-category-tabs{gap:12px}.connection-category{min-height:104px;padding:15px;grid-template-columns:46px minmax(0,1fr) auto;gap:4px 12px}.connection-category>span{grid-row:1/4;width:44px;height:44px;font-size:10px}.connection-category strong{font-size:14px}.connection-category small{font-size:11px;line-height:1.4}.connection-category b,.connection-provider b{grid-column:3;grid-row:1/3;color:#1769e0;font-size:11px;white-space:nowrap}.connection-provider-search{height:40px;margin-bottom:13px;border:1px solid #c9d1dc;border-radius:6px;display:flex;align-items:center;gap:8px;padding:0 11px;color:#718096}.connection-provider-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.connection-provider-search input{width:100%;border:0;outline:0;font-size:13px}.connection-provider-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.connection-provider{min-height:86px;padding:13px;grid-template-columns:42px minmax(0,1fr) auto;gap:4px 11px}.connection-provider>span{grid-row:1/3;width:40px;height:40px;font-size:10px}.connection-provider strong{font-size:13px}.connection-provider small{font-size:10px;line-height:1.35}.connection-provider-empty{grid-column:1/-1;padding:30px;border:1px dashed #cbd4df;border-radius:7px;text-align:center;color:var(--muted)}.connection-provider-empty strong{display:block;color:var(--ink);font-size:13px}.connection-provider-empty span{display:block;margin-top:5px;font-size:11px}.connection-selected-provider{margin:-2px 0 18px;padding:12px;border:1px solid #c9daf1;border-radius:7px;background:#f4f8fe;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px}.connection-selected-provider>span{width:42px;height:42px;border-radius:7px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}.connection-selected-provider small{display:block;color:#6d7a8f;font-size:9px;font-weight:800;letter-spacing:.06em}.connection-selected-provider strong{display:block;margin-top:3px;font-size:14px}.connection-selected-provider button{border:0;background:transparent;color:#1769e0;font-size:11px;font-weight:700}.connection-fields label{font-size:10px}.connection-fields input{height:40px;font-size:13px}.connection-fields em{font-size:10px;line-height:1.35}.add-connection-footer{min-height:59px}.add-connection-footer .button{min-width:86px}@media(max-width:600px){.connection-wizard-progress span{min-width:0;flex:1;font-size:0}.connection-wizard-progress span:not(:last-child)::after{width:18px;margin:0 7px}.connection-category,.connection-provider{grid-template-columns:42px minmax(0,1fr)}.connection-category b,.connection-provider b{display:none}}

/* Label watermark manager */
.watermark-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.watermark-presets-panel{position:sticky;top:78px;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}.watermark-presets-panel>header{padding:15px 16px;border-bottom:1px solid var(--line);background:#fafbfc}.watermark-presets-panel strong{display:block;font-size:14px}.watermark-presets-panel small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.watermark-preset-item{width:100%;min-height:66px;padding:11px 14px;border:0;border-top:1px solid #edf0f3;background:#fff;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.watermark-preset-item:first-child{border-top:0}.watermark-preset-item:hover{background:#f7f9fc}.watermark-preset-item.active{background:var(--blue-soft);box-shadow:inset 3px 0 var(--blue)}.watermark-preset-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.watermark-preset-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.watermark-preset-state{grid-row:1/3;grid-column:2;padding:4px 7px;border-radius:9px;background:#e6f6f0;color:var(--green);font-size:10px;font-weight:800;text-transform:uppercase;align-self:center}.watermark-preset-state.off{background:#edf0f4;color:#687487}.watermark-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:5px}.watermark-editor{min-width:0}.watermark-section{margin-bottom:16px}.watermark-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:17px}.watermark-field-grid label,.watermark-style-grid label{display:flex;flex-direction:column;gap:6px;color:#5f6c81;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.watermark-field-grid label.wide,.watermark-style-grid label.wide{grid-column:1/-1}.watermark-field-grid input,.watermark-field-grid select,.watermark-style-grid input,.watermark-style-grid select,.watermark-custom-row input,.watermark-element-row input{width:100%;height:38px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 10px;outline:0;text-transform:none;letter-spacing:0;font-size:13px;font-weight:400}.watermark-field-grid select[multiple]{height:112px;padding:8px;line-height:1.45}.watermark-field-grid label>small{color:var(--muted);font-size:11px;line-height:1.4;text-transform:none;letter-spacing:0;font-weight:500}.watermark-builder{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(420px,1.2fr);gap:17px;padding:17px}.watermark-controls{min-width:0}.watermark-token-title{margin-bottom:8px;color:#5f6c81;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.watermark-tokens{display:flex;flex-wrap:wrap;gap:6px}.watermark-token{padding:7px 9px;border:1px solid #b9d1ef;border-radius:5px;background:#f2f7ff;color:#125fc5;font-size:11px;font-weight:800}.watermark-custom-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin:11px 0 17px}.watermark-style-grid{display:grid;grid-template-columns:1.4fr .7fr .8fr .7fr;gap:10px;padding-top:16px;border-top:1px solid #edf0f3}.watermark-style-grid input[type=color]{padding:4px}.watermark-check{justify-content:flex-end}.watermark-check input{width:18px;height:18px;accent-color:var(--blue)}.watermark-style-grid label.wide>span{float:right}.watermark-element-list{margin-top:16px;border-top:1px solid #edf0f3;padding-top:12px}.watermark-element-row{display:grid;grid-template-columns:minmax(0,1fr) 52px 52px 52px 30px;gap:6px;align-items:end;margin-top:8px}.watermark-element-row label{color:#68758a;font-size:10px;text-transform:uppercase}.watermark-element-row input{height:34px;font-size:12px}.watermark-element-delete{width:30px;height:34px;border:1px solid #e0a9af;border-radius:5px;background:#fff;color:var(--red);font-size:16px}.watermark-preview-panel{min-width:0}.watermark-preview-tools{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.watermark-preview-tools>strong{font-size:12px}.watermark-preview-tools>span{display:flex;align-items:center;gap:6px}.watermark-preview-tools .button{height:32px;padding:0 10px;font-size:12px}.watermark-upload input{display:none}.watermark-preview-viewport{height:560px;overflow:auto;background:#e9edf2;border-radius:7px;padding:20px;display:flex;align-items:flex-start;justify-content:center}.watermark-label{position:relative;width:300px;height:450px;flex:0 0 auto;background:#fff;border:1px solid #adb7c5;box-shadow:0 3px 12px rgba(23,38,60,.12);overflow:hidden;transform-origin:top center}.watermark-label-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#aab4c1;font-size:12px}.watermark-label>img,.watermark-label>object{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}.watermark-grid-lines{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,transparent 24.8%,rgba(92,109,132,.18) 25%,transparent 25.2%,transparent 49.8%,rgba(92,109,132,.18) 50%,transparent 50.2%,transparent 74.8%,rgba(92,109,132,.18) 75%,transparent 75.2%)}.watermark-preview-element{position:absolute;z-index:4;min-height:18px;border:1px dashed transparent;cursor:move;user-select:none;white-space:pre-wrap;line-height:1.35;word-break:break-word}.watermark-preview-element:hover,.watermark-preview-element.selected{border-color:var(--blue);background:rgba(234,242,255,.35)}.watermark-resize-handle{position:absolute;right:-4px;bottom:-4px;width:9px;height:9px;border-radius:2px;background:var(--blue);cursor:se-resize}.watermark-actions{justify-content:flex-end}.watermark-actions>span{margin-right:auto}@media(max-width:1120px){.watermark-builder{grid-template-columns:1fr}.watermark-preview-viewport{height:520px}}@media(max-width:800px){.watermark-workspace{grid-template-columns:1fr}.watermark-presets-panel{position:static}.watermark-preset-list{display:flex;overflow-x:auto}.watermark-preset-item{min-width:200px;border-top:0;border-left:1px solid #edf0f3}.watermark-field-grid{grid-template-columns:1fr}.watermark-field-grid label.wide{grid-column:auto}.watermark-style-grid{grid-template-columns:1fr 1fr}.watermark-style-grid label.wide{grid-column:1/-1}.watermark-builder{padding:12px}.watermark-preview-viewport{height:480px;padding:12px}}

/* Scalable batch index and dedicated batch-order page */
#batchListScreen{background:#fff}.batch-list-toolbar{min-height:58px;padding:11px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafbfc}.batch-search{position:relative;display:flex;align-items:center;min-width:280px}.batch-search>span{position:absolute;left:10px;color:#758196}.batch-search input{width:100%;height:36px;padding:0 11px 0 31px;border:1px solid #c9d1dc;border-radius:6px;background:#fff;font-size:10px;outline:0}.batch-search input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.batch-filter-tabs,.batch-order-filters{display:flex;align-items:center;gap:5px}.batch-filter-tabs .filter,.batch-order-filters .filter{height:31px;padding:0 11px;border:1px solid transparent;border-radius:5px;background:transparent;color:#5d687a;font-size:9px;font-weight:700}.batch-filter-tabs .filter:hover,.batch-order-filters .filter:hover{background:#eef3f8}.batch-filter-tabs .filter.active,.batch-order-filters .filter.active{border-color:#a9c4e8;background:#eaf2ff;color:#125fc5}.batches-grid{display:block;padding:0}.batch-list-table{min-width:760px}.batch-list-row{cursor:pointer}.batch-list-row:hover td{background:#f7faff}.batch-list-row:focus{outline:2px solid var(--blue);outline-offset:-2px}.batch-list-name{display:block;color:#125fc5;font-weight:750}.batch-list-progress{width:105px;height:6px;margin-bottom:3px;border-radius:4px;background:#e9edf2;overflow:hidden}.batch-list-progress i{display:block;height:100%;border-radius:inherit;background:var(--green)}.batch-state{display:inline-flex;padding:4px 7px;border-radius:10px;background:#eaf2ff;color:#125fc5;font-size:8px;font-weight:800;text-transform:uppercase}.batch-state.complete{background:#e6f6f0;color:#117150}.batch-state.empty{background:#edf0f4;color:#687487}.batch-detail{padding:18px;background:#f5f7fa;border-top:0}.batch-detail-head{margin-bottom:15px}.batch-detail-head>div{display:grid;justify-items:start}.batch-detail-head h3{margin-top:6px;font-size:17px}.batch-back-link{margin:0 0 12px;padding:0;border:0;background:transparent;color:#125fc5;font-size:10px;font-weight:750}.batch-back-link:hover{text-decoration:underline}.batch-orders-card{margin-top:15px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden}.batch-orders-toolbar{min-height:62px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px}.batch-orders-toolbar>div{display:flex;align-items:center;gap:7px}.batch-orders-toolbar strong{font-size:12px}.count-chip{min-width:21px;height:21px;padding:0 6px;border-radius:11px;background:#e7ebf0;color:#657187;display:grid;place-items:center;font-size:9px}.batch-order-filters{padding:8px 14px;border-top:1px solid #edf0f3;border-bottom:1px solid var(--line);background:#fafbfc}.batch-orders-card .table-scroll{max-height:620px}.batch-orders-card tbody tr{cursor:pointer}.batch-orders-card tbody tr:hover td{background:#f7faff}.batch-orders-card .pagination,.batches-grid .pagination{border-top:1px solid var(--line)}.batch-detail-error{min-height:240px}.batch-detail-error .batch-back-link{margin:0}@media(max-width:850px){.batch-list-toolbar,.batch-orders-toolbar{align-items:stretch;flex-direction:column}.batch-search{min-width:0;width:100%}.batch-filter-tabs,.batch-order-filters{overflow-x:auto}.batch-detail{padding:12px}}@media(max-width:600px){.batch-list-toolbar{padding:10px}.batch-filter-tabs .filter,.batch-order-filters .filter{flex:0 0 auto}.batch-detail-head{align-items:flex-start;flex-direction:column}.batch-detail-head>[data-batch-actions-toggle]{width:100%}}

/* Individual order cancellation */
.drawer-footer{justify-content:flex-end;row-gap:8px}.drawer-footer .drawer-cancel{margin-right:0;order:-1}.button.danger-quiet:hover:not([disabled]){border-color:#c23d4b;background:#fff4f5;color:#8f2130}.button[disabled]{opacity:.55;cursor:not-allowed}@media(max-width:760px){.selection-bar #cancelSelectedOrder{display:inline-flex}}
.batch-selection-bar{border-left:0;border-right:0}.batch-list-row.selected td{background:#edf5ff}.batch-row-check{cursor:pointer}.batch-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}.batch-row-cancel{height:30px;padding:0 9px;border:1px solid transparent;border-radius:5px;background:transparent;color:#a72e3a;font-weight:700}.batch-row-cancel:hover:not([disabled]){border-color:#dba8ae;background:#fff4f5}.batch-row-cancel[disabled]{opacity:.55;cursor:not-allowed}@media(max-width:760px){.batch-selection-bar .button{display:inline-flex!important}}

/* Persistent filters and column customization */
.view-options-button{white-space:nowrap}.view-options-button.active{border-color:#9abbe7;background:#eaf2ff;color:#125fc5}.tracking-tools,.batch-order-tools{display:flex;align-items:center;gap:8px}.view-options-backdrop{position:fixed;inset:0;z-index:1100;display:flex;justify-content:flex-end;background:rgba(12,27,48,.32)}.view-options-backdrop[hidden]{display:none}.view-options-dialog{width:min(430px,100%);height:100%;display:flex;flex-direction:column;background:#fff;box-shadow:-12px 0 32px rgba(17,35,58,.18)}.view-options-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:24px;border-bottom:1px solid var(--line)}.view-options-dialog h2{margin:5px 0 3px;font-size:20px}.view-options-dialog header p,.view-options-body section>p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.view-options-body{flex:1;overflow:auto;padding:22px 24px}.view-options-body section+section{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.view-options-body h3{margin:0 0 3px;font-size:14px}.view-filter-controls{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:14px}.view-filter-controls label{display:grid;gap:6px;color:#5f6c81;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.view-filter-controls select{width:100%;height:39px;padding:0 32px 0 10px;border:1px solid #c9d1dc;border-radius:6px;background:#fff;color:var(--ink);font-size:12px}.view-column-controls{display:grid;gap:7px;margin-top:14px}.view-column-option{min-height:42px;display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:9px;padding:0 11px;border:1px solid #dce2ea;border-radius:6px;background:#fff;color:var(--ink);font-size:12px;font-weight:700}.view-column-option input{width:16px;height:16px;accent-color:var(--blue)}.view-column-option small{color:#8b96a6;font-size:9px;text-transform:uppercase}.view-column-option.locked{background:#f7f9fb}.view-options-dialog>footer{display:flex;justify-content:space-between;gap:10px;padding:16px 24px;border-top:1px solid var(--line);background:#fafbfc}.view-options-empty{display:block;margin-top:12px;color:var(--muted);font-size:12px}table [data-col][hidden]{display:none!important}@media(max-width:850px){.tracking-tools,.batch-order-tools{width:100%;align-items:stretch;flex-direction:column}.tracking-tools .inline-search,.batch-order-tools .batch-search{width:100%}.view-filter-controls{grid-template-columns:1fr}}

/* Scalable grouped rate shopping */
.batch-rate-source-picker{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px 12px;padding:10px 13px;border-top:1px solid var(--line);background:#fbfcfe}.batch-rate-source-picker>span{padding-top:6px;color:#657187;font-size:9px;font-weight:800;text-transform:uppercase}.batch-rate-source-picker>div{display:flex;flex-wrap:wrap;gap:7px}.batch-rate-source-picker label{min-width:190px;padding:7px 9px;border:1px solid #d8e0ea;border-radius:6px;background:#fff;display:flex;align-items:flex-start;gap:7px;cursor:pointer}.batch-rate-source-picker input{margin-top:2px}.batch-rate-source-picker label span{display:grid;gap:2px}.batch-rate-source-picker label strong{font-size:10px}.batch-rate-source-picker label small,.batch-rate-source-picker>small{color:#6e7b8e;font-size:8px;line-height:1.35}.batch-rate-source-picker>small{grid-column:2}.batch-rate-filters{display:flex;align-items:flex-end;gap:10px;padding:10px 13px;border-top:1px solid var(--line);background:#fff}.batch-rate-filters label{display:grid;gap:4px;color:#657187;font-size:9px;font-weight:800;text-transform:uppercase}.batch-rate-filters select{min-width:145px;height:32px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 8px;color:#172033;font-size:10px}.batch-rate-filters>span{margin-left:auto;padding-bottom:8px;color:var(--muted);font-size:9px}.batch-rate-table-scroll{overflow:auto;border-top:1px solid var(--line)}.batch-rate-group-table{width:100%;min-width:1320px;border-collapse:collapse}.batch-rate-group-table th{padding:9px 10px;background:#f7f9fc;color:#66738a;font-size:8px;text-align:left;text-transform:uppercase;letter-spacing:.04em}.batch-rate-group-table td{padding:10px;border-top:1px solid #e5e9ef;vertical-align:middle;font-size:10px}.batch-rate-group-table td strong{font-size:10px}.batch-rate-group-table .subtext{margin-top:3px;font-size:8px}.batch-rate-group-row:hover{background:#f8fbff}.batch-rate-ship-from{min-width:210px;color:#354258}.carrier-chip{display:inline-flex;padding:3px 7px;border-radius:12px;background:#e8f2ff;color:#125fc5;font-size:9px;font-weight:800}.batch-rate-restrictions{max-width:240px;color:#536074;line-height:1.4}.batch-rate-assign{height:29px;padding:0 10px}.batch-rate-detail-row>td{padding:0 10px 12px!important;background:#f7faff}.batch-rate-quote-scroll{max-height:310px;overflow:auto;border:1px solid #dce4ee;border-radius:5px;background:#fff}.batch-rate-quote-scroll table{width:100%;border-collapse:collapse}.batch-rate-quote-scroll th,.batch-rate-quote-scroll td{padding:7px 10px;font-size:9px}.batch-rate-errors{border-top:1px solid var(--line);padding:10px 13px;background:#fff9f9;color:#8f2d38;font-size:9px}.batch-rate-errors summary{cursor:pointer;font-weight:800}.batch-rate-errors div{display:grid;grid-template-columns:minmax(180px,1fr) 3fr;gap:10px;padding:7px 0;border-top:1px solid #f0dfe1}.batch-rate-errors div:first-of-type{margin-top:8px}.batch-rate-errors span{color:#9b4a53}@media(max-width:650px){.batch-rate-source-picker{grid-template-columns:1fr}.batch-rate-source-picker>small{grid-column:1}.batch-rate-filters{align-items:stretch;flex-direction:column}.batch-rate-filters select{width:100%}.batch-rate-filters>span{margin:0;padding:0}}

/* Readability scale: keep dense operational layouts usable without sub-12px text. */
html,body{font-size:16px}.button,.filter-button,.classic-button,.nav-item,.queue,.page-size,.selection-note,.toast{font-size:14px}.page-header h1{font-size:27px}.page-header p{font-size:15px}.side-heading,.eyebrow,th,.detail-label,.prep-field label,.settings-nav-heading,.settings-control,.settings-field-grid label,.view-filter-controls label,.batch-rate-source-picker>span,.batch-rate-filters label{font-size:12px}.queue b,.side-footer,.subtext,.status,.error-chip,.pagination,.detail-title,.detail-value,.rate-state,.rate-meta,.connection-meta,.settings-pane-header p,.settings-panel-header p,.settings-setting-row p,.settings-list-empty,.settings-list-row small,.settings-control small,.settings-switch,.settings-form-actions span,.batch-search input,.batch-filter-tabs .filter,.batch-order-filters .filter,.batch-back-link,.batch-orders-toolbar strong,.view-column-option,.batch-rate-source-picker label strong,.batch-rate-source-picker label small,.batch-rate-source-picker>small,.batch-rate-filters select,.batch-rate-filters>span,.batch-rate-group-table td,.batch-rate-group-table td strong,.batch-rate-group-table .subtext,.carrier-chip,.batch-rate-errors{font-size:12px}.settings-nav-item strong,.settings-panel h3,.settings-setting-row h3,.settings-list-row strong,.connection-card h3,.rate-name{font-size:14px}.settings-nav-item small,.settings-connection-group-head small,.connection-card-head span,.capability-list span{font-size:12px}.settings-pane-header h2{font-size:22px}.settings-control input,.settings-control select,.settings-field-grid input,.settings-field-grid select,.settings-reference-table input,.settings-reference-table select{font-size:14px}.batch-rate-group-table th,.batch-rate-quote-scroll th,.batch-rate-quote-scroll td{font-size:12px}.batch-rate-order-table{min-width:1280px}.batch-rate-order-row:hover{background:#f8fbff}.batch-state,.count-chip,.watermark-preset-state,.view-column-option small{font-size:11px}
.best-order-rate-badge{display:block;width:max-content;margin-top:3px;padding:2px 6px;border-radius:10px;background:#e2f5ed;color:#147552;font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap}.batch-rate-detail-row .best-order-rate-badge{display:inline-flex;margin:0 0 0 7px}

/* Comfortable typography scale: the operational UI must remain readable at normal browser zoom. */
html,body{font-size:17px;line-height:1.45}.brand-copy{font-size:15px}.brand-copy small{font-size:10px}.global-search{font-size:14px}.global-search kbd{font-size:12px}.side-heading{font-size:13px}.side-nav-item{min-height:62px}.side-nav-copy strong{font-size:15px}.side-nav-copy small{font-size:12px;line-height:1.4}.side-nav-total,.queue b{font-size:12px}.queue{height:40px;font-size:14px}.operation-help,.side-footer{font-size:13px}.page-header h1{font-size:30px}.page-header p{font-size:17px}.button,.filter-button,.classic-button,.page-size,.selection-note,.toast,input,select,textarea{font-size:15px}.button{min-height:38px}.toolbar{min-height:56px;height:auto}.search-wrap,.filter-button{min-height:38px;height:auto}th{height:44px;font-size:13px}td{height:66px;font-size:15px}.subtext,.status,.error-chip,.pagination{font-size:13px}.status{padding:5px 9px}.row-open{font-size:22px}.eyebrow,.detail-label,.prep-field label,.settings-nav-heading,.settings-control,.settings-field-grid label,.view-filter-controls label,.watermark-field-grid label,.watermark-style-grid label,.watermark-token-title,.batch-rate-source-picker>span,.batch-rate-filters label{font-size:13px}.detail-title,.detail-value,.rate-state,.rate-meta,.connection-meta,.settings-pane-header p,.settings-panel-header p,.settings-setting-row p,.settings-list-empty,.settings-list-row small,.settings-control small,.settings-switch,.settings-form-actions span,.batch-search input,.batch-filter-tabs .filter,.batch-order-filters .filter,.batch-back-link,.batch-orders-toolbar strong,.view-column-option,.batch-rate-source-picker label strong,.batch-rate-source-picker label small,.batch-rate-source-picker>small,.batch-rate-filters select,.batch-rate-filters>span,.batch-rate-group-table td,.batch-rate-group-table td strong,.batch-rate-group-table .subtext,.carrier-chip,.batch-rate-errors,.watermark-field-grid label>small,.watermark-token,.watermark-element-row label,.watermark-element-row input{font-size:14px}.settings-nav-item strong,.settings-panel h3,.settings-setting-row h3,.settings-list-row strong,.connection-card h3,.rate-name,.watermark-presets-panel strong{font-size:16px}.settings-nav-item small,.settings-connection-group-head small,.connection-card-head span,.capability-list span,.watermark-presets-panel small{font-size:13px}.settings-pane-header h2{font-size:25px}.settings-control input,.settings-control select,.settings-field-grid input,.settings-field-grid select,.settings-reference-table input,.settings-reference-table select,.watermark-field-grid input,.watermark-field-grid select,.watermark-style-grid input,.watermark-style-grid select,.watermark-custom-row input,.watermark-element-row input{font-size:15px;min-height:40px}.settings-list-row{min-height:72px}.batch-list-toolbar,.batch-orders-toolbar{min-height:68px}.batch-rate-source-picker label{min-height:48px}.batch-rate-filters select{height:38px}.batch-rate-group-table th,.batch-rate-quote-scroll th,.batch-rate-quote-scroll td{font-size:13px}.batch-rate-group-table td{padding:13px 11px}.batch-state,.count-chip,.watermark-preset-state,.view-column-option small,.best-order-rate-badge{font-size:12px}@media(max-width:760px){.side-nav-item{min-height:48px}.page-header h1{font-size:24px}td{height:60px;font-size:14px}}

/* Batch rate workspace hierarchy: summary-first progress and readable order decisions. */
.side-primary .side-nav-item{min-height:50px}
.batch-rate-progress>header{min-height:72px;padding:14px 16px}.batch-rate-progress>header strong{font-size:18px}.batch-rate-progress>header small{font-size:14px;line-height:1.45}.batch-rate-progress-meta{display:flex;align-items:center;gap:12px;white-space:nowrap}.batch-rate-progress-meta>span{color:#647289;font-size:13px;font-variant-numeric:tabular-nums}.batch-rate-progress-toggle{min-height:34px;padding:0 12px;font-size:13px}.batch-rate-progress-stats{grid-template-columns:repeat(5,minmax(0,1fr));padding:13px 16px;gap:10px}.batch-rate-progress-stats>div{padding:11px 12px}.batch-rate-progress-stats strong{font-size:19px}.batch-rate-progress-stats span{font-size:12px}.batch-rate-progress-stats .has-errors{border-color:#efc3c8;background:#fff6f7}.batch-rate-progress-stats .has-errors strong{color:var(--red)}.batch-rate-progress-details[hidden]{display:none}.batch-rate-active,.batch-rate-progress-orders{padding:14px 16px}.batch-rate-active>strong,.batch-rate-progress-orders>strong{font-size:13px}.batch-rate-active-list>div:not(.batch-rate-progress-idle){min-height:42px;padding:8px 10px;font-size:13px}.batch-rate-active-list>small,.batch-rate-progress-idle{font-size:13px}.batch-rate-progress-orders>div{max-height:360px}.batch-rate-progress-order{min-height:62px;padding:10px 12px;grid-template-columns:30px minmax(180px,1fr) auto}.batch-rate-progress-order>div strong{font-size:15px}.batch-rate-progress-order>div small,.batch-rate-progress-order>span:last-child{font-size:13px}.batch-rate-order-state{width:26px;height:26px;font-size:13px}
.batch-rate-head{min-height:68px;padding:13px 16px}.batch-rate-head strong{font-size:19px}.batch-rate-head small{font-size:13px;line-height:1.4}.batch-rate-order-table{min-width:900px;table-layout:fixed}.batch-rate-order-table th:nth-child(1){width:14%}.batch-rate-order-table th:nth-child(2){width:21%}.batch-rate-order-table th:nth-child(3){width:28%}.batch-rate-order-table th:nth-child(4){width:12%}.batch-rate-order-table th:nth-child(5){width:9%}.batch-rate-order-table th:nth-child(6){width:16%}.batch-rate-order-table th{font-size:13px}.batch-rate-order-table td{height:78px;padding:14px 12px;font-size:15px;white-space:normal}.batch-rate-order-table td>strong{font-size:15px}.batch-rate-order-table .subtext{font-size:13px;line-height:1.35}.batch-rate-shipping-option{display:flex;align-items:flex-start;gap:9px}.batch-rate-shipping-option .carrier-chip{margin-top:1px}.batch-rate-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}.batch-rate-row-actions .button{min-height:34px;padding:0 10px;font-size:13px}.batch-rate-details-button{color:#125fc5}.batch-rate-order-detail{padding:15px 0 2px}.batch-rate-order-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.batch-rate-order-detail-head strong{display:block;font-size:16px}.batch-rate-order-detail-head span{display:block;margin-top:2px;color:var(--muted);font-size:13px}.batch-rate-quote-scroll table{min-width:1040px}.batch-rate-quote-scroll th,.batch-rate-quote-scroll td{font-size:13px}.batch-rate-quote-scroll td{height:62px}.batch-rate-quote-scroll td:first-child .carrier-chip{margin-right:7px}.batch-rate-restrictions{max-width:none}.batch-rate-detail-row>td{padding:0 12px 14px!important}
@media(max-width:900px){.batch-rate-progress>header{align-items:flex-start;flex-direction:column}.batch-rate-progress-meta{width:100%;justify-content:space-between}.batch-rate-progress-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-rate-order-table{min-width:820px}.batch-rate-row-actions{align-items:stretch;flex-direction:column}.batch-rate-row-actions .button{width:100%}}

/* Order queues belong to the Orders workspace, where they act as status tabs. */
.order-queue-tabs{display:flex;align-items:stretch;gap:22px;margin:0 0 12px;padding:0 16px;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 1px 2px rgba(23,38,60,.03);scrollbar-width:thin}
.order-queue-tab{position:relative;flex:0 0 auto;min-height:52px;padding:0 2px;border:0;background:transparent;color:#59667b;font-size:15px;font-weight:650;white-space:nowrap}
.order-queue-tab:hover{color:#145fc5}
.order-queue-tab:after{content:"";position:absolute;right:0;bottom:0;left:0;height:3px;border-radius:3px 3px 0 0;background:transparent}
.order-queue-tab.active{color:#125fc5}
.order-queue-tab.active:after{background:var(--blue)}
.order-queue-tab b{display:inline-grid;min-width:25px;height:24px;margin-left:7px;padding:0 7px;place-items:center;border-radius:12px;background:#eef1f5;color:#647086;font-size:12px;font-weight:750}
.order-queue-tab.active b{background:#e6f0ff;color:#125fc5}
.order-queue-tab:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:4px}
@media(max-width:760px){.order-queue-tabs{gap:18px;margin-bottom:10px;padding:0 12px}.order-queue-tab{min-height:48px;font-size:14px}}

/* Keep the top-bar Settings action prominent and comfortably clickable. */
.utility-settings{display:grid;place-items:center;width:42px;height:42px;font-size:27px;line-height:1;border-radius:7px}
.icon-button{display:grid;place-items:center}
.utility-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.utility-settings .utility-icon{width:26px;height:26px}

/* Stable, consistent application iconography and utility grouping. */
.search-icon{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.utility-icon-group{display:flex;align-items:center;overflow:hidden;border:1px solid #cbd5e1;border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.utility-icon-group .icon-button{width:44px;height:42px;flex:0 0 44px;padding:0;border-radius:0;background:#fff;color:#526176}
.utility-icon-group .icon-button+.icon-button{border-left:1px solid #dbe3ec}
.utility-icon-group .icon-button:hover,.utility-icon-group .icon-button:focus-visible{position:relative;z-index:1;background:#eef5ff;color:#125fc5;outline:2px solid #80b4f7;outline-offset:-2px}
.utility-icon-group .utility-settings.active{background:var(--blue-soft);color:#125fc5;box-shadow:inset 0 0 0 1px #80b4f7}
.utility-icon-group .utility-icon{width:24px;height:24px;stroke-width:2.2;vector-effect:non-scaling-stroke}
.utility-icon-group .utility-settings .utility-icon{width:26px;height:26px}
.user-button{min-height:42px;border:1px solid transparent;border-radius:9px}
.user-button:hover,.user-button:focus-visible{border-color:#cbd5e1;background:#f8fafc;outline:none}
.user-chevron{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.user-button[aria-expanded="true"] .user-chevron{transform:rotate(180deg)}
.side-nav-icon{display:grid;place-items:center}
.side-nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

@media(max-width:760px){
  .top-actions{gap:6px}
  .utility-icon-group .icon-button{width:42px;height:42px;flex-basis:42px}
  .user-button{padding:5px;gap:0}
  .user-chevron{display:none}
  .side-nav-icon svg{width:20px;height:20px}
}

/* Keep selected-order actions on one line. Action labels must never shrink into
   narrow, stacked words; the optional helper copy yields the space first. */
.selection-bar strong,.selection-bar .button,.selection-bar .clear-selection{flex:0 0 auto;white-space:nowrap}
.selection-actions,.selection-actions-menu{display:contents}
.selection-actions-toggle{display:none}
.selection-actions-chevron{width:14px;height:14px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:transform .15s ease}
.selection-actions.open .selection-actions-chevron{transform:rotate(180deg)}
.selection-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1700px) and (min-width:761px){
  .selection-bar{flex-wrap:nowrap;gap:7px}
  .selection-note{display:none}
  .clear-selection{flex:0 0 auto;margin-left:auto}
}
@media(max-width:1100px) and (min-width:761px){
  .selection-bar #splitSelectedOrder,.selection-bar #unsplitSelectedOrder{display:none}
}
@media(max-width:760px){
  .selection-bar{align-items:center;gap:8px;padding:10px 12px}
  .selection-bar .selection-note{display:none}
  .selection-actions{display:block;position:relative}
  .selection-actions-toggle{display:inline-flex!important;align-items:center;gap:7px}
  .selection-actions-menu{display:none;position:absolute;top:calc(100% + 7px);left:0;z-index:80;min-width:218px;padding:6px;background:#fff;border:1px solid #cbd6e5;border-radius:8px;box-shadow:0 12px 30px rgba(19,38,69,.18)}
  .selection-actions.open .selection-actions-menu{display:grid;gap:3px}
  .selection-actions-menu .button{display:flex!important;width:100%;min-height:40px;justify-content:flex-start;border:0;background:transparent;text-align:left}
  .selection-actions-menu .button:hover:not(:disabled){background:#eef5ff}
  .selection-actions-menu .danger-quiet{color:#b4232d}
  .selection-actions-menu .danger-quiet:hover:not(:disabled){background:#fff1f2}
  .clear-selection{margin-left:auto}
}

/* Ship-from management mirrors the complete origin records available in V1. */
.ship-from-list{min-height:72px}.ship-from-row{min-height:118px;padding:16px;border-top:1px solid #e6eaf0;display:grid;grid-template-columns:40px minmax(180px,240px) minmax(280px,1fr) auto;gap:14px;align-items:start}.ship-from-row:first-child{border-top:0}.ship-from-row .settings-provider-mark{width:40px;height:40px;font-size:11px}.ship-from-identity{min-width:0;padding-top:2px}.ship-from-identity strong{display:block;color:var(--ink);font-size:16px}.ship-from-identity small{display:block;margin-top:4px;color:var(--muted);font-size:13px;line-height:1.4}.ship-from-row address{margin:0;padding:11px 13px;border:1px solid #e1e6ed;border-radius:7px;background:#f8fafc;color:#526076;font-size:14px;font-style:normal;line-height:1.45;display:grid;gap:2px}.ship-from-row address .primary{color:var(--ink);font-weight:750}.ship-from-empty-address{color:#8a5660!important;background:#fff8f8!important;border-color:#efd9dc!important}.ship-from-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;padding-top:2px}.connection-field-divider{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;gap:12px;align-items:baseline}.connection-field-divider strong{color:var(--ink);font-size:16px;text-transform:none;letter-spacing:0}.connection-field-divider span{color:var(--muted);font-size:13px;font-weight:400;text-transform:none;letter-spacing:0}
@media(max-width:1100px){.ship-from-row{grid-template-columns:40px minmax(160px,220px) minmax(240px,1fr)}.ship-from-actions{grid-column:2/-1;justify-content:flex-start}}
@media(max-width:760px){.ship-from-row{grid-template-columns:40px minmax(0,1fr)}.ship-from-row address,.ship-from-actions{grid-column:1/-1}.connection-field-divider{align-items:flex-start;flex-direction:column}}

/* Personal profile lives with the signed-in user controls, not workspace configuration. */
.profile-dialog{width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #cfd7e2;border-radius:11px;box-shadow:0 24px 70px rgba(12,23,39,.28)}.profile-dialog-header{padding:22px 24px 18px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.profile-dialog-header h2{margin:4px 0 5px;font-size:23px}.profile-dialog-header p{margin:0;color:var(--muted);font-size:14px}.profile-dialog-body{padding:20px 24px 24px;display:grid;gap:18px}.profile-section{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.profile-section-heading{padding:16px 18px;background:#fafbfc;border-bottom:1px solid var(--line)}.profile-section-heading h3{margin:0 0 5px;font-size:17px}.profile-section-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.profile-fields{padding:17px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-fields.password-fields{grid-template-columns:1fr 1fr}.profile-fields.password-fields label:first-child{grid-column:1/-1}.profile-fields label{display:grid;gap:7px;color:#59677c;font-size:12px;font-weight:800}.profile-fields input{width:100%;height:42px;padding:0 11px;border:1px solid #c9d1dc;border-radius:6px;background:#fff;color:var(--ink);font-size:14px;outline:0}.profile-fields input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.profile-section>.form-error{padding:0 18px}.profile-section footer{min-height:60px;padding:10px 18px;border-top:1px solid var(--line);background:#fafbfc;display:flex;align-items:center;justify-content:flex-end;gap:12px}.profile-form-status{margin-right:auto;color:var(--green);font-size:13px}.profile-dialog.busy{pointer-events:none}@media(max-width:600px){.profile-dialog-body,.profile-dialog-header{padding-left:15px;padding-right:15px}.profile-fields,.profile-fields.password-fields{grid-template-columns:1fr}.profile-fields.password-fields label:first-child{grid-column:auto}}
.split-chip{display:inline-block;color:#6243b2;background:#f2eeff;padding:2px 6px;border-radius:4px;margin-top:3px;margin-left:4px;font-size:10px;font-weight:700}
.rate-options-dialog{width:min(680px,100%)}
.rate-options-body{max-height:min(52vh,440px);overflow:auto;padding:14px 21px}
.rate-options-list{display:flex;flex-direction:column;gap:7px}
.rate-option{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 13px;border:1px solid #d7dee8;border-radius:7px;background:#fff;text-align:left;width:100%}
.rate-option:hover{border-color:var(--blue);background:#f8fbff}
.rate-option.selected{border-color:var(--blue);background:#eef5ff;box-shadow:0 0 0 1px var(--blue) inset}
.rate-option-mark{width:16px;height:16px;border-radius:50%;border:1px solid #b9c3d1;display:grid;place-items:center}
.rate-option.selected .rate-option-mark{border-color:var(--blue);background:var(--blue);color:#fff;font-size:10px}
.rate-option-name{font-weight:700;font-size:13px}
.rate-option-meta{display:block;color:#7d8899;font-size:11px;margin-top:3px}
.rate-option-cost{text-align:right;font-weight:800;color:#1a2638;white-space:nowrap}
.rate-option-cost small{display:block;font-weight:600;color:#7d8899;font-size:10px;margin-top:2px}
.rate-option-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:9px;background:#e2f5ed;color:#147552;font-size:10px;font-weight:800;text-transform:uppercase}
.rate-option-partial{background:#fff7e8;color:#8c590b}
.rate-options-errors{margin-top:12px;padding:10px 12px;border-radius:6px;background:#fdf2f3;color:#a2323d;font-size:11px;line-height:1.5}
.rate-options-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 21px;border-top:1px solid var(--line);flex-wrap:wrap;row-gap:8px}
.rate-options-footer .selection-note{margin-right:auto}
.rate-error{margin-bottom:8px}.rate-error:last-child{margin-bottom:0}
.rate-error strong{color:#8d2b35}
.rate-error-action{display:block;margin-top:3px;color:#5d6a7a}
.rate-error-detail{display:block;margin-top:2px;color:#8a94a5;font-size:10px}
.rate-progress{padding:2px 0 4px}
.rate-progress .sync-progress-stats{margin-top:12px}
.rate-progress .sync-progress-activity{margin-top:12px}
.rate-sources{border:1px solid var(--line);border-radius:7px;padding:11px 12px;margin-bottom:11px;background:#f9fafc}
.rate-sources-label{display:block;font-size:9px;font-weight:800;letter-spacing:.06em;color:#7d889a;text-transform:uppercase;margin-bottom:8px}
.rate-source{display:inline-flex;align-items:flex-start;gap:7px;margin:0 12px 6px 0;font-size:12px}
.rate-source small{display:block;color:#8a94a5;font-size:10px}
.rate-sources-hint{margin:4px 0 0;color:#8a94a5;font-size:10px}
.rate-filters{display:flex;gap:12px;margin-bottom:11px;font-size:11px;color:#7d889a}
.rate-filters label{display:flex;align-items:center;gap:6px}
.rate-filters select{height:30px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 8px;color:var(--ink)}
.rate-row{border:1px solid #d7dee8;border-radius:7px;margin-bottom:7px;overflow:hidden}
.rate-row-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) auto auto;gap:10px;align-items:center;padding:10px 12px}
.rate-row-main small{display:block;color:#8a94a5;font-size:10px;margin-top:2px}
.rate-row-option strong{font-size:12px}
.rate-row-cost{font-weight:800;text-align:right;white-space:nowrap}
.rate-row-cost em{display:block;font-style:normal;font-size:9px;font-weight:800;color:#147552;text-transform:uppercase}
.rate-row-toggle{border:1px solid #c9d1dc;background:#fff;border-radius:5px;height:28px;padding:0 9px;font-size:11px;color:#465268;white-space:nowrap}
.rate-alternatives{border-top:1px solid #e8ebf0;background:#f8fafc;padding:6px}
.rate-alternative{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid transparent;border-radius:5px;padding:8px 10px;background:transparent}
.rate-alternative:hover{background:#fff;border-color:#d7dee8}
.rate-alternative.selected{background:#eef5ff;border-color:var(--blue)}
.rate-alternative small{display:block;color:#8a94a5;font-size:10px;margin-top:2px}
.rate-alternative-cost{font-weight:800;white-space:nowrap;text-align:right}
.rate-alternative-cost em{display:block;font-style:normal;font-size:9px;font-weight:800;color:#147552;text-transform:uppercase}
.carrier-message{margin:6px 0 10px;padding:9px 11px;border-radius:6px;background:#fff;border:1px solid #f0c9ce;color:#8d2b35;font-size:12px;line-height:1.45;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.carrier-error-panel{border:1px solid #f0c9ce;background:#fdf2f3;border-radius:6px;padding:12px 13px;margin-bottom:13px}
.carrier-error-panel strong{display:block;color:#8d2b35;font-size:12px;margin-bottom:2px}
.item-rate{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:9px;background:#eef5ff;color:#125fc5;font-size:10px;font-weight:800;vertical-align:middle}
.th-sort{padding:0}
.th-sort-button{display:flex;align-items:center;gap:6px;width:100%;height:100%;padding:0 11px;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left;cursor:pointer}
.th-sort-button:hover{background:#eef2f7;color:#33405a}
.th-sort-button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.sort-icon{color:#b3bcca;font-size:11px;line-height:1}
.sort-icon.active{color:var(--blue)}
.batch-picker-list{display:grid;gap:6px}
.batch-picker-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:1px solid #d8e0ea;border-radius:6px;background:#fff;text-align:left;cursor:pointer}
.batch-picker-row:hover{border-color:var(--blue);background:#f7faff}
.batch-picker-row span:first-child{display:grid;gap:2px;min-width:0}
.batch-picker-row strong{font-size:13px;color:var(--ink)}
.batch-picker-row small{color:var(--muted);font-size:11px}
.batch-picker-go{color:#125fc5;font-weight:700;font-size:12px;white-space:nowrap}
.filter-batch-count{display:flex;align-items:baseline;gap:8px;padding:12px 14px;border-radius:7px;background:#f4f7fb;margin-bottom:12px}
.filter-batch-count strong{font-size:28px;color:var(--ink);line-height:1}
.filter-batch-count span{color:var(--muted);font-size:12px}
.filter-batch-criteria{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.filter-batch-criteria li{padding:4px 9px;border-radius:11px;background:#eef2f7;color:#495a72;font-size:11px}
.filter-batch-warning{margin:12px 0 0;padding:9px 11px;border-radius:6px;background:#fff7e8;color:#8c590b;font-size:11px;line-height:1.5}
/* Both selection-bar dropdowns act as real menus at every width. The bar used to
   flatten them inline above 760px, which fit while there were five actions; with the
   print variants and the batch targets it overflowed the bar instead. */
.selection-actions{display:block;position:relative}
.selection-actions-toggle{display:inline-flex!important;align-items:center;gap:7px}
.selection-actions-menu{display:none;position:absolute;top:calc(100% + 7px);left:0;z-index:80;min-width:244px;padding:6px;background:#fff;border:1px solid #cbd6e5;border-radius:8px;box-shadow:0 12px 30px rgba(19,38,69,.18)}
.selection-actions.open .selection-actions-menu{display:grid;gap:3px}
.selection-actions-menu .button{display:flex!important;width:100%;min-height:40px;justify-content:flex-start;border:0;background:transparent;text-align:left}
.selection-actions-menu .button:hover:not(:disabled){background:#eef5ff}
.selection-actions-menu .danger-quiet{color:#b4232d}
.selection-actions-menu .danger-quiet:hover:not(:disabled){background:#fff1f2}
.items-view{display:grid;gap:13px}
.items-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 11px}
.items-filter{display:flex;gap:4px}
.item-sync-report{background:#f4f8fd;border:1px solid #cfe0f4;border-radius:7px;padding:11px 13px;font-size:12px;color:#33465f}
.item-sync-report strong{display:block;margin-bottom:5px;font-size:13px;color:var(--ink)}
.item-sync-report ul{margin:0;padding-left:17px;display:grid;gap:2px}
.item-sync-report .form-error{margin:8px 0 0}
#itemsTable tbody tr.archived{opacity:.55}
.item-identifiers{font-size:11px;color:#5b6a7a}
.prov-chip{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:8px;font-size:9px;font-weight:800;vertical-align:middle}
.prov-chip.mw{background:#e8f2ff;color:#125fc5}
.prov-chip.source{background:#f1efe8;color:#6b6558}
.item-form{display:grid;gap:12px}.item-form label.wide{grid-column:1/-1}
.item-notes{display:grid;gap:5px;color:#657187;font-size:11px;font-weight:700;text-transform:uppercase}
.item-notes textarea{border:1px solid #c9d1dc;border-radius:5px;padding:7px 9px;font:inherit;font-size:13px;text-transform:none;color:var(--ink)}
.item-form-hint{margin:0;color:var(--muted);font-size:12px}
.field-hint{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.item-fill-intro{margin:0 0 11px;color:#495a72;font-size:12px}
.item-fill-table{width:100%;border-collapse:collapse}
.item-fill-table th{position:sticky;top:0;background:#f7f9fc;padding:7px 9px;font-size:9px}
.item-fill-table td{padding:8px 9px;border-top:1px solid #e8ebf0;font-size:12px;height:auto}
.item-fill-table .subtext{margin-top:2px}
#itemsTable tbody tr.selected{background:#edf5ff}
.item-delete-list{margin:0;padding-left:18px;display:grid;gap:4px;font-size:12px;color:#33465f;max-height:320px;overflow:auto}
.item-delete-list strong{color:var(--ink)}
.item-measure{display:block;margin-top:3px;color:#4a5a70;font-size:11px}
.item-measure.missing{color:#96703a}
.hold-chip{display:inline-block;margin-top:3px;padding:2px 6px;border-radius:4px;background:#fff4e5;color:#8a5200;font-size:10px;font-weight:650}
.hold-panel{border:1px solid #f0c98a;border-left:3px solid #d98b1f;border-radius:7px;padding:12px 13px;margin-bottom:13px;background:#fffaf2}
.hold-panel strong{display:block;color:#8a5200;font-size:12px;margin-bottom:3px}
.hold-panel p{margin:0 0 6px;color:#6d5327;font-size:11px;line-height:1.5}
.hold-since{color:#94794a!important;font-size:10px!important}
.hold-release{display:grid;gap:6px;margin-top:9px;padding-top:9px;border-top:1px solid #f0dcc0}
.hold-release label{color:#8a5200;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.hold-release textarea{width:100%;border:1px solid #dcc7a4;border-radius:5px;padding:7px 8px;font:inherit;font-size:12px;color:var(--ink);background:#fff;resize:vertical}
.hold-release textarea:focus{outline:0;border-color:#d98b1f;box-shadow:0 0 0 2px rgba(217,139,31,.15)}
.hold-release-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
.hold-note-error{margin-right:auto;color:#a3282f;font-size:11px}
.addr-status{padding:2px 7px;border-radius:10px;font-size:10px;font-weight:700;text-transform:none}
.addr-status.valid{background:#e6f6f0;color:#117150}
.addr-status.invalid,.addr-status.error{background:#fdebed;color:#a72e3a}
.addr-status.warning{background:#fff4e5;color:#8a5200}
.addr-status.pending{background:#eaf2ff;color:#125fc5}
.addr-status.unchecked{background:#eff2f5;color:#616e83}
.addr-issues{margin:9px 0 0;padding-left:17px;display:grid;gap:3px;color:#8a3a42;font-size:11px;line-height:1.5}
.addr-actions{margin-top:10px;display:flex;justify-content:flex-end}
.addr-chip{display:inline-block;margin-top:3px;padding:2px 6px;border-radius:4px;background:#fdebed;color:#a72e3a;font-size:10px;font-weight:650}
.scan-item-name{margin:3px 0 0;color:var(--muted);font-size:12px}
.scan-orders{margin-top:13px;border-top:1px solid var(--line);padding-top:12px}
.scan-orders-head{margin-bottom:8px;color:#495a72;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.scan-orders-table{width:100%;border-collapse:collapse}
.scan-orders-table th{background:#f7f9fc;padding:7px 9px;font-size:9px}
.scan-orders-table td{padding:9px;border-top:1px solid #e8ebf0;font-size:12px;height:auto;vertical-align:middle}
.scan-orders-table .subtext{margin-top:2px}
.scan-qty{font-weight:700;font-size:14px;color:var(--ink)}
.scan-row-actions{display:flex;justify-content:flex-end;gap:7px;white-space:nowrap}
.scan-row-actions .button{min-height:32px;padding:0 11px;font-size:12px}
.measurement-review{background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px;min-height:370px;display:flex;flex-direction:column}
.measurement-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid var(--line)}
.measurement-review-head h3{margin:4px 0 3px;font-size:17px}
.measurement-review-head p{margin:0;color:var(--muted);font-size:12px}
.measurement-table{width:100%;border-collapse:collapse}
.measurement-table th{background:#f7f9fc;padding:8px 10px;font-size:9px;position:sticky;top:0;z-index:1}
.measurement-table td{padding:10px;border-top:1px solid #e8ebf0;font-size:12px;height:auto;vertical-align:middle}
.measurement-table tr.excluded{opacity:.45}
.measurement-table .subtext{margin-top:3px;max-width:none}
.measure-from{color:var(--muted);text-decoration:line-through}
.measure-arrow{margin:0 6px;color:#9aa5b5}
.measure-to{color:#117150}
.measure-same{color:var(--muted)}
.measurement-review-actions{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 17px;border-top:1px solid var(--line)}
.measurement-review-note{margin-right:auto;max-width:640px;color:#718099;font-size:11px;line-height:1.5}
.measurement-table td:last-child .subtext,.measurement-table td:nth-child(4) .subtext{max-width:230px;white-space:normal}
.member-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.member-role-select{height:32px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 8px;color:#172033}
.member-role-static{padding:4px 9px;border-radius:11px;background:#eff2f5;color:#536074;font-size:11px;font-weight:650}
.member-you{margin-left:5px;padding:1px 6px;border-radius:9px;background:#eaf2ff;color:#125fc5;font-size:10px;font-weight:700}
.member-password-note{margin:10px 0 0;color:#6e7b8e;font-size:11px;line-height:1.55}
.member-password-field{display:grid;gap:5px;color:#657187;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.member-password-field input{height:38px;border:1px solid #c9d1dc;border-radius:5px;padding:0 10px;font:inherit;font-size:13px;color:var(--ink);text-transform:none;letter-spacing:normal}
.member-form-error{margin:10px 0 0;padding:8px 10px;border-radius:5px;background:#fdebed;color:#a3282f;font-size:11px}
/* A member row has no provider mark, so it declares its own columns rather than
   inheriting the shared mark | text | actions grid and shifting everything left. */
.settings-list-row.member-row{grid-template-columns:minmax(0,1fr) auto}
.settings-list-row.member-row strong{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media(max-width:760px){
  .settings-list-row.member-row{grid-template-columns:minmax(0,1fr);gap:9px}
  .member-row-actions{justify-content:flex-start;flex-wrap:wrap;white-space:normal}
}
/* Issues sit in their own column now; chips stack when a row has more than one. */
td[data-col="issues"]{white-space:normal}
td[data-col="issues"] .error-chip,td[data-col="issues"] .hold-chip,td[data-col="issues"] .addr-chip{display:inline-block;margin:2px 4px 2px 0}
.issue-none{color:#c2c9d4}
.void-results{margin-top:13px}
.void-results-head{margin-bottom:7px;color:#8a3a42;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.void-result{display:grid;gap:2px;padding:8px 10px;border:1px solid #f0dcdf;border-radius:6px;background:#fff8f8;margin-bottom:6px}
.void-result strong{font-size:12px;color:var(--ink)}
.void-result span{color:#8a3a42;font-size:11px;line-height:1.5}
.selection-actions-heading{display:block;padding:9px 11px 4px;color:#8a94a5;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.selection-actions-heading:first-child{padding-top:4px}
.selection-actions-heading.danger{margin-top:4px;padding-top:9px;border-top:1px solid #edf0f3;color:#b4232d}
.store-rule-actions{align-items:center;gap:14px}.store-rule-summary{min-width:230px;text-align:right}.store-rule-summary small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}.store-mode{display:inline-block;padding:2px 7px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.store-mode.fixed{background:var(--blue-soft);color:#125fc5}.store-mode.rate-shop{background:#e6f6f0;color:#117150}.store-mode.unassigned{background:#eef1f5;color:#6c778a}
@media(max-width:900px){.store-rule-summary{min-width:0;text-align:left}.store-rule-actions{flex-direction:column;align-items:flex-start;gap:7px}}
.issue-row{grid-template-columns:118px minmax(0,1fr) auto}.issue-state{justify-self:start;padding:3px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.issue-state.open{background:#fff4dc;color:#8a5a00}.issue-state.resolved{background:#eef1f5;color:#6c778a}.issue-state.fixed{background:#e6f6f0;color:#117150}.issue-conversation{display:grid;gap:9px}.issue-message{padding:9px 11px;border-radius:7px;border:1px solid var(--line)}.issue-message span{display:block;margin-bottom:4px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.issue-message p{margin:0;font-size:11px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.issue-message.from-support{background:#f6f8fb}.view-options-dialog.wide{max-width:720px}
@media(max-width:760px){.issue-row{grid-template-columns:1fr}}
.support-panel{position:fixed;right:18px;bottom:18px;z-index:60;width:min(420px,calc(100vw - 32px));height:min(640px,calc(100vh - 100px));background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 50px rgba(15,23,42,.18);display:flex;flex-direction:column;overflow:hidden}.support-panel[hidden]{display:none}.support-panel-head{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.support-panel-head h2{margin:2px 0 4px;font-size:15px}.support-panel-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.support-messages{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:9px;background:#fafbfc}.support-empty{margin:auto;max-width:280px;text-align:center;color:var(--muted);font-size:11px;line-height:1.5}.support-bubble{max-width:88%;padding:9px 11px;border-radius:9px;font-size:11px;line-height:1.5}.support-bubble p{margin:0;white-space:pre-wrap;word-break:break-word}.support-bubble.from-user{align-self:flex-end;background:var(--blue);color:#fff}.support-bubble.from-support{align-self:flex-start;background:#fff;border:1px solid var(--line)}.support-bubble.pending{display:flex;align-items:center;gap:7px;color:var(--muted)}.support-image-tag{display:block;margin-bottom:4px;font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;opacity:.8}.support-recorded{margin-top:7px;padding:0;border:0;background:none;color:#125fc5;font-size:10px;font-weight:700;cursor:pointer}.support-compose{padding:11px 14px;border-top:1px solid var(--line);display:grid;gap:8px}.support-compose textarea{width:100%;resize:vertical;min-height:58px;border:1px solid #c9d1dc;border-radius:6px;padding:8px 9px;font:inherit;font-size:11px;outline:0}.support-compose textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}.support-compose-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.support-attach-button{cursor:pointer;margin-right:auto}.support-attachment{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;font-size:10px}.support-attachment img{width:42px;height:42px;object-fit:cover;border-radius:4px}.support-attachment span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-attachment button{border:0;background:none;font-size:16px;cursor:pointer;color:var(--muted)}
@media(max-width:760px){.support-panel{right:8px;left:8px;bottom:8px;width:auto;height:calc(100vh - 80px)}}
/* Between the phone layout and a full desktop nothing in the top bar collapsed, so each
   utility added there pushed it past the edge. The avatar and its menu still say who is
   signed in; the name is the first thing to go. */
@media(max-width:1000px){#userName{display:none}.user-button{gap:0}}
/* The search bar held a fixed third of the width, so it never gave way to the controls
   beside it. Narrower here, with its hint text truncating and the keyboard shortcut —
   which means nothing on a touch screen — dropped. */
.global-search{overflow:hidden;min-width:0}.global-search span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.global-search{width:min(230px,27vw)}.global-search kbd{display:none}}
.support-head-actions{display:flex;align-items:flex-start;gap:6px}.support-new{padding:4px 0;border:0;background:none;color:#125fc5;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}
.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:10px}.link-button{padding:0;border:0;background:none;color:#125fc5;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.form-notice{margin:6px 0;padding:8px 10px;border-radius:6px;background:#e9f7f2;color:#117150;font-size:11px;line-height:1.45}
.view-filter-controls input[type=date]{width:100%;height:39px;padding:0 10px;border:1px solid #c9d1dc;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:12px}
.carrier-pick-list{display:grid;gap:7px;margin-top:12px}.carrier-pick{display:flex;gap:9px;align-items:flex-start;padding:8px 10px;border:1px solid var(--line);border-radius:6px;cursor:pointer}.carrier-pick strong{display:block;font-size:11px}.carrier-pick small{display:block;margin-top:2px;color:var(--muted);font-size:9px}.carrier-pick.unavailable{opacity:.6;cursor:default}
.password-with-generate{display:flex;gap:7px;align-items:stretch}.password-with-generate input{flex:1;min-width:0}
.page-jump{display:inline-flex;align-items:center;gap:6px;margin-left:10px;color:var(--muted);font-size:11px}.page-jump input{width:54px;height:28px;padding:0 6px;border:1px solid #c9d1dc;border-radius:5px;font:inherit;font-size:11px}
/* Scan out — built for a phone in one hand and a box in the other */
.scan-modes{display:flex;gap:4px;padding:10px 12px;border-bottom:1px solid var(--line);background:#f7f9fc}.scan-mode{min-height:38px;padding:0 18px;border:1px solid transparent;border-radius:6px;background:transparent;color:#536074;font-weight:650;font-size:13px;cursor:pointer}.scan-mode.active{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:0 1px 2px rgba(23,38,60,.06)}
.scanout-shell{max-width:720px;margin:0 auto;padding:20px 20px 28px}.scanout-top{display:flex;gap:8px;align-items:flex-end}.scanout-batch{flex:1;min-width:0;display:grid;gap:4px}.scanout-batch span{font-size:11px;font-weight:700;color:#536074;text-transform:uppercase;letter-spacing:.03em}.scanout-batch select{height:44px;width:100%;min-width:0;border:1px solid #c9d1dc;border-radius:6px;padding:0 10px;font-size:15px;background:#fff;color:var(--ink)}.scanout-top .button{height:44px}
.scanout-counts{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px}.scanout-count-main strong{font-size:28px;line-height:1;margin-right:2px}.scanout-count-main span{color:var(--muted);font-size:13px}.scanout-count-side{display:flex;gap:10px;font-size:12px;color:#536074}.scanout-held-count{color:#8a5200;font-weight:700}.scanout-counts .batch-progress{grid-column:1/-1;margin:4px 0 0}
.scanout-camera{position:relative;margin-top:12px;border-radius:10px;overflow:hidden;background:#0c1727;aspect-ratio:4/3;max-height:50vh}.scanout-camera video{width:100%;height:100%;object-fit:cover;display:block}.scanout-camera-aim{position:absolute;left:10%;right:10%;top:36%;height:28%;border:2px solid rgba(255,255,255,.85);border-radius:8px;box-shadow:0 0 0 999px rgba(12,23,39,.25);pointer-events:none}.scanout-camera.paused video{filter:grayscale(.8) brightness(.5)}.scanout-camera.paused .scanout-camera-aim{border-color:rgba(255,255,255,.3)}.scanout-camera p{position:absolute;left:0;right:0;bottom:0;margin:0;padding:9px 12px;background:rgba(12,23,39,.74);color:#fff;font-size:13px;text-align:center}
.scanout-form{margin-top:12px}.scanout-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}.scanout-tools .button{min-height:40px}.scanout-auto{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;color:#536074}.scanout-auto[hidden]{display:none}
.scanout-result{margin-top:14px}.scanout-card{border:2px solid var(--line);border-radius:10px;padding:16px;background:#fff}.scanout-card.good{border-color:#39a877;background:#f3fbf7}.scanout-card.warn{border-color:#e0a526;background:#fffaf0}.scanout-card.bad{border-color:#d0505e;background:#fff5f6}.scanout-card h3{margin:2px 0 6px;font-size:18px}.scanout-card p{margin:6px 0;font-size:14px;line-height:1.45}.scanout-card h3.scanout-sku{font-size:26px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}.scanout-card p.scanout-part{margin:0 0 10px;color:#536074;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px}.scanout-print{width:100%;min-height:56px;margin:8px 0 12px;font-size:18px}.scanout-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scanout-facts span{display:block;font-size:10px;font-weight:700;color:#6b778a;text-transform:uppercase;letter-spacing:.03em}.scanout-facts strong{font-size:14px;word-break:break-word}.scanout-card p.scanout-link{padding:8px 10px;border-radius:6px;font-size:13px}.scanout-link.good{background:#e6f6f0;color:#0f6a48}.scanout-link.bad{background:#fdecee;color:#8f2430}.scanout-next{width:100%;min-height:52px;margin-top:10px;font-size:16px}.scanout-notes{margin:10px 0 0;padding-left:18px;display:grid;gap:6px;font-size:13px}.scanout-notes .subtext{display:block}
.scanout-recent{margin-top:18px}.scanout-recent h3{margin:0 0 6px;font-size:12px;color:#536074;text-transform:uppercase;letter-spacing:.03em}.scanout-recent ol{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff}.scanout-recent li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 12px;border-top:1px solid #edf0f3;font-size:13px}.scanout-recent-what strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.scanout-recent li:first-child{border-top:0}.scanout-recent li.bad .scanout-recent-what strong{color:#8f2430}.scanout-recent-what{min-width:0;overflow:hidden;text-overflow:ellipsis}.scanout-recent-actions{display:flex;gap:6px}.scanout-recent-actions .button{min-height:34px;padding:0 10px;font-size:12px}
.scanout-print-frame{position:fixed;left:-10000px;top:0;width:10px;height:10px;border:0}.scanout-details-dialog{width:min(760px,100%)}.scanout-detail-section{margin-bottom:18px}.scanout-detail-section h3{margin:0 0 8px;font-size:13px}.scanout-held-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #edf0f3}.scanout-held-row .subtext{display:block}.scanout-held-actions{display:flex;gap:6px}.scanout-event{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:10px;padding:6px 0;border-top:1px solid #f0f2f5;font-size:12px}.scan-orders-table tr.done td{color:var(--muted)}
@media(max-width:760px){.scan-form input{flex:none}.scan-form .button{width:100%}.scanout-tools .button{flex:1}.scan-modes{padding:8px}.scan-mode{flex:1}.scanout-shell{padding:12px 12px 24px}.scanout-top{flex-wrap:wrap}.scanout-batch{flex-basis:100%}.scanout-top .button{flex:1}.scanout-auto{margin-left:0}.scanout-event{grid-template-columns:1fr}.scanout-held-row{flex-direction:column;align-items:stretch}.scanout-part-col{display:none}.scanout-sku-codes{display:block;max-width:none;white-space:normal}}
.scanout-print-hint{margin:-4px 0 12px!important;font-size:12px!important;color:#536074}.scanout-printer-dialog{width:min(620px,100%)}.scanout-steps{margin:0;padding-left:20px;display:grid;gap:8px;font-size:13px;line-height:1.45}.scanout-printer-dialog .scanout-detail-section p{font-size:13px;line-height:1.45;margin:0 0 8px}.scanout-printer-dialog .scanout-detail-section .button{margin:4px 0 6px}
.scanout-details-dialog{width:min(980px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column}.scanout-details-dialog .view-options-body{overflow:auto;flex:1;min-height:0}.scanout-view-head{border-bottom:1px solid var(--line)}.scanout-view-tabs{border-bottom:0;background:transparent}.scanout-view-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0 16px 12px}.scanout-view-tools[hidden]{display:none}.scanout-view-filters{display:flex;flex-wrap:wrap;gap:6px}.scanout-view-tools input{flex:1;min-width:180px;height:34px;border:1px solid #c9d1dc;border-radius:5px;padding:0 10px}.sov-list{display:grid}.sov-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.1fr) minmax(0,1.2fr) auto;gap:12px;align-items:center;padding:10px 4px;border-top:1px solid #edf0f3;font-size:13px}.sov-row:first-child{border-top:0}.sov-row .subtext{display:block}.sov-main strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}.sov-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.sov-actions .button{min-height:32px;padding:0 10px;font-size:12px}.sov-chip{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:700}.sov-chip.ready{background:#e6f6f0;color:#0f6a48}.sov-chip.printed{background:#eaf2ff;color:#125fc5}.sov-chip.held{background:#fff4e5;color:#8a5200}.sov-row.printed .sov-main strong{color:#536074}.scanout-cancelled-chip{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:10px;background:#fdecee;color:#8f2430;font-size:11px;font-weight:700;vertical-align:middle}@media(max-width:760px){.sov-row{grid-template-columns:1fr;gap:4px;padding:12px 2px}.sov-actions{justify-content:flex-start;margin-top:4px}.scanout-view-tools input{min-width:0;width:100%}}
.scanout-ready{margin-top:6px;font-size:12px;color:#8a5200}.scanout-ready.ready{color:#0f6a48}.scanout-ready::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:currentColor;vertical-align:middle}.scanout-form input:focus{border-color:#39a877;box-shadow:0 0 0 3px rgba(57,168,119,.15)}
.scanout-print-status{margin:8px 0 10px;padding:12px 14px;border-radius:8px;background:#eef4ff;color:#125fc5;font-size:15px;font-weight:650}.scanout-print-status.good{background:#e6f6f0;color:#0f6a48}.scanout-print-status.bad{background:#fdecee;color:#8f2430}.scanout-print-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}.scanout-print-row .button{min-height:40px}
#scanoutPrinterButton.scanout-printer-direct{border-color:#39a877;color:#0f6a48}#scanoutPrinterButton.scanout-printer-direct::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#16825d;margin-right:6px}#scanoutPrinterButton.scanout-printer-offline{border-color:#d0505e;color:#8f2430}#scanoutPrinterButton.scanout-printer-offline::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#c23d4b;margin-right:6px}
.scanout-printer-select{width:100%;height:42px;border:1px solid #c9d1dc;border-radius:6px;padding:0 10px;font-size:14px;background:#fff;color:var(--ink)}.scanout-printer-actions{margin:8px 0}.scanout-add-form{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.scanout-add-form input,.scanout-add-form select{height:36px;border:1px solid #c9d1dc;border-radius:5px;padding:0 9px;font-size:13px;min-width:0;flex:1 1 150px}.scanout-add-form input[name=port]{flex:0 0 80px}.scanout-subhead{margin-top:18px!important}.scanout-relay-setup{margin-top:10px;padding:12px;border:1px solid #cbd8e8;border-radius:8px;background:#f8fafc}.scanout-code-name{font-family:Inter,system-ui,sans-serif;font-size:11px;font-weight:700;letter-spacing:.04em;color:#8a94a5}.scanout-sku-codes{display:none}.scanout-upc{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.scanout-no-upc{color:#9a5b00;font-size:12px;font-weight:600}.scanout-card p.scanout-found{margin:-4px 0 10px;font-size:13px;color:#0f6a48}.scanout-pick{margin-top:12px;padding-top:12px;border-top:1px solid #ecd9ad}.scanout-pick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin-top:8px}.scanout-pick-list .button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:52px;height:auto;padding:8px 10px;text-align:left;white-space:normal;word-break:break-all}.scanout-pick-list .button span{font-size:12px;color:#536074;font-weight:400}.scanout-pick-list .button.selected{border-color:var(--blue,#1769e0);box-shadow:0 0 0 2px rgba(23,105,224,.25)}.scanout-pick-confirm{margin-top:10px}.scanout-browserprint{margin-top:10px;padding:12px;border:1px solid #cbd8e8;border-radius:8px;background:#f8fafc}.scanout-browserprint h4{margin:0 0 8px;font-size:14px}.scanout-browserprint p.scanout-link{padding:8px 10px;border-radius:6px;margin:8px 0}.scanout-field{display:grid;gap:4px;margin:12px 0 4px;font-size:12px;font-weight:700;color:#536074}.scanout-field select{height:42px;border:1px solid #c9d1dc;border-radius:6px;padding:0 10px;font-size:16px;font-weight:400;background:#fff;color:var(--ink)}.scanout-command{white-space:pre-wrap;word-break:break-all;margin:6px 0;padding:10px;border-radius:6px;background:#0c1727;color:#e6edf6;font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;user-select:all}
.scanout-shell .subtext,.scanout-details-dialog .subtext,.scanout-printer-dialog .subtext{max-width:none;font-size:12px}
.scanout-detail-section h3 .subtext{display:inline;margin-left:6px;font-weight:500}
/* Scan out on a phone: thumb-sized targets, no zoom-on-tap (iOS zooms any field under 16px),
   and the scan controls laid out for one hand. */
@media(max-width:760px){
  .scan-mode{min-height:44px}
  .scanout-batch select,.scanout-printer-select,.scanout-add-form input,.scanout-add-form select,.scanout-view-tools input{font-size:16px;min-height:44px}
  .scanout-form{display:grid;grid-template-columns:auto 1fr;gap:8px}
  .scanout-form input{grid-column:1/-1}
  .scanout-form .button{width:auto;min-height:48px;height:48px}
  .scanout-form #scanoutKeyboard{padding:0 14px}
  .scanout-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .scanout-tools .button{min-height:48px;width:100%}
  .scanout-tools #scanoutCameraButton{grid-column:1/-1}
  .scanout-tools .scanout-auto{grid-column:1/-1}
  .scanout-counts{grid-template-columns:1fr}
  .scanout-count-main{white-space:nowrap}
  .scanout-count-side{flex-wrap:wrap}
  .scanout-top .button{min-height:48px}
  .scanout-recent-actions .button,.sov-actions .button,.scanout-held-actions .button,.scanout-print-row .button{min-height:44px;padding:0 14px;font-size:14px}
  .scanout-view-filters .filter-button{min-height:40px}
  .scanout-details-dialog footer .button,.scanout-printer-dialog footer .button{min-height:44px}
  .link-button{padding:8px 0}
}
@media(max-width:760px){
  .scanout-details-dialog,.scanout-printer-dialog{width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0}
  .scanout-details-dialog .dialog-close,.scanout-printer-dialog .dialog-close{width:44px;height:44px;font-size:24px;line-height:1}
  .scanout-details-dialog header,.scanout-printer-dialog header{padding-bottom:10px}
  .scanout-view-filters{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;max-width:100%}
  .scanout-view-filters .filter-button{flex:0 0 auto;white-space:nowrap}
  .scanout-view-tools{flex-direction:column;align-items:stretch}
  .scanout-details-dialog footer{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .scanout-details-dialog footer .button{width:100%;margin:0}
  .scanout-details-dialog footer #scanoutDetailsDone{grid-column:1/-1}
  .scanout-details-dialog footer .button[hidden]{display:none}
  .scanout-printer-dialog footer .button{width:100%}
  .scanout-add-form input,.scanout-add-form select,.scanout-add-form .button{flex:1 1 100%}
  .scanout-add-form input[name=port]{flex:1 1 100%}
}
@media(max-width:760px){.scanout-printer-dialog .scanout-detail-section .button,.scanout-add-form .button{min-height:48px}.scanout-printer-dialog .scanout-printer-actions .button{width:100%}}
.scanout-add-form [hidden]{display:none}
.scanout-relay-os{margin-top:10px}.scanout-relay-os h4{margin:0 0 4px;font-size:13px}
/* Phones: the module menu is a bottom tab bar — Orders, Batches, Verify, Scan out, More —
   so pages get the full width, and the thumb reaches the menu. "More" opens the rest
   (Shipments, Items, Tracking, Connections) as a row above the bar. */
.mobile-more,.nav-short{display:none}
@media(max-width:760px){
  .app{grid-template:52px minmax(0,1fr)/minmax(0,1fr);grid-template-areas:"top" "work"}
  .topbar{height:52px}
  .brand-shell{width:auto;flex-basis:auto;padding:0 6px 0 10px;border-right:0}
  .classic-button{display:none}
  .sidebar{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;height:auto;padding:0 0 env(safe-area-inset-bottom);z-index:44;overflow:visible;box-shadow:0 -6px 18px rgba(12,23,39,.18)}
  .sidebar .contextual-nav,.sidebar .side-footer,.sidebar .side-heading,.sidebar .workspace-guide,.sidebar .side-guide{display:none}
  .side-primary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:auto;gap:2px;padding:5px 5px 6px;margin:0}
  .side-primary .side-nav-item{flex-direction:column;justify-content:center;align-items:center;min-height:54px;height:54px;padding:3px 0 0;gap:2px;border-radius:10px;margin:0;width:auto}
  .side-primary .side-nav-item .side-nav-copy{display:block;text-align:center;line-height:1.1}
  .side-primary .side-nav-copy strong{display:block;font-size:10.5px;font-weight:650;white-space:nowrap}
  .side-primary .side-nav-copy small,.side-primary .side-nav-total{display:none}
  .side-primary .side-nav-copy:has(.nav-short) strong{display:none}
  .side-primary .nav-short{display:block;font-style:normal;font-size:10.5px;font-weight:650}
  .side-primary .side-nav-item:not([data-mobile=secondary]){grid-row:2}
  .side-primary .side-nav-item[data-mobile=secondary]{display:none}
  .sidebar.more-open .side-primary .side-nav-item[data-mobile=secondary]{display:flex;grid-row:1}
  .sidebar.more-open .side-primary{border-bottom:1px solid rgba(255,255,255,.08)}
  .mobile-more{display:flex}
  .workspace{padding:12px 10px calc(84px + env(safe-area-inset-bottom))}
  .toast{left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom));text-align:center}
  .support-panel{left:8px;right:8px;width:auto;bottom:calc(74px + env(safe-area-inset-bottom));height:calc(100vh - 140px)}
  /* The bar already has Verify and Scan out, so the page's own switch is not repeated. */
  .scan-modes:not(.scanout-view-tabs){display:none}
  .page-header{margin-bottom:10px}
  .page-header p{display:none}
}
/* Phones, every page: fields at 16px so iPhone never zooms into them, and buttons tall
   enough for a thumb. */
@media(max-width:760px){
  .workspace input:not([type=checkbox]):not([type=radio]):not([type=file]),.workspace select,.workspace textarea,
  .view-options-dialog input:not([type=checkbox]):not([type=radio]),.view-options-dialog select,.view-options-dialog textarea,
  .drawer input:not([type=checkbox]):not([type=radio]),.drawer select,.drawer textarea,
  .support-panel input,.support-panel textarea{font-size:16px}
  .workspace button:not(.link-button):not(.row-check):not(.dialog-close),.workspace select{min-height:40px}
  .workspace .batch-search,.workspace .inline-search input{min-height:44px}
}
@media(max-width:760px){.search-wrap{min-height:44px;align-items:center}.search-wrap input{min-height:42px;height:42px}}
/* The items page's grid lets its table card shrink to the screen; the table scrolls inside it. */
.items-view{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){
  .connection-actions{flex-wrap:wrap}
  .connection-actions .button{flex:1 1 auto}
  .settings-list-row{flex-wrap:wrap}
  .settings-list-actions{flex-wrap:wrap;justify-content:flex-start}
}
@media(max-width:760px){.connections-grid,.connection-card-grid{grid-template-columns:minmax(0,1fr)}.connection-group,.connection-card{min-width:0}.connection-group-head{flex-wrap:wrap}}
/* Inventory: stock by SKU and location, its history, and the dialogs that change it. */
.inventory-view{display:grid;gap:13px;grid-template-columns:minmax(0,1fr)}
.inv-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 11px}
.inv-warehouse{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#667286;text-transform:uppercase;letter-spacing:.04em}
.inv-warehouse select,.inv-filters select,.items-client-filter{height:36px;border:1px solid #c9d1dc;border-radius:6px;background:#fff;color:var(--ink);padding:0 9px;font-size:12px;text-transform:none;letter-spacing:0;font-weight:500}
.inv-tabs{display:flex;gap:4px;padding:3px;border-radius:8px;background:#f1f4f8}
.inv-tab{min-height:32px;padding:0 16px;border:1px solid transparent;border-radius:6px;background:transparent;color:#536074;font-weight:650;font-size:12px;cursor:pointer}
.inv-tab.active{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:0 1px 2px rgba(23,38,60,.06)}
.inv-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.inv-search{flex:1 1 260px;min-width:0;max-width:420px}
.inv-check{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#465268;font-weight:600;text-transform:none;letter-spacing:0}
.settings-field-grid label.inv-check{flex-direction:row;align-items:center;font-size:12px}
.inv-table td.num,.inv-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.inv-table tr.archived td{color:#8a94a5}
.inv-locs{display:flex;flex-wrap:wrap;align-items:center;gap:5px;white-space:normal;max-width:420px}
.inv-loc{display:inline-flex;gap:5px;padding:2px 7px;border-radius:5px;background:#f1f4f8;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
.inv-loc b{font-family:var(--display,inherit);color:var(--ink)}
.inv-chip{display:inline-flex;padding:2px 8px;border-radius:10px;background:#eef1f5;color:#536074;font-size:10px;font-weight:750}
.inv-chip.good{background:#e6f6f0;color:#117150}
.inv-chip.off{background:#fdebed;color:#a72e3a}
.client-chip{display:inline-flex;padding:2px 7px;border-radius:5px;background:#f0ebff;color:#5b3fb0;font-size:10px;font-weight:800;letter-spacing:.02em}
.inv-change{font-weight:800;font-variant-numeric:tabular-nums}.inv-change.up{color:#117150}.inv-change.down{color:#a72e3a}
.inv-note{max-width:240px;white-space:normal;color:#536074}
.inv-setup-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 24px;display:grid;gap:12px;max-width:640px}
.inv-setup-card h2{margin:0;font-size:19px}.inv-setup-card p{margin:0;color:#536074;font-size:13px;line-height:1.55}
.inv-setup-card ol{margin:0;padding-left:20px;display:grid;gap:6px;font-size:13px;color:#344056}
.inv-setup-card .button{justify-self:start}
.inv-dialog.wide{width:min(600px,100%)}
.inv-dialog form{display:grid;gap:14px}
.inv-dialog .settings-field-grid{padding:0}
.inv-dialog .settings-field-grid label.wide{grid-column:1/-1}
.inv-dialog textarea{width:100%;border:1px solid #c9d1dc;border-radius:5px;padding:8px 9px;font:inherit;font-size:13px;resize:vertical}
.inv-error{margin:0;padding:9px 11px;border-radius:6px;background:#fdecee;color:#8f2430;font-size:12px}
.inv-modes{display:flex;gap:4px;padding:3px;border-radius:8px;background:#f1f4f8}
.inv-modes label{flex:1;display:flex;position:relative;text-transform:none;letter-spacing:0}.inv-hint{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.inv-modes input{position:absolute;left:50%;top:50%;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.inv-modes span{flex:1;display:grid;place-items:center;min-height:34px;border-radius:6px;font-size:12px;font-weight:700;color:#536074;cursor:pointer;border:1px solid transparent}
.inv-modes input:checked+span{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:0 1px 2px rgba(23,38,60,.06)}
.inv-modes input:focus-visible+span{outline:2px solid var(--blue)}
.inv-range{display:grid;gap:10px}
.inv-part{display:grid;grid-template-columns:52px minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;font-size:12px;color:#536074;font-weight:700}
.inv-part input{height:34px;border:1px solid #c9d1dc;border-radius:5px;padding:0 9px;min-width:0}
.inv-list{display:grid;gap:6px;font-size:9px;font-weight:800;color:#667286;text-transform:uppercase;letter-spacing:.04em}
.inv-preview{margin:0;padding:9px 11px;border-radius:6px;background:#eaf2ff;color:#125cbc;font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.inv-preview:empty{display:none}.inv-preview.bad{background:#fdecee;color:#8f2430;font-family:inherit}
.inv-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.inv-facts div{background:#f7f9fc;border:1px solid var(--line);border-radius:7px;padding:9px 10px;min-width:0}
.inv-facts span{display:block;font-size:9px;font-weight:800;color:#6b778a;text-transform:uppercase;letter-spacing:.04em}
.inv-facts strong{font-size:15px;word-break:break-all}
.inv-subhead{margin:6px 0 0;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#536074}
.inv-rows{display:grid;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.inv-row{display:flex;align-items:center;gap:10px;padding:8px 11px;border-top:1px solid #edf0f3}
.inv-row:first-child{border-top:0}
.inv-row>div{flex:1;min-width:0}.inv-row strong{word-break:break-all}
.inv-row .num{font-variant-numeric:tabular-nums;font-size:15px}
.inv-history{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.inv-history li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;font-size:12px}
.inv-history .subtext{max-width:none;white-space:normal}
.inv-file{display:grid;gap:6px;font-size:12px;font-weight:700;color:#344056}
.inv-result p{margin:0 0 10px;font-size:14px}.inv-result .bad{color:#a72e3a}
.inv-errors{margin:0;padding-left:18px;display:grid;gap:4px;font-size:12px;color:#8f2430;max-height:300px;overflow:auto}
@media(max-width:760px){
  .inv-bar{padding:8px}
  .inv-tabs{flex:1 1 100%}.inv-tab{flex:1;min-height:40px}
  .inv-bar .button{flex:1 1 auto}
  .inv-search{flex:1 1 100%;max-width:none}
  .inv-filters select,.inv-filters .button{flex:1 1 auto}
  .inv-dialog>footer{flex-wrap:wrap}
  .inv-dialog .button{min-height:40px}
  .inv-dialog .dialog-close{min-width:40px;min-height:40px}
  .inv-filters select,.inv-warehouse select,.items-client-filter{font-size:16px;min-height:40px}
  .inv-modes span{min-height:40px}
  .inv-part input{height:40px}
  .inv-facts{grid-template-columns:1fr 1fr}
  .inv-row{flex-wrap:wrap}
}

/* Scan out: the warehouse's own batch # on the new-batch card and in the batch view. */
.scanout-ref{display:flex;align-items:flex-end;gap:8px;margin:8px 0 4px;flex-wrap:wrap}
.scanout-ref label{display:grid;gap:4px;flex:1 1 200px;font-size:10px;font-weight:800;color:#536074;text-transform:uppercase;letter-spacing:.04em}
.scanout-ref input{height:36px;border:1px solid #c9d1dc;border-radius:6px;padding:0 10px;font-size:13px;font-weight:500;text-transform:none;letter-spacing:0;color:var(--ink);background:#fff;min-width:0}
.scanout-details-ref{padding:10px 24px 0}
.scanout-details-ref .scanout-ref{margin:0}
.scanout-card p.scanout-finished{margin-top:10px}
@media(max-width:760px){.scanout-ref input{font-size:16px;height:42px}.scanout-ref .button{min-height:42px}.scanout-details-ref{padding:10px 16px 0}}

/* Shipout: accounts in Settings, and its notes in Scan out. */
.shipout-problem{white-space:normal;color:#8f2430;background:#fdecee;font-size:12px}
.shipout-keys-actions{display:flex;justify-content:flex-end}
.inv-actions{text-align:right}
.inv-table code{font-size:12px;background:#f1f4f8;padding:1px 6px;border-radius:4px}
.inv-chip.off{margin-left:6px}

/* Receiving: the scan screen for an inbound shipment or a return. */
.rx-head{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:7px;padding:12px}
.rx-title{flex:1 1 260px;min-width:0}.rx-title h2{margin:0;font-size:19px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rx-title p{margin:4px 0 0;color:#536074;font-size:12px}
.rx-actions{display:flex;gap:8px;flex-wrap:wrap}
.rx-receive{background:#fff;border:2px solid #b9d3f7;border-radius:9px;padding:14px;display:grid;gap:10px}
.rx-fields{display:grid;grid-template-columns:minmax(140px,1fr) 90px minmax(200px,2fr) auto;gap:10px;align-items:end}
.rx-fields label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#536074;text-transform:uppercase;letter-spacing:.04em}
.rx-fields input{height:44px;border:1px solid #c9d1dc;border-radius:7px;padding:0 12px;font-size:15px;font-weight:500;text-transform:none;letter-spacing:0;color:var(--ink);min-width:0}
.rx-code input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:17px;border-color:var(--blue)}
.rx-fields .button{height:44px}
.rx-feedback{margin:0;min-height:22px;font-size:14px}
.rx-ok{color:#117150}.rx-warn{color:#8a5300}.rx-bad{color:#a72e3a;font-weight:600}
.rx-discrepancies{display:grid;gap:4px;background:#fff7e8;border:1px solid #f0d49b;border-radius:8px;padding:10px 12px;font-size:13px;color:#6b4300}
.rx-events li{grid-template-columns:44px minmax(0,1fr) auto;align-items:center}
.rx-events li.undone{opacity:.5}.rx-events li.undone .inv-change{text-decoration:line-through}
@media(max-width:760px){.rx-fields{grid-template-columns:1fr 90px}.rx-code{grid-column:1/-1}.rx-fields .button{grid-column:1/-1}.rx-fields input{font-size:16px}.rx-head .button,.rx-actions .button{min-height:40px}}
/* Settings → Sales channels */
.channel-mark{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:4px;border-radius:5px;background:var(--navy);color:#fff;font-size:8px;font-weight:800;vertical-align:middle}
.channel-table td{vertical-align:middle}.channel-table .inv-actions{white-space:nowrap}.channel-table .inv-actions .button+.button{margin-left:6px}
.channel-group{padding:4px 16px 14px}.channel-group h4{margin:10px 0 9px;color:#536074;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.channel-tile small em{font-style:normal;font-weight:800}.channel-status.ready{color:#117150}.channel-status.existing{color:#1769e0}.channel-status.approval{color:#8a5300}.channel-status.planned{color:#6d7a8f}
.channel-tile:disabled{cursor:default;background:#fafbfc}.channel-tile:disabled:hover{border-color:#d3dae4;background:#fafbfc}.channel-tile:disabled>span{background:#9aa6b8}
.channel-tile.ready:disabled>span{background:var(--navy)}
@media(max-width:600px){.channel-group{padding:4px 12px 12px}}
.channel-store{display:flex;align-items:center;gap:9px;min-width:0}.channel-store .channel-mark{flex:0 0 auto;width:30px;height:30px;margin:0;font-size:9px}.channel-store .inv-chip.off{margin:4px 0 0}
.channel-tile strong{grid-column:2;grid-row:1}.channel-tile small{grid-column:2;grid-row:2}.channel-tile b{grid-column:3;grid-row:1/3}.channel-tile>span{grid-column:1}
.channel-table th,.channel-table td{padding-left:10px;padding-right:10px}.channel-table th{white-space:normal;line-height:1.25}.channel-table td:nth-child(6){white-space:nowrap}
/* Checkboxes and help text inside a field grid (dialogs): a checkbox keeps its own size, and help reads as a sentence. */
.settings-field-grid label.inv-check{justify-content:flex-start;gap:9px;color:#465268;font-size:13px;font-weight:600;text-transform:none;letter-spacing:0}
.settings-field-grid label.inv-check input{flex:0 0 auto;width:18px;height:18px;min-height:0;margin:0;padding:0}
.settings-field-grid label em{font-style:normal;font-weight:600;text-transform:none;letter-spacing:0;color:#8a94a5}
.settings-field-grid label small.field-help{font-size:12px;font-weight:500;line-height:1.4;text-transform:none;letter-spacing:0;color:var(--muted)}

/* Settings → Open API (stark-mod-open-api) */
.openapi-clients tr.selected td{background:#f3f7fe}
.openapi-webhook .openapi-wide{grid-column:1/-1}
.openapi-events{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;display:flex;flex-wrap:wrap;gap:8px 18px}
.openapi-events legend{padding:0 4px;color:#667286;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.openapi-secret-line{font-size:12px;color:#465268}
.openapi-actions{display:flex;flex-wrap:wrap;gap:8px}
.openapi-answer{max-width:280px;white-space:normal;font-size:12px;color:#536074}
.openapi-once{display:flex;gap:8px;align-items:center}
.openapi-once input{flex:1 1 auto;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
@media(max-width:760px){.openapi-webhook{grid-template-columns:minmax(0,1fr)}.openapi-once{flex-wrap:wrap}.openapi-once .button{flex:1 1 auto}}
/* ── Store SKU mapping (stark-mod-sku-mapping) ─────────────────────────────── */
.unmapped-chip{display:inline-block;margin:3px 4px 2px 0;padding:2px 6px;border-radius:4px;background:#f0ebff;color:#5b3fb0;font-size:10px;font-weight:650}
.item-store-sku{display:block;margin-top:3px;color:#5b3fb0;font-size:11px}
.item-map-button{display:inline-flex;margin-top:6px;min-height:32px}
.sku-map-actions{display:flex;gap:8px;flex-wrap:wrap}
.sku-map-filters{display:flex;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
.sku-map-filters select,.sku-map-filters input{height:36px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:var(--ink);padding:0 9px;font-size:13px;min-width:0}
.sku-map-filters select{flex:0 1 320px}.sku-map-filters input{flex:1 1 220px}
.sku-map-table td{vertical-align:top}.sku-map-table .subtext{display:block}
.sku-map-arrow{color:#8a95a7;text-align:center;width:24px}
.sku-map-choices{display:grid;gap:6px;max-height:260px;overflow:auto}
.sku-map-choice{display:block;width:100%;text-align:left;padding:8px 10px;border:1px solid #dce2ea;border-radius:6px;background:#fff;color:var(--ink);font-size:13px;cursor:pointer}
.sku-map-choice .subtext{display:block}
.sku-map-choice:hover{border-color:#9abbe7}
.sku-map-choice.chosen{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 0 0 1px var(--blue)}
@media(max-width:760px){.sku-map-filters select,.sku-map-filters input{font-size:16px;min-height:40px;flex-basis:100%}.sku-map-choice{min-height:44px}.item-map-button{min-height:40px}}

/* Picking, packing and shipping (stark-mod-outbound): pick chips in Orders and Batches, the
   pick list, the pick screen (built for a tablet with a handheld scanner) and the pack bench. */
.pick-chip{display:inline-flex;margin-left:6px;padding:1px 7px;border-radius:9px;background:#eef3fb;color:#2d5ea8;font-size:10px;font-weight:750;white-space:nowrap;vertical-align:middle}
.pick-chip.picked,.pick-chip.packed{background:#e6f6f0;color:#117150}
.pick-chip.shipped{background:#e9edf3;color:#4a5a70}
.pick-chip.short{background:#fdebed;color:#a72e3a}
.ob-panes{margin:10px 0 0;width:max-content;max-width:100%}
.ob-feedback{margin:10px 0 0}
.ob-loc{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px}
.subtext-cell{font-size:12px;color:#536074;max-width:300px;white-space:normal}
.ob-row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.ob-next{display:grid;gap:4px;background:#fff;border:2px solid var(--blue);border-radius:10px;padding:14px 16px;margin-top:10px;min-width:0}
.ob-next .eyebrow{font-size:10px;font-weight:800;letter-spacing:.08em;color:#536074}
.ob-next-loc{font-size:42px;line-height:1.05;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em;overflow-wrap:anywhere}
.ob-next-what{font-size:17px;overflow-wrap:anywhere}
.ob-next .button{justify-self:start;margin-top:6px}
.ob-next-done{border-color:#5cc29a}.ob-next-missing{border-color:#e4a0a8}
.ob-progress{flex:1 1 100%;height:6px;background:#eef1f5;border-radius:3px;overflow:hidden}.ob-progress i{display:block;height:100%;background:#2f9e74}
.ob-scan{margin-top:10px}
.ob-next-line{display:none;margin-top:8px;padding:9px 12px;border-radius:8px;background:#eef3fb;color:#1d3f73;font-size:15px;overflow-wrap:anywhere}
.ob-next-line b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:17px}
.ob-short-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ob-bench-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:14px;display:grid;gap:10px;margin-top:10px;min-width:0;overflow-x:auto}
.ob-bench-title h2{margin:0;font-size:20px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ob-bench-title p{margin:4px 0 0;color:#536074;font-size:12px}
.rx-fields.ob-bench-fields{grid-template-columns:minmax(200px,1fr) auto}
.ob-events li{grid-template-columns:44px minmax(0,1fr) auto;align-items:center}
#outboundView.ob-scanning>.inv-bar{display:none}
/* The pick screen's fields shrink to the tablet's width rather than running off its edge. */
@media(min-width:761px){.rx-fields.ob-fields{grid-template-columns:minmax(0,1fr) 84px minmax(0,2fr) auto}}
/* A tablet held upright: location and qty on one row, the item box and Pick under them. */
@media(min-width:761px) and (max-width:1000px){.rx-fields.ob-fields{grid-template-columns:minmax(0,1fr) 96px}}
@media(max-width:760px){
  /* On a phone the scan boxes come first, above where to go, so they are never under the
     bottom bar. */
  #outboundView.ob-scanning #obDetail{display:flex;flex-direction:column}
  #outboundView.ob-scanning .ob-next-line{display:block;order:1}
  #outboundView.ob-scanning .ob-scan{order:2;margin-top:8px}
  #outboundView.ob-scanning .ob-next{order:3}
  .ob-next-loc{font-size:32px}
  .ob-scan-head .rx-title h2{display:none}
  .ob-next{padding:10px 12px;margin-top:8px}.ob-next-what{font-size:15px}
  .rx-fields.ob-bench-fields{grid-template-columns:1fr}
  .ob-row-actions .button,.ob-short-actions .button,.ob-next .button,.ob-bench-card .button{min-height:40px}
  .ob-panes{width:auto}
  .subtext-cell{max-width:none}
}
/* ── Billing (stark-mod-billing) ───────────────────────────────────────────── */
.bl-period{display:flex;align-items:center;gap:6px;color:#5f6c81;font-size:11px;font-weight:700}.bl-period input,#blClient{height:32px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:var(--ink);padding:0 8px}
#blNotice,#blMain,#blDetail{margin-top:12px}.bl-attention{padding:11px 14px;border:1px solid #f0d58c;border-radius:7px;background:#fffaeb;color:#6b5310;font-size:12px}.bl-attention ul{margin:6px 0 0;padding-left:18px}.bl-attention li{margin:3px 0}.bl-attention small{color:#8a7430}
.bl-summary{margin:0 0 10px;color:var(--muted);font-size:12px}.bl-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}.bl-row-head .bl-summary{margin:0}
.bl-table td{vertical-align:top}.bl-table .subtext{max-width:none}.subtext-inline{color:#8a94a5;font-size:10px}.bl-count{width:72px;height:30px;border:1px solid #c9d1dc;border-radius:5px;padding:0 7px}
.bl-bill-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:7px;padding:12px 14px}.bl-bill-head>div:nth-child(2){flex:1;min-width:200px}.bl-bill-head h2{margin:0 0 4px;font-size:18px}.bl-bill-head p{margin:0;font-size:12px}
.bl-total{text-align:right}.bl-total small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.bl-total strong{font-size:22px;font-variant-numeric:tabular-nums}
.bl-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.bl-summary-table{max-width:520px}.bl-total-row td{font-weight:800}.bl-lines-title{margin:16px 0 8px;font-size:13px}
.bl-card-note{margin:-6px 0 12px;color:var(--muted);font-size:11px}#billingCardClient{height:34px;min-width:220px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 9px}
.bl-rate-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;padding:14px 16px}.bl-rate{display:flex;flex-direction:column;gap:5px;color:#4b586c;font-size:11px;font-weight:700}.bl-rate em{color:#8a94a5;font-style:normal;font-weight:500}
.bl-rate input,.bl-rate select{height:32px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:var(--ink);padding:0 8px;font-weight:400}.bl-rate.own input,.bl-rate.own select{border-color:#7aa7e6;background:#f3f8ff}.bl-rate input::placeholder{color:#a3acb9}.bl-rate small{color:#8a94a5;font-size:9px;font-weight:500;line-height:1.35}
@media(max-width:700px){.bl-rate-grid{grid-template-columns:1fr}.bl-total{text-align:left}.bl-period{width:100%}}

/* Tracking (stark-mod-tracking): filter chips, status colours, flags, the timeline dialog */
.status.pre_transit{background:#f1f3f6;color:#4d5a6e}.status.out_for_delivery{background:#e3f4fb;color:#0b6b8f}.status.exception{background:#fdebed;color:#a72e3a}.status.returned{background:#fff3e0;color:#9a5a00}.status.cancelled{background:#eff2f5;color:#6c7685}
.trk-chips{display:flex;flex-wrap:wrap;gap:6px;padding:12px 19px;border-bottom:1px solid var(--line)}
.trk-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:1px solid #d3dae4;border-radius:15px;background:#fff;color:#3f4b5e;font-size:11px;font-weight:700;cursor:pointer}
.trk-chip span{min-width:18px;padding:1px 6px;border-radius:9px;background:#eef1f5;color:#59657a;font-size:10px;text-align:center}
.trk-chip.warn span{background:#fdebed;color:#a72e3a}.trk-chip.active{border-color:#1769e0;background:#eaf2ff;color:#125fc5}.trk-chip.active span{background:#1769e0;color:#fff}
.trk-open{display:block;padding:0;border:0;background:none;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:#b9cdea;text-underline-offset:3px}
.trk-flag{display:block;margin-top:4px;color:#a72e3a;font-size:10px;font-weight:700}.trk-error-text{display:block;margin-top:2px;color:#a72e3a;font-size:10px;line-height:1.35;max-width:220px}.trk-delivered{color:#117150;font-weight:700}
.trk-detail{display:grid;gap:12px}.trk-detail h3{margin:6px 0 0;font-size:13px}.trk-head p{margin:6px 0 0;color:#3f4b5e;font-size:12px}
.trk-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 14px;margin:0}.trk-facts dt{color:#7a8699;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.trk-facts dd{margin:2px 0 0;font-size:12px}
.trk-problem{margin:0;padding:10px 12px;border:1px solid #f3c4ca;border-radius:6px;background:#fdf3f4;color:#7d2430;font-size:12px;line-height:1.45}.trk-problem span{color:#8b5a61}
.trk-note,.trk-limit{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.trk-timeline{list-style:none;margin:0;padding:0 0 0 4px}.trk-timeline li{position:relative;display:flex;gap:11px;padding:0 0 13px 0}.trk-timeline li:not(:last-child)::before{content:"";position:absolute;left:5px;top:13px;bottom:0;width:2px;background:#e1e6ed}
.trk-dot{flex:none;width:12px;height:12px;margin-top:2px;border-radius:50%;background:#c3ccd8;box-shadow:0 0 0 3px #fff}.trk-timeline li:first-child .trk-dot{background:#1769e0}.trk-timeline li.delivered .trk-dot{background:#16a374}.trk-timeline li.exception .trk-dot,.trk-timeline li.returned .trk-dot{background:#d04555}
.trk-timeline strong{display:block;font-size:12px}.trk-timeline span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.trk-history,.trk-errors ul{list-style:none;margin:0;padding:0;font-size:12px}.trk-history li,.trk-errors li{padding:4px 0;border-top:1px solid #eef1f4}.trk-history li:first-child,.trk-errors li:first-child{border-top:0}.trk-history span,.trk-errors li span{display:inline-block;min-width:118px;color:var(--muted)}.trk-history small{color:var(--muted)}
.trk-errors summary{cursor:pointer;font-size:12px;font-weight:700;color:#7d2430}.trk-errors ul{margin-top:6px}
@media(max-width:700px){.trk-chips{padding:10px 12px}.trk-history span,.trk-errors li span{display:block;min-width:0}}

/* Clients and users (stark-mod-clients-users): a sales user reads their clients' lists only, so
   the warehouse's own controls (scan out, sync, stores, selection and its bulk actions) are not offered. */
body.sales-user [data-scan-nav],body.sales-user #syncButton,body.sales-user #syncOrdersButton,body.sales-user #orderQueues,
body.sales-user .side-footer,body.sales-user #selectionBar,body.sales-user [data-col="select"],
body.sales-user :is(#itemFillButton,#itemSyncButton,#itemExportButton,#itemImportButton,#itemStoreSkusButton,#itemNewButton),body.sales-user [data-inv-tab="locations"],body.sales-user [data-inv-tab="history"],body.sales-user #rxNew{display:none!important}

/* Inventory v2 (stark-mod-inventory): low-stock count on its tab, and the Low chip on Stock.
   Five tabs don't fit one row on a phone: the Inventory tabs wrap to two rows there. */
@media(max-width:760px){#inventoryView .inv-tabs{flex-wrap:wrap}#inventoryView .inv-tab{flex:1 1 30%;padding:0 8px}}
.inv-tab-count{display:inline-block;min-width:18px;margin-left:4px;padding:1px 6px;border-radius:9px;background:#c2410c;color:#fff;font-size:11px;line-height:16px;text-align:center}
.inv-low-chip{margin-left:6px;vertical-align:middle}
/* Receiving with Lot and Expiry fields (an item tracked by lot or expiry). */
.rx-fields.with-lot{grid-template-columns:minmax(120px,1fr) 80px minmax(110px,1fr) 150px minmax(180px,2fr) auto}
@media(max-width:760px){.rx-fields.with-lot{grid-template-columns:1fr 1fr}.rx-fields.with-lot .rx-location{grid-column:1/-1}}

/* Client portal, the warehouse's side (stark-mod-client-portal): Settings → Clients → Client portal */
.portal-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 16px;border-top:1px solid #edf0f3}
.portal-row:first-child{border-top:0}
.portal-row>div:first-child{min-width:0;flex:1 1 260px;overflow-wrap:anywhere}
.portal-row[data-portal-thread]:hover{background:#f8fafc}
.portal-row-actions{display:flex;gap:6px;flex-wrap:wrap}
/* Work orders (stark-mod-work-orders) */
.wo-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.wo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;align-items:start}
.wo-grid .settings-panel{padding:14px 16px}
.wo-instructions{white-space:pre-wrap;margin:0 0 10px}
.wo-kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0}.wo-kv dt{color:var(--muted)}.wo-kv dd{margin:0}
.wo-files{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.wo-upload{display:inline-flex;align-items:center;cursor:pointer}
.wo-kind{display:contents}.wo-kind[hidden]{display:none}
#woSearch{height:34px;border:1px solid #c9d1dc;border-radius:5px;padding:0 9px;min-width:0;width:220px;max-width:100%}

/* ── Bundles / kits (stark-mod-products) ── */
.item-bundle { border: 1px solid var(--border, #d8dde3); border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }
.item-bundle legend { font-weight: 600; padding: 0 4px; }
.item-bundle-toggle { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.item-component-rows { display: grid; gap: 6px; margin: 8px 0; }
.item-component-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto; gap: 6px; align-items: center; }
.item-component-row input { min-width: 0; }
[data-bundle-chip] { display: block; }
/* ── Returns v2 (stark-mod-returns): relabel on return — the "Relabel as" field beside the scan box ── */
@media(min-width:761px){.rx-fields.with-relabel{grid-template-columns:minmax(120px,1fr) 80px minmax(150px,1.3fr) minmax(180px,2fr) auto}}
.rx-to input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;border-color:#7c5cff}
@media(max-width:760px){.rx-fields.with-relabel .rx-to{grid-column:1/-1}}
.rx-feedback [data-rx-label]{margin-left:8px;height:32px}
/* Packing materials (stark-mod-packing) — Settings → Packing materials and the bench's box panel */
.pack-form label.wide{grid-column:1/-1}.pack-clients{display:flex;flex-wrap:wrap;gap:6px 14px;text-transform:none;letter-spacing:0;font-weight:500}
.pack-panel{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fafbfc}.pack-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.pack-package{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px);gap:10px;align-items:center;padding:8px 0;border-top:1px solid #edf0f3}.pack-package:first-of-type{border-top:0}
.pack-package .subtext{display:block}.pack-choice{font-weight:800}.pack-reason{color:#a72e3a}.pack-select{display:flex;flex-direction:column;gap:4px;font-size:9px;font-weight:800;color:#667286;text-transform:uppercase}.pack-select select{height:34px;max-width:100%;border:1px solid #c9d1dc;border-radius:5px;background:#fff;padding:0 8px;text-transform:none;font-weight:400}
@media(max-width:600px){.pack-package{grid-template-columns:1fr}}

/* ── New order + Import orders (stark-mod-orders) ── */
.oe-heading{margin:16px 0 6px;font-size:13px;font-weight:700;color:var(--text,#172033)}
.oe-lines{display:grid;gap:6px;margin:6px 0 8px}
.oe-line{display:grid;grid-template-columns:minmax(0,1fr) 90px 36px;gap:6px;align-items:center}
.oe-line input{min-width:0;width:100%;min-height:40px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:var(--ink);padding:0 9px;font-size:15px;outline:0}
.oe-line input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(23,105,224,.1)}
.oe-check{display:flex;align-items:center;gap:8px;margin:10px 0 2px;font-size:13px;font-weight:600;color:#465268}
.oe-check input{width:18px;height:18px;margin:0;flex:0 0 auto}
.oe-result .table-scroll{max-height:320px;overflow:auto}
@media (max-width:600px){.oe-line{grid-template-columns:minmax(0,1fr) 70px 36px}}
/* On a phone the page header has no room for them (it would widen the page past the screen); New order and Import orders are desk tasks. */
@media (max-width:760px){#newOrderButton,#importOrdersButton{display:none}}
/* ── Reports (stark-mod-reports) ── */
.rp-filters{flex-wrap:wrap;gap:8px}.rp-field{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.rp-field input[type=number]{width:72px}
.rp-period{margin:4px 0 12px;color:var(--muted);font-size:12px}
.rp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px}
.rp-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}.rp-card small{color:var(--muted);font-size:11px}.rp-card strong{font-size:20px;font-variant-numeric:tabular-nums}
.rp-section{background:#fff;border:1px solid var(--line);border-radius:7px;padding:14px 16px;margin-bottom:14px}.rp-section h3{margin:0 0 10px;font-size:14px}
.rp-grid td.num,.rp-grid th.num{text-align:right;font-variant-numeric:tabular-nums}.rp-grid tfoot td{border-top:2px solid var(--line);font-weight:600}
.rp-note{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.rp-chart{background:#fff;border:1px solid var(--line);border-radius:7px;padding:12px 16px;margin:0 0 14px}.rp-chart figcaption{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:600;margin-bottom:8px}
.rp-key{display:inline-flex;gap:12px;align-items:center;font-weight:400;color:var(--muted)}.rp-key i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.rp-bars{display:flex;align-items:flex-end;gap:2px;height:120px;border-bottom:1px solid var(--line)}.rp-day{flex:1;min-width:3px;height:100%;display:flex;align-items:flex-end;gap:1px}.rp-day span{flex:1;min-height:1px;border-radius:2px 2px 0 0}
.rp-s0{background:#1769e0}.rp-s1{background:#16a37b}
@media (max-width:760px){.rp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-section{padding:12px}.rp-filters select{max-width:100%}}
/* Reports (stark-mod-reports) made the phone's More row ten pages: it wraps onto two rows of five above the bottom bar. */
@media(max-width:760px){.sidebar.more-open .side-primary .side-nav-item[data-mobile=secondary]{grid-row:auto}.sidebar.more-open .side-primary .side-nav-item:not([data-mobile=secondary]){grid-row:3}}
/* Cross-dock and FBA prep (stark-mod-crossdock-fba) — public/v2/crossdock.js */
.xd-scan{display:flex;gap:8px;align-items:center;margin:12px 0 4px}.xd-scan input[name=code]{flex:1;min-width:0;font-size:16px;padding:10px 12px}.xd-scan .xd-qty{width:84px;font-size:16px;padding:10px}
.xd-message{margin:6px 0;padding:8px 12px;border-radius:8px;background:rgba(22,163,123,.1);color:var(--text)}.xd-message.bad{background:rgba(220,38,38,.1)}
.xd-stats{display:flex;flex-wrap:wrap;gap:16px;margin:10px 0;color:var(--muted)}.xd-stats strong{color:var(--text)}
.xd-h{display:flex;align-items:center;gap:10px;margin:18px 0 8px;font-size:15px}
.xd-outbound{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px}
.xd-list{margin:0 0 6px;padding-left:18px}
/* Cross-dock is an eleventh page in the phone's More row (three rows of five for a supervisor): the bottom bar stays below it. */
@media(max-width:760px){.sidebar.more-open .side-primary .side-nav-item:not([data-mobile=secondary]){grid-row:4}.xd-scan{flex-wrap:wrap}}

/* The Stark design system (tokens and .st-* base components) lives in public/v2/design.css, loaded before this file. */

/* Freight (stark-mod-freight) — public/v2/freight.js */
.fr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;align-items:start}
.fr-grid .fr-card{padding:14px 16px;min-width:0}
.fr-grid .fr-span{grid-column:1/-1}
.fr-card h3{margin:0 0 10px;font-size:15px;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.fr-pallet{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0 0 10px}
.fr-pallet-head{display:flex;align-items:center;gap:10px;margin:0 0 8px}.fr-pallet-head .button{margin-left:auto}
.fr-pallet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px 10px;align-items:end}
.fr-pallet-grid label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);min-width:0}
.fr-pallet-grid input,.fr-pallet-grid select,.fr-pallet-grid textarea{width:100%;min-width:0;box-sizing:border-box}
.fr-pallet-grid .fr-wide{grid-column:1/-1}
.fr-pallet-grid .inv-check{flex-direction:row;align-items:center}
.fr-temu{border-top:1px dashed var(--line);padding-top:8px}
.fr-missing{margin:0 0 10px;padding-left:18px}.fr-missing li{margin:2px 0}
.fr-docs{flex-wrap:wrap}

/* Client funds (stark-mod-client-funds) — public/v2/client-funds.js */
.cf-h{margin:18px 0 8px;font-size:15px}
.cf-code{display:block;overflow-wrap:anywhere;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;user-select:all}
/* ══ Orders on the design system (stark-mod-ui-design; direction approved 2026-10-09) ══════════════
   Look only: every id, class, data- attribute and behaviour is unchanged. The page header, toolbar
   and table are shared with other views (Shipments uses the same toolbar and table), so every rule
   is scoped to the workspace while it shows the work table — Orders and, since the Batches /
   Shipments / Tracking release, Shipments too (same header, toolbar and table) — .workspace:has(>#workTable:not([hidden])) below — and no other page
   changes. Values are the --st-* tokens; the shapes match the .st-* components. */
.workspace:has(>#workTable:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#workTable:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#workTable:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#workTable:not([hidden])) .header-actions{gap:var(--st-space-2);flex-wrap:wrap;justify-content:flex-end}
.workspace:has(>#workTable:not([hidden])) .header-actions .button,.workspace:has(>#workTable:not([hidden])) #selectionBar>.button,.workspace:has(>#workTable:not([hidden])) #selectionBar .selection-actions-toggle{height:var(--st-control-md);min-height:var(--st-control-md);padding:0 var(--st-space-4);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-ink-2);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
.workspace:has(>#workTable:not([hidden])) .header-actions .button:hover,.workspace:has(>#workTable:not([hidden])) #selectionBar>.button:hover:not(:disabled),.workspace:has(>#workTable:not([hidden])) #selectionBar .selection-actions-toggle:hover{background:var(--st-hover)}
.workspace:has(>#workTable:not([hidden])) .header-actions .button.primary,.workspace:has(>#workTable:not([hidden])) #selectionBar>.button.primary{border-color:var(--st-blue-600);background:var(--st-blue-600);color:#fff}
.workspace:has(>#workTable:not([hidden])) .header-actions .button.primary:hover,.workspace:has(>#workTable:not([hidden])) #selectionBar>.button.primary:hover:not(:disabled){border-color:var(--st-blue-700);background:var(--st-blue-700)}
.workspace:has(>#workTable:not([hidden])) .header-actions .button:focus-visible,.workspace:has(>#workTable:not([hidden])) #selectionBar .button:focus-visible,.workspace:has(>#workTable:not([hidden])) .filter-button:focus-visible{outline:0;box-shadow:var(--st-focus)}
/* One card: status tabs, toolbar, bulk bar and table. */
.workspace:has(>#workTable:not([hidden])) #orderQueueTabs{margin:0;gap:var(--st-space-5);padding:0 var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg) var(--st-radius-lg) 0 0;box-shadow:var(--st-shadow-sm)}
.workspace:has(>#workTable:not([hidden])) .order-queue-tab{min-height:var(--st-control-lg);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold);color:var(--st-muted)}
.workspace:has(>#workTable:not([hidden])) .order-queue-tab:hover{color:var(--st-ink)}
.workspace:has(>#workTable:not([hidden])) .order-queue-tab.active{color:var(--st-blue-600)}
.workspace:has(>#workTable:not([hidden])) .order-queue-tab:after{height:2px;border-radius:2px 2px 0 0}
.workspace:has(>#workTable:not([hidden])) .order-queue-tab b{min-width:22px;height:20px;margin-left:var(--st-space-2);padding:0 6px;border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
.workspace:has(>#workTable:not([hidden])) .order-queue-tab.active b{background:var(--st-blue-50);color:var(--st-blue-600)}
.workspace:has(>#workTable:not([hidden])) #workToolbar{min-height:60px;padding:var(--st-space-3) var(--st-space-4);gap:var(--st-space-2);border-color:var(--st-line);border-top:0;border-radius:0;box-shadow:none}
.workspace:has(>#workTable:not([hidden])) #workToolbar .search-wrap{height:var(--st-control-md);min-height:var(--st-control-md);width:min(420px,40vw);padding:0 var(--st-space-3);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-faint)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .search-wrap:focus-within{border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .search-wrap input{background:transparent;color:var(--st-ink);font-size:var(--st-text-md)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .search-wrap input::placeholder{color:var(--st-faint)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .filter-button{height:var(--st-control-md);min-height:var(--st-control-md);padding:0 var(--st-space-3);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink-2);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .filter-button:hover{background:var(--st-hover)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .filter-button.active{border-color:var(--st-warning);background:var(--st-warning-soft);color:var(--st-warning)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .filter-count{min-width:20px;height:20px;padding:0 6px;border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .page-size{gap:var(--st-space-2);color:var(--st-muted);font-size:var(--st-text-sm)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .page-size select{height:var(--st-control-md);padding:0 var(--st-space-2);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-ink);font-size:var(--st-text-md)}
.workspace:has(>#workTable:not([hidden])) #selectionBar{min-height:52px;padding:var(--st-space-2) var(--st-space-4);gap:var(--st-space-2);background:var(--st-blue-50);border-color:var(--st-blue-100)}
.workspace:has(>#workTable:not([hidden])) #selectionBar>strong{margin-right:var(--st-space-2);color:var(--st-ink);font-size:var(--st-text-sm);font-weight:var(--st-weight-bold)}
.workspace:has(>#workTable:not([hidden])) #selectionBar .selection-note{color:var(--st-muted);font-size:var(--st-text-sm)}
.workspace:has(>#workTable:not([hidden])) #workTable{border-color:var(--st-line);border-radius:0 0 var(--st-radius-lg) var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
/* The table: 52px rows, 15px text with 12px detail lines, uppercase 12px headers. */
.workspace:has(>#workTable:not([hidden])) #ordersTable th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom-color:var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em}
.workspace:has(>#workTable:not([hidden])) #ordersTable th.th-sort{padding:0}
.workspace:has(>#workTable:not([hidden])) #ordersTable .th-sort-button{padding:0 var(--st-space-3)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .th-sort-button:hover{background:var(--st-hover);color:var(--st-ink)}
.workspace:has(>#workTable:not([hidden])) #ordersTable td{height:52px;padding:6px var(--st-space-3);border-bottom-color:var(--st-line);font-size:var(--st-text-md);line-height:1.35}
.workspace:has(>#workTable:not([hidden])) #ordersTable tbody tr:hover{background:var(--st-hover)}
.workspace:has(>#workTable:not([hidden])) #ordersTable tbody tr.selected{background:var(--st-blue-50)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .order-link{color:var(--st-blue-600);font-weight:var(--st-weight-bold)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .subtext{margin-top:2px;color:var(--st-muted);font-size:var(--st-text-xs)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .row-open{width:var(--st-control-md);height:var(--st-control-md);border-radius:var(--st-radius-md);color:var(--st-muted)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .row-open:hover{background:var(--st-neutral-soft);color:var(--st-ink)}
/* Status chips: one pill, one meaning per colour (contract §3). */
.workspace:has(>#workTable:not([hidden])) #ordersTable .status{height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1}
.workspace:has(>#workTable:not([hidden])) #ordersTable .status.pending,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.label_generated,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.in_transit{background:var(--st-info-soft);color:var(--st-info)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .status.completed,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.shipped,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.delivered{background:var(--st-success-soft);color:var(--st-success)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .status.cancelled,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.unknown{background:var(--st-neutral-soft);color:var(--st-neutral)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .status.error,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.purchase_unknown{background:var(--st-danger-soft);color:var(--st-danger)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .status.on_hold,.workspace:has(>#workTable:not([hidden])) #ordersTable .status.awaiting_payment{background:var(--st-warning-soft);color:var(--st-warning)}
.workspace:has(>#workTable:not([hidden])) #ordersTable :is(.error-chip,.hold-chip,.addr-chip,.unmapped-chip,.split-chip,.pick-chip){display:inline-flex;align-items:center;height:22px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);font-size:var(--st-text-xs);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
.workspace:has(>#workTable:not([hidden])) #ordersTable :is(.error-chip,.addr-chip){background:var(--st-danger-soft);color:var(--st-danger)}
.workspace:has(>#workTable:not([hidden])) #ordersTable :is(.hold-chip,.unmapped-chip,.pick-chip.short){background:var(--st-warning-soft);color:var(--st-warning)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .split-chip{background:var(--st-neutral-soft);color:var(--st-neutral)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .pick-chip{background:var(--st-info-soft);color:var(--st-info)}
.workspace:has(>#workTable:not([hidden])) #ordersTable .pick-chip.shipped{background:var(--st-success-soft);color:var(--st-success)}
.workspace:has(>#workTable:not([hidden])) #workTable .pagination{min-height:52px;padding:var(--st-space-2) var(--st-space-4);color:var(--st-muted);font-size:var(--st-text-sm)}
.workspace:has(>#workTable:not([hidden])) #workTable .page-button{width:var(--st-control-md);height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink-2)}
.workspace:has(>#workTable:not([hidden])) #workTable .page-button:hover:not(:disabled){background:var(--st-hover)}
.workspace:has(>#workTable:not([hidden])) #empty h2{margin:var(--st-space-1) 0 0;color:var(--st-ink);font-size:var(--st-text-md);font-weight:var(--st-weight-bold)}
.workspace:has(>#workTable:not([hidden])) #empty p{max-width:420px;color:var(--st-muted);font-size:var(--st-text-sm);line-height:var(--st-leading)}
.workspace:has(>#workTable:not([hidden])) #empty>div{display:grid;place-items:center;width:48px;height:48px;border-radius:var(--st-radius-pill);background:var(--st-success-soft);color:var(--st-success);font-size:22px;font-weight:var(--st-weight-bold)}
@media(max-width:760px){
.workspace:has(>#workTable:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
.workspace:has(>#workTable:not([hidden])) #orderQueueTabs{gap:var(--st-space-4);padding:0 var(--st-space-3)}
.workspace:has(>#workTable:not([hidden])) #workToolbar{padding:var(--st-space-3)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .search-wrap{width:100%;height:var(--st-control-lg);min-height:var(--st-control-lg)}
.workspace:has(>#workTable:not([hidden])) #workToolbar .search-wrap input,.workspace:has(>#workTable:not([hidden])) #workToolbar .page-size select{font-size:16px}
.workspace:has(>#workTable:not([hidden])) #selectionBar{padding:var(--st-space-2) var(--st-space-3)}
.workspace:has(>#workTable:not([hidden])) #ordersTable td{font-size:14px}
}
/* ══ end Orders ══ */

/* Tickets (stark-mod-tickets): the sidebar count of tickets waiting for an answer, and the ticket page on a phone */
.side-nav-total[data-ticket-count]{padding:1px 7px;border-radius:9px;background:#e5484d;color:#fff}
.side-nav-item.active .side-nav-total[data-ticket-count]{color:#fff}
@media(max-width:760px){#ticketsView .inv-bar{flex-wrap:wrap}#ticketsView .inv-bar select,#ticketsView .inv-bar input{flex:1 1 140px;min-width:0}.tk-msg{max-width:100%!important}}
/* ══ Pop-ups and side panels on the design system (stark-mod-ui-design; release 1b, choice 5) ═══════
   Every page's windows, at once. Look only: no id, class, data- attribute, handler or text changes.
   Decisions open as a centred pop-up; records and long forms as a right-side panel; on a phone both
   slide up from the bottom (Scan out's two windows stay full screen: they are task screens). Footers
   end with the main button at the bottom right. The sorting by id is in the contract (§3, Pop-ups). */
.view-options-backdrop,.sync-progress-backdrop{background:rgba(15,24,38,.45)}
.drawer-backdrop{background:rgba(15,24,38,.35)}
.view-options-dialog,.drawer{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-lg)}
.sync-progress-dialog,.add-connection-dialog,.profile-dialog{border:0;border-radius:var(--st-radius-xl);box-shadow:var(--st-shadow-lg)}
.view-options-dialog>header,.drawer-header{gap:var(--st-space-3);padding:var(--st-space-5) var(--st-space-6);border-bottom:1px solid var(--st-line)}
.sync-progress-header,.add-connection-header,.profile-dialog-header{padding:var(--st-space-5) var(--st-space-6);border-bottom:1px solid var(--st-line)}
.view-options-dialog>header h2,.drawer-header h2,.sync-progress-header h2,.add-connection-header h2,.profile-dialog-header h2{font-size:var(--st-text-xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.view-options-dialog>header p,.sync-progress-header p,.add-connection-header p,.profile-dialog-header p{color:var(--st-muted);font-size:var(--st-text-sm);line-height:var(--st-leading)}
.view-options-dialog>header .eyebrow{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.06em}
.view-options-body,.drawer-content{padding:var(--st-space-5) var(--st-space-6)}
.view-options-dialog>footer,.drawer-footer,.add-connection-footer{justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:var(--st-space-2);padding:var(--st-space-3) var(--st-space-6);border-top:1px solid var(--st-line);background:var(--st-surface-2)}
.sync-progress-footer{gap:var(--st-space-2);padding:var(--st-space-3) var(--st-space-6);border-top:1px solid var(--st-line);background:var(--st-surface-2)}
.sync-progress-footer>span{font-size:var(--st-text-xs)}
.view-options-dialog>footer>.form-error,.view-options-dialog>footer>.button.danger-quiet:first-child,.view-options-dialog>footer>.measurement-review-note{margin-right:auto}
:is(.view-options-dialog>footer,.drawer-footer,.add-connection-footer,.sync-progress-footer) .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
:is(.view-options-dialog,.sync-progress-dialog,.add-connection-dialog,.profile-dialog,.drawer) :is(.dialog-close,.close-button,.drawer-close){display:inline-grid;place-items:center;width:var(--st-control-md);height:var(--st-control-md);padding:0;border:0;border-radius:var(--st-radius-md);background:transparent;color:var(--st-muted);font-size:22px;line-height:1}
:is(.view-options-dialog,.sync-progress-dialog,.add-connection-dialog,.profile-dialog,.drawer) :is(.dialog-close,.close-button,.drawer-close):hover{background:var(--st-hover);color:var(--st-ink)}
/* Decisions: centred. */
:is(#voidBackdrop,#addToBatchBackdrop,#filterBatchBackdrop,#memberPasswordBackdrop,#carrierPickerBackdrop,#itemDeleteBackdrop,#invDialogBackdrop:not(:has(#invDialogBody :is(input,select,textarea,.trk-detail)))){align-items:center;justify-content:center;padding:var(--st-space-4)}
:is(#voidBackdrop,#addToBatchBackdrop,#filterBatchBackdrop,#memberPasswordBackdrop,#carrierPickerBackdrop,#itemDeleteBackdrop,#invDialogBackdrop:not(:has(#invDialogBody :is(input,select,textarea,.trk-detail))))>.view-options-dialog{width:min(520px,100%);height:auto;max-height:calc(100vh - 32px);border-radius:var(--st-radius-xl);overflow:hidden}
:is(#voidBackdrop,#addToBatchBackdrop,#filterBatchBackdrop,#memberPasswordBackdrop,#carrierPickerBackdrop,#itemDeleteBackdrop,#invDialogBackdrop:not(:has(#invDialogBody :is(input,select,textarea,.trk-detail))))>.view-options-dialog.wide{width:min(720px,100%)}
/* Records and long forms that used to open in the middle: a right-side panel. */
:is(#profileBackdrop,#addConnectionBackdrop,#automationBackdrop){place-items:stretch end;padding:0}
:is(#profileBackdrop,#addConnectionBackdrop,#automationBackdrop)>section{width:min(760px,100%);height:100%;max-height:none;border-radius:0}
:is(#profileBackdrop,#addConnectionBackdrop,#automationBackdrop)>section{display:flex;flex-direction:column}
:is(#profileBackdrop,#addConnectionBackdrop,#automationBackdrop)>section>:is(form,.add-connection-body,.profile-dialog-body){flex:1 0 auto}
:is(#addConnectionBackdrop,#automationBackdrop)>section>form{display:flex;flex-direction:column}
:is(#addConnectionBackdrop,#automationBackdrop)>section>form>.add-connection-body{flex:1 0 auto}
.add-connection-footer{position:sticky;bottom:0;z-index:1}
/* Phones: everything slides up from the bottom. */
@media(max-width:760px){
.view-options-backdrop,:is(#voidBackdrop,#addToBatchBackdrop,#filterBatchBackdrop,#memberPasswordBackdrop,#carrierPickerBackdrop,#itemDeleteBackdrop,#invDialogBackdrop:not(:has(#invDialogBody :is(input,select,textarea,.trk-detail)))){align-items:flex-end;justify-content:stretch;padding:0}
.view-options-backdrop>.view-options-dialog:not(.scanout-details-dialog):not(.scanout-printer-dialog),:is(#voidBackdrop,#addToBatchBackdrop,#filterBatchBackdrop,#memberPasswordBackdrop,#carrierPickerBackdrop,#itemDeleteBackdrop,#invDialogBackdrop:not(:has(#invDialogBody :is(input,select,textarea,.trk-detail))))>.view-options-dialog,:is(#voidBackdrop,#addToBatchBackdrop,#filterBatchBackdrop,#memberPasswordBackdrop,#carrierPickerBackdrop,#itemDeleteBackdrop,#invDialogBackdrop:not(:has(#invDialogBody :is(input,select,textarea,.trk-detail))))>.view-options-dialog.wide{width:100%;height:auto;max-height:92vh;max-height:92dvh;border-radius:var(--st-radius-xl) var(--st-radius-xl) 0 0}
.sync-progress-backdrop,:is(#profileBackdrop,#addConnectionBackdrop,#automationBackdrop){place-items:end stretch;padding:0}
.sync-progress-backdrop>section,:is(#profileBackdrop,#addConnectionBackdrop,#automationBackdrop)>section{width:100%;height:auto;max-height:92vh;max-height:92dvh;overflow:auto;border-radius:var(--st-radius-xl) var(--st-radius-xl) 0 0}
.view-options-dialog>header,.view-options-body,.view-options-dialog>footer,.drawer-header,.drawer-content,.drawer-footer,.sync-progress-header,.sync-progress-footer,.add-connection-header,.add-connection-footer,.profile-dialog-header{padding-left:var(--st-space-4);padding-right:var(--st-space-4)}
.drawer{left:0;right:0;width:100%;transform:translateY(105%);border-radius:var(--st-radius-xl) var(--st-radius-xl) 0 0}
.drawer.open{transform:none}
:is(.sync-progress-dialog,.add-connection-dialog,.profile-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px}
}
/* ══ end Pop-ups and side panels ══ */

/* ══ Picking on the design system (stark-mod-ui-design; page owner stark-mod-outbound) ═══════════════
   Look only: ids, data- attributes, focus handling and the scan flow are unchanged; scan fields keep
   their size. Scoped to #outboundView (it reuses Inventory's and Receiving's classes, which must not
   change) and to the shared page header while Picking shows. Lists use the compact 40px rows. */
.workspace:has(>#outboundView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#outboundView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#outboundView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#outboundView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
/* Page tabs (Pick lists / Pack & ship): underlined, like Orders. */
#outboundView>.inv-bar{min-height:56px;padding:0 var(--st-space-4);gap:var(--st-space-3);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#outboundView>.inv-bar>.inv-tabs{align-self:stretch;gap:var(--st-space-5);padding:0;border-radius:0;background:transparent}
#outboundView>.inv-bar .inv-tab{min-height:var(--st-control-lg);padding:0 var(--st-space-1);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#outboundView>.inv-bar .inv-tab:hover{color:var(--st-ink)}
#outboundView>.inv-bar .inv-tab.active{border-bottom-color:var(--st-blue-600);color:var(--st-blue-600)}
#outboundView .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
#outboundView>.inv-bar .button,#outboundView .rx-head .button,#outboundView .inv-filters .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* A pick list's own views (Route / Orders / Activity): the segmented switch. */
#outboundView .ob-panes{gap:2px;padding:3px;border-radius:var(--st-radius-md);background:var(--st-neutral-soft)}
#outboundView .ob-panes .inv-tab{min-height:30px;padding:0 var(--st-space-3);border:0;border-radius:var(--st-radius-sm);color:var(--st-muted);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#outboundView .ob-panes .inv-tab.active{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-sm)}
/* Filters. */
#outboundView .inv-filters{gap:var(--st-space-2);margin:var(--st-space-3) 0}
#outboundView .batch-search input{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#outboundView .batch-search input:focus,#outboundView .rx-fields input:focus{border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
#outboundView .inv-filters select{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);font-size:var(--st-text-md)}
/* Lists: one card, compact 40px rows. */
#outboundView .table-card{min-height:0;border:1px solid var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm);overflow:hidden}
#outboundView .inv-table th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
#outboundView .inv-table td{height:40px;padding:4px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
#outboundView .inv-table tbody tr:hover{background:var(--st-hover)}
#outboundView .inv-table .subtext{margin-top:1px;color:var(--st-muted);font-size:var(--st-text-xs)}
#outboundView .inv-table .order-link{color:var(--st-blue-600);font-weight:var(--st-weight-bold)}
#outboundView .ob-row-actions{gap:var(--st-space-1)}
#outboundView .ob-row-actions .button{height:var(--st-control-sm);padding:0 var(--st-space-3);font-size:var(--st-text-sm)}
/* Status chips: one pill, one meaning per colour (contract §3). */
#outboundView .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
#outboundView :is(.ob-s-open,.ob-s-picking,.ob-s-picked,.ob-s-packed){background:var(--st-info-soft);color:var(--st-info)}
#outboundView :is(.ob-s-done,.ob-s-shipped){background:var(--st-success-soft);color:var(--st-success)}
#outboundView .ob-s-short{background:var(--st-warning-soft);color:var(--st-warning)}
#outboundView :is(.ob-s-cancelled,.ob-s-released){background:var(--st-neutral-soft);color:var(--st-neutral)}
#outboundView .pick-chip{background:var(--st-info-soft);color:var(--st-info);border-radius:var(--st-radius-pill)}
#outboundView .pick-chip.shipped{background:var(--st-success-soft);color:var(--st-success)}
#outboundView .pick-chip.short{background:var(--st-warning-soft);color:var(--st-warning)}
/* A pick list and the scan screens: cards with the record's head, then one loud next step. */
#outboundView .rx-head{gap:var(--st-space-3);padding:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#outboundView .rx-title h2{font-size:var(--st-text-xl);line-height:var(--st-leading-tight);color:var(--st-ink)}
#outboundView .rx-title p{color:var(--st-muted);font-size:var(--st-text-sm)}
#outboundView .rx-receive{border:2px solid var(--st-blue-100);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#outboundView .rx-fields label{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#outboundView .rx-fields input{border-color:var(--st-line-strong);border-radius:var(--st-radius-md)}
#outboundView .rx-code input{border:2px solid var(--st-blue-600)}
#outboundView .rx-fields .button{font-size:var(--st-text-md)}
#outboundView .rx-feedback{font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#outboundView .rx-ok{color:var(--st-success)}
#outboundView .rx-bad{color:var(--st-danger)}
#outboundView .ob-next{border:2px solid var(--st-blue-600);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#outboundView .ob-next-done{border-color:var(--st-success);background:var(--st-success-soft)}
#outboundView .ob-next-missing{border-color:var(--st-warning);background:var(--st-warning-soft)}
#outboundView .ob-next .eyebrow{color:var(--st-muted);font-size:var(--st-text-xs)}
#outboundView .ob-next-loc{color:var(--st-ink)}
#outboundView .ob-progress{background:var(--st-neutral-soft)}
#outboundView .ob-progress i{background:var(--st-success)}
#outboundView .ob-next-line{background:var(--st-info-soft);color:var(--st-blue-700)}
#outboundView .ob-bench-card{padding:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#outboundView .ob-bench-title h2{font-size:var(--st-text-xl);color:var(--st-ink)}
#outboundView .ob-bench-title p,#outboundView .inv-hint{color:var(--st-muted);font-size:var(--st-text-sm)}
@media(max-width:760px){
.workspace:has(>#outboundView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#outboundView>.inv-bar{padding:0 var(--st-space-3) var(--st-space-2)}
#outboundView>.inv-bar .inv-tab{flex:1;min-height:var(--st-control-lg)}
#outboundView .batch-search input,#outboundView .inv-filters select{font-size:16px}
#outboundView .ob-panes .inv-tab{min-height:var(--st-control-md)}
#outboundView .inv-table td{font-size:14px}
}
/* ══ end Picking ══ */

/* ══ Scan out and Scan & Verify on the design system (stark-mod-ui-design; owner stark-mod-printing-scanning) ══
   Look only: focus handling, auto-print, the batch picker and its next-batch default, and the printer
   window behave exactly as before; scan fields and buttons keep their size (52px fields, 44–52px
   buttons on a tablet or phone). Scoped to #scanView and to the page header while it shows. Scan out
   keeps its green "ready" ring on the focused scan field; Verify's is blue. */
.workspace:has(>#scanView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#scanView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#scanView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#scanView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#scanView .button{border-radius:var(--st-radius-md);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
/* Verify / Scan out: the segmented switch. */
#scanView .scan-modes{gap:2px;padding:var(--st-space-2) var(--st-space-3);border-bottom:1px solid var(--st-line);background:var(--st-surface-2)}
#scanView .scan-mode{min-height:40px;padding:0 var(--st-space-5);border:0;border-radius:var(--st-radius-md);color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#scanView .scan-mode:hover{color:var(--st-ink)}
#scanView .scan-mode.active{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-sm)}
/* The task heading and the one big field. */
#scanView .scan-shell .eyebrow{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.06em}
#scanView .scan-shell h2{font-size:var(--st-text-xl);line-height:var(--st-leading-tight);color:var(--st-ink)}
#scanView .scan-shell>p{color:var(--st-muted);font-size:var(--st-text-md)}
#scanView .scan-form input{border:2px solid var(--st-blue-600);border-radius:var(--st-radius-lg);background:var(--st-surface);color:var(--st-ink);font-family:var(--st-font-mono);font-size:var(--st-text-scan)}
#scanView .scan-form input::placeholder{color:var(--st-faint)}
#scanView .scan-form input:focus{border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
#scanView .scanout-form input:focus{border-color:var(--st-success);box-shadow:0 0 0 3px rgba(22,130,93,.22)}
#scanView .scan-form .button{border-radius:var(--st-radius-lg)}
/* Scan out: batch picker, counts, tools, results, recent scans. */
#scanView .scanout-batch span,#scanView .scanout-recent h3{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em}
#scanView .scanout-batch select{border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#scanView .scanout-batch select:focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
#scanView .scanout-counts,#scanView .scanout-recent ol{border-color:var(--st-line);border-radius:var(--st-radius-lg);background:var(--st-surface);box-shadow:var(--st-shadow-sm)}
#scanView .scanout-count-main strong{color:var(--st-ink);font-variant-numeric:tabular-nums}
#scanView .scanout-count-main span,#scanView .scanout-count-side{color:var(--st-muted)}
#scanView .scanout-held-count{color:var(--st-warning)}
#scanView .scanout-camera{border-radius:var(--st-radius-lg)}
#scanView .scanout-print-status{border-radius:var(--st-radius-lg);background:var(--st-info-soft);color:var(--st-info)}
#scanView .scanout-print-status.good{background:var(--st-success-soft);color:var(--st-success)}
#scanView .scanout-print-status.bad{background:var(--st-danger-soft);color:var(--st-danger)}
#scanView .scanout-card{border:2px solid var(--st-line);border-radius:var(--st-radius-lg);background:var(--st-surface);box-shadow:var(--st-shadow-sm)}
#scanView .scanout-card.good{border-color:var(--st-success);background:var(--st-success-soft)}
#scanView .scanout-card.warn{border-color:var(--st-warning);background:var(--st-warning-soft)}
#scanView .scanout-card.bad{border-color:var(--st-danger);background:var(--st-danger-soft)}
#scanView .scanout-card h3{color:var(--st-ink)}
#scanView .scanout-card p.scanout-part{color:var(--st-muted)}
#scanView .scanout-card p.scanout-found{color:var(--st-success)}
#scanView .scanout-next{border-radius:var(--st-radius-lg)}
#scanView .scanout-recent li{border-top-color:var(--st-line);font-size:var(--st-text-sm)}
#scanView .scanout-recent li.bad .scanout-recent-what strong{color:var(--st-danger)}
#scanView .scanout-recent-actions .button{font-size:var(--st-text-sm)}
#scanView .scanout-cancelled-chip{border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-xs)}
#scanView .operation-empty{color:var(--st-muted);font-size:var(--st-text-sm)}
@media(max-width:760px){
.workspace:has(>#scanView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#scanView .scan-mode{min-height:var(--st-control-lg)}
#scanView .scanout-batch select{font-size:16px}
}
/* ══ end Scan ══ */

/* ══ Receiving on the design system (stark-mod-ui-design; owners stark-mod-receiving, stark-mod-returns) ══
   Inbound and returns. Look only: scan focus, the lot and expiry fields, the relabel field and the
   Print label flow behave exactly as before, and fields keep their size. Scoped to #receivingView
   (it shares Inventory's and Picking's classes) and to the page header while it shows. */
.workspace:has(>#receivingView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#receivingView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#receivingView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#receivingView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
/* Inbound / Returns: underlined page tabs. */
#receivingView>.inv-bar{min-height:56px;padding:0 var(--st-space-4);gap:var(--st-space-3);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#receivingView>.inv-bar>.inv-tabs{align-self:stretch;gap:var(--st-space-5);padding:0;border-radius:0;background:transparent}
#receivingView>.inv-bar .inv-tab{min-height:var(--st-control-lg);padding:0 var(--st-space-1);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#receivingView>.inv-bar .inv-tab:hover{color:var(--st-ink)}
#receivingView>.inv-bar .inv-tab.active{border-bottom-color:var(--st-blue-600);color:var(--st-blue-600)}
#receivingView .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
#receivingView>.inv-bar .button,#receivingView .rx-head .button,#receivingView .inv-filters .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* Filters and lists: one card, compact 40px rows. */
#receivingView .inv-filters{gap:var(--st-space-2);margin:var(--st-space-3) 0}
#receivingView .batch-search input{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#receivingView .batch-search input:focus,#receivingView .rx-fields input:focus{border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
#receivingView .inv-filters select{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);font-size:var(--st-text-md)}
#receivingView .table-card{min-height:0;border:1px solid var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm);overflow:hidden}
#receivingView .inv-table th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
#receivingView .inv-table td{height:40px;padding:4px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
#receivingView .inv-table tbody tr:hover{background:var(--st-hover)}
#receivingView .inv-table .subtext{margin-top:1px;color:var(--st-muted);font-size:var(--st-text-xs)}
#receivingView .inv-table .order-link{color:var(--st-blue-600);font-weight:var(--st-weight-bold)}
#receivingView .operation-empty,#receivingView .inv-hint{color:var(--st-muted);font-size:var(--st-text-sm)}
/* Status chips: blue expected or receiving, green received or done, amber a line that needs a look, grey cancelled. */
#receivingView .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
#receivingView .inv-chip.good{background:var(--st-success-soft);color:var(--st-success)}
#receivingView .inv-chip.off{background:var(--st-warning-soft);color:var(--st-warning)}
#receivingView :is(.rx-s-expected,.rx-s-receiving){background:var(--st-info-soft);color:var(--st-info)}
#receivingView .inv-chip.rx-s-cancelled{background:var(--st-neutral-soft);color:var(--st-neutral)}
#receivingView .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple)}
/* An inbound or a return: its head, the scan card, what happens to it, and its history. */
#receivingView .rx-head{gap:var(--st-space-3);padding:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#receivingView .rx-title h2{font-size:var(--st-text-xl);line-height:var(--st-leading-tight);color:var(--st-ink)}
#receivingView .rx-title p{color:var(--st-muted);font-size:var(--st-text-sm)}
#receivingView .rx-receive{border:2px solid var(--st-blue-100);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#receivingView .rx-fields label{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#receivingView .rx-fields input{border-color:var(--st-line-strong);border-radius:var(--st-radius-md)}
#receivingView .rx-code input{border:2px solid var(--st-blue-600)}
#receivingView .rx-to input{border:2px solid var(--st-purple)}
#receivingView .rx-fields .button{font-size:var(--st-text-md)}
#receivingView .rx-feedback{font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#receivingView .rx-ok{color:var(--st-success)}
#receivingView .rx-bad{color:var(--st-danger)}
#receivingView .rx-warn{color:var(--st-warning)}
#receivingView .rx-discrepancies{border-color:var(--st-warning);border-radius:var(--st-radius-lg);background:var(--st-warning-soft);color:var(--st-warning)}
#receivingView .inv-modes{gap:2px;border-radius:var(--st-radius-md);background:var(--st-neutral-soft)}
#receivingView .inv-modes span{border:0;border-radius:var(--st-radius-sm);color:var(--st-muted);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#receivingView .inv-modes input:checked+span{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-sm)}
#receivingView .inv-modes input:focus-visible+span{outline:0;box-shadow:var(--st-focus)}
#receivingView .inv-change.up{color:var(--st-success)}
#receivingView .inv-change.down{color:var(--st-danger)}
/* A tablet held upright (761–1000px): the scan row used to run past the card's edge (the Receive button was cut off);
   fields pair up two by two, the scan box and the button take a full row each — the phone's layout, wider. */
@media(min-width:761px) and (max-width:1000px){
#receivingView .rx-fields,#receivingView .rx-fields.with-lot,#receivingView .rx-fields.with-relabel{grid-template-columns:repeat(2,minmax(0,1fr))}
#receivingView .rx-fields .rx-code,#receivingView .rx-fields .rx-to,#receivingView .rx-fields>.button{grid-column:1/-1}
}
@media(max-width:760px){
.workspace:has(>#receivingView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#receivingView>.inv-bar{padding:0 var(--st-space-3) var(--st-space-2)}
#receivingView>.inv-bar .inv-tab{flex:1;min-height:var(--st-control-lg)}
#receivingView .batch-search input,#receivingView .inv-filters select{font-size:16px}
#receivingView .inv-table td{font-size:14px}
}
/* ══ end Receiving ══ */
/* ── Virtual warehouse (stark-mod-virtual-warehouse) ──────────────────────────
   A long warehouse name (or the "· Virtual" mark) never pushes the Inventory page sideways
   on a phone: the warehouse picker shrinks to the bar and cuts the name short. */
.inv-warehouse{min-width:0;max-width:100%}
.inv-warehouse select{min-width:0;max-width:100%;text-overflow:ellipsis}
#virtualwhView .vw-scan-bar input{min-width:0;flex:1 1 180px}
#virtualwhView .vw-check{margin:8px 2px}

/* ══ Inventory on the design system (stark-mod-ui-design; owner stark-mod-inventory) ══════════════════
   Look only. Stock / Locations / History / Low stock / Expiring are views of one stock, so they stay
   the segmented switch (contract §3); Low stock's count is an amber pill (needs attention). The
   warehouse picker gets no width rule: it keeps the virtual-warehouse fix that holds it within 320px.
   Scoped to #inventoryView, the page header while it shows, and the inventory dialog's body
   (lots, reorder, adjust) while Inventory is the page. */
.workspace:has(>#inventoryView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#inventoryView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#inventoryView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#inventoryView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#inventoryView>.inv-bar{gap:var(--st-space-3);padding:var(--st-space-2) var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#inventoryView .inv-warehouse{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#inventoryView .inv-warehouse select,#inventoryView .inv-filters select{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#inventoryView .inv-warehouse select:focus,#inventoryView .inv-filters select:focus,#inventoryView .batch-search input:focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
/* Views of one stock: the segmented switch. */
#inventoryView>.inv-bar>.inv-tabs{gap:2px;padding:3px;border-radius:var(--st-radius-md);background:var(--st-neutral-soft)}
#inventoryView>.inv-bar .inv-tab{min-height:30px;padding:0 var(--st-space-3);border:0;border-radius:var(--st-radius-sm);color:var(--st-muted);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#inventoryView>.inv-bar .inv-tab:hover{color:var(--st-ink)}
#inventoryView>.inv-bar .inv-tab.active{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-sm)}
#inventoryView .inv-tab-count{min-width:20px;margin-left:var(--st-space-1);padding:0 6px;border-radius:var(--st-radius-pill);background:var(--st-warning-soft);color:var(--st-warning);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);line-height:20px}
#inventoryView .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
#inventoryView>.inv-bar .button,#inventoryView .inv-filters .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* Filters and the list: one card, compact 40px rows. */
#inventoryView .inv-filters{gap:var(--st-space-2);margin:var(--st-space-3) 0}
#inventoryView .batch-search input{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#inventoryView .inv-check{color:var(--st-ink-2);font-size:var(--st-text-sm)}
#inventoryView .table-card{min-height:0;border:1px solid var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm);overflow:hidden}
#inventoryView .inv-table th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
#inventoryView .inv-table td{height:40px;padding:4px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
#inventoryView .inv-table tbody tr:hover{background:var(--st-hover)}
#inventoryView .inv-table .subtext{margin-top:1px;color:var(--st-muted);font-size:var(--st-text-xs)}
#inventoryView .inv-table .order-link{color:var(--st-blue-600);font-weight:var(--st-weight-bold)}
#inventoryView .pagination{min-height:52px;padding:var(--st-space-2) var(--st-space-4);color:var(--st-muted);font-size:var(--st-text-sm)}
#inventoryView .page-button{width:var(--st-control-md);height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink-2)}
#inventoryView .operation-empty,#inventoryView .inv-hint{color:var(--st-muted);font-size:var(--st-text-sm)}
/* Chips: green stocked, amber low, red expired, grey empty or not in use, purple for the Virtual mark (what the warehouse is, not a status). */
#inventoryView .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
#inventoryView .inv-chip.good{background:var(--st-success-soft);color:var(--st-success)}
#inventoryView .inv-chip.off{background:var(--st-danger-soft);color:var(--st-danger)}
#inventoryView .inv-chip.inv-s-idle{background:var(--st-neutral-soft);color:var(--st-neutral)}
#inventoryView .inv-chip.inv-low-chip,#inventoryView .inv-chip.warn{background:var(--st-warning-soft);color:var(--st-warning)}
#inventoryView .inv-chip.vw-chip{background:var(--st-purple-soft);color:var(--st-purple)}
#inventoryView .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple)}
#inventoryView .inv-change.up{color:var(--st-success)}
#inventoryView .inv-change.down{color:var(--st-danger)}
/* The inventory dialog's body while Inventory is the page: readable fact tiles and the same list rows. */
.workspace:has(>#inventoryView:not([hidden])) #invDialogBackdrop .inv-facts div{border-color:var(--st-line);border-radius:var(--st-radius-lg);background:var(--st-surface-2)}
.workspace:has(>#inventoryView:not([hidden])) #invDialogBackdrop .inv-facts span{color:var(--st-muted);font-size:var(--st-text-xs)}
.workspace:has(>#inventoryView:not([hidden])) #invDialogBackdrop .inv-facts strong{color:var(--st-ink);font-size:var(--st-text-md)}
.workspace:has(>#inventoryView:not([hidden])) #invDialogBackdrop .inv-table th{height:36px;background:var(--st-surface-2);color:var(--st-muted);font-size:var(--st-text-xs)}
.workspace:has(>#inventoryView:not([hidden])) #invDialogBackdrop .inv-table td{height:40px;padding:4px var(--st-space-3);font-size:var(--st-text-md)}
@media(max-width:760px){
.workspace:has(>#inventoryView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#inventoryView>.inv-bar{padding:var(--st-space-2) var(--st-space-3)}
#inventoryView>.inv-bar .inv-tab{min-height:var(--st-control-md)}
#inventoryView .inv-warehouse select,#inventoryView .inv-filters select,#inventoryView .batch-search input{font-size:16px}
#inventoryView .inv-table td{font-size:14px}
}
/* ══ end Inventory ══ */

/* ══ Items on the design system (stark-mod-ui-design; owner stark-mod-products) ════════════════════
   Look only: the list, the selection bar, import / export / sync, and the item form (bundle
   components, notes, store SKUs). Every id, data- attribute and handler is unchanged. Scoped to
   #itemsView, its page header, and the item windows (#itemDialogBackdrop, #itemFillBackdrop,
   #itemDeleteBackdrop), which only Items opens. */
.workspace:has(>#itemsView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#itemsView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#itemsView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#itemsView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
/* Toolbar: search, Active / Archived / All as the segmented switch, client, then the actions (New item last). */
#itemsView>.items-toolbar{gap:var(--st-space-2);padding:var(--st-space-3) var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#itemsView .batch-search input{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#itemsView .batch-search input:focus,#itemsView .items-client-filter:focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
#itemsView .items-filter{gap:2px;padding:3px;border-radius:var(--st-radius-md);background:var(--st-neutral-soft)}
#itemsView .items-filter .filter{min-height:30px;padding:0 var(--st-space-3);border:0;border-radius:var(--st-radius-sm);background:transparent;color:var(--st-muted);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#itemsView .items-filter .filter:hover{color:var(--st-ink)}
#itemsView .items-filter .filter.active{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-sm)}
#itemsView .items-client-filter{height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#itemsView .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
#itemsView>.items-toolbar .button,#itemsView #itemSelectionBar>.button{height:var(--st-control-md);min-height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
#itemsView .item-sync-report{border-color:var(--st-blue-100);border-radius:var(--st-radius-lg);background:var(--st-info-soft);color:var(--st-ink-2);font-size:var(--st-text-sm)}
#itemsView .item-sync-report strong{color:var(--st-ink);font-size:var(--st-text-md)}
/* Selection bar, as on Orders. */
#itemsView #itemSelectionBar{min-height:52px;padding:var(--st-space-2) var(--st-space-4);gap:var(--st-space-2);border:1px solid var(--st-blue-100);border-radius:var(--st-radius-lg);background:var(--st-blue-50)}
#itemsView #itemSelectionBar>strong{color:var(--st-ink);font-size:var(--st-text-sm);font-weight:var(--st-weight-bold)}
#itemsView #itemSelectionBar .selection-note{color:var(--st-muted);font-size:var(--st-text-sm)}
/* The list: one card, 52px rows, 12px detail lines. */
#itemsView .table-card{min-height:0;border:1px solid var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm);overflow:hidden}
#itemsView #itemsTable th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em}
#itemsView #itemsTable td{height:52px;padding:6px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
#itemsView #itemsTable tbody tr:hover{background:var(--st-hover)}
#itemsView #itemsTable tbody tr.selected{background:var(--st-blue-50)}
#itemsView #itemsTable .order-link{color:var(--st-blue-600);font-weight:var(--st-weight-bold)}
#itemsView #itemsTable .subtext,#itemsView .item-identifiers,#itemsView .item-measure{color:var(--st-muted);font-size:var(--st-text-xs)}
#itemsView .item-measure.missing{color:var(--st-warning)}
#itemsView .item-store-sku{color:var(--st-purple);font-size:var(--st-text-xs)}
#itemsView .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple);font-size:var(--st-text-xs)}
#itemsView .pagination{min-height:52px;padding:var(--st-space-2) var(--st-space-4);color:var(--st-muted);font-size:var(--st-text-sm)}
#itemsView .page-button{width:var(--st-control-md);height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink-2)}
#itemsView .operation-empty{color:var(--st-muted);font-size:var(--st-text-sm)}
/* The item form (a right-side panel): labels above, 36px fields, the bundle and its components in a card. */
#itemDialogBackdrop .settings-field-grid label,#itemDialogBackdrop .item-notes{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#itemDialogBackdrop .view-options-body input:not([type=checkbox]):not([type=radio]):not([type=file]),#itemDialogBackdrop .view-options-body select{min-height:var(--st-control-md);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md);font-weight:var(--st-weight-regular);text-transform:none;letter-spacing:0}
#itemDialogBackdrop .item-notes textarea{border-color:var(--st-line-strong);border-radius:var(--st-radius-md);font-size:var(--st-text-md)}
#itemDialogBackdrop :is(input,select,textarea):focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
#itemDialogBackdrop .item-form-hint{color:var(--st-muted);font-size:var(--st-text-sm)}
#itemDialogBackdrop .item-bundle{border-color:var(--st-line);border-radius:var(--st-radius-lg);background:var(--st-surface-2)}
#itemDialogBackdrop .item-bundle legend{color:var(--st-ink);font-size:var(--st-text-sm);font-weight:var(--st-weight-bold)}
#itemDialogBackdrop .item-component-row .button{height:var(--st-control-md);font-size:var(--st-text-sm)}
#itemFillBackdrop .item-fill-intro,#itemDeleteBackdrop .item-delete-list{color:var(--st-ink-2);font-size:var(--st-text-sm)}
@media(max-width:760px){
.workspace:has(>#itemsView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#itemsView>.items-toolbar{padding:var(--st-space-3)}
#itemsView .items-filter .filter{min-height:var(--st-control-md)}
#itemsView .batch-search input,#itemsView .items-client-filter{min-height:var(--st-control-lg);font-size:16px}
#itemsView #itemsTable td{font-size:14px}
#itemDialogBackdrop .view-options-body input:not([type=checkbox]):not([type=radio]):not([type=file]),#itemDialogBackdrop .view-options-body select,#itemDialogBackdrop .item-notes textarea{min-height:var(--st-control-lg);font-size:16px}
}
/* ══ end Items ══ */

/* ══ Batches and Tracking on the design system (stark-mod-ui-design; owners stark-mod-orders / stark-mod-outbound, stark-mod-tracking) ══
   Look only: every id, data- attribute, handler, filter, the timeline and Refresh now are unchanged.
   Tracking's status chips become underlined tabs with counts (stages of one list, contract choice 2);
   they still wrap rather than scroll, so nothing runs off a phone. Scoped to #batchesView,
   #trackingView, their page header, and the inventory dialog's timeline while Tracking shows. */
.workspace:has(>#batchesView:not([hidden])) .page-header,.workspace:has(>#trackingView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#batchesView:not([hidden])) .page-header h1,.workspace:has(>#trackingView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#batchesView:not([hidden])) .page-header p,.workspace:has(>#trackingView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#batchesView:not([hidden])) .header-actions .button,.workspace:has(>#trackingView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
:is(#batchesView,#trackingView){border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#batchesView,#trackingView) .operations-card-head{padding:var(--st-space-4) var(--st-space-5);border-bottom-color:var(--st-line)}
:is(#batchesView,#trackingView) .operations-card-head h2{font-size:var(--st-text-lg);color:var(--st-ink)}
:is(#batchesView,#trackingView) .operations-card-head p{color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#batchesView,#trackingView) .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
:is(#batchesView,#trackingView) .operations-card-head .button,#batchesView .batch-selection-bar>.button,#trackingView .inline-search .button{height:var(--st-control-md);min-height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
:is(#batchesView,#trackingView) :is(.batch-search input,.inline-search input){height:var(--st-control-md);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
:is(#batchesView,#trackingView) :is(.batch-search input,.inline-search input):focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
:is(#batchesView,#trackingView) .filter-button{height:var(--st-control-md);min-height:var(--st-control-md);padding:0 var(--st-space-3);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink-2);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
/* Batches: All / Active / Complete as the segmented switch; the selection bar as on Orders. */
#batchesView .batch-list-toolbar{padding:var(--st-space-3) var(--st-space-5);border-bottom-color:var(--st-line);background:var(--st-surface-2)}
#batchesView .batch-filter-tabs{display:flex;gap:2px;padding:3px;border-radius:var(--st-radius-md);background:var(--st-neutral-soft)}
#batchesView .batch-filter-tabs .filter{height:30px;padding:0 var(--st-space-3);border:0;border-radius:var(--st-radius-sm);background:transparent;color:var(--st-muted);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#batchesView .batch-filter-tabs .filter:hover{background:transparent;color:var(--st-ink)}
#batchesView .batch-filter-tabs .filter.active{background:var(--st-surface);color:var(--st-ink);box-shadow:var(--st-shadow-sm)}
#batchesView .batch-selection-bar{min-height:52px;padding:var(--st-space-2) var(--st-space-5);gap:var(--st-space-2);background:var(--st-blue-50);border-color:var(--st-blue-100)}
#batchesView .batch-selection-bar>strong{color:var(--st-ink);font-size:var(--st-text-sm);font-weight:var(--st-weight-bold)}
/* Tracking: the status filters as underlined tabs with counts. */
#trackingView .trk-chips{gap:var(--st-space-1) var(--st-space-5);padding:0 var(--st-space-5);border-bottom-color:var(--st-line)}
#trackingView .trk-chip{height:var(--st-control-lg);padding:0 var(--st-space-1);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#trackingView .trk-chip:hover{color:var(--st-ink)}
#trackingView .trk-chip.active{border-bottom-color:var(--st-blue-600);background:transparent;color:var(--st-blue-600)}
#trackingView .trk-chip span{min-width:22px;height:20px;padding:0 6px;border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);line-height:20px}
#trackingView .trk-chip.active span{background:var(--st-blue-50);color:var(--st-blue-600)}
#trackingView .trk-chip.warn span{background:var(--st-danger-soft);color:var(--st-danger)}
/* Both lists (not a batch's rate tables): 52px rows, 12px detail lines, uppercase 12px headers, status pills by meaning. */
:is(#batchesView .batch-list-table,#trackingView table) th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom-color:var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em}
:is(#batchesView .batch-list-table,#trackingView table) td{height:52px;padding:6px var(--st-space-3);border-bottom-color:var(--st-line);font-size:var(--st-text-md);line-height:1.35}
:is(#batchesView .batch-list-table,#trackingView table) tbody tr:hover td{background:var(--st-hover)}
#batchesView .batch-list-row.selected td{background:var(--st-blue-50)}
:is(#batchesView,#trackingView) .subtext{margin-top:2px;color:var(--st-muted);font-size:var(--st-text-xs)}
:is(#batchesView,#trackingView) .order-link{color:var(--st-blue-600);font-weight:var(--st-weight-bold)}
#trackingView .trk-flag,#trackingView .trk-error-text{color:var(--st-danger);font-size:var(--st-text-xs)}
#trackingView .trk-delivered{color:var(--st-success)}
:is(#batchesView,#trackingView) .status{height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1}
:is(#batchesView,#trackingView) :is(.status.pending,.status.label_generated,.status.in_transit,.status.pre_transit,.status.out_for_delivery,.status.processing,.status.open,.status.active){background:var(--st-info-soft);color:var(--st-info)}
:is(#batchesView,#trackingView) :is(.status.completed,.status.complete,.status.delivered,.status.shipped){background:var(--st-success-soft);color:var(--st-success)}
:is(#batchesView,#trackingView) :is(.status.error,.status.exception,.status.returned,.status.failed,.status.purchase_unknown){background:var(--st-danger-soft);color:var(--st-danger)}
:is(#batchesView,#trackingView) :is(.status.on_hold,.status.partial,.status.attention){background:var(--st-warning-soft);color:var(--st-warning)}
:is(#batchesView,#trackingView) :is(.status.cancelled,.status.unknown,.status.draft){background:var(--st-neutral-soft);color:var(--st-neutral)}
:is(#batchesView,#trackingView) .pagination{min-height:52px;padding:var(--st-space-2) var(--st-space-5);color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#batchesView,#trackingView) .page-button{width:var(--st-control-md);height:var(--st-control-md);border-color:var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink-2)}
:is(#batchesView,#trackingView) .operation-empty{color:var(--st-muted);font-size:var(--st-text-sm)}
/* A batch's own page: its cards in the token look. */
#batchesView .batch-detail-head h2,#batchesView .batch-orders-card h3{color:var(--st-ink)}
#batchesView :is(.batch-orders-card,.batch-action-card){border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
/* The tracking timeline (a record, opened in the right-side panel): readable facts and dots in meaning colours. */
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-facts dt{color:var(--st-muted);font-size:var(--st-text-xs)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-facts dd{color:var(--st-ink);font-size:var(--st-text-md)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-head p,.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-timeline strong{color:var(--st-ink-2);font-size:var(--st-text-sm)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop :is(.trk-timeline span,.trk-note,.trk-limit,.trk-history){color:var(--st-muted);font-size:var(--st-text-sm)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-problem{border-color:var(--st-danger);border-radius:var(--st-radius-lg);background:var(--st-danger-soft);color:var(--st-danger);font-size:var(--st-text-sm)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-timeline li:first-child .trk-dot{background:var(--st-blue-600)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .trk-timeline li.delivered .trk-dot{background:var(--st-success)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop :is(.trk-timeline li.exception,.trk-timeline li.returned) .trk-dot{background:var(--st-danger)}
.workspace:has(>#trackingView:not([hidden])) #invDialogBackdrop .status{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
@media(max-width:760px){
.workspace:has(>#batchesView:not([hidden])) .page-header h1,.workspace:has(>#trackingView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
:is(#batchesView,#trackingView) .operations-card-head{padding:var(--st-space-3)}
#batchesView .batch-list-toolbar{padding:var(--st-space-3)}
#batchesView .batch-filter-tabs .filter{height:var(--st-control-md)}
#trackingView .trk-chips{padding:0 var(--st-space-3)}
:is(#batchesView,#trackingView) :is(.batch-search input,.inline-search input){min-height:var(--st-control-lg);font-size:16px}
:is(#batchesView .batch-list-table,#trackingView table) td{font-size:14px}
}
/* ══ end Batches and Tracking ══ */

/* ══ Cross-dock and Work orders on the design system (stark-mod-ui-design; owners stark-mod-crossdock-fba, stark-mod-work-orders) ══
   Look only: the plain browser fields (search, client picker, scan boxes, forms) get the design-system
   field; Active / Shipped / Cancelled / All and Open / Completed / Cancelled / All are stages of one
   list, so they are underlined tabs; lists use the compact 40px rows. Every id, data- attribute and
   handler is unchanged. The client portal's tabs use their own classes and wait for its own release.
   Scoped to #crossdockView, #workOrdersView, their page header, and the inventory dialog's fields
   while one of them shows. */
.workspace:has(>#crossdockView:not([hidden])) .page-header,.workspace:has(>#workOrdersView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#crossdockView:not([hidden])) .page-header h1,.workspace:has(>#workOrdersView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#crossdockView:not([hidden])) .page-header p,.workspace:has(>#workOrdersView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#crossdockView:not([hidden])) .header-actions .button,.workspace:has(>#workOrdersView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
:is(#crossdockView,#workOrdersView)>.inv-bar{min-height:56px;padding:var(--st-space-1) var(--st-space-4);gap:var(--st-space-3);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#crossdockView,#workOrdersView)>.inv-bar>.inv-tabs{align-self:stretch;gap:var(--st-space-5);padding:0;border-radius:0;background:transparent}
:is(#crossdockView,#workOrdersView)>.inv-bar .inv-tab{min-height:var(--st-control-lg);padding:0 var(--st-space-1);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
:is(#crossdockView,#workOrdersView)>.inv-bar .inv-tab:hover{color:var(--st-ink)}
:is(#crossdockView,#workOrdersView)>.inv-bar .inv-tab.active{border-bottom-color:var(--st-blue-600);color:var(--st-blue-600)}
/* Fields: the design-system field everywhere on these pages (search, client, forms, scan boxes). */
:is(#crossdockView,#workOrdersView) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){height:var(--st-control-md);min-width:0;max-width:100%;padding:0 var(--st-space-3);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-ink);font-size:var(--st-text-md)}
:is(#crossdockView,#workOrdersView) textarea{border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
:is(#crossdockView,#workOrdersView) :is(input,select,textarea):focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
:is(#crossdockView,#workOrdersView)>.inv-bar :is(#xdSearch,#woSearch){width:min(220px,100%)}
#workOrdersView>.inv-bar #woClient{width:auto;max-width:180px}
:is(#crossdockView,#workOrdersView) .settings-field-grid label{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#crossdockView .xd-scan input:not([type=checkbox]):not([type=radio]):not([type=file]){height:var(--st-control-lg);padding:0 var(--st-space-3)}
#crossdockView .xd-scan input[name=code]:not([type=checkbox]):not([type=radio]):not([type=file]){border:2px solid var(--st-blue-600);font-family:var(--st-font-mono);font-size:17px}
:is(#crossdockView,#workOrdersView) .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
:is(#crossdockView,#workOrdersView)>.inv-bar .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* Lists: one card, compact 40px rows. */
:is(#crossdockView,#workOrdersView) .table-card,:is(#crossdockView,#workOrdersView) .settings-panel,#crossdockView .xd-outbound{border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#crossdockView,#workOrdersView) .inv-table th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
:is(#crossdockView,#workOrdersView) .inv-table td{height:40px;padding:4px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
:is(#crossdockView,#workOrdersView) .inv-table tbody tr:hover{background:var(--st-hover)}
:is(#crossdockView,#workOrdersView) .subtext{color:var(--st-muted);font-size:var(--st-text-xs)}
:is(#crossdockView,#workOrdersView) .operation-empty,:is(#crossdockView,#workOrdersView) .inv-hint{color:var(--st-muted);font-size:var(--st-text-sm)}
/* A cross-dock or work order's head and facts. */
:is(#crossdockView,#workOrdersView) .bl-bill-head{gap:var(--st-space-3);padding:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#crossdockView,#workOrdersView) .bl-bill-head h2{font-size:var(--st-text-xl);color:var(--st-ink)}
:is(#crossdockView,#workOrdersView) .bl-bill-head p{color:var(--st-muted);font-size:var(--st-text-sm)}
#workOrdersView .bl-total small{color:var(--st-muted);font-size:var(--st-text-xs)}
#workOrdersView .wo-kv dt{color:var(--st-muted);font-size:var(--st-text-sm)}
#crossdockView .xd-h{color:var(--st-ink);font-size:var(--st-text-lg)}
#crossdockView .xd-message{border-radius:var(--st-radius-lg);background:var(--st-success-soft);color:var(--st-success);font-weight:var(--st-weight-semibold)}
#crossdockView .xd-message.bad{background:var(--st-danger-soft);color:var(--st-danger)}
/* Chips: blue in progress, green done (shipped, completed, in), amber needs a look, grey not started or cancelled. */
:is(#crossdockView,#workOrdersView) .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
:is(#crossdockView,#workOrdersView) .inv-chip.good{background:var(--st-success-soft);color:var(--st-success)}
:is(#crossdockView,#workOrdersView) .inv-chip.warn{background:var(--st-warning-soft);color:var(--st-warning)}
:is(#crossdockView,#workOrdersView) .inv-chip.off{background:var(--st-neutral-soft);color:var(--st-neutral)}
:is(#crossdockView,#workOrdersView) .inv-chip:is(.xd-s-open,.xd-s-receiving,.xd-s-ready,.wo-s-requested,.wo-s-quoted,.wo-s-in_progress){background:var(--st-info-soft);color:var(--st-info)}
:is(#crossdockView,#workOrdersView) .inv-chip:is(.xd-s-shipped,.wo-s-completed){background:var(--st-success-soft);color:var(--st-success)}
:is(#crossdockView,#workOrdersView) .inv-chip:is(.xd-s-cancelled,.wo-s-cancelled){background:var(--st-neutral-soft);color:var(--st-neutral)}
:is(#crossdockView,#workOrdersView) .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple)}
/* The new cross-dock / new work order windows (the shared inventory dialog) while one of these pages shows. */
.workspace:has(>#crossdockView:not([hidden])) #invDialogBackdrop .settings-field-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select),.workspace:has(>#workOrdersView:not([hidden])) #invDialogBackdrop .settings-field-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:var(--st-control-md);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
@media(max-width:760px){
.workspace:has(>#crossdockView:not([hidden])) .page-header h1,.workspace:has(>#workOrdersView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
:is(#crossdockView,#workOrdersView)>.inv-bar{padding:0 var(--st-space-3) var(--st-space-2)}
:is(#crossdockView,#workOrdersView)>.inv-bar>.inv-tabs{gap:var(--st-space-2);flex-wrap:wrap}
:is(#crossdockView,#workOrdersView)>.inv-bar .inv-tab{flex:1 1 auto;min-height:var(--st-control-lg);font-size:var(--st-text-sm)}
:is(#crossdockView,#workOrdersView)>.inv-bar :is(#xdSearch,#woSearch,#woClient){flex:1 1 100%;width:100%;max-width:none}
:is(#crossdockView,#workOrdersView) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){min-height:var(--st-control-lg);font-size:16px}
.workspace:has(>#crossdockView:not([hidden])) #invDialogBackdrop .settings-field-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select),.workspace:has(>#workOrdersView:not([hidden])) #invDialogBackdrop .settings-field-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:var(--st-control-lg);font-size:16px}
:is(#crossdockView,#workOrdersView) .inv-table td{font-size:14px}
}
/* ══ end Cross-dock and Work orders ══ */

/* ══ Billing and Reports on the design system (stark-mod-ui-design; owners stark-mod-billing, stark-mod-client-funds, stark-mod-reports) ══
   Look only. Money keeps tabular numerals and right-aligned amounts. Bills / Not yet billed / Inbound
   counts / Client funds and the report kinds are sections of their page: underlined tabs. Plain
   fields (month, client, rate cards, counts, report dates) become the design-system field.
   Scoped to #billingView, #reportsView and their page header. */
.workspace:has(>#billingView:not([hidden])) .page-header,.workspace:has(>#reportsView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#billingView:not([hidden])) .page-header h1,.workspace:has(>#reportsView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#billingView:not([hidden])) .page-header p,.workspace:has(>#reportsView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#billingView:not([hidden])) .header-actions .button,.workspace:has(>#reportsView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
:is(#billingView,#reportsView)>.inv-bar{min-height:56px;padding:var(--st-space-1) var(--st-space-4);gap:var(--st-space-3);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#billingView,#reportsView)>.inv-bar>.inv-tabs{align-self:stretch;flex-wrap:wrap;gap:0 var(--st-space-5);padding:0;border-radius:0;background:transparent}
:is(#billingView,#reportsView)>.inv-bar .inv-tab{min-height:var(--st-control-lg);padding:0 var(--st-space-1);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
:is(#billingView,#reportsView)>.inv-bar .inv-tab:hover{color:var(--st-ink)}
:is(#billingView,#reportsView)>.inv-bar .inv-tab.active{border-bottom-color:var(--st-blue-600);color:var(--st-blue-600)}
#reportsView>.inv-bar.rp-filters{min-height:0;margin-top:var(--st-space-3);padding:var(--st-space-3) var(--st-space-4)}
#billingView>.inv-bar>.inv-tabs{gap:0 var(--st-space-3)}
#billingView>.inv-bar #blClient{width:auto;max-width:140px}
#billingView>.inv-bar .bl-period input{width:168px}
/* Fields. */
:is(#billingView,#reportsView) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){height:var(--st-control-md);min-width:0;max-width:100%;padding:0 var(--st-space-3);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-ink);font-size:var(--st-text-md);font-weight:var(--st-weight-regular)}
:is(#billingView,#reportsView) textarea{border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
:is(#billingView,#reportsView) :is(input,select,textarea):focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
:is(#billingView,#reportsView) :is(.bl-period,.rp-field,.bl-rate,.settings-field-grid label){color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#billingView .bl-rate small,#billingView .bl-rate em{color:var(--st-muted);font-size:var(--st-text-xs)}
#billingView .bl-rate.own :is(input,select){border-color:var(--st-blue-600);background:var(--st-blue-50)}
#billingView .bl-count{width:84px;text-align:right;font-variant-numeric:tabular-nums}
:is(#billingView,#reportsView) .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
:is(#billingView,#reportsView)>.inv-bar .button,#billingView .bl-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* Cards, notices, report tiles and charts. */
:is(#billingView,#reportsView) :is(.table-card,.settings-panel,.rp-section,.rp-chart,.bl-bill-head){border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#billingView .bl-bill-head h2{font-size:var(--st-text-xl);color:var(--st-ink)}
#billingView .bl-total small{color:var(--st-muted);font-size:var(--st-text-xs)}
#billingView .bl-total strong{font-size:var(--st-text-2xl);font-variant-numeric:tabular-nums}
#billingView .bl-attention{border-color:var(--st-warning);border-radius:var(--st-radius-lg);background:var(--st-warning-soft);color:var(--st-warning);font-size:var(--st-text-sm)}
:is(#billingView,#reportsView) :is(.bl-summary,.bl-card-note,.rp-period,.rp-note,.operation-empty,.subtext){color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#billingView,#reportsView) :is(.bl-lines-title,.rp-section h3,.cf-h){color:var(--st-ink);font-size:var(--st-text-md)}
#reportsView .rp-card{gap:var(--st-space-1);padding:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#reportsView .rp-card small{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-semibold)}
#reportsView .rp-card strong{color:var(--st-ink);font-size:var(--st-text-2xl);font-variant-numeric:tabular-nums}
#reportsView .rp-chart figcaption{color:var(--st-ink);font-size:var(--st-text-sm)}
#reportsView .rp-s0{background:var(--st-blue-600)}
#reportsView .rp-s1{background:var(--st-success)}
/* Tables: amounts right-aligned in tabular numerals; 52px rows for bills, compact 40px for reports. */
:is(#billingView,#reportsView) .inv-table th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
#billingView .inv-table td{height:52px;padding:6px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
#reportsView .inv-table td{height:40px;padding:4px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
:is(#billingView,#reportsView) .inv-table tbody tr:hover{background:var(--st-hover)}
:is(#billingView,#reportsView) :is(td.num,th.num,.num){text-align:right;font-variant-numeric:tabular-nums}
:is(#billingView,#reportsView) :is(.bl-total-row td,tfoot td){font-weight:var(--st-weight-bold)}
/* Chips: draft and void grey, issued blue (awaiting payment), written off green (settled), needs counts / below limit amber. */
:is(#billingView,#reportsView) .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
#billingView .inv-chip.good{background:var(--st-success-soft);color:var(--st-success)}
#billingView .inv-chip.off{background:var(--st-warning-soft);color:var(--st-warning)}
#billingView .inv-chip.bl-s-issued{background:var(--st-info-soft);color:var(--st-info)}
#billingView .inv-chip.bl-s-written_off{background:var(--st-success-soft);color:var(--st-success)}
#billingView .inv-chip:is(.bl-s-draft,.bl-s-void){background:var(--st-neutral-soft);color:var(--st-neutral)}
:is(#billingView,#reportsView) .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple)}
@media(max-width:760px){
.workspace:has(>#billingView:not([hidden])) .page-header h1,.workspace:has(>#reportsView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
:is(#billingView,#reportsView)>.inv-bar{padding:var(--st-space-1) var(--st-space-3) var(--st-space-2)}
:is(#billingView,#reportsView)>.inv-bar>.inv-tabs{gap:0 var(--st-space-3)}
:is(#billingView,#reportsView)>.inv-bar .inv-tab{flex:1 1 auto;font-size:var(--st-text-sm)}
#billingView>.inv-bar #blClient,#billingView>.inv-bar .bl-period{flex:1 1 100%;max-width:none}
#billingView>.inv-bar .bl-period input{flex:1;width:auto}
:is(#billingView,#reportsView) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){min-height:var(--st-control-lg);font-size:16px}
:is(#billingView,#reportsView) .inv-table td{font-size:14px}
}
/* ══ end Billing and Reports ══ */

/* ══ Settings on the design system (stark-mod-ui-design; each section has its own owner, listed in docs/AI_HANDOFF.md) ══
   Look only: the shell (section navigation, pane headers) and the parts every section shares (panels,
   setting rows, field grids, lists, tables, form actions, chips). Section-specific pieces (connection
   cards, rate cards, watermark editor) keep their own look until their owner's turn. Every id,
   data- attribute and handler is unchanged. Scoped to #settingsView and the page header. */
.workspace:has(>#settingsView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#settingsView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#settingsView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#settingsView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
/* Section navigation: a card of sections, the active one in Stark blue with a bar at the left. */
#settingsView .settings-nav{padding:var(--st-space-2) 0;border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#settingsView .settings-nav-heading{padding:var(--st-space-3) var(--st-space-4) var(--st-space-1);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.06em}
#settingsView .settings-nav-gap{border-top-color:var(--st-line)}
#settingsView .settings-nav-item{gap:2px;padding:var(--st-space-2) var(--st-space-4);color:var(--st-ink-2)}
#settingsView .settings-nav-item:hover{background:var(--st-hover)}
#settingsView .settings-nav-item strong{font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
#settingsView .settings-nav-item small{color:var(--st-muted);font-size:var(--st-text-xs)}
#settingsView .settings-nav-item.active{border-left-color:var(--st-blue-600);background:var(--st-blue-50);color:var(--st-blue-600)}
#settingsView .settings-nav-item.active small{color:var(--st-blue-700)}
/* A section: its header, then panels. */
#settingsView .settings-pane-header{margin-bottom:var(--st-space-4)}
#settingsView .settings-pane-header h2{font-size:var(--st-text-xl);line-height:var(--st-leading-tight);color:var(--st-ink)}
#settingsView :is(.settings-pane-header p,.settings-panel-header p,.settings-setting-row p){color:var(--st-muted);font-size:var(--st-text-sm);line-height:var(--st-leading)}
#settingsView .settings-panel{margin-bottom:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#settingsView .settings-panel-header{padding:var(--st-space-3) var(--st-space-4);border-bottom-color:var(--st-line);background:var(--st-surface-2)}
#settingsView :is(.settings-panel h3,.settings-setting-row h3){color:var(--st-ink);font-size:var(--st-text-md);font-weight:var(--st-weight-bold)}
#settingsView .settings-setting-row{padding:var(--st-space-4);border-top-color:var(--st-line)}
#settingsView .settings-control{color:var(--st-muted);font-size:var(--st-text-xs)}
#settingsView .settings-list-row{min-height:64px;padding:var(--st-space-3) var(--st-space-4);border-top-color:var(--st-line)}
#settingsView .settings-list-row:hover{background:var(--st-hover)}
#settingsView .settings-list-row strong{color:var(--st-ink);font-size:var(--st-text-md)}
#settingsView .settings-list-row small{color:var(--st-muted);font-size:var(--st-text-sm)}
#settingsView :is(.settings-list-empty,.operation-empty,.inv-hint){color:var(--st-muted);font-size:var(--st-text-sm)}
#settingsView .settings-form-actions{gap:var(--st-space-2);padding:var(--st-space-3) var(--st-space-4);border-top-color:var(--st-line);background:var(--st-surface-2)}
#settingsView .settings-form-actions span{color:var(--st-success);font-size:var(--st-text-sm)}
/* Field grids and every plain field in Settings. */
#settingsView .settings-field-grid{gap:var(--st-space-4);padding:var(--st-space-4)}
#settingsView .settings-field-grid label{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#settingsView .settings-field-grid label.inv-check{color:var(--st-ink-2);font-size:var(--st-text-sm)}
#settingsView :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]),select){min-height:var(--st-control-md);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-ink);font-size:var(--st-text-md)}
#settingsView textarea{border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
#settingsView :is(input,select,textarea):focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
/* Buttons in the shared parts. */
#settingsView .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
#settingsView :is(.settings-pane-header,.settings-panel-header,.settings-form-actions,.settings-list-actions) .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* Tables in Settings: uppercase 12px headers, roomy rows. */
#settingsView :is(.settings-reference-table,.channel-table,.inv-table) th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
#settingsView :is(.settings-reference-table,.channel-table,.inv-table) td{padding:10px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
#settingsView :is(.settings-reference-table,.channel-table,.inv-table) tbody tr:hover{background:var(--st-hover)}
#settingsView .subtext{color:var(--st-muted);font-size:var(--st-text-xs)}
/* Chips: on / OK / active green, a problem red, off or not offered grey. */
#settingsView .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
#settingsView .inv-chip.good{background:var(--st-success-soft);color:var(--st-success)}
#settingsView .inv-chip.off{background:var(--st-danger-soft);color:var(--st-danger)}
#settingsView .inv-chip.inv-s-idle{background:var(--st-neutral-soft);color:var(--st-neutral)}
#settingsView .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple)}
@media(max-width:760px){
.workspace:has(>#settingsView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#settingsView .settings-nav{padding:0}
#settingsView .settings-nav-item.active{border-bottom-color:var(--st-blue-600)}
#settingsView .settings-field-grid,#settingsView .settings-setting-row{padding:var(--st-space-3)}
#settingsView :is(.settings-pane-header,.settings-panel-header) p a{display:inline-flex;align-items:center;min-height:var(--st-control-md)}
#settingsView :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]),select,textarea){min-height:var(--st-control-lg);font-size:16px}
}
/* ══ end Settings ══ */

/* ══ Freight, Virtual warehouse and Tickets on the design system (stark-mod-ui-design; owners stark-mod-freight, stark-mod-virtual-warehouse, stark-mod-tickets) ══
   Look only: their stage filters as underlined tabs, plain fields as the design-system field, lists in
   one card with compact 40px rows, records as cards, chips by meaning. Every id, data- attribute and
   handler is unchanged. Scoped to the three views and their page header. */
.workspace:has(>#freightView:not([hidden])) .page-header,.workspace:has(>#virtualwhView:not([hidden])) .page-header,.workspace:has(>#ticketsView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#freightView:not([hidden])) .page-header h1,.workspace:has(>#virtualwhView:not([hidden])) .page-header h1,.workspace:has(>#ticketsView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#freightView:not([hidden])) .page-header p,.workspace:has(>#virtualwhView:not([hidden])) .page-header p,.workspace:has(>#ticketsView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#freightView:not([hidden])) .header-actions .button,.workspace:has(>#virtualwhView:not([hidden])) .header-actions .button,.workspace:has(>#ticketsView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar{min-height:56px;padding:var(--st-space-1) var(--st-space-4);gap:var(--st-space-2) var(--st-space-3);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar>.inv-tabs{align-self:stretch;flex-wrap:wrap;gap:0 var(--st-space-4);padding:0;border-radius:0;background:transparent}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar .inv-tab{min-height:var(--st-control-lg);padding:0 var(--st-space-1);border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--st-muted);font-size:var(--st-text-md);font-weight:var(--st-weight-semibold)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar .inv-tab:hover{color:var(--st-ink)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar .inv-tab.active{border-bottom-color:var(--st-blue-600);color:var(--st-blue-600)}
/* Fields. */
:is(#freightView,#virtualwhView,#ticketsView) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){height:var(--st-control-md);min-width:0;max-width:100%;padding:0 var(--st-space-3);border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-ink);font-size:var(--st-text-md);font-weight:var(--st-weight-regular)}
:is(#freightView,#virtualwhView,#ticketsView) textarea{border:1px solid var(--st-line-strong);border-radius:var(--st-radius-md);color:var(--st-ink);font-size:var(--st-text-md)}
:is(#freightView,#virtualwhView,#ticketsView) :is(input,select,textarea):focus{outline:0;border-color:var(--st-blue-600);box-shadow:var(--st-focus)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar :is(#frSearch,#vwSearch,#tkSearch){width:min(220px,100%)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar select{width:auto;max-width:170px}
#virtualwhView .vw-scan-bar input:not([type=checkbox]):not([type=radio]):not([type=file]){height:var(--st-control-lg);border:2px solid var(--st-blue-600);font-family:var(--st-font-mono);font-size:17px}
:is(#freightView,#virtualwhView,#ticketsView) :is(.settings-field-grid label,.fr-pallet-grid label){color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
:is(#freightView,#virtualwhView,#ticketsView) .button{border-radius:var(--st-radius-md);font-weight:var(--st-weight-semibold)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar .button{height:var(--st-control-md);padding:0 var(--st-space-4);font-size:var(--st-text-sm)}
/* Lists: one card, compact 40px rows. Records: cards. */
:is(#freightView,#virtualwhView,#ticketsView) :is(.table-card,.settings-panel,.fr-card,.bl-bill-head){border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#freightView .fr-pallet{border-color:var(--st-line);border-radius:var(--st-radius-lg);background:var(--st-surface-2)}
:is(#freightView,#virtualwhView,#ticketsView) .bl-bill-head h2{font-size:var(--st-text-xl);color:var(--st-ink)}
:is(#freightView,#virtualwhView,#ticketsView) :is(.fr-card h3,.settings-panel h3){color:var(--st-ink);font-size:var(--st-text-md)}
:is(#freightView,#virtualwhView,#ticketsView) .inv-table th{height:40px;padding:0 var(--st-space-3);background:var(--st-surface-2);border-bottom:1px solid var(--st-line);color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold);letter-spacing:.04em;text-transform:uppercase}
:is(#freightView,#virtualwhView,#ticketsView) .inv-table td{height:40px;padding:4px var(--st-space-3);border-bottom:1px solid var(--st-line);font-size:var(--st-text-md);line-height:1.35}
:is(#freightView,#virtualwhView,#ticketsView) .inv-table tbody tr:hover{background:var(--st-hover)}
:is(#freightView,#virtualwhView,#ticketsView) :is(td.num,th.num,.num){text-align:right;font-variant-numeric:tabular-nums}
:is(#freightView,#virtualwhView,#ticketsView) :is(.subtext,.operation-empty,.inv-hint){color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#freightView,#virtualwhView,#ticketsView) .inv-table .subtext{font-size:var(--st-text-xs)}
#ticketsView .tk-msg{border-color:var(--st-line);border-radius:var(--st-radius-lg)}
/* Chips: blue in progress, green done, amber needs the warehouse (or a short pick), grey cancelled or waiting on the client, purple the Virtual mark. */
:is(#freightView,#virtualwhView,#ticketsView) .inv-chip{display:inline-flex;align-items:center;height:24px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold);line-height:1;white-space:nowrap}
:is(#freightView,#virtualwhView,#ticketsView) .inv-chip.good{background:var(--st-success-soft);color:var(--st-success)}
:is(#freightView,#virtualwhView,#ticketsView) .inv-chip.warn{background:var(--st-warning-soft);color:var(--st-warning)}
:is(#freightView,#virtualwhView) .inv-chip.warn{background:var(--st-info-soft);color:var(--st-info)}
:is(#freightView,#virtualwhView,#ticketsView) .inv-chip.off{background:var(--st-warning-soft);color:var(--st-warning)}
:is(#freightView,#virtualwhView) .inv-chip:is(.fr-s-open,.vw-s-expected,.vw-s-received){background:var(--st-info-soft);color:var(--st-info)}
:is(#freightView,#virtualwhView) .inv-chip:is(.fr-s-shipped,.vw-s-shipped){background:var(--st-success-soft);color:var(--st-success)}
:is(#freightView,#virtualwhView) .inv-chip:is(.fr-s-cancelled,.vw-s-cancelled){background:var(--st-neutral-soft);color:var(--st-neutral)}
#virtualwhView .inv-chip.vw-chip{background:var(--st-purple-soft);color:var(--st-purple)}
:is(#freightView,#virtualwhView,#ticketsView) .client-chip{border-radius:var(--st-radius-pill);background:var(--st-purple-soft);color:var(--st-purple)}
@media(max-width:760px){
.workspace:has(>#freightView:not([hidden])) .page-header h1,.workspace:has(>#virtualwhView:not([hidden])) .page-header h1,.workspace:has(>#ticketsView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar{padding:var(--st-space-1) var(--st-space-3) var(--st-space-2)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar>.inv-tabs{gap:0 var(--st-space-2)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar .inv-tab{flex:1 1 auto;font-size:var(--st-text-sm)}
:is(#freightView,#virtualwhView,#ticketsView)>.inv-bar :is(input,select){flex:1 1 100%;width:100%;max-width:none}
:is(#freightView,#virtualwhView,#ticketsView) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){min-height:var(--st-control-lg);font-size:16px}
#virtualwhView .vw-scan-bar input:not([type=checkbox]):not([type=radio]):not([type=file]){font-size:17px}
:is(#freightView,#virtualwhView,#ticketsView) .inv-table td{font-size:14px}
}
/* ══ end Freight, Virtual warehouse and Tickets ══ */

/* ══ Connections and the last Settings pieces on the design system (stark-mod-ui-design; final rollout release) ══
   Look only: the Connections page and its connection cards, the add-connection wizard and connection
   test windows, Settings' connection states, the billing rate cards and the label watermark editor.
   Readable sizes (several were 8–11px), token colours, corners and shadows; every id, data- attribute
   and handler unchanged. Scoped to #connectionsView and its header, #settingsView, and the
   connection windows (#addConnectionBackdrop, #connectionTestBackdrop). */
.workspace:has(>#connectionsView:not([hidden])) .page-header{align-items:flex-end;gap:var(--st-space-4);margin-bottom:var(--st-space-5)}
.workspace:has(>#connectionsView:not([hidden])) .page-header h1{margin:0;font-size:var(--st-text-2xl);line-height:var(--st-leading-tight);font-weight:var(--st-weight-bold);color:var(--st-ink)}
.workspace:has(>#connectionsView:not([hidden])) .page-header p{margin:var(--st-space-1) 0 0;font-size:var(--st-text-md);color:var(--st-muted)}
.workspace:has(>#connectionsView:not([hidden])) .header-actions .button{height:var(--st-control-md);padding:0 var(--st-space-4);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
/* The Connections page and its cards (also in Settings → Connections). */
#connectionsView{padding:var(--st-space-5);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#connectionsView .connections-intro h2{color:var(--st-ink);font-size:var(--st-text-lg)}
#connectionsView .connections-intro p{color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#connectionsView,#settingsView) .connection-card{padding:var(--st-space-4);border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
:is(#connectionsView,#settingsView) .connection-card h3{color:var(--st-ink);font-size:var(--st-text-md)}
:is(#connectionsView,#settingsView) .connection-card-head span{color:var(--st-muted);font-size:var(--st-text-xs)}
:is(#connectionsView,#settingsView) .connection-status{display:inline-flex;align-items:center;height:22px;padding:0 var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-success-soft);color:var(--st-success);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
:is(#connectionsView,#settingsView) .connection-status.error{background:var(--st-danger-soft);color:var(--st-danger)}
:is(#connectionsView,#settingsView) .connection-status.disabled{background:var(--st-neutral-soft);color:var(--st-neutral)}
:is(#connectionsView,#settingsView) .capability-list span{padding:3px var(--st-space-2);border-radius:var(--st-radius-pill);background:var(--st-neutral-soft);color:var(--st-neutral);font-size:var(--st-text-xs)}
:is(#connectionsView,#settingsView) .connection-meta{border-top-color:var(--st-line);color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#connectionsView,#settingsView) .connection-card .button{height:var(--st-control-md);padding:0 var(--st-space-3);border-radius:var(--st-radius-md);font-size:var(--st-text-sm);font-weight:var(--st-weight-semibold)}
#settingsView .settings-connection-state{color:var(--st-success);font-size:var(--st-text-xs)}
#settingsView .settings-connection-state.error{color:var(--st-danger)}
#settingsView .settings-connection-state.disabled{color:var(--st-neutral)}
:is(#connectionsView,#settingsView) .settings-connection-group-head small{color:var(--st-muted);font-size:var(--st-text-sm)}
:is(#connectionsView,#settingsView) .settings-connection-group-head strong{color:var(--st-ink);font-size:var(--st-text-md)}
/* The add-connection wizard and the connection test (windows only Connections opens). */
#addConnectionBackdrop .connection-wizard-progress{border-bottom-color:var(--st-line);background:var(--st-surface-2)}
#addConnectionBackdrop .connection-wizard-progress span{color:var(--st-muted);font-size:var(--st-text-sm)}
#addConnectionBackdrop .connection-wizard-progress span.active{color:var(--st-blue-600)}
#addConnectionBackdrop .connection-wizard-progress span.active i{background:var(--st-blue-600)}
#addConnectionBackdrop .connection-wizard-progress span.done{color:var(--st-success)}
#addConnectionBackdrop .connection-wizard-progress span.done i{background:var(--st-success-soft);color:var(--st-success)}
#addConnectionBackdrop :is(.connection-category,.connection-provider){border-color:var(--st-line-strong);border-radius:var(--st-radius-lg)}
#addConnectionBackdrop :is(.connection-category,.connection-provider):hover{border-color:var(--st-blue-600);background:var(--st-blue-50)}
#addConnectionBackdrop :is(.connection-category,.connection-provider).active{border-color:var(--st-blue-600);background:var(--st-blue-50);box-shadow:0 0 0 1px var(--st-blue-600)}
#addConnectionBackdrop :is(.connection-category,.connection-provider)>span{border-radius:var(--st-radius-md);background:var(--st-navy-900);font-size:var(--st-text-xs)}
#addConnectionBackdrop :is(.connection-category,.connection-provider) strong{color:var(--st-ink);font-size:var(--st-text-md)}
#addConnectionBackdrop :is(.connection-category,.connection-provider) small{color:var(--st-muted);font-size:var(--st-text-sm)}
#addConnectionBackdrop :is(.connection-category,.connection-provider) b{color:var(--st-blue-600);font-size:var(--st-text-sm)}
#addConnectionBackdrop .connection-provider-search{border-color:var(--st-line-strong);border-radius:var(--st-radius-md)}
#addConnectionBackdrop .connection-provider-search input{font-size:var(--st-text-md)}
#addConnectionBackdrop .connection-provider-empty{border-color:var(--st-line-strong);border-radius:var(--st-radius-lg)}
#addConnectionBackdrop .connection-provider-empty span{font-size:var(--st-text-sm)}
#addConnectionBackdrop .connection-wizard-back{border-color:var(--st-line-strong);border-radius:var(--st-radius-md)}
#connectionTestBackdrop .connection-test-steps>div{border-color:var(--st-line);border-radius:var(--st-radius-lg)}
#connectionTestBackdrop .connection-test-steps strong{color:var(--st-ink-2);font-size:var(--st-text-sm)}
#connectionTestBackdrop .connection-test-steps small{font-size:var(--st-text-xs)}
#connectionTestBackdrop .connection-test-steps>div.active{border-color:var(--st-blue-100);background:var(--st-blue-50)}
#connectionTestBackdrop .connection-test-steps>div.failed{border-color:var(--st-danger);background:var(--st-danger-soft)}
/* Settings → Billing: the rate cards. */
#settingsView .bl-rate-grid{gap:var(--st-space-4);padding:var(--st-space-4)}
#settingsView .bl-rate{color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#settingsView .bl-rate :is(em,small){color:var(--st-muted);font-size:var(--st-text-xs)}
#settingsView .bl-rate.own :is(input,select){border-color:var(--st-blue-600);background:var(--st-blue-50)}
/* Settings → Label watermarks: the editor. */
#settingsView .watermark-presets-panel{border-color:var(--st-line);border-radius:var(--st-radius-lg);box-shadow:var(--st-shadow-sm)}
#settingsView .watermark-presets-panel>header{border-bottom-color:var(--st-line);background:var(--st-surface-2)}
#settingsView .watermark-presets-panel strong{color:var(--st-ink);font-size:var(--st-text-md)}
#settingsView .watermark-presets-panel small{color:var(--st-muted);font-size:var(--st-text-sm)}
#settingsView .watermark-preset-item{border-top-color:var(--st-line)}
#settingsView .watermark-preset-item:hover{background:var(--st-hover)}
#settingsView .watermark-preset-item.active{background:var(--st-blue-50);box-shadow:inset 3px 0 var(--st-blue-600)}
#settingsView .watermark-preset-state{border-radius:var(--st-radius-pill);background:var(--st-success-soft);color:var(--st-success);font-size:var(--st-text-xs);font-weight:var(--st-weight-semibold)}
#settingsView .watermark-preset-state.off{background:var(--st-neutral-soft);color:var(--st-neutral)}
#settingsView :is(.watermark-field-grid label,.watermark-style-grid label,.watermark-token-title,.watermark-element-row label){color:var(--st-muted);font-size:var(--st-text-xs);font-weight:var(--st-weight-bold)}
#settingsView .watermark-field-grid label>small{color:var(--st-muted);font-size:var(--st-text-xs)}
#settingsView :is(.watermark-field-grid,.watermark-style-grid,.watermark-element-row) :is(input:not([type=checkbox]):not([type=color]),select){border-color:var(--st-line-strong);border-radius:var(--st-radius-md);font-size:var(--st-text-md)}
#settingsView .watermark-element-row input:not([type=checkbox]):not([type=color]){height:var(--st-control-md)}
#settingsView .watermark-token{border-color:var(--st-blue-100);border-radius:var(--st-radius-pill);background:var(--st-blue-50);color:var(--st-blue-600);font-size:var(--st-text-xs)}
#settingsView .watermark-element-delete{width:var(--st-control-md);height:var(--st-control-md);border-color:var(--st-danger);border-radius:var(--st-radius-md);color:var(--st-danger)}
#settingsView .watermark-preview-tools>strong{color:var(--st-ink);font-size:var(--st-text-sm)}
#settingsView .watermark-preview-tools .button{height:var(--st-control-md);border-radius:var(--st-radius-md);font-size:var(--st-text-sm)}
#settingsView .watermark-preview-viewport{border-radius:var(--st-radius-lg);background:var(--st-neutral-soft)}
#settingsView .watermark-label-placeholder{color:var(--st-faint);font-size:var(--st-text-sm)}
@media(max-width:760px){
.workspace:has(>#connectionsView:not([hidden])) .page-header h1{font-size:var(--st-text-xl)}
#connectionsView{padding:var(--st-space-3)}
#addConnectionBackdrop .connection-provider-search input{font-size:16px}
#settingsView .watermark-element-row input:not([type=checkbox]):not([type=color]){height:auto;min-height:var(--st-control-lg);font-size:16px}
}
/* ══ end Connections and the last Settings pieces ══ */

/* stark-int-amazon: the owner's steps at the top of a channel's connect window (Amazon). */
.channel-steps{margin:0 0 14px;padding:10px 12px;border:1px solid var(--st-line);border-radius:var(--st-radius-md);background:#f7f9fc;font-size:var(--st-text-sm);color:var(--st-ink)}
.channel-steps summary{cursor:pointer;font-weight:var(--st-weight-semibold)}
.channel-steps ol{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;color:var(--st-muted);overflow-wrap:anywhere}

/* ══ WMS → Outbound → Parcel: status tabs with counts, the stage table (stark-mod-outbound, navigation N2) ══
   Scoped to #outboundView. The tab row scrolls sideways inside itself on a narrow screen; the page never does. */
#outboundView>.inv-bar>.ob-stages{flex:1 1 0;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:var(--st-space-4)}
#outboundView>.inv-bar>.ob-stages .inv-tab{flex:0 0 auto;white-space:nowrap}
#outboundView .ob-count{display:inline-block;min-width:18px;margin-left:2px;padding:0 6px;border-radius:9px;background:var(--st-neutral-soft);color:var(--st-muted);font-size:11px;line-height:18px;text-align:center}
#outboundView .ob-count:empty{display:none}
#outboundView .inv-tab.active .ob-count{background:var(--st-info-soft);color:var(--st-blue-700)}
#outboundView .ob-count.alert{background:#fde8e8;color:#a72e3a}
#outboundView .ob-tab-sep{flex:0 0 1px;align-self:center;height:20px;background:var(--st-line)}
#outboundView .ob-parcel .ob-check{width:36px}
#outboundView .ob-order-link{padding:0;border:0;background:none;font:inherit;cursor:pointer;text-align:left}
#outboundView .ob-why-cell{max-width:340px}
#outboundView .ob-why-text{display:block;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#outboundView .ob-parcel .ob-row-actions{white-space:nowrap;text-align:right}
#outboundView .ob-parcel .ob-verb-head{text-align:right}
.ob-drawer-stage .ob-drawer-why{margin:6px 0 10px;padding-left:18px;font-size:13px;color:#8f2430}
/* ══ Pack & ship bench: scan every item into the box (stark-mod-outbound, user review R3-1 / R3-14) ══
   The main button (Packed / Ship) sits at the top right of the card, so it is on screen without
   scrolling on a tablet; on a tablet or phone the Pack & ship tab comes first in the tab row. */
#outboundView .ob-bench-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--st-space-3);flex-wrap:wrap}
#outboundView .ob-bench-head .ob-bench-title{flex:1 1 220px;min-width:0}
#outboundView .ob-bench-main{display:flex;gap:var(--st-space-2)}
#outboundView .ob-bench-main .button{min-height:48px;min-width:140px;font-size:var(--st-text-lg)}
#outboundView .ob-bench-main .button:disabled{opacity:.45;cursor:not-allowed}
#outboundView .ob-pack-progress{display:flex;align-items:baseline;gap:var(--st-space-2);flex-wrap:wrap;padding:var(--st-space-2) var(--st-space-3);border-radius:var(--st-radius-md);background:var(--st-surface-2)}
#outboundView .ob-pack-progress.done{background:var(--st-success-soft);color:var(--st-success)}
#outboundView .ob-pack-scan{display:grid;grid-template-columns:minmax(160px,1fr) 84px auto;gap:var(--st-space-2);align-items:end}
#outboundView .ob-pack-scan label{display:grid;gap:4px;font-size:var(--st-text-sm);color:var(--st-muted)}
#outboundView .ob-pack-scan input{min-height:44px;font-size:var(--st-text-lg)}
#outboundView .ob-pack-scan .button{min-height:44px}
#outboundView .ob-pack-feedback:empty{display:none}
#outboundView .ob-pack-refused{display:block;padding:var(--st-space-2) var(--st-space-3);border-radius:var(--st-radius-md);background:var(--st-danger-soft);color:var(--st-danger-700);font-weight:var(--st-weight-semibold)}
#outboundView .ob-bench-card.ob-pack-wrong{border-color:var(--st-danger);box-shadow:0 0 0 2px var(--st-danger-soft)}
#outboundView .ob-pack-table tr.ob-pack-done td{background:var(--st-success-soft)}
#outboundView .ob-pack-tick{color:var(--st-success);font-weight:var(--st-weight-bold)}
#outboundView .ob-pack-override-note{margin:0;padding:var(--st-space-2) var(--st-space-3);border-radius:var(--st-radius-md);background:var(--st-warning-soft);color:var(--st-warning);font-size:var(--st-text-sm)}
#outboundView .ob-bench-queue{margin-top:var(--st-space-3)}
@media(max-width:1100px){
  #outboundView>.inv-bar>.ob-stages [data-ob-tab="bench"]{order:-3;position:sticky;left:0;z-index:1;padding-right:var(--st-space-3);background:var(--st-surface,#fff);box-shadow:8px 0 8px -8px rgba(23,38,60,.18)}
  #outboundView>.inv-bar>.ob-stages [data-ob-tab="lists"]{order:-2}
  #outboundView>.inv-bar>.ob-stages .ob-tab-sep{order:-1}
}
@media(max-width:560px){
  #outboundView .ob-pack-scan{grid-template-columns:1fr 72px}
  #outboundView .ob-pack-scan .button{grid-column:1 / -1}
  #outboundView .ob-bench-main{flex:1 1 100%}
  #outboundView .ob-bench-main .button{flex:1 1 auto}
  #outboundView .ob-pack-table th,#outboundView .ob-pack-table td{padding-left:6px;padding-right:6px}
}
@media(max-width:760px){
  #outboundView>.inv-bar>.ob-stages{flex:1 1 100%}
  #outboundView>.inv-bar>.ob-stages .inv-tab{flex:0 0 auto}
  #outboundView .ob-parcel-filters .button{flex:1 1 auto}
  #outboundView .ob-order-link{min-height:36px}
}
/* ══ Navigation: WMS | TMS (stark-mod-ui-design; docs/agents/contracts/navigation.md §2–§3) ══
   The sidebar shows one part at a time (.sidebar[data-part], set by app.js); the shared group shows under
   both, below the divider. Inbound and Outbound are expandable groups. On a phone the bottom bar stays as it
   was (Orders, Batches, Verify, Scan out, More) in both parts; More opens the switch, the chosen part's
   other pages and the shared ones. */
.side-part,.side-nav-sub{display:flex;flex-direction:column;gap:2px}
.nav-part-switch{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:0 0 10px;padding:3px;border-radius:8px;background:rgba(255,255,255,.08)}
.nav-part-btn{min-height:36px;padding:0 6px;border:0;border-radius:6px;background:transparent;color:#b9c7da;font-size:13px;font-weight:800;letter-spacing:.06em;cursor:pointer}
.nav-part-btn:hover{background:rgba(255,255,255,.07);color:#fff}
.nav-part-btn.active{background:#fff;color:var(--navy)}
.nav-part-btn:focus-visible,.side-nav-group-toggle:focus-visible{outline:2px solid #8fb5ff;outline-offset:1px}
.side-nav-divider{height:1px;margin:8px 4px;background:rgba(255,255,255,.12)}
.side-nav-caret{flex:0 0 auto;width:7px;height:7px;margin:0 6px 2px 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.7;transform:rotate(45deg);transition:transform .15s ease}
.side-nav-group.collapsed .side-nav-caret{transform:rotate(-45deg)}
.side-nav-group.collapsed>.side-nav-sub{display:none}
@media(min-width:761px){
  .sidebar[data-part=wms] [data-nav-part=tms],.sidebar[data-part=tms] [data-nav-part=wms]{display:none!important}
  .app:not(.nav-collapsed) .side-nav-sub .side-nav-item{padding-left:24px}
  /* Collapsed sidebar: the switch stays first, its two labels stacked; groups show their pages as icons. */
  .app.nav-collapsed .nav-part-switch{grid-template-columns:1fr}
  .app.nav-collapsed .nav-part-btn{padding:0;font-size:11px;letter-spacing:.02em}
  .app.nav-collapsed .side-nav-group-toggle{display:none}
  .app.nav-collapsed .side-nav-group.collapsed>.side-nav-sub{display:flex}
}
@media(max-width:760px){
  .side-part,.side-nav-group,.side-nav-sub,.side-nav-group.collapsed>.side-nav-sub{display:contents}
  .side-primary .side-nav-group-toggle,.side-nav-divider,.nav-part-switch{display:none}
  .sidebar[data-part=wms] [data-nav-part=tms] .side-nav-item[data-mobile=secondary],.sidebar[data-part=tms] [data-nav-part=wms] .side-nav-item[data-mobile=secondary]{display:none!important}
  .sidebar.more-open .nav-part-switch{display:grid;grid-column:1/-1;grid-row:1;margin:2px 0 4px}
  .sidebar.more-open .nav-part-btn{min-height:40px;font-size:14px}
  /* The bar keeps its order across the parts, and sits below up to four rows of More. */
  .side-primary [data-view=orders]{order:1}.side-primary [data-view=batches]{order:2}.side-primary [data-view=scan]{order:3}.side-primary [data-scan-nav=scanout]{order:4}.side-primary .mobile-more{order:5}
  .sidebar.more-open .side-primary .side-nav-item:not([data-mobile=secondary]){grid-row:6}
}
/* ══ end Navigation ══ */

/* ══ End of day (stark-mod-carriers): TMS → Shipments → End of day — public/v2/end-of-day.js ══ */
#endOfDayView .eod-intro{max-width:880px;margin:0 0 var(--st-space-4);color:var(--st-muted);font-size:var(--st-text-md);line-height:var(--st-leading)}
#endOfDayView .eod-accounts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--st-space-4);margin-bottom:var(--st-space-6)}
#endOfDayView .eod-account{display:flex;flex-direction:column;gap:var(--st-space-2);padding:var(--st-space-4)}
#endOfDayView .eod-account header{font-size:var(--st-text-md);color:var(--st-ink)}
#endOfDayView .eod-account footer{display:flex;gap:var(--st-space-2);justify-content:flex-end;margin-top:auto;padding-top:var(--st-space-2)}
#endOfDayView .eod-waiting{margin:0;color:var(--st-ink-2)}
#endOfDayView .eod-count{font-size:var(--st-text-xl);font-weight:var(--st-weight-bold);color:var(--st-ink)}
#endOfDayView .eod-note,#invDialogBody .eod-note{margin:0;color:var(--st-muted);font-size:var(--st-text-sm)}
#endOfDayView .eod-note.warn,#invDialogBody .eod-note.warn{color:var(--st-warning)}
#endOfDayView .eod-heading{margin:0 0 var(--st-space-3);font-size:var(--st-text-lg)}
#endOfDayView .eod-actions{display:flex;gap:var(--st-space-2);justify-content:flex-end;flex-wrap:wrap}
#endOfDayView .eod-error,#invDialogBody .eod-error{color:var(--st-danger)}
#invDialogBody .eod-dialog-table{max-height:55vh;overflow:auto;margin-top:var(--st-space-3)}
@media (max-width:640px){#endOfDayView .eod-accounts{grid-template-columns:1fr}#endOfDayView .st-table td,#endOfDayView .st-table th{white-space:normal}}
/* ══ end End of day ══ */
/* ══ Carriers and rules (stark-mod-carriers): TMS → Carriers and rules — public/v2/shipping-rules.js ══ */
#carriersRulesView .cr-tabs{margin-bottom:var(--st-space-4);border-bottom:1px solid var(--st-line);overflow-x:auto}
#carriersRulesView .cr-intro{max-width:880px;margin:0 0 var(--st-space-4);color:var(--st-muted);font-size:var(--st-text-md);line-height:var(--st-leading)}
#carriersRulesView .sr-toolbar{display:flex;flex-wrap:wrap;gap:var(--st-space-3);align-items:center;justify-content:space-between;margin-bottom:var(--st-space-4)}
#carriersRulesView .sr-test,#invDialogBody .sr-test{display:flex;gap:var(--st-space-2);flex-wrap:wrap;align-items:center}
#carriersRulesView .sr-test .st-input,#invDialogBody .sr-test .st-input{width:200px;max-width:100%}
#carriersRulesView .sr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--st-space-2)}
#carriersRulesView .sr-rule{display:flex;align-items:flex-start;gap:var(--st-space-3);padding:var(--st-space-3) var(--st-space-4)}
#carriersRulesView .sr-rule.off{opacity:.65}
#carriersRulesView .sr-rule.dragging{opacity:.4}
#carriersRulesView .sr-rule.drop{box-shadow:0 -3px 0 var(--st-blue-600)}
#carriersRulesView .sr-handle{cursor:grab;color:var(--st-muted);user-select:none;padding-top:2px}
#carriersRulesView .sr-pos{min-width:1.5em;font-weight:var(--st-weight-bold);color:var(--st-muted)}
#carriersRulesView .sr-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#carriersRulesView .sr-line{color:var(--st-ink-2);font-size:var(--st-text-sm);overflow-wrap:anywhere}
#carriersRulesView .sr-line b{color:var(--st-muted);font-weight:var(--st-weight-semibold);margin-right:4px}
#carriersRulesView .sr-actions{display:flex;gap:var(--st-space-2);align-items:center;flex-wrap:wrap;justify-content:flex-end}
#carriersRulesView .sr-preview,#invDialogBody .sr-preview{padding:var(--st-space-4);margin-bottom:var(--st-space-4)}
#carriersRulesView .sr-preview p,#invDialogBody .sr-preview p{margin:var(--st-space-2) 0}
#invDialogBody .sr-h{margin:var(--st-space-4) 0 var(--st-space-2);font-size:var(--st-text-md)}
#invDialogBody .sr-flags{display:flex;flex-wrap:wrap;gap:var(--st-space-4)}
#invDialogBody .sr-checks{display:flex;flex-direction:column;max-height:150px;overflow:auto;border:1px solid var(--st-line);border-radius:var(--st-radius-md);padding:var(--st-space-1) var(--st-space-2)}
#invDialogBody .sr-range{display:flex;gap:var(--st-space-2);align-items:center}
#invDialogBody .sr-range .st-input{min-width:0;flex:1}
#invDialogBody .sr-sub{display:contents}
#invDialogBody .sr-sub[hidden]{display:none}
@media (max-width:640px){#carriersRulesView .sr-rule{flex-wrap:wrap}#carriersRulesView .sr-actions{width:100%;justify-content:flex-start}#carriersRulesView .sr-test .st-input{width:100%}}
/* Compare rates in the order drawer: carriers not in the comparison, one plain line each (R3-6) */
#rateResults .rate-unavailable{margin-top:var(--st-space-3);padding:var(--st-space-2) var(--st-space-3);border-radius:var(--st-radius-sm);background:var(--st-neutral-soft);color:var(--st-muted);font-size:var(--st-text-xs)}
#rateResults .rate-unavailable-title{font-weight:700;color:var(--st-ink-2);margin-bottom:4px}
#rateResults .rate-unavailable ul{margin:0;padding-left:18px}
#rateResults .rate-unavailable li{margin:2px 0;overflow-wrap:anywhere}
/* ══ end Carriers and rules ══ */
/* ══ Orders workspace: tabs, hold reasons, order tags (stark-mod-orders) ══ */
.order-queue-tab.order-queue-sub{font-size:var(--st-text-xs,12px);color:var(--st-muted,#64748b);padding-left:6px;padding-right:6px}
.order-queue-tab.order-queue-sub:before{content:'·';margin-right:6px;color:var(--st-line-strong,#cbd5e1)}
.order-ws-filter{height:var(--st-control-md,36px);max-width:200px;padding:0 8px;border:1px solid var(--st-line-strong,#cbd5e1);border-radius:var(--st-radius-md,8px);background:var(--st-surface,#fff);color:var(--st-ink,#0f172a);font-size:13px}
.order-ws-filter[hidden]{display:none}
.order-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.order-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.order-tag-grey{background:rgba(100,116,139,.16);color:#475569}
.order-tag-blue{background:rgba(37,99,235,.14);color:#1d4ed8}
.order-tag-green{background:rgba(22,163,74,.14);color:#15803d}
.order-tag-amber{background:rgba(217,119,6,.16);color:#b45309}
.order-tag-red{background:rgba(220,38,38,.14);color:#b91c1c}
.order-tag-purple{background:rgba(124,58,237,.14);color:#6d28d9}
.order-tag-teal{background:rgba(13,148,136,.15);color:#0f766e}
.order-tag-pink{background:rgba(219,39,119,.14);color:#be185d}
@media (prefers-color-scheme:dark){.order-tag-grey{color:#cbd5e1}.order-tag-blue{color:#93c5fd}.order-tag-green{color:#86efac}.order-tag-amber{color:#fcd34d}.order-tag-red{color:#fca5a5}.order-tag-purple{color:#c4b5fd}.order-tag-teal{color:#5eead4}.order-tag-pink{color:#f9a8d4}}
.order-ws-panel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;border:1px solid var(--st-line,#e2e8f0);border-radius:var(--st-radius-md,8px)}
.order-ws-panel .order-tags{margin-top:0}
.order-ws-tags{display:grid;gap:6px;margin-bottom:12px;max-height:280px;overflow:auto}
.order-ws-tag-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px}
@media (max-width:1180px){#workToolbar:has(.order-ws-filter:not([hidden])){flex-wrap:wrap}}
@media (max-width:640px){.order-ws-filter{max-width:140px;font-size:16px}.order-ws-tag-row{grid-template-columns:auto 1fr}.order-ws-tag-row select{grid-column:1/-1}}
.rates-shell{scroll-margin-top:12px}
.rate-count{padding:8px 10px;margin-bottom:6px;border-radius:var(--st-radius-md,6px);background:var(--st-blue-50,#eef4fd);color:var(--st-blue-700,#1555b5);font-weight:700;font-size:13px}
/* ══ end Orders workspace ══ */

/* ── Freight status tabs (stark-mod-freight, navigation N3) ─────────────────────────── */
#freightView .fr-count{display:inline-block;min-width:18px;margin-left:2px;padding:0 6px;border-radius:9px;background:var(--st-neutral-soft);color:var(--st-muted);font-size:11px;line-height:18px;text-align:center}
#freightView .fr-count:empty{display:none}
#freightView .fr-why{display:block;max-width:280px;margin-top:2px;color:var(--st-danger,#b42318);font-size:var(--st-text-xs);white-space:normal}
#freightView .fr-next{white-space:nowrap;text-align:right}
#freightView .fr-number{padding:0;font-size:var(--st-text-md);font-weight:var(--st-weight-bold);color:var(--st-blue-600)}
#freightView .fr-next .button{height:var(--st-control-md);padding:0 var(--st-space-3)}
#freightView .fr-feedback{margin:0 0 var(--st-space-3)}
#freightView .fr-history{margin:var(--st-space-2) 0 0;padding-left:18px;font-size:var(--st-text-xs);color:var(--st-muted)}
#freightView .fr-stage-steps{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 10px}
#freightView .fr-stage-steps span{padding:0 8px;border-radius:9px;background:var(--st-neutral-soft);color:var(--st-muted);font-size:11px;line-height:20px}
#freightView .fr-stage-steps span.on{background:var(--st-blue-600);color:#fff}
