/* Retrowalk operational workspace: clear hierarchy, readable density, responsive detail. */
:root{--green:#155c50;--line:#e4e9eb;--ink:#18312f;--muted:#687c78;color:var(--ink);background:#f5f7f6;font-family:'Segoe UI',Arial,sans-serif}
button,input,select,textarea{font-size:13px}button{min-height:38px;transition:background .15s,border-color .15s}button:hover{border-color:#9dafab}input:focus,select:focus,textarea:focus{outline:2px solid #8bc5b6;outline-offset:2px}button:focus-visible,a:focus-visible{outline:3px solid #73b5a5}.primary{background:#155c50;border-color:#155c50}.primary:hover{background:#0b483e}.shell{grid-template-columns:234px minmax(0,1fr)}aside{background:#15362f;padding:32px 20px}.brand{font:27px Georgia,serif;letter-spacing:6px}.brand-sub{color:#a3bab0;margin-bottom:35px}nav button{color:#c8dad3;padding:12px 14px;min-height:45px}nav button.active{background:#2a4e43;box-shadow:inset 3px 0 #a4c9a8}nav button:hover,nav button.active:hover{background:#25473d}nav button:not(.active){color:#c4d7ce}.aside-foot{border-color:#3c5a4c;color:#a8c0b3}.workspace{padding:0 34px 40px;max-width:1800px;width:100%;margin:auto}header{height:80px}.account{background:transparent;border:0}.account button{background:white}.muted{color:var(--muted);font-size:13px;line-height:1.6}.eyebrow{color:#6b8178;letter-spacing:1.7px;font-size:10px}h1{font-size:29px;font-weight:650;letter-spacing:-.8px;line-height:1.25}h2{font-size:17px}h3{font-size:15px}.title-row p{margin:7px 0 0;max-width:690px}.notice{background:#f0f5f1;color:#496558;border-color:#d9e5dc;font-size:12px}.metrics{gap:16px}.metric{padding:20px 23px;border-radius:12px}.metric:before{display:none}.metric strong{font-size:33px;font-weight:650;margin:8px 0 0;color:#214a3b}.panel{border-radius:13px;background:#fff;box-shadow:0 2px 5px #18352b03}.queue-panel{margin-bottom:20px;padding:18px 20px}.queue-caption{font-size:10px;color:#5b7469;font-weight:700;letter-spacing:1px}.queue-caption span{font-weight:400;letter-spacing:0;margin-left:14px}.queue-bar{margin:13px 0 10px;gap:7px;flex-wrap:wrap}.queue-bar button{background:#f3f6f4;border:1px solid #e7ece8;color:#536c60;display:flex;gap:9px;align-items:center;padding:9px 11px;font-size:11px;min-height:37px;white-space:nowrap}.queue-bar button.primary{background:#155c50;color:white;border-color:#155c50}.queue-bar button span{border-radius:5px;min-width:22px;text-align:center;padding:2px 5px;background:#dde8e1;color:#365e49}.queue-bar button.primary span{background:#356f61;color:white}.queue-explanation{color:#61776c;font-size:12px;line-height:1.6;max-width:870px}.orders-panel-head{padding:20px 23px}.orders-panel-head h2{margin:0 0 3px}.orders-panel-head input{max-width:330px;background:#fafcfb;border-color:#e1e7e3}th{background:#f8faf9;color:#73877b;font-size:10px;padding:14px 20px}td{padding:19px 20px;vertical-align:middle}td strong{font-weight:600}td button{background:white;font-weight:600;padding:8px 12px}tbody tr:hover{background:#fbfdfb}.order-state{font-size:11px;border-radius:6px;padding:6px 9px}.state-awaiting_payment{background:#fff0ed;color:#ab3c30}.state-delivered{background:#e6f4eb;color:#206740}.state-partially_delivered{background:#eff0fb;color:#595498}.state-approved{background:#e9f3ed;color:#2b6647}.danger-quiet{color:#a1473b;background:#fff;border-color:#ecd9d4}
.order-detail-backdrop{background:#142e285c;backdrop-filter:blur(3px);z-index:20}.order-drawer{z-index:21;width:min(1040px,96vw);border:0;box-shadow:-18px 0 65px #14332925;border-radius:0;background:#f9fbf9}.drawer-header{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line);padding:24px 30px;display:flex;justify-content:space-between;align-items:flex-start}.drawer-header h2{font-size:27px;margin:0 0 9px;font-weight:650;letter-spacing:-.5px}.drawer-header .eyebrow{margin-bottom:6px}.drawer-header button{background:#f6f8f6}.drawer-body{padding:24px 30px 40px}.order-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:5px 0 17px}.order-summary-grid span,.item-facts span{display:block;color:#6b7f73;font-size:11px;margin-bottom:6px}.order-summary-grid strong{font-size:15px;font-weight:600}.next-step{border:1px solid #d7e5db;border-left:4px solid #527c61;background:#eff5f0;padding:20px 22px;border-radius:11px;margin:20px 0;display:flex;gap:18px;justify-content:space-between}.next-step h3{margin:0}.next-step p{font-size:12px;color:#57725d;margin:7px 0 0;max-width:570px}.next-step .eyebrow{margin-bottom:6px}.action-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.next-step .action-group{align-self:center;justify-content:flex-end;max-width:270px}.detail-section{background:#fff;border:1px solid var(--line);border-radius:11px;padding:21px;margin:19px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-heading h3{margin:0}.section-heading .muted{font-size:11px}.journey-steps{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.journey-steps li{display:flex;gap:10px;align-items:center;color:#7c8980}.step-marker{width:29px;height:29px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;border:1px solid #d9e3dc;background:#f6f8f6;font-size:12px}.journey-steps strong{font-size:12px;font-weight:600}.journey-steps small{display:block;font-size:10px;margin-top:4px}.journey-steps .is-complete{color:#2c6850}.is-complete .step-marker{background:#e0efe4;border-color:#bed7c4;color:#2d7151}.item-cards{display:grid;gap:13px}.order-item-card{border:1px solid #e4eae5;border-radius:9px;padding:17px}.item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.item-heading strong{font-size:14px}.item-heading p{font-size:11px;color:#6f8175;margin:5px 0 14px;word-break:break-word}.item-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.item-facts strong{font-size:12px;font-weight:600}.item-route{font-size:11px;background:#f2f6f2;color:#587160;padding:9px 11px;border-radius:6px;margin-top:14px}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-columns .detail-section{margin:0}.detail-list{margin:0}.detail-list div{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:9px 0;border-bottom:1px solid #edf1ed}.detail-list dt{color:#718174}.detail-list dd{margin:0;text-align:right;word-break:break-word}.detail-section p{font-size:12px}.shipment-card{border:1px solid #e1e8e2;padding:12px;border-radius:7px;margin:10px 0}.shipment-card span,.shipment-card small{display:block;font-size:11px;margin:5px 0;color:#6c7e70;overflow-wrap:anywhere}.order-history{padding:22px;margin-top:20px}.history-entry{background:#f8faf8;border-left:3px solid #d0e2d4;margin:10px 0;padding:12px 15px;border-radius:0 7px 7px 0;font-size:12px}.history-entry time{font-size:10px;margin-top:4px}.history-entry p{margin-bottom:0}.order-history form{padding:15px;background:#f5f8f5;border-radius:8px;margin:18px 0 28px}.order-history form button{margin-top:10px}.order-history textarea{min-height:85px}
.padded-panel{padding:24px}.scan-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:24px}.scan-guide{background:#fff;border:1px solid var(--line);color:#345543;border-radius:12px;padding:25px;height:max-content}.scan-guide h2{line-height:1.5}.scan-guide ul{padding-left:18px;font-size:13px;line-height:2}.scan-step{display:flex;gap:11px;align-items:center;border-top:1px solid #e6ece7;padding-top:16px;margin-top:5px}.scan-step:first-child{border:0;padding-top:0}.scan-step h2{margin:0;font-size:15px}.scan-step>span{display:grid;place-items:center;background:#edf4ed;color:#376749;width:27px;height:27px;border-radius:50%;font-size:12px}.scan-validation{background:#f0f5f0;border:1px solid #dce8de;padding:14px;font-size:13px;line-height:1.6;border-radius:8px}#barcode-video{width:100%;max-height:300px;background:#101b14;border-radius:9px}.auth{box-shadow:0 14px 50px #24433208}.lane{background:#eaf0e9}.task{border-top-color:#92ad87}.flow-node{background:#eef5eb;color:#496649}.split>.panel,.split>section>.panel{padding:24px}.panel>form{padding:22px}.panel.padded-panel>form{padding:0}.panel>.order-history{margin:20px}.badge{border-radius:5px}.payment-alert{color:#ab3c30;font-size:11px;font-weight:600}
@media(max-width:1100px){.workspace{padding:0 22px 30px}.shell{grid-template-columns:214px minmax(0,1fr)}.scan-workspace{grid-template-columns:1fr}.drawer-body{padding:22px}}
@media(max-width:700px){.shell{grid-template-columns:minmax(0,1fr)}aside{padding:17px}.workspace{padding:0 14px 24px}header{height:68px}h1{font-size:25px}.title-row{gap:12px}.metrics{gap:10px}.metric{padding:16px}.metric strong{font-size:29px}.queue-panel{padding:16px}.queue-caption span{display:block;margin:7px 0 0;line-height:1.6}.queue-bar{flex-wrap:nowrap;overflow:auto}.queue-bar button{flex-shrink:0}.drawer-header{padding:19px 17px}.drawer-header h2{font-size:24px}.drawer-body{padding:15px}.order-drawer{width:100vw}.order-summary-grid{grid-template-columns:1fr 1fr;gap:16px}.next-step{flex-direction:column;padding:17px}.next-step .action-group{align-self:stretch;justify-content:flex-start;max-width:none}.detail-section{padding:16px}.journey-steps{grid-template-columns:1fr 1fr;gap:15px}.item-facts{grid-template-columns:1fr 1fr;gap:14px}.item-heading{flex-wrap:wrap}.detail-columns{grid-template-columns:1fr}.section-heading{align-items:flex-start}.padded-panel{padding:18px}.scan-guide{padding:20px}.scan-workspace{gap:16px}}

.dispatch-timeline{margin:14px 0;padding:14px 16px;border:1px solid var(--border,#dce4e6);border-radius:12px;background:#f6faf9;line-height:1.55}.dispatch-timeline .timeline-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.dispatch-timeline p{margin:6px 0;color:#44565a}.dispatch-timeline small{display:block;margin-top:5px;color:#586b70}.dispatch-timeline.is-overdue{background:#fff4f1;border-color:#efc6bc}.dispatch-timeline.is-overdue .badge{color:#a83225;background:#ffe1da}

.task > small{display:block;margin-top:4px;margin-bottom:6px;color:var(--muted,#667570)}

/* Scoped settings layout: keep operation forms and permission rows aligned. */
.routing-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.routing-page .routing-panel{min-width:0;padding:0;overflow:hidden}
.routing-panel--confirmation,.routing-panel--roles{grid-column:1/-1}
.routing-panel--confirmation{order:1}.routing-panel--courier{order:2}.routing-panel--deadlines{order:3}.routing-panel--roles{order:4}
.routing-heading{padding:24px 26px 20px;border-bottom:1px solid var(--line)}
.routing-kicker{display:block;font-size:10px;letter-spacing:1.4px;font-weight:650;color:var(--muted);margin-bottom:8px}
.routing-heading h2{font-size:20px;margin:0 0 7px}.routing-heading p{font-size:13px;color:var(--muted);margin:0;max-width:850px;line-height:1.65}
.routing-page .routing-form{display:grid;gap:20px;margin:0;padding:24px 26px}
.routing-page label{min-width:0;font-size:12px;font-weight:600;line-height:1.5}
.routing-page input,.routing-page select{min-width:0;height:42px;width:100%;font-size:13px;font-weight:400}
.routing-rule-fields{display:grid;grid-template-columns:1.4fr .55fr 1fr 1.2fr;gap:16px}
.routing-rows{display:grid;gap:12px}
.routing-condition-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(90px,.7fr) auto;gap:14px;align-items:end;padding:16px;background:#f7f9f8;border:1px solid var(--line);border-radius:9px}
.routing-courier-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(65px,.6fr) minmax(65px,.7fr);gap:12px;padding:14px;border:1px solid var(--line);background:#f7f9f8;border-radius:9px;align-items:end}
.routing-courier-row .routing-remove{grid-column:1/-1;justify-self:end;min-height:30px;padding:4px 9px;font-size:11px}
.routing-condition-row .routing-remove{height:42px}
.routing-remove{color:#975047;background:#fff;border-color:#e6dcd8;white-space:nowrap}
.routing-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.routing-actions .primary{margin-left:auto}
.routing-subheading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.routing-subheading h3{margin:0}
.routing-page .routing-check{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.55}
.routing-page .routing-check input{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;padding:0;accent-color:var(--green)}
.routing-saved{padding:20px 26px 24px;border-top:1px solid var(--line);background:#fcfdfc}.routing-saved h3{font-size:13px;margin:0 0 12px}.routing-saved .routing-subheading{margin-bottom:14px}.routing-saved .routing-subheading h3{margin:0}
.routing-policy{padding:13px 15px;border:1px solid var(--line);background:#fff;border-radius:8px;margin-top:10px;font-size:12px;overflow-wrap:anywhere}.routing-policy>div>span{display:block;color:var(--muted);margin-top:6px}.routing-rule-card{display:flex;justify-content:space-between;align-items:center;gap:16px}.routing-rule-card p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.routing-deadline-fields{display:grid;gap:16px}.routing-hint{margin:0}
.routing-access-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}
.routing-page .routing-access-grid .routing-form{align-content:start}.routing-assignment{border-left:1px solid var(--line);background:#fcfdfc}
.routing-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;border:0;padding:0;margin:0;min-width:0}.routing-permissions legend{font-size:12px;font-weight:600;margin-bottom:12px}.routing-permissions .routing-check{padding:10px 12px;background:#f7f9f8;border:1px solid var(--line);border-radius:7px}
.routing-status{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.routing-status:empty{display:none}
@media(max-width:1100px){.routing-page{grid-template-columns:minmax(0,1fr)}.routing-panel--confirmation,.routing-panel--roles{grid-column:auto}.routing-rule-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.routing-access-grid{grid-template-columns:1fr}.routing-assignment{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:700px){.routing-page{gap:16px}.routing-heading{padding:20px 18px 16px}.routing-page .routing-form{padding:20px 18px;gap:18px}.routing-saved{padding:18px}.routing-rule-fields,.routing-permissions{grid-template-columns:minmax(0,1fr)}.routing-condition-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.routing-condition-row>label:first-child{grid-column:1/-1}.routing-condition-row .routing-remove{grid-column:1/-1;justify-self:end;height:34px;min-height:34px}.routing-courier-row{grid-template-columns:repeat(2,minmax(0,1fr))}.routing-courier-row>label:first-child{grid-column:1/-1}.routing-actions{gap:12px}.routing-actions .primary{margin-left:0}.routing-rule-card{align-items:flex-start;flex-direction:column}.routing-heading h2{font-size:18px}}

/* Consistent page interiors, forms and responsive content containment. */
.account-panel{padding:26px;margin-bottom:22px}
.account-panel>h2{margin:0 0 12px}.account-panel>p{margin:0 0 20px;color:var(--muted);line-height:1.7;max-width:760px}
.account-panel>form,.account-panel form{padding:0;display:grid;gap:18px;max-width:560px}
.account-panel form button{justify-self:start}.account-panel #mfa-enrollment:not(:empty){margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.account-panel #mfa-enrollment>label{margin-bottom:18px}.account-panel #reset-link:not(:empty){margin-top:20px}.account-panel #mfa-error:empty{display:none}
.courier-panel{padding:24px}.courier-panel>button{margin-bottom:22px}
#courier-ledger{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#courier-ledger .task{margin:0;min-width:0;padding:22px;overflow-wrap:anywhere;background:#fcfdfc}
#courier-ledger .task h3{margin:0 0 12px;font-size:17px}#courier-ledger .task p{font-size:13px;line-height:1.7;margin:10px 0;color:var(--muted)}
#courier-ledger .task>strong{display:inline-block;padding:6px 10px;border-radius:6px;background:#edf4f0;color:var(--green);font-size:12px}
#courier-ledger form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;padding-top:20px;border-top:1px solid var(--line)}
#courier-ledger form button,#courier-ledger form [role=status]{grid-column:1/-1;justify-self:start}#courier-ledger form [role=status]:empty{display:none}
#courier-status:empty{display:none}.report-panel #report-status{padding:0 22px 18px;margin:14px 0 0;font-size:13px;color:var(--muted)}
.activity-panel{padding:8px 24px}.activity-panel .event{overflow-wrap:anywhere;padding:18px 0}.activity-panel .event .muted{margin-top:7px;line-height:1.6}
.flow-studio .panel>h2{margin:0 0 20px}.flow-studio .panel>.inline,.flow-studio .panel>p.muted{margin:20px 0 0}.flow-studio .stage>label+label{margin-top:16px}
.flow-studio .stage-top>div,.flow-studio .inline{display:flex;flex-wrap:wrap;gap:8px}.flow-studio .flow-list{padding:0}.flow-studio .flow-track{flex-wrap:wrap}.flow-studio .flow-item{overflow-wrap:anywhere}
.title-row>div,.split>section,.board>.lane,.metrics>div{min-width:0}
@media(max-width:1100px){#courier-ledger{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.account-panel,.courier-panel{padding:20px 18px}.account-panel{margin-bottom:16px}#courier-ledger .task{padding:18px}#courier-ledger form{grid-template-columns:minmax(0,1fr)}.activity-panel{padding:4px 18px}.flow-studio .stage-top{gap:10px;align-items:flex-start}.flow-studio .stage-top>div{justify-content:flex-end}.inline{flex-wrap:wrap}.title-row button{white-space:normal}.account-panel input,.account-panel select{min-width:0}}

/* Invoice-first warehouse scanning and focused child parcel details. */
.approved-scan{padding:24px;margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:28px;border-top:4px solid #245e4b}.approved-scan h2{margin:6px 0}.approved-scan p{line-height:1.6}.approved-scan form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.approved-scan label,.approved-scan [role=status]{width:100%}.approved-scan video,#inline-video{width:100%;max-height:260px;border-radius:12px}.scan-product{padding:16px;border:1px solid #d8e4dd;border-radius:12px;margin:12px 0;display:grid;grid-template-columns:1fr auto;gap:12px}.scan-product small{display:block;margin-top:5px}.scan-complete{background:#eef7f0}.barcode-entry{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;padding:14px;background:white}.barcode-bars{width:180px;height:34px;background:repeating-linear-gradient(90deg,#172d25 0 2px,transparent 2px 4px,#172d25 4px 5px,transparent 5px 9px);opacity:.7}.barcode-entry code{font-size:15px;letter-spacing:1px}.parcel-context{padding:16px;background:#edf5f1;border-radius:12px;margin-bottom:20px;display:grid;gap:6px}.order-drawer .detail-section{padding-top:24px;padding-bottom:24px;border-bottom:1px solid #e6eae7}.order-drawer .item-heading p{line-height:1.7}.order-drawer .item-facts{gap:18px}.order-drawer .drawer-header{position:sticky;top:0;background:#fff;z-index:2}.order-drawer #inline-ship{display:grid;gap:12px}.order-drawer #inline-progress{margin-top:4px}
@media(max-width:760px){.approved-scan{grid-template-columns:1fr;padding:18px;gap:16px}.scan-product{grid-template-columns:1fr}.order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-drawer .detail-columns{grid-template-columns:1fr}}

.bulk-parcels{grid-column:1/-1;border-top:1px solid #dce6e0;padding-top:20px}.parcel-select{display:flex;flex-direction:row;align-items:center;gap:14px;border:1px solid #dce6e0;border-radius:10px;padding:12px;margin:10px 0}.parcel-select input[type=checkbox]{width:18px;flex:none}.parcel-select span{flex:1;min-width:0}.parcel-select small{display:block;margin-top:5px}.bulk-parcels .inline input{width:18px}.bulk-parcels .section-heading{flex-wrap:wrap}@media(max-width:760px){.parcel-select{flex-wrap:wrap}.parcel-select span{min-width:70%}.parcel-select button{flex:1}}

.product-barcode{width:100%;max-width:320px;height:46px;margin:4px auto;background:#fff;color:#111}

.parcel-courier{padding:22px;background:#eef5f1;border:1px solid #cddfd4;border-radius:14px;margin-bottom:20px}.parcel-courier h3{margin:5px 0 0}.courier-parcel-card{padding:18px;background:#fff;border-radius:10px;margin-top:15px}.courier-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.courier-facts span{display:block;color:#668072;font-size:11px;margin-bottom:7px}.courier-facts strong{display:block;overflow-wrap:anywhere;font-size:15px}.manual-delivery-note{color:#865d13;background:#fff7e4;border-radius:6px;padding:10px;line-height:1.6}.delivery-confirmed{color:#246444}.order-drawer{width:min(1060px,calc(100vw - 36px))}.order-drawer .order-summary-grid{border:1px solid #dce6df;background:#fff;border-radius:10px;padding:18px}.order-drawer .next-step{margin-top:18px}.order-history summary{cursor:pointer;font-weight:600;padding:8px 0}.parcel-context{font-size:12px}.order-drawer .journey-steps{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.order-drawer{width:100vw;max-width:100vw}.courier-facts{grid-template-columns:1fr 1fr}.parcel-courier{padding:15px}.courier-parcel-card{padding:14px}.order-drawer .journey-steps{grid-template-columns:1fr 1fr}}

.item-comments{margin-top:18px;border-top:1px solid #dce6df;padding-top:14px}.item-comments summary{cursor:pointer;font-weight:600;color:#225a47}.item-comments form{display:grid;gap:12px;margin-top:16px}.item-comment-entry{border:1px solid #dde6e1;border-radius:10px;padding:14px;margin-top:12px;background:#f8fbf9}.item-comment-entry>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.item-comment-entry time,.comment-sync{font-size:11px;color:#65766d}.item-comment-entry p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.sync-synced{color:#246444}.sync-pending,.sync-retry{color:#875e12}.item-comments textarea{min-height:90px}

.cn-tracking-link{color:#176a50;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.cn-tracking-link:hover{color:#103f31}.cn-tracking-link:focus-visible{outline:2px solid #176a50;outline-offset:4px}

.return-workspace{background:#fafcfb}.return-step{border:1px solid #dbe6df;border-radius:12px;padding:20px;margin-top:18px;background:#fff}.return-step-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.return-step-title>span{background:#e7f1eb;color:#215a45;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;flex:none;font-weight:600}.return-step-title h4{margin:2px 0 6px;font-size:16px}.return-step-title p,.return-step-note{color:#64796d;font-size:12px;line-height:1.6}.return-item-card{padding:18px;border:1px solid #dce6df;border-radius:10px;margin:14px 0}.return-item-card .section-heading{align-items:flex-start}.return-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.return-step form{display:grid;gap:14px}.return-resolution-details summary{cursor:pointer;font-weight:600;padding:14px 0}.return-receipt-form video{width:100%;max-height:240px}.return-item-card p{line-height:1.6}.return-receipt-form .barcode-entry{justify-self:start}.return-step form [role=status]{color:#875b19}@media(max-width:760px){.return-form-row{grid-template-columns:1fr}.return-step{padding:15px}.return-item-card{padding:14px}}

/* Audit release 0.4.15: compact, scoped operations. */
.order-drawer .next-step{position:sticky;top:0;z-index:3;box-shadow:0 3px 12px #183d3510}.order-drawer .next-step h3{margin:5px 0}.order-drawer .detail-section summary{cursor:pointer;font-weight:650;padding:6px 0}.order-drawer .detail-columns{align-items:start}.order-drawer .manual-delivery-note{background:#fff1d7;color:#744700;border-left:4px solid #c28623;padding:12px}.task-instructions{background:#edf4f0;border-radius:8px;padding:12px}.test-visibility{margin:12px 0}.mobile-queue{display:none}.production-workspace .board{align-items:start}.courier-panel #courier-ledger{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.courier-panel .task{min-width:0}.courier-panel details{padding:10px 0}.order-drawer .detail-section{margin-bottom:14px}.order-drawer .parcel-context{margin:0 0 12px}.order-drawer .item-facts{gap:12px}.order-drawer .next-step .action-group{flex-wrap:wrap}
@media(max-width:700px){.mobile-queue{display:block}.queue-bar{display:none!important}.queue-caption span{display:none}.order-drawer .next-step{position:relative}.order-drawer .next-step .action-group{width:100%}.order-drawer .next-step button{width:100%}.order-drawer .detail-columns{display:block}.board{grid-template-columns:1fr!important}.courier-panel #courier-ledger{grid-template-columns:1fr}.order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* 0.4.16 — workspace design system. Shared rhythm, clear work areas and parcel focus. */
:root{--green:#195d50;--ink:#213a37;--muted:#607570;--line:#dfe7e4;background:#f3f6f5;color:var(--ink)}
body{font-family:'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,.metric strong{font-family:inherit}h1{font-size:30px;letter-spacing:-1px;font-weight:650}h2{font-size:18px}h3{font-size:15px}button{font-weight:600;border-radius:9px;min-height:40px}input,select,textarea{border-color:#cddbd5;border-radius:9px;min-height:42px}input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--green)}
.shell{grid-template-columns:232px minmax(0,1fr)}.shell>aside{position:sticky;top:0;height:100vh;overflow-y:auto;background:#123e35;padding:30px 18px;border:0}.brand{color:#fff;font-size:28px;letter-spacing:6px}.brand-sub{font-size:9px;letter-spacing:1.8px;margin:10px 0 25px;color:#adcac0}.nav-group-label{font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:#a3c3b7;margin:22px 13px 7px;font-weight:600}.nav-group-label:first-child{margin-top:0}nav{gap:4px}nav button{font-size:12px;min-height:44px;border-radius:8px;padding:10px 13px}nav button.active{background:#e9f4ed;color:#164e3f;box-shadow:none}nav button.active:hover{background:#d6e9de}nav button:not(.active){color:#d1e3da}.aside-foot{border-top:1px solid #3e6256;padding-top:20px;font-size:10px;margin-top:28px;color:#a7c5b8;line-height:1.9}
.workspace{padding:0 32px 44px;max-width:1750px}.workspace>header{height:76px}.workspace>header select{background:white;border:1px solid var(--line);font-weight:600;width:180px}.workspace>header .muted{font-size:10px;letter-spacing:1px}.account{font-size:12px}.workspace>header+.notice{border:0;border-left:3px solid #6f9f8a;background:#eaf1ee;color:#48675c;padding:10px 14px;font-size:11px;margin:18px 0 24px;line-height:1.6}.title-row{margin:26px 0 24px;align-items:flex-start}.title-row .eyebrow{color:#598170;font-size:10px;margin-bottom:9px}.title-row p{line-height:1.65}.title-row>button{margin-top:10px}.metrics{gap:16px;margin:20px 0 24px}.metric{padding:21px 23px;border-radius:13px;border:1px solid var(--line);box-shadow:0 2px 3px #18352b03}.metric .muted{font-size:12px;font-weight:600}.metric strong{font-size:34px;letter-spacing:-1px;color:#204d3c;margin:8px 0}.metric small{color:var(--muted)}.panel{border-color:var(--line);box-shadow:0 3px 8px #17362d03}.test-visibility{justify-content:flex-end;margin:-8px 0 8px;font-size:12px}
.queue-panel{padding:20px 22px;background:#fff}.queue-caption{font-size:10px;letter-spacing:1.4px}.queue-caption span{font-size:11px;color:var(--muted)}.queue-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.queue-bar button{white-space:normal;justify-content:space-between;text-align:left;background:#f5f8f6;border:1px solid #e2e9e5;padding:10px 12px;min-height:43px;line-height:1.4;font-size:11px}.queue-bar button.primary{background:#1c5b4a;border-color:#1c5b4a;box-shadow:0 2px 4px #164c3820}.queue-bar button span{flex-shrink:0}.queue-explanation{border-top:1px solid #e7ede9;padding-top:13px;max-width:none}.orders-panel-head{padding:22px 24px}.orders-panel-head input{max-width:320px}th{font-size:10px;letter-spacing:.6px;background:#f7f9f8;color:#627b6e;padding:14px 18px}td{padding:20px 18px;font-size:12px;line-height:1.7}td strong{font-size:13px}tbody tr:hover{background:#f3f8f5}td:last-child button{border:1px solid #cbded2;background:#edf5ef;color:#285e45;white-space:nowrap}.table-wrap{scrollbar-width:thin}.table-wrap table{min-width:760px}.order-state{border-radius:6px;font-weight:600;line-height:1.5}.state-in_production{color:#775595;background:#f2eaf8}.state-returned{color:#915d24;background:#fff0df}
/* A fixed header and independently scrolling body keep the parcel identity in view. */
.order-drawer{display:flex;flex-direction:column;overflow:hidden!important;top:14px;right:14px;bottom:14px;width:min(1000px,calc(100vw - 44px));border:1px solid #dbe5de;border-radius:18px;box-shadow:0 24px 100px #102e3b40;background:#f4f7f5}.order-drawer .drawer-header{position:relative;flex:0 0 auto;align-items:center;padding:22px 28px;background:#fff;z-index:2}.drawer-header>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px 15px}.drawer-header .eyebrow{width:100%;margin:0;font-size:9px}.drawer-header h2{font-size:26px;line-height:1.15;margin:0}.drawer-header button{min-height:38px;background:white;border-color:#d8e3db}.drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 26px 30px;scrollbar-gutter:stable}.order-drawer .next-step{position:sticky;top:0;z-index:4;flex-wrap:wrap;margin:0 -26px 22px;border:0;border-radius:0;border-bottom:1px solid #d4e2d9;border-left:4px solid #34765b;padding:18px 24px;background:#eaf3ed;box-shadow:0 4px 10px #1e423712;gap:12px}.next-step>div:first-child{flex:1;min-width:220px}.next-step .eyebrow{font-size:9px;margin-bottom:4px}.next-step h3{font-size:15px;margin:0}.next-step p{margin:5px 0 0;font-size:12px;color:#4b6959;line-height:1.55;max-width:560px}.next-step .action-group{max-width:290px;gap:8px}.next-step .primary{box-shadow:0 2px 5px #1b50301a}.order-drawer .order-summary-grid{padding:18px 20px;border-radius:12px;background:#fff;margin-bottom:20px;gap:16px}.order-summary-grid>div+div{border-left:1px solid #e4ebe6;padding-left:16px}.order-summary-grid strong{font-size:15px}.order-summary-grid span{font-size:10px;letter-spacing:.25px;color:#647b6e}.parcel-context{background:#e9efed;border:1px solid #d7e1db;color:#486456;padding:12px 16px;gap:4px}.order-drawer .detail-section{border:1px solid #dfe7e1;border-radius:12px;padding:20px;margin:16px 0;background:white}.order-drawer .detail-section>summary{font-size:13px;display:flex;align-items:center;gap:10px;list-style:none;padding:2px 0;line-height:1.5}.order-drawer summary::-webkit-details-marker{display:none}.order-drawer .detail-section>summary:before{content:'+';width:24px;height:24px;border-radius:6px;background:#eef4ef;color:#3c6b50;display:grid;place-items:center;flex-shrink:0;font-size:16px;font-weight:400}.order-drawer details[open].detail-section>summary:before{content:'−'}.order-drawer details[open].detail-section>summary{padding-bottom:16px;margin-bottom:12px;border-bottom:1px solid #e5ece7}.summary-hint{margin-left:auto;font-size:11px;color:#75877d;font-weight:400}.order-drawer .journey-steps{padding-top:4px;gap:18px}.order-drawer .detail-columns{gap:14px;align-items:start}.order-drawer .detail-columns>.detail-section{margin:0}.order-drawer .item-cards{gap:16px}.order-drawer .order-item-card{padding:20px;background:#fcfdfc;border-color:#dce7df;border-radius:10px}.item-heading strong{font-size:16px}.item-heading p{font-size:12px;margin:6px 0 16px}.order-drawer .item-facts{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:14px 0;border-top:1px solid #e5ece7;border-bottom:1px solid #e5ece7}.item-facts span{font-size:10px}.item-facts strong{font-size:13px}.item-route{font-size:12px;margin-top:14px;background:#edf3ef}.item-comments{padding-top:12px;margin-top:14px}.dispatch-timeline{padding:12px 14px;font-size:12px;background:#f0f5f2}.parcel-courier{margin:18px 0;background:#fff;border:1px solid #dce6df;padding:20px;border-radius:12px}.courier-parcel-card{background:#f6f9f7;border:1px solid #e2eae4;margin-top:14px;padding:18px}.courier-facts strong{font-size:14px}.manual-delivery-note{font-size:12px}.order-history{border:1px solid #dfe7e1;border-radius:12px;background:white}.order-drawer .notice{font-size:11px}.approved-scan{background:linear-gradient(120deg,#eef6f0,#fff);border-top:3px solid #367b5a}.approved-scan h2{font-size:23px;letter-spacing:-.4px}.approved-scan>div>p{font-size:12px;color:#51715c}.bulk-parcels{background:#fff;border-radius:10px;padding:20px;border:1px solid #dce6df}.scan-product{background:#fff}.return-step-title h4{font-size:16px}
/* Production is an operator's workbench: identity, stage, ownership, deadline, action. */
.production-toolbar{padding:16px 18px;background:white;border:1px solid var(--line);border-radius:12px;flex-wrap:wrap;gap:12px;margin-bottom:22px}.production-toolbar select{width:160px}.production-toolbar>span{margin-left:auto;font-size:11px}.production-toolbar input[type=checkbox]{width:16px}.production-toolbar label{font-size:12px}.page-production .board{grid-template-columns:repeat(3,minmax(240px,1fr));align-items:start;gap:18px}.page-production .board:has(.lane-completed){grid-template-columns:repeat(4,minmax(220px,1fr));overflow:auto}.lane{background:#eaf0ed;border:1px solid #dce5df;border-radius:14px;padding:14px;min-height:320px}.lane-title{font-size:12px;font-weight:650;padding:5px 4px 17px;align-items:center;color:#355744}.lane-title span{background:white;border:1px solid #d9e5dc;border-radius:6px;padding:3px 8px;min-width:26px;text-align:center}.lane-blocked{background:#f6f0e7;border-color:#e9dfce}.lane-working{background:#e7efeb}.lane-completed{background:#eef3ef}.lane-cards .empty{border:1px dashed #c9d7cc;border-radius:10px;margin-top:5px;line-height:1.8;color:#687e6e;padding:30px 16px}.task{border:1px solid #dbe5de;border-top:3px solid #93b7a2;border-radius:10px;padding:18px;box-shadow:0 2px 4px #1d42340a;margin:0 0 14px}.task-in_progress{border-top-color:#368467}.task-blocked{border-top-color:#c28d40}.task .task-identity{justify-content:space-between;gap:8px;flex-wrap:wrap}.task .task-identity .badge{font-size:10px;padding:5px 7px}.task h3{font-size:16px;line-height:1.4;margin:16px 0 5px}.task>.muted{font-size:11px;line-height:1.6}.task-stage{background:#f2f6f3;border-radius:8px;padding:12px 13px;margin-bottom:10px;display:grid;gap:3px}.task-stage .eyebrow{font-size:9px;margin:0}.task-stage>strong{font-size:14px}.task-stage small{font-size:10px;color:#6c8072}.task-meta{margin:16px 0 0;display:grid;gap:10px}.task-meta>div{display:grid;gap:4px}.task-meta dt{font-size:10px;color:#6b8072}.task-meta dd{font-size:12px;margin:0;font-weight:600;overflow-wrap:anywhere}.task-actions{padding-top:15px;border-top:1px solid #e6ece7;margin-top:17px;gap:8px}.task-actions button{font-size:11px;min-height:38px;padding:8px 11px;flex:1}.task-actions button.primary{flex-basis:100%}.task-instructions{font-size:12px;line-height:1.7}.task .spacer{height:15px}.flow-studio{align-items:start;grid-template-columns:minmax(380px,1.2fr) minmax(280px,.8fr)}.flow-studio .stage{padding:20px;border-left:3px solid #7eaa90;background:#fafcfb;margin:18px 0}.flow-studio .stage-number{width:32px;height:32px;font-weight:650}.flow-studio .stage-top{padding-bottom:12px;border-bottom:1px solid #e2eae4}.flow-studio .flow-item{padding:20px}.flow-studio .flow-node{border:1px solid #d6e4da;padding:10px 12px;line-height:1.6}.routing-page{gap:22px}.routing-heading{background:#f8fbf9}.routing-heading h2{font-size:19px}.routing-condition-row,.routing-courier-row{background:#f5f9f6}.routing-saved{background:#fafcfb}.routing-permissions .routing-check{background:white}.account-panel{padding:28px}.activity-panel .event{font-size:13px;line-height:1.7}.courier-panel .task{border-top:3px solid #7da58d}.report-panel .table-wrap{max-height:70vh}.report-panel th{position:sticky;top:0;z-index:1}#toast{z-index:100;box-shadow:0 6px 24px #17362c30}
@media(min-width:1500px){.queue-bar{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1200px){.workspace{padding:0 22px 35px}.shell{grid-template-columns:212px minmax(0,1fr)}.queue-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.page-production .board{grid-template-columns:repeat(3,minmax(210px,1fr));overflow:auto}.flow-studio{grid-template-columns:minmax(0,1fr)}.flow-studio .stage-grid{grid-template-columns:1.2fr .7fr 1fr}.next-step .action-group{max-width:260px}}
@media(max-width:700px){.shell{grid-template-columns:minmax(0,1fr)}.shell>aside{position:relative;height:auto;overflow:visible;padding:18px 16px 12px}.brand{font-size:22px}.brand-sub{margin:6px 0 15px;font-size:8px}.nav-group-label,.aside-foot{display:none}nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:4px}nav button{flex-shrink:0;min-height:40px;font-size:11px;white-space:nowrap}nav svg{width:16px;height:16px}.workspace{padding:0 14px 25px}.workspace>header{height:auto;min-height:72px;gap:10px;flex-wrap:wrap;padding:12px 0}.workspace>header .muted{display:none}.workspace>header select{width:150px;font-size:12px}.account{gap:7px;font-size:11px}.account button{font-size:11px;padding:8px}.title-row{margin:22px 0 18px;flex-wrap:wrap;gap:8px}h1{font-size:26px}.title-row>button{margin-top:0}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:17px}.metric strong{font-size:29px}.metric .muted{font-size:11px}.queue-bar{display:none!important}.mobile-queue{display:grid;margin-top:14px}.queue-explanation{margin-top:14px}.queue-panel{padding:18px}.orders-panel-head{padding:18px}.order-drawer{top:0;right:0;bottom:0;width:100vw;max-width:100vw;border:0;border-radius:0}.order-drawer .drawer-header{padding:17px}.drawer-header h2{font-size:23px}.drawer-body{padding:0 15px 25px}.order-drawer .next-step{position:relative;margin:0 -15px 18px;padding:17px 15px}.next-step>div:first-child{min-width:0}.next-step .action-group{max-width:none;width:100%}.next-step .action-group button{width:100%}.order-summary-grid>div+div{border:0;padding-left:0}.order-drawer .order-summary-grid{padding:16px}.order-drawer .item-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.order-drawer .order-item-card{padding:15px}.order-drawer .detail-section{padding:16px}.order-drawer .detail-columns{display:grid;gap:14px}.summary-hint{display:none}.courier-facts{grid-template-columns:1fr 1fr}.page-production .board,.page-production .board:has(.lane-completed){grid-template-columns:1fr;overflow:visible}.production-toolbar>input{max-width:none}.production-toolbar>span{margin-left:0}.production-toolbar select{width:100%}.flow-studio{grid-template-columns:1fr}.flow-studio .stage{padding:16px}.flow-studio .stage-grid{grid-template-columns:1fr}.approved-scan{padding:18px}.bulk-parcels{padding:14px}.test-visibility{justify-content:flex-start;margin:10px 0}.courier-panel #courier-ledger{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.badge.late,.task .badge.late{background:#fff0dc;color:#935c16}body:has(.order-drawer){overflow:hidden}.order-drawer summary:focus-visible{outline:2px solid #347e60;outline-offset:5px;border-radius:4px}
@media(max-width:700px){.drawer-header button{white-space:nowrap;flex-shrink:0}.page-orders .orders-panel-head+.table-wrap table{min-width:0;display:block}.page-orders .orders-panel-head+.table-wrap thead{display:none}.page-orders .orders-panel-head+.table-wrap tbody{display:grid;gap:12px;padding:14px}.page-orders .orders-panel-head+.table-wrap tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dce6df;border-radius:10px;padding:13px;background:#fff;gap:12px}.page-orders .orders-panel-head+.table-wrap tr[hidden]{display:none}.page-orders .orders-panel-head+.table-wrap td{display:block;padding:0;border:0;min-width:0;font-size:11px}.page-orders .orders-panel-head+.table-wrap td:first-child{grid-column:1/-1}.page-orders .orders-panel-head+.table-wrap td:first-child strong{font-size:16px}.page-orders .orders-panel-head+.table-wrap td:nth-child(2){grid-column:1/-1}.page-orders .orders-panel-head+.table-wrap td:nth-child(3):before{content:'ITEMS';display:block;font-size:9px;color:#6c8074;letter-spacing:.7px}.page-orders .orders-panel-head+.table-wrap td:nth-child(4):before{content:'VALUE / PAYMENT';display:block;font-size:9px;color:#6c8074;letter-spacing:.7px}.page-orders .orders-panel-head+.table-wrap td:nth-child(5){grid-column:1/-1;background:#f3f7f4;padding:8px;border-radius:5px}.page-orders .orders-panel-head+.table-wrap td:last-child{grid-column:1/-1}.page-orders .orders-panel-head+.table-wrap td:last-child button{width:100%;min-height:42px}.page-orders .orders-panel-head+.table-wrap td.empty{grid-column:1/-1}}

.order-drawer #inline-ship,.order-drawer .return-workspace,.order-drawer .parcel-courier{scroll-margin-top:160px}@media(max-width:700px){.order-drawer #inline-ship,.order-drawer .return-workspace,.order-drawer .parcel-courier{scroll-margin-top:12px}}

/* 0.4.17: keep daily work and next actions above the fold. */
.page-orders .title-row{margin:16px 0 12px}.page-orders .title-row h1{margin-bottom:5px}.page-orders .title-row p{margin:5px 0}.page-orders .metrics{margin:14px 0 16px;gap:12px}.page-orders .metric{padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.page-orders .metric strong{font-size:28px;margin:0}.page-orders .queue-panel{padding:16px 20px}.page-orders .queue-bar{margin:12px 0;gap:6px}.page-orders .queue-bar button{min-height:36px;padding:7px 10px}.page-orders .queue-explanation{padding-top:10px;font-size:12px}.orders-panel-head{gap:16px}.orders-panel-head input{min-width:260px}.activity-context{display:block;margin-top:8px;color:var(--muted)}.flow-studio .stage-top button[aria-label]{min-width:40px}.page-production .task-stage{border-left:3px solid var(--green);padding-left:12px}.page-production .task-actions .primary{flex:1}
@media(max-width:700px){.page-orders .metrics{gap:8px}.page-orders .metric{padding:12px;display:block}.page-orders .metric strong{display:block;margin-top:8px}.orders-panel-head input{min-width:0;width:100%}.page-orders .queue-panel{padding:14px}.page-orders .title-row{gap:12px}}

/* Design refresh 2026-10-29: purposeful colour, tactile controls, restrained motion. */
:root{--green:#176558;--ink:#203d38;--muted:#60756f;--line:#dfe8e3;--surface:#fff;--motion:180ms;background:#f4f6f2}
body{background:linear-gradient(125deg,#f1f6f1 0%,#f8f7f2 70%,#f0f5f4 100%)}
aside{background:linear-gradient(165deg,#183f35,#102e29);box-shadow:4px 0 24px #183b3508}
nav button{border-radius:10px;transition:background var(--motion),box-shadow var(--motion),color var(--motion)}
nav button.active{background:#315d4f;box-shadow:inset 3px 0 #c5dfae;color:#fff}
.workspace>header{border-bottom:1px solid #dce6de}.workspace>.notice{border-radius:9px;background:#eaf3ed;color:#3c6455}
h1{color:#193e34}.title-row .eyebrow{color:#447e67;font-weight:700}
.panel,.metric{border-color:var(--line);box-shadow:0 3px 12px #223e3105}
.metric{border-top:3px solid #34826d;background:linear-gradient(135deg,#fff,#f5faf6)}
.metric:nth-child(2){border-top-color:#bf8b35;background:linear-gradient(135deg,#fff,#fcf8ef)}
.metric:nth-child(3){border-top-color:#a96657;background:linear-gradient(135deg,#fff,#fcf3f0)}
.metric:nth-child(4){border-top-color:#5783a3;background:linear-gradient(135deg,#fff,#f0f6fa)}
.metric strong{font-variant-numeric:tabular-nums;letter-spacing:-1px}
button{transition:background var(--motion),border-color var(--motion),box-shadow var(--motion),transform 120ms;touch-action:manipulation}
button.primary,.primary{background:#176558;border-color:#176558;color:#fff;box-shadow:0 3px 7px #155c5017}
button:enabled:active{transform:translateY(1px);box-shadow:none}
button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #3d8a78;outline-offset:3px}
input,select,textarea{transition:border-color var(--motion),box-shadow var(--motion);accent-color:var(--green)}
input:focus,select:focus,textarea:focus{border-color:#448a76;box-shadow:0 0 0 3px #17655812;outline:2px solid #8dc1b1}
.queue-panel{background:linear-gradient(120deg,#fff,#fafcf9)}
.queue-bar button{--stage:#6b8077;border-left:3px solid var(--stage);background:#f6f8f5;color:#3d584e;font-weight:600;white-space:normal;text-align:left;line-height:1.4}
.queue-bar button[data-queue=awaiting_confirmation]{--stage:#b68128}
.queue-bar button[data-queue=awaiting_payment]{--stage:#b45b4b}
.queue-bar button[data-queue=in_production]{--stage:#8670ae}
.queue-bar button[data-queue=approved]{--stage:#1d8973}
.queue-bar button[data-queue=dispatched],.queue-bar button[data-queue=partially_dispatched]{--stage:#5289af}
.queue-bar button[data-queue=delivered],.queue-bar button[data-queue=partially_delivered]{--stage:#49835a}
.queue-bar button[data-queue=returned]{--stage:#aa7250}
.queue-bar button.primary{background:#176558;border-color:#176558;border-left-color:#b7d9b0;color:white;box-shadow:0 3px 9px #17655820}
.queue-bar button span{margin-left:auto;font-variant-numeric:tabular-nums;flex-shrink:0}
.queue-explanation{border-top:1px solid #e5ece6}
.orders-panel-head{background:#fff;border-radius:13px 13px 0 0}.orders-panel-head input{background:#f6f8f5;border-radius:10px}
th{background:#edf3ee;color:#4f695c;letter-spacing:.7px}tbody tr{transition:background var(--motion)}
.order-state{font-weight:600;line-height:1.5}.state-awaiting_confirmation{background:#fbf0d9;color:#7d571c}.state-in_production{background:#f0eafa;color:#70518c}.state-dispatched,.state-partially_dispatched{background:#e8f2fa;color:#316a92}
.state-awaiting_review,.state-awaiting_allocation{background:#edf1ed;color:#526651}.state-returned{background:#f9eede;color:#875e30}.state-cancelled{background:#f0eeee;color:#6f6060}
.order-drawer{background:#f5f8f4;animation:oms-drawer-in 220ms ease-out}.drawer-header{background:linear-gradient(110deg,#fff,#eef6ef)}
.next-step{background:linear-gradient(110deg,#e8f3eb,#f3f8ef);border-color:#c9dfce;border-left:4px solid #34846b;box-shadow:0 3px 10px #254b3105}
.next-step h3{color:#194e3e}.next-step .primary{min-height:44px}
.detail-section{box-shadow:0 2px 8px #253e3003}details.detail-section>summary{border-radius:7px;transition:color var(--motion),background var(--motion);cursor:pointer}
details.detail-section[open]>summary{color:#176558}details.detail-section[open]>:not(summary){animation:oms-content-in 160ms ease-out}
.order-item-card{background:#fcfdfb;border-color:#dfe8de}.item-route{background:#edf4eb}.is-complete .step-marker{background:#d8eddf;border-color:#9ac7a8}
.production-toolbar{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.lane{border:1px solid #e0e7df;border-top:3px solid #a6b5a5;border-radius:12px;background:#eef2ec}.lane-working{border-top-color:#5b91b8;background:#eef4f7}.lane-blocked{border-top-color:#c5865e;background:#fbf3eb}.lane-completed{border-top-color:#6f9e71;background:#eef5eb}
.lane-title{color:#40594d}.task{border-radius:11px;box-shadow:0 2px 6px #233c3006}.task-stage{background:#f5f8f3;border-radius:0 7px 7px 0;padding-top:8px;padding-bottom:8px}
.flow-studio .stage{border-radius:12px;border-color:#dae5db}.stage-number{background:#e5f0e6;color:#285f44}.flow-node{border-radius:9px}
.routing-heading{background:linear-gradient(110deg,#f3f8f1,#fff);border-radius:13px 13px 0 0}.routing-condition-row,.routing-courier-row{background:#f7f9f5;border-radius:10px}.routing-policy{border-left:3px solid #79a48b}
#toast{border-radius:12px;box-shadow:0 8px 30px #183c3526}
@media(hover:hover){button:enabled:hover{box-shadow:0 3px 9px #183b3512;border-color:#8bb2a1}.primary:enabled:hover{background:#104f44;border-color:#104f44;box-shadow:0 4px 12px #155c5028}nav button:hover{box-shadow:none;background:#294d42}.queue-bar button:not(.primary):hover{background:#eaf2e9}tbody tr:hover{background:#f1f7ef}details.detail-section>summary:hover{color:#176558;background:#f3f8f0}.task:hover{border-color:#a7bfad;box-shadow:0 4px 12px #233c300c}}
@keyframes oms-drawer-in{from{opacity:.5;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes oms-content-in{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.metric{border-top-width:3px}.production-toolbar{padding:12px}.next-step .primary{width:100%}.queue-panel{background:#fff}.drawer-header{padding-top:20px}button{min-height:42px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:enabled:active{transform:none}}
@media print{body{background:white}.panel,.metric,.task{box-shadow:none}.order-drawer{animation:none}}

@media(hover:hover){aside nav button.active:enabled:hover{background:#315d4f;color:#fff;box-shadow:inset 3px 0 #c5dfae}}

/* Bulk parcel controls */
.order-bulk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px 22px;background:#f3f7f1;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.order-bulk-bar>p{flex-basis:100%;margin:2px 0;overflow-wrap:anywhere}.order-bulk-bar>span{font-weight:700;margin-right:12px}.order-bulk-bar input,.order-table input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--green)}.order-table tr:has([data-bulk-key]:checked){background:#eaf4eb}.order-table .row-selection{width:44px}.order-bulk-bar [role=status]:empty{display:none}@media(max-width:700px){.order-bulk-bar{padding:14px;gap:8px}.order-table .row-selection{width:auto;display:block}.order-table .row-selection:before{content:"Select parcel";margin-right:12px}.order-bulk-bar button{flex:1 1 140px}}

/* Responsive cards retain their labels after adding selection column. */
@media(max-width:700px){.drawer-header button{white-space:nowrap;flex-shrink:0}.page-orders .order-table table{min-width:0;display:block}.page-orders .order-table thead{display:none}.page-orders .order-table tbody{display:grid;gap:12px;padding:14px}.page-orders .order-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dce6df;border-radius:10px;padding:13px;background:#fff;gap:12px}.page-orders .order-table tr[hidden]{display:none}.page-orders .order-table td{display:block;padding:0;border:0;min-width:0;font-size:11px}.page-orders .order-table td:nth-child(2){grid-column:1/-1}.page-orders .order-table td:nth-child(2) strong{font-size:16px}.page-orders .order-table td:nth-child(3){grid-column:1/-1}.page-orders .order-table td:nth-child(4):before{content:'ITEMS';display:block;font-size:9px;color:#6c8074;letter-spacing:.7px}.page-orders .order-table td:nth-child(5):before{content:'VALUE / PAYMENT';display:block;font-size:9px;color:#6c8074;letter-spacing:.7px}.page-orders .order-table td:nth-child(6){grid-column:1/-1;background:#f3f7f4;padding:8px;border-radius:5px}.page-orders .order-table td:last-child{grid-column:1/-1}.page-orders .order-table td:last-child button{width:100%;min-height:42px}.page-orders .order-table td.empty{grid-column:1/-1}}

/* Packing desk: focused scan area, 30 Oct 2026 */
.ship-station{background:#f6faf8!important;border:1px solid #c9ded5!important;border-radius:18px!important;padding:22px!important}.ship-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.ship-heading h3{margin:4px 0}.ship-step{display:grid;place-items:center;background:#175b4d;color:white;border-radius:12px;width:42px;height:42px;font-weight:700}.ship-inputs{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;align-items:end}.ship-inputs input{font-size:18px;min-height:48px;background:white;border:2px solid #72a68c}.ship-hint{margin:16px 0 8px}.ship-station .scan-product{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px;background:white;border:1px solid #d5e3dc;border-radius:12px;margin:10px 0}.ship-station .scan-product>.action-group{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.ship-station .barcode-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;min-height:96px;background:#fff;border:1px solid #b9d2c5;border-radius:10px;padding:10px;cursor:pointer}.ship-station .barcode-entry code{overflow-wrap:anywhere;font-size:15px}.ship-station .product-barcode{height:28px;max-width:190px;width:100%}.ship-station .scan-complete{background:#edf7f0;border-color:#81b492}.ship-station .barcode-entry:disabled{opacity:.55;cursor:default}.ship-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.ship-tools button{width:auto!important}.ship-ready{padding:12px;border-radius:9px;background:#e6f2eb}.ship-station [role=status]{font-weight:600;color:#175b4d}.ship-station>.danger-quiet{margin-top:14px;font-size:12px;background:transparent!important;border:0!important;color:#9b4545!important}@media(max-width:550px){.ship-station{padding:14px!important}.ship-inputs{grid-template-columns:1fr}.ship-station .barcode-entry{min-height:88px}.ship-tools button{flex:1}.ship-station .scan-product{gap:8px}}

.ship-station .barcode-entry{grid-column:auto!important;height:112px;min-height:112px}.ship-station .product-barcode{margin:0!important}.ship-station .barcode-entry small{margin:0}.ship-station .scan-product small{display:block}.ship-station .scan-product>strong{align-self:center}.ship-station #inline-status:empty,.ship-station #cn-cancel-status:empty{display:none}.ship-station #inline-ship{margin-bottom:0}


/* Reason catalog: compact, accessible editable sections. */
#reason-manager{padding:22px}#reason-manager h2{margin:26px 0 12px}#reason-manager details{border:1px solid #dce6df;border-radius:10px;margin:8px 0;background:#fff}#reason-manager summary{padding:15px;cursor:pointer;font-weight:600}#reason-manager form{display:grid;grid-template-columns:1fr 2fr;gap:14px;padding:18px;border:0;border-top:1px solid #e1e8e3;border-radius:0;margin:0}#reason-manager form label{display:flex;flex-direction:column;gap:7px}#reason-manager form label.inline{flex-direction:row;align-items:center}#reason-manager form button{justify-self:start}#reason-manager [role=status]{grid-column:1/-1}@media(max-width:700px){#reason-manager{padding:14px}#reason-manager form{grid-template-columns:1fr}}

#reliability-content>.panel{padding:20px;margin-top:16px}#reliability-content h2{margin-bottom:12px}#reliability-status{margin:12px 0;color:#587264}#reliability-content td{overflow-wrap:anywhere}
/* Order editing and exception workflow: 2 November 2026. */
body, h1, h2, h3, p, label, summary, td, th {cursor:default}
button,a,select,summary,input[type=checkbox]{cursor:pointer}
input:not([type=checkbox]),textarea,[contenteditable=true]{cursor:text;caret-color:auto}
[contenteditable=false],h1,h2,h3,p,span,strong,small{caret-color:transparent}
input,textarea,input span,textarea span{caret-color:auto}
.order-edit-dialog{width:min(780px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:90vh;padding:0;border:1px solid #d7e4de;border-radius:20px;box-shadow:0 24px 80px #173b3730}
.order-edit-dialog .dialog-head{padding:24px 28px;border-bottom:1px solid #e1eae6;background:#f5f9f7;align-items:center;gap:20px}
.order-edit-dialog h2{font-size:21px;line-height:1.35;margin:0}
.order-edit-dialog [data-body]{padding:24px 28px}
.order-edit-dialog [role=status]{margin:0;padding:0 28px 20px;color:#9b382c}
.order-edit-dialog .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.order-edit-dialog .full{grid-column:1/-1}
.order-edit-dialog label{display:grid;gap:8px;color:#4d625c;font-size:13px;font-weight:600}
.order-edit-dialog input,.order-edit-dialog select,.order-edit-dialog textarea{width:100%;box-sizing:border-box;padding:12px 14px;border-radius:10px;font:inherit;color:#173d35;background:#fff}
.order-edit-dialog .summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
.order-edit-dialog .summary-grid>div{padding:18px;background:#eef5f1;border:1px solid #d9e6df;border-radius:12px;display:grid;gap:10px}
.order-edit-dialog .summary-grid strong{font-size:23px}
.order-edit-dialog ul{padding:18px 36px;background:#fafbf9;border-radius:12px}
.order-edit-dialog .action-group{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.product-search-preview{display:flex;align-items:center;gap:16px;margin:12px 0}
.product-search-preview:empty{display:none}
.product-search-preview img{width:64px;height:80px;object-fit:cover;border-radius:8px}
.product-search-preview div{display:grid;gap:5px}
.customer-edit{margin:14px 0;background:#eef5f1;color:#155c50}
.booking-issue{padding:18px 22px;border:1px solid #e9c79a;background:#fff8ed;border-radius:12px}
.parcel-cancel-action{display:flex;align-items:center;gap:14px;padding:12px 0;color:#67756f}
.state-booking_issues{background:#fff0d8;color:#8b5112}
@media(max-width:600px){.order-edit-dialog [data-body],.order-edit-dialog .dialog-head{padding:18px}.order-edit-dialog .form-grid{grid-template-columns:1fr}.order-edit-dialog .action-group button{width:100%}.order-edit-dialog .summary-grid{gap:8px}.order-edit-dialog .summary-grid strong{font-size:18px}}

.order-edit-dialog [hidden]{display:none!important}
/* Compact order filters */
.order-filter-workspace{margin:0 24px 20px;background:#f7faf8;border:1px solid #dfe9e3;border-radius:14px;overflow:hidden}
.order-filter-panel{margin:0;padding:0;border:0;background:transparent}
.order-filter-panel>summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:12px 18px;list-style:none;cursor:pointer;font-size:14px;font-weight:650;color:#23483e;box-sizing:border-box}
.order-filter-panel>summary::-webkit-details-marker{display:none}
.filter-toggle-icon{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d5e2db;border-radius:8px;background:white;font-size:22px;line-height:1;transform:rotate(90deg)}
.filter-summary-hint{font-size:12px;font-weight:400;color:#708279;margin-left:4px}
.filter-chevron{margin-left:auto;font-size:20px;transition:transform .18s}
.order-filter-panel[open] .filter-chevron{transform:rotate(180deg)}
.order-filter-panel .order-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;padding:4px 18px 20px;margin:0}
.order-filter-grid label{display:grid;gap:8px;min-width:0;font-size:12px;font-weight:600;color:#526c61;letter-spacing:.01em}
.order-filter-grid input,.order-filter-grid select{width:100%;min-width:0;height:42px;margin:0;padding:10px 12px;background:#fff;border:1px solid #cfddd4;border-radius:9px;color:#214238;box-sizing:border-box;font:inherit;font-weight:400;transition:border-color .15s,box-shadow .15s}
.order-filter-grid input:focus,.order-filter-grid select:focus{outline:none;border-color:#21816e;box-shadow:0 0 0 3px #21816e18}
.order-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 18px;border-top:1px solid #e1eae5;background:#fff}
.order-filter-footer #search-feedback{padding:0;margin:0;font-size:12px;line-height:1.5;color:#708279}
.order-filter-footer .filter-reset{flex-shrink:0;margin:0;border:0;background:#edf4ef;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:600;color:#285b4d;box-shadow:none;cursor:pointer}
.order-filter-footer .filter-reset:hover{background:#dfede4}
@media(max-width:1350px){.order-filter-panel .order-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.order-filter-workspace{margin:0 14px 16px}.order-filter-panel .order-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.filter-summary-hint{display:none}.order-filter-footer{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:440px){.order-filter-panel .order-filter-grid{grid-template-columns:minmax(0,1fr)}.order-filter-panel>summary,.order-filter-footer{padding:12px 14px}.order-filter-panel .order-filter-grid{padding:4px 14px 16px}.order-filter-footer .filter-reset{width:100%;min-height:42px}}

/* Equal aligned parcel actions: primary action first, no orphaned wrap. */
.order-drawer .next-step{display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:center;gap:24px}
.order-drawer .next-step .action-group{display:flex;flex-direction:column;align-items:stretch;width:230px;max-width:none;gap:8px}
.order-drawer .next-step .action-group button{width:100%;margin:0;min-height:42px;justify-content:center}
.order-drawer .next-step .action-group .primary{order:-1}
.collection-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border-radius:10px;background:#edf5f0;border:1px solid #cbded3}
.collection-summary span{font-size:12px;color:#49675b}.collection-summary strong{font-size:20px;white-space:nowrap}
@media(max-width:700px){.order-drawer .next-step{grid-template-columns:1fr;gap:16px}.order-drawer .next-step .action-group{width:100%}.collection-summary{flex-wrap:wrap}}

/* Approved dispatch workspace: one table and one shared selection. */
*,*::before,*::after{caret-color:transparent}
input:not([readonly]):not([disabled]),textarea:not([readonly]):not([disabled]),[contenteditable="true"]{caret-color:auto;cursor:text}
input[readonly],textarea[readonly]{cursor:default;caret-color:transparent}
button,a,summary,select,input[type=checkbox],input[type=radio],input[type=file]{cursor:pointer}
.approved-scan{display:grid;grid-template-columns:minmax(220px,1fr) minmax(360px,1.3fr);gap:24px;align-items:center;padding:24px 28px}
.approved-scan h2{margin:5px 0 10px}.approved-scan #invoice-scan-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;background:white;border:1px solid #d7e5dc;border-radius:12px;padding:18px}
#invoice-scan-form label{margin:0}#invoice-scan-form input{min-height:48px;font-size:15px}#invoice-camera{grid-column:1/-1;justify-self:start;border:0;background:transparent;padding:5px 0}#invoice-status{grid-column:1/-1;margin:0}.order-bulk-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:16px 24px;background:#f2f7f4;border-top:1px solid #dce7df;border-bottom:1px solid #dce7df}.order-bulk-bar p{flex-basis:100%;margin:3px 0;font-size:11px}.order-bulk-bar #bulk-count{font-weight:700;color:#1a6151;margin-right:12px}.row-invoice{margin-right:6px;background:#edf5f0}
.unapprove-panel{border-color:#e6d7bf!important;background:#fffdf8!important}.unapprove-panel>p{line-height:1.6}.unapprove-panel label{display:grid;gap:8px;margin:16px 0;font-size:12px}.unapprove-panel textarea{min-height:88px}.unapprove-panel button{margin-top:6px;min-width:190px}.attachment-picker{display:flex;flex-direction:column;gap:8px;padding:20px;background:#f5f9f7;border:1px dashed #abc7b9;border-radius:12px}.attachment-picker input{background:#fff;padding:10px}.attachment-picker input::file-selector-button{background:#e5f0e9;border:0;border-radius:6px;padding:9px 14px;margin-right:12px;color:#205e4c;cursor:pointer}.attachment-picker span,.attachment-picker small{color:#657e72}#order-evidence-upload{display:grid;gap:12px}#order-evidence-upload>button{justify-self:end}.attachment-empty{padding:15px 0;color:#718579;font-size:12px}
@media(max-width:900px){.approved-scan{grid-template-columns:1fr}.order-bulk-bar{padding:14px}}@media(max-width:540px){.approved-scan #invoice-scan-form{grid-template-columns:1fr}.approved-scan{padding:18px}.unapprove-panel button{width:100%}}

.advanced-order-filters{grid-column:1/-1;border-top:1px solid #dae6de;padding-top:14px}.advanced-order-filters>summary{font-size:12px;padding:8px 0;color:#285d4b}.advanced-order-filters>.order-filter-grid{padding:14px 0 0}
#exit-scan-focus{display:none}.scan-focused #exit-scan-focus{display:inline-block}.scan-focused #start-scan-focus{display:none}.scan-focused .shell{grid-template-columns:1fr}.scan-focused .shell>aside,.scan-focused .workspace>header,.scan-focused .title-row,.scan-focused .test-visibility,.scan-focused .metrics,.scan-focused .queue-panel,.scan-focused .approved-scan~section:not(.order-drawer),.scan-focused .order-detail-backdrop{display:none!important}.scan-focused .approved-scan{max-width:1100px;margin:24px auto}.scan-focused .order-drawer{position:relative;inset:auto;width:100%;max-width:1100px;margin:20px auto;height:auto;max-height:none;box-shadow:none;overflow:visible!important}.scan-focused .drawer-body{overflow:visible}.scan-focused .drawer-body>*:not(.ship-station){display:none!important}.scan-focused .drawer-header{padding:18px 24px}.scan-focused .ship-station{margin-top:18px}.scan-focused .workspace{max-width:1180px;margin:auto;width:100%;box-sizing:border-box}.scan-complete>strong{color:#1d704d}

body:not(.scan-focused) .approved-scan #invoice-scan-form{display:none}body:not(.scan-focused) .approved-scan{grid-template-columns:1fr}.scan-focused .approved-scan{grid-template-columns:1fr 1.3fr}
#exit-return-focus{display:none}.return-focused #exit-return-focus{display:inline-block;margin-top:12px}.return-focused .shell>aside,.return-focused .workspace>header,.return-focused .title-row,.return-focused .test-visibility,.return-focused .metrics,.return-focused .queue-panel,.return-focused .workspace>section:not(.order-drawer),.return-focused .order-detail-backdrop{display:none!important}.return-focused .shell{display:block}.return-focused .order-drawer{position:relative;inset:auto;width:min(1100px,100%);height:auto;max-height:none;margin:24px auto;overflow:visible!important}.return-focused .drawer-body{overflow:visible}.return-focused .drawer-body>*:not(.return-workspace){display:none!important}.return-scan-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.return-scan-shortcuts .barcode-entry{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:108px;padding:14px;background:white;border:1px solid #bcd4c5;border-radius:12px}.return-scan-shortcuts .product-barcode{height:30px;max-width:200px}.return-submit-status{position:sticky;bottom:0;background:#fff4dc;color:#744c13;padding:12px;border-radius:8px;font-weight:600}.return-submit-status:empty{display:none}.return-workspace .return-step{border:1px solid #d6e5dc;border-radius:14px;padding:22px;margin:18px 0;background:#f8fbf9}.return-workspace form label{gap:8px}.return-workspace .action-group{gap:12px;margin-top:18px}@media(max-width:700px){.scan-focused .approved-scan{grid-template-columns:1fr}.return-scan-shortcuts{grid-template-columns:1fr}.return-workspace .return-step{padding:14px}}

.return-workspace #inline-return-request{display:grid;grid-template-columns:1fr 1fr;gap:16px}.return-workspace #inline-return-request>label:first-child,.return-workspace #inline-return-request>.return-form-row,.return-workspace #inline-return-request>.action-group,.return-workspace #inline-return-request>.return-submit-status,.return-workspace #inline-return-request>.return-scan-shortcuts{grid-column:1/-1}.return-workspace .return-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.return-workspace .return-form-row>label:last-child:nth-child(3){grid-column:1/-1}.return-workspace .return-scan-shortcuts{display:grid!important;grid-template-columns:1fr 1fr;gap:12px}.return-workspace .return-step-title{margin-bottom:18px}.scan-focused details:not(.ship-station)::before,.return-focused details:not(.return-workspace)::before{display:none!important}@media(max-width:650px){.return-workspace #inline-return-request,.return-workspace .return-form-row,.return-workspace .return-scan-shortcuts{grid-template-columns:1fr}}

/* Finance and workspace configuration: one clear purpose per section. */
.courier-panel #courier-ledger{display:block}
.courier-panel .table-wrap{max-width:100%}
.finance-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(200px,1fr);gap:20px;margin-bottom:20px}.finance-table{min-width:950px}.finance-table small{display:block;margin-top:5px}.finance-table td{vertical-align:middle}.finance-detail{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:24px;background:#f3f7f5;border-radius:12px}.finance-detail form{display:grid;gap:12px;max-width:420px}.finance-detail h3{margin:0}.workspace-audit{margin-top:24px}.workspace-audit>summary{padding:16px;cursor:pointer;font-weight:650}.workspace-audit>#events{padding:20px}.settings-tabs{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.settings-tabs button[aria-selected=true]{background:#176052;color:white}.settings-pane[hidden]{display:none!important}.role-overview{display:grid;gap:12px;margin-bottom:24px}.role-overview details{padding:18px;border:1px solid #dae7e1;border-radius:12px}.role-overview summary{cursor:pointer;font-weight:650}.role-overview .badge{margin:6px 6px 0 0}.role-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.role-matrix details{padding:12px}.role-matrix ul{padding-left:20px;line-height:1.7}.settings-pane .routing-panel{margin-bottom:20px}.routing-policy button{margin-left:10px}.routing-policy small{display:block;margin-top:8px}.finance-table [hidden]{display:none!important}
@media(max-width:700px){.finance-filters,.finance-detail,.role-matrix{grid-template-columns:1fr}.finance-detail{padding:16px}.settings-tabs button{flex:1}}
.routing-page{grid-template-columns:minmax(0,1fr)}.routing-page>.routing-panel{grid-column:1/-1}.routing-panel[hidden]{display:none!important}.routing-panel--roles .routing-form{display:grid;gap:20px;padding:24px}.routing-panel--roles .routing-check{display:flex;gap:10px;align-items:flex-start}.routing-panel--roles .routing-check input{width:16px;height:16px;flex:0 0 16px}.routing-panel--roles .routing-permissions{margin:0}.routing-panel--roles .routing-actions{display:flex;gap:12px}.routing-panel--roles input[type=hidden]{display:none}

[hidden]{display:none!important}

/* Stage permissions: one workspace, readable action and channel columns. */
.stage-role-editor{width:min(940px,94vw);max-height:90vh;padding:24px;border:1px solid #d5e4de;border-radius:20px;box-shadow:0 24px 90px #163c3540;overflow:auto}
.stage-role-editor::backdrop{background:#173c3566;backdrop-filter:blur(3px)}
.stage-role-editor .dialog-head{display:flex;gap:20px;justify-content:space-between;align-items:start}
.stage-role-editor .role-matrix{display:grid;gap:12px;margin:20px 0}
.stage-role-editor details{border:1px solid #dbe6e0;border-radius:12px;padding:12px 16px}
.stage-role-editor summary{font-weight:650;padding:6px 0;cursor:pointer}
.stage-role-editor .permission-entry{display:grid;grid-template-columns:minmax(180px,1fr) minmax(260px,1fr);gap:12px;padding:12px 0;border-top:1px solid #edf1ee}
.permission-channels{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.stage-role-editor .routing-check{display:flex;align-items:center;gap:9px;margin:8px 0}
.stage-role-editor input[type=checkbox]{width:17px;height:17px;flex:none}
.stage-role-editor [data-stage-status]{color:#9b302c}
@media(max-width:650px){.stage-role-editor .permission-entry{grid-template-columns:1fr}.stage-role-editor{padding:16px}.permission-channels{padding-left:26px}}

.stage-role-editor .role-matrix{grid-template-columns:minmax(0,1fr)}

/* The focused receipt is in document flow; only the normal overlay locks the page. */
body.return-focused:has(.order-drawer){overflow-y:auto;overflow-x:clip}
#inline-split.split-editor{display:grid;gap:14px;margin:12px 0 0;padding:clamp(12px,2vw,22px);border:1px solid #d9e5de;border-radius:14px;background:#f7faf8}
.split-editor header h4{margin:6px 0;font-size:1.08rem;color:#163f34}.split-editor header p{margin:0;color:#50675d}
.split-items{background:white;border:1px solid #dbe6df;border-radius:10px;overflow:hidden}
.split-item{display:grid;grid-template-columns:minmax(0,1fr) auto 96px;align-items:center;gap:18px;padding:12px 14px}.split-item+.split-item{border-top:1px solid #e1e9e3}
.split-item small,.split-editor footer small{display:block;color:#52685e}.split-item strong,.split-item small{overflow-wrap:anywhere}
.split-item label{margin:0}.split-item input{width:100%;min-height:40px;text-align:center;font-variant-numeric:tabular-nums}
.split-stays{color:#50665b}.split-stays b{color:#153d32;padding-inline:6px}.split-editor footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.split-editor footer button:disabled{opacity:.55}
@media(max-width:540px){.split-item{grid-template-columns:minmax(0,1fr) 80px;gap:8px}.split-item label{grid-column:2;grid-row:1/3}.split-stays{grid-column:1}.split-editor footer button{width:100%}}

/* Physical receipt: parcel details followed by label verification. */
.return-workspace #inline-return-request.receipt-editor{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.receipt-editor .receipt-fields,.receipt-editor .receipt-scan{background:white;border:1px solid #d7e4dd;border-radius:12px;padding:clamp(12px,2vw,18px);min-width:0}
.receipt-fields{display:grid;grid-template-columns:minmax(8rem,1fr) minmax(0,3fr);gap:12px}
.receipt-fields .receipt-product,.receipt-fields label:has(textarea){grid-column:1/-1}
.receipt-fields label:has(select[name=reason_code]){grid-column:auto}
.receipt-fields textarea{min-height:42px;height:42px;resize:vertical}
.receipt-editor label{min-width:0;margin:0}
.receipt-editor select,.receipt-editor input{width:100%;min-width:0}
.receipt-scan h5{font-size:1rem;margin:0 0 12px;color:#17453a}
.receipt-inputs{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
.receipt-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.receipt-alternative{border-top:1px solid #dce8e1;margin-top:16px;padding-top:12px}
.receipt-alternative>span{display:block;color:#476357;margin:3px 0 8px}
.return-workspace .receipt-editor .return-scan-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.receipt-editor .return-scan-shortcuts .barcode-entry{display:grid;grid-template-columns:1fr;align-content:center;justify-items:start;text-align:left;gap:3px;margin:0;min-width:0;min-height:60px;padding:8px 12px;background:#f3f8f5}
.receipt-editor .barcode-entry code{overflow-wrap:anywhere}.receipt-editor .barcode-entry .product-barcode{height:20px;max-width:100%}
.receipt-editor .return-submit-status:empty{display:none}
@media(max-width:520px){.receipt-fields,.receipt-inputs{grid-template-columns:minmax(0,1fr)}.receipt-editor .receipt-actions>*{flex:1}.receipt-fields .full{grid-column:1/-1}}


/* Courier-returned parcels still awaiting warehouse receipt. */
.queue-bar button[data-queue=return_not_punched]{--stage:#b04432;background:#fff0e9;color:#883528}.state-return_not_punched{background:#ffe5dc;color:#872f23;border:1px solid #e6a28c}.return-punch-alert{margin:16px 0;padding:15px 18px;background:#fff0e9;border:1px solid #e6a28c;border-left:4px solid #b04432;border-radius:9px;color:#7c3025}.return-punch-alert p{margin:6px 0 0;line-height:1.6}

/* QC remains inside the order workspace. */
.qc-lanes{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.qc-lanes [aria-selected=true]{background:var(--brand,#176858);color:white}.qc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}.qc-card{border:1px solid var(--line);border-radius:12px;padding:18px;min-width:0;overflow-wrap:anywhere}.qc-card small{display:block}.qc-card details{margin-top:16px}.qc-workspace .action-group{flex-wrap:wrap}.qc-card .action-group button{white-space:normal}@media(max-width:600px){.qc-lanes button{flex:1 1 42%;min-height:44px}.qc-workspace .orders-panel-head{display:block}.qc-workspace input{max-width:100%}}

.qc-only-workspace .metrics,.qc-only-workspace .queue-bar button:not([data-queue="in_production"]){display:none}
