/* Orders module additions on top of the kit. Tokens only, so dark mode follows. */
.o-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.o-filters .input{flex:1;min-width:220px}
.o-filters .select{width:auto;min-width:170px}
.o-flash{animation:oflash 2.2s ease-out}
@keyframes oflash{0%{background:var(--bolt-100)}100%{background:transparent}}
.o-plist{border:1px solid var(--line);border-radius:12px;margin-top:8px;max-height:360px;overflow:auto}
.o-plist:empty{display:none}
.o-price{height:44px;text-align:right}
.o-sum{position:sticky;top:80px}
.o-scan{padding:22px}
.o-scanrow{display:flex;gap:8px;margin:14px auto 0;max-width:460px}
.o-scanrow .input{flex:1;height:52px;font-size:18px;min-width:0}
.o-scanrow .btn{height:52px;min-width:52px}
.o-msg{margin-top:12px;font-weight:600;min-height:22px;border-radius:12px}
.o-msg.ok{color:var(--ok)}
.o-msg.warn{background:var(--wait-bg);color:var(--wait);padding:10px 12px}
.o-msg.stop{background:var(--stop-bg);color:var(--stop);padding:10px 12px}
.o-pl{cursor:pointer;min-height:96px;user-select:none}
.o-pl:active{transform:scale(.995)}
.o-undo{flex:none}
.o-actbar{display:none}
@media (max-width:720px){
  .o-sum{position:static}
  .o-filters .select,.o-filters .seg{width:100%}
  .o-actbar.show-phone-flex{display:flex;gap:10px;align-items:center;position:fixed;left:0;right:0;bottom:calc(var(--tab) + env(safe-area-inset-bottom));
    padding:10px 14px;background:var(--card);border-top:1px solid var(--line);z-index:45;box-shadow:var(--sh-2)}
  .p-main:has(.o-actbar.show-phone-flex){padding-bottom:calc(var(--tab) + 110px)}
  .o-scan .big{font-size:22px}
  .o-pl{padding:12px}
  .o-pl .th{--s:56px!important}
  #pkpost .btn.xl{display:none}
}

/* QA pass 13 Nov: touch targets on phone and tablet. Every button, chip and toggle on these screens (and the drawers and
   pop-ups they open) is at least 44px tall. Scoped to this module's screens through the .o-scr wrapper. */
@media (max-width:1180px){
  body:has(.o-scr) :is(.p-main,#modal,#drawer) :is(.chip,.seg>button,.tabs a,.tabs button){min-height:44px;height:auto}
  body:has(.o-scr) :is(.p-main,#modal,#drawer) :is(.input,.select){min-height:44px}
  body:has(.o-scr) :is(.p-main,#modal,#drawer) .seg{min-height:44px}
  body:has(.o-scr) .p-main .tabs a{display:inline-flex;align-items:center}
}
.o-scr .hero h1,.o-scr .ph h1{overflow-wrap:anywhere}
.o-pkiss{display:flex;gap:10px;align-items:center;padding:4px 0}
.o-pkiss .grow{flex:1;min-width:0}

/* 16 Nov (Dylan): Xero invoice tick on New sales order, Pick & pack mode bar */
.o-tick{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;margin-bottom:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;min-height:44px}
.o-tick input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--bolt)}
.o-tick>span{display:flex;flex-direction:column;gap:2px;min-width:0}

/* 16 Nov (Dylan): pick in product order. Each product is a tile; the current one is open, highlighted and holds the scan box.
   Location and Take are two big boxes, readable at arm's length on a tablet. */
.o-pkhow{margin:0 0 10px}
.o-pl{flex-direction:column;align-items:stretch;gap:0}
.o-plhd{display:flex;align-items:center;gap:14px;min-width:0}
.o-plname{font-weight:700;font-size:17px;overflow-wrap:anywhere}
.o-pl.on{border:2.5px solid var(--bolt);box-shadow:0 0 0 4px var(--bolt-100);cursor:default;padding:18px}
.o-pl.on .o-plname{font-size:20px}
.o-pl.on .tick{background:var(--bolt);border-color:var(--bolt);color:var(--thunder-900)}
.o-pl:not(.on):not(.done) .o-take{opacity:.85}
.o-take{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px;margin-top:12px}
.o-box{border:1.5px solid var(--line2);border-radius:14px;padding:8px 14px;background:var(--surface);min-width:0}
.o-box .k{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.o-box .v{font:800 28px/1.15 var(--fd);overflow-wrap:anywhere}
.o-box.q{background:var(--bolt-100);border-color:var(--bolt-line)}
.o-pl.on .o-box .v{font-size:34px}
.o-lotline{margin-top:6px;font-size:15px;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.o-slot{margin-top:14px}
.o-slot .o-scanrow{margin:0;max-width:none}
.o-alldone{border:2px solid var(--ok-line);background:var(--ok-bg);margin-bottom:12px}
.o-alldone b{display:flex;align-items:center;gap:8px;font-size:18px;color:var(--ok)}
/* 27 Nov 2026 (Dylan): the all-picked tile reads at a glance; picked lots as separate quiet fields */
.o-alldone{padding:18px 20px;border-width:3px}
.o-adhd{display:flex;align-items:center;gap:14px;color:var(--ok)}
.o-adhd svg{flex:none;width:34px;height:34px}
.o-adt{font-size:26px;font-weight:800;letter-spacing:-.01em;line-height:1.15}
.o-ads{font-size:14px;color:var(--ink);opacity:.75;margin-top:3px}
.o-alldone .o-ads b{display:inline;font-size:inherit;color:inherit}
.o-pked{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.o-pkr{display:flex;flex-wrap:wrap;gap:6px 22px;padding:6px 12px;border-radius:8px;background:color-mix(in srgb,var(--card) 75%,transparent)}
.o-pkf{display:inline-flex;flex-direction:column;min-width:64px}
.o-pkl{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.o-pkv{font-size:13px;white-space:nowrap;color:var(--ink)}
/* Notifications card: the shared look is .ncard in static/app.css (also the PO page). 16 Nov (Dylan): wide and short, one row per note */
.o-note{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:5px 0;border-top:1px solid var(--bolt-line);font-size:14px;line-height:1.35}
.o-note .o-ntext{flex:1 1 220px;min-width:0}
.o-note .o-nmeta{flex:none;margin-left:auto}
.o-notes .o-pkiss{border-top:1px solid var(--bolt-line);padding:5px 0;font-size:14px}
.o-notes .o-nhint{margin:2px 0 4px}
.o-notes .o-nempty{padding:4px 0}
.o-pkside{gap:16px}
.o-lbl{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.o-dims{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center}
.o-dims .input{text-align:center;min-width:0}
.o-presets{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
.o-prow{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)) auto;gap:6px;margin-bottom:8px}
@media (max-width:720px){
  .o-pl.on{padding:12px}
  .o-box .v{font-size:22px}
  .o-pl.on .o-box .v{font-size:26px}
  .o-pl.on .o-plname{font-size:17px}
  .o-prow{grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,52px)) auto}
}

/* 16 Nov (Dylan), round 2: mode toggle in the header, notes by source, units left, Exp per lot, auto-buy countdown, order page layout */
.o-modeseg{align-items:center;flex:none}
.o-modeseg button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.o-modeseg button:disabled{cursor:default}
.o-modeseg button:disabled:not(.on){opacity:.6}
.o-modeseg button.on{color:var(--ink)}
.o-nsrc{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:2px}
.o-src{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-radius:6px;padding:2px 7px;background:var(--surface);color:var(--muted)}
.o-src.shop{background:var(--ok-bg);color:var(--ok)}
.o-src.phil{background:var(--bolt-100);color:var(--ink)}
.o-ntext{overflow-wrap:anywhere;white-space:pre-wrap}
.o-nadd{display:flex;gap:8px;margin:4px 0 6px}
.o-nadd[hidden]{display:none}
.o-nadd .input{flex:1;min-width:0}
.o-remain{font-size:13px;margin-top:2px;color:var(--muted)}
.o-remain.none{color:var(--wait);font-weight:700;display:flex;align-items:center;gap:4px}
.o-exp{white-space:nowrap}
.o-lotline .o-exp{margin-left:10px}
.o-cd{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--bolt-100);border:1.5px solid var(--bolt-line);font-size:17px}
.o-cd .grow{flex:1;min-width:0}
.o-cd .btn{flex:none}
.o-cd.warn{background:var(--wait-bg);border-color:transparent;color:var(--wait);font-size:15px}
.o-cd #pkcdn{font-size:18px}

/* 16 Nov (Dylan), round 3. Order page: one band at the top = order info | Notifications | actions (narrow, top right);
   Lines and the rest sit under info + notifications while the actions column carries on down the right.
   Tablet/phone: info, notifications, actions, then lines. */
.o-top{display:grid;gap:16px;grid-template-columns:minmax(220px,auto) minmax(0,1fr) 280px;grid-template-areas:"info notes acts" "body body acts";align-items:start}
.o-top>.o-info{grid-area:info;min-width:0}
.o-top>.o-info .ph{margin-bottom:0}
.o-top>.o-notes,.o-top>.o-notes-none{grid-area:notes;min-width:0}
.o-top>.o-acts{grid-area:acts;min-width:0}
.o-top>.o-body{grid-area:body;min-width:0}
.o-acts .btn.block{justify-content:flex-start;white-space:normal;text-align:left}
/* 16 Nov (Dylan): buttons only; a thin rule between the groups instead of headings and notes */
.o-agrp{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.o-acts>.o-agrp:first-child,.o-acts>.o-main-act+.o-agrp{border-top:0;padding-top:0}
.o-acts>.o-agrp:last-child{padding-bottom:0}
.o-main-act{margin-bottom:14px}
.o-main-act .btn{justify-content:center!important}
.o-ihm{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
@media (max-width:1180px){
  .o-top{grid-template-columns:minmax(0,1fr);grid-template-areas:"info" "notes" "acts" "body"}
  .o-top>.o-notes-none{display:none}
  .o-acts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:0 16px}
  .o-acts>.o-main-act{grid-column:1/-1}
  .o-acts>.o-agrp{border-top:0;padding:0 0 12px}
}
@media (max-width:720px){ .o-acts{display:block} .o-main-act{display:none} }

/* Pick screen header band: order info | Notifications | mode toggle above Reprint pick list + Pause */
.o-pkband{display:grid;gap:16px;grid-template-columns:minmax(220px,1fr) minmax(0,1.6fr) auto;grid-template-areas:"info notes acts";align-items:start;margin-bottom:16px}
.o-pkband.nonotes{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"info acts"}
.o-pkinfo{grid-area:info;min-width:0}
.o-pkinfo .ph{margin-bottom:0}
.o-pkband>.o-notes{grid-area:notes;min-width:0}
.o-pkacts{grid-area:acts;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.o-pkbtns{display:flex;flex-direction:column;gap:8px}
.o-pkbtns .btn{justify-content:center}
@media (max-width:1180px){
  .o-pkband,.o-pkband.nonotes{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"info acts" "notes notes"}
}
@media (max-width:720px){
  .o-pkband,.o-pkband.nonotes{grid-template-columns:minmax(0,1fr);grid-template-areas:"info" "notes" "acts"}
  .o-pkacts .o-modeseg{width:100%}
  .o-pkacts .o-modeseg button{flex:1;justify-content:center}
  .o-pkbtns{flex-direction:row}
  .o-pkbtns .btn{flex:1}
}

/* Made to order: being made card, pre-filled tag, queue card */
.o-made .o-madel{display:grid;gap:6px}
.o-madei{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:10px;background:var(--surface)}
.o-madei.ok{background:var(--ok-bg)}
.o-madei.ok>.ic{color:var(--ok)}
.o-ihmtag{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;font-weight:700;color:var(--ok);background:var(--ok-bg);border-radius:8px;padding:3px 8px}
.o-qmade{opacity:.75}
@media (max-width:720px){
  .ph .acts .o-modeseg{width:100%}
  .ph .acts .o-modeseg button{flex:1;justify-content:center}
}

/* 16 Nov (Dylan), round 5: Shopify number beside the order number, photos, lot history, Can't scan?, declared value, sortable list */
.o-shopno{display:inline-block;font-size:12px;font-weight:700;line-height:1.6;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0 6px;vertical-align:middle;white-space:nowrap}
.o-shopno.big{font-size:15px;padding:1px 8px;margin-left:4px}
.o-thbtn{border:0;padding:0;margin:0;background:none;cursor:zoom-in;border-radius:10px;flex:none;line-height:0}
.o-thbtn:focus-visible{outline:2px solid var(--bolt);outline-offset:2px}
.o-plink{color:inherit;text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}
.o-plink:hover{text-decoration-color:currentColor}
.o-lb{position:fixed;inset:0;z-index:200;background:rgba(10,10,14,.82);display:grid;place-items:center;padding:24px 16px;cursor:zoom-out}
.o-lb figure{margin:0;max-width:min(900px,100%);text-align:center;cursor:default}
.o-lb img{max-width:100%;max-height:78vh;border-radius:14px;background:#fff;object-fit:contain}
.o-lb figcaption{color:#fff;margin-top:10px;font-weight:600;overflow-wrap:anywhere}
.o-lbx{position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.o-lotlink{border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px;display:inline-flex;align-items:center;gap:4px;overflow-wrap:anywhere;text-align:left}
.o-lotlink:hover{color:var(--ink);text-decoration-style:solid}
.o-plbtns{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}
.o-cant{border:0;background:none;padding:6px 2px;font-size:13px;color:var(--muted);text-decoration:underline;cursor:pointer;white-space:nowrap}
.o-pl:not(.done):not(.on){cursor:pointer}
.o-dvrow{display:flex;gap:8px;align-items:center}
.o-dvrow .input{flex:1;min-width:0}
.o-dvrow .chip{flex:none;white-space:nowrap}
.o-insmf{flex-wrap:wrap}
.o-lh h3{margin:16px 0 6px;font-size:15px}
.o-lh h3 .tiny{font-weight:500}
.o-lhfacts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.o-lhfacts>div{background:var(--surface);border-radius:10px;padding:8px 10px;min-width:0}
.o-lhfacts .k{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.o-lhfacts .v{font-weight:800;overflow-wrap:anywhere}
.o-lhrows{display:grid}
.o-lhrow{display:flex;gap:10px;align-items:flex-start;padding:7px 0;border-top:1px solid var(--line)}
.o-lhrow:first-child{border-top:0}
.o-lhrow .grow{flex:1;min-width:0;overflow-wrap:anywhere}
.o-lhd{flex:none;width:52px;padding-top:2px}
.o-list th.o-sth{padding:0}
.o-list th.o-sth button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:4px;width:100%;padding:10px 12px;cursor:pointer;font:inherit;color:inherit;white-space:nowrap}
.o-list th.o-sth.r button{justify-content:flex-end}
.o-list th.o-sth button:focus-visible{outline:2px solid var(--bolt);outline-offset:-2px}
.o-list th.o-sth.on{color:var(--ink)}
.o-sarr{font-size:10px;opacity:.45}
.o-sth.on .o-sarr{opacity:1}
.o-sortsel{display:none}
.o-listcard{overflow-x:auto}
@media (max-width:720px){
  .o-sortsel{display:block;width:100%}
  .o-lhfacts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .o-insmf .btn{flex:1 1 40%}
}
@media (pointer:coarse){ .o-cant{min-height:40px} }

/* 17 Nov (Dylan): shipped view — fixed action bar (layout replaced 19 Nov, see the end of this file) */
.o-shh{font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.o-shbar{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;
  background:var(--card,#fff);border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0;box-shadow:0 -6px 18px rgba(0,0,0,.06)}
.o-rp{position:relative}
.o-rpm{position:absolute;bottom:calc(100% + 8px);right:0;min-width:240px;background:var(--card,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.18);padding:6px;display:grid}
.o-rpm[hidden]{display:none}
.o-rpm button{all:unset;cursor:pointer;padding:11px 12px;border-radius:8px;font-weight:600}
.o-rpm button:hover:not([disabled]){background:var(--soft,#f5f5f6)}
.o-rpm button[disabled]{opacity:.55;cursor:not-allowed}
.o-ready{position:relative;display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:6px 12px 6px 6px;border-radius:999px;background:var(--soft,#f5f5f6);font-size:14px;font-weight:600;cursor:pointer;user-select:none}
.o-ready-ic{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--bolt);color:#1f1f23;animation:o-ready 1.6s ease-in-out infinite}
@keyframes o-ready{0%{box-shadow:0 0 0 0 rgba(252,192,30,.6)}70%{box-shadow:0 0 0 12px rgba(252,192,30,0)}100%{box-shadow:0 0 0 0 rgba(252,192,30,0)}}
.o-ready-in{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;border:0;padding:0}
@media (prefers-reduced-motion:reduce){.o-ready-ic{animation:none}}
@media (max-width:900px){
  .o-shbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .o-shbar .btn{height:48px;font-size:15px;padding:0 10px;justify-content:center;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .o-shbar .o-rp{display:block}.o-rpm{right:0;left:auto}}
.o-nw{white-space:nowrap}

/* full-screen label countdown */
.o-cdo{position:fixed;inset:0;z-index:9000;background:var(--bg,#fff);display:grid;place-items:center;padding:16px;text-align:center}
.o-cdo-in{display:grid;gap:14px;justify-items:center}
.o-cdo-eye{font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.o-cdo h1{margin:0}
.o-cdo-ring{position:relative;width:min(62vw,320px);aspect-ratio:1}
.o-cdo-ring svg{width:100%;height:100%}
.o-cdo-n{position:absolute;inset:0;display:grid;place-items:center;font:800 clamp(80px,22vw,150px)/1 var(--fd)}
.o-cdo-x{min-width:220px;justify-content:center}

/* 17 Nov (Dylan): one row per unit on the product being picked */
.o-units{display:grid;gap:6px;margin-top:10px}
.o-unit{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:var(--sunk);min-height:44px}
.o-unit .n{flex:none;min-width:34px;height:28px;padding:0 6px;border-radius:999px;display:grid;place-items:center;font:700 13px var(--fd);background:var(--card,#fff);border:1px solid var(--line)}
.o-unit .grow{min-width:0;flex:1}
.o-unit.ok{color:var(--ok)} .o-unit.ok .n{border-color:currentColor} .o-unit .t{font-weight:800}
.o-unit.cur{display:block;padding:0;background:none}
.o-unit.cur .o-slot{margin:0}
/* 23 Nov (Dylan): the scan box is one box: unit number, text, camera, Go */
.o-lotbox{display:flex;align-items:center;gap:8px;height:52px;padding:0 5px 0 10px;border:2px solid var(--bolt,#fcc01e);border-radius:12px;background:var(--card,#fff)}
.o-lotbox:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--bolt,#fcc01e) 30%,transparent)}
.o-lotbox .n{flex:none;min-width:34px;height:28px;padding:0 6px;border-radius:999px;display:grid;place-items:center;font:700 13px var(--fd);background:var(--bolt,#fcc01e);color:#1f1f23}
.o-lotbox .n[hidden]{display:none}
.o-lotbox input{flex:1;width:100%;min-width:0;height:100%;border:0;outline:none;background:none;font:inherit;font-size:18px;color:inherit;padding:0 2px}
.o-lotbox input::placeholder{color:var(--muted);text-overflow:ellipsis}
.o-lotbox button{flex:none;height:40px;border:0;border-radius:9px;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;display:grid;place-items:center}
.o-lotbox .cam{width:40px;background:none;color:var(--muted)} .o-lotbox .cam:hover{background:var(--sunk);color:var(--ink)}
.o-lotbox .go{padding:0 18px;background:var(--thunder,#1f1f23);color:#fff} .o-lotbox .go:hover{filter:brightness(1.2)}
:root[data-theme="dark"] .o-lotbox .go{background:var(--bolt,#fcc01e);color:#1f1f23}
.o-lotbox button:focus-visible{outline:2px solid var(--bolt,#fcc01e);outline-offset:2px}
.o-pkscan .o-msg:empty{display:none}
.o-pkscan .o-msg{margin-top:8px}
.o-unit.wait{opacity:.7} .o-unit.more{background:none}
.o-fill{margin-top:8px} .o-fill kbd{font:600 11px var(--fm,monospace);border:1px solid var(--line);border-radius:5px;padding:1px 5px;margin-left:4px}
@media (max-width:720px){.o-fill kbd{display:none}}

/* ── 19 Nov 2026 (Dylan): the countdown flows into the shipped screen ─────────────────────────────────────────
   One tick (.o-tk): yellow ring draining 3→0 · spinning while the label is bought · sweeps round green, fills,
   white check draws in · flies to the top of the shipped screen. Region colours: UK blue, NI amber, Intl purple. */
:root{--r-uk:#1d4ed8;--r-ni:#f59e0b;--r-ni-ink:#1c1102;--r-intl:#7c3aed;--r-hand:#64748b;--tk-ok:#16a34a}
.o-tk{display:block;width:100%;height:100%;overflow:visible}
.o-tk circle{fill:none}
.o-tk .bg{stroke:var(--line,#e5e5e5);stroke-width:12}
.o-tk .fg{stroke:var(--bolt,#fcc01e);stroke-width:12;stroke-linecap:round}
.o-tk .disc{fill:var(--tk-ok);transform-box:fill-box;transform-origin:center;transform:scale(0)}
.o-tk .spin{stroke:var(--bolt,#fcc01e);stroke-width:12;stroke-linecap:round;stroke-dasharray:110 443;opacity:0;transform-box:view-box;transform-origin:100px 100px;transition:opacity .2s}
.o-tk .ck{fill:none;stroke:#fff;stroke-width:17;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:150;stroke-dashoffset:150}
.o-cdo.buying .o-tk .spin{opacity:1;animation:o-tkspin .9s linear infinite}
.o-cdo.buying .o-tk .fg{opacity:0}
.o-cdo.buying .o-cdo-n{opacity:0;transform:scale(.6)}
.o-cdo.buying .o-cdo-x,.o-cdo.buying .o-cdo-hint{opacity:0;pointer-events:none}
.o-cdo-n,.o-cdo-x,.o-cdo-hint,.o-cdo-eye,.o-cdo h1{transition:opacity .25s ease,transform .25s ease}
@keyframes o-tkspin{to{transform:rotate(360deg)}}
.o-tk.done .fg{stroke:var(--tk-ok);opacity:1}
.o-cdo.done .o-tk .spin{opacity:0;animation:none}
.o-cdo.done .o-cdo-n,.o-cdo.done .o-cdo-x,.o-cdo.done .o-cdo-hint{opacity:0;pointer-events:none}
.o-cdo .o-tk.done .disc{transition:transform .38s cubic-bezier(.2,1.5,.4,1) .42s;transform:scale(1)}
.o-cdo .o-tk.done .ck{transition:stroke-dashoffset .32s cubic-bezier(.65,0,.35,1) .68s;stroke-dashoffset:0}
.o-cdo{transition:background-color .55s ease}
.o-cdo.fly{background:transparent;pointer-events:none}
.o-cdo.fly .o-cdo-eye,.o-cdo.fly h1{opacity:0;transform:translateY(-8px);transition-duration:.12s}
.o-cdo-ring{will-change:transform}
/* the tick on the shipped screen: drawn (static) or drawing (button pressed, no countdown) */
.o-shtick{width:96px;height:96px;margin:0 auto}
.o-shtick .o-tk .bg{stroke:transparent}
.o-shtick .o-tk.done .disc{transform:scale(1)} .o-shtick .o-tk.done .ck{stroke-dashoffset:0}
.o-shtick.anim .o-tk .fg{stroke-dasharray:553;stroke-dashoffset:553;animation:o-tkring .45s cubic-bezier(.65,0,.35,1) forwards}
.o-shtick.anim .o-tk .disc{transform:scale(0);animation:o-tkdisc .38s cubic-bezier(.2,1.5,.4,1) .35s forwards}
.o-shtick.anim .o-tk .ck{stroke-dashoffset:150;animation:o-tkck .32s cubic-bezier(.65,0,.35,1) .6s forwards}
@keyframes o-tkring{to{stroke-dashoffset:0}} @keyframes o-tkdisc{to{transform:scale(1)}} @keyframes o-tkck{to{stroke-dashoffset:0}}
/* page rises in around the tick */
.o-shp2 [data-rv]{opacity:0;transform:translateY(14px)}
.o-shp2.o-rv-on [data-rv],.o-rv-on .o-shp2 [data-rv]{animation:o-rv .5s cubic-bezier(.2,.9,.3,1) forwards}
.o-rv-on [data-rv="0"]{animation-delay:.38s!important} .o-rv-on [data-rv="1"]{animation-delay:.48s!important} .o-rv-on [data-rv="2"]{animation-delay:.56s!important}
.o-rv-on [data-rv="3"]{animation-delay:.62s!important} .o-rv-on [data-rv="4"]{animation-delay:.68s!important}
@keyframes o-rv{to{opacity:1;transform:none}}
/* layout */
.o-shp2{max-width:1040px;margin:0 auto;padding:4px 0 120px;display:grid;gap:14px}
.o-shhero{text-align:center;display:grid;justify-items:center;gap:6px}
.o-shhd{display:grid;justify-items:center;gap:6px}
.o-shhero h1{margin:6px 0 0;font-size:clamp(28px,4.4vw,42px);letter-spacing:-.02em}
.o-philsay{margin:4px auto 0;max-width:760px;font-size:21px;line-height:1.35;text-wrap:balance} 
.o-shsub{margin:0;font-size:18px;color:var(--muted)} .o-shsub b{color:var(--ink,inherit)}
.o-band{display:grid;grid-template-columns:1fr auto;grid-template-areas:"k k" "v c";align-items:baseline;column-gap:14px;border-radius:18px;padding:14px 22px 16px;color:#fff;background:var(--r-hand)}
.o-band .k{grid-area:k;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.o-band .v{grid-area:v;font:800 clamp(36px,6vw,56px)/1.05 var(--fd);letter-spacing:-.02em}
.o-band .c{grid-area:c;font-size:20px;font-weight:800;text-align:right}
.o-band.r-UK{background:var(--r-uk)} .o-band.r-NI{background:var(--r-ni);color:var(--r-ni-ink)} .o-band.r-INTL{background:var(--r-intl)}
.o-shgrid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}
.o-shside{display:grid;gap:16px;min-width:0}
.o-shinfo{padding:0;overflow:hidden}
.o-shinfo .sec{padding:18px 20px}
.o-shinfo .sec.fx{border-top:1px dashed var(--line)}
.o-shaddr{display:grid;margin-top:6px;font-size:18px;line-height:1.45}
.o-shaddr .nm{font-size:21px}
.o-shaddr span:last-child{font-weight:800}
.o-shfxh{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.o-shfxh .o-shh{margin-right:auto}
.o-shinfo .shipfacts{margin-top:12px}
.o-trk{font-size:17px;letter-spacing:.03em}
/* today's split: one coloured tile per FedEx box */
.o-split{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.o-split>div{border-radius:12px;padding:12px 6px 10px;text-align:center;background:var(--soft,#f5f5f6);border-top:5px solid var(--r-hand)}
.o-split .v{font:800 30px/1.1 var(--fd)} .o-split .k{font-size:12px;font-weight:700;color:var(--muted)}
.o-split .r-UK{border-top-color:var(--r-uk)} .o-split .r-UK .v{color:var(--r-uk)}
.o-split .r-NI{border-top-color:var(--r-ni)} .o-split .r-NI .v{color:#b45309}
.o-split .r-INTL{border-top-color:var(--r-intl)} .o-split .r-INTL .v{color:var(--r-intl)}
.o-split .zero .v{opacity:.35}
.o-rgp{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:800;color:#fff;background:var(--r-hand);vertical-align:1px}
.o-rgp.r-UK{background:var(--r-uk)} .o-rgp.r-NI{background:var(--r-ni);color:var(--r-ni-ink)} .o-rgp.r-INTL{background:var(--r-intl)}
/* 24 Nov 2026 (Dylan): the tiles stay pale in dark mode, so their numbers and words keep the light mode colours */
.o-split>div{--ink:#1f1f23;--muted:#6b6b74;color:var(--ink)}
@media (max-width:900px){.o-shgrid{grid-template-columns:minmax(0,1fr)}.o-shp2{padding-bottom:150px}}
@media (max-width:520px){.o-split{grid-template-columns:repeat(2,1fr)}.o-band{padding:12px 16px}.o-band .c{font-size:16px}.o-shtick{width:92px;height:92px}}
@media (prefers-reduced-motion:reduce){.o-shp2 [data-rv]{opacity:1;transform:none;animation:none!important}.o-cdo.buying .o-tk .spin{animation:none}}

/* 19 Nov (Dylan): pick row = [step] [LOCATION] [photo] [name + SKU] [TAKE + Can't scan?], the three tiles one size */
.o-plhd{align-items:flex-start}
.o-plhd>.tick{align-self:center}
.o-tile{width:var(--t);height:var(--t);flex:none;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px;text-align:center;overflow:hidden}
.o-tile .k{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.o-tile .v{font:800 calc(var(--t) * .3)/1.05 var(--fd);overflow-wrap:anywhere}
.o-tile .v.long{font-size:calc(var(--t) * .19)}
.o-tile.loc{background:var(--sunk);border:1px solid var(--line);color:var(--ink)}
.o-tile.take{background:var(--bolt-50);border:1px solid var(--bolt-line);color:var(--ink)}
.o-tile.take .v{font-size:calc(var(--t) * .36)}
.o-tile .o-cant{padding:0;font-size:11px;line-height:1.2;min-height:0}
.o-pl:not(.on) .o-tile .o-cant{font-size:10px}
.o-plsku{margin-top:4px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.o-sku{font:700 16px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--ink);color:var(--card);padding:3px 8px;border-radius:7px;letter-spacing:.02em}
.o-pl.on .o-sku{font-size:19px}
.o-pl.done .o-sku{background:var(--muted);color:var(--card)}
@media (max-width:720px){
  .o-plhd{flex-wrap:wrap;gap:10px}
  .o-plhd>.o-tile.take{margin-left:auto}
  .o-plhd>.o-plmain{flex:1 1 100% !important;order:5}
  .o-plhd .o-tile{--t:72px!important} .o-pl .o-plhd .th{--s:72px!important}
}
@media (pointer:coarse){ .o-tile .o-cant{min-height:0} }

/* 19 Nov (Dylan): failed label = the ring sweeps red, red disc, white cross; banner with Ask PHIL's reason + Retry label */
.o-tk .xx{fill:none;stroke:#fff;stroke-width:17;stroke-linecap:round;stroke-dasharray:90;stroke-dashoffset:90}
.o-tk.fail .fg{stroke:var(--stop,#dc2626);opacity:1}
.o-tk.fail .disc{fill:var(--stop,#dc2626);transition:transform .38s cubic-bezier(.2,1.5,.4,1) .42s;transform:scale(1)}
.o-tk.fail .xx{transition:stroke-dashoffset .25s cubic-bezier(.65,0,.35,1) .7s;stroke-dashoffset:0}
.o-tk.fail .xx.b{transition-delay:.9s}
.o-cdo.failed .o-tk .spin{opacity:0;animation:none}
.o-cdo.failed{overflow:auto;align-items:start}
.o-cdo.failed .o-cdo-in{padding:24px 0;max-width:640px;width:100%}
.o-cdo.failed .o-cdo-ring{width:min(40vw,180px)}
.o-cdo.failed h1{color:var(--stop,#b91c1c)}
.o-cdo-fail{width:100%;text-align:left;animation:o-lfin .3s ease 1.1s both}
.o-cdo-fbtns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
@keyframes o-lfin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.o-lfail{border:2px solid var(--stop,#dc2626);background:color-mix(in srgb,var(--stop,#dc2626) 7%,var(--card,#fff));border-radius:16px;padding:14px 16px;margin:0 0 16px;display:grid;gap:10px}
.o-lfail-h{display:flex;align-items:center;gap:8px;color:var(--stop,#b91c1c);font-size:17px}
.o-lfail-h .tiny{margin-left:auto;color:var(--muted)}
.o-lfail-err{font:500 13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--card,#fff);border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:8px 10px;overflow-wrap:anywhere;max-height:120px;overflow:auto}
.o-lfail-ask{background:var(--bolt-50);border:1px solid var(--bolt-line);border-radius:12px;padding:10px 12px;font-size:15px;line-height:1.45}
.o-lfail-who{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px;display:flex;align-items:center;gap:6px}
.o-lfail-spin{display:inline-block;width:14px;height:14px;border:2px solid var(--bolt,#fcc01e);border-right-color:transparent;border-radius:50%;animation:o-tkspin .8s linear infinite;vertical-align:-2px;margin-right:6px}
.o-lfail-acts{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.o-lfpill{display:inline-block;background:var(--stop,#dc2626);color:#fff;font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;vertical-align:1px}
@media (prefers-reduced-motion:reduce){.o-tk.fail .disc,.o-tk.fail .xx{transition:none}.o-cdo-fail{animation:none}}
.o-lfail-txt p{margin:0 0 6px} .o-lfail-txt ol,.o-lfail-txt ul{margin:4px 0 6px;padding-left:20px} .o-lfail-txt>:last-child{margin-bottom:0}

/* 19 Nov (Dylan): Box folded in the postage tile; Pause is an icon beside Reprint pick list */
.o-boxd{margin-top:14px;border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:0 12px}
.o-boxd>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px 0;font-weight:700}
.o-boxd>summary::-webkit-details-marker{display:none}
.o-boxd>summary::after{content:'';margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.o-boxd[open]>summary::after{transform:rotate(-135deg)}
.o-boxd-h{font-size:17px}
.o-boxd-s{font-weight:500;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.o-boxd[open]{padding-bottom:4px}
.o-pkrow{flex-direction:row!important;align-items:stretch}
.o-pkrow>#pkreprint{flex:1}
.o-pkrow>.o-pause{flex:none!important;width:48px;padding:0;justify-content:center}
.o-pkrow>.o-pause:only-child{margin-left:auto}

/* 19 Nov (Dylan): order page header = number | (customer over status), then Ordered + Ship by side by side */
.o-hd{display:flex;align-items:center;gap:16px;min-width:0}
.o-hdno{margin:0;font-size:clamp(30px,4vw,40px);line-height:1;white-space:nowrap}
.o-hdside{display:flex;flex-direction:column;gap:6px;min-width:0}
.o-hdcust{font-weight:700;font-size:17px;line-height:1.2;overflow-wrap:anywhere}
.o-hdside .pill{align-self:flex-start}
.o-hddates{display:flex;gap:28px;margin-top:12px;flex-wrap:wrap}
.o-hddates>div{display:flex;flex-direction:column;gap:2px}
.o-hddates .k{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.o-hddates .v{font-weight:600}

/* 19 Nov (Dylan): status centred beside the number; narrower postage tile, more room for the products */
.o-hd{align-items:center;gap:14px}
.o-hd .pill{flex:none}
@media (min-width:1181px){ .o-pksplit{grid-template-columns:minmax(0,1fr) minmax(300px,340px)} }
.o-pkinfo .o-hddates{margin-top:10px}

/* 19 Nov (Dylan): line above the totals; Shipment / Timeline / Other systems as tabs in one tile; header lined up with the columns below */
.o-totline{border-top:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 18px}
.o-tots{text-align:right}
.o-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line,#e5e7eb);margin:-4px 0 12px;overflow-x:auto}
.o-tabs button{border:0;background:none;padding:8px 10px 10px;font:600 14px var(--fb,inherit);color:var(--muted);display:inline-flex;align-items:center;gap:6px;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap}
.o-tabs button.on{color:var(--ink);border-bottom-color:var(--bolt,#fcc01e)}
.o-tabs .ct{font-size:11px;background:var(--sunk);border-radius:999px;padding:1px 7px}
.o-hdno a{color:inherit;text-decoration:none} .o-hdno a:hover{text-decoration:underline;text-decoration-thickness:3px}
@media (min-width:1181px){
  .o-pkband{grid-template-columns:auto minmax(0,1fr) minmax(300px,340px)}
  .o-pkband.nonotes{grid-template-columns:minmax(0,1fr) minmax(300px,340px)}
  .o-pkacts{align-items:center}
  .o-pkacts>*{width:100%;max-width:300px}
}
.o-hdno{white-space:nowrap}

/* 19 Nov (Dylan): Pause has its word back; toggle + buttons centred over Postage (never stretched); ship-by colours */
.o-pkacts{align-items:center!important}
.o-pkacts>*{width:auto!important;max-width:100%}
.o-pkacts .o-modeseg{align-self:center}
.o-pkrow{justify-content:center;gap:8px}
.o-pkrow>#pkreprint{flex:none}
.o-pkrow>.o-pause{width:auto!important;padding:0 14px!important;gap:6px}
.o-sb.early,.o-sb.early b{color:var(--ok)!important}
.o-sb.due,.o-sb.due b{color:var(--wait)!important}
.o-sb.late,.o-sb.late b{color:var(--stop)!important}
@media (max-width:720px){ .o-pkacts{align-items:stretch!important} .o-pkacts>*{width:100%!important} .o-pkrow>#pkreprint{flex:1} }
.o-addr2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.o-addrk{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:10px}
.o-addrk+p{margin-top:4px}

/* 20 Nov 2026 (Dylan): Notifications tile is plain white when there is nothing in it; pale yellow only with notes/issues */
.ncard.empty{background:var(--card);border-color:var(--line)}

/* 20 Nov 2026 (Dylan): Pick & pack right-hand panel = Pack & buy label, the Postage line (opens the pop-up), icon actions */
.o-pkpanel{display:grid;gap:12px}
.o-pkpanel .o-pknote{margin:0}
.o-postline{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:var(--sunk);color:var(--ink);border-radius:14px;padding:12px 14px;cursor:pointer;font:inherit}
.o-postline:hover{border-color:var(--bolt-line);background:var(--bolt-50)}
.o-postline-k{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex:none}
.o-postline-v{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.o-postline-v b{font-size:15px}
.o-postline-v span{font-size:13px;color:var(--muted)}
.o-postline-go{flex:none;color:var(--muted);display:flex}
.o-iconrow{display:flex;flex-wrap:wrap;gap:8px}
.o-ib{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer;text-decoration:none;padding:0}
.o-ib:hover{background:var(--bolt-50);border-color:var(--bolt-line)}
.o-ib:focus-visible{outline:2px solid var(--bolt);outline-offset:2px}
.o-pkband>.o-pkacts:empty{display:none}
.o-postpop{position:fixed;inset:0;z-index:300;background:rgba(10,10,14,.45);display:grid;place-items:center;padding:16px}
.o-postpop[hidden]{display:none}
.o-postpop-card{background:var(--card);color:var(--ink);border-radius:18px;width:min(920px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:18px 20px 20px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.o-postpop-hd{display:flex;align-items:center;justify-content:space-between;gap:10px}
.o-postpop-hd h3{margin:0}
.o-postpop-hd .x{border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:var(--muted);padding:4px 8px}
.o-postpop .field[hidden]{display:none}
/* the pop-up sits inside Pick & pack, which is zoomed 1.2 when the menu is collapsed: keep it inside the screen */
html.rail-off .p-main:has(.o-pksplit) .o-postpop-card{max-height:calc((100dvh - 32px) / 1.2)}

/* 20 Nov 2026 (Dylan): Pick & pack actions = a narrow one-column rail on the right, like the collapsed left menu.
   Fixed (P.rightRail in api.js puts it outside the zoomed page); top level with the Notifications tile (orders.js). */
.p-rrail{position:fixed;right:16px;top:140px;z-index:35;width:60px}
.p-rrail:empty{display:none}
@media (min-width:721px){
html.has-rrail .p-main{padding-right:96px}
html.has-rrail .o-pksplit{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:720px){ .p-rrail{display:none} }
.o-rrail{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-1)}
.o-rb{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;border:0;background:none;color:var(--thunder-500);cursor:pointer;text-decoration:none;padding:0}
.o-rb:hover{background:var(--surface);color:var(--ink)}
.o-rb:focus-visible{outline:2px solid var(--bolt);outline-offset:2px}
.o-rb.ship{width:44px;height:44px;background:var(--bolt);color:var(--thunder-900);border-radius:12px}
.o-rb.ship:hover{background:var(--bolt);filter:brightness(1.06)}
.o-rsep{width:20px;height:1px;background:var(--line);margin:4px 0}
:root[data-theme="dark"] .o-rb{color:#b4b4be}
@media (max-width:720px){
  .o-rrail{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;padding:8px;gap:6px}
  .o-rsep{width:1px;height:24px;margin:0 4px}
}
/* per-box weights in the Postage pop-up */
.o-bwgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:6px 0 14px}
.o-bw{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}
/* retry label purchase: grey until a label fails, then red */
.o-rb.retry:disabled{opacity:.35;cursor:default;background:none}
.o-rb.retry.on{color:var(--stop);background:color-mix(in srgb, var(--stop) 12%, transparent)}
/* 20 Nov 2026 (Dylan): with the right rail, Notifications runs to the products' right edge */
@media (min-width:721px){
html.has-rrail .o-pkband,html.has-rrail .o-pkband.nonotes{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"info notes"}
html.has-rrail .o-pkband>.o-pkacts{display:none}
}
/* 20 Nov 2026 (Dylan, drop 97): current product = big photo down the left, everything else to its right */
.o-pl.bigph{flex-direction:row;align-items:flex-start;gap:18px}
.o-plph{flex:none;align-self:stretch;display:flex;align-items:flex-start}
.o-plph .o-thbtn,.o-plph>.th{display:block}
.o-plright{flex:1;min-width:0;display:flex;flex-direction:column}
@media (max-width:720px){
  .o-pl.bigph{flex-direction:column;gap:10px}
  .o-plph .th{--s:120px!important}
}
/* 20 Nov 2026 (Dylan): Postage pop-up twice as wide; boxes as a list with '+ Add box' by the Box heading */
.o-addbox{margin-left:10px;font-size:12px;padding:3px 10px;min-height:0}
.o-bxlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px 14px;margin:10px 0 14px}
.o-bxrow{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.o-bxn{font-weight:700;font-size:14px;min-width:48px}
.o-bxrow .input{flex:1;min-width:0;height:38px}
.o-bxu{font-size:12px;color:var(--muted)}
.o-bxdel,.o-bxdel-sp{width:28px;height:28px;flex:none}
.o-bxdel{border:0;border-radius:8px;background:none;color:var(--muted);font-size:18px;line-height:1;cursor:pointer}
.o-bxdel:hover{background:var(--stop-bg);color:var(--stop)}
.o-bxtot{grid-column:1/-1}
.o-bxtot:empty{display:none}
/* 20 Nov 2026 (Dylan): one big box vs extra boxes */
.o-bxcmp{display:flex;align-items:flex-start;gap:8px;margin:-4px 0 14px;padding:8px 12px;border-radius:10px;background:var(--surface);font-size:13px;color:var(--ink)}
.o-bxcmp[hidden]{display:none}
.o-bxcmp svg{flex:none;margin-top:2px;color:var(--muted)}
.o-bxcmp.dear{background:var(--wait-bg)}
.o-bxcmp.dear svg{color:var(--wait)}
/* Orders list: UK/NI/Intl + Xero columns (Dylan, 20 Nov 2026) */
.o-reg{display:inline-block;font-size:12px;font-weight:700;border-radius:7px;padding:1px 8px;border:1px solid var(--line);background:var(--surface);white-space:nowrap}
.o-reg-ni{border-color:#8fb3e8;color:#2457a6}
.o-reg-intl{border-color:#e0b85a;color:#8a5a00}
.o-xero{font-size:12px;font-weight:700;white-space:nowrap}
.o-xero.ok{color:var(--ok, #1f7a3d)}
.o-xinv{padding:3px 10px;font-size:12px}
/* Order page actions = a fixed icon rail like Pick & pack; its top button widens it to show names (Dylan, 20 Nov 2026) */
@media (min-width:721px){
  .o-top.railed{grid-template-columns:minmax(220px,auto) minmax(0,1fr);grid-template-areas:"info notes" "body body"}
  .p-rrail:has(.o-orail.wide){width:230px}
  html.has-rrail:has(.o-orail.wide) .p-main{padding-right:266px}
  .o-orail.wide{align-items:stretch;padding:10px 8px}
  .o-orail.wide .o-rb{width:auto;display:flex;justify-content:flex-start;gap:10px;padding:0 10px;text-align:left;font:600 13.5px var(--fb, inherit);white-space:nowrap}
  .o-orail.wide .o-rsep{align-self:center}
  .o-orail.wide .o-rl{display:inline}
  .o-orail:not(.wide) .o-rtog svg{transform:scaleX(-1)}
}
@media (max-width:1180px) and (min-width:721px){ .o-top.railed{grid-template-columns:minmax(0,1fr);grid-template-areas:"info" "notes" "body"} }
.o-orail .o-rl{display:none}
.o-orail .o-rtog{color:var(--muted)}
@media (max-width:720px){
  .o-orail .o-rb{width:auto;display:inline-flex;gap:6px;padding:0 10px;font:600 13px var(--fb, inherit)}
  .o-orail .o-rl{display:inline}
  .o-orail .o-rtog,.o-orail .o-rb.ship,.o-orail .o-rsep{display:none}   /* no toggle on a phone; Pick now is the bottom bar */
}
.o-expc{white-space:nowrap}
/* Order page (Dylan, 20 Nov 2026 eve): products run up to the action rail; Customer is a narrow tile to the left of the products,
   Shipment / Timeline below across the full width */
@media (min-width:721px){
  html.has-rrail:has(.o-orail) .p-main{padding-right:84px}
  html.has-rrail:has(.o-orail.wide) .p-main{padding-right:254px}
}
@media (min-width:900px){
  .o-body{grid-template-columns:240px minmax(0,1fr);grid-template-areas:"cust lines" "ship ship";align-items:start}
  .o-body>.o-below{display:contents}
  .o-body .o-lines{grid-area:lines;min-width:0}
  .o-body .o-cust{grid-area:cust;min-width:0}
  .o-body .o-shtabs{grid-area:ship;min-width:0}
  .o-cust .o-addr2{grid-template-columns:1fr}
  .o-cust p,.o-cust .small{overflow-wrap:anywhere}
}
/* Order page (Dylan, 20 Nov eve): Shipment / Timeline / Systems as three tiles; the rail's grouped actions pop up */
.o-ship3{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start}
.o-ship3 h3 .ct,.o-timec h3 .ct,.o-sysc h3 .ct{font-size:11px;background:var(--sunk);border-radius:999px;padding:1px 7px;margin-left:4px;vertical-align:middle}
.o-timec .timeline,.o-sysc .list{max-height:420px;overflow:auto}
@media (min-width:900px){
  .o-body .o-ship3{grid-area:ship;min-width:0}
  .o-body>*:not(.o-lines):not(.o-below){grid-column:1/-1}
}
.o-rm{position:relative}
.o-rm>.o-rb[aria-expanded="true"]{background:var(--surface);color:var(--ink)}
.o-rpop{position:absolute;right:calc(100% + 14px);top:-8px;z-index:60;min-width:230px;background:var(--card);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.14);padding:6px}
.o-rpop[hidden]{display:none}
.o-rpop-h{font:700 11px var(--fb,inherit);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:6px 10px 4px}
.o-rpi{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;padding:9px 10px;border-radius:9px;font:600 14px var(--fb,inherit);color:var(--ink);cursor:pointer;text-align:left}
.o-rpi:hover,.o-rpi:focus-visible{background:var(--surface)}
.o-rpi .ic{color:var(--thunder-500);flex:none}
.o-orail.wide .o-rm{width:100%}
@media (max-width:720px){
  .o-rpop{right:auto;left:0;top:calc(100% + 6px)}
}
/* 23 Nov 2026 (Dylan): order status beside "All orders"; Notifications starts level with the products; the page runs up to the action
   rail on every screen size (the gap is a share of the screen width); Shipment / Timeline / Systems always one height, capped */
.o-crumb{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.o-crumb>a{display:inline-flex;align-items:center;gap:4px}
.o-spin{display:inline-block;width:18px;height:18px;border:2.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:o-tkspin .8s linear infinite;flex:none}
@media (min-width:721px){
  html.has-rrail{--rgap:max(8px,.75vw)}
  html.has-rrail .p-main,html.has-rrail:has(.o-orail) .p-main{max-width:none;padding-right:calc(76px + var(--rgap))}
  html.has-rrail:has(.o-orail.wide) .p-main{padding-right:calc(246px + var(--rgap))}
  html.has-rrail.rail-off .p-main:has(.o-pksplit){padding-right:calc((76px + var(--rgap)) / 1.2)}
}
@media (min-width:900px){
  .o-top.railed{grid-template-columns:240px minmax(0,1fr);grid-template-areas:"info notes" "body body"}
  .o-top.railed .o-hddates{gap:8px 18px}
}
.o-ship3{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;align-items:stretch}
.o-ship3>.card{display:flex;flex-direction:column;min-width:0;max-height:440px}
.o-ship3>.card>h3{flex:none}
.o-ship3 .o-s3{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;padding-top:8px;overflow-wrap:anywhere}
@media (min-width:900px){ .o-ship3{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)} }
/* 23 Nov 2026 (Dylan): Status first in the Orders list, extra statuses under it; the customer's PO on the list and the order page */
.o-stats{display:flex;flex-direction:column;align-items:flex-start;gap:5px} .o-stats .o-lfpill{white-space:nowrap}
.o-cpo{overflow-wrap:anywhere}
.o-cref{display:block;border:0;background:none;font:inherit;font-size:15px;color:var(--muted);padding:3px 0;margin-top:2px;cursor:pointer;text-align:left;overflow-wrap:anywhere} .o-cref:hover{text-decoration:underline}
@media (max-width:720px){.o-stats{align-items:flex-end}.o-cref{min-height:40px}}

/* 24 Nov 2026 (Dylan): merged orders */
.o-mergetag{display:flex;align-items:flex-start;gap:6px;margin-top:8px;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.o-mergetag svg{flex:none;margin-top:2px}
.o-plord{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:99px;background:var(--info-bg,#e0e7ff);color:var(--info,#1d4ed8);font-size:12px;font-weight:700;vertical-align:middle}
.o-pgt{width:100%}
@media(max-width:520px){.o-pgt th,.o-pgt td{padding-left:4px!important;padding-right:4px!important;font-size:14px;letter-spacing:0}}
.o-mergebtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
