/* Staff order page (hidden, staff only). Loaded by sections/ll-staff-orders.liquid. */
.sto{--ink:#01303a;--muted:#5a6b72;--line:#d9e1e4;--paper:#f3f6f7;--card:#fff;--gold:#a9823f;--gold-soft:#f5ecdc;--ok:#1f7a4d;--warn:#b5541c;--bad:#b3261e;
  max-width:560px;margin:0 auto;padding:16px 16px 120px;display:flex;flex-direction:column;gap:16px;color:var(--ink);font-family:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;font-size:16px;line-height:1.6}
.sto *{box-sizing:border-box}
.sto-col{display:flex;flex-direction:column;gap:12px}
.sto-tight{gap:6px}
.sto-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sto h1{font-size:24px;margin:0;font-weight:700}
.sto h2{font-size:15px;margin:0;color:var(--muted);font-weight:600}
.sto-headside{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.sto-headside .sto-x{align-self:flex-end}
.sto-inv{background:var(--ink);color:#fff;border-radius:10px;padding:6px 12px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.sto-inv small{opacity:.7;font-weight:500;margin-inline-end:6px}
.sto-tabs{display:flex;gap:6px;position:sticky;top:0;z-index:6;background:var(--paper);padding:6px 0;height:52px;box-sizing:border-box}
.sto-tab{flex:1;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:10px;padding:0 4px;font:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
.sto-tab[aria-selected="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.sto-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:12px}
.sto-item{border-inline-start:4px solid var(--gold)}
.sto-item-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sto-qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#fff}
.sto-qty button{border:0;background:none;font:inherit;font-size:18px;line-height:1;min-width:40px;min-height:36px;cursor:pointer;color:var(--ink)}
.sto-qty button:disabled{opacity:.35;cursor:default}
.sto-qty button:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.sto-qty output{min-width:28px;text-align:center;font-weight:700}
.sto-names{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.sto-price{font-variant-numeric:tabular-nums;color:var(--gold);font-weight:700}
.sto-price s{color:var(--muted);font-weight:500;font-size:13px}
.sto label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.sto-lbl{font-size:14px;font-weight:600}
.sto-hint{font-weight:400;color:var(--muted);font-size:13px}
.sto select,.sto input[type=text],.sto input[type=tel],.sto input[type=search],.sto input[type=password],.sto input[type=number],.sto textarea{font:inherit;font-size:16px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);width:100%}
.sto textarea{min-height:64px;resize:vertical}
.sto select:focus,.sto input:focus,.sto textarea:focus,.sto button:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.sto-phone{display:flex;gap:8px}
.sto .sto-phone select{width:auto;flex:0 0 auto}
.sto-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:400px){.sto-row{grid-template-columns:1fr}}
.sto-seg{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.sto-seg button{flex:1;border:0;background:#fff;padding:10px 6px;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
.sto-seg button + button{border-inline-start:1px solid var(--line)}
.sto-seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.sto-colors{display:flex;flex-wrap:wrap;gap:8px}
.sto-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:14px;cursor:pointer;display:flex;gap:6px;align-items:center;color:var(--ink)}
.sto-chip i{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.15);display:inline-block}
.sto-chip em{font-style:normal;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.sto-chip[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);font-weight:600}
.sto-chip:disabled{opacity:.4;text-decoration:line-through;cursor:not-allowed}
.sto-chip.low em{color:var(--warn);font-weight:700}
.sto .sto-check{flex-direction:row;align-items:center;gap:8px;font-weight:500}
.sto-check input{width:20px;height:20px;accent-color:var(--ink)}
.sto-inline{display:flex;gap:16px;flex-wrap:wrap}
.sto-err{color:var(--bad);font-size:13px;font-weight:600}
.sto-err:empty{display:none}
.sto-btn{border:0;border-radius:12px;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer}
.sto-line{background:#fff;border:1px dashed var(--gold);color:var(--gold)}
.sto-x{background:transparent;color:var(--muted);border:0;font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;align-self:flex-start}
.sto-preview{white-space:pre-wrap;background:var(--gold-soft);border-radius:10px;padding:12px;font-size:15px;line-height:1.8;margin:0;font-family:inherit}
.sto-total{display:flex;justify-content:space-between;align-items:baseline;font-weight:700;font-size:18px}
.sto-total span:last-child{font-variant-numeric:tabular-nums}
.sto-note{font-size:13px;color:var(--muted)}
.sto-banner{border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600}
.sto-banner.ok{background:#e3f3ea;color:var(--ok)}
.sto-banner.warn{background:#fbeee5;color:var(--warn)}
.sto-bar{position:fixed;inset:auto 0 0 0;background:rgba(243,246,247,.96);border-top:1px solid #d9e1e4;padding:12px 16px calc(12px + env(safe-area-inset-bottom));z-index:50}
.sto-bar-in{max-width:560px;margin:0 auto;display:flex;gap:10px}
.sto-bar .sto-btn{flex:1}
.sto-main{background:var(--ink);color:#fff}
.sto-main:disabled{opacity:.5;cursor:not-allowed}
.sto-sub{background:#fff;color:var(--ink);border:1px solid #d9e1e4;flex:0 0 auto!important}
.sto-tools{position:sticky;top:52px;z-index:5;background:var(--paper);padding:6px 0;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--line)}
.sto-stats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:1px}
.sto-stats::-webkit-scrollbar{display:none}
.sto-toolrow{display:flex;gap:6px;align-items:center}
.sto .sto-toolrow input{flex:1;min-width:0;padding:6px 10px;font-size:15px}
.sto .sto-toolrow select{width:auto;flex:0 0 auto;padding:6px 8px;font-size:14px}
.sto-toolrow .sto-act{flex:0 0 auto}
.sto-stat.s-urgent{border-color: #e0a800} .sto-stat.s-urgent b{color:#8a6500}
.sto-stat.s-due{border-color: #0b5cad} .sto-stat.s-due b{color:#0b5cad}
.sto-by{background:#6b2aa0;color:#fff;border-radius:999px;padding:2px 12px;font-size:13px;font-weight:700;display:inline-block;vertical-align:middle}
.sto-by.web{background:var(--ink)}
.sto-qnav{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;font-size:13px;font-variant-numeric:tabular-nums}
.sto-qnav .sto-act{padding:4px 9px}
.sto-bub.is-match{outline:2px dashed var(--gold);outline-offset:2px}
.sto-bub.is-hit{outline:3px solid var(--gold);outline-offset:2px}
.sto-mark{background:#ffd866;color:var(--ink);border-radius:3px;padding:0 2px}
.sto-log{margin-top:8px;border-top:1px dashed var(--line);padding-top:6px;font-size:12.5px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.sto-log b{color:var(--ink)}
.sto-rep{width:100%;border-collapse:collapse;font-size:14px}
.sto-rep th,.sto-rep td{border-bottom:1px solid var(--line);padding:6px 4px;text-align:start}
.sto-rep td.n,.sto-rep th.n{text-align:end;font-variant-numeric:tabular-nums}
.sto-stk{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-bottom:1px solid var(--line)}
.sto-stk:last-child{border-bottom:0}
.sto-stk>div{display:flex;flex-wrap:wrap;gap:6px}
.sto-q{display:inline-flex;align-items:center;gap:6px;border:2px solid transparent;border-radius:999px;padding:3px 4px 3px 10px;font-size:13.5px;font-weight:600}
.sto-q em{font-style:normal;font-weight:700;font-variant-numeric:tabular-nums;background:#fff;color:var(--ink);border-radius:999px;min-width:26px;text-align:center;padding:1px 6px}
.sto-sedb{font-size:12px;padding:2px 10px;margin-inline-start:8px;min-height:0}
.sto-q.l em{background:#ffe2c7;color:var(--warn)}
.sto-q.z{opacity:.55;border:2px dashed var(--bad)}
.sto-q.z em{background:var(--bad);color:#fff}
.sto-scroll{overflow-x:auto}
.sto-cols{display:flex;flex-direction:column;gap:6px}
.sto-colrow{display:flex;align-items:center;gap:10px;min-height:40px}
.sto-colrow .sto-check{flex:1}
.sto-colrow input[type=number]{width:110px}
.sto-costs{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
.sto-costs label{font-size:13.5px}
.sto-polink{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:start;background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;min-height:44px;width:100%}
.sto-polink span{font-size:12.5px;color:var(--muted)}
.sto-blue,.sto-act.sto-blue{background:var(--ink);color:#fff;border-color:var(--ink)}
.sto-act.sto-blue{padding:8px 14px;font-size:14px}
.sto-act.sto-blue[aria-pressed=true]{background:var(--gold);border-color:var(--gold)}
.sto-red,.sto-act.sto-red{background:#fff;color:var(--bad);border:1px solid var(--bad)}
.sto-act.sto-red{padding:8px 14px;font-size:14px}
.sto-x.sto-redx{color:var(--bad)}
.sto-backbar{display:flex;align-items:center;gap:10px;min-height:40px}
.sto-backbar b{font-size:17px}
.sto-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sto-tile{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:start;background:var(--card);border:1px solid var(--line);border-inline-start:4px solid var(--gold);border-radius:14px;padding:14px 12px;min-height:84px;font:inherit;color:var(--ink);cursor:pointer}
.sto-tile b{font-size:16px}
.sto-tile span{font-size:12.5px;color:var(--muted);line-height:1.5}
.sto-tile:active{background:var(--gold-soft)}
.sto-todo{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.sto-todo:first-of-type{border-top:0}
.sto-todo span{display:block;font-size:12.5px;color:var(--muted)}
.sto-todo .sto-act{flex:0 0 auto}
.sto-kpi.bad b{color:var(--bad)}
.sto input[type=text].sto-mini{width:84px;min-width:0;flex:0 0 84px;padding:8px;text-align:center}
.sto-todo>div{min-width:0;flex:1}
details.sto-card>summary{font-weight:700;cursor:pointer;min-height:36px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
details.sto-card[open]>summary{margin-bottom:8px}
details.sto-card>summary::-webkit-details-marker{display:none}
details.sto-card>summary::before{content:'◂';color:var(--muted)}
details.sto-card[open]>summary::before{content:'▾'}
.sto-scroll .sto-rep{white-space:nowrap}
.sto-exp{display:flex;justify-content:space-between;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.sto-exp span{display:block;font-size:12.5px;color:var(--muted)}
.sto-exp-a{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap}
.sto-tabs .sto-tab{font-size:13.5px}
.sto-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.sto-kpi{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.sto-kpi b{display:block;font-size:18px;font-variant-numeric:tabular-nums}
.sto-kpi span{font-size:12.5px;color:var(--muted)}
.sto-top{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.sto-edit{font-size:12px;color:var(--muted);margin-top:4px}
.sto-tag.due{background:#0b5cad}
.sto-stat.s-late{border-color: #111} .sto-stat.s-late b{color:#111}
.sto-tag.urgent{background:#f5c400;color:#111} .sto-tag.late{background:#111} .sto-tag.age{background:#fff;color:var(--muted);border:1px solid var(--line)}
.sto-bub.is-urgent{border-inline-start:5px solid #f5c400}
.sto-bub.is-late{box-shadow:inset 0 0 0 2px #111}
.sto-stat{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:999px;padding:3px 10px;background:var(--card);cursor:pointer;font:inherit;color:var(--ink);white-space:nowrap}
.sto-stat b{font-size:15px;font-variant-numeric:tabular-nums}
.sto-stat span{font-size:12.5px;font-weight:600}
.sto-stat.s-new{border-color: var(--warn)} .sto-stat.s-new b{color:var(--warn)}
.sto-stat.s-done{border-color: var(--ok)} .sto-stat.s-done b{color:var(--ok)}
.sto-stat.s-cancelled{border-color: var(--bad)} .sto-stat.s-cancelled b{color:var(--bad)}
.sto-stat[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)} .sto .sto-stat[aria-pressed="true"] b{color:#fff}
.sto-feed{display:flex;flex-direction:column;gap:12px}
.sto-day{align-self:center;background:#e2e8ea;color:var(--muted);font-size:12px;font-weight:700;border-radius:8px;padding:3px 10px}
.sto-bub{max-width:92%;align-self:flex-start;border-radius:14px 14px 14px 4px;padding:10px 12px 8px;background:var(--card);border:1px solid var(--line)}
.sto-bub.st-new{background:#fff4ea;border-color:#f1c9a7}
.sto-bub.st-done{background:#e8f6ee;border-color:#a9dcbf}
.sto-bub.st-cancelled{background:#fdecea;border-color:#f0b6b0}
.sto-bub pre b,.sto-preview b{font-weight:700}
.sto-bub pre{white-space:pre-wrap;margin:0;font-family:inherit;font-size:14.5px;line-height:1.75}
.sto-bub.st-cancelled pre{text-decoration:line-through;text-decoration-color:rgba(179,38,30,.45)}
.sto-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
.sto-foot .meta{font-size:12px;color:var(--muted)}
.sto-tag{font-size:12px;border-radius:999px;padding:2px 10px;font-weight:700;white-space:nowrap;color:#fff}
.sto-tag.st-new{background:var(--warn)} .sto-tag.st-done{background:var(--ok)} .sto-tag.st-cancelled{background:var(--bad)}
.sto-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.sto-act{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;color:var(--ink)}
.sto-act.ok{border-color:var(--ok);color:var(--ok)}
.sto-act.bad{border-color:var(--bad);color:var(--bad)}
.sto-act.sure{background:var(--bad);color:#fff}
.sto [hidden],.sto-bar[hidden]{display:none!important}
/* ---------- brand look: the store's navy, gold and cream; Tajawal and El Messiri; stitched header and bottom bar ---------- */
.sto,.sto-bar{--ink:#01303a;--teal:#06404c;--muted:#5c6b70;--line:#e6dcc8;--paper:#f6f1e8;--card:#fffdf9;--gold:#7d6130;--brass:#d6aa68;--gold-soft:#f3ead7;--ok:#2f7a5a;--warn:#a8541f;--bad:#b3412f;font-family:'Tajawal',system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
.sto{
  font-family:'Tajawal',system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;padding:0 16px calc(96px + env(safe-area-inset-bottom));gap:14px;background:var(--paper);min-height:100vh;-webkit-tap-highlight-color:transparent}
.sto[data-on="new"]{padding-bottom:calc(176px + env(safe-area-inset-bottom))}
.sto-head{position:relative;margin:0 -16px;padding:calc(12px + env(safe-area-inset-top)) 16px 18px;background:var(--ink);color:#fff;border-radius:0 0 20px 20px;gap:10px}
.sto-head::after,.sto-tabs::before{content:"";position:absolute;inset-inline:22px;border-top:1px solid rgba(228,193,121,.55)}
.sto-head::after{bottom:7px}
.sto-tabs::before{top:6px}
.sto-logo{flex:0 0 auto;width:29px;height:36px;object-fit:contain}
.sto h1{font-family:'El Messiri','Tajawal',sans-serif;font-size:21px;font-weight:700;flex:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.3}
.sto-head .sto-by{position:relative;background:linear-gradient(180deg,#e4ba79,#c9994f);color:var(--ink);font-family:'Tajawal',sans-serif;padding:3px 20px;letter-spacing:.02em;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 2px rgba(0,0,0,.35)}
.sto-head .sto-by::before,.sto-head .sto-by::after{content:"";position:absolute;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:var(--ink);opacity:.75}
.sto-head .sto-by::before{inset-inline-start:7px}
.sto-head .sto-by::after{inset-inline-end:7px}
.sto-by{background:var(--gold-soft);color:var(--ink)}
.sto-by.web{background:var(--ink);color:#fff}
.sto-inv{background:rgba(255,255,255,.08);border:1px solid rgba(228,193,121,.45);color:#fff;border-radius:12px}
.sto-inv small{color:var(--brass);opacity:1}
.sto-head .sto-x{color:rgba(255,255,255,.75)}
.sto-tabs{position:fixed;inset:auto 0 0 0;top:auto;z-index:45;height:auto;max-width:560px;margin:0 auto;background:var(--ink);padding:14px 6px calc(8px + env(safe-area-inset-bottom));gap:0;border-radius:20px 20px 0 0;box-shadow:0 -6px 18px rgba(1,48,58,.18)}
.sto-tabs .sto-tab{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;border-radius:12px;color:rgba(255,255,255,.66);font-size:12px;font-weight:700;padding:4px 2px;min-height:50px}
.sto-tabs .sto-tab span{padding:1px 9px;border-radius:999px;line-height:1.5}
.sto-tabs .sto-tab[aria-selected="true"]{background:none;color:var(--brass)}
.sto-tabs .sto-tab[aria-selected="true"] span{background:linear-gradient(180deg,#e4ba79,#c9994f);color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
.sto-tools{top:0}
.sto-bar{bottom:calc(72px + env(safe-area-inset-bottom));background:rgba(246,241,232,.96);border-top:1px solid var(--line);padding:10px 16px;z-index:44}
.sto-card{border-radius:16px;border-color:var(--line);box-shadow:0 1px 0 rgba(1,48,58,.03)}
.sto h2{color:var(--ink);font-size:16px;font-weight:700}
.sto select,.sto input[type=text],.sto input[type=tel],.sto input[type=search],.sto input[type=password],.sto input[type=number],.sto input[type=date],.sto textarea{border-color:var(--line);border-radius:12px;min-height:48px;background:#fff;color:var(--ink)}
.sto-btn{border-radius:14px;min-height:50px;font-size:16px}
.sto-main{background:var(--ink);color:#fff}
.sto-sub{border-color:var(--line);color:var(--ink);background:#fff}
.sto-act{min-height:36px;border-color:var(--line)}
.sto-seg{border-color:var(--line);border-radius:12px}
.sto-seg button{min-height:44px}
.sto-seg button + button{border-color:var(--line)}
.sto-chip{border-color:var(--line);min-height:36px}
.sto-kpi{border-radius:14px;border-color:var(--line);background:var(--card)}
.sto-kpi b{font-variant-numeric:tabular-nums}
.sto-tile{border-color:var(--line);border-inline-start:4px solid var(--brass);border-radius:16px;background:var(--card)}
.sto-tile b{font-family:'El Messiri','Tajawal',sans-serif;font-size:17px}
.sto-backbar b{font-family:'El Messiri','Tajawal',sans-serif;font-size:19px}
.sto-code{font-variant-numeric:tabular-nums;background:var(--ink);color:var(--brass);border-radius:6px;padding:1px 7px;font-size:13px;font-weight:700;letter-spacing:.03em}
.sto-polink{gap:6px}
.sto-pills{display:flex;gap:6px;flex-wrap:wrap}
.sto-pill{font-style:normal;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:700;background:var(--gold-soft);color:var(--gold)}
.sto-pill.ok{background:#e4f1ea;color:var(--ok)}
.sto-polink .sto-pill{color:var(--gold)}
.sto-polink .sto-pill.ok{color:var(--ok)}
.sto-rep{font-size:14px}
.sto-polink b{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sto-banner.ok{background:#e4f1ea}
.sto-banner.warn{background:#f8ead9}
/* pressing: every button gives way a little under the finger */
.sto button,.sto-bar button{touch-action:manipulation;transition:transform .09s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease}
.sto button:active:not(:disabled),.sto-bar button:active:not(:disabled){transform:scale(.965)}
.sto-tile:active,.sto-polink:active{background:var(--gold-soft)}
.sto-main:active:not(:disabled),.sto-blue:active:not(:disabled){box-shadow:inset 0 2px 6px rgba(0,0,0,.35)}
/* moving between screens: the new screen slides in from the side it was opened from, going back slides the other way */
@keyframes stoFwd{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}
@keyframes stoBack{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
@keyframes stoFade{from{opacity:0}to{opacity:1}}
#stoApp>section:not([hidden]){animation:stoFade .18s ease}
.sto[data-dir="fwd"] #stoRep>div:not([hidden]):not(.sto-backbar),.sto[data-dir="fwd"] #stoRepD>div:not([hidden]){animation:stoFwd .22s cubic-bezier(.2,.7,.3,1)}
.sto[data-dir="back"] #stoRep>div:not([hidden]):not(.sto-backbar),.sto[data-dir="back"] #stoRepD>div:not([hidden]){animation:stoBack .22s cubic-bezier(.2,.7,.3,1)}
details.sto-card>div{animation:stoFade .2s ease}
@media (prefers-reduced-motion:reduce){.sto *,.sto{animation:none!important;transition:none!important}}
.sto-headlinks{display:flex;gap:12px}
.sto-usr{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:6px;align-items:center}
.sto .sto-usr input,.sto .sto-usr select{padding:8px;min-height:44px;font-size:15px;min-width:0}

/* tap a figure to see what is behind it */
.sto-dd-n{font:inherit;color:inherit;background:none;border:0;padding:2px 0;cursor:pointer;text-decoration:underline dotted var(--gold);text-underline-offset:3px;font-variant-numeric:tabular-nums}
.sto-dd-n:active{color:var(--gold)}
.sto .sto-kpi-go{font:inherit;color:inherit;text-align:start;cursor:pointer;width:100%}
.sto .sto-kpi-go b{text-decoration:underline dotted var(--gold);text-underline-offset:4px}
.sto-dd{position:fixed;inset:0;z-index:60;background:rgba(1,48,58,.45);display:flex;align-items:flex-end;justify-content:center}
.sto-dd[hidden]{display:none}
.sto-dd-b{background:var(--paper);width:100%;max-width:560px;max-height:85vh;border-radius:18px 18px 0 0;display:flex;flex-direction:column;box-shadow:0 -8px 24px rgba(1,48,58,.25);animation:stoDdUp .18s ease-out}
@media (min-width:700px){.sto-dd{align-items:center}.sto-dd-b{border-radius:18px}}
.sto-dd-h{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px 8px;border-bottom:1px solid var(--line)}
.sto-dd-h b{font-family:'El Messiri',inherit;font-size:17px;color:var(--ink)}
.sto-dd-s{padding:6px 16px 0;font-size:12.5px;color:var(--muted)}
.sto-dd-l{overflow:auto;padding:4px 16px;flex:1}
.sto-dd-r{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.sto-dd-r>div{min-width:0;flex:1}
.sto-dd-r span{display:block;font-size:12.5px;color:var(--muted)}
.sto-dd-r>b{flex:0 0 auto;font-variant-numeric:tabular-nums;white-space:nowrap}
.sto-dd-r>b.neg{color:var(--bad)}
.sto-dd-f{display:flex;justify-content:space-between;align-items:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:2px solid var(--ink);font-size:14px}
.sto-dd-f span{color:var(--muted)}
@keyframes stoDdUp{from{transform:translateY(24px);opacity:.4}}
@media (prefers-reduced-motion:reduce){.sto-dd-b{animation:none}}
.sto-seg.sto-off{opacity:.45}
.sto-feed .sto-older{display:block;margin:4px auto 12px;min-width:160px}
.sto-feed>.sto-bub{content-visibility:auto;contain-intrinsic-size:auto 230px}
.sto-qwrap{position:relative;flex:1;min-width:0;display:flex}
.sto .sto-toolrow .sto-qwrap input{flex:1;min-width:0;padding-right:40px}
.sto-qwrap input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.sto-qx{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:50%;background:var(--line);color:var(--ink);font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.sto-qx[hidden]{display:none}
.sto-dd-r select{flex:0 0 auto;max-width:42%;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit}
.sto-dd-r .sto-act{flex:0 0 auto}
/* website order edit sheet */
.sto-we-h{font-weight:700;color:var(--ink);margin:12px 0 6px}
.sto-we-g{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sto-we-f{display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:var(--muted);min-width:0}
.sto-we-f input,.sto-we-f select,.sto-we-b textarea{font:inherit;font-size:16px;color:var(--ink);padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;width:100%;box-sizing:border-box}
.sto-we-b{border-top:1px solid var(--line);padding-bottom:10px}
.sto-we-b .sto-we-f{margin-bottom:8px}
.sto-we-c{display:flex;flex-wrap:wrap;gap:14px;margin:4px 0 8px;font-size:14px}
.sto .sto-we-c label{flex-direction:row;align-items:center;gap:6px}
.sto-we-c input{width:20px;height:20px;accent-color:var(--ink)}
.sto-we-go{width:100%;margin:10px 0 14px;padding:12px}
.sto .sto-we-c .sto-we-x{color:var(--bad)}
/* attachments: photo on top of the invoice like a WhatsApp image message */
.sto-atts{display:grid;gap:4px;margin:-2px -2px 8px;border-radius:12px;overflow:hidden}
.sto-atts.many{grid-template-columns:1fr 1fr}
.sto-att{display:block;width:100%;height:auto;max-height:320px;object-fit:cover;border-radius:10px;background:#eee;cursor:zoom-in}
.sto-atts.many .sto-att{aspect-ratio:1;max-height:none}
.sto-att-pdf{font:inherit;font-size:14px;text-align:start;padding:12px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}
.sto-clip{font-size:15px}
.sto-noscroll,.sto-noscroll body{overflow:hidden}
.sto-view{position:fixed;inset:0;z-index:2147483000;background:#000;display:flex;flex-direction:column}
.sto-view[hidden]{display:none}
.sto-view-bar{display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;color:#fff}
.sto-view-bar button{font:inherit;font-size:16px;color:#fff;background:rgba(255,255,255,.14);border:0;border-radius:999px;padding:8px 14px;min-height:40px}
.sto-view-who{flex:1;font-size:13px;opacity:.8;text-align:center}
.sto-view-del{background:rgba(200,60,40,.5)!important}
.sto-view-body{flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;padding:0 0 env(safe-area-inset-bottom)}
.sto-view-body img{max-width:100%;max-height:100%;object-fit:contain;touch-action:pinch-zoom}
