
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{--bg:#f6f7fa;--surface:#fff;--text:#182339;--muted:#68758a;--line:#e7ebf1;--brand:#245f99;--brand-dark:#1b4b7a;--accent-soft:#e9eaec;--accent-subtle:#f3f4f5;--accent-border:#d8dadd;--radius:14px;--shadow:0 4px 20px #24334d05;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,select,input[type=checkbox]{cursor:pointer}button{transition:background .15s,color .15s}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--brand);outline-offset:3px}a{color:inherit;text-decoration:none}svg{width:19px;height:19px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}span[data-icon]{display:inline-flex;align-items:center}h1,h2,h3,p{margin:0}input,select,textarea{border:1px solid #dce2eb;border-radius:8px;padding:10px 12px;background:#fff;color:var(--text);min-height:42px}input[type=checkbox]{accent-color:var(--brand);width:16px;height:16px;min-height:16px;padding:0}select{max-width:100%}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-60px;left:20px;z-index:100;background:#fff;padding:14px}.skip:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);padding:29px 18px 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 11px;font-size:27px;font-weight:750;letter-spacing:-1.3px}.brand-mark{background:var(--brand);color:#fff;border-radius:11px;width:35px;height:35px;display:grid;place-items:center;font-size:28px;line-height:1}.brand-sub{display:block;font-size:8px;letter-spacing:1.3px;font-weight:650;color:var(--muted);margin-top:1px}.beta{font-size:9px;letter-spacing:.5px;background:var(--accent-soft);color:var(--brand);padding:4px 6px;border-radius:5px;margin-left:auto}.workspace{margin:34px 0 29px;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:12px;font-weight:650}.workspace-icon{background:#f0eefa;color:#7c62b0;font-size:13px;width:31px;height:31px;display:grid;place-items:center;border-radius:8px}.workspace div>span{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:4px}.workspace-dot{width:6px;height:6px;background:var(--brand);border-radius:50%;margin-left:auto}.nav-label{font-size:9px;font-weight:650;color:#798497;letter-spacing:1px;padding:0 12px;margin-bottom:12px}.nav-item{width:100%;border:0;background:transparent;color:#667187;display:flex;align-items:center;gap:11px;padding:12px;margin-bottom:6px;border-radius:8px;text-align:left;font-size:12px;font-weight:550;min-height:44px}.nav-item:hover{background:#f5f6fb}.nav-item.active{color:var(--brand);background:var(--accent-soft)}.nav-count{margin-left:auto;font-size:10px;background:#dfe1e4;padding:3px 6px;border-radius:5px}.soon{font-size:9px;color:#8791a2;margin-left:auto}.later{margin-top:29px}.future-modules div{display:flex;gap:11px;align-items:center;padding:12px;color:#8a95a5;font-size:12px}.sidebar-bottom{margin-top:auto}.phase{font-size:11px;padding:16px 12px;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px}.phase>span:last-child{margin-left:auto;color:var(--muted);font-size:10px}.phase-dot{width:6px;height:6px;background:var(--brand);border-radius:50%}.profile{display:flex;gap:10px;padding:17px 8px;border-top:1px solid var(--line);font-size:12px;font-weight:550;align-items:center}.profile small{display:block;color:var(--muted);font-size:10px;margin-top:4px;font-weight:400}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#ecedf6;color:#59678a;font-weight:650}.avatar.small{width:29px;height:29px;font-size:11px}.shell{margin-left:238px;min-height:100vh}.topbar{height:67px;border-bottom:1px solid var(--line);background:#ffffffb0;display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{font-size:12px;color:#7b8799}.breadcrumb span{margin:0 12px;color:#c4cad3}.breadcrumb strong{font-weight:550;color:#536176}.top-right{display:flex;align-items:center;gap:23px}.local-label{font-size:11px;color:#758096;display:flex;align-items:center;gap:7px}.local-label i{width:6px;height:6px;border-radius:50%;background:var(--brand)}main{padding:35px 32px 24px;width:100%;max-width:none;margin:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.eyebrow{color:#8993a5;font-size:9px;font-weight:650;letter-spacing:1.6px;margin-bottom:9px}h1{font-size:29px;font-weight:650;letter-spacing:-.9px}.page-heading p{margin-top:9px;color:var(--muted);font-size:12px}.heading-actions{display:flex;gap:9px}.button{border:1px solid transparent;border-radius:8px;padding:11px 15px;min-height:42px;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button svg{width:15px;height:15px}.primary{color:#fff;background:var(--brand);box-shadow:0 3px 6px #245f9916}.primary:hover{background:var(--brand-dark)}.secondary{border-color:#dce2eb;background:#fff;color:#576479}.secondary:hover{background:#f6f7fc}.compact{padding:8px 12px;min-height:36px}.notice{border:1px solid var(--accent-border);background:var(--accent-subtle);border-radius:9px;display:flex;align-items:center;gap:11px;padding:13px 15px;font-size:11px;color:#62676f;line-height:1.6;margin-bottom:25px}.notice strong{font-weight:600;color:#43474d}.notice svg{width:17px;height:17px;color:var(--brand);flex-shrink:0}.notice-tag{margin-left:auto;font-size:8px;font-weight:650;letter-spacing:.5px;white-space:nowrap;border:1px solid var(--accent-border);padding:3px 7px;border-radius:4px;color:#555b64}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px 20px;box-shadow:var(--shadow)}.stat>div{color:#6a778c;font-size:11px;display:flex;justify-content:space-between;align-items:center}.stat svg{color:#939eb3;width:16px;height:16px}.stat strong{display:block;font-size:29px;font-weight:650;letter-spacing:-1px;margin:13px 0 8px}.stat small{color:#818c9d;font-size:10px}.dot{width:7px;height:7px;border-radius:50%}.blue{background:var(--brand)}.violet{background:#9679d6}.amber{background:#daa34f}.orders-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-top{display:flex;justify-content:space-between;align-items:center;padding:22px 23px 18px;gap:12px}.card-top h2{font-size:14px;font-weight:600;display:flex;align-items:center;gap:9px}.card-top h2 span{background:#f0f2f7;color:#72809a;font-size:10px;padding:3px 7px;border-radius:5px}.card-caption{color:#8a94a4;font-size:10px}.market-tabs{display:flex;gap:7px;overflow-x:auto;padding:0 23px 18px;border-bottom:1px solid var(--line)}.market-tab{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #e3e7ef;border-radius:7px;padding:8px 11px;white-space:nowrap;color:#738096;font-size:11px;min-height:36px}.market-tab.active{color:var(--brand);background:var(--accent-subtle);border-color:var(--accent-border)}.market-tab small{font-size:9px;color:#7e8dab}.market-code{font-size:10px;font-weight:650;letter-spacing:.3px}.filters{padding:17px 23px;display:flex;gap:10px;align-items:center}.search{position:relative;flex:1;display:flex;align-items:center;min-width:190px}.search input{width:100%;padding-left:36px;padding-right:35px;font-size:11px;background:#fbfcfe}.search>span{position:absolute;left:12px;color:#99a4b5}.search svg{width:15px;height:15px}.search kbd{position:absolute;right:12px;color:#9ca6b4;border:1px solid #e3e7ee;border-radius:4px;padding:1px 4px;font-size:10px}.filter-label select{font-size:11px;color:#667388;min-width:155px}.icon-button{border:1px solid #e0e5ed;border-radius:7px;background:#fff;color:#7f8b9e;min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:var(--accent-subtle);color:var(--brand)}.icon-button svg{width:16px;height:16px}.bulk-bar{background:var(--accent-subtle);border-block:1px solid var(--accent-border);padding:10px 23px;display:flex;gap:12px;align-items:center;font-size:11px}.bulk-bar select{min-height:35px;padding:7px;font-size:11px}.text-button{border:0;background:none;color:var(--brand);font-size:12px;padding:10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;letter-spacing:.3px;font-weight:550;color:#8190a6;padding:13px 14px;border-block:1px solid var(--line);background:#fafbfe}td{padding:16px 14px;border-bottom:1px solid #eff1f5;font-size:11px;color:#637087}tbody tr:hover{background:#fbfdfc}tbody tr.selected{background:var(--accent-subtle)}th.check-cell,td.check-cell{padding-left:23px;width:44px}td:last-child{padding-right:20px}.order-number{display:block;color:var(--brand);font-weight:650;font-size:12px;border:0;background:transparent;padding:0;margin-bottom:5px;letter-spacing:.1px}.order-number:hover{text-decoration:underline}.source-number{font-size:9px;color:#8d97a7}.market-pill{display:inline-flex;align-items:center;justify-content:center;background:#f2f4f8;border:1px solid #e6eaf1;border-radius:5px;width:29px;height:23px;font-size:9px;font-weight:650;color:#65738b}.customer{color:#47556d;font-weight:500;max-width:205px;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:9px;font-weight:550}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.status-new{color:var(--brand);background:var(--accent-soft)}.status-in_production{color:#aa7628;background:#fff5e4}.status-ready_to_pack{color:#8360b5;background:#f3edfc}.status-shipped{color:#3a876c;background:var(--accent-soft)}.status-on_hold{color:#ad7130;background:#fff2e7}.status-cancelled{color:#a65b68;background:#faedf0}.payment-paid{color:#3e876d}.payment-pending{color:#a67837}.payment-cod{color:#77819a}.payment-refunded{color:#a76071}.payment-label{font-size:10px;display:flex;align-items:center;gap:5px}.payment-label svg{width:12px;height:12px}.amount{font-weight:600;color:#46556f;font-variant-numeric:tabular-nums}.date{font-size:10px;color:#8390a3}.row-more{border:0;background:none;color:#94a0b3;padding:8px;min-width:32px;min-height:32px}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:15px 23px;color:#8995a5;font-size:10px}.table-footer>div{display:flex;align-items:center;gap:14px}.table-footer .icon-button{min-width:30px;min-height:30px}.bottom-caption{display:flex;align-items:center;justify-content:center;gap:6px;color:#8b96a7;font-size:10px;padding:18px}.bottom-caption svg{width:12px;height:12px}.app-footer{display:flex;justify-content:space-between;color:#98a2b1;font-size:10px;margin:0 36px;padding:15px 0;border-top:1px solid #e8ecf2}.empty{text-align:center;padding:65px 20px}.empty>span{padding:15px;background:#f1f3fb;color:#8593bd;border-radius:12px;margin-bottom:17px}.empty svg{width:25px;height:25px}.empty h3{font-size:15px;margin-bottom:8px}.empty p{color:var(--muted);font-size:12px}.market-grid,.integration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.market-card,.integration-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px}.market-card h2{font-size:15px;margin:14px 0 8px}.market-card p,.integration-card p{font-size:12px;color:var(--muted);line-height:1.7}.market-card .button{margin-top:20px;width:100%}.market-card .market-pill{width:39px;height:31px}.integration-intro{text-align:center;max-width:520px;margin:20px auto 32px}.integration-intro h2{font-size:22px;margin:15px 0 10px}.integration-intro p{font-size:13px;line-height:1.8;color:var(--muted)}.integration-symbol{padding:16px;background:var(--accent-soft);border-radius:15px;color:var(--brand)}.integration-card h3{margin-bottom:10px;font-size:15px}.integration-card small{display:block;color:#8b95a5;margin-top:18px;font-size:10px}dialog{border:1px solid #e5e9f1;border-radius:16px;padding:25px;width:min(550px,calc(100vw - 24px));max-height:90vh;color:var(--text);box-shadow:0 25px 100px #172b4140}dialog::backdrop{background:#15243c55;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-header h2{font-size:22px;letter-spacing:-.5px}.form-hint{font-size:12px;color:var(--muted);margin:15px 0 23px;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:11px;color:#58677e;display:flex;flex-direction:column;gap:7px}.form-grid label>span{font-size:10px;color:#929aab}.form-grid input{width:100%}.full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.form-error{background:#fff0f0;color:#a43e4d;padding:12px;border-radius:8px;margin-top:18px;font-size:12px}.detail-dialog{margin:0 0 0 auto;max-height:100dvh;height:100dvh;width:min(520px,100vw);border-radius:16px 0 0 16px;padding:28px}.detail-tags{display:flex;gap:8px;margin:22px 0}.detail-section{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.detail-section h3{font-size:12px;margin-bottom:15px}.detail-data{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:12px}.detail-data dt{color:#8893a5;font-size:10px;margin-bottom:6px}.detail-data dd{margin:0;overflow-wrap:anywhere}.detail-item{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:12px 0}.detail-item small{display:block;color:#919aaa;margin-top:5px;font-size:10px}.detail-total{display:flex;justify-content:space-between;padding-top:15px;border-top:1px solid var(--line);font-size:13px;font-weight:600}.detail-status{display:flex;gap:9px}.detail-status select{flex:1;font-size:12px}.timeline{list-style:none;padding:0;margin:0}.timeline li{border-left:2px solid var(--accent-border);padding:0 0 18px 15px;position:relative;font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.timeline li:before{content:'';position:absolute;width:7px;height:7px;background:var(--brand);border-radius:50%;left:-4px;top:5px}.timeline small{display:block;color:#8b96a7;font-size:9px;margin-bottom:3px}.note-form textarea{width:100%;resize:vertical;font-size:12px;min-height:80px}.note-form button{margin-top:8px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#273551;color:#fff;padding:13px 21px;border-radius:10px;font-size:12px;z-index:20;box-shadow:0 8px 25px #27355130;max-width:90vw}.error-toast{background:#9f3b4a}.view-error{color:#9f3b4a}
@media(min-width:1600px){main{padding-inline:32px}.topbar{padding-inline:50px}}
@media(max-width:1200px){.sidebar{width:205px;padding-inline:12px}.shell{margin-left:205px}main{padding:28px 24px}.topbar{padding-inline:24px}.stats{gap:11px}.stat{padding:16px}.card-caption{display:none}.filter-label select{min-width:130px}.filters{flex-wrap:wrap}.search{min-width:240px}.market-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{position:static;width:auto;padding:15px 18px;border-bottom:1px solid var(--line)}.brand{padding:0;font-size:25px}.brand-sub,.workspace,.nav-label,.future-modules,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:6px;margin-top:17px}.nav-item{margin:0;font-size:11px;padding:10px;justify-content:center}.soon,.nav-count{display:none}.shell{margin-left:0}.topbar{height:49px;padding-inline:18px}.top-right{gap:10px}.local-label{font-size:9px}main{padding:25px 16px}.page-heading{align-items:flex-start;flex-direction:column;gap:19px}h1{font-size:27px}.heading-actions{width:100%}.heading-actions .button{flex:1}.notice{align-items:flex-start;font-size:10px;padding:12px}.notice-tag{display:none}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.stat small{font-size:9px}.stat strong{font-size:26px}.stat>div{font-size:10px}.card-top{padding:18px 15px}.market-tabs{padding-inline:15px}.filters{padding:15px;gap:8px}.search{min-width:100%;flex-basis:100%}.filter-label{flex:1;min-width:110px}.filter-label select{width:100%;min-width:0;font-size:10px}.table-footer{padding-inline:15px}.bulk-bar{padding:10px 15px;flex-wrap:wrap}.market-grid,.integration-grid{grid-template-columns:1fr}.app-footer{margin-inline:16px;font-size:9px}.detail-dialog{padding:22px}.form-grid{gap:12px}.dialog-header h2{font-size:20px}.detail-data{gap:17px}.bottom-caption{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Keep off-screen accessibility labels inside the horizontally scrollable table. */
.table-wrap{position:relative}
.rail-status{position:relative;align-items:flex-start}.rail-label{display:flex;flex-direction:column;gap:5px;min-width:0}.rail-units{font-size:10px;color:#68778d;font-weight:400;line-height:1.5}.rail-group h3{padding-bottom:3px}.rail-group-total{font-size:9px;color:#738197;margin:0 8px 6px;line-height:1.5}.rail-unit-hint{font-size:9px;color:#738197;line-height:1.6;padding:14px 8px 0}

.order-documents-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.document-row{padding:16px 0;border-top:1px solid var(--line)}.document-row-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-row h3{font-size:13px;margin:0}.document-fields{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0}.document-fields dt{font-size:10px;color:var(--muted);margin-bottom:5px}.document-fields dd{margin:0;font-size:12px;font-weight:600;overflow-wrap:anywhere}.document-row .button{margin-top:12px;text-decoration:none}.tracking-number{font-size:14px;font-weight:600;margin:12px 0;overflow-wrap:anywhere}@media(max-width:800px){.order-documents-grid{grid-template-columns:1fr}}

.shopify-order-reference{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin-bottom:20px}.shopify-order-reference span{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.shopify-order-reference strong{font-size:15px}.shopify-order-reference small{color:var(--muted);font-size:11px}.shopify-order-reference a{text-decoration:none;flex-shrink:0}

.comment-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.comment-actions{display:flex;gap:8px;margin-top:10px}.comment-editor{display:block;width:100%;margin-top:8px}.order-comments li{padding-bottom:18px}

.order-tags{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:20px}.order-tags-content{min-width:0;flex:1}.order-tags h2{font-size:11px;font-weight:500;color:var(--muted);margin:0 0 9px}.order-tag-list{display:flex;flex-wrap:wrap;gap:8px}.order-tag{display:inline-flex;align-items:center;gap:7px;background:var(--accent-soft);color:#43474d;border-radius:6px;padding:5px 8px;font-size:12px;overflow-wrap:anywhere;max-width:100%}.order-tag button{display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:inherit;padding:3px;border-radius:4px;flex-shrink:0}.order-tag button:hover{background:#dfe1e4}.order-tag svg{width:13px;height:13px}.order-tags form{display:flex;gap:8px;flex-shrink:0}.order-tags input{width:270px;font-size:12px}.order-tags .missing-data{margin:0}@media(max-width:900px){.order-tags{align-items:stretch;flex-direction:column}.order-tags input{width:100%;min-width:0}.order-tags form{width:100%}}

.date-filters{display:flex;align-items:center;gap:12px;padding:0 23px 17px;flex-wrap:wrap}.date-filters>span{font-size:11px;color:var(--muted);margin-right:4px}.date-filters label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.date-filters input{font-size:12px;min-height:38px;padding:8px 10px;min-width:145px}.date-filters small{font-size:10px;color:var(--muted)}

.advanced-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 23px 17px}.advanced-filters label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted)}.advanced-filters select{min-width:0;width:100%;font-size:11px}@media(max-width:900px){.advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.order-market{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.market-flag{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:19px;line-height:1;display:inline-block}
.pln-equivalent{margin-top:6px;font-variant-numeric:tabular-nums}.pln-equivalent>span{display:block;color:var(--brand);font-size:11px;font-weight:600;margin:0}.pln-equivalent>small{display:block;color:var(--muted);font-size:9px;font-weight:400;margin-top:4px}.pln-unavailable{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:6px}.order-overview .pln-equivalent>span{font-size:13px;margin-top:8px}.order-overview .pln-equivalent>small{font-size:9px;margin:5px 0 0}
@media(min-width:1100px){.order-overview{grid-template-columns:repeat(5,minmax(0,1fr))}}.order-current-status .badge{display:inline-flex;font-size:13px;font-weight:650;padding:8px 12px;margin-top:0;white-space:normal;overflow-wrap:anywhere}

.order-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.order-back{display:flex;align-items:center;gap:5px;padding:0;margin-bottom:22px;font-size:12px}.order-meta-line{display:flex;align-items:center;gap:15px;margin-top:14px;font-size:11px;color:#76849a}.order-tabs{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap}.order-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.order-overview>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px}.order-overview small{display:block;font-size:10px;color:#77859b;margin-bottom:10px}.order-overview strong{display:block;font-size:17px;font-weight:600;overflow-wrap:anywhere}.order-overview span{display:block;font-size:10px;color:#7b879b;margin-top:8px;overflow-wrap:anywhere}.order-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px;margin:0 0 20px;min-width:0}.order-card h2,.order-card legend{font-size:14px;font-weight:600;margin-bottom:21px}.order-card legend{float:left;width:100%;padding:0}.order-card>.form-grid{clear:both;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}.order-card>.form-grid>label{min-width:0}.order-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.order-data-grid input{width:100%;min-width:0}.order-data-grid input:disabled,.order-data-grid textarea:disabled{background:#fafbfe;color:#3f4f68;opacity:1;border-color:#edf0f5;cursor:default}.order-product{display:flex;gap:20px;padding:20px 0;border-top:1px solid var(--line)}.product-image{width:115px;height:115px;flex-shrink:0;border:1px solid var(--line);border-radius:12px;background:#f7f8fc;display:grid;place-items:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:contain}.product-image svg{width:35px;height:35px;color:#a0acc2}.product-info{flex:1;min-width:0}.product-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.product-title h3{font-size:13px;font-weight:600}.quantity-pill{white-space:nowrap;background:var(--accent-subtle);color:#667693;padding:5px 9px;border-radius:6px;font-size:11px}.product-sku{font-size:10px;color:#7c89a0;margin-top:7px}.personal-source{display:inline-block;margin-top:10px;padding:4px 7px;border-radius:5px;font-size:10px;color:#7162a2;background:#f3effa}.personal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:15px 0 0}.personal-fields dt{font-size:10px;color:#8893a6;margin-bottom:4px}.personal-fields dd{font-size:12px;margin:0;overflow-wrap:anywhere}.missing-data{color:#8491a4;font-size:11px;margin-top:12px}.catalog-thumb{width:45px;height:45px;object-fit:contain;border:1px solid var(--line);border-radius:5px;margin-top:12px}.packing-card>p{clear:both;color:#748299;font-size:12px;margin-bottom:15px}.packing-card textarea{width:100%;resize:vertical;font-size:12px}.save-order-bar{position:sticky;bottom:16px;z-index:5;background:#fff;border:1px solid var(--accent-border);border-radius:12px;padding:14px 18px;box-shadow:0 8px 30px #24335018;display:flex;gap:12px;align-items:center;margin-bottom:20px}.save-order-bar span{margin-right:auto;color:#6b7990;font-size:12px}.order-status-card .detail-status{max-width:450px}.order-comments{margin-top:25px}.edit-audit{border-top:1px solid var(--line);padding:15px 0;font-size:12px}.edit-audit summary{cursor:pointer;color:#555b64}.edit-audit h3{font-size:11px;color:#8491a7;margin:14px 0 7px}.edit-audit pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8fc;padding:12px;border-radius:8px;font-size:11px}.order-data-grid fieldset{margin-inline:0}.order-data-grid fieldset:disabled label{color:#6b7990}
@media(max-width:1000px){.order-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.order-data-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.order-page-heading{align-items:flex-start;flex-direction:column}.order-meta-line{flex-wrap:wrap;gap:9px}.order-card{padding:18px}.order-product{gap:12px}.product-image{width:80px;height:80px}.product-title{align-items:flex-start}.product-title h3{font-size:12px}.personal-fields{grid-template-columns:minmax(0,1fr)}.save-order-bar{flex-wrap:wrap;bottom:8px}.save-order-bar span{width:100%;font-size:11px}.save-order-bar button{flex:1}.order-overview>div{padding:15px}.order-overview strong{font-size:14px}}

@media(min-width:1100px){.order-overview{grid-template-columns:repeat(5,minmax(0,1fr))}}

.orders-layout{display:grid;grid-template-columns:clamp(280px,18vw,360px) minmax(0,1fr);gap:16px;align-items:start}.status-rail{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 10px;position:sticky;top:18px;min-width:0}.rail-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px 12px;border-bottom:1px solid var(--line);margin-bottom:9px}.rail-heading h2{font-size:13px;font-weight:600}.rail-heading .icon-button{border:0;min-width:32px;min-height:32px}.rail-status{display:flex;width:100%;gap:7px;align-items:center;justify-content:space-between;border:0;background:none;border-radius:6px;color:#59677c;padding:8px;font-size:11px;text-align:left;min-height:36px}.rail-status span{overflow-wrap:anywhere}.rail-status.active{background:var(--accent-subtle);color:var(--brand)}.rail-status strong{padding:3px 6px;border-radius:4px;min-width:28px;text-align:center;font-size:10px;flex-shrink:0}.rail-group{margin-top:15px}.rail-group h3{font-size:10px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 8px 7px;color:#4f5c72}.rail-group h3 small{color:#8692a6;font-size:10px}.rail-config{margin-top:14px;font-size:10px;border-top:1px solid var(--line);width:100%;padding-top:14px}.color-blue{color:var(--brand);background:var(--accent-soft)}.color-green{color:var(--brand);background:var(--accent-soft)}.color-violet{color:#7552a8;background:#f1eafa}.color-amber{color:#926222;background:#fff1db}.color-red{color:#a14555;background:#fbeaf0}.color-gray{color:#5f6b7d;background:#edf0f4}.color-pink{color:#a13b79;background:#fbeaf5}.color-teal{color:#267574;background:#e3f5f3}.workflow-dialog{width:min(790px,calc(100vw - 24px))}.workflow-tabs{display:flex;gap:10px;margin-bottom:18px}.workflow-tabs [aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent-border);color:var(--brand)}.settings-list{max-height:280px;overflow:auto;margin:18px 0 24px;border-block:1px solid var(--line)}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 2px;border-bottom:1px solid var(--line);font-size:12px}.setting-row:last-child{border-bottom:0}.setting-row>div{min-width:0}.setting-row strong,.setting-row small{display:block}.setting-row small{color:#718096;font-size:10px;margin-top:7px}.setting-row p{color:#61718a;font-size:11px;line-height:1.6;margin-top:7px;overflow-wrap:anywhere}.setting-row button{flex-shrink:0}.workflow-dialog form h3,.preview-section h3{font-size:14px;margin-bottom:16px}.check-label{flex-direction:row!important;align-items:center}.rule-help{padding:14px;border:1px solid var(--accent-border);background:var(--accent-subtle);border-radius:9px;font-size:12px;color:#60718d;line-height:1.7}.rule-help strong{color:#43474d}.preview-section{margin-top:25px;padding-top:24px;border-top:1px solid var(--line)}.preview-row{display:flex;flex-wrap:wrap;gap:6px 14px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.preview-row small{width:100%;font-size:10px;color:#718096}#rule-preview{max-height:280px;overflow:auto;margin:15px 0}.routing-state{font-size:11px;color:#718096;line-height:1.7;margin:0 0 10px}.orders-layout .card-caption{display:none}.orders-layout .filters{flex-wrap:wrap}.orders-layout .search{min-width:200px;flex-basis:100%}.orders-layout .filter-label{flex:1}.orders-layout .filter-label select{width:100%}.setting-row{position:relative}
@media(max-width:1100px){.orders-layout{grid-template-columns:240px minmax(0,1fr)}.rail-status{font-size:10px}.rail-heading h2{font-size:12px}}
@media(max-width:760px){.orders-layout{grid-template-columns:minmax(0,1fr)}.status-rail{position:static}.rail-group{min-width:140px;margin-top:0}#status-rail-list{display:flex;gap:10px;overflow:auto;max-height:240px}#status-rail-list>.rail-status{min-width:100px;max-width:100px;align-self:start}.rail-config{margin-top:8px}.orders-layout .search{min-width:100%}.workflow-dialog{padding:20px}.setting-row{gap:10px}.setting-row small{line-height:1.6}}
.rail-status{position:relative;align-items:flex-start}.rail-label{display:flex;flex-direction:column;gap:5px;min-width:0}.rail-units{font-size:10px;color:#68778d;font-weight:400;line-height:1.5}.rail-group h3{padding-bottom:3px}.rail-group-total{font-size:9px;color:#738197;margin:0 8px 6px;line-height:1.5}.rail-unit-hint{font-size:9px;color:#738197;line-height:1.6;padding:14px 8px 0}

/* Desktop product rows with explicit quantity, unit price and line total. */
.products-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.products-heading h2{margin:0}.products-heading>span{font-size:12px;color:#667085}.product-table-scroll{overflow-x:auto}.order-products-table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:800px}.order-products-table th{font-size:11px;font-weight:500;color:#667085;background:#f6f7fa;padding:12px;text-align:left;border-bottom:1px solid var(--line)}.order-products-table td{padding:16px 12px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:12px}.order-products-table tbody tr:last-child td{border-bottom:0}.order-products-table th:nth-child(1){width:40px}.order-products-table th:nth-child(2){width:100px}.order-products-table th:nth-child(3){width:30%}.order-products-table th:nth-child(4){width:19%}.order-products-table th:nth-child(5){width:70px}.order-products-table th:nth-child(6),.order-products-table th:nth-child(7){width:145px;text-align:right}.order-products-table .product-image{width:72px;height:72px;border-radius:9px}.order-products-table .product-name-cell h3{font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.product-sku-cell{font-family:ui-monospace,SFMono-Regular,monospace;color:#667085;overflow-wrap:anywhere}.product-quantity-cell{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.product-quantity-cell small{font-size:11px;font-weight:400;color:#667085}.order-products-table .product-price-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.product-price-cell strong{font-size:13px;font-weight:600}.product-price-cell .pln-equivalent{margin-top:5px}.product-price-cell .pln-equivalent small{font-size:9px}.price-missing{font-size:11px;color:#667085}.product-index{color:#667085}

.product-order-totals{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.product-shipping-summary,.product-grand-total{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:12px}.product-shipping-summary small,.product-grand-total small{display:block;font-size:11px;color:#667085;margin-bottom:5px}.product-shipping-summary strong{font-size:12px}.summary-money{text-align:right;font-variant-numeric:tabular-nums}.summary-money .pln-equivalent{margin-top:5px}.product-grand-total{margin-top:12px;background:var(--accent-subtle);border:1px solid var(--accent-border);border-radius:9px;padding:18px}.product-grand-total strong{font-size:15px}.product-grand-total>.summary-money>strong{font-size:19px}.product-grand-total small{margin:6px 0 0}

/* Status colors stay independent from neutral interface accents. */
.color-blue,.color-green{--status-text:#fff;--status-bg:var(--brand);color:var(--status-text);background:var(--status-bg)}.color-violet{--status-text:#7552a8;--status-bg:#f1eafa}.color-amber{--status-text:#926222;--status-bg:#fff1db}.color-red{--status-text:#a14555;--status-bg:#fbeaf0}.color-gray{--status-text:#5f6b7d;--status-bg:#edf0f4}.color-pink{--status-text:#a13b79;--status-bg:#fbeaf5}.color-teal{--status-text:#267574;--status-bg:#e3f5f3}.badge[class*=color-]{color:var(--status-text);background:var(--status-bg)}.status-change-toggle{display:block;margin-top:12px;padding:0;font-size:11px}.order-current-status #order-status-editor{margin-top:12px}.order-current-status select{width:100%;padding:8px;font-size:12px}.status-editor-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.order-current-status .form-hint{margin:12px 0 0;line-height:1.5;font-size:10px}.order-current-status #order-unlock{font-size:10px;margin-top:10px;padding:0}

/* Compact, readable order and unit counters. */
.rail-status{justify-content:flex-start;align-items:flex-start;gap:10px;padding:10px;border-radius:8px;margin:2px 0}.rail-label{gap:4px;flex:1}.rail-name{font-size:12px;line-height:1.4;font-weight:500}.rail-counts{font-size:11px;line-height:1.4;color:#667085;white-space:nowrap;font-variant-numeric:tabular-nums}.rail-counts b{font-weight:600;margin-left:4px;color:#43474d}.rail-marker{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:5px;background:var(--status-text)}.rail-marker.color-green,.rail-marker.color-blue{background:var(--brand)}.rail-status.active .rail-name{font-weight:650}.rail-group{border-top:1px solid var(--line);padding-top:13px;margin-top:13px}.rail-group h3{font-size:10px;color:#43474d;padding:0 10px 4px}.rail-group-total{margin:0 10px 8px;font-size:10px;white-space:nowrap}.rail-unit-hint{padding-top:12px}

.order-products-table .product-name-cell,.order-products-table .product-sku-cell{white-space:normal;min-width:0;overflow-wrap:anywhere}.order-products-table .product-name-cell h3{white-space:normal;max-width:100%;margin:0;overflow-wrap:anywhere}

.order-list-tag{display:inline-flex;margin-top:7px;padding:3px 8px;border-radius:5px;font-size:10px;font-weight:750;letter-spacing:.06em;line-height:1.5}.tag-express{background:#fdebec;color:#a73d46;border:1px solid #f2c4c9}.order-tag.tag-express{color:#a73d46;background:#fdebec;border-color:#f2c4c9}

.source-number .order-list-tag{margin-top:0;margin-left:5px;vertical-align:middle}

.rail-group>summary,.rail-parent>summary{display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:pointer;list-style:none}.rail-group>summary::-webkit-details-marker,.rail-parent>summary::-webkit-details-marker{display:none}.rail-group>summary>div{min-width:0}.rail-group>summary h3{line-height:1.5;font-size:10px}.rail-group>summary .rail-group-total{margin-bottom:9px}.rail-parent>summary .rail-status{flex:1;min-width:0;margin:0}.rail-chevron{font-size:20px;color:#748096;flex-shrink:0;transition:transform .15s}.rail-group[open]>summary>.rail-chevron,.rail-parent[open]>summary>.rail-chevron{transform:rotate(90deg)}.rail-children{margin:0 0 6px 15px;padding-left:7px;border-left:1px solid var(--line)}.rail-children .rail-status{padding:7px 5px}.rail-children .rail-name{font-size:10px}.rail-children .rail-counts{font-size:10px}.rail-parent summary:focus-visible,.rail-group summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* Product artwork lightbox, with native focus trapping and Escape dismissal. */
.product-preview-trigger{padding:0;cursor:zoom-in;transition:border-color .15s,box-shadow .15s}
.product-preview-trigger:hover{border-color:var(--brand);box-shadow:0 0 0 3px var(--accent-soft)}
.product-preview-dialog{width:min(1000px,calc(100vw - 64px));max-width:none;max-height:calc(100vh - 64px);padding:24px;border:1px solid var(--line);border-radius:16px;overflow:auto}
.product-preview-dialog::backdrop{background:rgb(24 35 57 / .6)}
.product-preview-dialog .dialog-header{align-items:flex-start;gap:24px;margin-bottom:18px}
.product-preview-dialog h2{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.product-preview-dialog .icon-button{flex-shrink:0}
.product-preview-stage{display:grid;place-items:center;min-height:180px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:20px}
.product-preview-stage img{display:block;max-width:100%;max-height:calc(100vh - 240px);width:auto;height:auto;object-fit:contain}
.product-preview-stage p{color:var(--muted);padding:24px;text-align:center}
.product-production-link{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:4px 0;border:0;background:transparent;color:var(--brand);font:inherit;font-size:12px;font-weight:600;text-align:left;cursor:pointer}
.product-production-link svg{width:15px;height:15px;flex-shrink:0}
.product-production-link:hover{text-decoration:underline}
.product-production-link:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:3px}
.product-production-link:disabled{opacity:.65;cursor:wait}
.stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.statistics-note{color:var(--muted);font-size:11px;margin:-14px 0 24px}
@media(max-width:1450px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.order-current-status{position:relative}
#order-status-editor{position:absolute;z-index:25;left:0;top:100%;width:390px;max-width:calc(100vw - 64px);padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 45px rgb(24 35 57 / .16)}
.status-search-label{display:block;font-size:12px;font-weight:600;margin-bottom:8px;color:var(--ink)}
.status-search-field{position:relative}
.status-search-field>svg{position:absolute;left:12px;top:13px;width:16px;height:16px;color:var(--muted)}
#order-status-search{width:100%;padding-left:37px;font-size:12px;background:var(--bg)}
.status-search-results{max-height:265px;overflow-y:auto;margin:12px -4px 8px;padding:0 4px;overscroll-behavior:contain}
.status-search-option{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 10px;border:1px solid transparent;background:#fff;border-radius:8px;cursor:pointer;text-align:left}
.status-search-option:hover,.status-search-option[aria-pressed=true]{background:var(--accent-soft);border-color:var(--line)}
.status-search-option:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.order-overview .status-search-option-text{display:block;margin:0}
.order-current-status .status-search-option .badge,.order-current-status .status-search-selection .badge{display:inline-flex;margin:0;padding:4px 7px;font-size:11px}
.order-overview .status-search-option small{font-size:10px;margin:5px 0 0;color:var(--muted)}
.status-search-option>svg{width:17px;height:17px;flex-shrink:0;color:var(--brand)}
.status-search-empty{padding:14px 10px;font-size:12px;color:var(--muted)}
.status-search-selection{font-size:11px;line-height:1.8;color:var(--muted);margin:10px 0}
#order-status-editor .status-editor-actions{padding-top:12px;border-top:1px solid var(--line)}
#order-status-editor .form-hint{font-size:10px;margin-top:10px}
.carrier-integrations{margin-top:32px}.carrier-card-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.carrier-integrations .integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.carrier-integrations .integration-card button{margin-top:18px}.carrier-key-list{display:grid;gap:18px}.carrier-key-row{display:grid;gap:8px}.carrier-key-row input{width:100%;font-family:monospace}.carrier-key-row>div,.carrier-operation-actions{display:flex;gap:10px;flex-wrap:wrap}.carrier-operation{border-top:1px solid #d8dadd;margin-top:18px;padding-top:18px}.carrier-operation-actions{margin-top:16px}.carrier-differences{overflow:auto;margin:12px 0}.carrier-differences td,.carrier-differences th{padding:8px;text-align:left;border-bottom:1px solid #d8dadd;overflow-wrap:anywhere}.carrier-differences table{width:100%;font-size:13px}@media(max-width:700px){.carrier-integrations .integration-grid{grid-template-columns:1fr}}
/* Sales reports reuse the OMS palette and table components. */
.sales-toolbar,.sales-tabs,.sales-periods,.sales-product-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sales-toolbar{justify-content:space-between;margin-bottom:16px}.sales-toolbar label,.sales-product-tools>label:not(.search){display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.sales-toolbar select,.sales-product-tools select{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--text)}.sales-tabs .button[aria-pressed=true]{background:var(--accent-subtle);border-color:var(--brand);color:var(--brand)}.sales-data-note{padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--accent-subtle);font-size:12px;line-height:1.6;margin-bottom:12px}.sales-definition{font-size:12px;line-height:1.7;color:#667085;margin:12px 0 20px}.sales-periods{margin:20px 0 16px}.sales-periods .market-tab{min-height:44px;border:1px solid var(--line);border-radius:8px;background:white}.sales-periods .market-tab.active{background:var(--accent-subtle);border-color:var(--brand)}#sales-range{margin-left:auto;font-size:12px;color:#667085}.sales-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-stats .stat:last-child{grid-column:1/-1}.sales-stats .stat:last-child strong{display:flex;gap:12px 28px;flex-wrap:wrap;font-size:23px}.sales-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sales-money{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.sales-number{text-align:right;font-variant-numeric:tabular-nums}.sales-product-tools{margin:20px 0}.sales-product-tools .search{flex:1;min-width:220px;max-width:520px}.sales-product-table th:nth-child(n+2){text-align:right}.sales-product-table th small{display:block;margin-top:5px;font-weight:400;white-space:nowrap;color:#667085}.sales-product-table tfoot{background:var(--accent-subtle);font-weight:600}.sales-product-table td:first-child{overflow-wrap:anywhere;min-width:150px}#sales-view [aria-busy=true]{opacity:.65}@media(max-width:1100px){.sales-grid{grid-template-columns:1fr}}@media(max-width:650px){.sales-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-tabs{width:100%}.sales-tabs .button{flex:1}.sales-toolbar label{width:100%}.sales-toolbar select{flex:1}#sales-range{margin-left:0;width:100%}.sales-stats .stat:last-child strong{font-size:20px}}
.sales-grid>*{min-width:0}#sales-view,.sales-product-tools,.sales-product-tools .search{min-width:0}#sales-view .table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:650px){.sidebar nav{max-width:100%;overflow-x:auto;padding-bottom:4px}.sidebar nav .nav-item{flex:0 0 auto}}

/* Przesyłki: dense operational dashboard using existing Tortli tokens. */
/* Shipment report: compact facts, semantic alerts, progressive disclosure. */
#shipments-view{--shipment-danger:#b42318;--shipment-danger-bg:#fff4f2;--shipment-danger-line:#f2c5bf;--shipment-ink:#303a49;--shipment-muted:#606975}
.shipment-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.shipment-toolbar .workflow-tabs{margin:0}
.shipment-filter-card{padding:16px 20px;margin-bottom:12px}.shipment-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.shipment-filters label{display:flex;flex-direction:column;gap:6px;flex:1 1 150px;min-width:0;font-size:12px;font-weight:600;color:#525965}.shipment-filters select,.shipment-filters input,.shipment-list-tools select{width:100%;min-height:42px;border:1px solid var(--accent-border);border-radius:7px;background:white;padding:8px 10px;color:var(--shipment-ink);font:inherit}.shipment-filters .shipment-search{flex:2 1 220px}.shipment-primary-filters .button{min-height:42px}
.shipment-advanced{margin-top:12px;font-size:12px;color:var(--shipment-muted)}.shipment-advanced>summary,.shipment-thresholds>summary,.shipment-quality>summary{cursor:pointer;font-weight:600;padding:8px 0}.shipment-advanced[open]>.shipment-filters{padding-top:12px;border-top:1px solid var(--line)}.shipment-thresholds{margin-top:14px;border-top:1px solid var(--line);padding-top:4px;font-size:12px;color:var(--shipment-muted)}.shipment-thresholds .shipment-filters{margin-top:12px;max-width:700px}.shipment-thresholds p{max-width:950px;line-height:1.6;margin:12px 0}.shipment-feedback{font-size:12px;color:var(--shipment-muted);margin:12px 0 18px}
.shipment-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px;font-size:13px;color:var(--shipment-ink)}.shipment-scope span{font-size:12px;color:var(--shipment-muted)}.shipment-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.shipment-metric{text-align:left;padding:16px 18px;background:white;border:1px solid var(--accent-border);border-radius:10px;cursor:pointer;display:flex;flex-direction:column;gap:8px;color:var(--shipment-ink);font:inherit;min-height:112px}.shipment-metric>span{font-size:13px;font-weight:650}.shipment-metric>strong{font-size:30px;line-height:1.1;font-variant-numeric:tabular-nums}.shipment-metric>small{font-size:12px;color:var(--shipment-muted);line-height:1.4}.shipment-metric:hover{background:var(--accent-subtle)}.shipment-metric.is-late>strong,.shipment-late-number{color:var(--shipment-danger);font-weight:700}.shipment-metric.active{box-shadow:inset 0 0 0 1px var(--brand);border-color:var(--brand);background:var(--accent-subtle)}
.shipment-extra{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.shipment-extra .button{min-height:40px;font-size:12px}.shipment-extra .active{box-shadow:inset 0 0 0 1px var(--brand);background:var(--accent-soft)}.shipment-extra strong{font-variant-numeric:tabular-nums;margin-left:4px;background:var(--accent-subtle);padding:2px 6px;border-radius:4px;color:var(--shipment-ink)}
#shipment-operations .card-top{padding:16px 20px 12px}.shipment-list-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px 14px;font-size:12px;color:var(--shipment-muted)}.shipment-list-tools label{display:flex;align-items:center;gap:10px}.shipment-list-tools select{width:220px;font-size:12px}.shipment-table{min-width:880px;table-layout:fixed;white-space:normal}.shipment-table th{font-size:12px;font-weight:600;letter-spacing:0;color:#525965;background:#f3f4f5;padding:12px 16px}.shipment-table th:nth-child(1){width:14%}.shipment-table th:nth-child(2){width:18%}.shipment-table th:nth-child(3){width:23%}.shipment-table th:nth-child(4){width:17%}.shipment-table th:nth-child(5){width:18%}.shipment-table th:nth-child(6){width:10%}.shipment-table td{vertical-align:top;padding:14px 16px;font-size:13px;line-height:1.5;color:var(--shipment-ink);overflow-wrap:anywhere}.shipment-table small,#shipment-market-rows small,#shipment-carrier-rows small{display:block;font-size:12px;line-height:1.5;color:var(--shipment-muted)}.shipment-table .source-number{display:block;font-size:12px;margin-bottom:3px;color:var(--shipment-muted)}.shipment-table .order-number{font-size:13px;min-height:24px}.shipment-carrier-name{display:block;font-size:13px;font-weight:600;line-height:1.5}.shipment-table .text-button{font-size:12px}.shipment-table .shipment-track-link{display:inline-flex;align-items:center;gap:4px;padding:6px 0;min-height:32px}.shipment-track-link:hover{text-decoration:underline}.shipment-table .text-button svg{width:12px;height:12px}.shipment-table .badge{font-size:12px;padding:4px 8px;line-height:1.4}.shipment-badge-late{color:var(--shipment-danger);background:#fde7e4}.shipment-warning{display:block;font-size:12px;color:var(--shipment-danger);font-weight:650;margin-top:5px;line-height:1.4}.shipment-data-warning{display:block;font-size:12px;color:#8c4a12;margin-top:5px;line-height:1.4}.shipment-row-late{background:var(--shipment-danger-bg)}.shipment-row-late:hover{background:#ffefeb}.shipment-row-late td:first-child{box-shadow:inset 3px 0 var(--shipment-danger)}
.shipment-fact{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;line-height:1.5;margin-bottom:4px}.shipment-fact>span{color:var(--shipment-muted)}.shipment-fact>strong{font-weight:550;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.shipment-fact.is-late>strong{color:var(--shipment-danger);font-weight:700}.shipment-muted{color:var(--shipment-muted)}.shipment-updated{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.shipment-events{font-size:12px;margin-top:4px}.shipment-events summary{cursor:pointer;color:var(--shipment-muted);font-weight:550;padding:4px 0;min-height:28px}.shipment-events[open] summary{color:var(--brand)}.shipment-detail-facts{margin:8px 0;padding-top:8px;border-top:1px solid var(--accent-border)}.shipment-detail-facts .shipment-fact{display:block;margin-bottom:8px}.shipment-detail-facts .shipment-fact>span,.shipment-detail-facts .shipment-fact>strong{display:block;text-align:left;white-space:normal}.shipment-events ol{padding-left:16px;max-height:260px;overflow:auto}.shipment-events li{margin:10px 0}.shipment-events p{font-size:12px;line-height:1.5}.shipment-quality{margin:16px 0 20px;font-size:12px;color:var(--shipment-muted)}.shipment-quality p{line-height:1.7;max-width:1100px}.shipment-metric:focus-visible,.shipment-events summary:focus-visible,.shipment-thresholds summary:focus-visible,.shipment-advanced summary:focus-visible,.shipment-quality summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
#shipment-markets th,#shipment-carriers th{font-size:12px;color:#525965;letter-spacing:0}#shipment-markets td,#shipment-carriers td{font-size:13px;vertical-align:top}#shipment-markets .text-button{padding:0;font-size:13px;font-weight:600}#shipment-markets .form-hint,#shipment-carriers .form-hint{font-size:12px;color:var(--shipment-muted);margin-top:6px}
@media(max-width:1500px){.shipment-fact{display:block}.shipment-fact>strong{display:block;text-align:left}.shipment-table{min-width:880px}.shipment-table td,.shipment-table th{padding-left:12px;padding-right:12px}}
@media(max-width:720px){.shipment-toolbar{align-items:stretch;flex-direction:column}.shipment-toolbar .workflow-tabs{flex-wrap:wrap}.shipment-list-tools{align-items:stretch;flex-direction:column;gap:8px}.shipment-list-tools label{flex-wrap:wrap}.shipment-list-tools select{width:100%}.shipment-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-scope{align-items:flex-start;flex-direction:column}.shipment-filters label{flex-basis:calc(50% - 12px)}.shipment-filters .shipment-search{flex-basis:100%}.shipment-filter-card{padding:14px}.shipment-metric{padding:14px}.shipment-extra .button{min-height:44px}}


/* Warehouse uses the existing OMS tokens, type and buttons. */
.warehouse-source{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;margin-bottom:20px;background:var(--accent-soft,#f3f4f5);border:1px solid var(--line,#d8dadd);border-radius:12px;font-size:13px}.warehouse-source p{margin:6px 0 0;line-height:1.6}.warehouse-source-error{border-color:#b85959}.warehouse-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.warehouse-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line)}.warehouse-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;font-size:13px;line-height:1.6}.warehouse-toolbar p{max-width:780px;margin:0}.warehouse-toolbar h2{margin:0 0 8px}.warehouse-toolbar label{display:grid;gap:6px;min-width:200px;font-size:12px}.warehouse-toolbar input,.warehouse-toolbar select{min-height:40px}.warehouse-scroll{overflow:auto}.warehouse-table{width:100%;min-width:780px;border-collapse:collapse;text-align:left;font-size:13px}.warehouse-table th{padding:14px 18px;background:#f3f4f5;font-size:11px;white-space:nowrap}.warehouse-table td{padding:16px 18px;vertical-align:middle;border-top:1px solid var(--line)}.warehouse-table small{display:block;margin-top:6px;color:#677387;font-size:12px}.warehouse-alert{color:#ac3748}.warehouse-actions{min-width:260px}.warehouse-actions button{margin:3px}.warehouse-caption{padding:12px 24px;font-size:12px;color:#677387;line-height:1.6}.warehouse-section-heading{font-size:17px;padding:12px 24px 0}.warehouse-empty{padding:32px!important;color:#677387}.warehouse-dialog{width:min(650px,95vw);padding:28px;border:1px solid var(--line);border-radius:16px}.warehouse-dialog textarea{width:100%;min-height:100px;padding:12px}.warehouse-dialog input,.warehouse-dialog select{min-height:44px}.warehouse-dialog p{font-size:13px;line-height:1.6}.warehouse-dialog .dialog-header{gap:20px}.warehouse-tabs button{min-height:44px}.warehouse-dialog::backdrop{background:#172b4660}@media(max-width:1000px){.warehouse-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-source,.warehouse-toolbar{flex-wrap:wrap}.sidebar nav{flex-wrap:wrap}}
.warehouse-sales-chart{display:block;width:180px;height:36px}.warehouse-sales-chart rect{fill:var(--primary,var(--brand))}

/* Country overview keeps the existing Tortli desktop layout. */
.country-statistics-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:20px}.country-statistics-filters label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#4f5c72}.country-statistics-filters input{padding:10px;border:1px solid var(--line);border-radius:8px;background:white;min-height:44px}.country-statistics-filters>span{font-size:12px;color:#4f5c72;align-self:center}#country-statistics-feedback{font-size:12px;color:#4f5c72;line-height:1.6;margin-bottom:18px}#country-statistics-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.country-statistics-card table{min-width:760px;width:100%}.country-statistics-card th,.country-statistics-card td{font-size:12px;padding:16px 12px}.country-statistics-card th:first-child{min-width:170px;text-align:left}.country-statistics-card th:not(:first-child),.country-statistics-card td{text-align:right;font-variant-numeric:tabular-nums}.country-statistics-card tbody th{background:white;color:#344054}.country-statistics-card tfoot{background:var(--accent-subtle);font-weight:600}.country-statistics-notes{margin-top:18px;color:#4f5c72;font-size:12px;line-height:1.7}.country-statistics-notes p{margin:8px 0}@media(max-width:760px){#country-statistics-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.communication-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.communication-heading p{font-size:14px;color:#545c68}.communication-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,2fr);gap:24px;margin:20px 0}.communication-ticket{padding:14px 0;border-bottom:1px solid #d8dadd}.communication-ticket p,.communication-ticket small{font-size:13px;color:#545c68}.communication-ticket button{text-align:left}.communication-ticket button[aria-pressed=true]{font-weight:700;color:var(--brand)}.communication-comments{max-height:520px;overflow:auto;overscroll-behavior:contain}.communication-comment{padding:14px 16px;margin:10px 0;border:1px solid var(--line);border-radius:8px}.communication-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.communication-comment small{color:#545c68}.communication-private{background:#f3f4f5}.communication-form{border-top:1px solid #d8dadd;padding-top:20px}.communication-form textarea{min-height:140px}.communication-form input[readonly]{background:#f3f4f5}#zendesk-integration summary{cursor:pointer;padding:12px 0;font-weight:600}#zendesk-mailboxes{margin:20px 0}.communication-ticket a{font-size:13px}@media(max-width:800px){.communication-layout{grid-template-columns:1fr}.communication-heading{flex-direction:column}}

/* Packing follows the shared OMS cards, green actions and neutral selections. */
.packing-search-card{margin-bottom:22px}.packing-search-card label{font-size:12px;font-weight:600;display:block;margin-bottom:10px}.packing-search-row{display:flex;align-items:center;gap:12px}.packing-search-row .search{flex:1}.packing-search-row input{font-size:14px;min-height:46px}.packing-search-row select{min-height:46px}.packing-search-card .form-hint{margin:12px 0 0}#packing-feedback:empty{display:none}#packing-feedback{margin-top:12px;font-size:13px}.packing-order-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0;gap:20px}.packing-order-heading h2{font-size:27px;margin:7px 0}.packing-order-heading .badge{margin-left:12px}.packing-progress{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.packing-progress strong{font-size:26px}.packing-progress span{color:var(--muted);font-size:12px}.packing-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.packing-workspace .order-card{margin-bottom:18px}.packing-product{display:flex;align-items:center;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.packing-product-checked{background:var(--accent-subtle)}.packing-product-preview{width:90px;flex-shrink:0}.packing-product-preview .product-image{width:80px;height:80px}.packing-product-info{flex:1;min-width:0}.packing-product-info h3{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:8px}.packing-product-info small{display:block;color:var(--muted);font-size:12px;margin-top:8px}.packing-sku{font-size:12px;font-weight:650;overflow-wrap:anywhere}.packing-counter{display:flex;align-items:center;gap:12px;flex-shrink:0}.packing-counter button{min-height:44px;min-width:44px;font-size:23px}.packing-counter strong{font-variant-numeric:tabular-nums;font-size:16px;min-width:50px;text-align:center}.packing-summary h2,.packing-comments h2{font-size:15px;margin-bottom:18px}.packing-summary p{font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin:12px 0}.packing-summary strong{font-size:13px;overflow-wrap:anywhere}.packing-summary .button{width:100%;margin:7px 0;min-height:44px}.packing-payment{display:flex;justify-content:space-between;padding-top:14px;border-top:1px solid var(--line)}.packing-payment small,.packing-pickup small{display:block;color:var(--muted);font-size:11px}.packing-pickup{padding-top:12px;border-top:1px solid var(--line)}.packing-pickup strong{display:block;margin-top:6px}.packing-comment{border-top:1px solid var(--line);padding:16px 0}.packing-comment small{font-size:11px;color:var(--muted)}.packing-comment p{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}.packing-label-confirm{display:flex;gap:10px;align-items:flex-start;line-height:1.6;font-size:12px;padding:16px 0}.packing-label-confirm input{flex-shrink:0;margin-top:3px}.packing-empty{text-align:center;padding:65px 20px}.packing-empty svg{width:42px;height:42px;color:var(--muted)}.packing-empty h2{font-size:20px;margin:16px 0}.packing-empty p{font-size:13px;color:var(--muted)}.packing-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.packing-result{text-align:left;color:var(--text);cursor:pointer}.packing-result:hover{border-color:var(--brand)}.packing-result span,.packing-result small{display:block;margin-top:9px;font-size:12px}.packing-result small{color:var(--muted)}#packing-print-controls label{display:block;font-size:12px;margin:14px 0 8px}#packing-printer{width:100%}#packing-shipping .form-hint{font-size:11px}
@media(max-width:1100px){.packing-workspace{grid-template-columns:minmax(0,1fr) 280px}.packing-product{gap:10px}.packing-counter{gap:6px}.packing-product-preview{width:70px}.packing-product-preview .product-image{width:65px;height:65px}}
@media(max-width:760px){.packing-search-row{flex-wrap:wrap}.packing-search-row .search{min-width:100%}.packing-search-row select,.packing-search-row .button{flex:1}.packing-workspace{grid-template-columns:1fr}.packing-product{flex-wrap:wrap}.packing-counter{margin-left:auto}.packing-order-heading{align-items:flex-start}.packing-results{grid-template-columns:1fr}.packing-order-heading h2{font-size:23px}}

.packing-variant{display:inline-block;padding:5px 7px;margin:8px 6px 0 0;border:1px solid var(--accent-border);border-radius:5px;background:var(--accent-subtle);font-size:10px;font-weight:650}
.packing-location-mark{display:inline-block;margin:8px 0;padding:8px 12px;border:1px solid var(--border,#d8dadd);border-radius:8px;background:#e9eaec;font-weight:700;color:#26332e}.packing-location-date{display:block;color:var(--muted)}.packing-locations{margin:0 0 20px}.packing-locations summary{font-weight:700;cursor:pointer}.packing-locations form{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:18px 0}.packing-locations label{display:flex;flex-direction:column;gap:6px}.packing-locations input,.packing-locations select{min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}.packing-location-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}.packing-location-grid button{display:flex;flex-direction:column;align-items:start;min-height:76px}.packing-location-grid small{font-weight:400;color:var(--muted)}

/* SKU sales: readable desktop headings and persistent product classification. */
.sales-date-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.sales-date-filters label{display:grid;gap:7px;font-size:13px;color:#344054}.sales-date-filters input{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:white;color:#182339;font:inherit}.sales-date-filters>span{align-self:center;font-size:13px;color:#344054}.sales-product-table{min-width:1150px}.sales-product-table th{font-size:14px;font-weight:700;color:#182339;background:#e9eaec;padding:16px;letter-spacing:0;text-transform:none}.sales-product-table th:nth-child(-n+3){text-align:left}.sales-product-table th small{font-size:12px;line-height:1.5;color:#475467;letter-spacing:0}.sales-product-table td{font-size:14px;padding:14px 16px;color:#344054}.sales-product-table td:first-child{min-width:190px}.sales-product-table td:nth-child(2),.sales-product-table td:nth-child(3){min-width:170px}.sales-product-table tfoot th{background:#e9eaec}.sales-product-tools>label:not(.search){font-size:13px;color:#344054}.sales-product-tools select,.sales-product-tools input{font-size:14px}.sales-edit-label{display:block;margin-top:6px;min-height:32px;font-size:12px}#sales-label-dialog{width:min(560px,calc(100vw - 32px))}#sales-label-dialog .dialog-header{gap:16px}#sales-label-dialog h2{font-size:20px}

.sales-product-table{table-layout:fixed;min-width:1100px;white-space:normal}.sales-product-table th:nth-child(1){width:18%}.sales-product-table th:nth-child(2),.sales-product-table th:nth-child(3){width:16%}.sales-product-table th:nth-child(4){width:14%}.sales-product-table th:nth-child(n+5){width:9%}.sales-product-table th small{white-space:normal}.sales-product-table td{overflow-wrap:anywhere}

/* Packing workstation: product identity and instructions stay ahead of shipping controls. */
.packing-station-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.packing-station-toolbar>span{display:flex;align-items:center;gap:8px;font-weight:650;font-size:13px}.packing-station-toolbar .button{min-height:44px}.packing-search-card{box-shadow:0 6px 22px #1823390a}.packing-search-card label{font-size:14px}.packing-search-row .search{min-width:0}.packing-search-row input{font-size:18px;font-weight:600;min-height:52px}.packing-search-row .button,.packing-search-row select{min-height:52px}.packing-empty-steps{display:flex;justify-content:center;gap:12px;margin-top:28px;flex-wrap:wrap}.packing-empty-steps span{background:var(--accent-subtle);border-radius:7px;padding:10px 14px;font-size:13px}.packing-order-header{padding:16px 20px}.packing-order-header .packing-order-heading{margin:0 0 10px;gap:12px}.packing-order-identity{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;min-width:0}.packing-order-customer{font-size:14px;overflow-wrap:anywhere}.packing-order-identity .eyebrow{margin:0}.packing-order-header .packing-order-heading h2{font-size:26px;line-height:1.2;margin:0;font-variant-numeric:tabular-nums}.packing-order-tools{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.packing-order-tools .button{min-height:44px}.packing-order-chips{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap;margin-bottom:10px}.packing-order-chips .badge{margin:0}.packing-order-chips .packing-location-mark{margin:0;padding:6px 10px;font-size:13px}.packing-order-chips .packing-location-date{font-size:12px}.packing-detail-chip{background:var(--accent-subtle);border:1px solid var(--accent-border);border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600}.packing-cod{border-color:#d8ad56;background:#fff8e8;color:#775010}.packing-alert{margin-bottom:18px}.packing-workspace{grid-template-columns:minmax(0,1fr) 420px;gap:20px}.packing-products{padding:20px}.packing-products .products-heading{align-items:center;margin-bottom:16px}.packing-products .products-heading h2{font-size:16px;margin:0}.packing-products .products-heading>span{font-size:12px;color:#586579}.packing-product{display:grid;grid-template-columns:128px minmax(0,1fr) auto;gap:18px;padding:16px;margin-top:12px;border:1px solid var(--line);border-radius:12px}.packing-product-preview{width:128px}.packing-product-preview .product-image{width:128px;height:112px}.packing-product-info h3{font-size:12px;font-weight:500;color:#586579;line-height:1.5;margin-bottom:6px}.packing-sku{display:block;font-size:22px;font-weight:750;line-height:1.25;letter-spacing:.2px}.packing-product-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.packing-product-badges .packing-variant{margin:0;font-size:11px}.packing-quantity{display:inline-block;background:var(--text);color:white;padding:6px 9px;border-radius:6px;font-size:13px;font-weight:700}.packing-product-verification{display:flex;flex-direction:column;gap:12px;align-items:center}.packing-check-label{display:flex;gap:5px;align-items:center;font-size:12px;color:#586579}.packing-check-label svg{color:var(--brand);width:17px;height:17px}.packing-product-checked{border-color:#92a79d;background:var(--accent-subtle)}.packing-product-checked .packing-check-label{color:var(--brand);font-weight:650}.packing-counter{gap:7px}.packing-counter button{min-height:46px;min-width:46px;background:#fff}.packing-product-box{border-left:4px solid #c79a42}.packing-product-box-linked{margin-left:24px}.packing-box-target{margin-top:10px;font-size:12px;overflow-wrap:anywhere}.packing-important-comments{border:1px solid #d8ad56;background:#fffaf0;padding:20px}.packing-important-comments h2{display:flex;align-items:center;gap:8px;color:#775010;margin-bottom:12px}.packing-important-comments h2>span{margin-left:auto;font-size:12px}.packing-important-comments .packing-comment{border-color:#ecdcb8;padding:12px 0}.packing-important-comments .packing-comment:last-child{padding-bottom:0}.packing-important-comments .packing-comment p{font-size:16px;font-weight:550;margin:0 0 8px;color:#493c23}.packing-no-comments{font-size:12px;color:#586579;margin:0 0 20px}.packing-summary .order-card{padding:20px}.packing-summary #packing-shipping{border-top:3px solid var(--brand)}.packing-label-confirm{font-size:13px}.packing-summary #packing-shipping .form-hint{font-size:12px}.packing-station .sidebar{display:none}.packing-station .shell{margin-left:0}.packing-station main{padding-top:20px}.packing-station .page-heading{margin-bottom:18px}.packing-station #notice{display:none}.packing-station .topbar{height:48px}.packing-station .packing-workspace{grid-template-columns:minmax(0,1fr) 420px}
@media(max-width:1250px){.packing-product{grid-template-columns:96px minmax(0,1fr);gap:14px}.packing-product-preview,.packing-product-preview .product-image{width:96px}.packing-product-preview .product-image{height:96px}.packing-product-verification{grid-column:2;flex-direction:row;justify-content:space-between}.packing-sku{font-size:20px}.packing-workspace{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:760px){.packing-search-card{position:static}.packing-workspace,.packing-station .packing-workspace{grid-template-columns:1fr}.packing-order-heading{flex-direction:column;align-items:stretch}.packing-order-tools{justify-content:flex-start}.packing-product-box-linked{margin-left:12px}.packing-order-header{padding:18px}.packing-station-toolbar{gap:8px}.packing-station-toolbar>span{font-size:12px}}
.packing-image-missing{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:10px}.packing-image-missing span{font-size:11px;color:#586579;line-height:1.4;text-align:center}.packing-product-preview button.packing-image-missing svg{width:28px;height:28px}
.packing-instruction-dialog{width:min(720px,calc(100vw - 40px));max-height:90vh;overflow:auto;border:4px solid #d79a22;border-radius:16px;padding:28px;color:var(--text);background:white;box-shadow:0 24px 70px #0004}.packing-instruction-dialog::backdrop{background:#101828b8}.packing-instruction-symbol{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#f4b942;color:#573900;font-size:34px;font-weight:750;margin:0 auto 16px}.packing-instruction-dialog h2{text-align:center;font-size:24px;color:#684400;line-height:1.35;margin-bottom:10px}.packing-instruction-dialog #packing-instruction-lead{text-align:center;color:#775010;font-size:14px;line-height:1.6;margin-bottom:20px}.packing-instruction-list{display:grid;gap:10px;margin-bottom:22px}.packing-instruction-list p{padding:16px;border:1px solid #d8ad56;border-radius:10px;background:#fff8e8;color:#493c23;font-size:17px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}.packing-instruction-list a,.packing-comment a{color:var(--brand);text-decoration:underline;overflow-wrap:anywhere}.packing-instruction-dialog .button{display:flex;margin:auto;min-height:48px;font-size:15px}.packing-instruction-blocked{border-color:#c83d32}.packing-instruction-blocked .packing-instruction-symbol{background:#c83d32;color:white}.packing-instruction-blocked h2{color:#9e2f27}.packing-carton-notice{padding:22px 26px;border:0;border-radius:12px;background:#d6014e;color:#ffffff;margin-bottom:18px}.packing-carton-notice strong{font-size:14px;font-weight:800;letter-spacing:.7px}.packing-carton-notice p{margin-top:8px;font-size:24px;font-weight:800;line-height:1.4}

/* Packing-only accounts cannot navigate to other BMS modules. API enforces the role. */
.packing-only .sidebar {display:none;}
.packing-only .shell {margin-left:0;}
.packing-only #new-order,.packing-only #packing-station-toggle {display:none;}

.packing-only #orders-view,.packing-only #order-page-view {display:none;}

/* Physical variant labels remain readable independently of the artwork preview. */
.packing-product-badges .packing-color{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border:2px solid;font-size:13px;font-weight:800;line-height:1.3;letter-spacing:.025em}
.packing-product-badges .packing-color-white{background:#fff;color:#172033;border-color:#7b8794}
.packing-product-badges .packing-color-black{background:#111827;color:#fff;border-color:#111827}
.packing-product-badges .packing-color-gray{background:#808080;color:#000;border-color:#666}
.packing-product-badges .packing-color-pink{background:#fbcfe8;color:#6f1538;border-color:#db6b9b}
.packing-product-badges .packing-color-red{background:#b42318;color:#fff;border-color:#8f1d14}
.packing-product-badges .packing-color-magic{background:#4c2d7a;color:#fff;border-color:#3f2468}

.product-packing-state{display:inline-flex;align-items:center;gap:6px;width:fit-content;margin-top:8px;padding:6px 9px;border:1px solid var(--accent-border);border-radius:6px;background:var(--accent-subtle);color:var(--muted);font-size:12px;font-weight:650;line-height:1.4}
.product-packing-state svg{width:16px;height:16px;flex-shrink:0}
.product-packing-state.is-packed{color:var(--brand);border-color:#92a79d}
.product-packing-state.is-partial,.product-packing-state.is-review_required{color:#775010;background:#fff8e8;border-color:#d8ad56}
/* Native WMS production tools follow BMS spacing, focus and semantic colors. */
.wms-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.wms-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.wms-form-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.wms-form-row input,.wms-form-row select{flex:1;min-width:180px}.wms-check,.wms-layer{display:flex;gap:10px;align-items:center;margin:12px 0}.wms-check input,.wms-layer input{width:20px;min-width:20px}.wms-product,.wms-job{padding:16px 0;border-top:1px solid #d8dadd;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.wms-product>div,.wms-job>div{flex:1}.wms-layer img{width:80px;height:80px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.wms-job small,.wms-dimension small{display:block;font-weight:400;color:#516078;margin-top:6px}.wms-state{font-size:13px;font-weight:700;background:#e9eaec;padding:6px 10px;border-radius:6px}.wms-state.failed,.wms-state.unknown{color:#8d2525;background:#fff0f0}.wms-state.done{color:var(--brand)}.wms-job p{flex-basis:100%;margin:0}.wms-scroll{overflow:auto;margin-top:20px}.wms-scroll table{width:100%}.wms-dimension{display:grid;grid-template-columns:180px 140px 140px minmax(140px,1fr) auto auto;gap:12px;align-items:end;padding:16px 0;border-top:1px solid #d8dadd}.wms-dimension[hidden]{display:none}.wms-dimension label{font-size:12px}.wms-dimension input{margin-top:6px}.wms-dimensions{margin-top:20px}.wms-dimension strong{align-self:center}.wms-submenu .nav-item{padding-left:22px}#wms-view textarea{width:100%;resize:vertical}#wms-view label{display:block}#wms-view .wms-layer,#wms-view .wms-check{display:flex}@media(max-width:1100px){.wms-columns{grid-template-columns:1fr}.wms-dimension{grid-template-columns:repeat(3,minmax(130px,1fr))}}@media(max-width:600px){.wms-dimension{grid-template-columns:1fr 1fr}.wms-form-row{align-items:stretch;flex-direction:column}}

/* Scroll the whole navigation without shrinking or clipping its sections. */
.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:12px}
.sidebar>*{flex-shrink:0}
.nav-group{margin-bottom:12px}
.nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:8px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;cursor:pointer;list-style:none}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group>summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);flex-shrink:0}
.nav-group[open]>summary::after{transform:rotate(45deg)}
.nav-group>summary:hover{background:var(--brand-dark)}
.nav-group>summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.nav-group>nav,.nav-group>.future-modules{margin-top:8px}
.nav-group .nav-item{line-height:1.4}
.nav-group .nav-item>span[data-icon]{flex-shrink:0}
@media(max-width:760px){
  .sidebar{max-height:60dvh}
  .sidebar nav{display:block;margin-top:8px;overflow-x:visible}
  .sidebar nav .nav-item{font-size:12px;justify-content:flex-start;min-height:44px;margin-bottom:4px}
  .nav-group{margin-top:12px;margin-bottom:0}
}

/* BMS interface: shared hierarchy, neutral surfaces and progressive report detail. */
:root {
  --text:#24282f;
  --muted:#545c68;
  --line:#d8dadd;
  --color-heading:#343b45;
  --color-border-control:#858b94;
  --color-table-hover:#f6f7f8;
  --radius:10px;
  --shadow:none;
  font-size:14px;
  line-height:1.5;
}
.sidebar {width:320px;padding:24px 14px 0;overflow-y:auto;overscroll-behavior:contain;}
.shell {margin-left:320px;}
.brand {font-size:26px;}
.brand-sub {font-size:10px;letter-spacing:1px;}
.beta {color:var(--muted);font-size:10px;}
.workspace {margin:24px 0 20px;padding:10px;border:0;background:var(--accent-subtle);font-size:13px;}
.workspace-icon,.avatar {background:var(--accent-soft);color:var(--color-heading);}
.workspace div>span,.profile small {font-size:12px;}
.nav-group {margin-bottom:16px;}
.nav-group>summary,.nav-group>summary:hover {background:transparent;color:var(--muted);font-size:12px;font-weight:600;padding:8px 12px;min-height:40px;}
.nav-group>summary::after {width:6px;height:6px;border-width:1.5px;}
.nav-group>nav {margin-top:4px;}
.nav-item {font-size:13px;min-height:42px;margin-bottom:2px;padding:10px 12px;color:var(--muted);}
/* Ukryte w nawigacji na polecenie użytkownika 2026-11-30; widoki pozostają dostępne bezpośrednio. JS ustawia .hidden według uprawnień, stąd !important. */
.nav-hidden {display:none !important;}
.nav-item.active {background:var(--accent-soft);color:var(--text);font-weight:650;box-shadow:inset 3px 0 var(--brand);}
.nav-item.active svg {color:var(--brand);}
.nav-count,.soon {font-size:11px;color:var(--muted);}
.wms-submenu .nav-item {padding-inline-start:12px;}
.topbar {height:56px;background:var(--surface);padding-inline:32px;}
.breadcrumb,.local-label {font-size:12px;color:var(--muted);}
main {padding:28px 32px 32px;}
.page-heading {margin-bottom:22px;align-items:start;}
.eyebrow {font-size:11px;color:var(--muted);letter-spacing:1px;}
h1 {font-size:28px;font-weight:650;letter-spacing:-.6px;color:var(--text);line-height:1.25;}
.page-heading p {font-size:14px;line-height:1.5;margin-top:8px;}
.button {font-size:13px;min-height:42px;padding:10px 14px;box-shadow:none;}
.secondary,.icon-button {color:var(--color-heading);border-color:var(--color-border-control);}
input,select,textarea {border-color:var(--color-border-control);font-size:14px;}
input::placeholder {color:var(--muted);opacity:1;}
.notice {font-size:13px;padding:12px 16px;margin-bottom:20px;color:var(--muted);}
.notice-tag {font-size:10px;}
.stats,.order-summary,#orders-view>.report-disclosure .stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;margin-bottom:16px;}
.stat {border:0;border-radius:0;padding:16px 22px;box-shadow:none;background:transparent;}
.stat+.stat {border-inline-start:1px solid var(--line);}
.stat>div {font-size:13px;color:var(--muted);}
.stat strong {font-size:28px;line-height:1.2;letter-spacing:-.5px;margin:8px 0 5px;font-variant-numeric:tabular-nums;}
.stat small {font-size:12px;color:var(--muted);line-height:1.5;}
.orders-layout {grid-template-columns:224px minmax(0,1fr);gap:20px;}
.status-rail {border-radius:var(--radius);padding:16px 10px;}
.rail-heading h2 {font-size:14px;}
.rail-status {font-size:13px;min-height:40px;color:var(--muted);}
.rail-status strong,.rail-group h3,.rail-group h3 small,.rail-config,.rail-unit-hint {font-size:12px;color:var(--muted);}
.rail-status.active {color:var(--text);background:var(--accent-soft);font-weight:650;}
.card-top {padding:18px 20px;}
.card-top h2 {font-size:16px;line-height:1.4;color:var(--text);}
.card-top h2 span {font-size:12px;color:var(--muted);background:var(--accent-soft);}
.card-caption {font-size:12px;color:var(--muted);}
.order-market-filter {padding:0 20px 12px;}
.order-market-filter label {display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);}
.order-market-filter select {flex:1;max-width:360px;}
.filters {padding:0 20px 14px;gap:10px;}
.search input,.filter-label select {font-size:13px;color:var(--text);}
.search input {background:var(--surface);}
.search>span {color:var(--muted);}
.filters .filter-label select {min-width:0;}
.advanced-filters,.date-filters {padding-inline:0;gap:14px;flex-wrap:wrap;}
.advanced-filters label,.date-filters label {font-size:13px;color:var(--muted);}
.table-wrap {max-width:100%;overscroll-behavior-inline:contain;}
table {font-variant-numeric:tabular-nums;}
th {font-size:12px;font-weight:600;color:var(--muted);background:var(--accent-subtle);letter-spacing:0;padding:12px 16px;}
td {font-size:13px;color:var(--color-heading);padding:14px 16px;line-height:1.5;border-bottom-color:var(--line);}
.order-number {font-size:14px;}
.source-number,.date,.payment-label {font-size:12px;color:var(--muted);}
.market-pill,.badge {font-size:12px;line-height:1.4;}
.market-pill {width:auto;min-width:32px;padding-inline:5px;}
.badge {padding:4px 8px;}
.amount,.customer {color:var(--text);}
.table-footer {font-size:13px;color:var(--muted);padding:14px 20px;gap:14px;}
.table-footer .icon-button {min-height:36px;min-width:36px;}
.bottom-caption,.app-footer {font-size:12px;color:var(--muted);}
.report-disclosure {margin:12px 0 20px;color:var(--muted);font-size:13px;}
.report-disclosure>summary {cursor:pointer;min-height:40px;padding:9px 0;font-weight:550;}
.report-disclosure>summary:focus-visible,summary:focus-visible {outline:3px solid var(--brand);outline-offset:3px;}
.report-disclosure[open]>summary {margin-bottom:8px;color:var(--text);}
.report-disclosure p {line-height:1.65;max-width:90ch;}
.order-more-filters {margin:0;padding:0 20px 12px;}
.report-toolbar {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 20px;gap:14px;margin-bottom:16px;}
.report-toolbar label {font-size:13px;color:var(--muted);}
.sales-date-filters {align-items:end;}
.sales-date-filters input {border-color:var(--color-border-control);}
.sales-date-filters>span {font-size:12px;color:var(--muted);}
.sales-data-note,.sales-definition {font-size:13px;line-height:1.6;color:var(--muted);}
.sales-product-tools {margin:16px 0;align-items:end;gap:12px;}
.sales-product-tools>.search {flex:1 1 240px;}
.sales-product-tools .check-label {display:flex;gap:8px;align-self:center;}
.sales-product-table {table-layout:auto;min-width:0;white-space:normal;}
.sales-product-table th {background:var(--accent-subtle);color:var(--muted);font-size:12px;font-weight:600;padding:12px 16px;}
.sales-product-table th:nth-child(n) {width:auto;}
.sales-product-table td {padding:14px 16px;font-size:14px;min-width:0!important;color:var(--color-heading);}
.sales-product-table th small {font-size:11px;color:var(--muted);line-height:1.5;}
.sales-product-table th:last-child,.sales-number {text-align:end;}
.sales-product-table td:first-child {width:25%;}
.sales-product-table td:nth-child(2) {width:30%;}
.sales-product-table tfoot th,.sales-product-table tfoot td {background:var(--accent-subtle);font-size:13px;font-weight:600;}
.sales-product-table .comparison-column {display:none;}
.sales-product-table.show-comparison .comparison-column {display:table-cell;}
.sales-product-table.show-comparison {min-width:1040px;}
.sales-edit-label {display:inline-flex;margin:0 0 0 8px;padding:4px 6px;font-size:12px;text-decoration:underline;text-underline-offset:3px;}
.shipment-filter-card {padding:16px 20px;}
.shipment-metrics {gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface);}
.shipment-metric {border:0;border-radius:0;background:var(--surface);padding:16px 20px;box-shadow:none;}
.shipment-metric+.shipment-metric {border-inline-start:1px solid var(--line);}
.shipment-metric>span {font-size:13px;color:var(--muted);}
.shipment-metric>strong {font-size:28px;}
.shipment-metric>small {font-size:12px;color:var(--muted);}
.shipment-metric.is-late {background:var(--surface);}
.shipment-metric.is-late>strong {color:var(--shipment-danger);}
.shipment-metric.active {background:var(--accent-soft);box-shadow:inset 0 -3px var(--brand);}
.shipment-metric.active.is-late {box-shadow:inset 0 -3px var(--shipment-danger);}
.shipment-table {min-width:760px;table-layout:auto;}
.shipment-table th:nth-child(n) {width:auto;}
.shipment-table td,.shipment-table th {font-size:13px;padding:14px 16px;}
.shipment-table .shipment-fact {display:block;line-height:1.5;margin:0;}
.shipment-table .shipment-fact>span {display:inline;margin-inline-end:8px;}
.shipment-table .shipment-fact>strong {display:inline;text-align:start;font-size:13px;}
.shipment-events {margin:0;min-width:100px;}
.shipment-events summary {font-size:13px;padding:8px 0;min-height:36px;}
.shipment-events[open] {min-width:230px;}
.shipment-detail-facts .shipment-fact {padding:5px 0;}
.shipment-detail-facts .shipment-fact>span,.shipment-detail-facts .shipment-fact>strong {display:block;white-space:normal;overflow-wrap:anywhere;}
.shipment-row-late {background:var(--surface);}
.shipment-table .badge {font-size:12px;}
.shipment-warning {font-size:12px;}
.shipment-scope {font-size:13px;}
.shipment-feedback {font-size:13px;line-height:1.5;}
#country-statistics-cards {grid-template-columns:repeat(4,minmax(0,1fr));}
.country-statistics-card {margin-bottom:20px;}
.country-statistics-card table {min-width:0;}
.country-statistics-card th,.country-statistics-card td {font-size:14px;padding:14px 20px;}
.country-statistics-card thead th {font-size:12px;}
#production-country-table .production-extra,#production-daily-table .daily-country {display:none;}
#production-country-table.show-queues .production-extra,#production-daily-table.show-countries .daily-country {display:table-cell;}
#production-daily-table.show-countries table {min-width:1000px;}
#country-statistics-feedback {font-size:13px;color:var(--muted);}
#country-statistics-feedback.is-warning {color:var(--shipment-danger,#b42318);font-weight:600;}
dialog,.settings-list,.shipment-events ol {overscroll-behavior:contain;}
@media (hover:hover) {tbody tr:hover {background:var(--color-table-hover);} .nav-item:hover {background:var(--accent-subtle);} .shipment-row-late:hover {background:var(--shipment-danger-bg);} }
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important;animation:none!important;scroll-behavior:auto!important;} }
@media (max-width:1200px) and (min-width:761px) {
  .sidebar {width:320px;padding-inline:10px;}
  .shell {margin-left:320px;}
  main {padding:24px;}
  .orders-layout {grid-template-columns:280px minmax(0,1fr);gap:16px;}
  .shipment-metric {padding:14px;}
}
@media (max-width:760px) {
  .sidebar {position:static;width:100%;padding:16px;max-height:none;}
  .shell {margin-left:0;}
  .nav-group>nav {display:flex;flex-wrap:wrap;}
  .nav-item {width:auto;}
  .topbar {padding-inline:16px;}
  main {padding:20px 16px;}
  .page-heading,.heading-actions {flex-wrap:wrap;}
  .stats,.order-summary,#orders-view>.report-disclosure .stats,#country-statistics-cards {grid-template-columns:1fr;}
  .stat+.stat {border-inline-start:0;border-block-start:1px solid var(--line);}
  .orders-layout {grid-template-columns:minmax(0,1fr);}
  .filters {flex-wrap:wrap;}
  .filters .filter-label {flex-basis:100%;}
  .report-toolbar {padding:16px;}
  .report-toolbar>label,.sales-product-tools>label {min-width:0;flex:1 1 100%;}
  .report-toolbar input,.report-toolbar select {max-width:100%;width:100%;}
  .report-toolbar input[type=checkbox] {width:16px;}
  .report-toolbar .check-label {flex-direction:row;}
  .sales-product-table {min-width:500px;}
  .country-statistics-card table {min-width:480px;}
  .table-footer {flex-wrap:wrap;}
  .shipment-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  .shipment-metric>span,.shipment-metric>small {overflow-wrap:anywhere;}
  .shipment-metric:nth-child(3) {border-inline-start:0;}
  .shipment-metric:nth-child(n+3) {border-block-start:1px solid var(--line);}
}
/* Keep report results near the controls; source warnings stay visible. */
#sales-selected-range {display:none;}
#sales-coverage {background:transparent;border:0;padding:0;margin:8px 0;color:var(--muted);font-size:13px;line-height:1.5;}
.sales-product-tools>label:not(.search):not(.check-label) {display:grid;gap:6px;align-items:start;}
.sales-product-tools>label:not(.search):not(.check-label) select {max-width:220px;}
.sales-product-tools .search {padding:0;}
.sales-product-table td.sales-number {font-size:16px;font-weight:600;color:var(--text);}
.country-statistics-card .check-label {display:flex;gap:8px;font-size:13px;}
@media (max-width:760px) {.sales-product-tools>label:not(.search):not(.check-label) select {max-width:100%;}}
.order-summary .stat {padding:14px 20px;}
.order-summary .stat strong {font-size:26px;margin:5px 0;}
.orders-layout .filters {align-items:end;flex-wrap:wrap;}
.orders-layout .filters>label:first-child {display:grid;gap:6px;flex:0 1 180px;min-width:0;font-size:12px;color:var(--muted);}
.orders-layout .filters>label:first-child select {width:100%;font-size:13px;}
.orders-layout .filters .search {flex:1 1 200px;min-width:160px;}
.orders-layout .filters .filter-label {flex:0 1 180px;}
@media(max-width:1000px) {.orders-layout .filters>label:first-child,.orders-layout .filters .filter-label {flex:1 1 100%;} .orders-layout .filters .search {flex-basis:100%;}}
#shipment-detail-dialog {width:min(720px,calc(100vw - 32px));}
#shipment-detail-content .shipment-detail-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;margin-top:20px;}
#shipment-detail-content .shipment-fact {display:block;padding:8px 0;}
#shipment-detail-content .shipment-fact>span,#shipment-detail-content .shipment-fact>strong {display:block;text-align:start;white-space:normal;overflow-wrap:anywhere;font-size:13px;}
#shipment-detail-content .shipment-fact>span {color:var(--muted);}
@media(max-width:760px) {#shipment-detail-content .shipment-detail-facts {grid-template-columns:1fr;}}
.table-wrap:focus-visible {outline:3px solid var(--brand);outline-offset:-3px;}

/* Stord-inspired direction: graphite navigation, quiet surfaces, blue accents. */
:root {
  --bg:#f8f9fb;
  --surface:#ffffff;
  --text:#20212a;
  --muted:#5c5e6d;
  --line:#e6e7ed;
  --brand:#245f99;
  --brand-dark:#1b4b7a;
  --accent-soft:#edf4fb;
  --accent-subtle:#f5f8fc;
  --accent-border:#bad0e5;
  --color-heading:#373943;
  --color-border-control:#858695;
  --color-table-hover:#f5f8fc;
  --color-nav-bg:#ffffff;
  --color-nav-text:#5c5e6d;
  --color-nav-selected:#edf4fb;
  --color-chart:#477fab;
  --color-chart-fill:#edf4fb;
  --color-chart-secondary:#8ab4d8;
  --radius:12px;
  --shadow:0 1px 3px #20212a06,0 5px 18px #20212a03;
}
.sidebar {background:var(--color-nav-bg);color:var(--color-nav-text);width:320px;border:0;border-right:1px solid var(--line);padding:24px 12px 0;}
.brand {color:var(--text);padding-inline:10px;gap:12px;letter-spacing:-1px;}
.brand-mark {background:var(--accent-soft);color:var(--brand);border-radius:12px;font-size:28px;width:38px;height:38px;}
.brand-sub {color:var(--color-nav-text);font-size:9px;}
.beta {background:var(--color-nav-selected);color:var(--color-nav-text);}
.workspace {background:#f8f9fc;color:var(--text);}
.workspace-icon,.sidebar .avatar {background:var(--accent-soft);color:var(--brand);}
.workspace div>span,.profile small {color:var(--color-nav-text);}
.workspace-dot {background:var(--color-chart-secondary);}
.nav-group>summary,.nav-group>summary:hover {color:var(--muted);background:transparent;font-size:11px;letter-spacing:.4px;}
.nav-item {color:var(--color-nav-text);border-radius:12px;min-height:44px;gap:12px;font-size:13px;}
.nav-item.active {background:var(--color-nav-selected);color:var(--brand);box-shadow:none;}
.nav-item.active svg {color:var(--brand);}
.nav-count,.soon {color:var(--brand);background:var(--accent-soft);font-size:10px;}
.nav-group>summary:focus-visible,.nav-item:focus-visible,.sidebar a:focus-visible {outline-color:var(--color-chart-secondary);}
.profile {border-color:var(--line);color:var(--text);font-size:12px;}
.phase {display:none;}
.topbar {background:var(--surface);height:60px;justify-content:start;gap:16px;}
.top-right {margin-inline-start:auto;}
#nav-toggle {border:0;background:transparent;min-width:36px;min-height:36px;color:var(--muted);}
.page-heading {margin-bottom:20px;}
.eyebrow {font-size:10px;letter-spacing:1.1px;}
h1 {font-size:30px;letter-spacing:-.8px;font-weight:700;}
.page-heading p {font-size:13px;}
.primary {box-shadow:none;}
.button {border-radius:999px;padding-inline:18px;}
.icon-button {border-radius:12px;}
.secondary {border-color:var(--color-border-control);}
.notice {border-color:var(--line);background:var(--surface);color:var(--muted);padding-block:10px;box-shadow:var(--shadow);}
.notice svg {color:var(--brand);}
.notice-tag {background:var(--accent-subtle);border-color:var(--accent-border);color:var(--brand);}
.orders-card,.status-rail,.market-card,.integration-card,.report-toolbar {box-shadow:var(--shadow);border-color:var(--line);border-radius:var(--radius);}
.stats,.order-summary,#orders-view>.report-disclosure .stats,#country-statistics-cards {background:transparent;border:0;overflow:visible;gap:16px;}
.stat,.order-summary .stat {border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:20px 22px;position:relative;}
.stat+.stat {border-inline-start:1px solid var(--line);}
.stat::before {content:'';position:absolute;inset:0 22px auto;height:2px;background:var(--accent-border);}
.stat strong {font-size:32px;font-weight:650;letter-spacing:-.8px;}
.stat>div {color:var(--color-heading);font-size:13px;font-weight:550;}
.stat small {font-size:12px;}
.dot.blue,.phase-dot,.local-label i {background:var(--brand);}
.rail-status.active {background:var(--accent-soft);color:var(--brand);}
@media(hover:hover) {.rail-status:hover {color:var(--brand);}}
.rail-heading .icon-button {color:var(--muted);}
.order-number,.text-button {color:var(--brand);}
.color-blue,.status-new,.status-ready_to_pack {--status-bg:var(--accent-soft);--status-text:var(--brand);background:var(--accent-soft);color:var(--brand);}
.color-green,.status-shipped {--status-bg:#eef1f6;--status-text:#414b5d;background:#eef1f6;color:#414b5d;}
.color-violet {background:#f2edff;color:#6e42a5;}
.payment-paid {color:#414b5d;}
.badge {border-radius:999px;padding:5px 10px;font-size:12px;font-weight:500;}
.market-pill {border:0;background:#f1f1f5;color:var(--muted);}
.workflow-tabs [aria-pressed=true] {background:var(--accent-soft);border-color:var(--accent-border);color:var(--brand);}
.shipment-metrics {border:0;gap:16px;overflow:visible;background:transparent;}
.shipment-metric {border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:var(--surface);padding:18px 20px;}
.shipment-metric+.shipment-metric {border-inline-start:1px solid var(--line);}
.shipment-metric>strong {font-size:30px;}
.shipment-metric.active {background:var(--accent-subtle);box-shadow:inset 0 -3px var(--brand),var(--shadow);}
.shipment-metric.is-late>strong {color:var(--shipment-danger);}
.shipment-metric.active.is-late {box-shadow:inset 0 -3px var(--shipment-danger),var(--shadow);}
.insight-card {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 24px;margin:18px 0;display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:40px;}
.insight-total {display:flex;flex-direction:column;justify-content:center;gap:6px;}
.insight-total>span {font-size:13px;color:var(--color-heading);font-weight:550;}
.insight-total>strong {font-size:36px;line-height:1.2;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums;}
.insight-total>small {font-size:12px;color:var(--muted);}
.insight-ranking h2,.insight-chart-heading h2 {font-size:15px;font-weight:600;letter-spacing:-.2px;margin-bottom:12px;}
.chart-bar-row {display:grid;grid-template-columns:minmax(110px,1fr) minmax(80px,2fr) 50px;gap:14px;align-items:center;margin-block:10px;font-size:12px;}
.chart-bar-row>span {overflow-wrap:anywhere;}
.chart-bar-row>strong {text-align:end;font-weight:600;font-variant-numeric:tabular-nums;}
.chart-bar-track {height:10px;border-radius:3px;background:var(--accent-subtle);overflow:hidden;}
.chart-bar-fill {display:block;width:100%;height:100%;fill:var(--color-chart);}
.chart-bar-row:nth-of-type(2) .chart-bar-fill {fill:#968ced;}
.chart-bar-row:nth-of-type(3) .chart-bar-fill {fill:var(--color-chart-secondary);}
.production-trend {display:block;margin-bottom:22px;}
.insight-chart-heading {display:flex;justify-content:space-between;gap:16px;align-items:start;}
.insight-chart-heading h2 {margin-bottom:4px;}
.insight-chart-heading p {font-size:12px;color:var(--muted);}
.chart-legend {display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;white-space:nowrap;}
.chart-legend i {width:8px;height:8px;border-radius:50%;background:var(--color-chart);}
.production-chart {display:block;width:100%;height:auto;max-height:200px;margin-top:20px;overflow:visible;stroke:none;}
.chart-grid-line {stroke:var(--line);stroke-width:1;}
.chart-area {fill:var(--color-chart-fill);stroke:none;}
.chart-line {stroke:var(--color-chart);stroke-width:2.5;fill:none;stroke-linejoin:round;}
.chart-point {fill:var(--color-chart);stroke:var(--surface);stroke-width:1.5;}
.chart-axis-label {fill:var(--muted);stroke:none;font-size:12px;font-family:inherit;}
body.nav-compact .sidebar {width:76px;padding-inline:12px;overflow-x:hidden;}
body.nav-compact .shell {margin-left:76px;}
body.nav-compact .brand {padding:0;justify-content:center;}
body.nav-compact .brand-name,body.nav-compact .beta,body.nav-compact .workspace,body.nav-compact .nav-text,body.nav-compact .nav-count,body.nav-compact .soon,body.nav-compact .profile>div,body.nav-compact [data-nav-group=future] {display:none;}
body.nav-compact .nav-group>summary {font-size:9px;letter-spacing:0;padding:6px 2px;gap:4px;justify-content:center;overflow-wrap:anywhere;line-height:1.3;}
body.nav-compact [data-nav-group=workspace]>summary {font-size:0;min-height:20px;}
body.nav-compact .nav-item {justify-content:center;padding:12px 0;gap:0;}
body.nav-compact .nav-item svg {width:20px;height:20px;}
body.nav-compact .profile {padding:16px 0;justify-content:center;}
@media (hover:hover) {
 .sidebar .nav-item:hover {background:var(--accent-subtle);color:var(--brand);}
 .secondary:hover {background:var(--accent-subtle);border-color:var(--brand);color:var(--brand);}
 .insight-card:hover {border-color:var(--accent-border);}
}
@media (prefers-reduced-motion:no-preference) {
 .button {transition:background-color 150ms,color 150ms,border-color 150ms,scale 150ms ease-out;}
 .button:not(:disabled):active {scale:.96;}
 .insight-card {transition:border-color 150ms ease-out;}
 main {animation:bms-enter 300ms cubic-bezier(.2,0,0,1);}
 @keyframes bms-enter {from {opacity:0;transform:translateY(12px);} to {opacity:1;transform:translateY(0);}}
}
@media(max-width:1200px) and (min-width:761px) {body:not(.nav-compact) .sidebar {width:320px;}body:not(.nav-compact) .shell {margin-left:320px;}}
@media(max-width:760px) {
 body.nav-compact .sidebar,.sidebar {position:static;width:100%;padding:14px 16px;}
 body.nav-compact .shell,.shell {margin-left:0;}
 body.nav-compact .brand {justify-content:start;}
 body.nav-compact .brand-name {display:inline;}
 body.nav-compact .nav-text {display:inline;font-size:12px;}
 body.nav-compact .nav-item {width:auto;padding:10px;gap:8px;}
 body.nav-compact .nav-group>summary {font-size:12px;justify-content:space-between;min-height:40px;}
 body.nav-compact [data-nav-group=workspace]>summary {font-size:12px;}
 #nav-toggle {display:none;}
 .topbar {padding-inline:16px;gap:8px;}
 .breadcrumb {min-width:0;}
 .top-right {gap:10px;}
 .top-right .avatar {display:none;}
 .insight-card {grid-template-columns:minmax(0,1fr);gap:20px;padding:20px;}
 .chart-bar-row {grid-template-columns:minmax(70px,1fr) minmax(40px,1fr) 32px;gap:8px;}
 .insight-chart-heading {flex-direction:column;}
 .production-chart {min-height:130px;}
 .stat+.stat {border:1px solid var(--line);}
 .shipment-metric:nth-child(n) {border:1px solid var(--line);}
 .shipment-metrics {gap:10px;}
 h1 {font-size:27px;}
}
/* The typography roles, rather than decoration, carry the interface hierarchy. */
:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:16px;
  --type-caption:.75rem;
  --type-label:.8125rem;
  --type-body:.875rem;
  --type-heading:1.0625rem;
  --type-title:1.75rem;
  --type-metric:2.25rem;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
h1 {font-size:var(--type-title);line-height:1.25;font-weight:500;letter-spacing:-.02em;text-wrap:balance;}
.page-heading p {font-size:var(--type-body);line-height:1.5;font-weight:400;letter-spacing:0;}
.eyebrow {font-size:var(--type-caption);font-weight:500;letter-spacing:.06em;}
.card-top h2,.insight-ranking h2,.insight-chart-heading h2,.rail-heading h2 {font-size:var(--type-heading);font-weight:500;line-height:1.3;letter-spacing:-.01em;text-wrap:balance;}
.button,.nav-item,.search input,.filter-label select,.report-toolbar label,.sales-product-tools>label:not(.search) {font-size:var(--type-label);font-weight:400;line-height:1.4;letter-spacing:0;}
input,select,textarea {font-size:var(--type-body);font-weight:400;line-height:1.5;}
.stat strong,.order-summary .stat strong,.insight-total>strong,.shipment-metric>strong {font-size:var(--type-metric);font-weight:500;letter-spacing:-.025em;line-height:1.1;font-variant-numeric:tabular-nums;}
.stat>div,.shipment-metric>span,.insight-total>span {font-size:var(--type-body);font-weight:500;line-height:1.5;color:var(--color-heading);}
.stat small,.insight-total>small,.shipment-metric>small,.card-caption,.source-number,.date,.table-footer,.sales-definition,#sales-updated,.chart-bar-row {font-size:var(--type-caption);line-height:1.5;font-weight:400;letter-spacing:0;color:var(--muted);}
th,.sales-product-table th,.shipment-table th {font-size:var(--type-caption);font-weight:500;line-height:1.5;letter-spacing:0;color:var(--muted);background:#f7f7fa;}
td,.sales-product-table td,.shipment-table td {font-size:var(--type-body);font-weight:400;line-height:1.5;letter-spacing:0;}
.order-number,.sales-product-table td:first-child strong {font-size:var(--type-body);font-weight:600;line-height:1.4;}
.sales-product-table td.sales-number,.amount {font-size:var(--type-body);font-weight:600;}
.sales-product-table th:nth-child(4),.sales-product-table td:nth-child(4) {background:var(--accent-subtle);}
.sales-product-table td:nth-child(4) {color:var(--brand);}
.sales-product-table tfoot td:nth-child(4) {background:var(--accent-soft);color:var(--brand);}
.sales-product-table th small {display:block;margin-top:4px;font-size:var(--type-caption);font-weight:400;}
.customer {overflow:visible;white-space:normal;overflow-wrap:anywhere;max-width:240px;}
p {text-wrap:pretty;}
.report-disclosure p,.form-hint {max-width:75ch;}
a {text-decoration-thickness:from-font;text-underline-position:from-font;}
::selection {color:#153c63;background:#d5e6f5;}
body.packing-only .shell {margin-left:0;}
body.packing-only #nav-toggle {display:none;}
@media(max-width:760px) {
 input,select,textarea,.search input,.filter-label select,.sales-product-tools input,.sales-product-tools select {font-size:1rem;}
 h1 {font-size:1.75rem;}
 .insight-total>strong {font-size:2rem;}
}

/* Clear row hierarchy and soft selection, following the order-list reference. */
.order-number,.sales-product-table td:first-child strong,.sales-product-table td.sales-number,.amount {font-weight:500;}
.nav-item.active {font-weight:500;}
.stat::before {display:none;}
.eyebrow {display:none;}
.orders-table tbody tr:hover,.sales-product-table tbody tr:hover,.shipment-table tbody tr:hover {background:#f3f4f9;}
.rail-status.active {border-radius:12px;font-weight:500;}
.search,input:not([type=checkbox]):not([type=radio]),select,textarea {border-radius:10px;}
@media(min-width:1201px) {.orders-layout {grid-template-columns:340px minmax(0,1fr);gap:16px;}}
@media(min-width:1101px) {#orders-view .orders-layout {grid-template-columns:var(--status-rail-width,420px) 16px minmax(0,1fr);column-gap:0;}}
@media(min-width:761px) and (max-width:1100px) {#orders-view .orders-layout {grid-template-columns:minmax(0,1fr);}}
.rail-heading-actions{display:flex;align-items:center;gap:4px;}
.status-rail-resizer{display:flex;justify-content:center;align-self:stretch;cursor:col-resize;touch-action:none;position:relative;min-height:80px;}
.status-rail-resizer::before{content:'';position:absolute;inset-block:8px;inset-inline-start:calc(50% - 1px);width:2px;background:var(--line);}
.status-rail-resizer>span[aria-hidden]{position:sticky;top:calc(50dvh - 20px);align-self:start;display:block;margin-block-start:24px;width:4px;height:40px;border-radius:4px;background:var(--muted);pointer-events:none;}
.status-rail-resizer:is(:hover,:focus-visible)::before,.resizing-status-rail .status-rail-resizer::before{background:var(--brand);}
.status-rail-resizer:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:4px;}
.resizing-status-rail,.resizing-status-rail *{cursor:col-resize!important;user-select:none!important;}
@media(max-width:1100px){.status-rail-resizer,.status-width-button{display:none;}}
#orders-view .orders-card table td,#orders-view .orders-card table th {padding-inline:12px;}
#orders-view .orders-card .customer {min-width:140px;overflow-wrap:break-word;}
#orders-view .orders-card .source-number {max-width:160px;white-space:normal;overflow-wrap:anywhere;}
#orders-view .orders-card .check-cell {width:40px;}

/* Status navigation: named stages, separate order counts and visible selection. */
.status-rail {padding:18px 10px;}
.rail-heading {padding:0 8px 14px;}
.rail-heading h2 {font-size:18px;}
.rail-status {padding:8px 10px;min-height:44px;color:var(--text);gap:9px;border:1px solid transparent;}
.rail-label {gap:5px;min-width:0;}
.rail-name-row {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.rail-metrics {display:inline-flex;align-items:center;gap:8px;flex-shrink:0;}
.rail-name,.rail-children .rail-name {font-size:14px;font-weight:400;line-height:1.45;overflow-wrap:break-word;}
.rail-order-count {display:inline-flex;align-items:center;justify-content:center;min-width:26px;padding:2px 6px;border-radius:7px;background:#eef0f5;color:#414657;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1.4;}
.rail-counts,.rail-children .rail-counts {font-size:12px;color:var(--muted);line-height:1.5;white-space:nowrap;}
.rail-status.active {background:var(--accent-soft);border-color:var(--accent-border);box-shadow:inset 3px 0 var(--brand);}
.rail-status.active .rail-name {font-weight:500;color:var(--brand);}
.rail-status.active .rail-order-count {background:var(--brand);color:white;}
.rail-marker {width:8px;height:8px;margin-top:6px;}
.rail-group {border-top:0;padding-top:0;margin-top:10px;}
.rail-group>summary {padding:8px;background:#f7f8fb;border-radius:9px;margin-bottom:4px;}
.rail-group>summary h3 {font-size:13px;font-weight:500;color:var(--text);padding:0;line-height:1.5;}
.rail-group>summary .rail-group-total {font-size:12px;color:var(--muted);margin:4px 0 0;white-space:normal;line-height:1.5;}
.rail-chevron {font-size:22px;color:var(--muted);}
.rail-children {margin-inline-start:14px;padding-inline-start:7px;border-left:2px solid var(--accent-border);}
.rail-children .rail-status {padding:8px 7px;}
.rail-config {font-size:13px;line-height:1.5;}
.rail-unit-hint {font-size:12px;line-height:1.5;padding:14px 8px 0;}
.rail-status:focus-visible {outline:3px solid var(--brand);outline-offset:2px;}
#status-rail-list>.rail-unmatched {margin-block-start:16px;color:#a12632;background:#fff0f1;border-color:#f2c4c9;}
#status-rail-list>.rail-unmatched .rail-name,#status-rail-list>.rail-unmatched .rail-counts {color:inherit;}
#status-rail-list>.rail-unmatched .rail-order-count {background:#a12632;color:#fff;}
@media(hover:hover) {.rail-status:hover:not(.active) {background:var(--accent-subtle);border-color:var(--line);}}
#orders-view .orders-card .source-number {max-width:144px;}
#orders-view .orders-card .check-cell {padding-inline:8px;}
@media(max-width:760px) {
 #status-rail-list {display:block;max-height:380px;overflow-y:auto;}
 #status-rail-list>.rail-status {max-width:none;min-width:0;width:100%;}
 .rail-group {min-width:0;margin-top:12px;}
}
.rail-marker[class*=color-] {background:var(--status-text);}
.rail-marker.color-blue {background:var(--brand);}

/* Production ZIPs are aligned file cards, rather than a wrapping row of links. */
.wms-package-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;}
.wms-package-file {display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0;}
.wms-package-file-all {grid-column:1/-1;background:var(--accent-subtle);border-color:var(--accent-border);}
.wms-package-file-icon {display:flex;align-items:center;justify-content:center;width:44px;height:48px;flex-shrink:0;background:#f0f1f7;border-radius:10px;color:#515568;font-size:12px;font-weight:500;}
.wms-package-file-all .wms-package-file-icon {background:var(--accent-soft);color:var(--brand);}
.wms-package-file-info {flex:1;min-width:0;}
.wms-package-file-info h3 {font-size:15px;font-weight:500;line-height:1.5;margin:0;overflow-wrap:anywhere;}
.wms-package-file-info p {font-size:12px;line-height:1.5;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere;}
.wms-package-file .button {flex-shrink:0;gap:6px;}
.wms-package-status {display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;font-size:13px;line-height:1.5;}
.wms-package-status strong {font-weight:500;}
.wms-package-status>span {color:var(--muted);font-size:12px;}
.wms-package-day-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;min-height:48px;}
.wms-package-day-heading::-webkit-details-marker {display:none;}
.wms-package-day-heading>div {min-width:0;}
.wms-package-day-heading h2 {font-size:18px;font-weight:500;line-height:1.4;margin:0 0 8px;}
.wms-package-day-heading:focus-visible {outline:2px solid var(--brand);outline-offset:6px;border-radius:6px;}
.wms-package-chevron {font-size:28px;line-height:1;color:var(--brand);flex-shrink:0;}
.wms-package-day[open]>.wms-package-day-heading .wms-package-chevron {transform:rotate(90deg);}
.wms-package-day .wms-package-grid {margin-bottom:0;}
.wms-package-controls>p {font-size:13px;color:var(--muted);line-height:1.6;max-width:85ch;}
#wms-package .wms-form-row {align-items:center;justify-content:flex-start;}
#wms-package-date {flex:0 1 220px;width:220px;}
@media(max-width:1000px) {.wms-package-grid {grid-template-columns:minmax(0,1fr);}}
@media(max-width:600px) {
 .wms-package-file {display:grid;grid-template-columns:44px minmax(0,1fr);padding:16px;}
 .wms-package-file .button {grid-column:2;justify-self:start;}
 #wms-package .wms-form-row {align-items:start;}
 #wms-package-date {flex:none;max-width:100%;}
}

.wms-package-controls>h2 {font-size:17px;font-weight:500;line-height:1.4;}

/* Keep production-label fields stacked within their own columns. */
.wms-label-card>h2 {font-size:17px;font-weight:500;line-height:1.4;}
.wms-label-card>p {font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:24px;max-width:85ch;}
.wms-piece-picker{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.wms-piece-picker p{flex-basis:100%}.wms-piece-picker button{display:flex;align-items:center;gap:10px;min-height:64px;text-align:left}.wms-piece-picker img{object-fit:cover;border-radius:6px}
#wms-label {display:grid;gap:24px;}
#wms-label .form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;}
#wms-label .form-grid>label {display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;font-size:13px;line-height:1.5;color:var(--color-heading);}
#wms-label .form-grid input,#wms-label .form-grid select {display:block;width:100%;min-width:0;max-width:100%;margin:0;min-height:44px;}
#wms-label .wms-check {display:flex;align-items:start;gap:10px;margin:0;font-size:14px;line-height:1.5;}
#wms-label .wms-check input {flex:0 0 20px;margin:1px 0 0;}
#wms-label .wms-form-row {margin:0;gap:12px;}
@media(max-width:760px) {#wms-label .form-grid {grid-template-columns:minmax(0,1fr);gap:20px;}}
/* SKU dimensions: aligned fields and explicit completeness warnings. */
.wms-dimension-card>h2 {font-size:17px;font-weight:500;line-height:1.4;}
.wms-dimension-card>p {font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:20px;}
.wms-dimension-summary {display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#f7f8fc;margin-bottom:20px;}
.wms-dimension-summary strong {font-size:15px;font-weight:500;}
.wms-dimension-summary p {font-size:13px;line-height:1.5;margin:5px 0 0;}
.wms-dimension-summary.is-warning {background:#fff8ed;border-color:#e3c698;color:#805012;}
.wms-dimension-summary .button {flex-shrink:0;}
.wms-dimension-tools {display:flex;gap:16px;flex-wrap:wrap;align-items:end;}
#wms-view .wms-dimension-tools>label {display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.5;min-width:0;flex:0 1 280px;}
.wms-dimension-tools input,.wms-dimension-tools select {width:100%;min-width:0;min-height:44px;}
#wms-dimension-visible {font-size:12px;color:var(--muted);margin:0 0 12px;}
.wms-dimension-card .wms-dimensions {display:grid;gap:12px;margin-top:20px;}
.wms-dimension-card .wms-dimension {display:block;margin:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);}
.wms-dimension-card .wms-dimension[hidden] {display:none;}
.wms-dimension-card .wms-dimension.is-missing {background:#fffbf5;border-color:#e3c698;box-shadow:inset 3px 0 #a86a16;}
.wms-dimension-fields {display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(90px,.7fr) minmax(90px,.7fr) minmax(140px,1.4fr) auto;gap:16px;align-items:start;border:0;padding:0;margin:0;min-width:0;}
.wms-dimension-fields:disabled {opacity:.7;}
.wms-dimension-identity {min-width:0;align-self:center;}
.wms-dimension-identity strong {display:block;font-size:15px;font-weight:500;line-height:1.5;overflow-wrap:anywhere;}
.wms-dimension-identity small {font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px;}
.wms-dimension-status {display:inline-block;font-size:12px;line-height:1.5;margin-top:8px;color:var(--muted);}
.wms-dimension-status.is-warning {color:#805012;font-weight:500;background:#fff0d7;border-radius:6px;padding:3px 7px;}
#wms-view .wms-dimension-fields>label {display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;color:var(--color-heading);line-height:1.5;}
.wms-dimension-card .wms-dimension input {margin:0;width:100%;min-width:0;min-height:44px;}
.wms-dimension-card .wms-dimension input.is-missing {border-color:#a86a16;background:#fffdf8;}
.wms-dimension-actions {display:flex;flex-direction:column;align-items:stretch;gap:8px;padding-top:27px;}
#wms-dimension-empty {font-size:14px;padding:24px 0;color:var(--muted);}
@media(max-width:1100px) {
 .wms-dimension-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
 .wms-dimension-identity,.wms-dimension-fields>label:last-of-type,.wms-dimension-actions {grid-column:1/-1;}
 .wms-dimension-actions {flex-direction:row;flex-wrap:wrap;padding-top:0;}
}
@media(max-width:600px) {
 .wms-dimension-summary {align-items:start;flex-direction:column;}
 .wms-dimension-tools {flex-direction:column;align-items:stretch;}
 #wms-view .wms-dimension-tools>label {flex:none;}
 .wms-dimension-fields {grid-template-columns:minmax(0,1fr);}
 .wms-dimension-card .wms-dimension {padding:16px;}
}

/* Layer-download cards share explicit field, section and action spacing. */
.wms-layer-columns {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;}
.wms-layer-columns>.order-card {min-width:0;}
.wms-layer-columns>.order-card>h2 {font-size:17px;font-weight:500;line-height:1.4;}
.wms-layer-columns>.order-card>p {font-size:13px;line-height:1.6;color:var(--muted);margin-bottom:24px;}
#wms-single,#wms-bulk {display:grid;gap:24px;}
.wms-layer-columns .wms-form-field {display:grid;gap:8px;min-width:0;}
#wms-view .wms-layer-columns .wms-form-field>label {font-size:13px;line-height:1.5;margin:0;}
#wms-single .wms-form-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:0;}
#wms-single-query {width:100%;min-width:0;min-height:44px;}
#wms-bulk-query {min-width:0;min-height:160px;margin:0;}
#wms-bulk .wms-check {gap:10px;align-items:start;font-size:14px;line-height:1.5;margin:0;}
#wms-bulk .wms-check input {flex:0 0 20px;margin:1px 0 0;}
#wms-bulk .wms-form-row {gap:12px;margin:0;align-items:center;}
#wms-single-result:not(:empty),#wms-bulk-result:not(:empty) {margin-top:24px;}
@media(max-width:1100px) {.wms-layer-columns {grid-template-columns:minmax(0,1fr);}}
@media(max-width:600px) {
 #wms-single .wms-form-row {grid-template-columns:minmax(0,1fr);}
 #wms-single .wms-form-row .button {justify-self:start;}
 #wms-bulk .wms-form-row {align-items:start;}
}

/* Compact order details; keep the top overview intact. */
#order-details-tab .order-card {padding:18px;margin-bottom:14px;}
#order-details-tab .order-card h2,#order-details-tab .order-card legend {font-size:15px;font-weight:500;margin-bottom:12px;}
#order-details-tab .products-heading {margin-bottom:12px;flex-wrap:wrap;gap:8px;}
#order-details-tab .products-heading h2 {margin:0;}
#order-details-tab .order-products-table th {padding:9px 10px;}
#order-details-tab .order-products-table td {padding:12px 10px;}
#order-details-tab .order-products-table .product-image {width:56px;height:56px;}
#order-details-tab .order-products-table th:nth-child(2) {width:78px;}
#order-details-tab .product-name-cell h3 {font-weight:500;line-height:1.45;}
#order-details-tab .product-packing-mark {display:inline-flex;margin-inline-end:10px;}
#order-details-tab .product-packing-state {margin-top:6px;padding:4px 7px;font-size:11px;font-weight:500;}
#order-details-tab .product-production-link {margin-top:6px;font-weight:500;}
#order-details-tab .product-order-totals {margin-top:10px;padding-top:10px;}
#order-details-tab .product-shipping-summary {padding:8px 0;gap:16px;}
#order-details-tab .product-grand-total {padding:10px 12px;margin-top:8px;gap:16px;}
#order-details-tab .product-grand-total strong {font-size:14px;font-weight:500;}
#order-details-tab .product-grand-total>.summary-money>strong {font-size:18px;}
#order-details-tab .product-grand-total small {font-size:11px;margin-top:3px;}
#order-comments-card .form-hint {margin:0 0 12px;}
#order-note-form {display:flex;align-items:end;gap:12px;}
#order-note {min-height:64px;flex:1;width:100%;resize:vertical;}
#order-note-form>.button {flex-shrink:0;}
#order-comments-card .order-comments {margin-top:14px;}
#order-details-tab .order-documents-grid {gap:14px;align-items:start;}
#order-details-tab .document-row {padding:10px 0;}
#order-details-tab .document-fields {margin:10px 0;gap:10px 18px;}
.order-data-heading {display:flex;align-items:baseline;gap:8px 16px;justify-content:space-between;flex-wrap:wrap;margin:6px 0 12px;}
.order-data-heading h2 {font-size:15px;font-weight:500;}
.order-data-heading>span {font-size:12px;color:var(--muted);}
.order-read-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;align-items:start;}
.order-read-grid h3 {font-size:14px;font-weight:500;margin:0 0 12px;}
.order-read-fields {display:grid;gap:7px;margin:0;}
.order-read-fields>div {display:grid;grid-template-columns:135px minmax(0,1fr);gap:12px;align-items:baseline;}
.order-read-fields dt {font-size:12px;color:var(--muted);}
.order-read-fields dd {margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;}
#order-data-form fieldset:disabled {display:none;}
#order-details-tab .order-data-grid {align-items:start;gap:0 14px;}
#order-details-tab .order-data-grid .form-grid {gap:12px;}
@media(max-width:900px) {.order-read-grid {grid-template-columns:minmax(0,1fr);} .order-read-fields>div {grid-template-columns:120px minmax(0,1fr);}}
@media(max-width:600px) {#order-note-form {align-items:stretch;flex-direction:column;} #order-note-form>.button {align-self:start;} .order-read-fields>div {grid-template-columns:minmax(0,1fr);gap:2px;}}

/* Keep status navigation independently scrollable within the screen. */
#status-rail-list {overflow-y:auto;scrollbar-gutter:stable;scroll-padding-block:8px;}
#status-rail-list:focus-visible {outline:2px solid var(--brand);outline-offset:2px;border-radius:8px;}
@media(min-width:761px) {
 .status-rail {display:flex;flex-direction:column;max-height:calc(100dvh - 36px);}
 .status-rail>.rail-heading,.status-rail>.rail-unit-hint,.status-rail>.rail-config {flex-shrink:0;}
 #status-rail-list {min-height:0;flex:1 1 auto;}
}

/* Align order filters to a single responsive field grid. */
#orders-view .orders-card {container-type:inline-size;container-name:order-list;}
#orders-view .order-primary-filters {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:16px 20px;}
.order-search-field {display:grid;gap:6px;min-width:0;font-size:12px;color:var(--muted);}
#orders-view .order-primary-filters .search {min-width:0;}
#orders-view .production-quick-filters {display:flex;flex-wrap:wrap;gap:6px;padding:0 20px 14px;}
#orders-view .production-quick-filters .button {min-height:30px;padding:4px 10px;font-size:11px;}
#orders-view .order-primary-filters input,#orders-view .order-filter-grid select,#orders-view .order-filter-grid input {width:100%;min-width:0;min-height:42px;font-size:13px;}
#orders-view .order-filter-grid {grid-template-columns:minmax(0,1fr);gap:18px;padding:20px 24px;min-height:0;overflow:auto;align-content:start;}
#orders-view .order-filter-grid label {min-width:0;display:grid;gap:6px;font-size:12px;color:var(--muted);align-content:start;}
.order-filter-dates {display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0;}
#orders-view .order-filter-dates input {padding:8px 12px;}
#order-filter-drawer .order-filter-date-hint {font-size:11px;line-height:1.5;color:var(--muted);margin:0;}
#order-filter-drawer {overflow:hidden;}
#order-filter-drawer .invoice-drawer-header,#order-filter-drawer .invoice-drawer-footer,#order-filter-drawer>.invoice-drawer-hint {flex-shrink:0;}
@container order-list (max-width:420px) {
 #orders-view .order-primary-filters {grid-template-columns:minmax(0,1fr);padding:14px 16px;}
}

/* Dark navigation contrasts with the light workspace. */
.sidebar {
 --surface:#191d2b;--text:#f4f5fa;--color-heading:#f4f5fa;--muted:#bac1d2;--line:#363c50;
 --brand:#9bc5ec;--accent-soft:#30364b;--accent-subtle:#252b3d;--accent-border:#476680;
 --nav-active-bg:#263c53;--nav-active-text:#e9f3fc;
 background:var(--surface);color:var(--text);border-color:var(--line);
}
.sidebar .brand,.sidebar .brand-name,.sidebar .workspace,.sidebar .profile {color:var(--text);}
.sidebar .brand-sub,.sidebar .beta,.sidebar .workspace div>span,.sidebar .profile small,.sidebar .phase,.sidebar .phase>span,.sidebar .future-modules {color:var(--muted);}
.sidebar .brand-mark,.sidebar .workspace-icon {background:var(--accent-soft);color:var(--brand);}
.sidebar .beta,.sidebar .nav-count,.sidebar .soon {background:var(--accent-subtle);color:var(--muted);}
.sidebar .workspace {background:var(--accent-subtle);}
.sidebar .workspace-dot,.sidebar .phase-dot {background:var(--brand);}
.sidebar .nav-item {color:var(--muted);}
.sidebar .nav-item.active {background:var(--nav-active-bg);color:var(--nav-active-text);box-shadow:inset 3px 0 var(--brand);}
.sidebar .nav-item.active svg {color:var(--brand);}
.sidebar .nav-item.active .nav-count {background:var(--accent-soft);color:var(--nav-active-text);}
.sidebar .sidebar-bottom,.sidebar .profile {border-color:var(--line);}
.sidebar .avatar {background:var(--accent-soft);color:var(--text);}
.sidebar button:focus-visible,.sidebar a:focus-visible,.sidebar summary:focus-visible {outline-color:var(--brand);}
@media(hover:hover) {.sidebar .nav-item:hover:not(.active) {background:var(--accent-subtle);color:var(--text);} .sidebar .nav-group>summary:hover {color:var(--text);}}

/* Sales: quantities first, shared dates and product filters. */
#sales-view .sales-period-bar {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
#sales-view .sales-period-bar .button {min-height:40px;padding:8px 16px;font-size:13px;}
#sales-view .sales-period-bar [aria-pressed="true"] {background:var(--brand);color:#fff;border-color:var(--brand);}
#sales-view .sales-date-filters {display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;margin-bottom:12px;}
#sales-view .sales-date-filters label {display:grid;gap:6px;font-size:13px;min-width:140px;flex:0 1 180px;}
#sales-view .sales-date-filters input,#sales-view .sales-date-filters select {width:100%;min-width:0;min-height:42px;padding:9px 12px;font-size:13px;}
#sales-view .sales-date-filters .button {min-height:42px;font-size:13px;}
#sales-view .sales-date-filters>span {flex:1 1 240px;font-size:12px;line-height:1.5;color:var(--muted);}
#sales-view .sales-data-note {font-size:12px;line-height:1.5;margin-bottom:16px;}
#sales-view .sales-product-tools {display:flex;gap:12px;align-items:end;margin:20px 0;flex-wrap:wrap;}
#sales-view .sales-product-tools>label {display:grid;gap:6px;flex:1 1 150px;min-width:0;font-size:13px;}
#sales-view .sales-product-tools>label.sales-sku-filter {flex:2 1 240px;}
#sales-view .sales-product-tools select,#sales-view .sales-product-tools input {min-height:42px;padding:9px 12px;font-size:13px;width:100%;max-width:none;border:1px solid var(--color-border-control);border-radius:8px;background:var(--surface);color:var(--text);}
#sales-view .sales-product-tools .button {min-height:42px;font-size:13px;}
#sales-view .sales-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 24px;}
#sales-view .sales-metric {display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0;}
#sales-view .sales-metric>span {font-size:13px;color:var(--muted);}
#sales-view .sales-metric>strong {font-size:30px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
#sales-view .sales-metric>strong>small {font-size:13px;font-weight:400;color:var(--muted);}
#sales-view .sales-metric>small {font-size:12px;color:var(--muted);line-height:1.5;}
#sales-view .sales-metric-range {border-color:var(--accent-border);background:var(--accent-subtle);}
#sales-view .card-top {align-items:center;flex-wrap:wrap;gap:16px;}
#sales-view .card-top h2 {margin-bottom:6px;}
#sales-view #sales-table-title {background:transparent;padding:0;font-size:16px;font-weight:500;color:var(--text);}
#sales-view .sales-table-tools {display:flex;align-items:end;gap:12px;flex-wrap:wrap;}
#sales-view .sales-table-tools label {display:grid;gap:6px;font-size:12px;}
#sales-view .sales-table-tools select {min-height:40px;padding:8px 12px;}
#sales-view .sales-product-table {min-width:860px;table-layout:fixed;}
#sales-view .sales-product-table th,#sales-view .sales-product-table td {padding:14px 12px;font-size:13px;overflow-wrap:anywhere;text-align:start;width:auto;color:var(--text);background:transparent;}
#sales-view .sales-product-table thead th,#sales-view .sales-product-table tfoot th,#sales-view .sales-product-table tfoot td {background:var(--accent-subtle);}
#sales-view .sales-product-table th:nth-child(1) {width:18%;}
#sales-view .sales-product-table th:nth-child(2),#sales-view .sales-product-table th:nth-child(3) {width:10%;}
#sales-view .sales-product-table th:nth-child(4) {width:18%;}
#sales-view .sales-product-table th:nth-child(n+5) {width:11%;}
#sales-view .sales-product-table .sales-number {text-align:end;font-variant-numeric:tabular-nums;}
#sales-view .sales-product-table td.sales-number {font-size:15px;font-weight:500;}
#sales-view .sales-product-table td.sales-range-cell {background:var(--accent-subtle);color:var(--brand);}
#sales-view .sales-product-table th small {white-space:normal;font-size:11px;color:var(--muted);font-weight:400;}
#sales-view .sales-column-sort {display:inline-flex;align-items:center;gap:4px;background:transparent;border:0;color:inherit;font:inherit;font-size:12px;padding:6px 0;cursor:pointer;text-align:inherit;overflow-wrap:normal;}
#sales-view th[aria-sort="ascending"] .sales-column-sort,#sales-view th[aria-sort="descending"] .sales-column-sort {color:var(--brand);}
#sales-view .sales-group-link {padding:6px 0;background:transparent;border:0;color:var(--brand);font:inherit;text-align:start;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
#sales-view .sales-sku-name {display:block;font-size:12px;color:var(--muted);margin-block-start:4px;}
#sales-view .sales-edit-label {display:block;font-size:12px;margin:4px 0 0;padding:4px 0;}
#sales-view .sales-product-table td strong {font-size:13px;font-weight:500;}
#sales-view button:focus-visible,#sales-view input:focus-visible,#sales-view select:focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
@media (max-width:1100px) {
 #sales-view .sales-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:600px) {
 #sales-view .sales-date-filters label {flex:1 1 130px;}
 #sales-view .sales-product-tools>label {flex:1 1 130px;}
 #sales-view .sales-metrics {gap:10px;}
 #sales-view .sales-metric {padding:14px;}
 #sales-view .sales-metric>strong {font-size:24px;}
}

/* Payment states remain identifiable by their text and icon. */
:root {--payment-paid-text:#167044;--payment-paid-surface:#e9f7ef;--payment-cod-text:#946000;--payment-cod-surface:#fff4d6;--payment-refunded-text:#b42318;--payment-refunded-surface:#feeceb;}
#order-rows .payment-label:is(.payment-paid,.payment-cod,.payment-refunded) {display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:12px;line-height:1.4;white-space:nowrap;}
#order-rows .payment-paid {color:var(--payment-paid-text);background:var(--payment-paid-surface);}
#order-rows .payment-cod {color:var(--payment-cod-text);background:var(--payment-cod-surface);}
#order-rows .payment-refunded {color:var(--payment-refunded-text);background:var(--payment-refunded-surface);}
#order-rows .payment-label:is(.payment-paid,.payment-cod,.payment-refunded) svg {width:14px;height:14px;flex-shrink:0;}

.order-queue-badges {display:flex;align-items:flex-start;flex-direction:column;gap:6px;}
.order-queue-badges .badge {white-space:normal;}
.order-queue-badges small {font:inherit;white-space:nowrap;}

/* Keep long order statuses readable when the table has less room. */
#orders-view .order-status-cell {inline-size:200px;min-inline-size:184px;white-space:normal;}
#order-rows .order-queue-badges .badge {max-inline-size:224px;border-radius:6px;padding:6px 10px;overflow-wrap:anywhere;text-wrap:balance;text-align:start;}

.order-current-status .order-queue-badges {gap:6px;}
.order-current-status .order-queue-badges .badge {display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px;}
.order-current-status .order-queue-badges small {display:inline;margin:0;font:inherit;}
.product-return-state,.order-refund-summary {display:block;color:#a14555;font-size:12px;line-height:1.6;margin-top:5px;}
.product-return-state {display:inline-block;background:#fbeaf0;border-radius:8px;padding:3px 8px;margin-inline-end:6px;}
.product-remaining {display:block;font-size:12px;color:var(--muted);margin-top:5px;white-space:nowrap;}

.order-refund-values {display:flex;flex-wrap:wrap;gap:16px 32px;margin:20px 0;padding:16px;background:#fbeaf0;border-radius:12px;font-size:13px;}
.order-refund-values dt {color:var(--muted);margin-bottom:6px;}.order-refund-values dd {margin:0;font-weight:500;}
/* Invoice queue shares the order list layout and typography. */
.invoice-filters {flex-wrap:wrap;align-items:end;gap:12px;}
.invoice-filters label {display:grid;gap:6px;min-width:150px;flex:1 1 150px;font-size:12px;color:var(--muted);}
.invoice-filters .order-search-field {flex:2 1 260px;}
.invoice-filters input,.invoice-filters select {width:100%;min-height:40px;}
.invoice-subline {display:block;margin-top:5px;color:var(--muted);}
.invoice-list-hint {padding:0 20px 16px;font-size:12px;color:var(--muted);line-height:1.6;}
#invoice-status-list {min-height:0;overflow-y:auto;scrollbar-gutter:stable;}
#invoice-status-list:focus-visible {outline:2px solid var(--brand);outline-offset:2px;border-radius:8px;}
#invoice-table table {min-width:1100px;}
@media(min-width:761px) {#invoice-status-list {max-height:calc(100dvh - 145px);}}

#invoices-filters {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}
#invoices-filters label {grid-column:span 2;min-width:0;}
.invoice-filter-actions {grid-column:span 2;display:flex;align-items:end;gap:8px;}
#invoice-table table {table-layout:fixed;}
#invoice-table th,#invoice-table td {white-space:normal;overflow-wrap:anywhere;padding:12px;font-size:12px;}
#invoice-table th:nth-child(1) {width:12%;}
#invoice-table th:nth-child(2) {width:5%;}
#invoice-table th:nth-child(3) {width:16%;}
#invoice-table th:nth-child(4) {width:18%;}
#invoice-table th:nth-child(5) {width:14%;}
#invoice-table th:nth-child(6) {width:9%;}
#invoice-table th:nth-child(7) {width:9%;}
#invoice-table th:nth-child(8) {width:9%;}
#invoice-table th:nth-child(9) {width:8%;}
@media(max-width:760px) {#invoices-filters {grid-template-columns:minmax(0,1fr);}#invoices-filters label,.invoice-filter-actions {grid-column:1;}}

#invoice-table th:nth-child(2),#invoice-table td:nth-child(2) {white-space:nowrap;overflow-wrap:normal;}

/* Invoice categories reuse the order rail's labels, counters and disclosure. */
.status-tone-invoice-cancelled {--status-text:#a53b35;--status-bg:#fcecea;--status-marker:#a53b35;}
.status-tone-invoice-missing {--status-text:#946000;--status-bg:#fff4d6;--status-marker:#946000;}
.status-tone-invoice-issued {--status-text:#167044;--status-bg:#e9f7ef;--status-marker:#167044;}
.status-tone-invoice-corrections {--status-text:#7552a8;--status-bg:#f1eafa;--status-marker:#7552a8;}
#invoice-status-list .rail-group>summary {background:var(--status-bg);}
#invoice-status-list .rail-group>summary h3 {color:var(--status-text);}
#invoice-status-list .rail-group>summary .rail-chevron {color:var(--status-marker);}
#invoice-status-list .rail-order-count {margin:0;}
@media(prefers-reduced-motion:reduce) {#invoice-status-list .rail-chevron {transition:none;}}
/* Status navigation uses the same semantic palette as its marker and badges. */
.rail-status.active[class*="status-tone-"] {
 background:var(--status-bg);color:var(--status-text);
 border-color:var(--status-marker);box-shadow:inset 3px 0 var(--status-marker);
}
.rail-status.active[class*="status-tone-"] .rail-name,
.rail-status.active .rail-counts {color:inherit;}
.rail-status.active[class*="status-tone-"] .rail-order-count {background:var(--status-text);color:var(--status-bg);}
@media(hover:hover) {
 .rail-status[class*="status-tone-"]:hover:not(.active) {
  background:var(--status-bg);color:var(--status-text);border-color:var(--status-marker);
 }
 .rail-status[class*="status-tone-"]:hover .rail-counts {color:inherit;}
}

.invoice-country-field {grid-column:span 2;min-width:0;display:grid;gap:6px;align-content:start;color:var(--muted);font-size:12px;}
#invoices-countries {border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);}
#invoices-countries>summary {padding:12px;cursor:pointer;overflow-wrap:anywhere;}
#invoices-country-options {display:grid;gap:4px;padding:8px;max-height:240px;overflow:auto;}
#invoices-filters #invoices-country-options label {display:flex;align-items:center;gap:8px;grid-column:auto;padding:8px;cursor:pointer;}
#invoices-country-options input {width:16px;height:16px;margin:0;accent-color:var(--brand);}
@media(max-width:760px) {.invoice-country-field {grid-column:1;}}

.invoice-download {color:var(--brand);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
.invoice-download:hover {color:var(--brand-dark);}

/* Direct order views stay grouped below their parent navigation item. */

/* Parcel evidence on the order card. */
.order-parcel-list {display:grid;gap:16px;}
.order-parcel header {display:flex;align-items:start;justify-content:space-between;gap:16px;margin-block-end:16px;flex-wrap:wrap;}
.order-parcel header h2 {margin-block-end:8px;}
.order-parcel .tracking-number {overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.order-parcel-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.order-parcel-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:20px 24px;margin-block:24px 0;}
.order-parcel-facts>div {min-width:0;}
.order-parcel-facts dt {color:var(--muted);font-size:12px;margin-block-end:8px;}
.order-parcel-facts dd {margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.order-parcel-warning {color:#926222;}

/* Customer, billing and delivery share one desktop row. */
#order-read-summary {container-type:inline-size;}
.order-read-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;}
.order-read-grid>.order-card {margin:0;min-width:0;}
.order-read-grid .order-read-fields>div {grid-template-columns:minmax(90px,30%) minmax(0,1fr);gap:10px;}
.order-destination-section+.order-destination-section {margin-block-start:24px;}
.order-destination-section h4 {font-size:12px;font-weight:500;color:var(--muted);margin:0 0 12px;}
@container(max-width:900px) {.order-read-grid {grid-template-columns:minmax(0,1fr);}}
@container(max-width:360px) {.order-read-grid .order-read-fields>div {grid-template-columns:minmax(0,1fr);gap:3px;}}

/* Each order membership has its own readable row and unit count. */
.order-status-list{list-style:none;padding:0;margin:0;display:grid;gap:0}
.order-status-row{display:grid;grid-template-columns:7px minmax(0,1fr) auto;gap:9px;align-items:start;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.5}
.order-status-row:first-child{padding-top:2px}.order-status-row:last-child{border-bottom:0}
.order-status-dot{width:7px;height:7px;border-radius:50%;margin-top:6px;background:var(--status-marker,var(--status-text))}
.order-status-name{overflow-wrap:anywhere;font-weight:550;color:var(--text)}
.order-current-status .order-status-name small{margin:3px 0 0;font-size:10px;color:#946000;line-height:1.5;font-weight:400}
.order-status-quantity{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.order-status-unmatched .order-status-name{color:#795100}

/* Group headers visually separate navigation sections from their destinations. */
body:not(.nav-compact) .sidebar .nav-group {margin-bottom:18px;}
body:not(.nav-compact) .sidebar .nav-group>summary {
 min-height:40px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;
 background:var(--accent-soft);color:var(--brand);font-size:10px;font-weight:750;
 letter-spacing:.08em;text-transform:uppercase;line-height:1.5;
}
body:not(.nav-compact) .sidebar .nav-group>nav,
body:not(.nav-compact) .sidebar .nav-group>.future-modules {margin-top:8px;}
@media(hover:hover) {
 body:not(.nav-compact) .sidebar .nav-group>summary:hover {background:var(--accent-subtle);color:var(--text);}
}

body.nav-compact .nav-group-title{font-size:0;line-height:1.3;}
body.nav-compact .nav-group-title::after{content:attr(data-short);font-size:9px;}
@media(max-width:760px){body.nav-compact .nav-group-title{font-size:12px;}body.nav-compact .nav-group-title::after{content:none;}}

/* Layer progress and files stay in separate flow rows, including long ZIP names. */
.wms-single-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:20px;}
.wms-progress:not(:empty){margin-block-start:20px;padding:14px 16px;border:1px solid var(--border,#d8dadd);border-radius:10px;background:var(--surface-soft,#f7f8fa);}
.wms-progress p{margin:0;line-height:1.6;overflow-wrap:anywhere;}
#wms-single-download:not(:empty),#wms-bulk-download:not(:empty),#wms-label-result:not(:empty){margin-block-start:20px;}
.wms-download-card{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px;border:1px solid var(--border,#d8dadd);border-radius:10px;}
.wms-download-card>div{flex:1 1 220px;min-width:0;display:grid;gap:6px;}
.wms-download-card small{color:var(--muted);overflow-wrap:anywhere;line-height:1.5;}
.wms-download-card .button{flex:0 0 auto;white-space:normal;max-width:100%;}
#wms-single-result .wms-product{align-items:start;}
#wms-single-result .wms-product>div{min-width:0;flex-basis:180px;overflow-wrap:anywhere;}

/* Read-only delivery tariff comparison */
.dp-filters {display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:18px}
.dp-filters label {display:grid;gap:6px;flex:1 1 145px;color:var(--text);font-size:13px;font-weight:600}
.dp-filters input,.dp-filters select {width:100%;min-height:44px}
.dp-table {width:100%;min-width:850px}
.dp-table td {vertical-align:top;white-space:normal;max-width:320px}
.dp-table td small {display:block;margin-top:5px;font-size:12px;color:var(--muted);line-height:1.5}
.dp-price {border:0;background:none;color:var(--brand);font:inherit;font-weight:700;padding:8px 0;cursor:pointer;white-space:nowrap;font-variant-numeric:tabular-nums;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:5px}
@media (hover:hover){.dp-price:hover {color:var(--brand-dark)}}
.dp-price:focus-visible {outline:2px solid var(--brand);outline-offset:3px}
.dp-badge {display:inline-block;padding:4px 8px;background:var(--accent-soft);color:var(--text);border-radius:5px;font-size:12px;font-weight:600}
.dp-warning,.dp-table td small.dp-warning {color:#874514}
.dp-popover {position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 16px));max-height:min(500px,calc(100vh - 16px));overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:18px;box-shadow:0 8px 28px #17253226;color:var(--text);font-size:13px;z-index:1000}
.dp-popover h3 {margin:0 0 14px;font-size:15px}
.dp-popover p {line-height:1.5;margin:8px 0}
.dp-breakdown {margin:14px 0}
.dp-breakdown div {display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid var(--line)}
.dp-breakdown dt {font-size:13px;line-height:1.5}
.dp-breakdown dd {margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.dp-total {font-weight:700}
.dp-dual {font-weight:700;font-variant-numeric:tabular-nums}
#dp-dialog {width:min(650px,calc(100vw - 32px));max-height:85vh;overflow:auto;overscroll-behavior:contain}
#dp-details p {line-height:1.6;overflow-wrap:anywhere}
#dp-sources {overflow-wrap:anywhere}
@media(max-width:450px){.dp-filters label{flex-basis:100%}}

.dp-table time {display:block;white-space:nowrap}

/* Shipment status navigation shares the order listing rail and counters. */
.shipment-list-content{min-width:0}
#shipment-status-list{min-height:0;overflow-y:auto;scrollbar-gutter:stable}
#shipment-status-list:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:8px}
#shipment-status-list .rail-name-row{min-width:0}
#shipment-status-list .rail-order-count{margin:0}
/* Shipment stages share their palette across rail, selection and table badges. */
.status-tone-shipment-transport{--status-text:var(--brand);--status-bg:var(--accent-soft);--status-marker:var(--brand)}
.status-tone-shipment-neutral{--status-text:#5f6b7d;--status-bg:#edf0f4;--status-marker:#5f6b7d}
.status-tone-shipment-warning{--status-text:#946000;--status-bg:#fff4d6;--status-marker:#946000}
.status-tone-shipment-delivered{--status-text:#167044;--status-bg:#e9f7ef;--status-marker:#167044}
.status-tone-shipment-pickup{--status-text:#267574;--status-bg:#e3f5f3;--status-marker:#267574}
.status-tone-shipment-problem{--status-text:#a14555;--status-bg:#fbeaf0;--status-marker:#a14555}
.status-tone-shipment-return{--status-text:#a13b79;--status-bg:#fbeaf5;--status-marker:#a13b79}
#shipment-status-list .rail-status{color:var(--status-text)}
#shipment-status-list .rail-status .rail-marker{background:var(--status-marker)}
#shipment-status-list .rail-status:not(.active) .rail-order-count{background:var(--status-bg);color:var(--status-text)}
.shipment-table .badge[class*="status-tone-shipment-"]{background:var(--status-bg);color:var(--status-text)}
@media(min-width:761px){#shipment-status-list{max-height:calc(100dvh - 220px)}}

.shipment-table {min-width:1000px;}
.shipment-table td:nth-child(4)>strong {font-variant-numeric:tabular-nums;white-space:nowrap;}

/* Delivery tariffs: separate delivery channels with shared provider colors. */
.dp-groups{display:grid;gap:20px}
.dp-report-heading{padding-inline:0}
.dp-group>.card-top{border-bottom:1px solid var(--line)}
.dp-group h3{font-size:16px;font-weight:500;margin:0}
.dp-group-count{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.dp-group-pickup{--dp-channel-text:#267574;--dp-channel-bg:#e3f5f3}
.dp-group-home{--dp-channel-text:var(--brand);--dp-channel-bg:var(--accent-soft)}
.dp-group>.card-top{background:var(--dp-channel-bg);color:var(--dp-channel-text);border-radius:14px 14px 0 0}
.dp-delivery-type{color:var(--dp-channel-text)}
.dp-company-paxy{--dp-company-text:var(--brand);--dp-company-bg:var(--accent-soft)}
.dp-company-dhl{--dp-company-text:#a14555;--dp-company-bg:#fbeaf0}
.dp-company-inpost{--dp-company-text:#946000;--dp-company-bg:#fff4d6}
.dp-company-gls{--dp-company-text:#267574;--dp-company-bg:#e3f5f3}
.dp-company-packeta{--dp-company-text:#a13b79;--dp-company-bg:#fbeaf5}
.dp-company-neutral{--dp-company-text:#5f6b7d;--dp-company-bg:#edf0f4}
.dp-company{display:inline-flex;align-items:center;padding:5px 10px;border-radius:8px;background:var(--dp-company-bg);color:var(--dp-company-text);font-size:13px;font-weight:500;white-space:nowrap}
.dp-price{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}
.dp-price-tax{font-size:12px;font-weight:400;color:var(--muted)}
.dp-table{table-layout:fixed;min-width:960px}
.dp-table th:nth-child(1){width:12%}.dp-table th:nth-child(2){width:28%}.dp-table th:nth-child(3){width:16%}.dp-table th:nth-child(4){width:12%}.dp-table th:nth-child(5),.dp-table th:nth-child(6){width:16%}

/* Keep the collapse control visible in the navigation itself. */
.sidebar-toggle {display:flex;align-items:center;justify-content:center;gap:8px;align-self:flex-end;min-width:44px;min-height:44px;padding:8px 12px;margin-bottom:12px;border:1px solid var(--accent-border);border-radius:10px;background:var(--accent-soft);color:var(--brand);font-size:12px;font-weight:650;}
.sidebar-toggle svg {width:20px;height:20px;flex-shrink:0;}
.sidebar-toggle:hover {background:var(--accent-subtle);}
.sidebar-toggle:focus-visible {outline:3px solid var(--color-chart-secondary);outline-offset:3px;}
body.nav-compact .sidebar-toggle {align-self:center;padding:8px;}
body.nav-compact .sidebar-toggle span {display:none;}
body.nav-compact .sidebar-toggle svg {transform:rotate(180deg);}
@media(max-width:760px) {.sidebar-toggle {display:none;}}

/* Invoice filters stay off the list until the drawer is opened. */
#invoices-filters{grid-template-columns:minmax(0,1fr) auto;align-items:end}
#invoices-filters>.order-search-field{grid-column:1}
#invoices-filters>.invoice-filter-actions{grid-column:2;flex-wrap:wrap}
.filter-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-inline-start:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--text);box-shadow:-12px 0 40px #18233918;overflow:auto;overscroll-behavior:contain}
.filter-drawer[open]{display:flex;flex-direction:column}
.filter-drawer::backdrop{background:rgb(24 35 57 / .28)}
.invoice-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid var(--line)}
.invoice-drawer-header h2{font-size:18px;line-height:1.4;margin:0}
.invoice-drawer-header .icon-button{flex-shrink:0;min-width:44px;min-height:44px}
.invoice-drawer-hint{margin:0;padding:16px 24px 0;font-size:12px;color:var(--muted);line-height:1.6}
.invoice-drawer-fields{display:grid;gap:20px;padding:20px 24px;flex:1}
#invoices-filters .invoice-drawer-fields>label,.invoice-drawer-fields>.invoice-country-field{grid-column:1}
.invoice-drawer-footer{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:20px 24px;border-top:1px solid var(--line)}
.invoice-drawer-footer .button{min-height:44px;flex:1}
@media(prefers-reduced-motion:no-preference){.filter-drawer[open]{animation:invoice-drawer-in .2s ease-out}@keyframes invoice-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}}
@media(max-width:760px){#invoices-filters{grid-template-columns:minmax(0,1fr)}#invoices-filters>.invoice-filter-actions{grid-column:1}.invoice-drawer-header,.invoice-drawer-footer{padding:16px}.invoice-drawer-fields{padding:20px 16px}.invoice-drawer-hint{padding:16px 16px 0}}

#shipment-filter-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-inline-start:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--text);box-shadow:-12px 0 40px #18233918;overflow:hidden}
#shipment-filter-drawer[open]{display:flex;flex-direction:column}
#shipment-filter-drawer::backdrop{background:rgb(24 35 57 / .28)}
#shipment-filter-drawer .invoice-drawer-header,#shipment-filter-drawer .invoice-drawer-footer,#shipment-filter-drawer>.invoice-drawer-hint{flex-shrink:0}
.shipment-drawer-fields{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px}
.shipment-drawer-fields .shipment-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.shipment-drawer-fields>.shipment-filters+.shipment-filters{margin-top:18px}
.shipment-drawer-fields .shipment-thresholds{margin-top:24px}
.shipment-drawer-fields .shipment-thresholds summary{min-height:44px}
@media(prefers-reduced-motion:no-preference){#shipment-filter-drawer[open]{animation:invoice-drawer-in .2s ease-out}}

.packing-parcel-dialog{width:min(560px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto;padding:28px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--text)}
.packing-parcel-dialog::backdrop{background:rgba(21,31,49,.42)}
.packing-parcel-dialog h2{font-size:22px;margin:0 0 12px}
.packing-parcel-choices{display:grid;gap:8px;margin:24px 0}
.packing-parcel-choices .button{white-space:normal;text-align:left;justify-content:flex-start}
.packing-parcel-choices p{margin:0 0 12px}
.packing-extra-parcels{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.packing-extra-parcels h3{font-size:16px;margin:0 0 12px}
.packing-extra-parcel{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:12px}
.packing-extra-parcel .button{font-size:13px}

/* Tags and active order comments stay visible alongside their order. */
#orders-view .order-list-tags {display:flex;flex-wrap:wrap;gap:5px;margin-block-start:8px;max-width:180px;white-space:normal;}
#orders-view .order-list-tag {margin:0;padding:3px 7px;border:1px solid #b77816;border-radius:6px;background:#ffe3a3;color:#6b4100;font-size:11px;font-weight:600;letter-spacing:0;overflow-wrap:anywhere;}
#orders-view .order-list-tag.tag-express {background:#fdebec;color:#a73d46;border-color:#f2c4c9;}
#orders-view .orders-card .order-customer-comments {min-width:220px;max-width:300px;white-space:normal;vertical-align:top;}
.order-customer-name {display:block;}
.order-list-comments {margin-block-start:10px;display:grid;gap:8px;font-weight:400;max-width:300px;}
.order-list-comment {padding-inline-start:9px;border-inline-start:2px solid var(--accent-border);min-width:0;}
.comment-source {display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-block-end:2px;}
.order-list-comment p {font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text);}
.comment-previews,.comment-full-text {display:grid;gap:8px;}
.comment-preview p {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.order-comment-details summary {cursor:pointer;color:var(--brand);font-size:11px;line-height:1.5;padding-block:4px;}
.order-comment-details summary:focus-visible {outline:3px solid var(--brand);outline-offset:2px;}
.comment-full-text {margin-block-start:8px;}
.order-list-comments:has(.order-comment-details[open]) .comment-previews {display:none;}

.packing-reship {margin-block-start:18px;padding:16px;border:1px solid #b77816;border-radius:12px;background:#fff7e4;display:grid;gap:12px;}
.packing-reship h3 {font-size:15px;}
.packing-reship .form-hint {margin:0;color:var(--text);}
.packing-reship label {display:grid;gap:6px;font-size:13px;}
.packing-previous-labels {margin-block-start:18px;font-size:12px;}
.packing-previous-labels summary {cursor:pointer;color:var(--brand);padding-block:8px;}
.packing-previous-labels p {margin-block:8px;overflow-wrap:anywhere;}

/* Order section colors distinguish categories; solid accent marks the selected section. */
:root {
  --color-section-surface:var(--accent-soft);
  --color-section-text:var(--brand);
  --color-section-border:var(--accent-border);
  --color-section-shipping-surface:#e8f5f3;
  --color-section-shipping-text:#235f60;
  --color-section-shipping-border:#afcfcc;
  --color-section-documents-surface:#fff3df;
  --color-section-documents-text:#805015;
  --color-section-documents-border:#dec59e;
  --color-section-mail-surface:#fcecf1;
  --color-section-mail-text:#963653;
  --color-section-mail-border:#dfb7c3;
  --color-section-history-surface:#edf0f4;
  --color-section-history-text:#4d596b;
  --color-section-history-border:#bcc4cf;
  --color-section-active-surface:var(--brand);
  --color-section-active-text:#fff;
}
.order-tabs .button {--section-surface:var(--color-section-surface);--section-text:var(--color-section-text);--section-border:var(--color-section-border);background:var(--section-surface);color:var(--section-text);border-color:var(--section-border);gap:10px;}
.order-tabs [data-order-tab=shipments] {--section-surface:var(--color-section-shipping-surface);--section-text:var(--color-section-shipping-text);--section-border:var(--color-section-shipping-border);}
.order-tabs [data-order-tab=invoices] {--section-surface:var(--color-section-documents-surface);--section-text:var(--color-section-documents-text);--section-border:var(--color-section-documents-border);}
.order-tabs [data-order-tab=communications] {--section-surface:var(--color-section-mail-surface);--section-text:var(--color-section-mail-text);--section-border:var(--color-section-mail-border);}
.order-tabs [data-order-tab=history] {--section-surface:var(--color-section-history-surface);--section-text:var(--color-section-history-text);--section-border:var(--color-section-history-border);}
.order-tabs .button:hover {border-color:var(--section-text);box-shadow:inset 0 0 0 1px var(--section-text);}
.order-tabs .button[aria-pressed=true] {background:var(--color-section-active-surface);color:var(--color-section-active-text);border-color:var(--color-section-active-surface);box-shadow:none;}
.order-tabs .order-tab-count {font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.5;min-width:24px;padding:1px 6px;border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;text-align:center;}

.product-reship-control{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:12px}
.product-reship-control label{display:flex;align-items:center;gap:6px}
.product-reship-control input[type=number]{width:68px;min-height:32px}
.product-reship-control input[type=checkbox]{accent-color:#245f99;width:16px;height:16px}
.order-reship-actions{padding:16px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.order-reship-actions h3{font-size:14px;margin:0}
.order-reship-actions>div{flex:1;min-width:260px}
.order-reship-actions>label{display:grid;gap:5px;font-size:12px}
#order-reship-feedback{flex-basis:100%;margin:0}

.product-reship-state{display:inline-block;color:var(--brand);background:#eef4fb;border-radius:8px;padding:3px 8px;margin-top:5px;font-size:12px;line-height:1.6}

.carrier-weekend-option,.packing-weekend-option{display:flex;align-items:center;gap:10px;min-height:40px;margin:12px 0;cursor:pointer}
.carrier-weekend-option input,.packing-weekend-option input{width:18px;height:18px;flex:none;margin:0}

.status-tone-invoice-pr_ugc{--status-text:#245f99;--status-bg:#edf4fc;--status-marker:#245f99;}

.status-tone-invoice-unresolved { --status-text:#8a6019; --status-bg:#fff5dc; --status-marker:#8a6019; }

.dispatch-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:start}
.dispatch-card{background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);border-radius:16px;padding:24px;min-width:0}
.dispatch-card h2{margin-block:0 16px}.dispatch-card h3{margin-block:24px 12px}.dispatch-card label{display:flex;flex-direction:column;gap:8px}
.dispatch-card details{margin-block-start:24px}.dispatch-card summary{cursor:pointer;margin-block-end:16px}
.dispatch-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:12px}
.dispatch-history-row{display:flex;flex-direction:column;gap:8px;padding-block:16px;overflow-wrap:anywhere}
.dispatch-history-row+.dispatch-history-row{border-block-start:1px solid var(--border,#e5e7eb)}
.dispatch-card .dialog-actions{flex-wrap:wrap}.dispatch-card input,.dispatch-card select{min-width:0;max-width:100%}
@media(max-width:1050px){.dispatch-layout{grid-template-columns:minmax(0,1fr)}}

#order-label-print label{display:block;margin-block-end:8px}
#order-label-print select{width:100%;max-width:640px}
.order-print-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px}

/* Layer downloads: separate workflows and an always-visible result report. */
.wms-layer-submenu>summary{display:flex;align-items:center;gap:12px;padding:12px;cursor:pointer;list-style:none;color:var(--muted);font-size:13px;border-radius:8px;}
.wms-layer-submenu>summary::-webkit-details-marker{display:none;}
.wms-layer-submenu>summary::after{content:'›';margin-inline-start:auto;}
.wms-layer-submenu[open]>summary::after{transform:rotate(90deg);}
.wms-layer-submenu>summary svg{width:20px;height:20px;}
.wms-layer-submenu>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;}
.wms-layer-submenu>div{padding-inline-start:16px;}
body.nav-compact .wms-layer-submenu>summary{justify-content:center;padding-inline:0;}
body.nav-compact .wms-layer-submenu>summary::after{display:none;}
body.nav-compact .wms-layer-submenu>div{padding-inline-start:0;}
.wms-layer-modes{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;}
.wms-layer-card{min-width:0;}
.wms-layer-card>p{max-width:80ch;line-height:1.6;}
.wms-layer-card textarea{max-width:100%;}
.wms-bulk-summary{margin-top:28px;padding-top:24px;border-top:1px solid var(--line);}
.wms-result-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px;}
.wms-result-heading h3{font-size:18px;margin:0;}
.wms-result-heading>span,.wms-result-hint{color:var(--muted);font-size:13px;line-height:1.6;}
.wms-result-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px;}
.wms-result-counts>div{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--accent-subtle);}
.wms-result-counts span{font-size:13px;line-height:1.5;}
.wms-result-counts strong{font-size:32px;line-height:1;font-weight:650;font-variant-numeric:tabular-nums;}
.wms-result-counts .is-ready{background:var(--accent-soft);color:var(--brand);border-color:var(--accent-border);}
.wms-result-counts .is-problem{background:#fff8e8;color:#775010;border-color:#d8ad56;}
.wms-result-table{width:100%;table-layout:fixed;border-collapse:collapse;margin-top:20px;}
.wms-result-table th,.wms-result-table td{white-space:normal;overflow-wrap:anywhere;text-align:start;vertical-align:top;padding:16px;line-height:1.6;font-size:14px;}
.wms-result-table th:first-child{width:160px;}
.wms-result-table th:nth-child(2){width:220px;}
.wms-result-table tbody th{font-weight:650;font-variant-numeric:tabular-nums;}
.wms-result-table .has-problem{background:#fffcf5;}
.wms-result-state{display:inline-block;padding:5px 10px;border-radius:6px;font-size:12px;font-weight:600;line-height:1.5;}
.wms-result-state.is-ready{background:var(--accent-soft);color:var(--brand);}
.wms-result-state.is-problem{background:#fff0dc;color:#775010;}
.wms-result-table small{display:block;color:var(--muted);margin-top:6px;}
@media(max-width:760px){.wms-result-table th:first-child{width:24%;}.wms-result-table th:nth-child(2){width:28%;}.wms-result-table th,.wms-result-table td{padding:10px;font-size:12px;}.wms-result-counts{grid-template-columns:repeat(2,minmax(0,1fr));}.wms-layer-submenu>div{padding-inline-start:0;}}

/* Products fill the workstation; the shipping action follows below on the right. */
.packing-workspace,.packing-station .packing-workspace{grid-template-columns:minmax(0,1fr);gap:0;}
.packing-workspace>div,.packing-summary{min-width:0;}
.packing-shipping-layout{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;}
.packing-shipping-details{flex:0 1 460px;min-width:0;}
.packing-shipping-action{flex:0 1 640px;min-width:0;}
.packing-summary .packing-create-shipment{min-height:88px;padding:22px 28px;margin:0;font-size:18px;line-height:1.45;font-weight:650;white-space:normal;}
@media(max-width:1000px){.packing-shipping-layout{flex-direction:column;align-items:stretch;gap:20px;}.packing-shipping-details,.packing-shipping-action{flex-basis:auto;}.packing-shipping-action{align-self:flex-end;width:min(640px,100%);}}
@media(max-width:600px){.packing-summary .packing-create-shipment{min-height:76px;padding:18px;font-size:16px;}}

/* Station controls stay beside the compact scanner, above the order products. */
.packing-station-controls{--packing-panel-surface:#f3f4f5;--packing-panel-border:#d8dadd;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:20px;align-items:start;}
.packing-station-controls>form{min-width:0;padding:16px;border:1px solid var(--packing-panel-border);border-radius:12px;background:var(--packing-panel-surface);}
.packing-search-card .packing-station-toolbar{margin-bottom:16px;}
.packing-station-controls .packing-search-row{flex-wrap:wrap;gap:8px;}
.packing-station-controls .packing-search-row .search{flex:1 1 220px;}
.packing-station-controls .packing-search-row input{min-height:44px;font-size:16px;}
.packing-station-controls .packing-search-row select,.packing-station-controls .packing-search-row .button{min-height:44px;}
.packing-station-controls .form-hint{font-size:12px;line-height:1.6;}
.packing-station-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:12px;min-width:0;}
.packing-station-options:has(#packing-shipping-options:empty){grid-template-columns:minmax(0,1fr);}
#packing-print-controls{min-width:0;padding:16px;border:1px solid var(--packing-panel-border);border-radius:12px;background:var(--packing-panel-surface);}
#packing-print-controls .packing-printer-field label{margin:0 0 8px;color:var(--text);}
#packing-print-controls select{min-height:44px;max-width:100%;background:var(--surface);}
.packing-station-print-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.packing-station-print-actions .button{min-height:44px;white-space:normal;line-height:1.5;}
.packing-station-options .packing-error-action{background:#fff0f0;color:#9f2936;border-color:#dfabb3;font-weight:600;}
#packing-shipping-options{min-width:0;padding:16px;border:1px solid #d8ad56;border-radius:12px;background:#fff8e8;color:#775010;}
#packing-shipping-options:empty{display:none;}
#packing-shipping-options label{font-size:13px;line-height:1.5;}
#packing-shipping-options .packing-weekend-option{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;}
#packing-shipping-options .packing-weekend-option input{flex-shrink:0;width:20px;height:20px;margin:0;accent-color:var(--brand);}
#packing-shipping-options .form-hint{margin:8px 0 0;color:#775010;}
#packing-shipping-options select{margin:8px 0;min-height:44px;}
#packing-no-cod-feedback:empty{display:none;}
@media(hover:hover){.packing-station-options .packing-error-action:not(:disabled):hover{background:#ffe3e7;border-color:#9f2936;}}
@media(max-width:1200px){.packing-station-controls{grid-template-columns:minmax(0,1fr);}.packing-station-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}}
@media(max-width:600px){.packing-station-options{grid-template-columns:minmax(0,1fr);}.packing-station-controls .packing-search-row .search{flex-basis:100%;}}

/* Larger type for reading the packing workstation at a distance. */
#packing-view{--packing-caption:.875rem;--packing-body:1rem;--packing-control:1.125rem;--packing-heading:1.25rem;--packing-sku:1.625rem;font-size:var(--packing-body);line-height:1.5;}
#packing-view .button{font-size:var(--packing-body);line-height:1.5;min-height:48px;white-space:normal;}
#packing-view .packing-station-toolbar>span,#packing-view .packing-search-card label,#packing-view #packing-print-controls label,#packing-view #packing-shipping-options label{font-size:var(--packing-body);line-height:1.5;}
#packing-view input:not([type=checkbox]),#packing-view select,#packing-view .packing-station-controls .packing-search-row input{font-size:var(--packing-control);line-height:1.5;min-height:48px;}
#packing-view .form-hint,#packing-view .packing-station-controls .form-hint,#packing-view .packing-summary #packing-shipping .form-hint,#packing-view .packing-no-comments,#packing-view .packing-location-date,#packing-view .packing-order-identity .eyebrow{font-size:var(--packing-caption);line-height:1.6;}
#packing-view .form-hint,#packing-view .packing-no-comments,#packing-view .packing-location-date,#packing-view .packing-order-identity .eyebrow{color:var(--text);}
#packing-view #packing-shipping-options .form-hint{color:#775010;}
#packing-view .packing-product-info h3{font-size:var(--packing-body);font-weight:500;line-height:1.5;color:var(--text);}
#packing-view .packing-sku{font-size:var(--packing-sku);line-height:1.3;letter-spacing:.01em;}
#packing-view .packing-quantity,#packing-view .packing-counter strong,#packing-view .packing-order-customer,#packing-view .packing-location-mark,#packing-view .packing-detail-chip{font-size:var(--packing-body);line-height:1.5;}
#packing-view .packing-product-badges .packing-variant,#packing-view .packing-check-label,#packing-view .packing-box-target,#packing-view .packing-order-chips .badge,#packing-view .packing-order-chips .order-tag,#packing-view .packing-products .products-heading>span{font-size:var(--packing-caption);line-height:1.5;}
#packing-view .packing-products .products-heading h2,#packing-view .packing-summary h2,#packing-view .packing-comments h2{font-size:var(--packing-heading);line-height:1.4;}
#packing-view .packing-order-header .packing-order-heading h2{font-size:2rem;line-height:1.3;}
#packing-view .packing-important-comments .packing-comment p{font-size:var(--packing-control);line-height:1.6;}
#packing-view .packing-summary p,#packing-view .packing-summary strong,#packing-view #packing-feedback{font-size:var(--packing-body);line-height:1.6;}
#packing-view .packing-summary .packing-create-shipment{font-size:var(--packing-heading);min-height:88px;line-height:1.5;}
#packing-view .packing-station-controls .packing-search-row .button{flex-shrink:0;}
.packing-instruction-dialog .packing-instruction-list p{font-size:1.125rem;line-height:1.6;}
#packing-view .packing-station-controls .packing-search-row .search{flex-basis:160px;}
#packing-view .packing-image-missing,#packing-view .packing-product-info small,#packing-view .packing-comment small,#packing-view .packing-extra-parcel small{font-size:var(--packing-caption);line-height:1.5;}
@media(max-width:600px){#packing-view .packing-station-controls .packing-search-row .search{flex-basis:100%;}}
@media(max-width:600px){#packing-view .packing-product{grid-template-columns:72px minmax(0,1fr);gap:12px;}#packing-view .packing-product-preview,#packing-view .packing-product-preview .product-image{width:72px;}#packing-view .packing-product-preview .product-image{height:72px;}#packing-view .packing-product-verification{grid-column:1/-1;flex-wrap:wrap;gap:10px;}#packing-view .products-heading{flex-wrap:wrap;gap:8px;}}

/* SKU quantities in the order list stay fully readable. */
#orders-view .order-contents {min-width:140px;max-width:240px;white-space:normal;vertical-align:top;}
.order-content-list {margin:0;padding:0;list-style:none;line-height:1.5;font-variant-numeric:tabular-nums;}
.order-content-list li {overflow-wrap:anywhere;}
.order-content-list li+li {margin-block-start:4px;}

.order-change-card p{font-size:13px;line-height:1.6;margin:8px 0 16px;color:var(--muted)}
.order-change-dialog{width:min(760px,calc(100vw - 40px));max-height:90vh;overflow:auto;padding:28px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--text)}
.order-change-dialog::backdrop{background:#172b4660}
.order-change-dialog .dialog-header{gap:20px;align-items:start}
.order-change-dialog h2{font-size:20px;line-height:1.4}
.order-change-dialog p{font-size:13px;line-height:1.6;margin:10px 0}
.order-change-fields{display:grid;gap:16px;margin:22px 0}
.order-change-fields label{display:grid;gap:8px;font-size:14px}
.order-change-fields input[type=number]{width:110px;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font:inherit}
.order-change-fields textarea{min-height:80px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font:inherit}
.order-change-fields .order-change-restock{display:flex;align-items:center;gap:10px}
.order-change-dialog small{display:block;color:var(--muted);font-size:12px}
.order-change-dialog table{width:100%;font-size:13px}
.order-change-dialog th,.order-change-dialog td{padding:10px;text-align:left}
.order-change-buttons{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}
/* SKU catalogue uses the shared BMS controls and table density. */
.sku-catalog-summary{margin-block:20px;font-weight:600;color:#245f99}
.sku-catalog-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-block:20px}
.sku-catalog-tools label:first-child{flex:1;min-width:220px}
.sku-catalog-tools label{display:grid;gap:6px}
.sku-catalog-table{min-width:850px;width:100%}
.sku-catalog-table td:nth-child(2){max-width:360px;overflow-wrap:anywhere;white-space:normal}
.sku-catalog-table small{display:block;font-size:12px;font-weight:400;color:#627084;margin-block-start:5px}
#sku-catalog-view{min-width:0}
#sku-catalog-import{width:min(760px,calc(100% - 32px))}
#sku-catalog-import label{display:grid;gap:8px;margin-block:16px}
#sku-catalog-import textarea{width:100%;resize:vertical}
#sku-catalog-import-preview{overflow-wrap:anywhere}

/* Explicit SKU assignment states; scoped to avoid changing order-status colors. */
#sku-catalog-view{--sku-assigned-text:#17603a;--sku-assigned-bg:#eaf7ef;--sku-missing-text:#a02323;--sku-missing-bg:#fdecec}
#sku-catalog-view .sku-group-assigned{color:var(--sku-assigned-text);background:var(--sku-assigned-bg)}
#sku-catalog-view .sku-group-missing{color:var(--sku-missing-text);background:var(--sku-missing-bg)}
.sku-catalog-cost{white-space:nowrap;font-variant-numeric:tabular-nums}

.sku-catalog-selection{width:48px;text-align:center}
.sku-catalog-selection input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:#245f99;cursor:pointer}
.sku-catalog-bulk{display:flex;flex-wrap:wrap;gap:16px;align-items:end;padding:16px;margin-block:20px;background:#edf4fb;border:1px solid #c8dbed;border-radius:12px}
.sku-catalog-bulk[hidden]{display:none}
.sku-catalog-bulk>div{flex:1;min-width:220px;align-self:center}
.sku-catalog-bulk small{display:block;color:#627084;margin-block-start:6px}
.sku-catalog-bulk label{display:grid;gap:6px;min-width:240px}
/* Administrator-only cost estimates use the existing card and table tokens. */
#order-costs-view .order-card{margin-block-end:24px;min-width:0}
#order-costs-view .report-toolbar{flex-wrap:wrap}
#order-costs-view dialog label{display:block;margin-block:16px}
#order-costs-view dialog input:not([type="checkbox"]),#order-costs-view dialog select,#order-costs-view dialog textarea{width:100%}
#order-costs-view dialog{max-width:min(720px,calc(100% - 32px))}
#order-costs-view dialog small{display:block}
#cost-edit fieldset{min-width:0;border:1px solid #c8dbed;border-radius:12px;padding:16px}
.cost-component-row{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-block-end:12px}
#cost-edit .cost-component-row label{flex:1;min-width:100px;margin:0}
#cost-edit .cost-component-row label:first-child{flex:2;min-width:min(200px,100%)}
#cost-edit .cost-component-row button{margin-block-end:1px}
#cost-edit{box-sizing:border-box;width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}
#order-costs-view td{overflow-wrap:anywhere}
#order-costs-view td small{display:block}
#order-costs-view #cost-history-dialog{box-sizing:border-box;width:min(1100px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto}
/* Select an invoice SKU without losing the source line or price review. */
#order-costs-view #invoice-cost-dialog{box-sizing:border-box;width:min(640px,100%);max-width:100%;max-height:100dvh;overflow:hidden}
#invoice-cost-form{display:flex;flex-direction:column;min-height:0;width:100%;height:100%}
#invoice-cost-form .invoice-drawer-header,#invoice-cost-form .invoice-drawer-footer{flex-shrink:0}
#invoice-cost-form .invoice-drawer-header h2{font-size:18px;line-height:1.4;margin:0}
.invoice-sku-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px;scroll-padding-block:16px}
.invoice-sku-source{padding:16px;background:var(--accent-subtle);border-radius:10px;font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:0 0 24px}
.invoice-sku-filters,.invoice-sku-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#order-costs-view #invoice-cost-dialog label{margin:0;min-width:0;font-size:13px;line-height:1.5}
#invoice-cost-dialog input,#invoice-cost-dialog select{min-width:0;min-height:44px;font:inherit;margin-block-start:6px}
#invoice-cost-dialog small{color:var(--muted);font-size:12px;line-height:1.5;margin-block-start:6px}
#invoice-sku-count{margin-block:16px 8px}
.invoice-sku-picker{min-width:0;padding:0;border:0;margin:0}
.invoice-sku-picker legend{font-size:13px;margin-block-end:8px}
#invoice-sku-results{max-height:280px;overflow:auto;overscroll-behavior:contain;padding:4px;scroll-padding-block:8px;border:1px solid var(--line);border-radius:10px}
#order-costs-view #invoice-cost-dialog .invoice-sku-option{display:flex;align-items:start;gap:12px;padding:12px;border-radius:6px;cursor:pointer}
.invoice-sku-option:hover{background:var(--accent-subtle)}
.invoice-sku-option:has(input:checked){background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--brand)}
#order-costs-view #invoice-cost-dialog .invoice-sku-option input{width:20px;min-height:20px;height:20px;flex-shrink:0;margin:0;accent-color:var(--brand)}
.invoice-sku-option>span{min-width:0;overflow-wrap:anywhere}
.invoice-sku-option strong,.invoice-sku-option>span>span{display:block}
.invoice-sku-option>span>span{margin-block-start:4px}
#invoice-sku-results>.form-hint{padding:12px;margin:0}
.invoice-sku-price{margin-block-start:24px;padding-block-start:24px;border-block-start:1px solid var(--line)}
.invoice-sku-price-fields{margin-block-start:20px}
#invoice-cost-dialog .invoice-sku-price>label+label{margin-block-start:20px}
#invoice-unit-calculation{margin-block-start:10px;font-variant-numeric:tabular-nums}
.cost-setting{display:flex;gap:12px;align-items:flex-start;margin-block:20px;font-size:14px;line-height:1.6;cursor:pointer}
.cost-setting input{flex-shrink:0;margin-block-start:4px}
.cost-setting small{display:block;max-width:850px;color:var(--muted);font-size:12px;margin-block-start:4px}
#cost-settings-status{margin-block-start:12px}
.invoice-cost-archive{margin-block-start:24px;padding-block-start:20px;border-block-start:1px solid var(--line)}
.invoice-cost-archive>summary{font-size:16px;font-weight:600;cursor:pointer;padding-block:12px}
.invoice-cost-archive>.form-hint{margin-block:12px 20px}
.invoice-archive-document{margin-block:16px;padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0}
.invoice-archive-document>summary{cursor:pointer;line-height:1.6;overflow-wrap:anywhere}
.invoice-archive-document>.form-hint{margin-block:12px}
.invoice-archive-pages{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-block-start:16px}
.invoice-assignment-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:190px;margin-block-start:8px}
#invoice-cost-form-error,#invoice-cost-preview{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin-block-start:16px}
#invoice-cost-preview:empty{display:none}
#invoice-cost-dialog :is(input,select,button):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:480px){.invoice-sku-body{padding:16px}.invoice-sku-filters,.invoice-sku-price-fields{grid-template-columns:minmax(0,1fr)}#invoice-cost-dialog input,#invoice-cost-dialog select{font-size:16px}}

#production-country-table > .country-statistics-notes {padding:0 20px 18px;}

#invoice-sku-selected{display:block;min-height:44px;padding:12px;margin-block-start:6px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere;white-space:normal}
.invoice-saved-price+.invoice-saved-price{margin-block-start:16px;padding-block-start:16px;border-block-start:1px solid var(--line)}
#invoice-cost-rows>tr>td{vertical-align:top}
#invoice-cost-rows>tr>td:nth-child(6){white-space:normal;min-width:180px;max-width:240px}
.invoice-saved-price{white-space:normal;min-width:190px}

.order-cod-amount-form{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.order-cod-amount-form>label{display:block;margin-bottom:8px;font-weight:600}
.order-cod-amount-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.order-cod-amount-controls input{width:200px;max-width:100%;min-height:40px}
.order-cod-amount-controls button{min-height:40px}
.order-cod-amount-controls button[aria-disabled="true"]{opacity:.6;cursor:wait}

.production-status{display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.production-status small{color:#525866}

.production-request-line,.production-request-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}.production-request-line label{display:flex;align-items:center;gap:6px;font-size:12px}.production-request-line input[type=number]{width:70px;min-height:36px}.production-request-panel{border-top:1px solid #e0e4eb;margin-top:18px;padding-top:16px}.production-request-panel>label{display:flex;flex-direction:column;gap:6px;max-width:600px}.production-request-panel details{margin-top:12px}.production-line-requests{margin-top:6px;font-size:12px}.production-line-requests ul{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:4px}.production-line-request .button{margin-left:6px;min-height:26px;padding:2px 10px;font-size:12px;vertical-align:baseline}.production-request-panel details{font-size:13px}.production-request-panel details li{margin-top:4px}.production-line-request.state-cancelled,.production-request-panel li.state-cancelled{color:#7a8291;text-decoration:line-through}.production-line-request.state-cancelled small{text-decoration:none}

.print-station-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-block:20px}.print-station-grid article{padding:16px;border:1px solid var(--border,#dbe3ed);border-radius:12px}

.tasks-board{display:grid;grid-template-columns:repeat(4,minmax(240px,1fr));gap:16px;overflow-x:auto;padding-block:20px}.tasks-column{background:#f3f5f8;border-radius:12px;padding:12px;min-width:0}.tasks-column>h2{font-size:16px;margin-block:4px 16px}.tasks-column>h2 small{color:#5f6b7a}.task-card{padding:16px;margin-block-end:12px;overflow-wrap:anywhere}.task-card-trigger{cursor:pointer;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:start}.task-card-trigger:hover .task-card-hint{text-decoration:underline}.task-card label{display:flex;flex-direction:column;gap:6px;margin-block:12px}.task-card input,.task-card textarea,.task-card select{width:100%;min-width:0}.task-card p{white-space:pre-wrap}.task-card[hidden]{display:none}

.tasks-create-form{display:flex;flex-direction:column;align-items:stretch;gap:20px;max-width:520px;margin-block-start:24px}.tasks-create-form label,.tasks-search,.tasks-tag-manager form>label{display:flex;flex-direction:column;gap:8px}.tasks-create-form input{width:100%;min-width:0;box-sizing:border-box}.tasks-create-form button{align-self:flex-start}.tasks-search{max-width:360px;margin-block:24px}.tasks-tag-list{display:flex;flex-wrap:wrap;gap:6px}.task-tag{display:inline-block;border:1px solid #cedcec;background:#edf3fa;color:#245f99;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:600;line-height:1.4}.tasks-tag-manager form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;margin-block-start:20px}.tasks-tag-manager form p{flex-basis:100%}.task-card fieldset{border:1px solid #dbe3ed;border-radius:8px;padding:10px;margin-block:16px}.task-card .task-tag-option{display:flex;flex-direction:row;align-items:center;font-size:12px;gap:8px}.task-card .task-tag-option input{width:16px;height:16px;min-height:16px;flex-shrink:0}

.tasks-create-form textarea{width:100%;box-sizing:border-box}.task-discussion{border-block:1px solid #dbe3ed;padding-block:12px;margin-block:16px}.task-comment{background:#f3f5f8;padding:12px;border-radius:8px;margin-block:12px}.task-comment p{white-space:pre-wrap}.task-comment button{margin-block-start:8px}.task-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.task-photos figure{margin:0;min-width:0}.task-photos img{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:8px}.task-photos figcaption{font-size:12px;overflow-wrap:anywhere;margin-block:6px}.task-discussion form{margin-block:20px}.task-discussion input[type=file],.tasks-create-form input[type=file]{padding:8px;font-size:12px}

.task-age{display:inline-block;align-self:flex-start;padding:5px 8px;border-radius:6px;background:#edf3fa;color:#245f99;font-size:12px;font-weight:600;line-height:1.5}.task-age[data-status=done]{background:#f0f2f5;color:#5f6b7a}

.tasks-create-form [hidden]{display:none}.tasks-create-form select{width:100%;min-width:0}

.task-tag-picker{border:1px solid #dbe3ed;border-radius:8px;padding:14px;min-width:0;margin:0}.task-tag-picker legend{padding-inline:4px;font-weight:600;font-size:13px}.task-tag-picker p{margin:0 0 12px;font-size:12px;color:#5f6b7a}.task-tag-choices{display:flex;flex-wrap:wrap;gap:8px}#wms-view .task-tag-choice{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;padding:8px 10px;border:1px solid #dbe3ed;border-radius:6px;background:#fff;cursor:pointer;font-size:12px}#wms-view .task-tag-choice:has(input:checked){background:#edf3fa;border-color:#245f99;color:#245f99}.tasks-create-form .task-tag-choice input,.task-card .task-tag-choice input{width:16px;height:16px;min-height:16px;flex-shrink:0;margin:0;accent-color:#245f99}.task-tag-choice:focus-within{outline:2px solid #245f99;outline-offset:2px}.task-card-hint{color:#245f99}.task-card [data-task-tags]{margin-block:16px}.task-card [data-task-tags] button{margin-block-start:12px}

/* Task details open beside the board, with independent scrolling. */
body:has(.task-drawer[open]){overflow:hidden}
.task-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(640px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-inline-start:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--text);box-shadow:-12px 0 40px #18233926;overflow:hidden}
.task-drawer[open]{display:flex;flex-direction:column}
.task-drawer::backdrop{background:rgb(24 35 57 / .28)}
.task-drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid var(--line);flex-shrink:0;background:var(--surface)}
.task-drawer-header>div{min-width:0}.task-drawer-header h2{font-size:24px;line-height:1.4;margin-block:4px}.task-drawer-header small,.task-drawer-header p{color:var(--muted);font-size:13px;line-height:1.5}.task-drawer-header .icon-button{min-width:44px;min-height:44px;flex-shrink:0}
.task-drawer-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:24px;padding:24px;overflow-wrap:anywhere}
.task-drawer-body h3{font-size:16px;margin-block-end:12px}.task-drawer-body p{line-height:1.6;margin-block:8px}.task-drawer-body a{color:var(--brand);text-decoration:underline}.task-drawer-meta{margin-block-end:24px}.task-drawer-body>form{margin-block:24px}.task-drawer-body .task-discussion{padding-block:24px;margin-block:24px}.task-drawer-body input[type=file]{max-width:100%}
@media(prefers-reduced-motion:no-preference){.task-drawer[open]{animation:task-drawer-in .22s ease-out}@keyframes task-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}}
@media(max-width:640px){.task-drawer-header,.task-drawer-body{padding:20px 16px}}
.tasks-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block:8px 20px}.tasks-toolbar p{color:var(--muted)}.tasks-toolbar p strong{color:var(--text)}.tasks-toolbar>div{display:flex;gap:12px;flex-wrap:wrap}.tasks-toolbar .button{min-height:42px;padding:10px 18px}.tasks-search{margin-block:16px}.task-card-trigger strong{font-size:17px;line-height:1.4}.task-card-email,.task-card-trigger>small{font-size:12px;color:var(--muted);line-height:1.5}.task-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block-start:12px;margin-block-start:4px;border-top:1px solid var(--line);color:var(--muted)}.task-card .task-tag{font-size:10px}.task-tag[data-tag="WGRANO WARSTWĘ"],.task-tag[data-tag="PRZEKAZANO TORTLI DRUK"]{background:#e6f4ea;border-color:#9fd3ad;color:#1e6b34}.task-tag[data-tag="ANULOWANE"]{background:#fdecec;border-color:#f0a8a8;color:#a3222b}.task-drawer{width:min(700px,100%)}.task-drawer-header{padding:24px 28px 16px;border-bottom:0}.task-drawer-header h2{font-size:26px;font-weight:700}.task-drawer-header>div>small{font-size:11px;font-weight:650;letter-spacing:.08em}.task-drawer-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 28px 20px;flex-shrink:0}.task-drawer-summary>a{font-size:12px;color:var(--brand);text-decoration:underline;text-underline-offset:3px;min-height:28px;display:inline-flex;align-items:center}.task-status{display:inline-block;font-size:11px;font-weight:700;line-height:1.5;padding:5px 9px;border-radius:6px;background:var(--accent-soft);color:var(--text)}.task-status[data-status=clarification]{background:#fff3d9;color:#805a09}.task-status[data-status=review]{background:#eaf1fb;color:#245f99}.task-drawer-summary .task-age{font-size:11px;background:transparent;color:var(--muted);padding-inline:0}.task-drawer-tabs{display:flex;gap:24px;padding-inline:28px;border-block:1px solid var(--line);flex-shrink:0;background:var(--surface)}.task-drawer-tabs button{position:relative;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);border-radius:0;min-height:50px;padding:12px 0;font-size:13px;font-weight:600}.task-drawer-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}.task-drawer-body{background:var(--bg);padding:24px 28px}.task-drawer-body h3{font-size:15px;line-height:1.5;font-weight:650;margin:0 0 16px;display:flex;align-items:center;gap:8px}.task-section-count{font-size:11px;min-width:22px;text-align:center;padding:2px 6px;border-radius:6px;background:var(--accent-soft);color:var(--muted)}.task-drawer-body .task-discussion{margin:0;padding:0;border:0}.task-drawer-body .task-section{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:0 0 20px}.task-drawer-body .task-section:last-child{margin-block-end:0}.task-drawer-body .task-comment{background:var(--surface);border:1px solid var(--line);padding:20px;border-radius:12px;margin:0 0 12px}.task-drawer-body .task-comment p{font-size:14px;line-height:1.75;margin:0 0 12px}.task-comment footer{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:11px}.task-drawer-body .task-text-action{border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;min-height:32px;padding:6px 8px;margin:0;width:auto}.task-drawer-body .task-text-action:hover{color:#a52a35;background:#fbeff0}.task-drawer-body .task-empty{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 16px}.task-drawer-body label{font-size:13px;font-weight:550;margin:0 0 16px;gap:8px}.task-drawer-body input,.task-drawer-body select,.task-drawer-body textarea{font-size:14px;font-weight:400;min-height:44px;background:var(--surface);color:var(--text);border-color:#a7afbc;border-radius:8px}.task-drawer-body textarea{resize:vertical;line-height:1.6}.task-drawer-body .button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:42px;font-size:13px;font-weight:600;padding:10px 16px;border-radius:8px;margin-block:0}.task-drawer-body form>small{display:block;color:var(--muted);font-size:12px;margin-block:-6px 16px}.task-drawer-body [role=alert]:empty{display:none}.task-drawer-body [role=alert]{font-size:13px;color:#a52a35;margin-block-start:12px}.task-drawer-body fieldset{margin:0 0 16px;padding:0;border:0}.task-drawer-body fieldset legend{display:none}.task-drawer-body .task-tag-choice input{min-height:16px;width:16px}.task-drawer-body .task-photos{margin-block-end:20px}.task-photos img{background:var(--bg);outline:1px solid #0000001a;outline-offset:-1px}.task-facts{display:grid;gap:14px;margin:0;font-size:13px;line-height:1.6}.task-facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px}.task-facts dt{color:var(--muted)}.task-facts dd{margin:0;font-weight:550}.task-timeline{list-style:none;padding:0;margin:0}.task-timeline li{border-inline-start:2px solid var(--line);padding:0 0 24px 20px;position:relative}.task-timeline li:before{content:'';position:absolute;inset-inline-start:-5px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--brand)}.task-timeline li:last-child{padding-block-end:0}.task-timeline strong{font-size:13px}.task-timeline p{font-size:13px;white-space:pre-wrap}.task-timeline .task-history-meta{font-size:11px;color:var(--muted);margin-block:4px 10px}
@media(max-width:640px){.task-drawer-header{padding:20px 16px 12px}.task-drawer-summary{padding:0 16px 16px}.task-drawer-tabs{gap:16px;padding-inline:16px}.task-drawer-tabs button{font-size:12px}.task-drawer-body{padding:20px 16px}.task-drawer-body .task-section,.task-drawer-body .task-comment{padding:16px}.tasks-toolbar{align-items:start;flex-wrap:wrap}.task-facts>div{grid-template-columns:minmax(0,1fr);gap:2px}}
.task-drawer-header .task-creator{font-size:11px;margin-block-start:8px}.task-status-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:0 28px 20px;flex-shrink:0}.task-status-form label{display:grid;gap:6px;font-size:12px;font-weight:550;flex:1;min-width:160px;margin:0}.task-status-form select{width:100%;min-height:40px;font-size:12px}.task-status-form .button{min-height:40px;padding:9px 14px;font-size:12px;border-radius:8px}.task-status-form [role=alert]{flex-basis:100%;font-size:12px;color:#a52a35}.task-status-form [role=alert]:empty{display:none}.task-comment footer>span{display:grid;gap:4px}.task-comment footer strong{font-weight:600;color:var(--text)}.task-photos figcaption small{display:block;color:var(--muted);margin-block-start:4px}@media(max-width:640px){.task-status-form{padding:0 16px 16px}}

/* Review decisions use semantic colors, paired with explicit labels. */
.tasks-board{grid-template-columns:repeat(6,minmax(240px,1fr))}
.task-review-actions,.task-card-review{--task-accept-solid:#18713f;--task-accept-hover:#125b32;--task-reject-solid:#b42318;--task-reject-hover:#912018;--task-decision-text:#fff}
.task-review-actions{padding:0 28px 20px;flex-shrink:0;max-height:50dvh;overflow:auto;overscroll-behavior:contain}.task-review-buttons,.task-card-review{display:flex;gap:12px;flex-wrap:wrap}.task-card-review{margin-block-start:16px;padding-block-start:16px;border-top:1px solid var(--line)}.task-review-buttons>.button,.task-card-review>.button{flex:1;min-height:42px;padding:10px 12px;font-size:12px;font-weight:700;border-radius:8px;white-space:normal}
.button.task-accept{background:var(--task-accept-solid);color:var(--task-decision-text);border:1px solid var(--task-accept-solid)}.button.task-reject{background:var(--task-reject-solid);color:var(--task-decision-text);border:1px solid var(--task-reject-solid)}
@media(hover:hover){.button.task-accept:hover{background:var(--task-accept-hover)}.button.task-reject:hover{background:var(--task-reject-hover)}}
.task-review-actions form{padding:16px;margin-block-start:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.task-review-actions label{display:grid;gap:8px;font-size:13px;font-weight:600}.task-review-actions label span{font-weight:400}.task-review-actions textarea{width:100%;min-width:0;resize:vertical;line-height:1.6}.task-review-actions .task-rejection-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 16px}.task-review-actions [role=alert]{font-size:13px;color:var(--task-reject-solid);margin-block-start:12px}.task-review-actions [role=alert]:empty{display:none}.task-status[data-status=accepted]{background:#e7f5eb;color:#155b33}.task-status[data-status=rework]{background:#fff0ee;color:#912018}
@media(max-width:640px){.task-review-actions{padding:0 16px 16px}.task-review-actions form{padding:12px}}

.task-photos .task-photo-preview{display:block;width:100%;border:0;padding:0;border-radius:8px;background:transparent;cursor:zoom-in}

/* Family downloads: keep controls beside the family name on all widths. */
.wms-download-card.wms-family-download-card{display:block}
.wms-family-download-card>a.button{display:inline-flex;margin:12px 0 0;max-width:100%;white-space:normal}
.production-type{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap;background:#e8f5ee;color:#2f7a57}.production-type-external{background:#fbeaf0;color:#a14555}.production-type-mixed{background:#eef4fb;color:#245f99}
.product-production-state{display:inline-flex;flex-direction:column;gap:2px;width:fit-content;margin-top:8px;padding:6px 9px;border:1px solid #c9d7e6;border-radius:6px;background:#eef4fb;color:#245f99;font-size:11px;line-height:1.35}.product-production-state small{color:#525866;font-size:10px}
.production-status{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.production-stage{display:inline-block;padding:3px 8px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:600;line-height:1.35;white-space:nowrap}
/* Stage palette by priority: red needs action, amber waits in-house, blue waits for a partner order, teal printing, green done/handed off. */
.production-stage-unknown,.production-stage-blocked,.product-production-state.stage-unknown,.product-production-state.stage-blocked{background:#fbeaf0;border-color:#efc3d0;color:#a14555}
.production-stage-queued,.production-stage-waiting,.product-production-state.stage-queued,.product-production-state.stage-waiting{background:#fff4e5;border-color:#f0d3a3;color:#8a5300}
.production-stage-awaiting_order,.production-stage-external,.product-production-state.stage-awaiting_order,.product-production-state.stage-external{background:#eef4fb;border-color:#c9d7e6;color:#245f99}
.production-stage-printing,.product-production-state.stage-printing{background:#e6f4f4;border-color:#b5dcdc;color:#1f6b6b}
.production-stage-received,.product-production-state.stage-received,.production-stage-printed,.production-stage-outsourced,.product-production-state.stage-printed,.product-production-state.stage-outsourced{background:#e8f5ee;border-color:#bfe0cd;color:#2f7a57}
.production-stage-none{background:#f4f4f6;border-color:#dcdee3;color:#525866}
#wms-label-scanner{margin:12px 0}#wms-label-video{display:block;width:100%;max-width:520px;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:#000}#wms-label-scan-status{margin-top:8px}
/* Raport produkcji (2026-11-23) */
.production-report-toolbar{display:flex;flex-wrap:wrap;align-items:end}
.production-report-toolbar label:not(.check-label){display:flex;flex-direction:column;gap:6px}
.production-report-toolbar .check-label{display:flex;align-items:center;gap:8px;min-height:42px}
.production-report-feedback{font-size:12px;color:var(--muted);margin:0 0 12px}
.production-report-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.production-report-card{margin-bottom:20px}
.production-report-card th.num,.production-report-card td.num{text-align:right;font-variant-numeric:tabular-nums}
.production-report-card td{font-size:12px;color:var(--text)}
.production-progress{display:flex;align-items:center;gap:10px;min-width:190px}
.production-progress-bar{flex:1;height:8px;border-radius:999px;background:var(--accent-subtle);border:1px solid var(--line);overflow:hidden}
.production-progress-bar>span{display:block;height:100%;background:var(--brand);border-radius:999px}
.production-progress-text{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.production-progress-text small{font-weight:400;color:var(--muted)}
.production-report-toggle{border:0;background:none;color:var(--brand);font-weight:600;font-size:12px;padding:8px 4px;min-height:36px;white-space:nowrap}
.production-report-toggle>span{display:inline-block;width:14px;font-size:14px}
.production-report-batch.is-open>td{background:var(--accent-subtle)}
.production-report-detail>td{padding:0 20px 16px 40px;background:var(--accent-subtle)}
.production-report-orders{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.production-report-orders th{white-space:nowrap}
.production-report-item{padding:2px 0;white-space:normal}
.production-report-sku{font-size:10px;color:var(--muted);margin-left:6px}
.production-report-file{max-width:260px;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.production-report-muted{font-size:11px;color:var(--muted)}
.production-report-empty{text-align:center;color:var(--muted);padding:28px}
@media(max-width:900px){.production-report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* External receiving station */
#receiving-view{display:grid;gap:16px}
.receiving-result{border-width:2px}
.receiving-result h2{font-size:1.5rem;margin:0 0 4px}
.receiving-ok{background:#e8f5ee;border-color:#2f7a57}
.receiving-error{background:#fdecec;border-color:#b42318}
.receiving-lines{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.receiving-lines li{display:flex;align-items:center;gap:12px}
.receiving-lines img{width:48px;height:48px;object-fit:cover;border-radius:8px}
.receiving-lines strong{margin-left:auto;font-variant-numeric:tabular-nums}
.packing-suggestions{margin-bottom:22px}.packing-suggestions h2{font-size:16px;margin-bottom:6px}.packing-suggestion-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}.packing-suggestion{border:1px solid var(--line);border-radius:12px;padding:12px 16px}.packing-suggestion-lead{border:2px solid var(--brand)}.packing-suggestion-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.packing-suggestion-head strong{font-size:18px;font-variant-numeric:tabular-nums}.packing-suggestion-head>span:last-of-type{color:#586579;font-size:13px}.packing-suggestion-head .button{margin-left:auto;min-height:40px}.packing-suggestion-items{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:6px}.packing-suggestion-items li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.packing-suggestion-items small{color:#586579}.packing-suggestion-items label{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px}.packing-suggestion-items input{min-height:34px;text-transform:uppercase}
.receiving-print{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:12px}
#receiving-scanner video{width:100%;max-width:480px;border-radius:12px;margin-top:12px}
.receiving-dialog{max-width:520px;border:0;border-radius:16px;padding:24px}
.receiving-dialog::backdrop{background:rgb(0 0 0/.35)}
.receiving-dialog h2:focus{outline:none}
.agent-move-text{white-space:pre-line;margin:2px 0 0}
