/* R317 (أمر المالك 4/12 بعد مقارنة xnine.net): «استخدم نفس الخط اللي بإكس ناين وطبّقه على موقعنا».
   وقياسي: الموقع يسمّي خطّه «Dubai» وملفُّه الحقيقي **Alexandria** — خطٌّ عربيٌّ مفتوح بأوزان 300–700.
   فنُزّل ويُستضاف هنا كما يُستضاف القاهرة وطجوال، بلا طلبٍ خارجي ولا تتبّع. 90 كيلوبايت للثلاثة. */
@font-face{font-family:Alexandria;font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/alexandria-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:Alexandria;font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/alexandria-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:Alexandria;font-style:normal;font-weight:300 700;font-display:swap;src:url('../fonts/alexandria-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* TradeFlow UI — single source for all pages. Edit this file; no per-page stylesheets. */
@layer sstf-glass,sstf-typography,sstf-hotfix,sstf-authoritative,sstf-components,sstf-design;
/* cascade-precedence-contract:start
   Normal declarations follow the declared layer order; later layers win.
   Important declarations reverse named-layer precedence, so hotfix/authoritative
   intentionally outrank components/design when legacy important rules collide.
   Unlayered normal rules remain above layered normal rules. Do not reorder layers
   as a cleanup; touched scopes migrate to semantic tokens instead.
   cascade-precedence-contract:end */
@layer sstf-components {

/* portal components */
:where(.sstf-flow,.sstf-admin) *{box-sizing:border-box}
:where(.sstf-flow,.sstf-admin){margin:0;background:var(--sstf-brand-surface,#fff);color:var(--sstf-brand-on-surface,#111);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}
:where(.sstf-flow,.sstf-admin) main{max-width:1180px;margin:auto;padding:30px}
:where(.sstf-flow,.sstf-admin) header{display:flex;justify-content:space-between;align-items:center;padding:var(--sstf-space-5) 0}
:where(.sstf-flow,.sstf-admin) header h1{margin:var(--sstf-space-2) 0;font-size:var(--sstf-t-page)}
:where(.sstf-flow,.sstf-admin) p,:where(.sstf-flow,.sstf-admin) small,:where(.sstf-flow,.sstf-admin) footer{color:#555;line-height:1.8}
:where(.sstf-flow,.sstf-admin) .logo{max-width:100px;max-height:90px;object-fit:contain;display:block}
:where(.sstf-flow,.sstf-admin) section{border:1px solid #ddd;border-radius:var(--sstf-r-m);padding:28px;margin:22px 0;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) h2{margin-top:0;font-size:var(--sstf-t-page)}
:where(.sstf-flow,.sstf-admin) nav{display:flex;gap:var(--sstf-space-3);border-bottom:1px solid #ddd;padding:var(--sstf-space-4) 0}
:where(.sstf-flow,.sstf-admin) a{color:#111}
:where(.sstf-flow,.sstf-admin) nav a,:where(.sstf-flow,.sstf-admin) button{display:inline-block;padding:13px 20px;border-radius:var(--sstf-r-s);text-decoration:none}
:where(.sstf-flow,.sstf-admin) nav a{border:1px solid #ddd}
:where(.sstf-flow,.sstf-admin) button{background:#111;color:white;border:0;font:inherit;cursor:pointer;margin-top:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}
:where(.sstf-flow,.sstf-admin) label{display:block;font-size:var(--sstf-t-body);font-weight:600;margin:var(--sstf-space-3) 0}
:where(.sstf-flow,.sstf-admin) input,:where(.sstf-flow,.sstf-admin) select,:where(.sstf-flow,.sstf-admin) textarea{display:block;width:100%;min-height:46px;background:white;color:#111;border:1px solid #ccc;border-radius:var(--sstf-r-s);font:inherit;padding:10px;margin-top:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) input:focus,:where(.sstf-flow,.sstf-admin) select:focus,:where(.sstf-flow,.sstf-admin) textarea:focus{outline:2px solid #111;outline-offset:2px}
:where(.sstf-flow,.sstf-admin) .login{max-width:460px;margin:35px auto}
:where(.sstf-flow,.sstf-admin) .table{overflow-x:auto}
:where(.sstf-flow,.sstf-admin) table{width:100%;border-collapse:collapse;white-space:nowrap}
:where(.sstf-flow,.sstf-admin) td,:where(.sstf-flow,.sstf-admin) th{text-align:right;padding:var(--sstf-space-4);border-bottom:1px solid #eee}
:where(.sstf-flow,.sstf-admin) footer{text-align:center;padding:25px}
@media (max-width:650px){:where(.sstf-flow,.sstf-admin) main{padding:15px}
:where(.sstf-flow,.sstf-admin) .fields{grid-template-columns:1fr}
:where(.sstf-flow,.sstf-admin) section{padding:18px}
:where(.sstf-flow,.sstf-admin) header h1{font-size:var(--sstf-t-page)}
}

/* S&S sales index — compact storefront-style order management, matched to the
   approved mobile reference. */
@layer sstf-hotfix {
  body.sstf-flow .ss-sales-create-shell{
    margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-4) 18px!important;border:1px solid #dce7f0!important;border-radius:var(--sstf-r-m)!important;
    background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow .ss-sales-create-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:nowrap!important}
  body.sstf-flow .ss-sales-create-copy{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-width:0!important}
  body.sstf-flow .ss-sales-create-icon{display:grid!important;place-items:center!important;flex:0 0 48px!important;width:48px!important;height:48px!important;border-radius:var(--sstf-r-m)!important;background:#eef6fd!important;color:#1760a8!important;font-size:var(--sstf-t-page)!important;font-weight:400!important}
  body.sstf-flow .ss-sales-create-copy>div{min-width:0!important}
  body.sstf-flow .ss-sales-create-copy h2{margin:0 0 3px!important;color:#102b47!important;font-size:var(--sstf-t-page)!important;font-weight:950!important;white-space:nowrap!important}
  body.sstf-flow .ss-sales-create-copy p{margin:0!important;color:#78899a!important;font-size:var(--sstf-t-small)!important;line-height:1.55!important}
  body.sstf-flow #ss-create-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;
    min-height:48px!important;margin:0!important;padding:10px 17px!important;border:0!important;border-radius:var(--sstf-r-m)!important;
    background:linear-gradient(135deg,#1268ac,#174a87)!important;color:#fff!important;box-shadow:var(--sstf-sh-card)!important;
    font-size:var(--sstf-t-small)!important;font-weight:900!important;white-space:nowrap!important
  }
  body.sstf-flow #ss-create-toggle>span{color:#fff!important;font-size:var(--sstf-t-card)!important;font-weight:400!important}
  body.sstf-flow .ss-sales-create-shell .ss-create-card{margin:14px 0 0!important;padding:14px!important;border:1px solid #dce6ef!important;border-radius:var(--sstf-r-m)!important;background:#f9fbfd!important;box-shadow:none!important}

  body.sstf-flow .ss-sales-list-card{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.sstf-flow .ss-sales-filters{
    display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) 100px!important;align-items:end!important;gap:9px!important;
    margin:0 0 10px!important;padding:var(--sstf-space-3)!important;border:1px solid #dce7f0!important;border-radius:var(--sstf-r-m)!important;
    background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow .ss-sales-filters>label{min-width:0!important;margin:0!important;color:#314a62!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
  body.sstf-flow .ss-sales-filters .ss-sales-search{grid-column:1/-1!important;position:relative!important}
  body.sstf-flow .ss-sales-search::after{content:'⌕';position:absolute!important;inset-inline-end:14px!important;inset-block-start:50%!important;transform:translateY(-50%) rotate(-20deg)!important;color:#345b7f!important;font-size:var(--sstf-t-page)!important;line-height:1!important;pointer-events:none!important}
  body.sstf-flow .ss-sales-filters :where(input,select){height:45px!important;min-height:45px!important;margin:var(--sstf-space-1) 0 0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid #d8e3ec!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;color:#17324d!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow .ss-sales-search input{margin:0!important;padding-inline-end:46px!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow .ss-sales-filters>button{min-width:0!important;min-height:45px!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:#eaf4fd!important;color:#174f86!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important;font-weight:900!important}

  body.sstf-flow .ss-sales-stage-chips{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:9px!important;width:100%!important;
    margin:0 0 var(--sstf-space-3)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important
  }
  body.sstf-flow .ss-sales-stage-chips>a{
    display:grid!important;place-items:center!important;gap:2px!important;min-height:58px!important;margin:0!important;padding:7px var(--sstf-space-1)!important;
    border:1px solid #dfe8ef!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#29445e!important;
    box-shadow:var(--sstf-sh-card)!important;text-align:center!important;text-decoration:none!important
  }
  body.sstf-flow .ss-sales-stage-chips>a span{color:inherit!important;font-size:var(--sstf-t-small)!important;line-height:1.25!important;white-space:nowrap!important}
  body.sstf-flow .ss-sales-stage-chips>a strong{color:inherit!important;font-size:var(--sstf-t-small)!important;font-weight:950!important;line-height:1!important}
  body.sstf-flow .ss-sales-stage-chips>a[aria-current="page"]{border-color:#174f8b!important;background:linear-gradient(135deg,#1766a6,#17457f)!important;color:#fff!important;box-shadow:var(--sstf-sh-card)!important}

  body.sstf-flow .ss-sales-order-list{
    display:grid!important;gap:10px!important;width:100%!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
  }
  body.sstf-flow .ss-sales-order-list>.ss-sale-row{
    display:grid!important;align-items:center!important;gap:10px!important;
    width:100%!important;min-height:112px!important;margin:0!important;padding:var(--sstf-space-3) 14px!important;
    border:1px solid rgba(38,70,104,.08)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;
    box-shadow:var(--sstf-sh-card)!important;cursor:pointer!important
  }
  body.sstf-flow .ss-sale-identity,body.sstf-flow .ss-sale-customer,body.sstf-flow .ss-sale-total{display:grid!important;align-content:center!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  body.sstf-flow .ss-sale-identity>strong{color:#1760a8!important;font-size:var(--sstf-t-card)!important;font-weight:950!important;direction:ltr!important;text-align:start!important}
  body.sstf-flow .ss-sale-identity>small{color:#657486!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow .ss-sale-customer>strong{overflow:hidden!important;color:#111827!important;font-size:var(--sstf-t-body)!important;font-weight:950!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-flow .ss-sale-customer>small{overflow:hidden!important;color:#657486!important;font-size:var(--sstf-t-small)!important;line-height:1.35!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-flow .ss-sale-total{text-align:center!important}
  body.sstf-flow .ss-sale-total>strong{color:#142d46!important;font-size:var(--sstf-t-small)!important;font-weight:950!important;white-space:nowrap!important}
  body.sstf-flow .ss-sale-total>small{color:#657486!important;font-size:var(--sstf-t-small)!important;white-space:nowrap!important}
  @media(max-width:700px){
    body.sstf-flow .ss-sales-create-shell{padding:var(--sstf-space-3)!important;border-radius:var(--sstf-r-m)!important}
    body.sstf-flow .ss-sales-create-head{gap:var(--sstf-space-2)!important}body.sstf-flow .ss-sales-create-copy{gap:7px!important;flex:1 1 auto!important}
    body.sstf-flow .ss-sales-create-icon{flex-basis:39px!important;width:39px!important;height:39px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-page)!important}
    body.sstf-flow .ss-sales-create-copy h2{font-size:var(--sstf-t-card)!important}body.sstf-flow .ss-sales-create-copy p{font-size:var(--sstf-t-small)!important}
    body.sstf-flow #ss-create-toggle{flex:0 1 46%!important;min-height:44px!important;padding:var(--sstf-space-2) 9px!important;border-radius:var(--sstf-r-m)!important;font-size:var(--sstf-t-small)!important;white-space:normal!important;line-height:1.35!important}
    body.sstf-flow .ss-sales-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 82px!important;gap:7px!important;padding:9px!important;border-radius:var(--sstf-r-m)!important}
    body.sstf-flow .ss-sales-filters :where(input,select){height:42px!important;min-height:42px!important;padding:7px var(--sstf-space-2)!important;font-size:var(--sstf-t-small)!important}body.sstf-flow .ss-sales-filters>button{min-height:42px!important;padding:6px!important;font-size:var(--sstf-t-small)!important}
    body.sstf-flow .ss-sales-stage-chips{gap:6px!important}body.sstf-flow .ss-sales-stage-chips>a{min-height:54px!important;padding:6px 2px!important;border-radius:var(--sstf-r-m)!important}body.sstf-flow .ss-sales-stage-chips>a span{font-size:var(--sstf-t-small)!important}body.sstf-flow .ss-sales-stage-chips>a strong{font-size:var(--sstf-t-small)!important}
    body.sstf-flow .ss-sales-order-list{gap:9px!important}
    body.sstf-flow .ss-sales-order-list>.ss-sale-row{border-radius:var(--sstf-r-m)!important}
    body.sstf-flow .ss-sale-identity>strong{font-size:var(--sstf-t-body)!important}body.sstf-flow .ss-sale-identity>small{font-size:var(--sstf-t-small)!important}
    body.sstf-flow .ss-sale-customer{gap:3px!important}body.sstf-flow .ss-sale-customer>strong{font-size:var(--sstf-t-small)!important}body.sstf-flow .ss-sale-customer>small{font-size:var(--sstf-t-small)!important}
    body.sstf-flow .ss-sale-total>strong{font-size:var(--sstf-t-small)!important}body.sstf-flow .ss-sale-total>small{font-size:var(--sstf-t-small)!important}
  }
}

}

/* rc20.14 — verified regression repair: shell height, review flow, recipient
   tables and the multi-image queue. Kept in the highest-priority layer so no
   older !important rule can reintroduce the reported defects. */
@layer sstf-hotfix {
  html{max-width:100%;overflow-x:hidden}
  body.sstf-flow{max-width:100%;overflow-x:clip}
  body.sstf-flow main{
    min-width:0!important;max-width:1440px!important;padding-block-start:0!important;
    padding-block-end:calc(var(--ui-nav-offset,76px) + 18px)!important;overflow:visible!important
  }
  body.sstf-flow main>:where(*),body.sstf-flow section,body.sstf-flow form,body.sstf-flow nav{min-width:0!important;max-width:100%!important}
  body.sstf-flow :where(img,video,canvas,svg){max-width:100%!important}
  body.sstf-flow main>section{margin-block:var(--sstf-space-3)!important;padding:clamp(12px,2vw,18px)!important}
  body.sstf-flow main>:where(.page-heading,.section-heading){margin-block:10px!important}
  body.sstf-flow :where(.inline,.actions,.dialog-actions,.order-actions){max-width:100%!important;flex-wrap:wrap!important}
  body.sstf-flow :where(.fields,.sstf-fields,.account-fields,.pricing-grid,.ss-create-grid){min-width:0!important;max-width:100%!important}
  body.sstf-flow :where(input,select,textarea,button,a){max-width:100%}

  /* The header participates in document flow; no second reserved header gap. */
  body.sstf-flow .app-header{
    position:sticky!important;inset-block-start:0!important;inset-inline:auto!important;width:auto!important;height:auto!important;
    min-height:72px!important;margin:0 calc(clamp(12px,2vw,26px)*-1) 12px!important;padding:9px clamp(12px,2vw,24px)!important;
    flex-wrap:nowrap!important;overflow:hidden!important;background:#fff!important
  }
  body.sstf-flow .app-header>*{min-width:0!important}
  body.sstf-flow .app-header .app-tools{display:flex!important;flex:0 0 auto!important;min-width:0!important;margin:0!important}
  body.sstf-flow .app-header .app-tools>button{margin:0!important}
  body.sstf-flow .app-header .brand-lockup{flex:1 1 auto!important;max-width:max-content!important;margin-inline:auto!important;overflow:hidden!important}
  body.sstf-flow .app-header .brand-lockup>div{min-width:0!important;overflow:hidden!important}
  body.sstf-flow .app-header :where(.company-name,.company-name-ar){display:block!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-flow .app-header .header-context{display:flex!important;align-items:center!important;gap:6px!important;flex:0 1 auto!important;max-width:34%!important;min-width:0!important;margin:0!important}
  body.sstf-flow .app-header .header-context>strong{overflow:hidden!important;max-width:120px!important;color:var(--tf-ink)!important;font-size:var(--sstf-t-small)!important;white-space:nowrap!important;text-overflow:ellipsis!important}

  /* Text inside a colored control always inherits the control contrast color. */
  body.sstf-flow :where(button,.button,.flow-button,input[type=submit],[aria-current=page]) :where(span,strong,b,small,svg),
  .sstf-admin :where(button,.button,input[type=submit]) :where(span,strong,b,small,svg){color:var(--control-content-color,inherit)!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>:where(a,button){
    min-height:58px!important;margin:0!important;padding:var(--sstf-space-1) 3px!important;border:0!important;border-radius:var(--sstf-r-m)!important;
    background:transparent!important;color:#33485c!important;box-shadow:none!important
  }
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>[aria-current]{border-block-start:3px solid var(--tf-blue)!important;background:var(--tf-blue-soft)!important;color:var(--tf-blue-deep)!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>:where(a,button):not([aria-current]):hover{background:#f6f9fc!important}
  /* R149 (أمر المالك 9/11): بطل الشريط — «إنشاء طلب» دائرة أكبر مرفوعة قليلًا بلونها، والباقي حولها.
     الرفع بـtranslate لا بهامش، فلا يزيد ارتفاع الشريط ولا يقصّ اسمه. */
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>a.nav-hero{
    background:linear-gradient(180deg,#3d5afe,#2f3fd6)!important;color:#fff!important;transform:translateY(-8px)!important;
    border-radius:var(--sstf-r-m)!important;box-shadow:0 8px 18px rgba(47,63,214,.34)!important;
    padding:6px 8px!important;overflow:visible!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>a.nav-hero>span{white-space:nowrap!important;overflow:visible!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>a.nav-hero :where(span,svg,img){color:#fff!important;stroke:#fff}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>a.nav-hero[aria-current]{border-block-start:0!important}
  /* R149 (أمر المالك 9/11): المساعد في هيدر «المزيد» على اليسار — نبضة ثلاث مرات ثم تسكن، وتحترم إطفاء الحركة في الجهاز. */
  .drawer-heading__tools{display:flex;align-items:center;gap:var(--sstf-space-2)}
  /* R149: صفّ المساعد داخل «المزيد» — بهيئة صفوف القائمة نفسها */
  .app-drawer__assistant{display:block;margin:0 0 6px}
  .app-drawer__assistant .sstf-assistant-bar-item{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;
    min-height:52px!important;padding:8px 10px!important;border-radius:var(--sstf-r-m)!important;background:#f3f7fc!important;color:#17314f!important;box-shadow:none!important}
  .app-drawer__assistant .sstf-assistant-bar-item :is(img,svg){width:30px!important;height:30px!important}
  .drawer-heading__tools .sstf-assistant-bar-item{min-height:44px!important;padding:6px 10px!important;border-radius:var(--sstf-r-m)!important}
  @keyframes sstf-assist-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
  .drawer-heading__tools .sstf-assistant-bar-item :where(img,svg){animation:sstf-assist-pulse 1.1s ease-in-out 3}
  @media(prefers-reduced-motion:reduce){.drawer-heading__tools .sstf-assistant-bar-item :where(img,svg){animation:none}}

  /* Every sidebar/drawer uses the same compact row language and stays inside
     the viewport on both directions. */
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer){max-width:100vw!important;background:#fff!important;color:var(--tf-ink)!important}
  body.sstf-flow .app-drawer{width:min(88vw,390px)!important;padding:calc(14px + env(safe-area-inset-top,0px)) 14px calc(14px + env(safe-area-inset-bottom,0px))!important;overflow-x:hidden!important;overflow-y:auto!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(nav,.nav-group,.drawer-group){width:100%!important;min-width:0!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button),body.sstf-flow .store-sidebar>a{
    width:100%!important;min-width:0!important;min-height:54px!important;margin:0!important;padding:var(--sstf-space-2) 11px!important;
    border:1px solid rgba(35,68,103,.08)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:var(--tf-ink)!important;
    box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-body)!important;overflow:hidden!important
  }
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button)>span{min-width:0!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button)[aria-current],body.sstf-flow .store-sidebar>a[aria-current]{background:linear-gradient(135deg,#f5f9fe,#eaf4fd)!important;color:var(--tf-blue-deep)!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .sidebar-identity{width:100%!important;min-width:0!important;margin:0 0 var(--sstf-space-3)!important;padding:6px var(--sstf-space-1) var(--sstf-space-3)!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .sidebar-brand-copy{min-width:0!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .sidebar-brand-copy>:where(strong,small,span){max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-flow.staff-order-view .staff-order-meta-card{padding:var(--sstf-space-3)!important;overflow:hidden!important}
  body.sstf-flow.staff-order-view .staff-order-meta-card .customer-start-content{padding:0!important}
  
  
  
  
  
  
  
  
  
  
  body.sstf-flow.staff-order-view #work-content{display:grid!important;gap:10px!important}
  body.sstf-flow.staff-order-view #work-content>:where(section,form,div){max-width:100%!important;margin-block:0!important}
  body.sstf-flow.staff-order-view .review-panel{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  body.sstf-flow.staff-order-view .review-panel>h2{margin:0 0 10px!important}
  body.sstf-flow.staff-order-view .review-form{display:grid!important;gap:10px!important}
  body.sstf-flow.staff-order-view .review-form textarea{min-height:62px!important}
body.sstf-flow.sstf-customer #recipient-section{min-width:0!important;max-width:100%!important;overflow:hidden!important}
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table-wrap{width:100%!important;border:1px solid var(--tf-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:none!important}
  body.sstf-flow.sstf-customer #recipient-section table.recipient-products-table,
  body.sstf-flow.sstf-customer table.order-review-products-table{
    display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;
    border:0!important;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important;white-space:normal!important
  }
  
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table :where(th,td){display:table-cell!important;min-width:0!important;padding:7px 6px!important;font-size:var(--sstf-t-small)!important;overflow:hidden!important;vertical-align:middle!important}
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table :where(th,td):nth-child(1){width:58px!important;text-align:center!important}
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table :where(th,td):nth-child(2){width:30%!important}
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table :where(th,td):nth-child(3){width:auto!important}
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table :where(th,td):nth-child(4){width:42px!important;text-align:center!important}
  
  body.sstf-flow.sstf-customer #recipient-section .recipient-products-table td:nth-child(2)>:where(b,small){display:block!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-flow.sstf-customer #recipient-section .recipient-size-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-1)!important;width:100%!important;max-height:92px!important;overflow:hidden!important}

  /* Batch images remain directly below their action and wrap instead of hiding off-screen. */
  body.sstf-flow.sstf-customer .batch-gallery{width:100%!important;margin:var(--sstf-space-2) 0 0!important;padding:10px!important;border:1px solid var(--tf-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(.country-option,.chat-overlay-thread){width:100%!important;justify-content:flex-start!important;text-align:start!important}
  body.sstf-flow :where(.inventory-sheet-close,.ss-modal-close){display:grid!important;place-items:center!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border-radius:50%!important;color:var(--tf-blue-deep)!important}
  
  body.sstf-flow .ss-order-product-card{width:100%!important;margin:0!important;text-align:start!important}

  /* Default data surfaces never manufacture width. Only explicit fallback
     tables with genuinely many columns retain horizontal scrolling. */
  body.sstf-flow :where(.table,.product-table-scroll,.recipient-products-table-wrap,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.account-report-table,.sstf-table-scroll):not(.is-fallback){max-width:100%!important;overflow-x:clip!important}
  body.sstf-flow :where(.table,.product-table-scroll,.recipient-products-table-wrap,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.account-report-table,.sstf-table-scroll):not(.is-fallback)>table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
  body.sstf-flow :where(.table,.product-table-scroll,.recipient-products-table-wrap,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.account-report-table,.sstf-table-scroll).is-fallback{overflow-x:auto!important;overscroll-behavior-inline:contain!important}
  body.sstf-flow table :where(th,td)>:where(input,select,textarea,button,.flow-button){min-width:0!important;max-width:100%!important}
  body.sstf-flow :where(dialog.app-sheet,dialog.account-action-dialog,dialog.finance-form-sheet){font-family:var(--tf-font)!important;background:#fff!important;color:var(--tf-ink)!important}
  body.sstf-flow :where(dialog.app-sheet,dialog.account-action-dialog,dialog.finance-form-sheet) :where(h2,h3,strong){margin-block:0!important}
  body.sstf-flow .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

  /* Wizard pages share one calm sheet; optional fields are readable without
     dark blocks, and validation remains beside the field that caused it. */
  body.sstf-flow dialog.product-wizard{background:#fff!important;color:var(--tf-ink)!important}
  body.sstf-flow .product-wizard :where(.wizard-body,[data-question],.product-summary,.upload-box){min-width:0!important;max-width:100%!important;background:#fff!important;color:var(--tf-ink)!important}
  body.sstf-flow :is(.product-wizard,.inventory-quick-editor) :where(.choice,.size-cell,.brand-picker,.upload-box){color:var(--tf-ink)!important;border-color:var(--tf-line)!important;background:#fff!important;box-shadow:none!important}
  body.sstf-flow .product-wizard :where(.wizard-foot,.head) button{margin:0!important}
  body.sstf-flow .product-wizard .wizard-foot :where(#next-step,#finish-product){background:linear-gradient(135deg,var(--tf-blue),var(--tf-blue-deep))!important;color:#fff!important}
  body.sstf-flow .product-wizard .wizard-foot #previous-step{background:#fff!important;color:var(--tf-blue-deep)!important;border-color:#d8e3ed!important}

  @media(max-width:700px){
    body.sstf-flow main{padding-inline:9px!important}
    body.sstf-flow main>section{margin-block:9px!important;padding:11px!important}
    body.sstf-flow .app-header{min-height:68px!important;margin-inline:-9px!important;padding:var(--sstf-space-2) 9px!important;gap:6px!important}
    body.sstf-flow .app-header .brand-lockup .logo{width:42px!important;height:42px!important}
    body.sstf-flow .app-header .company-name{font-size:var(--sstf-t-body)!important}.sstf-flow .app-header .company-name-ar{font-size:var(--sstf-t-small)!important}
    body.sstf-flow .app-header :where(.app-back,.profile-link,.chat-launch,.icon-button){flex-basis:42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
    body.sstf-flow .app-header .header-context{max-width:30%!important}.sstf-flow .app-header .header-context>strong{display:none!important}
    body.sstf-flow .app-header :where(.app-tools .nav-icon,.chat-launch .small-icon){width:32px!important;height:32px!important;max-width:80%!important;max-height:80%!important;object-fit:contain!important}
    
    
    
  }
  @media(max-width:390px){}
}

/* rc20.13 — complete TradeFlow identity pass.
   This is the final rule-set in the first cascade layer so older high-specificity
   and !important declarations cannot displace the approved visual system. */
@layer sstf-authoritative {
  :where(body.sstf-flow,.sstf-admin,.sstf-admin-orders){
    --tf-blue:var(--sstf-brand-primary,#174a87);--tf-blue-deep:var(--sstf-brand-primary-deep,#123f73);--tf-blue-soft:var(--sstf-brand-primary-soft,#edf4fb);
    --tf-mint:#49cda7;--tf-mint-soft:#eafaf5;--tf-orange:#ff9868;--tf-orange-soft:#fff2e9;
    --tf-red:#cf4050;--tf-red-soft:#fff0f2;--tf-green:#218957;--tf-green-soft:#eaf8f0;
    --tf-ink:#14283d;--tf-muted:var(--sstf-text-muted,#5f6d7c);--tf-line:#dfe7ef;--tf-canvas:#f8fafc;--tf-white:var(--sstf-brand-surface,#fff);
    --tf-font:Alexandria,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;
    color:var(--tf-ink)!important;background:var(--tf-canvas)!important;font-family:var(--tf-font)!important;font-size:var(--sstf-t-body)!important;line-height:1.6!important
  }
  body.sstf-flow *,.sstf-admin *,.sstf-admin-orders *{box-sizing:border-box}
  body.sstf-flow [hidden],.sstf-admin [hidden],.sstf-admin-orders [hidden]{display:none!important}
  body.sstf-flow :where(main,#app-content,.wrap),.sstf-admin,.sstf-admin-orders{font-family:var(--tf-font)!important}
  body.sstf-flow main{width:min(100%,1440px)!important;margin-inline:auto!important;padding-inline:clamp(12px,2vw,26px)!important}
  body.sstf-flow :where(h1,h2,h3,h4,strong,b),.sstf-admin :where(h1,h2,h3,h4,strong,b),.sstf-admin-orders :where(h1,h2,h3,h4,strong,b){color:var(--tf-ink)!important;font-family:inherit!important}
  body.sstf-flow :where(p,small,.hint,.muted),.sstf-admin :where(p,small,.hint,.muted),.sstf-admin-orders :where(p,small,.hint,.muted){color:var(--tf-muted)!important}
  body.sstf-flow :where(.page-heading,.section-heading,.section-simple-head){gap:10px!important;margin-block:14px!important}
  body.sstf-flow .page-heading h1{margin:0!important;color:var(--tf-ink)!important;font-size:clamp(24px,4vw,36px)!important;font-weight:950!important;line-height:1.25!important}

  /* Shared header and both navigation systems. */
  body.sstf-flow .app-header{position:sticky!important;z-index:900!important;inset-block-start:0!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:82px!important;margin-inline:calc(clamp(12px,2vw,26px)*-1)!important;padding:12px clamp(14px,2.5vw,28px)!important;border-block-end:1px solid var(--tf-line)!important;background:rgba(255,255,255,.97)!important;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  body.sstf-flow .brand-lockup{display:flex!important;align-items:center!important;gap:11px!important;margin-inline:auto!important;text-align:start!important}
  body.sstf-flow .brand-lockup .logo{width:52px!important;height:52px!important;border:1px solid #e4eaf0!important;border-radius:50%!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;object-fit:cover!important}
  body.sstf-flow .company-name{color:#101923!important;font-size:var(--sstf-t-card)!important;font-weight:950!important}.sstf-flow .company-name-ar{color:#526375!important;font-size:var(--sstf-t-small)!important;font-weight:700!important}
  body.sstf-flow :where(.app-back,.profile-link,.chat-launch,.icon-button){--control-padding:0;display:grid!important;place-items:center!important;flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border:1px solid var(--tf-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:var(--tf-blue)!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav){position:fixed!important;z-index:850!important;inset-inline:0!important;inset-block-end:0!important;display:grid!important;grid-auto-flow:column!important;grid-auto-columns:1fr!important;align-items:stretch!important;min-height:76px!important;padding:7px max(8px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-right))!important;border-block-start:1px solid var(--tf-line)!important;background:rgba(255,255,255,.98)!important;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:none!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>:where(a,button){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:0!important;min-height:60px!important;margin:0!important;padding:5px var(--sstf-space-1)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:transparent!important;color:#3a4c5e!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;text-decoration:none!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav)>[aria-current]{border-block-start:3px solid var(--tf-blue)!important;background:var(--tf-blue-soft)!important;color:var(--tf-blue-deep)!important}
  body.sstf-flow :where(.mobile-nav,.store-bottom-nav) .nav-icon,body.sstf-flow :where(.mobile-nav,.store-bottom-nav) .small-icon{width:29px!important;height:29px!important;padding:2px!important}
  body.sstf-flow .app-drawer{inset-block:0!important;inset-inline-start:0!important;inset-inline-end:auto!important;width:min(82vw,410px)!important;height:100dvh!important;padding:22px 18px!important;border:0!important;border-inline-end:1px solid var(--tf-line)!important;border-radius:0 var(--sstf-r-l) var(--sstf-r-l) 0!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  [dir=rtl] body.sstf-flow .app-drawer,body.sstf-flow:dir(rtl) .app-drawer{border-radius:var(--sstf-r-l) 0 0 var(--sstf-r-l)!important}
  body.sstf-flow .app-drawer .drawer-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 var(--sstf-space-4)!important;padding:0!important;border:0!important}.sstf-flow .app-drawer .drawer-heading strong{font-size:var(--sstf-t-page)!important}
  body.sstf-flow .sidebar-identity{display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;gap:var(--sstf-space-3)!important;align-items:center!important;margin:0 0 18px!important;padding:10px var(--sstf-space-1) 15px!important;border-block-end:1px solid var(--tf-line)!important}.sstf-flow .sidebar-logo{width:62px!important;height:62px!important;border-radius:50%!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow .sidebar-brand-copy{display:grid!important;gap:2px!important}.sstf-flow .sidebar-brand-copy strong{font-size:var(--sstf-t-card)!important}.sstf-flow .sidebar-brand-copy small{font-size:var(--sstf-t-small)!important}.sstf-flow .sidebar-brand-copy span{justify-self:start!important;padding:3px 10px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--tf-blue-soft)!important;color:var(--tf-blue)!important;font-size:var(--sstf-t-small)!important;font-weight:900!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(nav,.nav-group,.drawer-group){display:grid!important;gap:9px!important;background:transparent!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button),body.sstf-flow .store-sidebar>a{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:58px!important;margin:0!important;padding:9px var(--sstf-space-3)!important;border:1px solid rgba(36,69,104,.075)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:var(--tf-ink)!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-body)!important;font-weight:850!important;text-align:start!important;text-decoration:none!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button)[aria-current],body.sstf-flow .store-sidebar>a[aria-current]{border-color:#d4e4f2!important;background:linear-gradient(135deg,#f4f9ff,#e9f3fd)!important;color:var(--tf-blue-deep)!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button)::after,body.sstf-flow .store-sidebar>a::after{content:'‹'!important;margin-inline-start:auto!important;color:#788898!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
  /* PHASE4 E10: in LTR the item arrow points forward (›); RTL keeps ‹ */
  body.sstf-flow:dir(ltr) :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button)::after,body.sstf-flow:dir(ltr) .store-sidebar>a::after{content:'›'!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .nav-icon,body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .small-icon{flex:0 0 39px!important;width:39px!important;height:39px!important;padding:7px!important;border-radius:50%!important;background:radial-gradient(circle at 34% 27%,#fff 0 8%,#87c7f5 27%,#4a90dd 65%,#645bc8 100%)!important;color:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(a,button):nth-child(3n+2) :where(.nav-icon,.small-icon){background:radial-gradient(circle at 34% 27%,#fff 0 8%,#8de8cf 28%,#49cda7 65%,#35a68c 100%)!important}
  /* Q-D5 (owner): the sidebar toggle is green by its own rule, not by icon order. Same shade as above. */
  body.sstf-flow .app-sidebar>.nav-collapse :where(.nav-icon,.small-icon){background:radial-gradient(circle at 34% 27%,#fff 0 8%,#8de8cf 28%,#49cda7 65%,#35a68c 100%)!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(a,button):nth-child(3n) :where(.nav-icon,.small-icon){background:radial-gradient(circle at 34% 27%,#fff 0 8%,#ffd094 28%,#ff9868 66%,#ef6670 100%)!important}
body.sstf-flow :where(button:not([hidden]),.button:not([hidden]),.flow-button:not([hidden]),input[type=submit]:not([hidden]),input[type=button]:not([hidden])):where(:not(.supplier-product-open,.sstf-card-button)),.sstf-admin-orders :where(button:not([hidden]),.button:not([hidden]),input[type=submit]:not([hidden])){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-height:var(--control-height,44px)!important;padding:var(--control-padding,8px 16px)!important;border:1px solid transparent!important;border-radius:var(--sstf-r-m)!important;background:linear-gradient(135deg,var(--tf-blue),var(--tf-blue-deep))!important;color:#fff!important;font-family:var(--tf-font)!important;font-size:var(--control-font-size,var(--sstf-t-body))!important;font-weight:var(--sstf-fw-button)!important;line-height:1.35!important;text-decoration:none!important;box-shadow:var(--sstf-sh-card)!important;cursor:pointer!important}
body.sstf-flow :where(button,.button,.flow-button,input[type=submit],input[type=button]):where(.secondary,.neutral,[data-tone=neutral]){border-color:#d8e3ed!important;background:#fff!important;color:var(--tf-blue-deep)!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(button,.button,.flow-button):where(.warning,[data-tone=warning],.customer-access-renew){border-color:#ffd4bb!important;background:var(--warning-fill,linear-gradient(135deg,#ffad78,var(--tf-orange)))!important;color:#6b2d0b!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(button,.button,.flow-button):disabled{opacity:.48!important;cursor:not-allowed!important;box-shadow:none!important}
  body.sstf-flow :where(.compact-button,.account-mini-action){min-height:36px!important;padding:6px 11px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow :where(label,.fields,.sstf-fields,.account-fields,.finance-form),.sstf-admin :where(label,.sstf-fields){font-family:inherit!important}
  body.sstf-flow :where(input:not([type=checkbox]):not([type=radio]),select,textarea),.sstf-admin :where(input:not([type=checkbox]):not([type=radio]),select,textarea),.sstf-admin-orders :where(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%!important;min-height:46px!important;padding:var(--field-padding,10px 12px)!important;border:1px solid #d8e2eb!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:var(--tf-ink)!important;font:inherit!important;box-shadow:inset 0 1px 2px rgba(25,52,80,.025)!important}
  body.sstf-flow textarea,.sstf-admin textarea,.sstf-admin-orders textarea{min-height:100px!important;resize:vertical!important}
  body.sstf-flow :where(input,select,textarea):focus,.sstf-admin :where(input,select,textarea):focus,.sstf-admin-orders :where(input,select,textarea):focus{border-color:#78a5cf!important;outline:0!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(input[type=checkbox],input[type=radio]){accent-color:var(--tf-blue)!important;width:19px!important;height:19px!important}
.sstf-admin :where(.sstf-panel,.sstf-settings-form){border:1px solid rgba(35,68,103,.085)!important;border-radius:var(--sstf-r-l)!important;background:#fff!important;color:var(--tf-ink)!important;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  body.sstf-flow :where([class$="-card"],[class*="-card "]){box-sizing:border-box!important;min-width:0!important;max-width:100%!important;border-color:rgba(35,68,103,.085)!important;box-shadow:var(--sstf-sh-card)!important;font-family:inherit!important} body.sstf-flow :where([class$="-card"],[class*="-card "])>:where(div,section,article,header,footer,form,span){min-width:0;max-width:100%}
  body.sstf-flow .task-card :where(.nav-icon,.small-icon),body.sstf-flow .sstf-metrics>article::before{filter:saturate(.95)!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(.task-card,.finance-home-card,.sstf-metrics>article):nth-child(3n+2) :where(.nav-icon,.small-icon){background:var(--tf-mint-soft)!important;color:#1ca57e!important}
  body.sstf-flow :where(.task-card,.finance-home-card,.sstf-metrics>article):nth-child(3n) :where(.nav-icon,.small-icon){background:var(--tf-orange-soft)!important;color:#ea7445!important}
.sstf-admin-orders .sstf-admin-order-list>.sstf-admin-order-row{width:100%!important;min-height:106px!important;margin:0!important;padding:14px var(--sstf-space-4)!important;border:1px solid rgba(35,68,103,.08)!important;border-radius:var(--sstf-r-l)!important;background:#fff!important;color:var(--tf-ink)!important;box-shadow:var(--sstf-sh-card)!important;text-decoration:none!important}
body.sstf-flow .warehouse-order-row{position:relative!important;overflow:visible!important}
  body.sstf-flow #orders .order-line-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:var(--sstf-space-1) var(--sstf-space-3)!important;align-items:center!important}.sstf-flow #orders .order-line-main>strong{color:var(--tf-blue)!important;font-size:var(--sstf-t-card)!important}.sstf-flow #orders .order-line-main>span:not(.state-badge){color:var(--tf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:900!important}.sstf-flow #orders .order-line-main>small{color:var(--tf-muted)!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow :where(.status-pill,.state-badge,.account-status){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:28px!important;padding:var(--sstf-space-1) 10px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--tf-blue-soft)!important;color:var(--tf-blue-deep)!important;font-size:var(--sstf-t-small)!important;font-weight:900!important;white-space:nowrap!important}
  body.sstf-flow :where(.status-pill,.state-badge,.account-status)[data-status*=cancel],body.sstf-flow :where(.status-pill,.state-badge)[class*=cancel]{background:var(--tf-red-soft)!important;color:#b72e42!important}
  body.sstf-flow :where(.status-pill,.state-badge,.account-status)[data-status*=ready],body.sstf-flow :where(.status-pill,.state-badge,.account-status)[data-status*=complete],body.sstf-flow :where(.status-pill,.state-badge,.account-status)[data-status*=approved]{background:var(--tf-green-soft)!important;color:var(--tf-green)!important}

  /* True tables: compact readable grid first; horizontal scrolling is fallback only. */
  body.sstf-flow :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table,.table),.sstf-admin :where(.sstf-table-scroll,.table){max-width:100%!important;overflow-x:clip!important;overflow-y:visible!important;border:1px solid var(--tf-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow :where(.sstf-table-scroll.is-fallback,.supplier-table-wrap:has(table[data-sstf-columns="8"]),.supplier-table-wrap:has(table[data-sstf-columns="9"]),.supplier-table-wrap:has(table[data-sstf-columns="10"]),.supplier-table-wrap:has(table[data-sstf-columns="11"]),.supplier-review-wrap:has(table[data-sstf-columns="8"]),.account-report-table:has(table[data-sstf-columns="8"])){overflow-x:auto!important;overscroll-behavior-inline:contain!important}
  body.sstf-flow :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table,.table)>table,body.sstf-flow table.account-table,.sstf-admin :where(.sstf-table-scroll,.table)>table{display:table!important;width:100%!important;min-width:0!important;margin:0!important;border:0!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;box-shadow:none!important;table-layout:fixed!important}
  body.sstf-flow :where(table)>:where(thead)>tr>th,.sstf-admin table>thead>tr>th{padding:11px 9px!important;border:0!important;border-block-end:1px solid #cedbe7!important;border-inline-end:1px solid var(--tf-line)!important;background:linear-gradient(180deg,#f5f9fd,#eaf3fb)!important;color:var(--tf-blue-deep)!important;font-size:var(--sstf-t-small)!important;font-weight:950!important;text-align:start!important;white-space:normal!important;vertical-align:middle!important}
  body.sstf-flow :where(table)>:where(tbody,tfoot)>tr>:where(td,th),.sstf-admin table>:where(tbody,tfoot)>tr>:where(td,th){padding:10px 9px!important;border:0!important;border-block-end:1px solid #e8edf2!important;border-inline-end:1px solid #e8edf2!important;background:#fff!important;color:#294055!important;font-size:var(--sstf-t-small)!important;white-space:normal!important;vertical-align:middle!important}
  body.sstf-flow table tr>*:last-child,.sstf-admin table tr>*:last-child{border-inline-end:0!important}body.sstf-flow table tbody tr:last-child>*{border-block-end:0!important}
  body.sstf-flow :where(.recipient-size-grid,.product-size-grid){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;width:100%!important;align-items:stretch!important}
  body.sstf-flow .size-grid-more{width:100%!important;min-height:32px!important;margin-top:6px!important;padding:5px var(--sstf-space-2)!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow .recipient-products-table th:nth-child(1){width:14%}.sstf-flow .recipient-products-table th:nth-child(2){width:31%}.sstf-flow .recipient-products-table th:nth-child(3){width:43%}.sstf-flow .recipient-products-table th:nth-child(4){width:12%}
  body.sstf-flow dialog.product-wizard{z-index:100001!important;border-radius:var(--sstf-r-l)!important}
  body.sstf-flow .product-wizard :where(.head,.wizard-body,.wizard-foot){background:#fff!important}.sstf-flow .product-wizard .head{border-block-end:1px solid var(--tf-line)!important;background:linear-gradient(180deg,#fff,#f7fbff)!important}.sstf-flow .product-wizard .wizard-foot{border-block-start:1px solid var(--tf-line)!important;background:#fff!important}.sstf-flow .product-wizard .progress{background:#e7eef5!important}.sstf-flow .product-wizard .progress>span{background:linear-gradient(90deg,var(--tf-blue),#5d68c9)!important}.sstf-flow .product-wizard .choice{border:1px solid var(--tf-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow .product-wizard .choice.on{border-color:#94b7d7!important;background:var(--tf-blue-soft)!important}
  body.sstf-flow #sstf-error-banner{inset:auto 12px calc(var(--ui-nav-offset,76px) + 10px) 12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:var(--sstf-space-2)!important;align-items:center!important;max-width:760px!important;margin-inline:auto!important;padding:var(--sstf-space-3)!important;border:1px solid #efc6cc!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#a92d40!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow #sstf-error-banner[hidden]{display:none!important}
  body.sstf-flow #sstf-calculator{--ss-modal-max:410px!important;border-radius:var(--sstf-r-l)!important}.sstf-flow #sstf-calculator [data-calc-display]{border:1px solid var(--tf-line)!important;border-radius:var(--sstf-r-m)!important;background:#f5f9fd!important;color:var(--tf-blue-deep)!important}.sstf-flow #sstf-calculator [data-calc-key]{border:1px solid #dfe7ef!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:var(--tf-ink)!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow #sstf-calculator [data-calc-key="="],.sstf-flow #sstf-calculator [data-calc-key="+"]{background:linear-gradient(135deg,var(--tf-blue),var(--tf-blue-deep))!important;color:#fff!important}

  @media(min-width:961px){
    /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow main:has(:where(.app-sidebar,.store-sidebar)){padding-inline-start:calc(250px + clamp(12px,2vw,26px))!important}.sstf-flow :where(.app-sidebar,.store-sidebar){position:fixed!important;z-index:700!important;inset-block:0!important;inset-inline-start:0!important;display:grid!important;align-content:start!important;width:250px!important;height:100dvh!important;padding:18px 14px!important;overflow-y:auto!important;border-inline-end:1px solid var(--tf-line)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow :where(.app-sidebar,.store-sidebar) .sidebar-identity{grid-template-columns:48px minmax(0,1fr)!important}.sstf-flow :where(.app-sidebar,.store-sidebar) .sidebar-logo{width:46px!important;height:46px!important}.sstf-flow :where(.app-sidebar,.store-sidebar) :where(nav,.nav-group){gap:7px!important}.sstf-flow :where(.app-sidebar,.store-sidebar) :where(a,button){min-height:49px!important;padding:7px 9px!important;border-radius:var(--sstf-r-m)!important;font-size:var(--sstf-t-small)!important}.sstf-flow :where(.app-sidebar,.store-sidebar) .nav-icon,.sstf-flow :where(.app-sidebar,.store-sidebar) .small-icon{width:34px!important;height:34px!important}body.sstf-flow :where(.mobile-nav,.store-bottom-nav){display:none!important}
  }
  @media(max-width:700px){
    body.sstf-flow{font-size:var(--sstf-t-body)!important;padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
    body.sstf-flow main{padding-inline:10px!important}.sstf-flow .app-header{min-height:76px!important;margin-inline:-10px!important;padding:10px var(--sstf-space-3)!important}.sstf-flow .brand-lockup .logo{width:46px!important;height:46px!important}.sstf-flow .company-name{font-size:var(--sstf-t-card)!important}.sstf-flow :where(.app-back,.profile-link,.chat-launch,.icon-button){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
.sstf-admin-orders .sstf-admin-order-list>.sstf-admin-order-row{min-height:100px!important;padding:var(--sstf-space-3)!important;border-radius:var(--sstf-r-m)!important}
    body.sstf-flow :where(.product-table-fold,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.account-report-table,.table)>table{min-width:0!important;font-size:var(--sstf-t-small)!important}.sstf-flow table th,.sstf-flow table td{padding:var(--sstf-space-2) 6px!important;font-size:var(--sstf-t-small)!important}.sstf-flow :where(.recipient-size-grid,.product-size-grid){gap:var(--sstf-space-1)!important}body.sstf-flow .supplier-review-table{min-width:860px!important}
    body.sstf-flow #sstf-error-banner{grid-template-columns:1fr 1fr!important}.sstf-flow #sstf-error-banner>span{grid-column:1/-1!important}
  }
  @media print{body.sstf-flow{background:#fff!important}.sstf-flow :where(.app-header,.app-sidebar,.mobile-nav,.store-bottom-nav,.app-drawer){display:none!important}}
}
@layer sstf-components {
:where(.sstf-flow,.sstf-admin){background:#fff;color-scheme:light}
:where(.sstf-flow,.sstf-admin),:where(.sstf-flow,.sstf-admin) main,:where(.sstf-flow,.sstf-admin) section,:where(.sstf-flow,.sstf-admin) .fields{background:#fff}
:where(.sstf-flow,.sstf-admin) section{box-shadow:none}
:where(.sstf-flow,.sstf-admin) header .company-name{display:block;color:#000;font-weight:800;font-size:var(--sstf-t-page);line-height:1.5;margin:10px 0 0}
:where(.sstf-flow,.sstf-admin) header .company-name-ar{font-size:var(--sstf-t-card);margin:5px 0 18px}
:where(.sstf-flow,.sstf-admin) header .logo{height:auto}
/* R159: عنوان مجموعة القائمة (optgroup) داخل المنتقي المركزي — ليعرف المستخدم أن الاسم عهدة أم سلفة راتب */

:where(.sstf-flow,.sstf-admin) [hidden]{display:none}
:where(.sstf-flow,.sstf-admin) nav a[aria-current="page"]{background:#111;color:#fff;border-color:#111}
:where(.sstf-flow,.sstf-admin) .credential-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
:where(.sstf-flow,.sstf-admin) .credential-row input,:where(.sstf-flow,.sstf-admin) .credential-row button{margin:0}
:where(.sstf-flow,.sstf-admin) .credential-row input{min-width:0}
:where(.sstf-flow,.sstf-admin) .credential-row button{padding:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .credential-field label{margin-bottom:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .copy-status{display:block;min-height:24px;color:#111}
:where(.sstf-flow,.sstf-admin) #phone-hint{display:block;font-weight:400;font-size:var(--sstf-t-small)}

/* customer components */

.sstf-customer main{max-width:1320px}

:where(.sstf-flow,.sstf-admin) .eyebrow{font-size:var(--sstf-t-small);font-weight:800;letter-spacing:.04em;color:var(--mut)}

:where(.sstf-flow,.sstf-admin) .order-meta{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:var(--sstf-r-m);padding:18px;gap:18px}
:where(.sstf-flow,.sstf-admin) .order-meta strong,:where(.sstf-flow,.sstf-admin) .order-meta small{display:block}
:where(.sstf-flow,.sstf-admin) .order-meta strong{font-size:var(--sstf-t-body);margin-top:6px}
:where(.sstf-flow,.sstf-admin) .section-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-4);margin:26px 0 var(--sstf-space-3)}

:where(.sstf-flow,.sstf-admin) #save-state{font-size:var(--sstf-t-small);white-space:nowrap;color:#555}
:where(.sstf-flow,.sstf-admin) #add-zone{margin-bottom:20px}
:where(.sstf-flow,.sstf-admin) .wizard{padding:0;overflow:clip;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .wizard .head{z-index:5;background:rgba(255,255,255,.85);backdrop-filter:blur(16px) saturate(1.4);border-bottom:1px solid var(--line);padding:18px 26px;box-shadow:var(--sstf-sh-card)}

:where(.sstf-flow,.sstf-admin) .track{height:3px;border-radius:var(--sstf-radius-pill);background:var(--line);flex:1;overflow:hidden}
:where(.sstf-flow,.sstf-admin) .fill{height:100%;background:var(--ink);transition:width .35s var(--ease)}
:where(.sstf-flow,.sstf-admin) .pct{font-size:var(--sstf-t-small);font-weight:800;color:var(--mut)}
:where(.sstf-flow,.sstf-admin) .wizard-body{padding:30px;min-height:320px}
:where(.sstf-flow,.sstf-admin) .wizard-body>div{animation:stepIn .22s var(--ease)}
@keyframes stepIn{from{opacity:0;transform:translateY(8px)}
to{opacity:1;transform:none}
}
:where(.sstf-flow,.sstf-admin) .title{font-family:Georgia,Tahoma,serif;font-size:var(--sstf-t-page);font-weight:600;line-height:1.3;margin:7px 0}
:where(.sstf-flow,.sstf-admin) .sub{margin:5px 0 22px;color:var(--mut)}
:where(.sstf-flow,.sstf-admin) .choices{display:grid;gap:11px;margin:20px 0}
:where(.sstf-flow,.sstf-admin) .choices.c3{grid-template-columns:repeat(3,1fr)}
:where(.sstf-flow,.sstf-admin) .choice{display:flex;align-items:center;gap:var(--sstf-space-3);border:1.5px solid var(--line);border-radius:var(--sstf-r-m);padding:18px;cursor:pointer;background:#fff;color:var(--ink);margin:0;text-align:right;min-height:76px;font:inherit}
:where(.sstf-flow,.sstf-admin) .choice:hover,:where(.sstf-flow,.sstf-admin) .choice.on{border-color:var(--ink)}
:where(.sstf-flow,.sstf-admin) .choice .ic{width:38px;height:38px;border-radius:var(--sstf-r-s);display:grid;place-items:center;border:1px solid var(--line);flex-shrink:0}
:where(.sstf-flow,.sstf-admin) .choice.on .ic{background:var(--ink);color:#fff}
:where(.sstf-flow,.sstf-admin) .choice .rd{margin-inline-start:auto;width:20px;height:20px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;flex-shrink:0}
:where(.sstf-flow,.sstf-admin) .choice.on .rd{border-color:var(--ink)}
:where(.sstf-flow,.sstf-admin) .choice.on .rd:after{content:"";width:9px;height:9px;border-radius:50%;background:var(--ink)}
:where(.sstf-flow,.sstf-admin) .wizard input,:where(.sstf-flow,.sstf-admin) .wizard select,:where(.sstf-flow,.sstf-admin) .wizard textarea{border:1.5px solid var(--line);border-radius:var(--sstf-r-m);padding:13px 15px}
:where(.sstf-flow,.sstf-admin) .wizard-foot{display:flex;justify-content:space-between;gap:var(--sstf-space-3);border-top:1px solid var(--line);padding:18px 26px;background:#fff}
:where(.sstf-flow,.sstf-admin) .wizard-foot button{margin:0}
:where(.sstf-flow,.sstf-admin) .upload-box{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:var(--sstf-space-3);border:1.5px dashed #bbb;border-radius:var(--sstf-r-m);padding:30px;cursor:pointer}
:where(.sstf-flow,.sstf-admin) .upload-box input{max-width:320px}
:where(.sstf-flow,.sstf-admin) .image-preview{width:220px;height:220px;object-fit:contain;border:1px solid var(--line);border-radius:var(--sstf-r-m);margin:20px auto;display:block}
:where(.sstf-flow,.sstf-admin) .brand-picker{border:1.5px solid var(--line);border-radius:var(--sstf-r-m);padding:var(--sstf-space-4);margin-top:22px}
:where(.sstf-flow,.sstf-admin) .brand-picker summary{cursor:pointer;font-weight:700}
:where(.sstf-flow,.sstf-admin) .brand-results{max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:3px;margin:var(--sstf-space-3) 0}
:where(.sstf-flow,.sstf-admin) .brand-results button{background:#fff;color:#111;text-align:start;border:1px solid var(--line);padding:9px 14px;margin:0;border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .inline{display:flex;gap:10px;align-items:center}
:where(.sstf-flow,.sstf-admin) .inline input{flex:1;min-width:0}
:where(.sstf-flow,.sstf-admin) .inline button{flex-shrink:0;margin:0}
:where(.sstf-flow,.sstf-admin) .size-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:var(--sstf-space-3);margin:22px 0}
:where(.sstf-flow,.sstf-admin) .size-cell{border:1px solid var(--line);border-radius:var(--sstf-r-s);padding:10px;text-align:center;margin:0}
:where(.sstf-flow,.sstf-admin) .size-cell input{padding:var(--sstf-space-2);min-height:38px;text-align:center;direction:ltr}
:where(.sstf-flow,.sstf-admin) .size-cell:has(input:valid:not([value="0"])){border-color:#bbb}
:where(.sstf-flow,.sstf-admin) .quantity-summary{border-top:1px solid var(--line);padding-top:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .checkbox{display:flex;gap:var(--sstf-space-3);align-items:center}
:where(.sstf-flow,.sstf-admin) .checkbox input{width:20px;height:20px;min-height:20px;margin:0;accent-color:#111}
:where(.sstf-flow,.sstf-admin) .product-summary{border:1px solid var(--line);border-radius:var(--sstf-r-s);padding:15px;margin-top:20px}
:where(.sstf-flow,.sstf-admin) .count{font-size:var(--sstf-t-small);background:#111;color:#fff;padding:3px 9px;border-radius:var(--sstf-radius-pill)}
:where(.sstf-flow,.sstf-admin) .product-table-section{padding:20px}
:where(.sstf-flow,.sstf-admin) .product-table-section h2{margin:0}
:where(.sstf-flow,.sstf-admin) .product-table-section .section-heading{margin:0}
:where(.sstf-flow,.sstf-admin) .table{max-width:100%}
:where(.sstf-flow,.sstf-admin) #products-table{font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) #products-table td{vertical-align:middle;max-width:230px;white-space:normal;min-width:70px}
:where(.sstf-flow,.sstf-admin) .product-thumb{width:74px;height:74px;object-fit:contain;border-radius:var(--sstf-r-s);border:1px solid var(--line)}
:where(.sstf-flow,.sstf-admin) .dragging{opacity:.4}
:where(.sstf-flow,.sstf-admin) tfoot{font-size:var(--sstf-t-card)}
:where(.sstf-flow,.sstf-admin) .empty{text-align:center;padding:35px 10px}
:where(.sstf-flow,.sstf-admin) .order-actions{display:flex;justify-content:flex-end;gap:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .order-actions button{margin:0}
:where(.sstf-flow,.sstf-admin) dialog{border:1px solid var(--line);border-radius:var(--sstf-r-m);padding:25px;width:min(1050px,94vw);max-height:88vh;overflow:auto;color:#111;background:white}
:where(.sstf-flow,.sstf-admin) dialog::backdrop{background:#0006}

:where(.sstf-flow,.sstf-admin) #submitted small{display:block;margin-top:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .product-preview-card{border:1px solid var(--line);border-radius:var(--sstf-r-s);padding:15px;margin:10px 0;display:flex;gap:var(--sstf-space-4);align-items:flex-start}
:where(.sstf-flow,.sstf-admin) .product-preview-card p{margin:5px 0}
:where(.sstf-flow,.sstf-admin) .product-preview-card h3{margin:0}
:where(.sstf-flow,.sstf-admin) .product-preview-card img{width:100px;height:100px;object-fit:contain}
:where(.sstf-flow,.sstf-admin) button:disabled{opacity:.45;cursor:wait}
@media (max-width:680px){

:where(.sstf-flow,.sstf-admin) .order-meta{grid-template-columns:1fr 1fr;gap:var(--sstf-space-3)}

:where(.sstf-flow,.sstf-admin) .wizard .head{padding:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .wizard-body{padding:20px var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .title{font-size:var(--sstf-t-page)}

:where(.sstf-flow,.sstf-admin) .choice{padding:13px var(--sstf-space-2);gap:6px;font-size:var(--sstf-t-small);flex-direction:column;min-height:105px;text-align:center}
:where(.sstf-flow,.sstf-admin) .choice .rd{display:none}
:where(.sstf-flow,.sstf-admin) .wizard-foot{padding:15px}
:where(.sstf-flow,.sstf-admin) .size-grid{grid-template-columns:repeat(3,1fr)}
:where(.sstf-flow,.sstf-admin) .product-table-section{padding:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .order-actions{flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .order-actions button{flex:1}
:where(.sstf-flow,.sstf-admin) .product-preview-card{flex-direction:column}
:where(.sstf-flow,.sstf-admin) .inline{flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){:where(.sstf-flow,.sstf-admin) *{animation:none;transition:none;scroll-behavior:auto}
}
:where(.sstf-flow,.sstf-admin) .clothing-category-choice{display:flex;align-items:center;gap:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .clothing-category-choice img{object-fit:contain;flex:0 0 44px}
:where(.sstf-flow,.sstf-admin) .clothing-category-choice select{min-width:0;flex:1}

/* review components */
:where(.sstf-flow,.sstf-admin) .review-panel .inline label,:where(.sstf-flow,.sstf-admin) .export-toolbar .inline label{min-width:180px;flex:1}
:where(.sstf-flow,.sstf-admin) .review-panel .product-summary p{white-space:pre-wrap}
:where(.sstf-flow,.sstf-admin) .review-panel .order-actions{flex-wrap:wrap;margin-top:20px}
:where(.sstf-flow,.sstf-admin) .export-toolbar{padding:20px}
:where(.sstf-flow,.sstf-admin) .export-toolbar h2{font-size:var(--sstf-t-card)}
:where(.sstf-flow,.sstf-admin) .export-toolbar .inline{flex-wrap:wrap}

:where(.sstf-flow,.sstf-admin) .review-panel .version-history{margin:var(--sstf-space-4) 0}

:where(.sstf-flow,.sstf-admin) #customer-decisions p{border-bottom:1px solid #eee;padding-bottom:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) #export-message{margin-bottom:0}
@media print{@page{size:A4 landscape;margin:10mm}
:where(.sstf-flow,.sstf-admin){font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) main{max-width:none;padding:0}
:where(.sstf-flow,.sstf-admin) .review-panel,:where(.sstf-flow,.sstf-admin) .export-toolbar,:where(.sstf-flow,.sstf-admin) .order-actions,:where(.sstf-flow,.sstf-admin) .wizard,:where(.sstf-flow,.sstf-admin) #add-zone,:where(.sstf-flow,.sstf-admin) #customer-review,:where(.sstf-flow,.sstf-admin) #submitted,:where(.sstf-flow,.sstf-admin) #table-hint,:where(.sstf-flow,.sstf-admin) .section-heading button,:where(.sstf-flow,.sstf-admin) footer,:where(.sstf-flow,.sstf-admin) #work-error{display:none}
:where(.sstf-flow,.sstf-admin) .product-table-section{border:0;padding:0;margin:15px 0;box-shadow:none}

:where(.sstf-flow,.sstf-admin) table{width:100%}

:where(.sstf-flow,.sstf-admin) .product-thumb{width:60px;height:60px}
:where(.sstf-flow,.sstf-admin) #products-table td{min-width:0}
:where(.sstf-flow,.sstf-admin) #products-table td,:where(.sstf-flow,.sstf-admin) #products-table th{padding:6px}
:where(.sstf-flow,.sstf-admin) .order-meta{padding:10px}

}

/* supplier components */
:where(.sstf-flow,.sstf-admin) .supplier-main{max-width:1700px;margin:0 auto;padding:var(--sstf-space-5);background:#fff;color:#111;font-family:Arial,"Microsoft YaHei","Noto Sans CJK SC",sans-serif}

:where(.sstf-flow,.sstf-admin) .supplier-main .logo{max-height:85px;width:auto;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .supplier-main .order-meta{display:flex;flex-wrap:wrap;gap:var(--sstf-space-6);padding:22px 0;border-block:1px solid #ddd}

:where(.sstf-flow,.sstf-admin) .supplier-tools{display:flex;gap:var(--sstf-space-3);align-items:center;flex-wrap:wrap;margin:20px 0}
:where(.sstf-flow,.sstf-admin) .supplier-table-wrap{overflow-x:auto;border:1px solid #ddd;border-radius:var(--sstf-r-m)}
:where(.sstf-flow,.sstf-admin) .supplier-main table{width:100%;border-collapse:collapse;min-width:1200px}
:where(.sstf-flow,.sstf-admin) .supplier-main th{background:#111;color:#fff;padding:14px 10px;text-align:left}
:where(.sstf-flow,.sstf-admin) .supplier-main td{padding:var(--sstf-space-3) 10px;border-bottom:1px solid #ddd;vertical-align:top;min-width:80px;white-space:pre-line}
:where(.sstf-flow,.sstf-admin) .supplier-main td img{width:100px;height:100px;object-fit:contain;background:#fff}

:where(.sstf-flow,.sstf-admin) .supplier-main input,:where(.sstf-flow,.sstf-admin) .supplier-main select,:where(.sstf-flow,.sstf-admin) .supplier-main textarea{width:100%;box-sizing:border-box;background:#fff;color:#111;border:1px solid #bbb;border-radius:var(--sstf-r-s);padding:10px;font:inherit}
:where(.sstf-flow,.sstf-admin) .supplier-main input[data-sstf-number]{min-width:105px}

:where(.sstf-flow,.sstf-admin) .supplier-main textarea{min-height:70px}
:where(.sstf-flow,.sstf-admin) .supplier-main button{background:#111;color:#fff;border:1px solid #111;border-radius:var(--sstf-r-s);padding:var(--sstf-space-3) 18px;cursor:pointer}

:where(.sstf-flow,.sstf-admin) .supplier-summary{margin:var(--sstf-space-5) 0;max-width:650px;display:grid;gap:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .supplier-summary p{display:flex;justify-content:space-between;margin:0;border-bottom:1px solid #ddd;padding:var(--sstf-space-3) 0}
:where(.sstf-flow,.sstf-admin) .supplier-main details{margin-top:10px}

:where(.sstf-flow,.sstf-admin) .supplier-feedback{border-left:3px solid #b32020;padding:var(--sstf-space-2);font-weight:bold}
:where(.sstf-flow,.sstf-admin) .supplier-main .login{max-width:420px;margin:50px auto}
:where(.sstf-flow,.sstf-admin) .supplier-main nav a{color:#111}
:where(.sstf-flow,.sstf-admin) .supplier-main [hidden]{display:none}
@media (max-width:700px){:where(.sstf-flow,.sstf-admin) .supplier-main{padding:14px}
:where(.sstf-flow,.sstf-admin) .supplier-main h1{font-size:var(--sstf-t-page)}

:where(.sstf-flow,.sstf-admin) .supplier-main .order-meta{gap:18px}
:where(.sstf-flow,.sstf-admin) .supplier-tools button{flex:1}
}
:where(.sstf-flow,.sstf-admin) .supplier-print-value{display:none}
@media print{@page{size:A3 landscape;margin:10mm}
:where(.sstf-flow,.sstf-admin) .supplier-tools,:where(.sstf-flow,.sstf-admin) nav,:where(.sstf-flow,.sstf-admin) button,:where(.sstf-flow,.sstf-admin) input[type=file],:where(.sstf-flow,.sstf-admin) footer,:where(.sstf-flow,.sstf-admin) .supplier-print-hide{display:none}
:where(.sstf-flow,.sstf-admin) .supplier-main{max-width:none;padding:0}
:where(.sstf-flow,.sstf-admin) .supplier-table-wrap{overflow:visible;border:none}
:where(.sstf-flow,.sstf-admin) .supplier-main table{min-width:0;font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .supplier-main th{background:#eee;color:#111}
:where(.sstf-flow,.sstf-admin) .supplier-main td{min-width:0;max-width:none;padding:5px}

:where(.sstf-flow,.sstf-admin) .supplier-main td img{width:65px;height:65px}
:where(.sstf-flow,.sstf-admin) .supplier-main input,:where(.sstf-flow,.sstf-admin) .supplier-main textarea,:where(.sstf-flow,.sstf-admin) .supplier-main select{font-size:var(--sstf-t-small);min-width:0;border:0;padding:2px}

:where(.sstf-flow,.sstf-admin) .supplier-summary{break-inside:avoid}
:where(.sstf-flow,.sstf-admin) .supplier-print-value{display:block;white-space:pre-wrap;}
}

/* pricing components */
:where(.sstf-flow,.sstf-admin) .pricing-panel{padding:var(--sstf-space-5);margin:var(--sstf-space-5) 0;color:#111}
:where(.sstf-flow,.sstf-admin) .pricing-panel h2{margin-top:0}
:where(.sstf-flow,.sstf-admin) .pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .pricing-panel label{display:block;margin-bottom:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .pricing-panel input,:where(.sstf-flow,.sstf-admin) .pricing-panel textarea,:where(.sstf-flow,.sstf-admin) .pricing-panel select{display:block;box-sizing:border-box;width:100%;padding:10px;border:1px solid #bbb;background:#fff;color:#111;border-radius:var(--sstf-r-s);font:inherit}
:where(.sstf-flow,.sstf-admin) .pricing-panel input[type=checkbox]{display:inline;width:auto}
:where(.sstf-flow,.sstf-admin) .pricing-panel textarea{min-height:85px}
:where(.sstf-flow,.sstf-admin) .pricing-table-wrap{overflow-x:auto;margin:18px 0}
:where(.sstf-flow,.sstf-admin) .pricing-panel table{width:100%;border-collapse:collapse;min-width:850px}
:where(.sstf-flow,.sstf-admin) .pricing-panel th{background:#111;color:#fff}
:where(.sstf-flow,.sstf-admin) .pricing-panel th,:where(.sstf-flow,.sstf-admin) .pricing-panel td{padding:var(--sstf-space-3);border-bottom:1px solid #ddd;text-align:right;vertical-align:top}
:where(.sstf-flow,.sstf-admin) .pricing-panel td input{min-width:100px}
:where(.sstf-flow,.sstf-admin) .pricing-panel td img{width:80px;height:80px;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .pricing-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
:where(.sstf-flow,.sstf-admin) .pricing-totals div{padding:var(--sstf-space-4);border:1px solid #ddd;border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .pricing-totals strong{display:block;font-size:var(--sstf-t-page)}
:where(.sstf-flow,.sstf-admin) .pricing-panel .loss{color:#a00000}
:where(.sstf-flow,.sstf-admin) .pricing-confirm{border:2px solid #111;background:#fff;padding:var(--sstf-space-5);margin:20px 0;border-radius:var(--sstf-r-m)}
:where(.sstf-flow,.sstf-admin) .pricing-panel .inline{display:flex;gap:var(--sstf-space-3);flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .pricing-panel small{display:block}
:where(.sstf-flow,.sstf-admin) .pricing-panel [hidden]{display:none}
:where(.sstf-flow,.sstf-admin) .pricing-public-text{white-space:pre-wrap;}
:where(.sstf-flow,.sstf-admin) .pricing-panel button{background:#111;color:#fff;border:1px solid #111;border-radius:var(--sstf-r-s);padding:var(--sstf-space-3) 18px;cursor:pointer}
:where(.sstf-flow,.sstf-admin) .pricing-panel button:disabled{opacity:.5;cursor:not-allowed}
:where(.sstf-flow,.sstf-admin) .pricing-panel details{margin:18px 0}
:where(.sstf-flow,.sstf-admin) .pricing-panel summary{cursor:pointer;font-weight:bold}
@media (max-width:700px){:where(.sstf-flow,.sstf-admin) .pricing-panel{padding:14px}
:where(.sstf-flow,.sstf-admin) .pricing-grid,:where(.sstf-flow,.sstf-admin) .pricing-totals{grid-template-columns:1fr}
:where(.sstf-flow,.sstf-admin) .pricing-panel h2{font-size:var(--sstf-t-page)}
}
@media print{
:where(.sstf-flow,.sstf-admin) .pricing-panel form{display:none}
:where(.sstf-flow,.sstf-admin) .pricing-table-wrap{overflow:visible}
:where(.sstf-flow,.sstf-admin) .pricing-panel table{min-width:0}
:where(.sstf-flow,.sstf-admin) .pricing-panel{break-inside:auto}
:where(.sstf-flow,.sstf-admin) .pricing-panel tr{break-inside:avoid}
}

/* finance components */

:where(.sstf-flow,.sstf-admin) .finance-panel .finance-record{border:1px solid #ddd;border-radius:var(--sstf-r-s);padding:var(--sstf-space-4);margin:var(--sstf-space-4) 0}
:where(.sstf-flow,.sstf-admin) .finance-panel .finance-proof{display:block;max-width:240px;max-height:260px;width:auto;height:auto;object-fit:contain;margin:14px 0;border:1px solid #ddd;border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .finance-panel a{color:#111}
:where(.sstf-flow,.sstf-admin) .finance-panel .finance-form{padding:18px 0;border-top:1px solid #ddd;margin-top:14px}
:where(.sstf-flow,.sstf-admin) .finance-panel [hidden]{display:none}
:where(.sstf-flow,.sstf-admin) .finance-panel summary{line-height:1.8}

@media (max-width:600px){:where(.sstf-flow,.sstf-admin) .finance-panel .finance-record{padding:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .finance-panel .finance-proof{max-width:100%}

}
@media print{
:where(.sstf-flow,.sstf-admin) .finance-panel button{display:none}
}

/* reports components */
:where(.sstf-flow,.sstf-admin) nav a[aria-current=page]{background:#111;color:#fff;padding:var(--sstf-space-3) 20px;border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .report-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .report-summary article{border:1px solid #ddd;border-radius:var(--sstf-r-m);padding:18px;background:#fff}
:where(.sstf-flow,.sstf-admin) .report-summary h3{margin-top:0}
:where(.sstf-flow,.sstf-admin) .report-summary p{display:flex;justify-content:space-between;gap:var(--sstf-space-3);flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .report-actions{display:flex;gap:var(--sstf-space-3);align-items:center;flex-wrap:wrap;margin-top:20px}
:where(.sstf-flow,.sstf-admin) #report-table td{max-width:300px;}
:where(.sstf-flow,.sstf-admin) #report-table th{background:#111;color:#fff}
@media print{@page{size:A4 landscape;margin:12mm}
:where(.sstf-flow,.sstf-admin) .no-print{display:none}
:where(.sstf-flow,.sstf-admin),:where(.sstf-flow,.sstf-admin) main,:where(.sstf-flow,.sstf-admin) section{background:#fff;max-width:none;margin:0;padding:var(--sstf-space-1);box-shadow:none;border:0}
:where(.sstf-flow,.sstf-admin) .table{overflow:visible}
:where(.sstf-flow,.sstf-admin) table{min-width:0;width:100%;font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) th,:where(.sstf-flow,.sstf-admin) td{padding:5px}

:where(.sstf-flow,.sstf-admin) .report-summary{grid-template-columns:repeat(4,1fr)}
:where(.sstf-flow,.sstf-admin) a{color:#111;text-decoration:none}
:where(.sstf-flow,.sstf-admin) footer{font-size:var(--sstf-t-small)}
}

/* accounting components */
:where(.sstf-flow,.sstf-admin) .account-nav{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;border-block-end:1px solid #dedfe3;padding:var(--sstf-space-1) 0 var(--sstf-space-3);margin-bottom:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .account-nav a{padding:var(--sstf-space-2) 10px;color:#172c50;font-size:var(--sstf-t-body);text-decoration:none;border-radius:var(--sstf-r-s);min-height:40px;display:flex;align-items:center}
:where(.sstf-flow,.sstf-admin) .account-nav a:hover{background:#eef3fb}
:where(.sstf-flow,.sstf-admin) .account-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:14px;align-items:end}
:where(.sstf-flow,.sstf-admin) .account-form{margin:var(--sstf-space-4) 0}
:where(.sstf-flow,.sstf-admin) .account-form label,:where(.sstf-flow,.sstf-admin) .account-fields label{display:flex;flex-direction:column;gap:6px;font-size:var(--sstf-t-body);min-width:0}
:where(.sstf-flow,.sstf-admin) .account-form input:not([type=checkbox]),:where(.sstf-flow,.sstf-admin) .account-form select,:where(.sstf-flow,.sstf-admin) .account-form textarea,:where(.sstf-flow,.sstf-admin) .account-fields input,:where(.sstf-flow,.sstf-admin) .account-fields select{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #c8cbd0;border-radius:var(--sstf-r-s);background:#fff;color:#111;min-height:44px;font:inherit}
:where(.sstf-flow,.sstf-admin) .account-form>label{margin:14px 0}
:where(.sstf-flow,.sstf-admin) .account-form .account-check{display:flex;flex-direction:row;gap:var(--sstf-space-2);align-items:flex-start;font-size:var(--sstf-t-body);line-height:1.7}
:where(.sstf-flow,.sstf-admin) .account-check input{width:20px;height:20px;flex:0 0 20px;margin:2px 0}
:where(.sstf-flow,.sstf-admin) .account-totals{width:100%;border-collapse:collapse;margin:var(--sstf-space-4) 0;font-size:var(--sstf-t-body)}
:where(.sstf-flow,.sstf-admin) .account-totals th,:where(.sstf-flow,.sstf-admin) .account-totals td{padding:11px 6px;border-bottom:1px solid #e0e1e4;text-align:start;}
:where(.sstf-flow,.sstf-admin) .account-totals th{font-weight:500}
:where(.sstf-flow,.sstf-admin) .account-totals td{text-align:end;font-variant-numeric:tabular-nums;max-width:180px}
:where(.sstf-flow,.sstf-admin) .account-totals tr:last-child{font-weight:700;color:#111}
:where(.sstf-flow,.sstf-admin) .account-totals tr:last-child th{font-weight:700}
:where(.sstf-flow,.sstf-admin) .account-fold{margin:var(--sstf-space-4) 0;padding:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .account-fold>summary{font-weight:700;cursor:pointer;min-height:32px}
:where(.sstf-flow,.sstf-admin) .account-fold[open]>summary{margin-bottom:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .account-documents{margin:var(--sstf-space-4) 0}
:where(.sstf-flow,.sstf-admin) .account-document-row{padding:14px 0;border-bottom:1px solid #ddd;}
:where(.sstf-flow,.sstf-admin) .account-document-row>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .account-document-row p{color:#444;font-size:var(--sstf-t-body);line-height:1.7}
:where(.sstf-flow,.sstf-admin) .account-status{font-size:var(--sstf-t-small);color:#123b72;background:#ecf2ff;padding:var(--sstf-space-1) 7px;border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .account-action-bar{position:sticky;bottom:0;z-index:7;display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:#fff;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .account-action-bar button{flex:1;min-width:120px;min-height:46px;white-space:normal}
:where(.sstf-flow,.sstf-admin) .account-proof{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:14px auto}
:where(.sstf-flow,.sstf-admin) .account-table{width:100%;border-collapse:collapse;font-size:var(--sstf-t-body)}
:where(.sstf-flow,.sstf-admin) .account-table td,:where(.sstf-flow,.sstf-admin) .account-table th{text-align:start;padding:10px 6px;border-bottom:1px solid #ddd;}
:where(.sstf-flow,.sstf-admin) .account-table small{display:block;color:#555}
:where(.sstf-flow,.sstf-admin) .account-table td[dir=ltr]{font-variant-numeric:tabular-nums}
:where(.sstf-flow,.sstf-admin) .account-report-table{width:100%;overflow:auto;margin-top:18px}
:where(.sstf-flow,.sstf-admin) .account-report-table table{min-width:760px}

:where(.sstf-flow,.sstf-admin) .account-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:var(--sstf-space-4) 0}

:where(.sstf-flow,.sstf-admin) .account-signature{display:block;width:240px;max-width:100%;height:90px}
:where(.sstf-flow,.sstf-admin) .account-form button.danger{background:#a32d26;color:#fff}
@media (min-width:800px){:where(.sstf-flow,.sstf-admin) .account-fields{grid-template-columns:repeat(3,minmax(140px,1fr))}
:where(.sstf-flow,.sstf-admin) .account-form{max-width:920px}
}
@media (max-width:700px){:where(.sstf-flow,.sstf-admin) .account-action-bar{bottom:var(--account-nav-height,72px)}
:where(.sstf-flow,.sstf-admin).is-keyboard .account-action-bar{position:static}
:where(.sstf-flow,.sstf-admin) .account-report-table table{font-size:var(--sstf-t-small)}
}
@media print{:where(.sstf-flow,.sstf-admin) .app-header{position:static}
:where(.sstf-flow,.sstf-admin) .account-nav,:where(.sstf-flow,.sstf-admin) .no-print,:where(.sstf-flow,.sstf-admin) .account-action-bar,:where(.sstf-flow,.sstf-admin) .app-sidebar,:where(.sstf-flow,.sstf-admin) .mobile-nav{display:none}

:where(.sstf-flow,.sstf-admin) .account-report-table table{min-width:0;width:100%;font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .account-signature{break-inside:avoid}
:where(.sstf-flow,.sstf-admin) :has(.account-nav) main{margin:0;width:100%;max-width:none}
:where(.sstf-flow,.sstf-admin) thead{display:table-header-group}
:where(.sstf-flow,.sstf-admin) tr{break-inside:avoid}
}
@media (min-width:701px) and (max-width:959px){:where(.sstf-flow,.sstf-admin) .account-action-bar{bottom:var(--account-nav-height,72px)}
}
:where(.sstf-flow,.sstf-admin) .account-status[data-status="approved"],:where(.sstf-flow,.sstf-admin) .account-status[data-status="paid"]{background:#eaf7ee;color:#165b2c}
:where(.sstf-flow,.sstf-admin) .account-status[data-status="submitted"],:where(.sstf-flow,.sstf-admin) .account-status[data-status="partially_paid"]{background:#fff4dc;color:#744900}
:where(.sstf-flow,.sstf-admin) .account-status[data-status="rejected"],:where(.sstf-flow,.sstf-admin) .account-status[data-status="cancelled"]{background:#fff0ee;color:#8e2b24}
:where(.sstf-flow,.sstf-admin) .account-status[data-status="draft"]{background:#f1f3f5;color:#343a40}
:where(.sstf-flow,.sstf-admin) .account-form input[type=file]{max-width:100%}
:where(.sstf-flow,.sstf-admin) .store-cards{grid-template-columns:repeat(2,minmax(0,1fr));margin:var(--sstf-space-4) 0}
:where(.sstf-flow,.sstf-admin) .store-cards .task-card{min-width:0;display:flex;align-items:center;gap:var(--sstf-space-2);flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .store-cards .task-card img{width:38px;height:38px}
:where(.sstf-flow,.sstf-admin) .store-cards .task-card span{flex-basis:100%;font-size:var(--sstf-t-body)}

:where(.sstf-flow,.sstf-admin) .store-bottom-nav{display:none}
:where(.sstf-flow,.sstf-admin) .recipient-editor.account-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.sstf-flow,.sstf-admin) .recipient-editor textarea{width:100%;box-sizing:border-box}
:where(.sstf-flow,.sstf-admin) .recipient-editor .recipient-wide{grid-column:1/-1}
:where(.sstf-flow,.sstf-admin) .recipient-product-label{display:block;color:#17496e;font-weight:700;font-size:var(--sstf-t-small);margin:var(--sstf-space-1) 0}
@media (max-width:700px){

:where(.sstf-flow,.sstf-admin) .store-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:30;padding:8px 4px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ddd;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .store-bottom-nav a{display:flex;align-items:center;flex-direction:column;text-decoration:none;color:#111;font-size:var(--sstf-t-small);gap:3px;min-width:0}
:where(.sstf-flow,.sstf-admin) .store-bottom-nav img,:where(.sstf-flow,.sstf-admin) .store-bottom-nav svg{width:27px;height:27px}
:where(.sstf-flow,.sstf-admin) .store-dashboard main{padding-bottom:105px}
:where(.sstf-flow,.sstf-admin) .recipient-editor.account-fields{gap:10px}
:where(.sstf-flow,.sstf-admin) .recipient-editor label{min-width:0;font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .recipient-editor input,:where(.sstf-flow,.sstf-admin) .recipient-editor select{min-width:0;width:100%;box-sizing:border-box}
}
@media print{
:where(.sstf-flow,.sstf-admin) .store-bottom-nav,:where(.sstf-flow,.sstf-admin) .parcel-actions,:where(.sstf-flow,.sstf-admin) .no-print{display:none}
:where(.sstf-flow,.sstf-admin) .account-report-table{overflow:visible}
:where(.sstf-flow,.sstf-admin) .store-dashboard main{padding:0}
}

:where(.sstf-flow,.sstf-admin) .parcel-editor{padding:var(--sstf-space-2) 0}

:where(.sstf-flow,.sstf-admin) .parcel-section .pricing-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
@media (max-width:700px){
:where(.sstf-flow,.sstf-admin) .store-cards{gap:10px}
}
:where(.sstf-flow,.sstf-admin) .store-sidebar{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;padding:var(--sstf-space-3) 0;border-bottom:1px solid #ddd}
:where(.sstf-flow,.sstf-admin) .store-sidebar>strong{width:100%;font-size:var(--sstf-t-body)}
:where(.sstf-flow,.sstf-admin) .store-sidebar a{display:flex;align-items:center;gap:9px;min-height:44px;padding:var(--sstf-space-2) 10px;border-radius:var(--sstf-r-s);color:#111;text-decoration:none}
:where(.sstf-flow,.sstf-admin) .store-sidebar .nav-icon,:where(.sstf-flow,.sstf-admin) .store-sidebar .small-icon{width:30px;height:30px;flex-shrink:0;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .store-sidebar [aria-current=page],:where(.sstf-flow,.sstf-admin) .store-bottom-nav [aria-current=page]{background:#edf3fb;color:#102d65;font-weight:800}

@media (min-width:1024px){:where(.sstf-flow,.sstf-admin) .has-store-nav .store-sidebar{position:fixed;inset-inline-start:18px;top:24px;bottom:24px;width:204px;overflow-y:auto;display:flex;flex-direction:column;align-content:stretch;flex-wrap:nowrap;background:#fff;border:1px solid #e2e5ea;border-radius:var(--sstf-r-s);padding:var(--sstf-space-4);z-index:35;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .has-store-nav main{margin-inline-start:242px;margin-inline-end:var(--sstf-space-5);max-width:1320px;min-width:0}
:where(.sstf-flow,.sstf-admin) .store-sidebar>strong{margin-bottom:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .store-sidebar a{flex-shrink:0}
}
@media (max-width:700px){:where(.sstf-flow,.sstf-admin) .store-sidebar{display:none}
:where(.sstf-flow,.sstf-admin) .has-store-nav main{padding-bottom:110px}

:where(.sstf-flow,.sstf-admin) .store-bottom-nav a{min-height:44px;border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .store-bottom-nav span{line-height:1.3}
}
@media print{:where(.sstf-flow,.sstf-admin) .store-sidebar,:where(.sstf-flow,.sstf-admin) .store-bottom-nav{display:none}
:where(.sstf-flow,.sstf-admin) .has-store-nav main{margin:0;padding:0}
}
@media (max-width:700px){
:where(.sstf-flow,.sstf-admin) .has-store-nav main{padding-bottom:calc(var(--store-nav-clearance,88px) + 24px)}

}

/* admin components */
.sstf-admin{--sstf-black:#111;--sstf-white:#fff;--sstf-border:#dedede;--sstf-muted:#6b6b6b;--sstf-soft:#f7f7f7;max-width:1320px;color:var(--sstf-black);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}
.sstf-admin *{box-sizing:border-box}
:where(.sstf-flow,.sstf-admin) .sstf-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 0 22px;border-bottom:1px solid var(--sstf-border)}
:where(.sstf-flow,.sstf-admin) .sstf-hero span{font-size:var(--sstf-t-small);font-weight:800;letter-spacing:.03em}
:where(.sstf-flow,.sstf-admin) .sstf-hero h1{margin:5px 0;font-size:var(--sstf-t-page);color:var(--sstf-black)}
:where(.sstf-flow,.sstf-admin) .sstf-hero p,:where(.sstf-flow,.sstf-admin) .sstf-panel p{margin:0;color:var(--sstf-muted)}
:where(.sstf-flow,.sstf-admin) .sstf-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:var(--sstf-space-2) 14px;border:1px solid #bdbdbd;border-radius:var(--sstf-r-s);background:#fff;color:#111;text-decoration:none;cursor:pointer}
:where(.sstf-flow,.sstf-admin) .sstf-button--primary{background:#111;border-color:#111;color:#fff}
:where(.sstf-flow,.sstf-admin) .sstf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
:where(.sstf-flow,.sstf-admin) .sstf-metrics article{background:#fff;border:1px solid var(--sstf-border);border-radius:var(--sstf-r-m);box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .sstf-metrics article{padding:18px;border-top:3px solid #111}
:where(.sstf-flow,.sstf-admin) .sstf-metrics span,:where(.sstf-flow,.sstf-admin) .sstf-metrics small{display:block;color:var(--sstf-muted)}
:where(.sstf-flow,.sstf-admin) .sstf-metrics strong{display:block;font-size:var(--sstf-t-page);margin:var(--sstf-space-2) 0}
:where(.sstf-flow,.sstf-admin) .sstf-panel{padding:20px;margin-top:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .sstf-panel__head{display:flex;justify-content:space-between;gap:var(--sstf-space-3);align-items:flex-start}
:where(.sstf-flow,.sstf-admin) .sstf-panel h2{margin:0 0 5px}
:where(.sstf-flow,.sstf-admin) .sstf-status{border:1px solid #111;border-radius:var(--sstf-radius-pill);padding:5px 10px;font-size:var(--sstf-t-small);font-weight:800}
:where(.sstf-flow,.sstf-admin) .sstf-module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}
:where(.sstf-flow,.sstf-admin) .sstf-module-grid div{padding:13px;border:1px solid var(--sstf-border);border-radius:var(--sstf-r-s)}
:where(.sstf-flow,.sstf-admin) .sstf-module-grid b,:where(.sstf-flow,.sstf-admin) .sstf-module-grid span{display:block}
:where(.sstf-flow,.sstf-admin) .sstf-module-grid span{color:var(--sstf-muted);margin-top:var(--sstf-space-1)}
:where(.sstf-flow,.sstf-admin) .sstf-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0 0}
:where(.sstf-flow,.sstf-admin) .sstf-tabs button{border:1px solid var(--sstf-border);border-radius:var(--sstf-r-s);background:#fff;color:#111;padding:9px 15px;cursor:pointer}
:where(.sstf-flow,.sstf-admin) .sstf-tabs button.is-active{background:#111;color:#fff;border-color:#111}
:where(.sstf-flow,.sstf-admin) .sstf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-4);margin-top:18px}
:where(.sstf-flow,.sstf-admin) .sstf-fields label,:where(.sstf-flow,.sstf-admin) .sstf-logo-field{display:block}
:where(.sstf-flow,.sstf-admin) .sstf-fields label>span,:where(.sstf-flow,.sstf-admin) .sstf-logo-field>span{display:block;font-weight:700;margin-bottom:7px}
:where(.sstf-flow,.sstf-admin) .sstf-fields input:not([type=color]):not([type=checkbox]):not([type=radio]),:where(.sstf-flow,.sstf-admin) .sstf-fields select{width:100%;min-height:43px;padding:var(--sstf-space-2) 11px;border:1px solid #bdbdbd;border-radius:var(--sstf-r-s);background:#fff;color:#111}
:where(.sstf-flow,.sstf-admin) .sstf-fields input:focus,:where(.sstf-flow,.sstf-admin) .sstf-fields select:focus{border-color:#111;box-shadow:var(--sstf-sh-card);outline:0}
:where(.sstf-flow,.sstf-admin) .sstf-fields small{display:block;color:var(--sstf-muted);margin-top:5px}
:where(.sstf-flow,.sstf-admin) #sstf-logo-preview{width:120px;height:92px;border:1px dashed #aaa;border-radius:var(--sstf-r-s);display:grid;place-items:center;overflow:hidden;margin-bottom:var(--sstf-space-2);color:var(--sstf-muted)}
:where(.sstf-flow,.sstf-admin) #sstf-logo-preview img{max-width:100%;max-height:100%;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .sstf-submit{background:#111;border-color:#111;color:#fff}
@media (max-width:800px){:where(.sstf-flow,.sstf-admin) .sstf-metrics{grid-template-columns:repeat(2,1fr)}
:where(.sstf-flow,.sstf-admin) .sstf-fields,:where(.sstf-flow,.sstf-admin) .sstf-module-grid{grid-template-columns:1fr}
}
@media (max-width:480px){:where(.sstf-flow,.sstf-admin) .sstf-metrics{grid-template-columns:1fr}
:where(.sstf-flow,.sstf-admin) .sstf-hero{flex-direction:column}
}
.sstf-admin [hidden]{display:none}
.sstf-admin #team details{padding:14px 0;border-bottom:1px solid #e3e3e3}
.sstf-admin #team summary{font-weight:700;cursor:pointer;min-height:40px}
.sstf-admin #team fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--sstf-space-3);margin:18px 0;padding:14px;border:1px solid #ddd}
.sstf-admin #team fieldset label{line-height:1.8}
.sstf-admin #team .sstf-fields input[type=checkbox]{width:18px;height:18px}

.sstf-admin .sstf-user-cap-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:var(--sstf-space-3);margin:14px 0}
.sstf-admin .sstf-user-cap-fields label{line-height:1.8}
.sstf-admin .sstf-user-cap-fields .description{grid-column:1/-1}
.sstf-admin .sstf-person-permissions select{max-width:100%;min-height:44px}
.sstf-admin #sstf-team-error{margin:var(--sstf-space-3) 0;padding:var(--sstf-space-3);}
.sstf-admin #sstf-team-error:focus{outline:2px solid #2271b1;outline-offset:2px}

/* flow components */
:where(.sstf-flow,.sstf-admin){--flow-blue:var(--sstf-brand-primary,#174a87);--flow-blue-soft:var(--sstf-brand-primary-soft,#edf4fb);--flow-green:#117b43;--flow-orange:#a9490b;--flow-red:#b42318;--flow-line:#e3e7ed;background:#fff;color:#111;color-scheme:light}
:where(.sstf-flow,.sstf-admin) main{background:#fff;max-width:1280px;padding:24px clamp(16px,4vw,40px)}
:where(.sstf-flow,.sstf-admin) section,:where(.sstf-flow,.sstf-admin) .pricing-panel,:where(.sstf-flow,.sstf-admin) .review-panel,:where(.sstf-flow,.sstf-admin) .order-meta,:where(.sstf-flow,.sstf-admin) .product-table-section,:where(.sstf-flow,.sstf-admin) .product-summary,:where(.sstf-flow,.sstf-admin) .finance-record{border:0;border-radius:0;box-shadow:none;background:#fff}
:where(.sstf-flow,.sstf-admin) section,:where(.sstf-flow,.sstf-admin) .pricing-panel,:where(.sstf-flow,.sstf-admin) .review-panel{padding:22px 0;margin:18px 0}
:where(.sstf-flow,.sstf-admin) .order-meta{border-block:1px solid var(--flow-line);padding:var(--sstf-space-4) 0;gap:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .order-meta small{font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .order-meta strong{color:#111;font-weight:750}
:where(.sstf-flow,.sstf-admin) header{align-items:flex-start;gap:20px}
:where(.sstf-flow,.sstf-admin) header h1{font-size:clamp(22px,3vw,29px)}
:where(.sstf-flow,.sstf-admin) button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:11px 18px;border:1px solid transparent;border-radius:var(--sstf-r-s);box-shadow:var(--sstf-sh-card);background:var(--flow-blue);color:#fff;font:600 var(--sstf-t-body)/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,box-shadow .15s,transform .12s}
:where(.sstf-flow,.sstf-admin) button:hover:not(:disabled){box-shadow:var(--sstf-sh-card);filter:brightness(.97)}
:where(.sstf-flow,.sstf-admin) button:active:not(:disabled){transform:translateY(1px);box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) button:focus-visible,:where(.sstf-flow,.sstf-admin) a:focus-visible,:where(.sstf-flow,.sstf-admin) summary:focus-visible{outline:3px solid #8ab7fa;outline-offset:3px}
:where(.sstf-flow,.sstf-admin) button:disabled{opacity:.5;cursor:not-allowed}
:where(.sstf-flow,.sstf-admin) [data-copy-target],:where(.sstf-flow,.sstf-admin) [data-offer-export],:where(.sstf-flow,.sstf-admin) #export-xlsx,:where(.sstf-flow,.sstf-admin) #export-pdf,:where(.sstf-flow,.sstf-admin) #print-order,:where(.sstf-flow,.sstf-admin) [data-act=up],:where(.sstf-flow,.sstf-admin) [data-act=down]{background:#fff;color:#18212c;border-color:#cfd6df;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) [data-tone=warning],:where(.sstf-flow,.sstf-admin) [data-act=edit],:where(.sstf-flow,.sstf-admin) [name=review_action][value=return],:where(.sstf-flow,.sstf-admin) [name=supplier_admin_action][value=return],:where(.sstf-flow,.sstf-admin) [name=answer][value=change],:where(.sstf-flow,.sstf-admin) #request-revision{background:var(--flow-orange);color:#fff;border-color:var(--flow-orange)}
:where(.sstf-flow,.sstf-admin) [data-tone=danger],:where(.sstf-flow,.sstf-admin) [data-act=delete],:where(.sstf-flow,.sstf-admin) [name=review_action][value=cancel],:where(.sstf-flow,.sstf-admin) [name=answer][value=reject],:where(.sstf-flow,.sstf-admin) [name=supplier_admin_action][value=disable],:where(.sstf-flow,.sstf-admin) [name=portal_action][value=disable_link]{background:var(--flow-red);color:#fff;border-color:var(--flow-red)}
:where(.sstf-flow,.sstf-admin) a[href^="https://wa.me/"]{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 18px;border-radius:var(--sstf-r-s);border:1px solid var(--flow-green);box-shadow:var(--sstf-sh-card);background:var(--flow-green);color:#fff;text-decoration:none;font-weight:700}
:where(.sstf-flow,.sstf-admin) [role=alert]{border-inline-start-color:var(--flow-red)}
:where(.sstf-flow,.sstf-admin) label{font-weight:600}
:where(.sstf-flow,.sstf-admin) input,:where(.sstf-flow,.sstf-admin) select,:where(.sstf-flow,.sstf-admin) textarea{border-radius:var(--sstf-r-s);border-color:#cbd3dc;background:#fff;color:#111}
:where(.sstf-flow,.sstf-admin) input:focus,:where(.sstf-flow,.sstf-admin) select:focus,:where(.sstf-flow,.sstf-admin) textarea:focus{outline:2px solid #719ee2;outline-offset:1px}
:where(.sstf-flow,.sstf-admin) input[type=checkbox]{accent-color:var(--flow-blue);min-height:0}
:where(.sstf-flow,.sstf-admin) input[aria-invalid=true]{border-color:var(--flow-red)}
:where(.sstf-flow,.sstf-admin) table{font-size:var(--sstf-t-body)}
:where(.sstf-flow,.sstf-admin) th{background:#f5f7fa;color:#1e2a3b;font-size:var(--sstf-t-small);font-weight:750}
:where(.sstf-flow,.sstf-admin) td,:where(.sstf-flow,.sstf-admin) th{border-bottom:1px solid var(--flow-line);padding:13px var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .review-thumb{width:72px;height:72px;object-fit:contain;display:block;margin-bottom:7px}
:where(.sstf-flow,.sstf-admin) .table td{vertical-align:top}
:where(.sstf-flow,.sstf-admin) details:not(.row-actions):not(.work-more){margin:var(--sstf-space-4) 0;padding:var(--sstf-space-3) 0;border:0;border-bottom:1px solid var(--flow-line);border-radius:0}
:where(.sstf-flow,.sstf-admin) summary{cursor:pointer;list-style-position:inside;font-weight:650;line-height:1.6;padding:6px 0}
:where(.sstf-flow,.sstf-admin) summary::marker{color:#6b788c}
:where(.sstf-flow,.sstf-admin) details[open]>summary{margin-bottom:14px}
:where(.sstf-flow,.sstf-admin) .row-actions>summary,:where(.sstf-flow,.sstf-admin) .work-more>summary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:var(--sstf-space-2) 14px;border:1px solid #d3dbe5;border-radius:var(--sstf-r-s);background:#fff;list-style:none;white-space:nowrap}
:where(.sstf-flow,.sstf-admin) .row-actions>div{display:flex;flex-wrap:wrap;gap:var(--sstf-space-2);padding-top:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .row-actions button{margin:0;white-space:nowrap}

:where(.sstf-flow,.sstf-admin) .work-more{margin-inline-start:auto}
:where(.sstf-flow,.sstf-admin) .work-more>div{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;padding:var(--sstf-space-3) 0}
:where(.sstf-flow,.sstf-admin) .work-more a{padding:var(--sstf-space-2);color:var(--flow-blue)}

:where(.sstf-flow,.sstf-admin) .work-next{border-top:1px solid var(--flow-line);padding:20px 0;display:flex;justify-content:flex-end}
:where(.sstf-flow,.sstf-admin) .work-cancel{margin-top:var(--sstf-space-6);color:#83251d}
:where(.sstf-flow,.sstf-admin) .work-cancel>summary{font-size:var(--sstf-t-small);font-weight:500}
:where(.sstf-flow,.sstf-admin) .response-note{padding:14px 0;border-bottom:1px solid var(--flow-line);white-space:pre-line}
:where(.sstf-flow,.sstf-admin) .response-note strong{color:var(--flow-orange)}
:where(.sstf-flow,.sstf-admin) .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.sstf-flow,.sstf-admin) .pricing-totals{gap:18px}
:where(.sstf-flow,.sstf-admin) .pricing-totals>div{border:0;border-radius:0;padding:var(--sstf-space-3) 0;border-bottom:1px solid var(--flow-line);font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .pricing-totals strong{font-size:var(--sstf-t-page)}
:where(.sstf-flow,.sstf-admin) .wizard{padding:0;overflow:visible}
:where(.sstf-flow,.sstf-admin) .wizard .head{background:#fff;backdrop-filter:none;box-shadow:none;border-bottom:1px solid var(--flow-line);padding:14px 0}
:where(.sstf-flow,.sstf-admin) .wizard-body{padding:var(--sstf-space-5) 0}
:where(.sstf-flow,.sstf-admin) .wizard-foot{border-top:1px solid var(--flow-line);padding:var(--sstf-space-4) 0;background:#fff}
:where(.sstf-flow,.sstf-admin) .title{font-size:clamp(24px,4vw,32px)}
:where(.sstf-flow,.sstf-admin) .track{background:#e7ecf4}
:where(.sstf-flow,.sstf-admin) .fill{background:var(--flow-blue)}
:where(.sstf-flow,.sstf-admin) #step-percent{color:var(--flow-blue)}
:where(.sstf-flow,.sstf-admin) .choice{border-color:#d6dfe9;background:#fff;color:#1b2431;box-shadow:none;padding:18px 14px;min-height:76px}
:where(.sstf-flow,.sstf-admin) .choice.on{background:var(--flow-blue-soft);border-color:var(--flow-blue);color:var(--flow-blue)}
:where(.sstf-flow,.sstf-admin) .choice .ic,:where(.sstf-flow,.sstf-admin) .choice .rd{color:inherit;background:transparent}
:where(.sstf-flow,.sstf-admin) .choice.on .rd{background:var(--flow-blue);border-color:var(--flow-blue)}
:where(.sstf-flow,.sstf-admin) .size-grid{grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:14px}
:where(.sstf-flow,.sstf-admin) .size-cell{border:1px solid #dce3ed;border-radius:var(--sstf-r-s);padding:10px var(--sstf-space-2);background:#fff}

:where(.sstf-flow,.sstf-admin) .size-cell input{font-size:var(--sstf-t-card);font-weight:650;text-align:center;min-height:46px;margin-top:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .size-cell input::placeholder{font-size:var(--sstf-t-small);font-weight:400;color:#778294}
:where(.sstf-flow,.sstf-admin) .quantity-summary{color:#15213a}
:where(.sstf-flow,.sstf-admin) .quantity-summary strong{color:var(--flow-blue);font-size:var(--sstf-t-page)}
:where(.sstf-flow,.sstf-admin) .product-summary{padding:var(--sstf-space-4) 0;border-top:1px solid var(--flow-line)}
:where(.sstf-flow,.sstf-admin) .product-summary>strong{display:block;margin-top:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .upload-box{border-radius:var(--sstf-r-s);border-color:#b7c8e0;background:#fff}
:where(.sstf-flow,.sstf-admin) .upload-box svg{color:var(--flow-blue)}
:where(.sstf-flow,.sstf-admin) .has-customer-offer .product-table-section{display:none}
:where(.sstf-flow,.sstf-admin) .download-menu>summary{font-size:var(--sstf-t-body);color:#394963}
@media (max-width:680px){:where(.sstf-flow,.sstf-admin) main{padding:var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) header{flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.sstf-flow,.sstf-admin) .pricing-grid{grid-template-columns:1fr}

:where(.sstf-flow,.sstf-admin) .order-actions{gap:10px}
:where(.sstf-flow,.sstf-admin) .order-actions>button{flex:1}
:where(.sstf-flow,.sstf-admin) .pricing-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.sstf-flow,.sstf-admin) .row-actions>div{min-width:130px;flex-direction:column}
:where(.sstf-flow,.sstf-admin) .choices.c3{gap:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .choice{min-height:86px;padding:var(--sstf-space-3) var(--sstf-space-2)}
}
@media (prefers-reduced-motion:reduce){
:where(.sstf-flow,.sstf-admin) button{transition:none}
}
@media print{
:where(.sstf-flow,.sstf-admin) .work-next,:where(.sstf-flow,.sstf-admin) .work-cancel,:where(.sstf-flow,.sstf-admin) .download-menu,:where(.sstf-flow,.sstf-admin) .row-actions,:where(.sstf-flow,.sstf-admin) button{display:none}
:where(.sstf-flow,.sstf-admin) main{padding:0}

:where(.sstf-flow,.sstf-admin) th{background:#fff}
}
:where(.sstf-flow,.sstf-admin) .upload-box{position:relative;cursor:default;text-align:center}
:where(.sstf-flow,.sstf-admin) .upload-box .image-preview{order:0;width:100%;max-width:420px;height:auto;max-height:280px;object-fit:contain;border:0;border-radius:var(--sstf-r-s);margin:0 0 var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .upload-box.has-image .upload-placeholder{display:none}
:where(.sstf-flow,.sstf-admin) .image-upload-label{margin:0;cursor:pointer;font-weight:700;position:relative}
:where(.sstf-flow,.sstf-admin) .image-file-input{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);padding:0;border:0}
:where(.sstf-flow,.sstf-admin) .upload-box:focus-within .image-upload-label{outline:3px solid #a7c5fa;outline-offset:3px}
:where(.sstf-flow,.sstf-admin) #upload-state{font-size:var(--sstf-t-small);margin:0;}
:where(.sstf-flow,.sstf-admin) #upload-state:empty{display:none}
:where(.sstf-flow,.sstf-admin) .change-list{margin:22px 0}
:where(.sstf-flow,.sstf-admin) .change-row{display:grid;grid-template-columns:minmax(120px,1fr) 3fr;gap:20px;border-bottom:1px solid var(--flow-line);padding:var(--sstf-space-4) 0}
:where(.sstf-flow,.sstf-admin) .change-row strong,:where(.sstf-flow,.sstf-admin) .change-row small{display:block}
:where(.sstf-flow,.sstf-admin) .change-row small{margin-top:6px;color:#526077}
:where(.sstf-flow,.sstf-admin) .change-row p{margin:0 0 var(--sstf-space-2);white-space:pre-wrap;}
:where(.sstf-flow,.sstf-admin) .change-row details{margin:var(--sstf-space-2) 0 0}
:where(.sstf-flow,.sstf-admin) .change-row details p{margin-top:10px}
@media (max-width:600px){:where(.sstf-flow,.sstf-admin) .change-row{grid-template-columns:1fr;gap:10px}
:where(.sstf-flow,.sstf-admin) .upload-box{padding:20px var(--sstf-space-3)}
}
@media print{
}

/* layout components */
:where(.sstf-flow,.sstf-admin){--flow-blue:var(--sstf-brand-primary,#174a87);--flow-green:#116d3d;--flow-line:#e2e6eb;font-size:var(--sstf-t-body)}
:where(.sstf-flow,.sstf-admin) main{padding:var(--sstf-space-4) var(--sstf-space-5) 28px;min-width:0}
:where(.sstf-flow,.sstf-admin) *{min-width:0}

:where(.sstf-flow,.sstf-admin) .app-header{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sstf-space-3);padding:10px 0 14px;border-bottom:1px solid #e1e5eb}
:where(.sstf-flow,.sstf-admin) .brand-lockup{display:flex;align-items:center;gap:10px;min-width:0}
:where(.sstf-flow,.sstf-admin) .app-header .logo{width:48px;height:48px;flex:0 0 48px;margin:0;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .app-header .company-name{font-size:var(--sstf-t-card);line-height:1.3;font-weight:850;margin:0;color:#000}
:where(.sstf-flow,.sstf-admin) .app-header .company-name-ar{font-size:var(--sstf-t-small);line-height:1.6;color:#111;display:block;font-weight:700;margin:3px 0 0}

:where(.sstf-flow,.sstf-admin) .page-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .page-heading h1{font-size:var(--sstf-t-page);line-height:1.5;margin:0}
:where(.sstf-flow,.sstf-admin) .back-link{font-size:var(--sstf-t-small);display:flex;align-items:center;gap:3px;min-height:44px;text-decoration:none}
:where(.sstf-flow,.sstf-admin) .small-icon{width:20px;height:20px;flex-shrink:0}
:where(.sstf-flow,.sstf-admin) .nav-icon{width:34px;height:34px;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .app-sidebar{display:none}
:where(.sstf-flow,.sstf-admin) .mobile-nav{position:fixed;bottom:0;inset-inline:0;z-index:40;background:white;display:flex;justify-content:space-around;padding:5px 6px max(5px,env(safe-area-inset-bottom));border-top:1px solid #ddd;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .mobile-nav>a,:where(.sstf-flow,.sstf-admin) .mobile-nav>button{display:flex;flex:1;flex-direction:column;gap:2px;justify-content:center;margin:0;padding:5px 2px;border:0;border-radius:var(--sstf-r-s);box-shadow:none;background:#fff;color:#354354;font-size:var(--sstf-t-small);min-height:52px;line-height:1.4;text-decoration:none}
:where(.sstf-flow,.sstf-admin) .mobile-nav .nav-icon{height:25px;width:25px}
:where(.sstf-flow,.sstf-admin) .mobile-nav [aria-current=page]{color:#123c78;background:#edf3fc}
/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(.sstf-flow,.sstf-admin) main:has(.mobile-nav){padding-bottom:90px}
:where(.sstf-flow,.sstf-admin) .app-sheet{width:min(96vw,520px);max-height:85dvh;overflow:auto;border:1px solid #ccd3de;border-radius:var(--sstf-r-s);padding:20px;background:#fff;color:#111;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .app-sheet::backdrop{background:#18212c70}
:where(.sstf-flow,.sstf-admin) .app-sheet nav{display:grid;border:0}
:where(.sstf-flow,.sstf-admin) .app-sheet nav a{padding:14px;border:1px solid #dce2ea;text-decoration:none}
:where(.sstf-flow,.sstf-admin) .order-meta{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:var(--sstf-space-3);gap:var(--sstf-space-3);border:1px solid #e0e5eb;border-radius:var(--sstf-r-s);margin:10px 0 var(--sstf-space-4)}
:where(.sstf-flow,.sstf-admin) .order-meta small{font-size:var(--sstf-t-small);display:block}
:where(.sstf-flow,.sstf-admin) .order-meta strong{font-size:var(--sstf-t-body);display:block;line-height:1.5}

:where(.sstf-flow,.sstf-admin) .pricing-grid,:where(.sstf-flow,.sstf-admin) .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:var(--sstf-space-3) 18px}
:where(.sstf-flow,.sstf-admin) input[data-sstf-number]{max-width:200px;min-height:44px}
:where(.sstf-flow,.sstf-admin) label{margin:var(--sstf-space-2) 0;line-height:1.6}
:where(.sstf-flow,.sstf-admin) table{white-space:normal}
:where(.sstf-flow,.sstf-admin) .pricing-totals{display:table;width:100%;max-width:640px;margin:18px 0;border-collapse:collapse}
:where(.sstf-flow,.sstf-admin) .pricing-totals>div{display:table-row;font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .pricing-totals>div>span,:where(.sstf-flow,.sstf-admin) .pricing-totals>div>strong{display:table-cell;padding:10px var(--sstf-space-2);border-bottom:1px solid #e2e6eb;vertical-align:middle}
:where(.sstf-flow,.sstf-admin) .pricing-totals>div>strong{font-size:var(--sstf-t-card);text-align:end;direction:ltr;font-variant-numeric:tabular-nums;white-space:nowrap}
:where(.sstf-flow,.sstf-admin) .task-bar{position:sticky;bottom:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);background:#fff;border-top:1px solid #dce2eb;padding:10px 0 max(10px,env(safe-area-inset-bottom));box-shadow:var(--sstf-sh-card)}

:where(.sstf-flow,.sstf-admin) .task-bar:focus-within{z-index:21}

:where(.sstf-flow,.sstf-admin).is-keyboard .mobile-nav{display:none}

:where(.sstf-flow,.sstf-admin) [data-tone=danger],:where(.sstf-flow,.sstf-admin) [name=portal_action][value=disable_link]{background:#fff;color:#a1241a;border:1px solid #d3a9a5}
:where(.sstf-flow,.sstf-admin) [data-tone=danger]:hover{background:#fff2f0}

@media (min-width:960px){/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(.sstf-flow,.sstf-admin) main:has(.app-sidebar){max-width:none;margin-inline-start:210px;margin-inline-end:auto;padding-inline:28px}
:where(.sstf-flow,.sstf-admin) .app-sidebar{display:block;position:fixed;inset-inline-start:0;top:0;bottom:0;width:210px;padding:20px 14px;border-inline-end:1px solid #e2e6eb;background:white;z-index:35}
:where(.sstf-flow,.sstf-admin) .app-sidebar nav{display:grid;border:0;gap:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .app-sidebar nav a,:where(.sstf-flow,.sstf-admin) .app-sidebar nav button{display:flex;align-items:center;gap:10px;justify-content:flex-start;min-height:48px;padding:var(--sstf-space-2) var(--sstf-space-3);text-decoration:none;border:0;border-radius:var(--sstf-r-s);margin:0}
:where(.sstf-flow,.sstf-admin) .app-sidebar a[aria-current=page]{background:#edf3fc;color:#123c78}
:where(.sstf-flow,.sstf-admin) .mobile-nav{display:none}
:where(.sstf-flow,.sstf-admin).nav-small .app-sidebar{width:80px}
:where(.sstf-flow,.sstf-admin).nav-small .app-sidebar span{display:none}
:where(.sstf-flow,.sstf-admin).nav-small main{margin-inline-start:80px}
/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(.sstf-flow,.sstf-admin) main:has(.mobile-nav){padding-bottom:30px}
}
@media (max-width:600px){:where(.sstf-flow,.sstf-admin) main{padding:10px 14px var(--sstf-space-5)}
:where(.sstf-flow,.sstf-admin) .app-header .company-name{font-size:var(--sstf-t-card)}
:where(.sstf-flow,.sstf-admin) .app-header .company-name-ar{font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .app-header .logo{width:40px;height:40px;flex-basis:40px}
:where(.sstf-flow,.sstf-admin) .page-heading h1{font-size:var(--sstf-t-page)}
:where(.sstf-flow,.sstf-admin) .order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.sstf-flow,.sstf-admin) .pricing-grid,:where(.sstf-flow,.sstf-admin) .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.sstf-flow,.sstf-admin) label:has(textarea),:where(.sstf-flow,.sstf-admin) .fields label:has([name=customer_name]),:where(.sstf-flow,.sstf-admin) .fields label:has([name=phone_full]){grid-column:1/-1}
:where(.sstf-flow,.sstf-admin) .task-bar button{padding:10px var(--sstf-space-3);font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .app-sheet{margin:auto;border-radius:var(--sstf-r-l)}
:where(.sstf-flow,.sstf-admin) .pricing-totals>div>strong{font-size:var(--sstf-t-body)}
}
@media (max-width:320px){:where(.sstf-flow,.sstf-admin) .pricing-grid,:where(.sstf-flow,.sstf-admin) .fields{grid-template-columns:1fr}
:where(.sstf-flow,.sstf-admin) .app-header{flex-wrap:wrap}
:where(.sstf-flow,.sstf-admin) .order-meta{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){:where(.sstf-flow,.sstf-admin) *{scroll-behavior:auto}
}
@media print{:where(.sstf-flow,.sstf-admin) .app-sidebar,:where(.sstf-flow,.sstf-admin) .mobile-nav,:where(.sstf-flow,.sstf-admin) .task-bar,:where(.sstf-flow,.sstf-admin) .app-sheet,:where(.sstf-flow,.sstf-admin) .page-heading .back-link{display:none}
:where(.sstf-flow,.sstf-admin):has(.app-sidebar) main{margin:0;padding:0}
}

:where(.sstf-flow,.sstf-admin) .task-card{display:grid;grid-template-columns:1fr auto;align-items:center;padding:var(--sstf-space-4);text-decoration:none;gap:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .task-card strong{font-size:var(--sstf-t-page);color:#123c78}
:where(.sstf-flow,.sstf-admin) .task-card small{font-size:var(--sstf-t-small)}

:where(.sstf-flow,.sstf-admin) .refresh-link{display:grid;justify-items:center;min-height:44px;min-width:44px;font-size:var(--sstf-t-small);text-decoration:none;padding:var(--sstf-space-1)}
:where(.sstf-flow,.sstf-admin) .order-data td{border-bottom:0}
:where(.sstf-flow,.sstf-admin) .order-buttons td{padding-top:0;padding-bottom:14px}
:where(.sstf-flow,.sstf-admin) .order-buttons td>div{display:flex;flex-wrap:wrap;gap:var(--sstf-space-2);align-items:start}
:where(.sstf-flow,.sstf-admin) .order-buttons form{margin:0}
:where(.sstf-flow,.sstf-admin) .order-buttons button,:where(.sstf-flow,.sstf-admin) .order-buttons summary{margin:0;padding:var(--sstf-space-2) var(--sstf-space-3);font-size:var(--sstf-t-small);min-height:42px}

:where(.sstf-flow,.sstf-admin) .pagination{display:flex;align-items:center;justify-content:center;gap:var(--sstf-space-3);font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .pagination a{padding:var(--sstf-space-2)}
@media (max-width:380px){
:where(.sstf-flow,.sstf-admin) .task-card{padding:var(--sstf-space-3);gap:6px}
:where(.sstf-flow,.sstf-admin) .task-card strong{font-size:var(--sstf-t-page)}
}
@media (max-width:320px){
}
:where(.sstf-flow,.sstf-admin) #add-zone{display:flex;flex-wrap:wrap;gap:var(--sstf-space-2);align-items:center}
:where(.sstf-flow,.sstf-admin) #add-zone button,:where(.sstf-flow,.sstf-admin) #add-zone label{margin:0}
:where(.sstf-flow,.sstf-admin) #batch-state{flex:1 1 100%;font-size:var(--sstf-t-small);margin:var(--sstf-space-1) 0}
:where(.sstf-flow,.sstf-admin) .quick-editor [data-step]>.eyebrow{display:none}
:where(.sstf-flow,.sstf-admin) .quick-editor .wizard-body{display:grid;grid-template-columns:1fr 1fr;gap:20px}
:where(.sstf-flow,.sstf-admin) .quick-editor .title{font-size:var(--sstf-t-card)}
:where(.sstf-flow,.sstf-admin) .quick-editor [data-step="3"],:where(.sstf-flow,.sstf-admin) .quick-editor [data-step="4"]{grid-column:1/-1}
:where(.sstf-flow,.sstf-admin) .quick-editor .wizard-foot{z-index:22;background:#fff}
:where(.sstf-flow,.sstf-admin) .quick-editor .upload-box{padding:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .quick-editor [data-step="1"]{order:-1}
:where(.sstf-flow,.sstf-admin) .quick-editor .image-preview{max-height:160px}
@media (max-width:600px){:where(.sstf-flow,.sstf-admin) .quick-editor .wizard-body{grid-template-columns:1fr}
:where(.sstf-flow,.sstf-admin) .quick-editor .wizard-body [data-step]{grid-column:1}
}
:where(.sstf-flow,.sstf-admin) .diff-added{background:#f1faf4;border-inline-start:3px solid #217345;padding-inline:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .diff-removed{background:#fff7f5;border-inline-start:3px solid #b1463b;padding-inline:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .diff-removed>div>strong{text-decoration:line-through}
:where(.sstf-flow,.sstf-admin) .diff-changed{border-inline-start:3px solid #a95513;padding-inline:var(--sstf-space-3)}

:where(.sstf-flow,.sstf-admin) .alternative-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #dce2eb}
:where(.sstf-flow,.sstf-admin) .alternative-row img{width:90px;height:90px;object-fit:contain}
:where(.sstf-flow,.sstf-admin) .alternative-row p{flex:1 1 180px}
:where(.sstf-flow,.sstf-admin) .alternative-row button{margin:0}
:where(.sstf-flow,.sstf-admin) .fx-box{border:1px solid #cbd9ee;border-radius:var(--sstf-r-s);padding:14px;margin:var(--sstf-space-3) 0 22px}
:where(.sstf-flow,.sstf-admin) .fx-box h3{font-size:var(--sstf-t-card);margin:0 0 var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .fx-box p{font-size:var(--sstf-t-small);max-width:650px}
:where(.sstf-flow,.sstf-admin) #fx-preview{display:block;direction:ltr;unicode-bidi:isolate;text-align:start;font-weight:750;color:#123c78;}

:where(.sstf-flow,.sstf-admin) .pricing-table-wrap table{min-width:0}
:where(.sstf-flow,.sstf-admin) .pricing-table-wrap input{width:110px}
:where(.sstf-flow,.sstf-admin) .pricing-table-wrap select{width:115px}
:where(.sstf-flow,.sstf-admin) .supplier-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .supplier-summary label:has(textarea){grid-column:1/-1}
:where(.sstf-flow,.sstf-admin) .supplier-progress{font-size:var(--sstf-t-small);font-weight:700;color:#123c78;margin:var(--sstf-space-2) 0}
:where(.sstf-flow,.sstf-admin) .supplier-summary p{display:flex;justify-content:space-between;gap:var(--sstf-space-3);grid-column:1/-1;border-bottom:1px solid #e1e5ec;margin:0;padding:var(--sstf-space-2) 0}

@media print{
}
:where(.sstf-flow,.sstf-admin) .task-card>span{display:flex;align-items:center;gap:6px}
:where(.sstf-flow,.sstf-admin) .task-card .nav-icon{width:26px;height:26px}
:where(.sstf-flow,.sstf-admin) [hidden],.sstf-admin [hidden]{display:none}
:where(.sstf-flow,.sstf-admin) .inbox-compact{padding:10px 0;font-size:var(--sstf-t-small);border-top:1px solid #dce2eb}
:where(.sstf-flow,.sstf-admin) .inbox-compact a{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .offer-view-status{font-size:var(--sstf-t-body);color:#555;}
:where(.sstf-flow,.sstf-admin) .offer-view-status.is-viewed{color:#07579a}

:where(.sstf-flow,.sstf-admin) #batch-add{min-height:46px}
@media (max-width:480px){:where(.sstf-flow,.sstf-admin) #batch-add{flex:1 1 100%;width:100%}
}

/* app components */
:where(.sstf-flow,.sstf-admin) .app-tools{display:flex;justify-content:flex-end;margin:0 0 var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .app-tools button{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 10px;font-size:var(--sstf-t-small)}
:where(.sstf-flow,.sstf-admin) .app-tools .nav-icon{width:34px;height:34px;max-width:80%;max-height:80%;object-fit:contain}
:where(.sstf-flow,.sstf-admin) #sstf-update-count{background:#a62922;color:#fff;border-radius:var(--sstf-r-s);padding:1px 5px}
:where(.sstf-flow,.sstf-admin) .app-sheet#sstf-app-panel{box-sizing:border-box;width:min(94vw,520px);max-height:85dvh;overflow:auto;padding:18px;border:1px solid #d8dce2;border-radius:var(--sstf-r-s);background:#fff;color:#111}

:where(.sstf-flow,.sstf-admin) .app-update-toast[hidden]{display:none}
:where(.sstf-flow,.sstf-admin) #sstf-notification-status,:where(.sstf-flow,.sstf-admin) #sstf-install-status{line-height:1.7;}
:where(.sstf-flow,.sstf-admin) #sstf-app-panel hr{border:0;border-top:1px solid #ddd;margin:18px 0}
:where(.sstf-flow,.sstf-admin) #sstf-app-panel::backdrop{background:#0005}
@media print{:where(.sstf-flow,.sstf-admin) .app-tools,:where(.sstf-flow,.sstf-admin) .app-update-toast,:where(.sstf-flow,.sstf-admin) #sstf-app-panel{display:none}
}

}
@layer sstf-design {
/* app-tokens:start */
:root{--sstf-brand-primary:#174a87;--sstf-brand-primary-deep:#123f73;--sstf-brand-primary-soft:#edf4fb;--sstf-brand-surface:#fff;--sstf-brand-on-primary:#fff;--sstf-brand-on-surface:#111;--sstf-text-muted:#5f6d7c}
.sstf-flow{
 --ui-bg:#fff;--ui-ink:#111;--ui-muted:var(--sstf-text-muted,#5f6d7c);--ui-line:#dce2ea;
 --ui-primary:var(--sstf-brand-primary,#174a87);--ui-primary-soft:var(--sstf-brand-primary-soft,#edf4fb);--ui-green:#116d3d;--ui-danger:#a12b23;--ui-warning:#8a430e;
 --ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,"Microsoft YaHei",sans-serif;
 --ui-space:8px;--ui-app-height:76px;--ui-nav-height:76px;--ui-nav-offset:0px;--ui-sidebar:0px;
 --flow-blue:var(--ui-primary);--flow-blue-soft:var(--ui-primary-soft);--flow-green:var(--ui-green);--flow-orange:var(--ui-warning);--flow-red:var(--ui-danger);--flow-line:var(--ui-line);--ink:var(--ui-ink);--line:var(--ui-line);--mut:var(--ui-muted);
 margin:0;background:var(--ui-bg);color:var(--ui-ink);font:400 var(--sstf-t-card)/1.65 var(--ui-font);color-scheme:light;text-align:start;-webkit-text-size-adjust:100%;
}
/* app-tokens:end */
:where(.sstf-flow,.sstf-admin) *, :where(.sstf-flow,.sstf-admin) *::before, :where(.sstf-flow,.sstf-admin) *::after{box-sizing:border-box;min-inline-size:0}
:where(.sstf-flow,.sstf-admin) [hidden]{display:none!important}
.sstf-flow:has(.mobile-nav),.sstf-flow.has-store-nav{--ui-nav-offset:calc(var(--ui-nav-height) + env(safe-area-inset-bottom,0px))}
.sstf-flow main{max-width:1400px;width:auto;margin:0 auto;padding:calc(var(--ui-app-height) + 16px) 20px calc(var(--ui-nav-offset) + 24px);background:var(--ui-bg);font:inherit}
/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */.sstf-flow main:has(.app-sidebar),.sstf-flow.has-store-nav main{margin-inline-start:var(--ui-sidebar);max-width:none}

:where(.sstf-flow,.sstf-admin) h1{font:800 var(--sstf-t-page)/1.45 var(--ui-font);margin:0}
:where(.sstf-flow,.sstf-admin) h2{font:750 var(--sstf-t-page)/1.5 var(--ui-font);margin:0 0 var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) h3{font:700 var(--sstf-t-card)/1.6 var(--ui-font);margin:0 0 var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) p{margin:var(--sstf-space-2) 0 var(--sstf-space-4);color:var(--ui-muted);line-height:1.8}
:where(.sstf-flow,.sstf-admin) small{font-size:var(--sstf-t-small);color:var(--ui-muted);line-height:1.65}
/* Plain-link defaults must not outrank semantic button and WhatsApp colors. */
:where(.sstf-flow,.sstf-admin) :where(a){color:var(--ui-primary);text-decoration:none}
:where(.sstf-flow,.sstf-admin) :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #4075be;outline-offset:3px}
:where(.sstf-flow,.sstf-admin) :where(button,.flow-button,.button,.reminder){font:650 var(--sstf-t-body)/1.5 var(--ui-font);display:inline-flex;align-items:center;justify-content:center;gap:var(--sstf-space-2);min-height:48px;padding:10px var(--sstf-space-4);max-width:100%;margin:0;border:1px solid transparent;border-radius:var(--sstf-r-s);background:var(--ui-primary);color:#fff;box-shadow:var(--sstf-sh-card);text-align:center;text-decoration:none;cursor:pointer;touch-action:manipulation;transition:background .14s,transform .12s,box-shadow .14s}
:where(.sstf-flow,.sstf-admin) :where(button,.flow-button,.button):hover:not(:disabled){filter:brightness(.97);box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) :where(button,.flow-button,.button):active:not(:disabled){transform:translateY(1px) scale(.985);box-shadow:none}
:where(.sstf-flow,.sstf-admin) :where(button:disabled,[aria-disabled=true]){opacity:.55;cursor:not-allowed}
:where(.sstf-flow,.sstf-admin) :where([data-tone=warning],.flow-button.warning,[data-act=edit],[name=review_action][value=return],[name=supplier_admin_action][value=return],[name=answer][value=change],#request-revision){background:#fff5e9;color:var(--ui-warning);border-color:#d7ba96}
:where(.sstf-flow,.sstf-admin) :where(.danger,[data-tone=danger],[data-act=delete],[name=review_action][value=cancel],[name=answer][value=reject],[name=supplier_admin_action][value=disable],[name=portal_action][value=disable_link]){background:#fff;color:var(--ui-danger);border-color:#d8b2af}
:where(.sstf-flow,.sstf-admin) :where(a[href^="https://wa.me/"],.whatsapp){display:inline-flex;align-items:center;justify-content:center;gap:var(--sstf-space-2);min-height:48px;padding:10px var(--sstf-space-4);background:var(--ui-green);color:#fff;border:1px solid var(--ui-green);border-radius:var(--sstf-r-s);font-weight:700;text-decoration:none}
:where(.sstf-flow,.sstf-admin) :where(input,select,textarea){appearance:none;display:block;width:100%;min-height:48px;margin:6px 0 0;padding:10px var(--sstf-space-3);border:1px solid #bac5d2;border-radius:var(--sstf-r-s);background:#fff;color:var(--ui-ink);font:400 var(--sstf-t-card)/1.5 var(--ui-font);box-shadow:none}
:where(.sstf-flow,.sstf-admin) select{appearance:auto;padding-inline-end:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) textarea{min-height:100px;resize:vertical}
:where(.sstf-flow,.sstf-admin) input:disabled{color:#4b5563;background:#fafbfc;opacity:1}
:where(.sstf-flow,.sstf-admin) input[aria-invalid=true]{border-color:var(--ui-danger)}
:where(.sstf-flow,.sstf-admin) :where(input[type=checkbox],input[type=radio]){appearance:auto;display:inline-block;width:22px;min-width:22px;height:22px;min-height:22px;vertical-align:middle;margin:0;accent-color:var(--ui-primary);box-shadow:none}
:where(.sstf-flow,.sstf-admin) label:has(>input[type=checkbox]),:where(.sstf-flow,.sstf-admin) label:has(>input[type=radio]){display:flex;align-items:center;gap:10px;min-height:44px}
:where(.sstf-flow,.sstf-admin) :where(label,legend){font:650 var(--sstf-t-body)/1.7 var(--ui-font);margin:var(--sstf-space-2) 0}
:where(.sstf-flow,.sstf-admin) :where([dir=ltr],input[data-sstf-number],output){font-variant-numeric:tabular-nums;unicode-bidi:isolate}
:where(.sstf-flow,.sstf-admin) :where(.fields,.pricing-grid,.account-fields){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:var(--sstf-space-3) var(--sstf-space-4);align-items:start}
:where(.sstf-flow,.sstf-admin) :where(.fields,.pricing-grid,.account-fields)>label:has(textarea){grid-column:1/-1}
:where(.sstf-flow,.sstf-admin) input[data-sstf-number]{max-width:220px;min-width:0}
:where(.sstf-flow,.sstf-admin) :where(section section,.pricing-panel section,.review-panel section){box-shadow:none}
:where(.sstf-flow,.sstf-admin) :where(.notice,.pricing-reminder,.supplier-reminder,.action-notice,.pricing-warning){border:1px solid #d7ba96;border-inline-start:4px solid var(--ui-warning);border-radius:var(--sstf-r-s);padding:14px var(--sstf-space-4);margin:var(--sstf-space-4) 0;background:#fff;box-shadow:none}
:where(.sstf-flow,.sstf-admin) [role=alert]{border-color:#d8b2af;border-inline-start-color:var(--ui-danger)}
:where(.sstf-flow,.sstf-admin) .order-meta{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:14px;gap:var(--sstf-space-3);border:1px solid var(--ui-line);border-radius:var(--sstf-r-m);margin:var(--sstf-space-3) 0 var(--sstf-space-4);background:#fff;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .order-meta small{display:block;font-size:var(--sstf-t-small)}.order-meta strong{display:block;margin-top:2px;font-size:var(--sstf-t-body);font-weight:750;color:#111}
:where(.sstf-flow,.sstf-admin) footer{padding:18px 0;margin:var(--sstf-space-4) 0 0;font-size:var(--sstf-t-small);text-align:center;color:var(--ui-muted);border:0}
/* App shell: measured header, safe areas, one navigation row, edge drawer. */
.sstf-flow .app-header{position:fixed;inset-block-start:0;inset-inline:0;z-index:50;display:flex;align-items:center;flex-wrap:nowrap;gap:var(--sstf-space-2);padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;min-height:76px;background:#fff;border-bottom:1px solid var(--ui-line);box-shadow:var(--sstf-sh-card)}
.sstf-flow .brand-lockup{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
.sstf-flow .brand-lockup>div{min-width:0}.sstf-flow .app-header .logo{width:44px;height:44px;max-height:44px;flex:0 0 44px;object-fit:contain;margin:0}
.sstf-flow .app-header .company-name{display:block;margin:0;font-size:var(--sstf-t-card);font-weight:850;line-height:1.4;text-align:start;color:#000}
.sstf-flow .app-header .company-name-ar{display:block;font-size:var(--sstf-t-small);line-height:1.5;font-weight:700;margin:3px 0 0;color:#111}
.sstf-flow .app-back,.sstf-flow .app-header .app-settings-open{width:44px;min-width:44px;min-height:44px;height:44px;padding:var(--sstf-space-2);display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);background:#fff;color:var(--ui-primary);box-shadow:none}
.sstf-flow .app-tools{margin:0;padding:0;flex:0 0 44px;display:flex}.sstf-flow .app-settings-open{position:relative}
.sstf-flow .small-icon{width:24px;height:24px;flex-shrink:0}.sstf-flow [dir=rtl] .icon-back,.sstf-flow:dir(rtl) .icon-back{transform:scaleX(-1)}
.sstf-flow .nav-icon{display:block;width:32px;height:32px;flex:0 0 32px;object-fit:contain;margin:0}
.sstf-flow .page-heading{display:flex;align-items:center;gap:var(--sstf-space-3);margin:0 0 var(--sstf-space-4);padding:0;border:0;min-height:32px}
.sstf-flow .app-skip{position:fixed;top:-200px;z-index:200;background:#fff;padding:var(--sstf-space-3)}.sstf-flow .app-skip:focus{top:0}
.sstf-flow .mobile-nav,.sstf-flow .store-bottom-nav{position:fixed;inset-inline:0;inset-block-end:0;z-index:45;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch;gap:var(--sstf-space-1);padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));min-height:var(--ui-nav-height);margin:0;background:#fff;border:0;border-top:1px solid var(--ui-line);box-shadow:var(--sstf-sh-card);overflow:visible}
.sstf-flow :where(.mobile-nav,.store-bottom-nav)>:where(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sstf-space-1);padding:5px 2px;margin:0;min-height:62px;font:600 var(--sstf-t-small)/1.5 var(--ui-font);text-align:center;border:0;border-radius:var(--sstf-r-s);background:#fff;color:var(--ui-muted);box-shadow:none}
.sstf-flow :where(.mobile-nav,.store-bottom-nav) :where(.nav-icon,.small-icon){width:32px;height:32px;flex:0 0 32px;display:block;margin:0 auto}
.sstf-flow :where(.mobile-nav,.store-bottom-nav)>[aria-current]{background:var(--ui-primary-soft);color:var(--ui-primary);box-shadow:inset 0 3px 0 var(--ui-primary)}
.sstf-flow :where(.app-sidebar,.store-sidebar){display:none}
.sstf-flow :where(dialog,.app-sheet){inset:0;margin:auto;width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:20px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-m);background:#fff;color:var(--ui-ink);box-shadow:var(--sstf-sh-card);overflow:auto;overscroll-behavior:contain;font:400 var(--sstf-t-card)/1.65 var(--ui-font)}
.sstf-flow dialog::backdrop{background:#17233370}.sstf-flow:has(dialog[open]){overflow:hidden}
.sstf-flow .app-drawer{inset-block:0;inset-inline-start:0;inset-inline-end:auto;margin:0;width:min(86vw,320px);height:100dvh;max-height:100dvh;padding:calc(16px + env(safe-area-inset-top,0px)) 12px calc(16px + env(safe-area-inset-bottom,0px));border:0;border-inline-end:1px solid var(--ui-line);border-radius:0;box-shadow:var(--sstf-sh-card)}
.sstf-flow .drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);padding:0 var(--sstf-space-2) var(--sstf-space-4);margin-bottom:var(--sstf-space-2);border-bottom:1px solid var(--ui-line)}
.sstf-flow .drawer-heading strong{font-size:var(--sstf-t-page)}.sstf-flow .app-drawer nav{display:grid;padding:0;gap:6px;border:0}
.sstf-flow .app-drawer nav a{display:flex;align-items:center;gap:var(--sstf-space-3);padding:10px var(--sstf-space-3);border:0;border-radius:var(--sstf-r-s);min-height:52px;background:#fff;color:#273548;text-decoration:none;font-size:var(--sstf-t-body)}
.sstf-flow .app-drawer nav a[aria-current]{background:var(--ui-primary-soft);color:var(--ui-primary);font-weight:750}.sstf-flow #sstf-update-count{position:absolute;top:-4px;inset-inline-end:-5px;min-width:20px;padding:1px var(--sstf-space-1);background:var(--ui-danger);color:white;border-radius:var(--sstf-r-s);font-size:var(--sstf-t-small);line-height:18px}
/* One positioning model: no legacy top/50% translation competing with the bottom anchor. */
.sstf-flow .app-update-toast{position:fixed;inset:auto;inset-inline:12px;bottom:max(calc(var(--ui-nav-offset,var(--ui-nav-height,76px)) + 12px),calc(env(safe-area-inset-bottom,0px) + 88px));/* R142 (بلاغ المالك 2/11): التنبيه كان يختفي خلف الشريط السفلي حين لا تُضبط إزاحة الشريط */transform:none;width:auto;height:auto;min-width:0;max-width:580px;box-sizing:border-box;margin:0 auto;z-index:60;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px;background:#fff;color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:var(--sstf-r-m);box-shadow:var(--sstf-sh-card)}
.sstf-flow .app-update-toast>span{grid-column:1/-1;min-width:0;max-height:min(160px,25dvh);overflow:auto;overscroll-behavior:contain;white-space:normal;font:400 var(--sstf-t-body)/1.6 var(--ui-font)}
.sstf-flow .app-update-toast>:is(a,button){min-width:0;min-height:44px;margin:0;padding:var(--sstf-space-2) 14px;font-size:var(--sstf-t-body);white-space:normal;}
.sstf-flow .work-more{position:relative;padding:0}.sstf-flow .work-more>summary{padding:9px var(--sstf-space-3)}.sstf-flow .work-more>div{z-index:30;inset-inline-end:0;inset-inline-start:auto;max-width:min(280px,80vw);padding:6px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);box-shadow:var(--sstf-sh-card);background:white}
.sstf-flow summary{min-height:44px;cursor:pointer;font-size:var(--sstf-t-body);line-height:1.7;padding-block:var(--sstf-space-2)}
.sstf-flow .task-bar{position:sticky;bottom:var(--ui-nav-offset);z-index:25;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:var(--sstf-space-4) 0 0;padding:var(--sstf-space-3);background:#fff;border:1px solid var(--ui-line);border-radius:var(--sstf-r-m);box-shadow:var(--sstf-sh-card)}
.sstf-flow .wizard-foot,.sstf-flow .quick-editor .wizard-foot{z-index:25;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:var(--sstf-space-4) 0 0;padding:var(--sstf-space-3);background:#fff;border:1px solid var(--ui-line);border-radius:var(--sstf-r-m);box-shadow:var(--sstf-sh-card)}
.sstf-flow .task-bar :where(button,output){margin:0;max-width:100%}
.sstf-flow.is-keyboard{--ui-nav-offset:0px}.sstf-flow.is-keyboard :where(.mobile-nav,.store-bottom-nav){visibility:hidden;pointer-events:none}.sstf-flow.is-keyboard :where(.task-bar,.wizard-foot){position:static}

.sstf-flow .task-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--sstf-space-2);min-height:116px;padding:var(--sstf-space-4);text-decoration:none}
.sstf-flow .task-card>span{display:flex;align-items:center;gap:var(--sstf-space-2);font-size:var(--sstf-t-body);color:#17293e}.sstf-flow .task-card>strong{font-size:var(--sstf-t-page);color:var(--ui-primary)}.sstf-flow .task-card small{font-size:var(--sstf-t-small);grid-column:1/-1}.sstf-flow .task-card .nav-icon{width:34px;height:34px}.sstf-flow .store-cards .task-card>strong{font-size:var(--sstf-t-page)}
.sstf-flow .country-trigger,.sstf-flow .country-option,.sstf-flow .brand-results button{background:#fff;color:#17293e;border:1px solid var(--ui-line);box-shadow:none;text-align:start;justify-content:space-between}
.sstf-flow .country-option{justify-content:flex-start;width:100%;min-height:44px}.sstf-flow .country-option.is-active,.sstf-flow .country-option[aria-selected=true]{background:var(--ui-primary-soft)}
.sstf-flow .country-popup{z-index:35;border-radius:var(--sstf-r-m)}.sstf-flow .country-list{max-height:240px;scrollbar-width:thin}
.sstf-flow .login{max-width:460px;margin:24px auto;padding:var(--sstf-space-5)}.sstf-flow .login button[type=submit],.sstf-flow .login form>button{width:100%;margin-top:var(--sstf-space-4)}

.sstf-flow .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:960px){
 .sstf-flow:has(.app-sidebar),.sstf-flow.has-store-nav{--ui-sidebar:232px;--ui-nav-offset:0px}
 .sstf-flow.nav-small{--ui-sidebar:84px}
 .sstf-flow .app-header{inset-inline-start:var(--ui-sidebar);padding-inline:var(--sstf-space-5)}
 .sstf-flow main{padding-inline:28px}.sstf-flow .mobile-nav:not(.public-nav),.sstf-flow .store-bottom-nav{display:none}
 .sstf-flow .public-nav{inset-inline-start:auto;width:360px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);bottom:12px;inset-inline-end:20px}
 .sstf-flow :where(.app-sidebar,.store-sidebar){display:block;position:fixed;inset-block:0;inset-inline-start:0;width:var(--ui-sidebar);padding:var(--sstf-space-4) var(--sstf-space-3);background:#fff;border-inline-end:1px solid var(--ui-line);z-index:55;overflow-y:auto;scrollbar-width:thin}
 .sstf-flow .app-sidebar nav{display:grid;gap:5px;padding:var(--sstf-space-4) 0;border:0}.sstf-flow :where(.app-sidebar nav,.store-sidebar)>:where(a,button){display:flex;align-items:center;gap:var(--sstf-space-3);min-height:52px;padding:10px var(--sstf-space-3);margin:0;background:white;border:0;color:#273548;text-decoration:none;border-radius:var(--sstf-r-s);font-size:var(--sstf-t-body);box-shadow:none}
 .sstf-flow :where(.app-sidebar,.store-sidebar) a[aria-current]{background:var(--ui-primary-soft);color:var(--ui-primary);font-weight:750}.sstf-flow .nav-collapse{width:100%;min-height:48px;padding:var(--sstf-space-2)}.sstf-flow.nav-small .app-sidebar span{display:none}.sstf-flow.nav-small .app-sidebar a{justify-content:center;padding:var(--sstf-space-2)}
}
@media(max-width:600px){
 .sstf-flow main{padding-inline:var(--sstf-space-3)}.sstf-flow .app-header{padding-inline:10px;gap:6px}.sstf-flow .brand-lockup{gap:7px}.sstf-flow .app-header .logo{width:40px;height:40px;flex-basis:40px}.sstf-flow .app-header .company-name{font-size:var(--sstf-t-card)}.sstf-flow .app-header .company-name-ar{font-size:var(--sstf-t-small)}
 .sstf-flow .page-heading h1{font-size:var(--sstf-t-page)}.sstf-flow :where(section,.pricing-panel,.review-panel,.finance-record){padding:var(--sstf-space-4);margin:var(--sstf-space-3) 0}
 .sstf-flow .order-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.sstf-flow .order-meta strong{font-size:var(--sstf-t-body)}
 .sstf-flow :where(.fields,.pricing-grid,.account-fields){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px var(--sstf-space-3)}
 .sstf-flow :where(.fields,.account-fields)>label:has([name=customer_name]),.sstf-flow :where(.fields,.account-fields)>label:has([name=phone_full]),.sstf-flow :where(.fields,.account-fields)>label:has([name=reason]){grid-column:1/-1}
 .sstf-flow input[data-sstf-number]{max-width:100%}.sstf-flow .task-card{padding:var(--sstf-space-3);gap:6px}.sstf-flow .task-card>span{flex-wrap:wrap;font-size:var(--sstf-t-small)}.sstf-flow .task-card>strong{font-size:var(--sstf-t-page)}
 .sstf-flow .task-card .nav-icon{width:32px;height:32px}.sstf-flow .task-bar :where(button,.flow-button){flex:1 1 120px;padding-inline:10px}.sstf-flow .task-bar output{flex:1 1 100%}
 .sstf-flow :where(dialog,.app-sheet):not(.app-drawer){padding:var(--sstf-space-4);width:calc(100vw - 24px)}
}
@media(max-width:340px){.sstf-flow .brand-lockup .logo{width:34px;height:34px;flex-basis:34px}.sstf-flow .brand-lockup .company-name{font-size:var(--sstf-t-body)}.sstf-flow .app-header .company-name-ar{font-size:var(--sstf-t-small)}.sstf-flow .task-card{padding:10px}.sstf-flow :where(.fields,.pricing-grid,.account-fields){grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.sstf-flow .page-heading~section,.sstf-flow #work-content{animation:sstf-enter .16s ease-out}.sstf-flow .app-drawer[open]{animation:sstf-drawer .18s ease-out}@keyframes sstf-enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes sstf-drawer{from{opacity:.6;transform:translateX(16px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.sstf-flow *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
 .sstf-flow{--ui-nav-offset:0px;--ui-sidebar:0px}.sstf-flow main,.sstf-flow:has(.app-sidebar) main,.sstf-flow.has-store-nav main{margin:0;padding:0;max-width:none}
 .sstf-flow :where(section,.pricing-panel,.review-panel,.finance-record){box-shadow:none;border-color:#bbb;padding:10px;break-inside:auto}
}
}

@media(prefers-reduced-motion:no-preference){@view-transition{navigation:auto;}}

@layer sstf-design {
/* Orders: compact rows on desktop; one coherent order card on mobile. */

.sstf-flow .refresh-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:3px;min-height:48px;min-width:44px;font-size:var(--sstf-t-small);border:0}.sstf-flow .order-data td{border-bottom:0}.sstf-flow .order-buttons td{padding-top:0;padding-bottom:var(--sstf-space-4)}
.sstf-flow .order-buttons td>div{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;align-items:start}.sstf-flow .order-buttons :where(form,details,button,.flow-button){margin:0}
.sstf-flow .order-buttons :where(button,.flow-button,summary){min-height:44px;font-size:var(--sstf-t-small);padding:9px var(--sstf-space-3)}
.sstf-flow .row-actions{position:relative;margin:0;padding:0;border:0}.sstf-flow .row-actions>summary{display:flex;align-items:center;justify-content:center;gap:var(--sstf-space-2);padding:10px 14px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);min-height:48px;color:#273548;background:white;list-style:none}
.sstf-flow .row-actions>summary::after{content:'⌄';font-size:var(--sstf-t-card)}.sstf-flow .row-actions>div,.sstf-flow .row-actions>form{position:absolute;z-index:30;inset-inline-start:0;min-width:200px;max-width:min(280px,80vw);display:grid;gap:var(--sstf-space-2);padding:10px;margin-top:6px;background:white;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);box-shadow:var(--sstf-sh-card)}
.sstf-flow .task-bar .row-actions>div,.sstf-flow .task-bar .row-actions>form{bottom:100%;margin:0 0 6px}.sstf-flow .row-actions:not([open])>:not(summary){display:none}
.sstf-flow :where(.state-badge,.account-status){display:inline-flex;align-items:center;min-height:28px;padding:var(--sstf-space-1) var(--sstf-space-2);border-radius:var(--sstf-r-s);font-size:var(--sstf-t-small);line-height:1.6;white-space:normal;background:#eef1f5;color:#374151}
.sstf-flow .pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:var(--sstf-space-3);padding:var(--sstf-space-2) 0;border:0;font-size:var(--sstf-t-small)}.sstf-flow .pagination a{min-height:44px;padding:var(--sstf-space-2) var(--sstf-space-3);border:1px solid var(--ui-line);border-radius:var(--sstf-r-s)}
/* Financial results use aligned label/amount rows, preserving calculation values. */
.sstf-flow .pricing-totals{display:block;width:100%;max-width:740px;margin:var(--sstf-space-4) 0;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);overflow:hidden;background:white}
.sstf-flow .pricing-totals>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,45%);gap:var(--sstf-space-3);align-items:center;padding:11px 14px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;font-size:var(--sstf-t-body);background:white}
.sstf-flow .pricing-totals>div>span,.sstf-flow .pricing-totals>div>strong{display:block;padding:0;border:0;min-width:0;white-space:normal}
.sstf-flow .pricing-totals>div>strong{font-size:var(--sstf-t-card);text-align:end;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.sstf-flow .pricing-totals>div:last-child{border-bottom:0;background:#f6f9fd;font-weight:750}.sstf-flow .pricing-totals .loss{color:var(--ui-danger)}
.sstf-flow table{white-space:normal}.sstf-flow :where(td,th){text-align:start}.sstf-flow .pricing-table-wrap{max-width:100%;margin:var(--sstf-space-4) 0;overflow:auto;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s)}
.sstf-flow .pricing-table-wrap table{width:100%;min-width:0;table-layout:auto;border-collapse:collapse}
.sstf-flow .pricing-table-wrap :where(td,th){padding:var(--sstf-space-3) var(--sstf-space-2);border-bottom:1px solid var(--ui-line);vertical-align:middle;text-align:start;font-size:var(--sstf-t-small);color:var(--ui-ink);background:white}
.sstf-flow .pricing-table-wrap th{color:var(--ui-muted);font-size:var(--sstf-t-small)}.sstf-flow .pricing-table-wrap :where(input,select){width:100%;max-width:180px;min-width:88px;font-size:var(--sstf-t-card)}
.sstf-flow .review-thumb,.sstf-flow .supplier-review-table img{width:64px;height:64px;object-fit:contain;border-radius:var(--sstf-r-s);background:white}
.sstf-flow .supplier-review-table{width:100%;table-layout:auto;min-width:0}.sstf-flow .supplier-review-table th{background:#fff;color:var(--ui-muted)}

.sstf-flow .review-panel{padding:0}.sstf-flow .review-panel-heading{padding:0 0 10px}.sstf-flow .review-panel-heading :where(h2,p){margin:0}.sstf-flow .review-panel-heading p{font-size:var(--sstf-t-small)}
.sstf-flow .review-form{display:grid;gap:var(--sstf-space-3)}.sstf-flow .order-customer-access-form{display:block;width:100%;margin:10px 0}.sstf-flow .customer-access-renew{--warning-fill:radial-gradient(ellipse at 25% 15%,#fff7df 0%,#ffd19a 25%,#ffb578 55%,var(--tf-orange) 100%);width:100%}.sstf-flow .product-review-cell{display:block;grid-column:1/-1;padding:0 10px 10px}.sstf-flow .review-product-controls .review-tag{--control-padding:4px;--control-height:36px;flex:0 0 40px;min-width:0}.sstf-flow .review-product-controls .review-tag img{display:block;width:28px;height:28px;object-fit:contain}.sstf-flow .review-general-note-trigger{--control-font-size:17px;--control-height:58px;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:58px;margin:0;padding:var(--sstf-space-3) var(--sstf-space-4);border-radius:var(--sstf-r-m);background:linear-gradient(135deg,#1766a7,#174a87);color:#fff;font-size:var(--sstf-t-card);font-weight:900;text-align:start}
.sstf-flow .review-product-controls{grid-column:1/-1;display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:var(--sstf-space-2)}.sstf-flow .review-tag{--control-font-size:var(--sstf-t-small);--control-height:32px;--control-padding:5px 8px;display:inline-flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);flex:1 1 110px;min-height:34px;margin:0;padding:6px 9px;border:1px solid #cfdce7;border-radius:var(--sstf-radius-pill);background:#fff;color:#174f88;font-size:var(--sstf-t-small);font-weight:850}.sstf-flow .review-status-tag{background:#eef6fd}.sstf-flow .review-tag b{font-size:var(--sstf-t-small)}
.sstf-flow .review-totals{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:var(--sstf-space-3) 14px;border:1px solid #cfe0ee;border-radius:var(--sstf-r-m);background:#edf5fc;color:#173d67;font-size:var(--sstf-t-small);font-weight:850}.sstf-flow .review-totals strong{margin-inline-start:5px;font-size:var(--sstf-t-card);font-weight:950}
.sstf-flow .review-dialog{inset:0;width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:88dvh;margin:auto;padding:14px;border:1px solid #dfe7ee;border-radius:var(--sstf-r-l);background:#fff;color:#172a3d;box-shadow:var(--sstf-sh-card);overflow-y:auto}
.sstf-flow .review-dialog::backdrop{background:#1b324d66}
.sstf-flow .review-dialog>header{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 var(--sstf-space-3);padding:0 0 10px;border-bottom:1px solid #dfe7ee;background:#fff}
.sstf-flow .review-dialog header h3{margin:0;font-size:var(--sstf-t-card)}
.sstf-flow .review-dialog header button{display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid #d8e2eb;border-radius:var(--sstf-r-s);background:#fff;color:#174f88;font-size:var(--sstf-t-page)}.sstf-flow .review-dialog>button{width:100%;margin:var(--sstf-space-3) 0 0}
.sstf-flow .staff-review-actions{position:fixed;z-index:45;inset-inline:0;bottom:var(--ui-nav-offset,0);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--sstf-space-2);margin:0;padding:9px max(10px,env(safe-area-inset-right)) 9px max(10px,env(safe-area-inset-left));border:0;border-top:1px solid #dce5ed;border-radius:0;background:#fff;box-shadow:var(--sstf-sh-card)}.sstf-flow .staff-review-actions>button{margin:0}.sstf-flow .review-form:has(.staff-review-actions){padding-bottom:82px}
.sstf-flow .export-toolbar{margin:10px 0;padding:0;border:1px solid #dce5ee;border-radius:var(--sstf-r-m);background:#fff;box-shadow:none}.sstf-flow .export-dialog-trigger{display:grid;gap:3px;width:100%;min-height:58px;margin:0;padding:11px 14px;background:#fff;color:#174f88;text-align:start}.sstf-flow .export-dialog-trigger strong{font-size:var(--sstf-t-body)}.sstf-flow .export-dialog-trigger span{color:#738396;font-size:var(--sstf-t-small)}
@media(max-width:600px){.sstf-flow .staff-review-actions{bottom:var(--ui-nav-offset,70px)}}
.sstf-flow .fx-box{padding:14px;margin:var(--sstf-space-3) 0 var(--sstf-space-4);border:1px solid #cad9ef;border-radius:var(--sstf-r-s);background:#fff}.sstf-flow .fx-box h3{font-size:var(--sstf-t-card)}.sstf-flow .fx-box p{font-size:var(--sstf-t-small)}.sstf-flow .fx-box label{margin:0}
.sstf-flow #fx-preview{font-size:var(--sstf-t-body);line-height:1.8;margin-top:var(--sstf-space-2);color:var(--ui-primary)}
@media(max-width:600px){
 .sstf-flow .order-data{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(80px,48%);gap:var(--sstf-space-2);align-items:center;border:1px solid var(--ui-line);border-bottom:0;border-radius:var(--sstf-r-s) var(--sstf-r-s) 0 0;padding:var(--sstf-space-3);background:white;box-shadow:var(--sstf-sh-card)}
 .sstf-flow .order-data td{display:block;padding:0;border:0;font-size:var(--sstf-t-body);min-width:0}.sstf-flow .order-data td:nth-child(1){grid-column:1;grid-row:1;color:var(--ui-muted);font-size:var(--sstf-t-small)}.sstf-flow .order-data td:nth-child(2){grid-column:2;grid-row:1;font-size:var(--sstf-t-card)}.sstf-flow .order-data td:nth-child(5){grid-column:3;grid-row:1;text-align:end}.sstf-flow .order-data td:nth-child(3){grid-column:1/-1;grid-row:2;font-size:var(--sstf-t-card);font-weight:700}.sstf-flow .order-data td:nth-child(4){grid-column:1/-1;grid-row:3;font-size:var(--sstf-t-small);color:var(--ui-muted)}
 .sstf-flow .order-data td:nth-child(4)::before{content:'الدولة: ';font-weight:600}.sstf-flow .order-buttons{display:block;margin:0 0 var(--sstf-space-3);padding:0 var(--sstf-space-3) var(--sstf-space-3);border:1px solid var(--ui-line);border-top:0;border-radius:0 0 var(--sstf-r-s) var(--sstf-r-s);background:#fff;box-shadow:var(--sstf-sh-card)}
 .sstf-flow .order-buttons td{display:block;border:0;padding:0}.sstf-flow .order-buttons td>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sstf-flow .order-buttons :where(button,.flow-button,summary){width:100%;padding:var(--sstf-space-2) var(--sstf-space-1);font-size:var(--sstf-t-small)}.sstf-flow .order-buttons .row-actions>form{inset-inline-start:auto;inset-inline-end:0;min-width:220px}
 
 .sstf-flow .pricing-totals>div{padding:10px var(--sstf-space-3);font-size:var(--sstf-t-small);gap:var(--sstf-space-2)}.sstf-flow .pricing-totals>div>strong{font-size:var(--sstf-t-body)}
}
@media print{
.sstf-flow .pricing-table-wrap table{display:table}
.sstf-flow .pricing-table-wrap tbody{display:table-row-group}
.sstf-flow .pricing-table-wrap thead{display:table-header-group}.sstf-flow .order-data,.sstf-flow .pricing-table-wrap tbody tr{display:table-row;border:0;box-shadow:none}.sstf-flow .order-data td,.sstf-flow .pricing-table-wrap td{display:table-cell;border-bottom:1px solid #ccc;padding:6px}.sstf-flow .order-buttons,.sstf-flow .pricing-table-wrap td::before{display:none!important}}
}

@layer sstf-design {
/* Customer workspace and the existing single/batch editors. */

.sstf-flow #save-state{font-size:var(--sstf-t-small);color:var(--ui-muted);white-space:normal}.sstf-flow #add-zone{display:flex;gap:10px;flex-wrap:wrap;margin:var(--sstf-space-3) 0 var(--sstf-space-4)}.sstf-flow #batch-add{flex:1 1 180px;min-height:48px}.sstf-flow #batch-help,.sstf-flow #batch-state{flex-basis:100%;font-size:var(--sstf-t-small);line-height:1.7;margin:2px 0}
.sstf-flow .image-file-input{position:absolute;inline-size:1px;block-size:1px;min-height:0;min-width:0;padding:0;margin:0;border:0;overflow:hidden;clip-path:inset(50%)}
.sstf-flow .wizard{padding:0;overflow:visible;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);box-shadow:var(--sstf-sh-card)}
.sstf-flow .wizard .head{z-index:12;padding:14px var(--sstf-space-4);background:#fff;border:0;border-bottom:1px solid var(--ui-line);border-radius:var(--sstf-r-s) var(--sstf-r-s) 0 0;backdrop-filter:none;box-shadow:none}

.sstf-flow .wizard-body{padding:20px;min-height:0}.sstf-flow .title{font:750 var(--sstf-t-page)/1.5 var(--ui-font);margin:5px 0 10px}.sstf-flow .sub{font-size:var(--sstf-t-body);margin:var(--sstf-space-1) 0 var(--sstf-space-4)}.sstf-flow .eyebrow{color:var(--ui-muted);font-size:var(--sstf-t-small);letter-spacing:0}
.sstf-flow .track{height:4px;border-radius:var(--sstf-r-s);background:#e2e9f2}.sstf-flow .fill{height:100%;background:var(--ui-primary)}.sstf-flow .pct{font-size:var(--sstf-t-small);color:var(--ui-primary)}
.sstf-flow .choices{display:grid;gap:10px;margin:14px 0 20px}.sstf-flow .choices.c3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sstf-flow .choice{display:flex;align-items:center;justify-content:start;gap:10px;padding:14px;min-height:82px;background:#fff;color:#26384b;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);box-shadow:none;font:650 var(--sstf-t-body)/1.5 var(--ui-font);text-align:start}
.sstf-flow .choice.on{background:var(--ui-primary-soft);color:var(--ui-primary);border-color:var(--ui-primary);box-shadow:inset 0 0 0 1px var(--ui-primary)}.sstf-flow .choice .ic{width:40px;height:40px;min-width:40px;background:white;border:0;border-radius:var(--sstf-r-s);color:inherit}.sstf-flow .choice .ic img{display:block;width:40px;height:40px;object-fit:contain}.sstf-flow .choice .rd{margin-inline-start:auto;border:1px solid #aab7c5}.sstf-flow .choice.on .rd{background:var(--ui-primary);border-color:var(--ui-primary)}
.sstf-flow .brand-picker{margin:14px 0;padding:10px var(--sstf-space-3)}.sstf-flow .brand-results{max-height:240px;overflow:auto;gap:5px}.sstf-flow .brand-results button{min-height:44px;text-align:start;justify-content:start;font-size:var(--sstf-t-body)}
.sstf-flow .size-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;margin:var(--sstf-space-4) 0}.sstf-flow .size-cell{padding:10px;margin:0;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);background:#fff;text-align:center}.sstf-flow .size-cell input{min-height:48px;font-size:var(--sstf-t-card);font-weight:650;padding:6px;text-align:center;direction:ltr;margin:6px 0 0}.sstf-flow .size-cell input::placeholder{font-size:var(--sstf-t-small);color:#627084}
.sstf-flow .upload-box{display:flex;flex-direction:column;align-items:center;gap:var(--sstf-space-3);padding:18px;border:1px dashed #9cacc2;border-radius:var(--sstf-r-s);background:#fff;text-align:center;position:relative}
.sstf-flow .upload-box .image-preview{display:block;order:0;width:100%;height:auto;max-height:260px;max-width:440px;object-fit:contain;margin:0;border:0;border-radius:var(--sstf-r-s)}.sstf-flow .upload-box.has-image .upload-placeholder{display:none}.sstf-flow .image-upload-label{position:relative;min-height:48px;cursor:pointer}.sstf-flow .upload-box:focus-within .image-upload-label{outline:2px solid #4075be;outline-offset:3px}
.sstf-flow #upload-state{font-size:var(--sstf-t-small);margin:0}.sstf-flow #upload-state:empty{display:none}.sstf-flow .product-summary{padding:14px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);margin-top:var(--sstf-space-4)}
.sstf-flow .wizard-foot{margin:0;border-radius:0 0 var(--sstf-r-s) var(--sstf-r-s);border-inline:0;border-bottom:0}.sstf-flow .wizard-foot button{flex:0 1 auto;min-height:48px}
.sstf-flow .quick-editor .wizard-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sstf-flow .quick-editor [data-step='3'],.sstf-flow .quick-editor [data-step='4']{grid-column:1/-1}.sstf-flow .quick-editor .title{font-size:var(--sstf-t-card)}.sstf-flow .quick-editor .image-preview{max-height:180px}
.sstf-flow .product-table-section{padding:var(--sstf-space-4)}.sstf-flow .product-thumb{width:64px;height:64px;object-fit:contain;border-radius:var(--sstf-r-s)}.sstf-flow #products .row-actions{display:inline-block;margin:var(--sstf-space-1)}.sstf-flow #products .row-actions>summary{width:44px;min-height:44px;padding:6px}.sstf-flow #products .row-actions>summary::after{display:none}
.sstf-flow .product-preview-card{display:flex;gap:14px;padding:14px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);margin:var(--sstf-space-3) 0}.sstf-flow .product-preview-card img{width:80px;height:80px;object-fit:contain;flex:0 0 80px}
/* Supplier: compact matrix; large price field and an explicit details expansion. */
.sstf-flow .supplier-main{font:inherit}.sstf-flow .supplier-main .order-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sstf-space-3);padding:14px}
.sstf-flow .supplier-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-3);max-width:740px;padding:var(--sstf-space-4);margin:var(--sstf-space-4) 0}.sstf-flow .supplier-summary label:has(textarea){grid-column:1/-1}.sstf-flow .supplier-summary p{grid-column:1/-1;display:flex;justify-content:space-between;gap:var(--sstf-space-3);margin:0;padding:10px 0;border-bottom:1px solid var(--ui-line);font-size:var(--sstf-t-body)}.sstf-flow .supplier-summary p strong{color:var(--ui-ink);text-align:end;direction:ltr;font-variant-numeric:tabular-nums}
.sstf-flow #supplier-progress{padding:10px var(--sstf-space-3);border:1px solid #cbd9ec;border-radius:var(--sstf-r-s);font-size:var(--sstf-t-body);background:var(--ui-primary-soft);color:var(--ui-primary);margin:var(--sstf-space-3) 0}.sstf-flow #supplier-status:empty{display:none}
.sstf-flow .supplier-logout{justify-content:flex-end}.sstf-flow .supplier-logout button{font-size:var(--sstf-t-small);min-height:44px}.sstf-flow .public-nav a{font-size:var(--sstf-t-small)}
.sstf-flow .recipient-product-label{display:block;font-size:var(--sstf-t-small);color:var(--ui-primary);margin-bottom:var(--sstf-space-1)}.sstf-flow .recipient-editor{padding-top:var(--sstf-space-3);border-top:1px solid var(--ui-line)}
@media(max-width:600px){
 .sstf-flow .wizard-body{padding:var(--sstf-space-4)}.sstf-flow .wizard .head{padding:var(--sstf-space-3)}.sstf-flow .title{font-size:var(--sstf-t-page)}.sstf-flow .choices.c3{gap:var(--sstf-space-2)}.sstf-flow .choice{flex-direction:column;justify-content:center;text-align:center;gap:7px;padding:var(--sstf-space-3) 6px;font-size:var(--sstf-t-small);min-height:96px}.sstf-flow .choice .rd{display:none}
 .sstf-flow .size-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sstf-flow .quick-editor .wizard-body{grid-template-columns:1fr}.sstf-flow .quick-editor .wizard-body [data-step]{grid-column:1}
 .sstf-flow .supplier-main .order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.sstf-flow .supplier-summary{grid-template-columns:1fr}
 .sstf-flow .product-preview-card{flex-direction:row}.sstf-flow .product-preview-card h3{font-size:var(--sstf-t-card)}
 
}
@media print{.sstf-flow #products-table{display:table}.sstf-flow #products-table tbody{display:table-row-group}.sstf-flow #products-table thead{display:table-header-group}.sstf-flow #products-table tbody tr{display:table-row;border:0;box-shadow:none}.sstf-flow #products-table td{display:table-cell!important;padding:5px}.sstf-flow #products-table tbody td:nth-child(7)::before{display:none!important}}
}
@layer sstf-design {
.sstf-flow :where(#app-content,#order-details,#order-exports,#supplier-form,#workspace,[data-step],input,textarea,select){scroll-margin-top:calc(var(--ui-app-height) + 16px);scroll-margin-bottom:calc(var(--ui-nav-offset) + 20px)}
.sstf-flow .supplier-main .company-name-ar{direction:rtl;text-align:start}
}

/* Accounting and WordPress settings share the same tokens and touch sizes. */
@layer sstf-design {
.sstf-flow .account-action-bar{position:sticky;bottom:var(--ui-nav-offset,0px);z-index:35;display:flex;flex-wrap:wrap;gap:var(--sstf-space-2);padding:var(--sstf-space-3) 0;background:var(--ui-surface,#fff);box-shadow:var(--sstf-sh-card);margin-block:var(--sstf-space-4) 0}

.sstf-flow .account-action-bar>button{flex:1 1 140px;min-height:48px;margin:0;white-space:normal}
.sstf-flow .account-totals{width:100%;max-width:640px;border-collapse:separate;border-spacing:0;margin:var(--sstf-space-4) 0;background:#fff;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);overflow:hidden;table-layout:fixed}
.sstf-flow .account-totals th,.sstf-flow .account-totals td{padding:var(--sstf-space-3);border:0;border-bottom:1px solid var(--ui-line);white-space:normal;font-size:var(--sstf-t-body)}
.sstf-flow .account-totals th{width:55%;text-align:start;font-weight:500;color:var(--ui-muted);background:#fff}
.sstf-flow .account-totals td{text-align:end;font-variant-numeric:tabular-nums;font-weight:700}
.sstf-flow .account-totals tr:last-child>*{border-bottom:0;font-weight:800;color:var(--ui-ink);background:var(--ui-primary-soft)}
.sstf-flow .account-document-row{border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);box-shadow:var(--sstf-sh-card);padding:14px;margin-block:var(--sstf-space-3);background:#fff}
.sstf-flow .account-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-3);align-items:start}
.sstf-flow .account-fields label{min-width:0;margin:0;font-size:var(--sstf-t-small)}
.sstf-flow .account-fields input,.sstf-flow .account-fields select{width:100%;min-width:0}
.sstf-flow .account-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding-block:10px}
.sstf-flow .account-check input{flex:0 0 22px;width:22px;min-height:22px;margin-top:3px}
.sstf-flow .report-table-wrap{overflow:auto;max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s)}
.sstf-flow .account-signature{max-width:100%;background:#fff}
.sstf-flow .sstf-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:var(--sstf-space-1);border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);padding:var(--sstf-space-1);background:#fff;scrollbar-width:none}
.sstf-flow .sstf-tabs button{flex:0 0 auto;min-height:44px;background:#fff;color:var(--ui-ink);border:0;box-shadow:none;margin:0}
.sstf-flow .sstf-tabs button.is-active{background:var(--ui-primary);color:#fff}
.sstf-flow .sstf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sstf-flow .sstf-user-table-wrap{overflow:auto;max-width:100%}
.sstf-flow .sstf-settings-form>.submit{position:sticky;bottom:var(--ui-nav-offset,0px);background:#fff;padding:var(--sstf-space-3) 0;z-index:25;margin:0;box-shadow:var(--sstf-sh-card)}
.sstf-flow .sstf-hero{padding:var(--sstf-space-4);display:flex;flex-wrap:wrap;gap:var(--sstf-space-3);border:1px solid var(--ui-line);border-radius:var(--sstf-r-s)}
@media(max-width:600px){.sstf-flow .account-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sstf-flow .sstf-fields{grid-template-columns:minmax(0,1fr)}.sstf-flow .account-totals th,.sstf-flow .account-totals td{padding:10px;font-size:var(--sstf-t-small)}}
}
/* WordPress core ships unlayered CSS. These narrowly scoped adapters override it
   only on TradeFlow screens; the media chooser and other WP pages retain WP CSS. */
html:has(body.sstf-wp-app){margin-top:0!important}
body.sstf-wp-app{background:#fff;color:var(--ui-ink);font-family:var(--ui-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif);font-size:var(--sstf-t-card);margin:0}
.sstf-wp-app #wpadminbar,.sstf-wp-app #adminmenumain,.sstf-wp-app #wpfooter{display:none}
.sstf-wp-app #wpcontent,.sstf-wp-app #wpfooter{margin:0;padding:0}
.sstf-wp-app #wpbody-content{padding:0;float:none}
.sstf-wp-app main.sstf-admin{box-sizing:border-box;width:100%;margin:0 auto;max-width:1180px;padding:calc(var(--ui-app-height,72px) + 16px) 16px calc(var(--ui-nav-offset,76px) + 24px)}
.sstf-wp-app .sstf-admin h1{font-size:var(--sstf-t-page);font-weight:800;line-height:1.5;margin:0;padding:0}
.sstf-wp-app .sstf-admin h2{font-size:var(--sstf-t-card);line-height:1.5}
/* Let each link keep its design-layer color instead of inheriting body text. */
.sstf-wp-app .sstf-admin a{text-decoration:none;color:revert-layer}
.sstf-wp-app .sstf-admin .button,.sstf-wp-app .sstf-admin .sstf-button,.sstf-wp-app .sstf-admin input[type=submit]{box-sizing:border-box;min-height:48px;height:auto;white-space:normal;line-height:1.5;padding:10px 14px;font-size:var(--sstf-t-body);border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);box-shadow:var(--sstf-sh-card);background:#fff;color:var(--ui-ink)}
.sstf-wp-app .sstf-admin .sstf-button--primary{background:var(--ui-primary);border-color:var(--ui-primary);color:#fff}
.sstf-wp-app .sstf-admin input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),.sstf-wp-app .sstf-admin select,.sstf-wp-app .sstf-admin textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:48px;border:1px solid var(--ui-line);border-radius:var(--sstf-r-s);background-color:#fff;box-shadow:none;font:inherit;color:var(--ui-ink);padding:10px var(--sstf-space-3);margin:var(--sstf-space-1) 0}
.sstf-wp-app .sstf-admin input[inputmode=decimal]{max-width:220px}
.sstf-wp-app .sstf-admin [hidden]{display:none!important}
.sstf-wp-app .sstf-admin .description{font-size:var(--sstf-t-small);color:var(--ui-muted)}
.sstf-wp-app .sstf-admin input:focus-visible,.sstf-wp-app .sstf-admin select:focus-visible,.sstf-wp-app .sstf-admin button:focus-visible,.sstf-wp-app .sstf-admin a:focus-visible{outline:3px solid var(--ui-primary);outline-offset:3px}
@media(min-width:960px){.sstf-wp-app main.sstf-admin{max-width:none;padding-inline-start:256px;padding-inline-end:var(--sstf-space-5)}.sstf-wp-app.nav-small main.sstf-admin{padding-inline-start:108px}}
@media print{
 body.sstf-flow main,.sstf-wp-app main.sstf-admin{max-width:none;margin:0;padding:0}
 .sstf-flow table{display:table!important;width:100%;table-layout:auto;box-shadow:none}
 .sstf-flow thead{display:table-header-group!important}.sstf-flow tbody{display:table-row-group!important}.sstf-flow tfoot{display:table-footer-group!important}
 .sstf-flow tr{display:table-row!important;border-radius:0;box-shadow:none;break-inside:avoid}
 .sstf-flow :is(th,td){display:table-cell!important;font-size:var(--sstf-t-small);white-space:normal}
 .sstf-flow td::before{display:none!important}
}

@layer sstf-design { }

/* offline:start */
.sstf-offline{margin:0;min-height:100dvh;display:grid;place-items:center;background:var(--ui-bg);color:var(--ui-ink);font:400 var(--sstf-t-card)/1.65 var(--ui-font)}
.sstf-offline main{width:min(28rem,100%);box-sizing:border-box;padding:var(--sstf-space-5)}
.sstf-offline h1{font-size:var(--sstf-t-page)}.sstf-offline p{color:var(--ui-muted);line-height:1.8}
.sstf-offline a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:var(--sstf-r-s);background:var(--ui-primary);color:#fff;text-decoration:none}
.sstf-offline a:focus-visible{outline:3px solid var(--ui-primary);outline-offset:4px}
/* offline:end */

@layer sstf-design {
 :where(.sstf-flow,.sstf-admin) .sstf-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;min-width:0}
 :where(.sstf-flow,.sstf-admin) .sstf-table-scroll table{table-layout:auto;min-width:680px;width:100%;font-size:var(--sstf-t-body)}
 :where(.sstf-flow,.sstf-admin) .sstf-table-scroll :is(th,td){word-break:normal;overflow-wrap:normal;white-space:normal;min-width:80px;vertical-align:top;line-height:1.6}
 :where(.sstf-flow,.sstf-admin) .sstf-table-scroll :is(input,select,textarea){max-width:100%;min-width:90px}
 :where(.sstf-flow,.sstf-admin) .account-report-table{overflow:visible}
 .sstf-flow .sstf-table-scroll .row-actions>div,.sstf-flow .sstf-table-scroll .row-actions>form{position:static;inset:auto}
 .sstf-error-banner{position:fixed;inset-inline:16px;bottom:calc(var(--ui-nav-offset,80px) + 12px);z-index:100000;background:#fff;color:#941f25;border:2px solid #b52b32;border-radius:var(--sstf-r-s);padding:var(--sstf-space-3);box-shadow:var(--sstf-sh-card);display:flex;flex-wrap:wrap;gap:var(--sstf-space-2);max-height:45dvh;overflow:auto;font:inherit}
 .sstf-error-banner>span{flex:1 1 100%;white-space:pre-wrap;}
 .sstf-error-banner[hidden]{display:none}
 :where(.sstf-flow,.sstf-admin) [aria-invalid=true]{outline:2px solid #b52b32;outline-offset:2px}
 
 
 
 
 
 :where(.sstf-flow,.sstf-admin) .batch-apply{margin:var(--sstf-space-2) 0}
 .sstf-report-cards{display:none}
 @media print{.sstf-error-banner,.sstf-report-cards{display:none!important}.sstf-table-scroll{overflow:visible!important}.sstf-table-scroll table{min-width:0!important;font-size:var(--sstf-t-small)!important}.account-report-table>.sstf-table-scroll{display:block!important}}
}
@layer sstf-design {
 .sstf-avatar{display:inline-flex;flex:0 0 40px;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--ui-primary-soft,#edf3fc);color:var(--ui-primary,#123c78);font-weight:700;overflow:hidden;vertical-align:middle}
 .sstf-avatar img{width:100%;height:100%;object-fit:cover}.profile-link{flex:0 0 auto}.ops-card{padding:20px;margin:var(--sstf-space-4) 0;min-width:0}.ops-card h2,.ops-card h3{margin-top:0}.ops-card .account-form{margin-block:14px}.ops-record-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:var(--sstf-space-4)}.ops-record-list .ops-card{margin:0}.ops-form label{display:flex;flex-direction:column;gap:var(--sstf-space-2);margin-block:10px}.ops-form .account-check{flex-direction:row;align-items:center}.ops-form input[type=checkbox]{width:20px;height:20px}.ops-form .account-fields{width:100%}.ops-form button{margin-inline-end:var(--sstf-space-2)}.sstf-table-scroll:has(>.account-totals){margin-block:var(--sstf-space-3)}.sstf-table-scroll>.account-totals{min-width:0;table-layout:auto;width:100%}.account-totals th,.account-totals td{white-space:normal;min-width:0;}.ops-approval{padding:14px;border-bottom:1px solid var(--ui-line,#dce2ea)}.ops-approval .account-signature{max-width:260px;height:100px}.chat-inbox{padding:var(--sstf-space-4);border-inline-end:1px solid var(--ui-line,#dce2ea);max-height:75vh;overflow:auto}.chat-thread{display:flex;align-items:center;gap:10px;padding:14px var(--sstf-space-1);border-bottom:1px solid #edf0f4;text-decoration:none}.chat-unread{background:var(--ui-primary,#123c78);color:#fff;border-radius:var(--sstf-r-m);padding:2px var(--sstf-space-2)}.chat-conversation{padding:18px;min-width:0}.chat-conversation header{border-bottom:1px solid #edf0f4;margin-bottom:14px}.chat-conversation header h2{font-size:var(--sstf-t-card)}#chat-messages{height:52vh;min-height:280px;max-height:650px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:14px var(--sstf-space-1)}.chat-message{background:#f5f7fa;border:1px solid #e1e5eb;border-radius:var(--sstf-r-m);align-self:flex-start;padding:var(--sstf-space-3);max-width:88%;min-width:150px;}.chat-message.own{background:#edf4fb;align-self:flex-end}.chat-message p{white-space:pre-wrap;margin:var(--sstf-space-2) 0}.chat-message-head{display:flex;align-items:center;gap:10px;font-size:var(--sstf-t-body)}.chat-message-head .sstf-avatar{width:28px;height:28px;flex-basis:28px}.chat-message a{display:block}.chat-message a img{display:block;max-width:100%;max-height:280px;border-radius:var(--sstf-r-s);object-fit:contain}.chat-message-footer{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;align-items:center;font-size:var(--sstf-t-small);color:#52606f}.chat-message-footer button{font-size:var(--sstf-t-body);padding:10px var(--sstf-space-4);min-height:48px}.chat-message blockquote,#chat-reply{margin:6px 0;padding:var(--sstf-space-2);border-inline-start:3px solid var(--ui-primary,#123c78);background:#fff;white-space:pre-wrap}.chat-conversation textarea{resize:vertical;width:100%}.chat-conversation .ops-form{margin-top:10px}.chat-attachment{font-size:var(--sstf-t-body)}.dossier-proof{max-width:100%;max-height:420px;object-fit:contain}html[data-report-phone=scroll] .sstf-report-cards{display:none!important}html[data-report-phone=scroll] .sstf-table-scroll:has(>.account-report-table){display:block!important}
 @media(max-width:700px){.ops-card{padding:var(--sstf-space-4)}.chat-inbox{max-height:220px;border-inline-end:0;border-bottom:1px solid var(--ui-line,#dce2ea)}.chat-inbox h2{font-size:var(--sstf-t-card)}.chat-conversation{padding:var(--sstf-space-3)}.chat-message{max-width:94%}#chat-messages{height:46vh}.ops-record-list{grid-template-columns:1fr}.ops-form .account-fields{display:block}}
 @media print{
.chat-inbox,.ops-form,.profile-link{display:none}.ops-card{border:0;padding:0}.dossier-proof{max-height:160mm}}
}

/* Accessible field feedback shared by every portal form. */
.sstf-field-error{display:block;color:#a21e27;font-size:var(--sstf-t-body);line-height:1.6;margin:.3rem 0;white-space:normal;}
[aria-invalid="true"]{border-color:#a21e27!important;outline-offset:2px}
/* rc13 — attendance card and shared team presence */
:root{--duty-surface:#161c39;--duty-accent:#ff7215;--presence-in:#168348;--presence-out:#c73945;--presence-field:#b86600;--wizard-surface:#f5f1ff;--wizard-border:#dcd2f1}
.sstf-flow .team-presence{padding:var(--sstf-space-3) 0;margin:0;border:0;background:transparent;box-shadow:none}
.team-strip{display:flex;gap:var(--sstf-space-3);overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:6px 2px var(--sstf-space-2);scroll-snap-type:x proximity}
.sstf-flow .team-person{display:flex;flex:0 0 104px;flex-direction:column;align-items:center;gap:5px;text-align:center;scroll-snap-align:start;color:var(--ui-text,#17212e);text-decoration:none;font-size:var(--sstf-t-body);min-width:0}
.team-person small{font-size:var(--sstf-t-small);color:var(--presence-in)}
.presence-avatar{position:relative;display:inline-flex}.presence-avatar .sstf-avatar{width:52px;height:52px;flex-basis:52px}
.presence-dot{display:inline-block;width:11px;height:11px;flex:0 0 11px;border-radius:50%;background:var(--presence-in)}
.presence-avatar>.presence-dot{position:absolute;inset-inline-end:0;bottom:0;border:2px solid #fff;width:14px;height:14px}
[data-presence=out] .presence-dot{background:var(--presence-out)}[data-presence=out] [data-presence-label]{color:var(--presence-out)}
[data-presence=field] .presence-dot,[data-presence=break] .presence-dot,[data-presence=departure] .presence-dot{background:var(--presence-field)}
[data-presence=field] [data-presence-label],[data-presence=break] [data-presence-label],[data-presence=departure] [data-presence-label]{color:var(--presence-field)}

.sstf-flow .duty-card{background:linear-gradient(110deg,#101424,var(--duty-surface) 55%,#222c57);border:1px solid #303855;border-radius:var(--sstf-r-l);color:#fff;padding:22px;margin:var(--sstf-space-2) 0 var(--sstf-space-5);box-shadow:var(--sstf-sh-card);isolation:isolate}
.duty-card[data-sticky="1"]{position:sticky;top:calc(var(--ui-app-height,76px) + 8px);z-index:24}
.duty-state{display:flex;align-items:center;gap:var(--sstf-space-2);justify-content:flex-start;font-size:var(--sstf-t-card)}
.duty-clock{display:block;font-size:clamp(36px,8vw,52px);font-weight:750;letter-spacing:2px;text-align:center;font-variant-numeric:tabular-nums;line-height:1.25;margin:var(--sstf-space-3) 0}
.duty-times{display:flex;padding:var(--sstf-space-3);background:#ffffff0e;border-radius:var(--sstf-r-m);margin-bottom:var(--sstf-space-4)}
.duty-times>span{flex:1;color:#d0d5e5;text-align:center;font-size:var(--sstf-t-body)}.duty-times>span+span{border-inline-start:1px solid #ffffff25}.duty-times strong{display:block;color:#fff;margin-top:var(--sstf-space-1);font-variant-numeric:tabular-nums}
.sstf-flow .duty-form{border:0;background:transparent;box-shadow:none;margin:0;padding:0;display:grid;gap:10px}
.sstf-flow .duty-form label{color:#fff;font-size:var(--sstf-t-body)}.sstf-flow .duty-form select{color:#17212e;background:#fff;min-height:44px;margin-top:var(--sstf-space-1)}
.sstf-flow .duty-form .duty-primary{background:var(--duty-accent);color:#181c2a;border:0;min-height:52px;width:100%;font-size:var(--sstf-t-card);font-weight:750;box-shadow:none}
.sstf-flow .duty-form .duty-primary:disabled{opacity:.8}.sstf-flow .duty-details{display:block;text-align:center;color:#e4eaff;font-size:var(--sstf-t-small);margin-top:var(--sstf-space-3);text-decoration:underline}
.sstf-flow .duty-form p{color:#ffe0b2}
.duty-card[data-stale-connection="1"]:after{content:'تعذر تحديث حالة الفريق؛ العداد مستمر';display:block;font-size:var(--sstf-t-small);color:#ffe0b2;margin-top:var(--sstf-space-2)}
.sstf-flow .wizard{background:var(--wizard-surface);border-color:var(--wizard-border)}
.sstf-flow .wizard .head,.sstf-flow .wizard .wizard-foot{background:var(--wizard-surface)}.sstf-flow .wizard .wizard-body{background:transparent}
.sstf-flow .wizard input,.sstf-flow .wizard select,.sstf-flow .wizard textarea{background:#fff;color:var(--ui-text,#17212e)}
@media(max-width:600px){.sstf-flow .duty-card{padding:var(--sstf-space-4);border-radius:var(--sstf-r-l)}.duty-card .duty-clock{margin:var(--sstf-space-2) 0}.duty-times{margin-bottom:var(--sstf-space-3);padding:var(--sstf-space-2)}.sstf-flow .duty-card .duty-details{margin-top:var(--sstf-space-2)}}
/* rc13 — one-question product flow */
.wizard [data-question]{min-width:0}.wizard .summary-product-image{display:block;width:120px;height:100px;object-fit:contain;margin:0 auto 12px;background:#fff;border-radius:var(--sstf-r-m)}
.wizard .product-summary{text-align:center}.wizard .brand-picker[open]{background:#fff}.wizard .wizard-foot{gap:var(--sstf-space-3);justify-content:space-between}.wizard .wizard-foot button{min-width:100px}.wizard [data-question] .title{margin-top:0}
/* rc13 — direct and order conversations share the same compact popup. */
.sstf-flow .chat-launch{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:44px;padding:var(--sstf-space-2);min-width:0}.chat-launch .small-icon{width:34px;height:34px;max-width:80%;max-height:80%}
.sstf-flow dialog.chat-popup{padding:0;width:min(580px,calc(100vw - 24px));max-width:580px;height:min(680px,calc(100dvh - 44px));max-height:calc(100dvh - 44px);border:1px solid var(--ui-border,#d8dee7);border-radius:var(--sstf-r-m);box-shadow:var(--sstf-sh-card);overflow:hidden;background:#fff;color:var(--ui-text,#17212e)}
.chat-popup::backdrop{background:#10182e50}
.sstf-flow .chat-popup .chat-conversation{display:flex;flex-direction:column;height:100%;min-width:0;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#fff}
.sstf-flow .chat-popup-head{display:flex;align-items:center;gap:10px;padding:var(--sstf-space-3) var(--sstf-space-4);border-bottom:1px solid var(--ui-border,#d8dee7);flex-shrink:0}.sstf-flow .chat-popup-head h2{font-size:var(--sstf-t-card);margin:0;flex:1;}.chat-popup-head .sstf-avatar{width:38px;height:38px;flex-basis:38px}
.sstf-flow .chat-tools{display:flex;align-items:start;justify-content:space-between;gap:var(--sstf-space-3);padding:var(--sstf-space-2) 14px;background:#fff;font-size:var(--sstf-t-small)}.sstf-flow .chat-tools details{margin:0;padding:0;border:0;box-shadow:none}.chat-tools input{min-height:40px}
.chat-log-wrap{display:flex;flex:1;flex-direction:column;min-height:100px;overflow:hidden;background:#f7f5fa}
.sstf-flow .chat-popup #chat-messages{flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:var(--sstf-space-3);display:flex;flex-direction:column;gap:10px}
.sstf-flow .chat-popup .chat-message{align-self:flex-end;margin:0;max-width:86%;width:fit-content;padding:10px var(--sstf-space-3);border:1px solid #d9dfe8;border-radius:var(--sstf-r-m) var(--sstf-r-m) var(--sstf-r-s) var(--sstf-r-m);background:#fff;color:#1d2b3c;}
.sstf-flow .chat-popup .chat-message.own{align-self:flex-start;background:#eaf4ee;border-color:#c8dfd0;border-radius:var(--sstf-r-m) var(--sstf-r-m) var(--sstf-r-m) var(--sstf-r-s)}
.chat-popup .chat-message p{margin:5px 0;white-space:pre-wrap;font-size:var(--sstf-t-body);line-height:1.55}.chat-popup .chat-message-head{font-size:var(--sstf-t-small);color:#3e566f}.chat-popup .chat-message img{display:block;max-height:220px;max-width:100%;object-fit:contain;border-radius:var(--sstf-r-s)}
.chat-popup .chat-message-footer{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:var(--sstf-t-small);color:#526474}.sstf-flow .chat-popup .chat-message-footer button{font-size:var(--sstf-t-small);padding:3px 9px;min-height:48px;box-shadow:none;background:transparent;color:var(--ui-primary,#173f71);border:0}
.chat-popup .chat-message blockquote{margin:var(--sstf-space-1) 0;border-inline-start:3px solid var(--ui-primary,#173f71);padding:6px;background:#ffffff80;font-size:var(--sstf-t-small)}
.sstf-flow .chat-popup #chat-more{font-size:var(--sstf-t-small);min-height:36px;padding:var(--sstf-space-1) var(--sstf-space-3);box-shadow:none;align-self:center;margin:5px}
.sstf-flow .chat-popup #chat-status{font-size:var(--sstf-t-small);line-height:1.4;padding:var(--sstf-space-1) var(--sstf-space-3);margin:0;color:#475c73;flex-shrink:0}.sstf-flow .chat-popup #chat-status[role=alert]{color:#a21d32;background:#fff3f3}
.sstf-flow .chat-popup .ops-form{padding:var(--sstf-space-2) var(--sstf-space-3) var(--sstf-space-3);margin:0;display:block;flex-shrink:0;box-shadow:none;border:0;background:#fff;max-height:42%;overflow-y:auto}
.chat-compose{display:flex;align-items:flex-end;gap:6px}.sstf-flow .chat-compose textarea{flex:1;min-width:0;min-height:44px;max-height:120px;margin:0;resize:none;background:#fff;border-radius:var(--sstf-r-m);padding:10px;font-size:var(--sstf-t-body);color:#17212e}
.sstf-flow .chat-compose button{flex:0 0 auto;min-height:44px;margin:0;padding:7px 10px;box-shadow:none;font-size:var(--sstf-t-body)}
.sstf-flow .chat-extras{border:0;margin:var(--sstf-space-2) 0 0;padding:0;box-shadow:none;font-size:var(--sstf-t-small)}.chat-extras label{font-size:var(--sstf-t-small)}.chat-extras summary{color:#46576d}
.chat-emojis:not([hidden]){display:grid;grid-template-columns:repeat(8,1fr);gap:3px;padding:var(--sstf-space-2) 0}.sstf-flow .chat-emojis button{min-width:0;min-height:38px;padding:var(--sstf-space-1);font-size:var(--sstf-t-page);border:0;box-shadow:none}
#chat-reply:not([hidden]),#chat-file-preview:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);font-size:var(--sstf-t-small);margin:0 0 var(--sstf-space-2);padding:6px var(--sstf-space-2);background:#f0edf7;border-radius:var(--sstf-r-s);color:#342c4a}#chat-file-preview span,#chat-reply span{min-width:0}
.sstf-flow .chat-inbox{border:0;padding:0;max-width:none}.sstf-flow .chat-thread{display:flex;align-items:center;gap:var(--sstf-space-3);padding:14px;border-bottom:1px solid var(--ui-border,#d8dee7);color:var(--ui-text,#17212e);text-decoration:none}.chat-thread>span{flex:1}
@media(max-width:420px){.sstf-flow .chat-popup .ops-form{padding:var(--sstf-space-2)}.sstf-flow .chat-compose button{padding:6px var(--sstf-space-2)}.chat-compose{gap:3px}.sstf-flow .chat-launch{flex-basis:34px;width:34px}}

/* rc14 — accounting workspace: calm, specialist-first, mobile-first. */
@layer sstf-design {
.accounting-ui{
 --finance-bg:#f6f5fa;--finance-surface:rgba(255,255,255,.84);--finance-line:rgba(35,43,66,.09);
 --finance-ink:#1d2434;--finance-muted:var(--sstf-text-muted,#5f6d7c);--finance-lilac:#ebe8f8;--finance-blue:#e9f2fb;
 --finance-green:#e8f5ed;--finance-amber:#fff5e5;--finance-red:#faecec;
 background:var(--finance-bg);--ui-bg:var(--finance-bg);--ui-ink:var(--finance-ink);--ui-muted:var(--finance-muted);--ui-line:#e4e3eb;--ui-primary:var(--sstf-brand-primary,#174a87);--ui-primary-soft:var(--sstf-brand-primary-soft,#edf4fb)}
.accounting-ui main{max-width:1180px}
.accounting-ui .app-header{background:rgba(250,249,253,.86);border-bottom-color:rgba(45,49,68,.07);box-shadow:var(--sstf-sh-card);backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%)}
.accounting-ui .page-heading{margin-bottom:10px}.accounting-ui .page-heading h1{font-size:var(--sstf-t-page);letter-spacing:-.2px;color:var(--finance-ink)}
.accounting-ui .account-nav{background:rgba(255,255,255,.66);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:var(--finance-line);box-shadow:none;border-radius:var(--sstf-r-m);padding:5px}
.accounting-ui .account-nav a{border-radius:var(--sstf-r-s)}.accounting-ui .account-nav a[aria-current=page]{background:var(--finance-lilac);color:#514b9e}
.accounting-ui .account-action-bar{position:static!important;bottom:auto;z-index:auto;background:transparent;box-shadow:none;padding:var(--sstf-space-2) 0}
.accounting-ui section{border-color:var(--finance-line);background:var(--finance-surface);box-shadow:var(--sstf-sh-card);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.accounting-ui .section-simple-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:6px 0 var(--sstf-space-3)}.accounting-ui .section-simple-head p{margin:3px 0 0;font-size:var(--sstf-t-small)}.accounting-ui .section-simple-head>a{font-size:var(--sstf-t-small);font-weight:700;white-space:nowrap}
.accounting-ui .finance-funds{padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;margin:18px 0 22px}
.accounting-ui .finance-fund-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.accounting-ui .finance-fund-card{display:grid;gap:var(--sstf-space-1);padding:var(--sstf-space-4);color:var(--finance-ink);text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.accounting-ui .finance-fund-card:hover{transform:translateY(-1px);box-shadow:var(--sstf-sh-card)}.finance-fund-card>span{font-size:var(--sstf-t-small);color:var(--finance-muted)}.finance-fund-card>strong{font-size:var(--sstf-t-page);color:var(--finance-ink)}
.accounting-ui .finance-action-row{display:flex;align-items:center;gap:var(--sstf-space-3);min-height:62px;padding:11px 13px;border:1px solid var(--finance-line);border-radius:var(--sstf-r-m);background:rgba(255,255,255,.8);color:var(--finance-ink);text-decoration:none;box-shadow:var(--sstf-sh-card);transition:transform .14s ease,background .14s ease}.finance-action-row strong{flex:1;font-size:var(--sstf-t-body)}

.accounting-ui .movement-sign{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:var(--sstf-r-m);font-size:var(--sstf-t-page);font-weight:700;background:var(--finance-red);color:#a5484d}.accounting-ui .movement-sign[data-direction=in]{background:var(--finance-green);color:#397451}.movement-copy{display:grid;gap:1px;flex:1}.movement-copy strong{font-size:var(--sstf-t-body)}.movement-copy small{font-size:var(--sstf-t-small)}.movement-amount{font-weight:800;font-size:var(--sstf-t-body);white-space:nowrap;color:var(--finance-ink)}
.finance-filter-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px}.finance-filter-chips a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 13px;border-radius:var(--sstf-r-m);border:1px solid var(--finance-line);background:rgba(255,255,255,.72);color:var(--finance-muted);font-size:var(--sstf-t-small)}.finance-filter-chips a[aria-current=page]{background:var(--finance-lilac);color:#514b9e;font-weight:750}.ledger-links{grid-column:2/-1;display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--finance-line);padding-top:var(--sstf-space-2)}.ledger-links a{font-size:var(--sstf-t-small);font-weight:700}
.accounting-ui .account-document-row{border-color:var(--finance-line);border-radius:var(--sstf-r-m);background:rgba(255,255,255,.8);box-shadow:var(--sstf-sh-card);padding:15px}.accounting-ui .account-document-row p{margin:5px 0 10px;font-size:var(--sstf-t-small)}.accounting-ui .account-status{display:inline-flex;align-items:center;min-height:28px;padding:3px 9px;border-radius:var(--sstf-radius-pill);background:#f1f1f5;color:#666d7a;font-size:var(--sstf-t-small)}.account-status[data-status=submitted]{background:var(--finance-amber);color:#87631e}.account-status[data-status=approved],.account-status[data-status=partially_paid]{background:var(--finance-blue);color:#315b84}.account-status[data-status=paid]{background:var(--finance-green);color:#397451}.account-status[data-status=rejected],.account-status[data-status=cancelled]{background:var(--finance-red);color:#9b474a}

.accounting-ui .account-form{border-color:var(--finance-line);border-radius:var(--sstf-r-m);background:rgba(255,255,255,.78);box-shadow:var(--sstf-sh-card);backdrop-filter:blur(10px)}.accounting-ui :is(input,select,textarea){border-color:#d7d5df;border-radius:var(--sstf-r-m);background:rgba(255,255,255,.9)}
.accounting-ui .treasury-grid{margin:10px 0}.accounting-ui .treasury-card{min-height:132px}.treasury-actions{margin-top:var(--sstf-space-1)}.treasury-links{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;margin:14px 0}
.accounting-ui .receipt-cash-result{border-color:var(--finance-line);background:rgba(255,255,255,.7)}
.accounting-ui .finance-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.finance-settings-grid a{display:grid;gap:var(--sstf-space-1);padding:var(--sstf-space-4);border:1px solid var(--finance-line);border-radius:var(--sstf-r-m);background:rgba(255,255,255,.8);color:var(--finance-ink)}.finance-settings-grid span{font-size:var(--sstf-t-small);color:var(--finance-muted)}
/* Legacy sticky timer setting is deliberately non-overlay after rc14. */
.sstf-flow .duty-card[data-sticky="1"]{position:relative!important;top:auto!important;z-index:auto!important}
.calculator-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:var(--sstf-space-1);border-radius:var(--sstf-r-m);background:#eeedf3;margin-bottom:var(--sstf-space-3)}.calculator-tabs button{min-height:42px;border:0;background:transparent}.calculator-tabs button[aria-selected=true]{background:#fff;color:#514b9e;box-shadow:var(--sstf-sh-card)}.fx-amount,.fx-pair,.fx-result{margin:10px 0}.fx-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:var(--sstf-space-2)}.fx-swap{width:48px;min-width:48px;padding:var(--sstf-space-2)}.fx-result{display:grid;gap:3px;padding:var(--sstf-space-4);border-radius:var(--sstf-r-m);background:#fff}.fx-result strong{font-size:var(--sstf-t-page)}.fx-note{font-size:var(--sstf-t-small)}
/* Side drawer feels like a light secondary page, not a modal menu. */
.accounting-ui .app-drawer{background:rgba(248,247,252,.96);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-color:rgba(40,44,61,.08)}.accounting-ui .app-drawer nav a,.accounting-ui .app-drawer nav button{background:rgba(255,255,255,.62)!important;border:1px solid transparent!important;border-radius:var(--sstf-r-m)!important}.accounting-ui .app-drawer nav a[aria-current]{background:var(--finance-lilac)!important;border-color:#ddd8f3!important}
/* Calculator is universal and visually clear without dominating the bottom bar. */
.sstf-flow .mobile-nav>button[data-open-calculator] .small-icon{width:34px;height:34px;padding:7px;border-radius:var(--sstf-r-m);background:#eeecfb;color:#5750a8}.sstf-flow .mobile-nav>button[data-open-calculator]{color:#5750a8;font-weight:750}
.print-doc-head{display:none}
@media(max-width:700px){
 .accounting-ui main{padding-inline:13px}.accounting-ui .account-nav{display:none}.accounting-ui .page-heading h1{font-size:var(--sstf-t-page)}
 .accounting-ui .finance-fund-grid{grid-template-columns:repeat(3,minmax(132px,1fr));overflow-x:auto;scroll-snap-type:x proximity;padding:2px 1px 6px;scrollbar-width:none}.accounting-ui .finance-fund-card{scroll-snap-align:start;min-height:116px;padding:14px}.finance-fund-card>strong{font-size:var(--sstf-t-card)}
 
 .ledger-links{grid-column:2}.accounting-ui .movement-amount{font-size:var(--sstf-t-small)}
 .accounting-ui .account-fields{grid-template-columns:1fr}.accounting-ui .finance-settings-grid{grid-template-columns:1fr}
 .accounting-ui .mobile-nav{background:rgba(250,249,253,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top-color:rgba(44,47,64,.08);box-shadow:var(--sstf-sh-card)}.accounting-ui .mobile-nav>a,.accounting-ui .mobile-nav>button{background:transparent!important;border-radius:var(--sstf-r-m)}.accounting-ui .mobile-nav>[aria-current]{background:#eeecfb!important;box-shadow:none!important;color:#514b9e!important}
}

/* Command 5 cascade bridge: the legacy stocktake controls below the design layer
   must not turn the new scoped selector back into a loose horizontal form. */
.sstf-flow .inventory-stocktake-scope{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:var(--sstf-space-3)}
.sstf-flow .stocktake-product-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:300px;overflow-y:auto}
@media(max-width:700px){.sstf-flow .inventory-stocktake-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.sstf-flow .inventory-stocktake-scope label:first-child{grid-column:1/-1}.sstf-flow .stocktake-product-picker{grid-template-columns:1fr}}

/* Command 5 — warehouse fulfillment and practical blind stocktake workflow. */
@layer sstf-design {
  .sstf-flow .warehouse-order-list,.sstf-flow .stocktake-history-list{display:block;width:100%;overflow:hidden;border:1px solid var(--sstf-list-line);border-radius:var(--sstf-r-m);background:rgba(255,255,255,.97);box-shadow:var(--sstf-sh-card)}
  .sstf-flow .warehouse-order-row{display:grid;grid-template-columns:auto minmax(170px,1fr) auto minmax(110px,auto) 72px;align-items:center;gap:10px;min-height:78px;padding:11px 13px;border-block-end:1px solid var(--sstf-list-divider);color:inherit;text-decoration:none}
  .sstf-flow .warehouse-order-row:last-child{border-block-end:0}.sstf-flow .warehouse-order-row:hover{background:#f8fafc}
  .sstf-flow .warehouse-order-row>strong{color:#173d70;font-size:var(--sstf-t-small)}.sstf-flow .warehouse-order-customer,.sstf-flow .warehouse-order-money{display:grid;gap:3px;min-width:0}.sstf-flow .warehouse-order-customer>b{overflow:hidden;color:#111827;font-size:var(--sstf-t-body);text-overflow:ellipsis;white-space:nowrap}.sstf-flow .warehouse-order-row small{color:#778697;font-size:var(--sstf-t-small)}.sstf-flow .warehouse-order-row>em{display:grid;place-items:center;min-height:36px;border:1px solid rgba(80,98,120,.10);border-radius:var(--sstf-radius-pill);background:#f6f8fb;color:#1475df;font-size:var(--sstf-t-small);font-style:normal;font-weight:850}
.sstf-flow .stocktake-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:13px}
  .sstf-flow .warehouse-order-product-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e0e6ec;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
  .sstf-flow .warehouse-order-product-card.is-picked{border-color:#68b88b;box-shadow:var(--sstf-sh-card)}
  
  
  
  .sstf-flow .warehouse-pick-check{position:relative;z-index:5;display:flex;align-items:center;justify-content:center;gap:7px;margin:0;padding:9px;border-block-start:1px solid #edf0f3;background:#fbfcfd;color:#31485e;font-size:var(--sstf-t-small);font-weight:800;cursor:pointer}.sstf-flow .warehouse-pick-check input{width:20px;height:20px;margin:0;accent-color:#238354}
.sstf-flow .stocktake-start-body,.sstf-flow .stocktake-count-sheet form{max-height:calc(88dvh - 70px);padding:14px 18px max(18px,env(safe-area-inset-bottom));overflow-y:auto}
  
  
  

  .sstf-flow .stocktake-progress{display:grid;grid-template-columns:auto minmax(160px,1fr);align-items:center;gap:14px;margin:0 0 13px;padding:11px 13px;border:1px solid #dfe6ed;border-radius:var(--sstf-r-m);background:#fff}.sstf-flow .stocktake-progress small{color:#748596;font-size:var(--sstf-t-small)}.sstf-flow .stocktake-progress strong{font-size:var(--sstf-t-card)}
  .sstf-flow .stocktake-product-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1.5px solid #e0e6ec;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card);color:inherit;text-decoration:none}
  .sstf-flow .stocktake-product-media{display:grid;place-items:center;width:100%;aspect-ratio:1/1;background:#f7f8fa;overflow:hidden}.sstf-flow .stocktake-product-image{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.sstf-flow .stocktake-product-copy{display:grid;gap:var(--sstf-space-1);padding:10px}.sstf-flow .stocktake-product-copy strong{display:-webkit-box;overflow:hidden;color:#182b3e;font-size:var(--sstf-t-small);line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sstf-flow .stocktake-product-copy small{color:#778797;font-size:var(--sstf-t-small)}.sstf-flow .stocktake-product-copy b{width:max-content;padding:var(--sstf-space-1) 7px;border-radius:var(--sstf-radius-pill);background:#eef2f5;color:#667788;font-size:var(--sstf-t-small)}.sstf-flow .is-counted .stocktake-product-copy b{background:#e8f7ed;color:#17733b}.sstf-flow .is-recount .stocktake-product-copy b{background:#fff0dc;color:#a65300}
  .sstf-flow .stocktake-finish-bar{position:sticky;bottom:8px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding:9px 11px;border:1px solid #dce4ec;border-radius:var(--sstf-r-m);background:rgba(255,255,255,.97);box-shadow:var(--sstf-sh-card)}.sstf-flow .stocktake-finish-bar span{color:#667789;font-size:var(--sstf-t-small)}
  .sstf-flow .inventory-stocktake-scope{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:var(--sstf-space-3)}.sstf-flow .inventory-stocktake-scope label{position:relative;margin:0}.sstf-flow .inventory-stocktake-scope input{position:absolute;opacity:0}.sstf-flow .inventory-stocktake-scope span{display:grid;place-items:center;min-height:52px;padding:var(--sstf-space-2);border:1px solid #dfe6ed;border-radius:var(--sstf-r-s);background:#fafbfc;color:#43576a;font-size:var(--sstf-t-small);font-weight:800;cursor:pointer;text-align:center}.sstf-flow .inventory-stocktake-scope input:checked+span{border-color:#174a87;background:#eef5fc;color:#174a87;box-shadow:var(--sstf-sh-card)}
  .sstf-flow .stocktake-scope-panel{margin:0 0 var(--sstf-space-3)}.sstf-flow .stocktake-product-picker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px;overflow-y:auto}.sstf-flow .stocktake-sheet-submit{position:sticky;bottom:0;display:flex;justify-content:flex-end;margin-top:var(--sstf-space-3);padding-top:9px;background:#fff}
  .sstf-flow .stocktake-count-product{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:11px;margin-bottom:var(--sstf-space-3)}.sstf-flow .stocktake-size-counts{overflow:hidden;border:1px solid #dfe6ed;border-radius:var(--sstf-r-m)}
  .sstf-flow .stocktake-review-list{overflow:hidden;border:1px solid #d9e2eb;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}.sstf-flow .stocktake-review-list>header,.sstf-flow .stocktake-review-row{display:grid;grid-template-columns:minmax(170px,1.6fr) 80px 80px 72px minmax(180px,1fr);align-items:center;gap:var(--sstf-space-2)}.sstf-flow .stocktake-review-product{border-block-start:1px solid #dfe6ed}.sstf-flow .stocktake-review-product-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px var(--sstf-space-3);background:#fafbfd}.sstf-flow .stocktake-review-row{min-height:58px;padding:var(--sstf-space-2) var(--sstf-space-3);border-block-start:1px solid #e8edf2}
  .sstf-flow .stocktake-history-row{display:grid;grid-template-columns:54px minmax(170px,1fr) minmax(110px,auto) auto auto 68px;align-items:center;gap:10px;min-height:78px;padding:10px 13px;border-block-end:1px solid var(--sstf-list-divider);color:inherit;text-decoration:none}.sstf-flow .stocktake-history-row>span:not(.status-pill){display:grid;gap:2px}

  @media(max-width:700px){
    .sstf-flow .warehouse-order-row{grid-template-columns:auto minmax(0,1fr) max-content;grid-template-rows:auto auto auto;gap:3px var(--sstf-space-2);padding:10px}.sstf-flow .warehouse-order-row>strong{grid-row:1/4}.sstf-flow .warehouse-order-row>em{grid-column:3;grid-row:1/4}
.sstf-flow .stocktake-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sstf-flow .warehouse-order-product-card,.sstf-flow .stocktake-product-card{border-radius:var(--sstf-r-m)}
.sstf-flow .stocktake-product-copy strong{font-size:var(--sstf-t-small)}
.sstf-flow .stocktake-product-copy{padding:var(--sstf-space-2)}.sstf-flow .warehouse-pick-check{padding:7px;font-size:var(--sstf-t-small)}
.sstf-flow .stocktake-start-body,.sstf-flow .stocktake-count-sheet form{max-height:calc(92dvh - 64px);padding:11px 10px max(14px,env(safe-area-inset-bottom))}
    .sstf-flow .inventory-stocktake-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.sstf-flow .inventory-stocktake-scope label:first-child{grid-column:1/-1}.sstf-flow .stocktake-product-picker{grid-template-columns:1fr}
  }
}
@media(min-width:960px){.accounting-ui:has(.app-sidebar) main{padding-inline-start:30px;padding-inline-end:30px}.accounting-ui .app-sidebar{background:rgba(250,249,253,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-inline-end-color:rgba(44,47,64,.08)}.accounting-ui .app-sidebar nav a,.accounting-ui .app-sidebar nav button{border-radius:var(--sstf-r-m)}.accounting-ui .app-sidebar a[aria-current=page]{background:var(--finance-lilac);color:#514b9e}}
}
@media(prefers-reduced-motion:no-preference){.accounting-ui dialog[open]{animation:finance-sheet-in .18s ease-out}@keyframes finance-sheet-in{from{opacity:.55;transform:translateY(14px)}to{opacity:1;transform:none}}}
@media print{
 .sstf-flow.accounting-ui{background:#fff!important;color:#111!important}.accounting-ui main{padding:0!important;margin:0!important}.accounting-ui .print-doc-head{display:flex!important;align-items:center;justify-content:space-between;gap:20px;padding:0 0 var(--sstf-space-3);margin:0 0 18px;border-bottom:1px solid #bbb}.print-brand{display:flex;align-items:center;gap:10px}.print-logo{width:46px;height:46px;object-fit:contain}.print-brand>div{display:grid}.print-brand span{font-size:var(--sstf-t-small)}.print-doc-title{display:grid;text-align:end}.print-doc-title strong{font-size:var(--sstf-t-card)}.print-doc-title span{font-size:var(--sstf-t-small)}.accounting-ui footer{display:none!important}
}

/* rc14 — printable operational records (transfers, withdrawals, settlements, corrections). */
@media print{
 .sstf-flow .ops-record-paper .print-doc-head{display:flex!important;align-items:center;justify-content:space-between;gap:20px;padding:0 0 var(--sstf-space-3);margin:0 0 18px;border-bottom:1px solid #bbb}
 .sstf-flow .ops-record-paper .print-brand{display:flex;align-items:center;gap:10px}
 .sstf-flow .ops-record-paper .print-logo{width:46px;height:46px;object-fit:contain}
 .sstf-flow .ops-record-paper .print-brand>div{display:grid}
 .sstf-flow .ops-record-paper .print-brand span{font-size:var(--sstf-t-small)}
 .sstf-flow .ops-record-paper .print-doc-title{display:grid;text-align:end}
 .sstf-flow .ops-record-paper .print-doc-title strong{font-size:var(--sstf-t-card)}
 .sstf-flow .ops-record-paper .print-doc-title span{font-size:var(--sstf-t-small)}
 .sstf-flow .ops-record-paper{background:#fff!important;box-shadow:none!important;border:0!important;padding:0!important}
}

/* rc14 — accountant order context stays read-only and compact. */
@layer sstf-design {

.accounting-ui .simple-list{display:grid;gap:var(--sstf-space-2)}.accounting-ui .simple-list-row{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);padding:var(--sstf-space-3) 13px;border:1px solid var(--finance-line);border-radius:var(--sstf-r-m);background:rgba(255,255,255,.78);color:var(--finance-ink);text-decoration:none}
.accounting-ui .simple-list-row>span{display:grid;gap:2px;min-width:0}.accounting-ui .simple-list-row small{font-size:var(--sstf-t-small);color:var(--finance-muted);}
@media(max-width:520px){.accounting-ui .simple-list-row{align-items:flex-start}.accounting-ui .simple-list-row>strong{font-size:var(--sstf-t-small)}}
}

/* rc15 — specialist workspace controls + app-like accounting home. */
@layer sstf-design {
.sstf-flow .workspace-quick-tools{display:flex;align-items:center;gap:7px;margin:2px 0 10px;min-height:38px}

.sstf-flow .workspace-duty-card{margin:0!important;box-shadow:none!important}.sstf-flow .workspace-duty-card .duty-clock{font-size:clamp(36px,10vw,56px)}
.sstf-flow .sidebar-identity{display:flex;align-items:center;gap:10px;padding:var(--sstf-space-2) var(--sstf-space-2) var(--sstf-space-3);margin:0 0 9px;border-bottom:1px solid var(--ui-line)}
.sstf-flow .sidebar-identity .sidebar-logo{width:38px;height:38px;object-fit:contain;border-radius:var(--sstf-r-s);background:#fff;border:1px solid var(--ui-line)}
.sstf-flow .sidebar-identity .sstf-avatar{width:36px;height:36px;flex-basis:36px}
.sstf-flow .nav-group,.sstf-flow .drawer-group{display:grid;gap:var(--sstf-space-1);margin:0 0 var(--sstf-space-3)}.sstf-flow .nav-group>strong,.sstf-flow .drawer-group>strong{padding:5px 10px 2px;color:#8a909c;font-size:var(--sstf-t-small);font-weight:800;letter-spacing:.1px}.sstf-flow .nav-group+ .nav-group,.sstf-flow .drawer-group+ .drawer-group{padding-top:6px;border-top:1px solid #eef0f3}

.accounting-ui{--finance-bg:#fbfbfc;--finance-surface:#fff;--finance-line:#e5e7ec;--finance-ink:#172033;--finance-muted:var(--sstf-text-muted,#5f6d7c);--finance-lilac:#f0eefb;--finance-blue:#eef5fb;--finance-green:#edf7f1;--finance-amber:#fff7e9;--finance-red:#fceeee;background:#fbfbfc;--ui-bg:#fbfbfc;--ui-primary:var(--sstf-brand-primary,#174a87);--ui-primary-soft:var(--sstf-brand-primary-soft,#edf4fb);--ui-line:#e5e7ec}
.accounting-ui .app-header{background:rgba(255,255,255,.94);border-bottom:1px solid #eef0f3;box-shadow:var(--sstf-sh-card);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.accounting-ui section{background:#fff;border-color:var(--finance-line);backdrop-filter:none;-webkit-backdrop-filter:none}
.accounting-ui .finance-home-card{padding:15px;margin:10px 0}
.accounting-ui .finance-home-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 var(--sstf-space-3)}.accounting-ui .finance-home-title>div{display:grid;gap:0}
.accounting-ui .finance-action-row{min-height:56px;padding:9px 10px;border-radius:var(--sstf-r-m);background:#fff;border-color:#edf0f3;box-shadow:none}
.accounting-ui .movement-sign{width:34px;height:34px;flex-basis:34px;border-radius:var(--sstf-r-s)}.accounting-ui .finance-action-row strong,.accounting-ui .movement-copy strong{font-size:var(--sstf-t-small)}.accounting-ui .movement-copy small{font-size:var(--sstf-t-small)}.accounting-ui .movement-amount{font-size:var(--sstf-t-small)}
.accounting-ui .op-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:var(--sstf-space-1);border-radius:var(--sstf-r-s);background:#fff;color:#18477f;font-size:var(--sstf-t-page);font-weight:800;border:1px solid #e7e9ed}.accounting-ui .op-out{color:#b13342}.accounting-ui .op-in{color:#197548}.accounting-ui .op-transfer{color:#514d9e}
.accounting-ui .finance-form-help{padding:10px var(--sstf-space-3);margin:var(--sstf-space-2) 0 var(--sstf-space-1);border-radius:var(--sstf-r-m);background:#f7f8fa;color:#687180;font-size:var(--sstf-t-small);line-height:1.7}.accounting-ui .account-form{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
.accounting-ui .customer-balance-card,.accounting-ui .supplier-finance-card{background:#fff!important;border:1px solid var(--finance-line)!important;border-radius:var(--sstf-r-m)!important;box-shadow:none!important}
.accounting-ui .app-drawer{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}.accounting-ui .app-drawer nav a,.accounting-ui .app-drawer nav button{background:#fff!important;border:0!important;border-radius:var(--sstf-r-m)!important}.accounting-ui .app-drawer nav a[aria-current]{background:#edf4fb!important;color:#18477f!important;border:0!important}
@media(max-width:700px){
 .sstf-flow .workspace-quick-tools{position:relative;margin:-3px 0 8px;justify-content:flex-start}
 .accounting-ui main{padding-inline:var(--sstf-space-3)}.accounting-ui .page-heading{margin-bottom:var(--sstf-space-1)}.accounting-ui .page-heading h1{font-size:var(--sstf-t-card)}.accounting-ui .finance-home-card{padding:13px}
 .accounting-ui .mobile-nav{background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid #eef0f3}.accounting-ui .mobile-nav>[aria-current]{background:#edf4fb!important;color:#18477f!important}.accounting-ui .mobile-nav>button[data-open-calculator] .small-icon{background:#f0eefb;color:#5650a6}
}
@media(max-width:390px){}
}

@layer sstf-design {

@media(max-width:700px){}
}

/* rc15-motion:start */
@keyframes sstf-sheet-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes sstf-backdrop-in{from{background:rgba(22,28,40,0)}to{background:rgba(22,28,40,.30)}}
@keyframes sstf-drawer-in{from{opacity:.92;transform:translateX(22px)}to{opacity:1;transform:translateX(0)}}
.sstf-flow .app-drawer[open]{animation:sstf-drawer-in .18s cubic-bezier(.2,.75,.25,1)}
@media(prefers-reduced-motion:reduce){
.sstf-flow .app-drawer[open]{animation:none}}
/* rc15-motion:end */

/* rc16 — Accounting visual-shell alignment.
 * Scope is presentation only: accounting keeps its own pages, fields, data and workflows,
 * while the outer chrome/cards now use the exact same visual language as the staff dashboard.
 */
.accounting-ui{
  --ui-bg:#fff;
  --ui-surface:var(--sstf-brand-surface,#fff);
  --ui-primary:var(--sstf-brand-primary,#174a87);
  --ui-primary-soft:#edf3fc;
  --ui-line:#dfe5ed;
  background:var(--ui-bg)!important;
  color:#111;
}
/* Do not give Accounting a separate theme for the shared shell. */
.accounting-ui .app-header{
  background:#fff!important;
  border-bottom:1px solid var(--ui-line)!important;
  box-shadow:var(--sstf-sh-card)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.accounting-ui .mobile-nav{
  background:#fff!important;
  border-top:1px solid var(--ui-line)!important;
  box-shadow:var(--sstf-sh-card)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.accounting-ui .mobile-nav>a,
.accounting-ui .mobile-nav>button{
  background:#fff!important;
  border-radius:var(--sstf-r-s)!important;
}
.accounting-ui .mobile-nav>[aria-current]{
  background:var(--ui-primary-soft)!important;
  color:var(--ui-primary)!important;
  box-shadow:inset 0 3px 0 var(--ui-primary)!important;
}
.accounting-ui .app-drawer{
  background:#fff!important;
  border-inline-end:1px solid var(--ui-line)!important;
  box-shadow:var(--sstf-sh-card)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.accounting-ui .app-drawer nav a,
.accounting-ui .app-drawer nav button{
  background:#fff!important;
  border:0!important;
  border-radius:var(--sstf-r-s)!important;
}
.accounting-ui .app-drawer nav a[aria-current]{
  background:var(--ui-primary-soft)!important;
  color:var(--ui-primary)!important;
  font-weight:750;
}
@media(min-width:960px){
  .accounting-ui:has(.app-sidebar) main{padding-inline-start:28px;padding-inline-end:28px}
  .accounting-ui .app-sidebar{
    background:#fff!important;
    border-inline-end:1px solid var(--ui-line)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .accounting-ui .app-sidebar nav a,
  .accounting-ui .app-sidebar nav button{border-radius:var(--sstf-r-s)!important}
  .accounting-ui .app-sidebar a[aria-current=page]{
    background:var(--ui-primary-soft)!important;
    color:var(--ui-primary)!important;
    font-weight:750;
  }
}
.accounting-ui .customer-balance-card,.accounting-ui .supplier-finance-card{
  background:#fff!important;
  border:1px solid var(--ui-line)!important;
  border-radius:var(--sstf-r-m)!important;
  box-shadow:var(--sstf-sh-card)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.accounting-ui .finance-home-card{padding:var(--sstf-space-4);margin:var(--sstf-space-4) 0 20px}
.accounting-ui .finance-action-row,.accounting-ui .simple-list-row{
  background:#fff!important;
  border:1px solid var(--ui-line)!important;
  border-radius:var(--sstf-r-m)!important;
  box-shadow:var(--sstf-sh-card)!important;
}
/* Remove the former lilac/green/amber accounting-only surfaces from the home page. */

@media(max-width:520px){
  .accounting-ui .finance-home-card{padding:var(--sstf-space-3);margin:var(--sstf-space-3) 0 var(--sstf-space-4)}
}

/* rc17 — unified action language + accounting home refinements */
@layer sstf-design {
  .sstf-flow{
    --ui-primary:var(--sstf-brand-primary,#174a87);
    --ui-primary-soft:#edf3fc;
    --ui-action-review:#b76613;
    --ui-action-review-soft:#fff4e8;
    --ui-action-payment:#7353a6;
    --ui-action-payment-soft:#f4effc;
    --ui-action-receipt:#1769a5;
    --ui-action-receipt-soft:#eaf4fd;
    --ui-action-success:#24724c;
    --ui-action-success-soft:#edf8f2;
  }
  /* Team and attendance are deliberate workspace actions, not plain white utilities. */
  
  

  /* Primary actions use one color across the plugin. */
  .sstf-flow :is(.flow-button.primary,.account-action-bar button:not(.secondary):not(.danger),.task-bar button:not(.secondary):not(.danger),button.duty-primary){
    background:var(--ui-primary)!important;color:#fff!important;border-color:var(--ui-primary)!important;
  }

  /* Accounting: cash is represented by the funds themselves — no duplicate total-balance tile. */
  .accounting-ui .finance-cash-card{border-width:2px!important}
  
  
  
  
  
  
  
  
  
  

  /* A card that needs an action must look actionable at a glance. */
  
  .accounting-ui .finance-action-row{border-width:1.5px!important;min-height:64px!important}
  .accounting-ui .finance-action-row[data-tone="approval"]{background:var(--ui-action-review-soft)!important;border-color:#e5bf95!important;color:#8d4b0b}
  .accounting-ui .finance-action-row[data-tone="payment"]{background:var(--ui-action-payment-soft)!important;border-color:#d4c5e9!important;color:#60458e}
  .accounting-ui .finance-action-row[data-tone="advance"]{background:#fff8e6!important;border-color:#e8cf91!important;color:#8a6216}
  .accounting-ui .finance-action-row[data-tone="receipt"]{background:var(--ui-action-receipt-soft)!important;border-color:#bad4ea!important;color:#155b90}
  
  
  
  
  
  .accounting-ui .finance-action-row strong{color:inherit!important;font-weight:850!important}

  /* Dense accounting sections start collapsed and have a strong, centered section title. */
  
  .accounting-ui details.account-fold{overflow:hidden}
.accounting-ui details.account-fold>summary{
    display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;margin:0;padding:10px 14px;background:#eef4fb;color:#173d6e;font-weight:850;font-size:var(--sstf-t-body);text-align:center;list-style:none;
  }
.accounting-ui details.account-fold>summary::-webkit-details-marker{display:none}
.accounting-ui details.account-fold>*:not(summary){margin-inline:var(--sstf-space-3)}
  
  
  .accounting-ui .finance-new-receipt>summary{background:var(--ui-primary)!important;color:#fff!important;border-radius:var(--sstf-r-m)!important}

  /* Quick operation chooser and the actual form are buttons/dialogs, never disguised navigation. */
  
  
  
  
  
  
  

  .accounting-ui .finance-form-sheet{width:min(760px,96vw);height:min(820px,92dvh);max-height:92dvh;padding:0;overflow:hidden;border:0;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
  .accounting-ui .finance-form-sheet::backdrop{background:rgba(17,31,49,.42);backdrop-filter:blur(3px)}
  
  
  .accounting-ui .finance-form-sheet iframe{display:block;width:100%;height:calc(100% - 65px);border:0;background:#fff}
  .finance-embedded main{max-width:none!important;margin:0!important;padding:var(--sstf-space-3) 14px var(--sstf-space-5)!important}
  
  
  .finance-embedded .account-fields{gap:var(--sstf-space-2) var(--sstf-space-3)!important}.finance-embedded label{margin:var(--sstf-space-1) 0!important}.finance-embedded :is(input,select,textarea){margin-top:var(--sstf-space-1)!important;min-height:44px!important}
  .finance-embedded .account-action-bar{position:sticky;bottom:0;z-index:4;margin:10px -14px -24px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--ui-line);box-shadow:var(--sstf-sh-card)}
}

/* rc17 — action surfaces shared by finance review queues */
@layer sstf-design {
  .finance-action-section,
  .finance-action-documents {
    border: 2px solid #cbd9ee;
    border-radius:var(--sstf-r-m);
    background: linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
    box-shadow:var(--sstf-sh-card);
  }
  .finance-action-section { padding:var(--sstf-space-4); margin-block:var(--sstf-space-4); }
  .finance-action-section .section-simple-head { margin-block:0 var(--sstf-space-3); }
  .finance-review-section { border-color:#f2c46d; background:linear-gradient(180deg,#fffdf7,#fff7e8); }
  .finance-conversion-section { border-color:#b8c9e5; background:linear-gradient(180deg,#fbfdff,#f2f6fc); }
  .finance-action-heading { border:2px solid #f2c46d; border-radius:var(--sstf-r-m); padding:14px var(--sstf-space-4); background:#fff9eb; }
  .finance-action-documents { padding:10px; }
  .finance-action-documents .account-document-row,
  .finance-review-section .account-document-row,
  .finance-conversion-section .account-document-row { border-width:2px; background:#fff; }
  
}

/* rc17 — compact customer product workspace and final shared density pass */
@layer sstf-design {

  /* Bottom navigation is denser, icons retain the same 32px visual size. */
  .sstf-flow{--ui-nav-height:68px}
  .sstf-flow .mobile-nav,.sstf-flow .store-bottom-nav{padding:3px 7px calc(3px + env(safe-area-inset-bottom,0px));gap:3px}
  .sstf-flow :where(.mobile-nav,.store-bottom-nav)>:where(a,button){min-height:54px;padding:2px;font-size:var(--sstf-t-small);gap:1px}
  .sstf-flow :where(.mobile-nav,.store-bottom-nav) :where(.nav-icon,.small-icon){width:32px;height:32px;flex-basis:32px}

  /* Public customer header: context and logout live inside the existing 76px shell. */
  .sstf-customer .app-header{padding-block:calc(7px + env(safe-area-inset-top,0px)) 7px}
  .sstf-customer .header-context{display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0;margin-inline-start:auto}
  .sstf-customer .header-context>strong{font-size:var(--sstf-t-small);line-height:1.3;color:#24364d;max-width:132px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sstf-customer .header-customer-logout{margin:0;display:flex}
  
  .sstf-customer .app-content-anchor{height:0;margin:0;padding:0;outline:0}
  .sstf-customer main{padding-top:calc(var(--ui-app-height) + 5px)}

  /* Initial customer card: all essential order context in one compact surface. */
  .sstf-flow .customer-start-card{margin:0 0 10px;overflow:hidden}
  .sstf-flow .customer-start-card>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:var(--sstf-space-2) var(--sstf-space-3);background:#fbfcfe;cursor:pointer;border:0}
  .sstf-flow .customer-start-card>summary::-webkit-details-marker{display:none}
  .sstf-flow .customer-start-card>summary span{font-size:var(--sstf-t-small);color:#69778a}
  .sstf-flow .customer-start-card>summary strong{font-size:var(--sstf-t-small);color:#6654a7;text-align:end}
  .sstf-flow .customer-start-card[open]>summary{border-bottom:1px solid #edf0f4}
  .sstf-flow .customer-start-content{padding:9px 11px 11px}
  
  
  
  .sstf-customer .batch-state{grid-column:1/-1;margin:2px 0 0;padding:7px 9px;border:1px solid #e3b9b6;border-radius:var(--sstf-r-s);background:#fff7f6;color:#8d2d27;font-size:var(--sstf-t-small)}

  /* Multi-image tray: visible only when there are uncompleted batch items. */
  .sstf-customer .batch-gallery{padding:10px 11px;margin:var(--sstf-space-2) 0;border:2px solid #d8e2f0;border-radius:var(--sstf-r-m);background:#f8fbff;box-shadow:none}
  
  
  
  
  
  
  

  /* Product wizard: modal, stable, compact and keyboard-friendly. */
  .sstf-flow dialog.product-wizard{padding:0;border:1.5px solid #ccd7e5;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
  .sstf-flow dialog.product-wizard::backdrop{background:rgba(19,32,49,.58);backdrop-filter:blur(2px)}
  .sstf-flow .product-wizard .head{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:9px;min-height:45px;padding:6px 9px;border-bottom:1px solid #e9edf2;border-radius:0;background:#fff;box-shadow:none}
  .sstf-flow .product-wizard .wizard-close{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:var(--sstf-r-s);font-size:var(--sstf-t-page);line-height:1;background:#f5f7f9;color:#173d70;border:1px solid #dde3ea}
  .sstf-flow .compact-progress{display:grid;grid-template-columns:1fr 34px;align-items:center;gap:7px;direction:ltr}
  .sstf-flow .compact-progress .track{height:5px;border-radius:var(--sstf-radius-pill);overflow:hidden;background:#e8edf4}
  .sstf-flow .compact-progress .fill{height:100%;border-radius:var(--sstf-radius-pill);background:linear-gradient(90deg,#174a87,#6e56b3);transition:width .18s ease}
  .sstf-flow .compact-progress .pct{font-size:var(--sstf-t-small);font-weight:750;color:#546479;text-align:center}
  .sstf-flow .product-wizard .wizard-body{overscroll-behavior:contain;padding:13px 14px 10px;background:#fff}
  .sstf-flow .product-wizard .title{font-size:var(--sstf-t-card);line-height:1.45;margin:0 0 var(--sstf-space-2);text-align:center}
  .sstf-flow .product-wizard .wizard-foot{display:flex;gap:7px;min-height:54px;padding:7px 9px;border-top:1px solid #e9edf2;border-radius:0;background:#fff;box-shadow:var(--sstf-sh-card)}
  .sstf-flow .product-wizard .wizard-foot button{flex:1;min-width:0;min-height:40px;padding:6px 10px;font-size:var(--sstf-t-small)}
  .sstf-flow .product-wizard :where(input,select,textarea){min-height:43px;padding:var(--sstf-space-2) 10px;margin:3px 0 7px}
  .sstf-flow .product-wizard textarea{min-height:64px}
  .sstf-flow .product-wizard .choices{margin:6px 0 9px}.sstf-flow .product-wizard .choice{min-height:78px;padding:var(--sstf-space-2)}
  .sstf-flow .product-wizard .size-grid{gap:6px}.sstf-flow .product-wizard .size-cell{padding:6px;gap:3px}
  .sstf-flow .product-wizard .upload-box{padding:10px;margin:0}.sstf-flow .product-wizard .image-preview{width:100%;max-height:min(50dvh,360px);object-fit:contain;border-radius:var(--sstf-r-s)}
  .sstf-flow .product-wizard .upload-state:empty{display:none}.sstf-flow .product-wizard .upload-state{margin:5px 0 0;font-size:var(--sstf-t-small);color:#9a2f28}
  .sstf-flow .product-wizard .has-error{border:1.5px solid #d64b42;border-radius:var(--sstf-r-s);padding:9px;background:#fffafa}

  /* Saved products stay behind one compact, closed-by-default accounting-style field. */
  .sstf-customer .product-table-fold{padding:0;margin:9px 0;border:2px solid #cbd9e8;border-radius:var(--sstf-r-m);background:#f7faff;box-shadow:none;overflow:hidden}
  .sstf-customer .product-table-fold>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:9px;min-height:45px;padding:var(--sstf-space-2) var(--sstf-space-3);cursor:pointer;background:linear-gradient(180deg,#f7faff,#edf4fc);color:#173d70;font-weight:800;text-align:center}
  
  
  .sstf-customer .product-table-fold .count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 6px;border-radius:var(--sstf-radius-pill);background:#174a87;color:#fff;font-size:var(--sstf-t-small)}
  .sstf-customer .product-table-content{padding:var(--sstf-space-2);background:#fff;border-top:1px solid #e5eaf0}
  .sstf-customer .product-table-content .section-heading{margin:0 0 5px;min-height:0}
  
  .sstf-customer .product-thumb{width:52px;height:52px;border-radius:var(--sstf-r-s)}
  
  
  

  .sstf-customer .order-actions{gap:7px;margin:var(--sstf-space-2) 0}
  .sstf-customer .customer-export-toolbar{padding:0;margin:9px 0;border:2px solid #d8e0ea;border-radius:var(--sstf-r-m);box-shadow:none;background:#fff;overflow:hidden}
  .sstf-customer .customer-export-toolbar>summary{list-style:none;min-height:44px;padding:9px var(--sstf-space-3);text-align:center;cursor:pointer;background:#f7f9fc;color:#1b3e6a}
  
  
}

@layer sstf-design {
 @media(max-width:600px){
  .sstf-customer main{padding-inline:var(--sstf-space-2);padding-top:calc(var(--ui-app-height) + 3px)}
  .sstf-customer .app-header{padding-inline:var(--sstf-space-2);gap:5px}.sstf-customer .brand-lockup{gap:6px}.sstf-customer .app-header .company-name{font-size:var(--sstf-t-body)}.sstf-customer .app-header .company-name-ar{font-size:var(--sstf-t-small);margin-top:1px}
  .sstf-customer .header-context{gap:var(--sstf-space-1)}.sstf-customer .header-context>strong{font-size:var(--sstf-t-small);max-width:74px}
  .sstf-flow .customer-start-card>summary{min-height:38px;padding:6px 9px}.sstf-flow .customer-start-content{padding:7px var(--sstf-space-2) 9px}
  
  .sstf-customer .product-wizard .wizard-body{padding:10px 10px 7px}.sstf-customer .product-wizard .title{font-size:var(--sstf-t-card);margin-bottom:6px}
  .sstf-customer .product-wizard .choice{min-height:69px;padding:6px var(--sstf-space-1);font-size:var(--sstf-t-small)}
  .sstf-customer .product-wizard .size-cell{font-size:var(--sstf-t-small);padding:var(--sstf-space-1)}
  .sstf-customer .product-table-content{padding:6px}
  
 }
}
@layer sstf-design {
 
 
}

/* rc17 — historical finance sections stay quiet until requested. */
@layer sstf-design {
  .accounting-ui .finance-history-fold{margin-block:14px!important}
  .accounting-ui .finance-history-fold .finance-history-body{padding:10px 0 14px}
  .accounting-ui .finance-history-fold .finance-history-actions{display:flex;justify-content:flex-end;margin:0 0 var(--sstf-space-2)}
  .accounting-ui .finance-history-fold .account-documents,
  .accounting-ui .finance-history-fold .simple-list{margin-block:0}
}
@layer sstf-design {
  
  
}
@layer sstf-design {
}
@layer sstf-design {
  .sstf-customer .product-wizard .has-error{border:0;padding:0;background:transparent}
  .sstf-customer .product-wizard .has-error :is(input,select,textarea){border-color:#d64b42!important;box-shadow:var(--sstf-sh-card)}
  
}
@layer sstf-design {
  
}
@layer sstf-design {
  .sstf-customer .customer-order-note{margin:0 0 7px;padding:6px var(--sstf-space-2);border-inline-start:3px solid #8a74c1;background:#faf8ff;color:#5f5870;font-size:var(--sstf-t-small);line-height:1.55}
}

/* rc17-fix1 — exact compact customer order layout + real product table */
@layer sstf-design {
  /* The ordinary customer order is a page, not a dashboard: no bottom navigation. */
  .sstf-customer.plain-order-page :where(.mobile-nav,.public-nav){display:none!important}
  
  

  /* Keep the dropshipping dashboard chrome intact. Only the order content below is shared. */
  

  /* Static order data block: same compact two-row/three-column arrangement as the reference. */
  .sstf-flow .customer-order-static{
    display:block!important;
    margin:0 0 10px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .sstf-flow .customer-order-static .customer-start-content{padding:7px 10px 10px!important}
  
  
  
  
  
  
  .sstf-flow .customer-order-static .order-meta-country .order-country-value{display:flex!important;flex-wrap:nowrap!important;justify-items:center!important;gap:2px!important;overflow:visible!important}
  .sstf-flow .customer-order-static .order-meta-country .order-country-flag{font-size:var(--sstf-t-card)!important;line-height:1!important;overflow:visible!important}
  
  
  .sstf-flow .customer-order-static .customer-order-note{
    margin:7px 2px 0!important;padding:5px var(--sstf-space-2)!important;border-inline-start:3px solid #8d78c5!important;background:#faf9ff!important;
  }
  
  
  .sstf-customer .image-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important}
  .sstf-customer .batch-state{
    grid-column:1/-1!important;margin:1px 0 0!important;padding:var(--sstf-space-1) 2px!important;border:0!important;background:transparent!important;
    color:#586170!important;font-size:var(--sstf-t-small)!important;font-weight:650!important;line-height:1.45!important;
  }
  

  /* Multi-image queue: horizontal, compact, clear current/error state. */
  .sstf-customer .batch-gallery{
    margin:9px 0 11px!important;padding:var(--sstf-space-2) 9px!important;border:1px solid #e0e4eb!important;border-radius:var(--sstf-r-s)!important;background:#fbfcfe!important;box-shadow:none!important;
  }
  
  
  
  
  
  
  
  
  

  /* A true compact table inspired by the supplied timetable: grid lines, not product cards. */
  .sstf-customer .product-table-sheet{
    display:block;
    margin:var(--sstf-space-3) 0 var(--sstf-space-2)!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .sstf-customer .product-table-sheet[hidden]{display:none!important}
  .sstf-customer .product-table-title{
    position:relative!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    min-height:50px!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;
    border:0!important;border-radius:var(--sstf-r-m)!important;
    background:linear-gradient(180deg,#fafaff 0%,#f3f4fa 100%)!important;
    color:#173d70!important;text-align:center!important;
  }
  .sstf-customer .product-table-title strong{font-size:var(--sstf-t-card)!important;font-weight:850!important}
  .sstf-customer .product-table-title .count{display:none!important}
  .sstf-customer .product-table-content{padding:0!important;border:0!important;background:#fff!important}
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* Match the reference ordering under the table. */
  .sstf-customer .order-actions:not(.staff-review-actions){display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:var(--sstf-space-2) 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .sstf-customer .order-actions[hidden]{display:none!important}
  .sstf-customer .order-actions:not(.staff-review-actions) button{min-height:48px!important;margin:0!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important;font-weight:850!important}
  
  
  .sstf-customer .customer-export-toolbar{margin:var(--sstf-space-2) 0!important;padding:0!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:linear-gradient(180deg,#fafaff,#f4f5fa)!important;box-shadow:none!important;overflow:hidden!important}
  .sstf-customer .customer-export-toolbar>.export-dialog-trigger{min-height:49px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;background:transparent!important;color:#173d70!important;font-size:var(--sstf-t-body)!important}

  @media(max-width:600px){
    
    .sstf-flow .customer-order-static .customer-start-content{padding-inline:var(--sstf-space-1)!important}
    
    
    
    .sstf-customer .product-table-title{min-height:48px!important}.sstf-customer .product-table-title strong{font-size:var(--sstf-t-body)!important}
  }
}

/* rc17.2 — requested soft color accents for order info and add-product actions */
@layer sstf-design {
  /* Customer/order information block: pale navy from the right fading cleanly to white. */
  

  /* Keep the individual fields transparent so the gradient reads as one unified information area. */
  

  /* Two intentionally different muted action colors, still using the same shape and weight. */
  
  
}

@layer sstf-design {
  @media(max-width:600px){
    
  }
}

/* rc17.3 — batch queue plus tile and first-step image flow */

/* rc17.4 — compact dropshipping recipients without recipient cards */
@layer sstf-design {
  

  .sstf-customer .recipient-editor-dialog{
    width:min(720px,calc(100vw - 14px))!important;max-height:92dvh!important;padding:0!important;border:0!important;border-radius:var(--sstf-r-m)!important;
    background:#fff!important;box-shadow:var(--sstf-sh-card)!important;overflow:hidden!important;
  }
  .sstf-customer .recipient-editor-dialog .recipient-editor{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2) 10px!important;
    max-height:calc(92dvh - 56px)!important;overflow-y:auto!important;padding:10px var(--sstf-space-3) 14px!important;background:#fff!important;
  }
  .sstf-customer .recipient-editor-dialog .recipient-editor label{margin:0!important;font-size:var(--sstf-t-small)!important;font-weight:750!important;color:#445267!important}
  .sstf-customer .recipient-editor-dialog .recipient-editor :is(input,select,textarea){min-height:39px!important;margin-top:var(--sstf-space-1)!important;padding:7px 9px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important}
  .sstf-customer .recipient-editor-dialog .recipient-editor textarea{min-height:66px!important}
  
  .sstf-customer .recipient-import-visible{
    grid-column:1/-1!important;display:grid!important;gap:5px!important;padding:10px!important;border:1.5px solid #d8c8ef!important;border-radius:var(--sstf-r-s)!important;
    background:linear-gradient(135deg,#fbf7ff 0%,#f4f7ff 100%)!important;
  }
  .sstf-customer .recipient-import-visible>strong{font-size:var(--sstf-t-small)!important;color:#6750a4!important;font-weight:900!important}
  .sstf-customer .recipient-import-visible>small{font-size:var(--sstf-t-small)!important;color:#6f7180!important}
  
  .sstf-customer .recipient-import-apply{justify-self:start!important;min-height:34px!important;margin:0!important;padding:5px 10px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important;color:#5f4a96!important;border-color:#cab9e6!important;background:#fff!important}
  .sstf-customer .recipient-import-notice{margin:0!important;white-space:pre-line!important;color:#8a5a22!important;font-size:var(--sstf-t-small)!important;line-height:1.45!important}
  .sstf-customer .recipient-dialog-actions{display:grid!important;gap:var(--sstf-space-2,8px)!important;padding-top:var(--sstf-space-2,8px)!important}
  /* legacy small dialog buttons removed (central buttons) */
  /* legacy first-child colour removed (central send button) */

  /* Draft/review actions remain visible whenever the workspace is not editing a product. */
  

  @media(max-width:600px){
    .sstf-customer .recipient-editor-dialog{width:calc(100vw - 8px)!important;max-height:96dvh!important;border-radius:var(--sstf-r-m)!important}
    .sstf-customer .recipient-editor-dialog .recipient-editor{grid-template-columns:1fr!important;max-height:calc(96dvh - 56px)!important;padding:9px!important}
    
  }
}

/* rc17.5 — pending-image delete control + focused recipient container */
@layer sstf-design {
  

  @media(max-width:600px){
  }
}
@layer sstf-design {
  
}

/* rc17.6 — simplified dropshipping hierarchy: order > recipients > products */
@layer sstf-design {
  .sstf-flow .recipient-products-table img{width:45px!important;height:45px!important;object-fit:cover!important;border-radius:var(--sstf-r-s)!important;border:1px solid #e2e6ec!important}
  .sstf-flow .recipient-products-table td:nth-child(2){display:table-cell!important}
  .sstf-flow .recipient-products-table td:nth-child(2) b{display:block!important;font-size:var(--sstf-t-small)!important;color:#152b45!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .sstf-flow .recipient-products-table td:nth-child(2) small{display:block!important;margin-top:2px!important;color:#7f8997!important;font-size:var(--sstf-t-small)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .sstf-customer .recipient-size-grid{display:flex!important;flex-wrap:wrap!important;gap:3px!important;max-height:52px!important;overflow:hidden!important}
  

  /* A batch queue belongs to the recipient selected at creation time. */
  .sstf-customer.store-order-workspace .batch-gallery{border-color:#cbd9e8!important;background:#f8fbff!important}

  @media(max-width:600px){
  }
}

@layer sstf-design {
  @media(max-width:600px){
    .sstf-flow .recipient-products-table img{width:41px!important;height:41px!important}
    
  }
}

/* rc17.7 — full review image + full-order review card/dialog */
@layer sstf-design {
  .sstf-customer .product-wizard .product-summary .review-full-image{
    display:block!important;
    width:min(100%,420px)!important;
    height:auto!important;
    max-height:320px!important;
    object-fit:contain!important;
    margin:0 auto 12px!important;
    padding:6px!important;
    border:1px solid #e1e6ed!important;
    border-radius:var(--sstf-r-s)!important;
    background:#fff!important;
  }
  

  @media(max-width:600px){
  }
}

/* rc17.8 — compact recipient product tables grouped directly under recipients */
@layer sstf-design {
  
  
  .sstf-customer .recipient-direct-review-products{padding:0!important;margin:0!important;background:#fff!important}
  .sstf-customer .recipient-direct-review-products .recipient-products-table-wrap{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .sstf-customer .recipient-direct-review-products .recipient-products-table{margin:0!important;border:0!important}
  .sstf-customer .recipient-table-download-icon{
    display:grid!important;
    place-items:center!important;
    flex:0 0 31px!important;
    width:31px!important;
    min-width:31px!important;
    height:31px!important;
    min-height:31px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #cbd8e8!important;
    border-radius:var(--sstf-r-s)!important;
    background:rgba(255,255,255,.88)!important;
    color:#174a87!important;
    box-shadow:none!important;
  }
  
  
  
  .sstf-customer .recipient-table-download-icon.all{background:#174a87!important;color:#fff!important;border-color:#174a87!important}

  @media(max-width:600px){
    
    
    .sstf-customer .recipient-table-download-icon{width:29px!important;min-width:29px!important;height:29px!important;min-height:29px!important}
  }
}

/* rc17.10 — accounting information architecture: fund-first workspace */
@layer sstf-design {
  .accounting-ui .finance-fund-stack{display:grid;gap:var(--sstf-space-3);margin-top:var(--sstf-space-3)}
  .accounting-ui .finance-fund-main-card{
    display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-4);min-height:92px;padding:18px 20px;
    border:1.5px solid #dbe3ee;border-radius:var(--sstf-r-m);background:#fff;color:#16283f;text-decoration:none;
    box-shadow:var(--sstf-sh-card);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
  }
  .accounting-ui .finance-fund-main-card:hover,.accounting-ui .finance-fund-main-card:focus-visible{transform:translateY(-1px);box-shadow:var(--sstf-sh-card);border-color:#b9c9dc}
  .accounting-ui .finance-fund-main-card span{font-size:var(--sstf-t-card);font-weight:900;color:#173d70}
  .accounting-ui .finance-fund-main-card strong{font-size:var(--sstf-t-page);font-weight:900;color:#102b4e}
  
  
  

  .accounting-ui .fund-page-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-4);margin:0 0 var(--sstf-space-3);padding:18px 20px;border:1.5px solid #d7e0eb;border-radius:var(--sstf-r-m);background:linear-gradient(90deg,#f2f6fb 0%,#fff 66%);box-shadow:var(--sstf-sh-card)}
  .accounting-ui .fund-page-head small{font-size:var(--sstf-t-small);color:#788598}.accounting-ui .fund-page-balance{font-size:var(--sstf-t-page);color:#0f2e55}
  .accounting-ui .fund-action-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 14px}
  .accounting-ui .fund-section{margin:0 0 var(--sstf-space-3);padding:13px}.accounting-ui .fund-section .section-simple-head{margin:0 0 9px}
  .accounting-ui .fund-ledger-table .amount-out{color:#aa3c35;font-weight:850}
  .accounting-ui .fund-fold{margin:var(--sstf-space-2) 0!important;border:1.5px solid #dbe3ec!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:none!important;overflow:hidden}.accounting-ui .fund-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);min-height:44px;padding:9px 11px;background:#f8fafc;color:#173d70;font-weight:850;cursor:pointer}.accounting-ui .fund-fold-body{padding:9px;background:#fff}.accounting-ui .fund-tool-links{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:var(--sstf-space-2)}
  .accounting-ui .opening-balance-admin{margin-top:18px}.accounting-ui .opening-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-ui .opening-admin-card{padding:13px;border:1.5px solid #dbe3ec;border-radius:var(--sstf-r-m);background:#fff}.accounting-ui .opening-admin-card>b{font-size:var(--sstf-t-card);color:#173d70}

  /* Accounting sidebar groups are fields: open one group at a time. */
  .accounting-ui .app-sidebar .nav-dropdown,.accounting-ui .app-drawer .nav-dropdown{display:block;margin:0 0 7px;border:1px solid #e2e7ee;border-radius:var(--sstf-r-s);background:#fff;overflow:hidden}
  .accounting-ui .nav-dropdown>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);min-height:42px;padding:var(--sstf-space-2) 10px;cursor:pointer;color:#33455a;font-size:var(--sstf-t-small);font-weight:850;background:#f8fafc}
  .accounting-ui .nav-dropdown>summary::-webkit-details-marker{display:none}.accounting-ui .nav-dropdown>summary i{font-style:normal;font-size:var(--sstf-t-body);transition:transform .15s ease}.accounting-ui .nav-dropdown[open]>summary i{transform:rotate(180deg)}
  .accounting-ui .nav-dropdown-body{display:grid;gap:3px;padding:5px}.accounting-ui .nav-dropdown-body a{min-height:42px!important;padding:7px 9px!important;border-radius:var(--sstf-r-s)!important}
  .accounting-ui .nav-dropdown[open]{border-color:#cad7e6}.accounting-ui .nav-dropdown:has(a[aria-current=page])>summary{background:#edf4fb;color:#174a87}

}
@layer sstf-design {
  @media(max-width:700px){
    .accounting-ui .finance-fund-main-card{min-height:82px;padding:15px}.accounting-ui .finance-fund-main-card strong{font-size:var(--sstf-t-card)}
    .accounting-ui .fund-page-head{padding:15px}.accounting-ui .fund-page-balance{font-size:var(--sstf-t-page)}.accounting-ui .fund-action-bar{grid-template-columns:1fr 1fr}.accounting-ui .fund-ledger-table th,.accounting-ui .fund-ledger-table td{padding:7px 6px;font-size:var(--sstf-t-small)}.accounting-ui .opening-grid{grid-template-columns:1fr}
  }
}
@layer sstf-design {
}

/* rc18 — employee workspace: compact account, orders and in-place messaging */
@layer sstf-design {
  .account-profile-strip{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);margin:0 0 var(--sstf-space-3);padding:var(--sstf-space-3) 14px;border:1.5px solid #dbe3ec;border-radius:var(--sstf-r-m);background:linear-gradient(90deg,#f2f6fb 0%,#fff 68%);box-shadow:var(--sstf-sh-card)}
  .account-profile-person{display:flex;align-items:center;gap:10px;min-width:0}.account-profile-person>span{display:grid;gap:1px;min-width:0}.account-profile-person strong{font-size:var(--sstf-t-body);color:#173d70;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-profile-person small{font-size:var(--sstf-t-small);color:#7a8798}
  .account-mini-action>summary{list-style:none;cursor:pointer;color:#174a87;font-size:var(--sstf-t-small);font-weight:800}.account-mini-action[open]{padding:var(--sstf-space-2);border:1px solid #dce3ec;border-radius:var(--sstf-r-s);background:#fff}

  .account-section{margin:0 0 var(--sstf-space-3);padding:13px;border:1.5px solid #dce3ec;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
  .account-section .section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px}
  
  
  .compact-table-wrap{overflow:auto;border:1px solid #e0e5ec;border-radius:var(--sstf-r-s)}.account-report-table{width:100%;border-collapse:collapse;font-size:var(--sstf-t-small)}.account-report-table th,.account-report-table td{padding:7px var(--sstf-space-2);border-bottom:1px solid #edf0f4;text-align:start;white-space:nowrap}.account-report-table th{background:#f6f8fb;color:#5b6878;font-size:var(--sstf-t-small)}.account-report-table tbody tr:last-child td{border-bottom:0}.account-report-table td small{font-size:var(--sstf-t-small);color:#8893a0}
  

  
  

  .account-action-dialog{width:min(560px,calc(100vw - 20px));max-height:90dvh;margin:auto;padding:0;border:0;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card);overflow:auto}.account-action-dialog::backdrop{background:rgba(12,27,45,.48);backdrop-filter:blur(2px)}.account-action-dialog .drawer-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);padding:10px var(--sstf-space-3);border-bottom:1px solid #e4e8ee;background:#fff}.account-action-dialog .drawer-heading strong{color:#173d70;font-size:var(--sstf-t-body)}.account-request-block{padding:10px var(--sstf-space-3) var(--sstf-space-3)}.account-request-block+ .account-request-block{border-top:1px solid #e6eaf0}.account-request-block h3{margin:0 0 var(--sstf-space-2);padding:7px 9px;border-radius:var(--sstf-r-s);background:#eaf3fd;color:#174a87;font-size:var(--sstf-t-small)}.account-request-block .two-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px}.account-request-block .account-form{margin:0}.account-request-block textarea{min-height:72px}

  .compact-actions{position:relative}.compact-actions>summary{display:grid;place-items:center;width:32px;height:32px;list-style:none;border:1px solid #d9e1eb;border-radius:var(--sstf-r-s);background:#fff;color:#394d63;font-size:var(--sstf-t-page);font-weight:900;line-height:1;cursor:pointer}.compact-actions>summary::-webkit-details-marker{display:none}.compact-actions>div{position:absolute;z-index:30;inset-inline-end:0;top:38px;display:grid;gap:var(--sstf-space-1);min-width:175px;padding:6px;border:1px solid #d9e1eb;border-radius:var(--sstf-r-s);background:#fff;box-shadow:var(--sstf-sh-card)}.compact-actions form{display:grid;gap:var(--sstf-space-1);margin:0}.compact-actions button{width:100%;min-height:34px;margin:0;padding:5px var(--sstf-space-2);font-size:var(--sstf-t-small);text-align:start}.compact-actions [data-tone=danger]{background:#fff5f4;border-color:#e9c7c3;color:#a03731}

  .chat-overlay{width:min(980px,calc(100vw - 22px));height:min(720px,calc(100dvh - 24px));max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card);overflow:hidden}.chat-overlay::backdrop{background:rgba(12,27,45,.48);backdrop-filter:blur(2px)}.chat-overlay-layout{display:grid;grid-template-columns:270px 1fr;min-height:0}.chat-overlay-threads{overflow:auto;padding:7px;border-inline-end:1px solid #e5e9ef;background:#f8fafc}.chat-overlay-thread{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:7px;width:100%;min-height:48px;margin:0 0 var(--sstf-space-1);padding:6px 7px;border:1px solid transparent;border-radius:var(--sstf-r-s);background:transparent;color:#32465b;text-align:start;box-shadow:none}.chat-overlay-thread:hover,.chat-overlay-thread.is-active{background:#fff;border-color:#dce4ee}.chat-overlay-thread>span{display:grid;place-items:center;width:34px;height:34px}.chat-overlay-thread>strong{font-size:var(--sstf-t-small);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-overlay-thread>b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:var(--sstf-radius-pill);background:#174a87;color:#fff;font-size:var(--sstf-t-small)}.chat-overlay-conversation{min-width:0;min-height:0;background:#fff}.chat-overlay-placeholder{display:grid;place-items:center;height:100%;color:#8994a2;font-size:var(--sstf-t-small)}.chat-overlay-active{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;height:100%;min-height:0}.chat-overlay-active[hidden]{display:none!important}.chat-overlay-titlebar{display:flex;align-items:center;gap:var(--sstf-space-2);min-height:42px;padding:7px 9px;border-bottom:1px solid #edf0f4}.chat-overlay-titlebar strong{font-size:var(--sstf-t-small);color:#173d70}.chat-back-threads{display:none;min-height:30px;margin:0;padding:var(--sstf-space-1) 7px;font-size:var(--sstf-t-small)}.chat-overlay-messages{overflow:auto;padding:10px;background:#f8fafc}.chat-overlay-message{width:min(78%,520px);margin:0 auto 7px 0;padding:7px 9px;border:1px solid #dce4ee;border-radius:var(--sstf-r-s);background:#fff}.chat-overlay-message.own{margin-left:auto;margin-right:0;background:#eef5fd;border-color:#ceddec}.chat-overlay-message header{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:3px}.chat-overlay-message header strong{font-size:var(--sstf-t-small);color:#173d70}.chat-overlay-message time{font-size:var(--sstf-t-small);color:#8b95a2}.chat-overlay-message p{margin:0;white-space:pre-wrap;font-size:var(--sstf-t-small);color:#34475b}.chat-overlay-message blockquote{margin:0 0 5px;padding:5px 7px;border-inline-start:3px solid #b9cee4;background:#f3f7fb;font-size:var(--sstf-t-small);color:#617286}.chat-overlay-message a{display:inline-block;margin-top:5px;font-size:var(--sstf-t-small)}.chat-load-older{justify-self:center;min-height:28px;margin:var(--sstf-space-1);padding:var(--sstf-space-1) var(--sstf-space-2);font-size:var(--sstf-t-small)}.chat-overlay-form{padding:7px 9px;border-top:1px solid #e7ebf0;background:#fff}.chat-compose{display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:5px}.chat-compose textarea{min-height:38px;max-height:110px;resize:vertical;padding:var(--sstf-space-2)}.chat-compose button{min-height:38px;margin:0;padding:6px 9px}.chat-overlay-form small,.chat-overlay-form p{margin:3px 0 0;font-size:var(--sstf-t-small);color:#738092}
}
@layer sstf-design {
  @media(max-width:760px){
    .order-line{align-items:flex-start}.order-line-main{grid-template-columns:auto 1fr;gap:3px 7px}.order-line-main>small{grid-column:1}.chat-overlay{width:calc(100vw - 18px);height:90dvh;margin:auto;border-radius:var(--sstf-r-m)}.chat-overlay-layout{display:block}.chat-overlay-threads{height:100%;border-inline-end:0}.chat-overlay-conversation{height:100%}.chat-overlay-conversation:has(.chat-overlay-active:not([hidden])){position:absolute;inset:52px 0 0;background:#fff}.chat-back-threads{display:inline-flex}.chat-overlay-message{width:88%}
  }
  @media(max-width:520px){
    .account-profile-strip{padding:10px}.account-section{padding:10px}.account-request-block .two-fields{grid-template-columns:1fr 1fr}.account-report-table th,.account-report-table td{padding:6px 5px;font-size:var(--sstf-t-small)}.account-report-table th{font-size:var(--sstf-t-small)}.order-line{padding:7px}.compact-actions>summary{width:30px;height:30px}
  }
}

/* rc18 — supplier directory and low-friction supplier handoff */
@layer sstf-design {
  .supplier-directory-search{display:grid;gap:var(--sstf-space-1);margin:0 0 9px;color:#6d7a8a;font-size:var(--sstf-t-small)}.supplier-directory-search input{min-height:38px}
  .supplier-directory-list{display:grid;border:1.5px solid #dce3ec;border-radius:var(--sstf-r-m);overflow:hidden;background:#fff}.supplier-directory-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:7px 9px;border-bottom:1px solid #edf0f4}.supplier-directory-row:last-child{border-bottom:0}.supplier-directory-row.is-inactive{background:#fafafa;opacity:.72}.supplier-directory-main{display:flex;align-items:center;gap:var(--sstf-space-2);min-width:0;flex:1}.supplier-directory-main strong{min-width:115px;font-size:var(--sstf-t-small);color:#173d70}.supplier-directory-main>span:not(.state-badge){min-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--sstf-t-small);color:#657487}.supplier-directory-main small{font-size:var(--sstf-t-small);color:#566779}.supplier-directory-actions{display:flex;align-items:center;gap:5px}.supplier-directory-actions button{min-height:31px;margin:0;padding:var(--sstf-space-1) var(--sstf-space-2);font-size:var(--sstf-t-small)}

  .supplier-workspace>.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .supplier-empty-callout{display:grid;justify-items:start;gap:5px;padding:var(--sstf-space-3);border:1.5px dashed #c8d6e6;border-radius:var(--sstf-r-m);background:#f8fbff}.supplier-empty-callout strong{font-size:var(--sstf-t-small);color:#173d70}.supplier-empty-callout p{margin:0;font-size:var(--sstf-t-small);color:#6f7d8e}.supplier-empty-callout a{margin-top:3px}
  .supplier-send-form{display:grid;gap:var(--sstf-space-2);margin:var(--sstf-space-2) 0}.supplier-pick{display:grid;gap:var(--sstf-space-1);font-size:var(--sstf-t-small);font-weight:800;color:#3f5268}.supplier-pick-preview{padding:7px 9px;border:1px solid #d7e3ef;border-radius:var(--sstf-r-s);background:#eef5fd;color:#34516f;font-size:var(--sstf-t-small)}.supplier-advanced{margin:0!important;border:1px solid #e0e6ed!important;border-radius:var(--sstf-r-s)!important;background:#fff!important}.supplier-advanced>summary{padding:var(--sstf-space-2) 9px;background:#f8fafc;color:#526579;font-size:var(--sstf-t-small);font-weight:800;cursor:pointer}.supplier-advanced-body{display:grid;gap:7px;padding:var(--sstf-space-2)}.supplier-advanced-body details{border:1px solid #edf0f4;border-radius:var(--sstf-r-s);padding:6px}.supplier-send-primary{min-height:44px;margin:0;background:#174a87;border-color:#174a87;color:#fff;font-size:var(--sstf-t-small);font-weight:900}
  .supplier-current-card{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:var(--sstf-space-2) 0;padding:9px 10px;border:1.5px solid #dbe3ec;border-radius:var(--sstf-r-s);background:#fff}.supplier-current-card>div{display:grid;gap:1px}.supplier-current-card small{font-size:var(--sstf-t-small);color:#758294}.supplier-current-card strong{font-size:var(--sstf-t-small);color:#173d70}.supplier-current-card span[dir=ltr]{font-size:var(--sstf-t-small);color:#607185}.supplier-next-action{display:grid;gap:2px;margin:0 0 var(--sstf-space-2);padding:var(--sstf-space-2) 10px;border-radius:var(--sstf-r-s);background:#eef5fd;border:1px solid #cfdeee}.supplier-next-action small{font-size:var(--sstf-t-small);color:#66809b}.supplier-next-action strong{font-size:var(--sstf-t-small);color:#174a87}
  .supplier-credential-actions{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;gap:6px;align-items:stretch;margin:0 0 var(--sstf-space-2)}.supplier-credential-actions>a,.supplier-credential-actions>button{min-height:38px;margin:0;padding:6px 9px;font-size:var(--sstf-t-small);white-space:nowrap}.credential-mini{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--sstf-space-1)}.credential-mini input{min-width:0;min-height:38px;padding:5px 7px;font-size:var(--sstf-t-small);background:#f9fafb}.credential-mini button{min-height:38px;margin:0;padding:5px 7px;font-size:var(--sstf-t-small);white-space:nowrap}
}
@layer sstf-design {
  @media(max-width:760px){
    .supplier-directory-row{align-items:flex-start;flex-direction:column}.supplier-directory-main{display:grid;grid-template-columns:auto 1fr auto;gap:3px 7px;width:100%}.supplier-directory-main strong{min-width:0}.supplier-directory-main>span:not(.state-badge){min-width:0}.supplier-directory-actions{justify-content:flex-end;width:100%}.supplier-credential-actions{grid-template-columns:1fr 1fr}.supplier-workspace>.section-heading{align-items:flex-start;flex-direction:column}
  }
}

/* rc18 — supplier alternatives: staff pricing + restricted customer size wizard */
:where(.sstf-flow,.sstf-admin) .alternative-size-picks{border:1px solid #dbe5f0;border-radius:var(--sstf-r-s);padding:10px var(--sstf-space-3);margin:10px 0;background:#fff}
:where(.sstf-flow,.sstf-admin) .alternative-size-picks legend{font-weight:700;padding:0 6px}
:where(.sstf-flow,.sstf-admin) .alternative-size-picks label{display:inline-flex;align-items:center;gap:5px;margin:var(--sstf-space-1) var(--sstf-space-2) var(--sstf-space-1) 0;padding:6px 9px;border:1px solid #e3e9f1;border-radius:var(--sstf-r-s);background:#f8fafc}
:where(.sstf-flow,.sstf-admin) .alternative-staff-summary{display:grid;gap:6px;min-width:190px}
:where(.sstf-flow,.sstf-admin) .alternative-staff-summary .review-thumb{margin:var(--sstf-space-1) 0}
:where(.sstf-flow,.sstf-admin) .alternative-staff-state{margin-top:var(--sstf-space-2);padding:var(--sstf-space-2) 10px;border-radius:var(--sstf-r-s);background:#f4f7fb;font-weight:700}
:where(.sstf-flow,.sstf-admin) .alternative-staff-state small{display:block;margin-top:5px;font-weight:500}
:where(.sstf-flow,.sstf-admin) .alternative-staff-state.accepted{background:#edf9f1}
:where(.sstf-flow,.sstf-admin) .alternative-staff-state.rejected{background:#fff1f1}
:where(.sstf-flow,.sstf-admin) .alternative-staff-state.pending{background:#eef6ff}
:where(.sstf-flow,.sstf-admin) .alternative-price-box{display:grid;gap:var(--sstf-space-2);padding:11px;border:1px solid #cfe3fa;background:#f3f9ff;border-radius:var(--sstf-r-s);min-width:220px}
:where(.sstf-flow,.sstf-admin) .alternative-price-box>strong{color:#245b91}
:where(.sstf-flow,.sstf-admin) .alternative-price-box label{display:grid;gap:5px}

:where(.sstf-flow,.sstf-admin) #customer-alternatives{margin:18px 0;padding:0;background:transparent}
:where(.sstf-flow,.sstf-admin) .alternative-section-heading{margin-bottom:var(--sstf-space-3)}
:where(.sstf-flow,.sstf-admin) .alternative-section-heading h2{margin:0 0 var(--sstf-space-1)}
:where(.sstf-flow,.sstf-admin) .alternative-section-heading p{margin:0;color:#607083}
:where(.sstf-flow,.sstf-admin) .alternative-review-card{background:#fff;border:1px solid #dfe7f0;border-radius:var(--sstf-r-m);padding:var(--sstf-space-4);margin:var(--sstf-space-3) 0;box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .alternative-review-head{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:10px;align-items:center}
:where(.sstf-flow,.sstf-admin) .alternative-product-side{display:grid;gap:5px;align-content:start}
:where(.sstf-flow,.sstf-admin) .alternative-product-side small{color:#6b7b8e}
:where(.sstf-flow,.sstf-admin) .alternative-product-side img{width:100%;max-width:150px;aspect-ratio:1;object-fit:contain;border:1px solid #e4e9ef;border-radius:var(--sstf-r-s);background:#fff}
:where(.sstf-flow,.sstf-admin) .alternative-swap-arrow{text-align:center;font-size:var(--sstf-t-page);color:#6e7e90}
:where(.sstf-flow,.sstf-admin) .alternative-price-line{display:flex;justify-content:space-between;gap:var(--sstf-space-3);align-items:center;margin:14px 0 var(--sstf-space-2);padding:10px var(--sstf-space-3);border-radius:var(--sstf-r-s);background:#f3f8fe;border:1px solid #d7e8fa}
:where(.sstf-flow,.sstf-admin) .alternative-price-line strong{font-size:var(--sstf-t-card);color:#1f5d96}
:where(.sstf-flow,.sstf-admin) .alternative-customer-note{margin:var(--sstf-space-2) 0;color:#4c5c6e}
:where(.sstf-flow,.sstf-admin) .alternative-size-editor{display:grid;gap:7px;margin-top:var(--sstf-space-3);padding-top:var(--sstf-space-3);border-top:1px solid #e8edf3}
:where(.sstf-flow,.sstf-admin) .alternative-size-editor>small{color:#667789}
:where(.sstf-flow,.sstf-admin) .alternative-size-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:var(--sstf-space-2)}
:where(.sstf-flow,.sstf-admin) .alternative-size-field{display:grid;grid-template-columns:1fr 58px;gap:var(--sstf-space-2);align-items:center;padding:var(--sstf-space-2) 9px;border:1px solid #e1e7ef;border-radius:var(--sstf-r-s);background:#fff}
:where(.sstf-flow,.sstf-admin) .alternative-size-field input{width:58px;margin:0;text-align:center}
:where(.sstf-flow,.sstf-admin) .alternative-decision-actions{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;margin-top:13px}
:where(.sstf-flow,.sstf-admin) .alternative-decision-status{min-height:1.2em;margin:6px 0;color:#9a5c00}
:where(.sstf-flow,.sstf-admin) .alternative-result{margin-top:var(--sstf-space-3);padding:9px 11px;border-radius:var(--sstf-r-s);font-weight:700}
:where(.sstf-flow,.sstf-admin) .alternative-result.accepted{background:#edf9f1;color:#246b3e}
:where(.sstf-flow,.sstf-admin) .alternative-result.rejected{background:#fff1f1;color:#9b3232}
@media(max-width:620px){
 :where(.sstf-flow,.sstf-admin) .alternative-review-card{padding:13px}
 :where(.sstf-flow,.sstf-admin) .alternative-review-head{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:6px}
 :where(.sstf-flow,.sstf-admin) .alternative-product-side img{max-width:120px}
 :where(.sstf-flow,.sstf-admin) .alternative-price-line{align-items:flex-start;flex-direction:column;gap:3px}
 :where(.sstf-flow,.sstf-admin) .alternative-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
:where(.sstf-flow,.sstf-admin) .supplier-alternative-sent{display:grid;gap:6px;margin:var(--sstf-space-3) 0;padding:var(--sstf-space-3) 14px;border:1px solid #cfe3fa;border-radius:var(--sstf-r-m);background:#f3f9ff}
:where(.sstf-flow,.sstf-admin) .supplier-alternative-sent>strong{color:#245b91}

/* rc18 admin order safety */
.sstf-admin-order-search{display:flex;gap:var(--sstf-space-2);align-items:center;margin:var(--sstf-space-4) 0}.sstf-admin-order-search input[type=search]{min-width:min(420px,70vw)}
.sstf-lock-badge{font-size:var(--sstf-t-small);background:#fef3f2;color:#b42318;padding:3px var(--sstf-space-2);border-radius:var(--sstf-radius-pill)}.sstf-admin-cancel-box{min-width:150px}.sstf-admin-cancel-box>summary::-webkit-details-marker{display:none}.sstf-admin-cancel-box form{margin-top:var(--sstf-space-2);padding:10px;background:#f8fafc;border:1px solid #e7e9ee;border-radius:var(--sstf-r-s);min-width:280px}.sstf-admin-cancel-box textarea{width:100%;margin:5px 0 var(--sstf-space-2)}
@media(max-width:700px){.sstf-admin-order-row{display:block}.sstf-admin-cancel-box{margin-top:var(--sstf-space-2)}.sstf-admin-cancel-box form{min-width:0}}
:where(.sstf-flow,.sstf-admin) input[readonly][aria-describedby^="approved-alt-price-"]{background:#eef6ff;border-color:#cbdff3;color:#174a78;font-weight:800}

/* rc18.1 — contained order actions, multi-supplier comparison, compact gates and account ledgers */
@layer sstf-design {
  /* Orders index uses the full safe page width; action menus never create horizontal page overflow. */
  .sstf-flow #orders{box-sizing:border-box;width:100%;max-width:none;min-width:0;overflow-x:clip}
  .sstf-flow #orders .orders-compact-list{margin:var(--sstf-space-2) 0 10px}
  .sstf-flow #orders .order-line{box-sizing:border-box;width:100%;min-width:0}
  .sstf-flow #orders .compact-actions>div{box-sizing:border-box;max-width:calc(100vw - 24px);overflow:auto}

  /* Staff order page: one deliberate information card and one compact tool row. */
  .sstf-customer.staff-order-view .workspace-quick-tools{flex-wrap:nowrap;gap:6px;margin-bottom:var(--sstf-space-2)}
  
  
  .sstf-customer.staff-order-view .staff-order-meta-card{display:block!important;margin:var(--sstf-space-1) 0 10px!important;padding:0!important;border:1.5px solid #d6e0ec!important;border-radius:var(--sstf-r-m)!important;background:linear-gradient(100deg,#eef5fd 0%,#f7faff 42%,#fff 78%)!important;box-shadow:var(--sstf-sh-card)!important;overflow:hidden!important}
  .sstf-customer.staff-order-view .staff-order-meta-card .customer-start-content{padding:10px var(--sstf-space-3)!important}
  
  
  
  
  
  
  
  
  

  /* Supplier quotations are comparison rows, not replacement cards. */
  .supplier-heading-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
  .supplier-quotes-list{display:grid;margin:9px 0 11px;border:1.5px solid #dbe3ec;border-radius:var(--sstf-r-m);background:#fff;overflow:hidden}
  .supplier-quote-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--sstf-space-2);min-height:54px;padding:7px 9px;border-bottom:1px solid #edf0f4;background:#fff}
  .supplier-quote-row:last-child{border-bottom:0}.supplier-quote-row.is-open{background:#f8fbff}.supplier-quote-row.is-selected{box-shadow:inset -3px 0 #174a87}
  .supplier-quote-main{display:grid;grid-template-columns:minmax(95px,1fr) auto auto;align-items:center;gap:6px 10px;min-width:0}.supplier-quote-main strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--sstf-t-small);color:#173d70}.supplier-quote-main span{font-size:var(--sstf-t-small);color:#66778a}.supplier-quote-main small{font-size:var(--sstf-t-small);font-weight:850;color:#334a63;white-space:nowrap}
  .supplier-quote-state{display:flex;align-items:center;gap:var(--sstf-space-1)}.supplier-selected-mark{display:inline-flex;align-items:center;min-height:21px;padding:2px 6px;border-radius:var(--sstf-radius-pill);background:#e9f2fc;color:#174a87;font-size:var(--sstf-t-small);font-weight:850;white-space:nowrap}
  .supplier-quote-actions{display:flex;align-items:center;gap:5px}

  /* Dropshipping gate cards use every line intentionally: identity, link, actions. */
  
  .merchant-gateway-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
  .merchant-gateway-card{display:grid;gap:var(--sstf-space-2);min-width:0;padding:11px;border:1.5px solid #dbe3ec;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
  .merchant-gateway-card.is-disabled{background:#fbfbfc}.merchant-gateway-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sstf-space-2);padding-bottom:7px;border-bottom:1px solid #edf0f4}.merchant-gateway-head>div{display:grid;gap:2px;min-width:0}.merchant-gateway-head strong{font-size:var(--sstf-t-body);color:#173d70;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merchant-gateway-head small{font-size:var(--sstf-t-small);color:#68778a;}
  .merchant-gateway-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:stretch}.merchant-gateway-link input{min-width:0;min-height:38px;margin:0;padding:6px var(--sstf-space-2);font-size:var(--sstf-t-small);background:#f9fafc}.merchant-gateway-link button{min-height:38px;margin:0;padding:6px 9px;font-size:var(--sstf-t-small);white-space:nowrap}
  .merchant-gateway-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.merchant-gateway-actions :where(a,button){display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;margin:0;padding:6px 7px;font-size:var(--sstf-t-small);text-align:center}.merchant-gateway-actions form{margin:0;min-width:0}
.attendance-ledger-section .section-heading{margin-bottom:var(--sstf-space-2)}
  
  
  .attendance-review-table :is(th,td){padding-top:5px;padding-bottom:5px}.attendance-review-table tbody tr{height:34px}
  
  .attendance-output-tools{margin-top:9px;border-top:1px solid #e6ebf1}.attendance-output-tools>summary{list-style:none;cursor:pointer;padding:var(--sstf-space-2) 2px 2px;color:#174a87;font-size:var(--sstf-t-small);font-weight:850}.attendance-output-tools>summary::-webkit-details-marker{display:none}.attendance-output-body{display:grid;gap:6px;padding-top:6px}.attendance-output-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end;margin:0}.attendance-output-form.attendance-output-range{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.attendance-output-form label{display:grid;gap:3px;font-size:var(--sstf-t-small);color:#657588}.attendance-output-form input{min-height:34px;margin:0;padding:5px 7px}.attendance-output-form button{min-height:34px;margin:0;padding:5px var(--sstf-space-2);font-size:var(--sstf-t-small)}

  
  
  

  .attendance-print-mode{margin:var(--sstf-space-2) 0;padding:var(--sstf-space-3);border:1px solid #dce3ec;border-radius:var(--sstf-r-m);background:#fff}.attendance-print-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.attendance-print-table{overflow:visible}
}

@layer sstf-design {
  @media(max-width:760px){
    .supplier-quote-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 7px}.supplier-quote-main{grid-template-columns:minmax(0,1fr) auto;gap:2px 6px}.supplier-quote-main small{grid-column:1/-1}.supplier-quote-actions{grid-column:1/-1;justify-content:flex-end}
    .merchant-gateway-list{grid-template-columns:1fr;gap:var(--sstf-space-2)}.merchant-gateway-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-gateway-actions>a:first-child{grid-column:1/-1}
    .attendance-output-form,.attendance-output-form.attendance-output-range{grid-template-columns:1fr 1fr}.attendance-output-form button{grid-column:1/-1}
  }
  @media(max-width:520px){
    .sstf-flow #orders{margin-inline:0}.sstf-flow #orders .orders-compact-list{width:100%;margin-inline:0}
    
    .sstf-customer.staff-order-view .staff-order-meta-card .customer-start-content{padding:var(--sstf-space-2)!important}
    .supplier-heading-actions{width:100%;justify-content:stretch}.supplier-heading-actions>*{flex:1 1 auto;text-align:center}.supplier-quote-row{padding:7px}
    .merchant-gateway-card{padding:9px}.merchant-gateway-actions :where(a,button){font-size:var(--sstf-t-small);padding-inline:5px}
    
  }
}

@media print{
  .sstf-flow:has(.attendance-print-mode) .app-header,.sstf-flow:has(.attendance-print-mode) footer,.sstf-flow:has(.attendance-print-mode) .mobile-nav{display:none!important}
  .sstf-flow:has(.attendance-print-mode) main{padding:0!important;margin:0!important}
  .attendance-print-mode{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  .attendance-print-mode .print-attendance-title{display:flex!important;align-items:flex-end;justify-content:space-between;gap:var(--sstf-space-3);margin:0 0 var(--sstf-space-3);padding:0 0 var(--sstf-space-2);border-bottom:1px solid #aaa}
  .attendance-print-mode .print-attendance-title strong{font-size:var(--sstf-t-card)}.attendance-print-mode .print-attendance-title span{font-size:var(--sstf-t-small)}
  .attendance-print-mode .compact-table-wrap{border:1px solid #aaa!important;border-radius:0!important;overflow:visible!important}
}
/* rc19 — Inventory + S&S store. Keep the established white/blue TradeFlow identity. */
.inventory-shell,.ss-store-page{max-width:100%;margin:0 auto;color:#16324f}.inventory-tabs{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap;margin:0 0 var(--sstf-space-4)}.inventory-tabs a{padding:9px 14px;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);background:#fff;text-decoration:none;font-weight:700;color:#174a87}.inventory-tabs a.is-active{background:#174a87;color:#fff;border-color:#174a87}.inventory-toolbar,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.inventory-filter,.inventory-main-actions,.inventory-table-actions,.inline,.sale-top-actions{display:flex;align-items:center;gap:var(--sstf-space-2);flex-wrap:wrap}.inventory-filter{flex:1}.inventory-filter input[type=search]{min-width:240px;flex:1}.compact-table-wrap{width:100%;overflow:auto}.account-report-table{width:100%;border-collapse:collapse;background:#fff}.account-report-table th,.account-report-table td{padding:10px 9px;border-bottom:1px solid #e7edf4;vertical-align:middle;text-align:right;white-space:nowrap}.account-report-table th{font-size:var(--sstf-t-small);color:#52677d;background:#f8fafc}.inventory-product-cell,.ss-cart-product{display:flex;align-items:center;gap:10px;min-width:190px}.inventory-product-cell span,.ss-cart-product span{display:flex;flex-direction:column;gap:2px}.inventory-table-thumb{width:44px;height:44px;object-fit:cover;border-radius:var(--sstf-r-s);border:1px solid #e4eaf1;background:#fff}.inventory-table-thumb.placeholder{display:inline-block}.inventory-products-table .is-disabled{opacity:.58}.inventory-wizard-grid{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:20px;margin-top:14px}.inventory-image-field{display:flex;flex-direction:column;gap:10px}.inventory-preview,.inventory-image-placeholder{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sstf-r-m);border:1px solid #dbe3ec;background:#f8fafc}.inventory-image-placeholder{display:grid;place-items:center;color:#8294a6}.inventory-core-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-3)}.inventory-price-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-3);padding:14px;margin:var(--sstf-space-4) 0;background:#f8fbff;border:1px solid #d8e7f6;border-radius:var(--sstf-r-m)}.inventory-size-section{border-top:1px solid #e3eaf1;padding-top:var(--sstf-space-4)}.inventory-size-section>div:first-child{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.inventory-size-section small{color:#667b90}.inventory-size-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:9px;margin-top:var(--sstf-space-3)}.inventory-size-card{display:grid;gap:7px;padding:10px;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);background:#fff}.inventory-size-card strong{color:#174a87}.inventory-restock{margin-top:20px;padding-top:var(--sstf-space-4);border-top:1px solid #e4eaf1}.inventory-restock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.inventory-restock details,.inventory-link-fetch{border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);padding:10px;background:#fff}.inventory-import-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}.inventory-import-card{display:flex;align-items:center;gap:10px;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);padding:10px;background:#fff}.inventory-import-card>div{display:flex;flex:1;min-width:0;flex-direction:column}.inventory-thumb{width:58px;height:58px;object-fit:cover;border-radius:var(--sstf-r-s)}.inventory-no-image{width:58px;height:58px;display:grid;place-items:center;background:#f4f7fa;border-radius:var(--sstf-r-s);font-size:var(--sstf-t-small);color:#8191a1}
.ss-store-page{display:grid;gap:var(--sstf-space-4)}.ss-store-heading{padding:2px 0}.ss-store-tools{position:sticky;top:8px;z-index:7;display:grid;grid-template-columns:minmax(260px,2fr) auto minmax(150px,1fr) minmax(130px,1fr) auto;gap:9px;align-items:end;padding:var(--sstf-space-3);border:1px solid #dbe3ec;border-radius:var(--sstf-r-m);background:rgba(255,255,255,.96);box-shadow:var(--sstf-sh-card);backdrop-filter:blur(10px)}.ss-store-tools label{margin:0}.ss-store-tools label>span{display:block;font-size:var(--sstf-t-small);color:#65798e;margin-bottom:5px}.ss-store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ss-product-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;text-align:right!important;padding:0!important;overflow:hidden;color:#16324f!important;min-height:260px}.ss-product-card:hover{border-color:#9bb7d6!important;transform:translateY(-1px)}.ss-product-card img,.ss-product-no-image{width:100%;aspect-ratio:1/1;object-fit:cover;background:#f6f8fb}.ss-product-no-image{display:grid;place-items:center;color:#8293a3}.ss-product-meta{display:grid;gap:var(--sstf-space-1);padding:10px}.ss-product-meta small{color:#788b9e}.ss-product-meta strong{line-height:1.4;min-height:39px}.ss-product-meta span{font-weight:800;color:#174a87}.ss-product-meta em{font-size:var(--sstf-t-small);font-style:normal;color:#2f775d}.ss-store-empty{text-align:center;padding:28px;border:1px dashed #cad6e2;border-radius:var(--sstf-r-s)}.ss-cart-section,.ss-order-extras{padding:15px;border:1px solid #dbe3ec;border-radius:var(--sstf-r-m);background:#fff}.ss-order-extras{display:grid;gap:10px}.ss-charge-row{display:grid;grid-template-columns:180px 150px minmax(220px,1fr) auto;gap:var(--sstf-space-2);margin:7px 0}.ss-store-footer{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:var(--sstf-space-4);align-items:end;padding:15px;border:1px solid #d7e4f1;border-radius:var(--sstf-r-m);background:#f8fbff}.ss-store-footer label{margin:0}.ss-order-total{display:flex;flex-direction:column;align-items:flex-end}.ss-order-total span{font-size:var(--sstf-t-small);color:#6d8094}.ss-order-total strong{font-size:var(--sstf-t-page);color:#174a87}.ss-store-submit{display:flex;gap:var(--sstf-space-2)}.ss-product-modal[hidden]{display:none!important}.ss-product-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;background:rgba(16,31,48,.48)}.ss-product-modal-card{position:relative;width:min(660px,100%);max-height:92vh;overflow:auto;padding:20px;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}.ss-modal-close{position:absolute;left:12px;top:10px;width:36px;height:36px;padding:0!important;border-radius:50%!important;background:#f2f5f8!important;color:#28445f!important}.ss-modal-product{display:flex;align-items:center;gap:14px;padding-left:35px}.ss-modal-product img{width:88px;height:88px;object-fit:cover;border-radius:var(--sstf-r-m);border:1px solid #dbe3ec}.ss-modal-product h2{margin:3px 0}.ss-modal-product small,.ss-modal-product span{color:#6c8093}.ss-price-mode{display:grid;grid-template-columns:1fr 1fr;gap:var(--sstf-space-2);margin:18px 0}.ss-price-mode button{background:#fff!important;color:#174a87!important;border:1px solid #b7c9dd!important}.ss-price-mode button.is-active{background:#174a87!important;color:#fff!important;border-color:#174a87!important}.ss-price-edit{display:grid;gap:6px;padding:var(--sstf-space-3);border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);background:#fbfdff}.ss-price-edit small{color:#677b8f}.ss-modal-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-2);margin-top:10px}.ss-size-stepper{padding:9px;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);background:#fff}.ss-size-stepper>strong,.ss-size-stepper>small{display:block}.ss-size-stepper small{font-size:var(--sstf-t-small);color:#74889c}.ss-size-stepper>div{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:var(--sstf-space-1);margin-top:7px}.ss-size-stepper button{padding:var(--sstf-space-1)!important;min-height:36px!important}.ss-size-stepper input{--field-padding:6px 2px;min-width:0;text-align:center}.ss-modal-actions{display:flex;justify-content:flex-end;margin-top:var(--sstf-space-4)}.ss-modal-open{overflow:hidden}.sale-hero-card{padding:0!important;overflow:hidden}.sale-price-edited{display:block;color:#9b5d12;font-size:var(--sstf-t-small)}.sale-control-card{background:#fbfcfe}
@media(max-width:900px){.ss-store-tools{grid-template-columns:1fr 1fr;position:static}.ss-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-charge-row{grid-template-columns:1fr 1fr}.ss-charge-row input:nth-of-type(2){grid-column:1/-1}.ss-store-footer{grid-template-columns:1fr}.ss-order-total{align-items:flex-start}.inventory-wizard-grid{grid-template-columns:1fr}.inventory-image-field{max-width:230px}.inventory-core-fields,.inventory-price-strip{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.ss-store-tools{grid-template-columns:1fr}.ss-search{grid-column:auto}.ss-store-grid{gap:var(--sstf-space-2)}.ss-product-card{min-height:0}.ss-product-meta{padding:var(--sstf-space-2)}.ss-product-meta strong{font-size:var(--sstf-t-small);min-height:36px}.ss-charge-row,.inventory-core-fields,.inventory-price-strip{grid-template-columns:1fr}.ss-store-submit{display:grid;grid-template-columns:1fr}.ss-product-modal{padding:var(--sstf-space-2)}.ss-product-modal-card{padding:15px;border-radius:var(--sstf-r-m)}.ss-modal-product img{width:68px;height:68px}.ss-modal-sizes{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-filter{display:grid;grid-template-columns:1fr;width:100%}.inventory-filter input[type=search]{min-width:0}.inventory-products-table th,.inventory-products-table td{padding:var(--sstf-space-2) 7px}}

.inventory-custom-size-add{grid-column:1/-1;display:flex;gap:var(--sstf-space-2);align-items:center;padding:var(--sstf-space-2);border:1px dashed #b9c9da;border-radius:var(--sstf-r-s);background:#f8fbff}.inventory-custom-size-add input{flex:1}
/* rc20 inventory UX:start */
.inventory-page-head,.inventory-action-card,.inventory-stocktake-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px}.inventory-page-head h2,.inventory-stocktake-head h2{margin:2px 0 var(--sstf-space-1)}.inventory-page-head p,.inventory-action-card small,.inventory-stocktake-head p{margin:0;color:#64798e}.inventory-action-card,.inventory-panel{background:#fff;border:1px solid #dbe3ec;border-radius:var(--sstf-r-m);padding:14px;box-shadow:var(--sstf-sh-card);margin-bottom:14px}.inventory-action-card{min-height:72px}.inventory-action-card>div:first-child{display:grid;gap:var(--sstf-space-1)}.inventory-search-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px}.inventory-search-row input{min-width:0}.inventory-search-row button{width:44px;padding:0!important;font-size:var(--sstf-t-page)}.inventory-filter-row{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap}.inventory-filter-row select{width:auto;min-width:145px}.inventory-product-list{display:grid;gap:var(--sstf-space-2)}.inventory-product-row{position:relative;display:grid;grid-template-columns:58px minmax(180px,1.35fr) minmax(245px,1fr) minmax(220px,.9fr) auto;align-items:center;gap:var(--sstf-space-3);background:#fff;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);padding:9px 10px;min-height:72px}.inventory-product-row:hover{border-color:#a9bfd7;box-shadow:var(--sstf-sh-card)}.inventory-product-row.is-disabled{opacity:.62}.inventory-product-open{position:absolute;inset:0;z-index:1;border-radius:var(--sstf-r-s)}.inventory-product-image,.inventory-product-primary,.inventory-product-prices,.inventory-product-stock,.inventory-product-actions{position:relative;z-index:2;pointer-events:none}.inventory-product-primary{display:grid;gap:2px;min-width:0}.inventory-product-primary strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-product-primary small,.inventory-product-primary span{font-size:var(--sstf-t-small);color:#6d8194}.inventory-product-prices,.inventory-product-stock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.inventory-product-prices span,.inventory-product-stock span{display:grid;gap:1px}.inventory-product-prices small,.inventory-product-stock small{font-size:var(--sstf-t-small);color:#718497}.inventory-product-prices b,.inventory-product-stock b{font-size:var(--sstf-t-small)}.inventory-product-actions{display:flex;gap:6px;pointer-events:auto}.inventory-product-actions form{margin:0}.inventory-toggle,.inventory-delete{min-height:32px!important;padding:5px 9px!important;font-size:var(--sstf-t-small)!important}.inventory-toggle.is-on{background:#fff!important;color:#6b7c8d!important;border:1px solid #c9d5df!important}.inventory-toggle.is-off{background:#174a87!important;color:#fff!important}.inventory-delete{width:32px!important;padding:0!important;background:#fff!important;color:#c23333!important;border:1px solid #efc7c7!important;font-size:var(--sstf-t-card)!important}.inventory-empty{padding:28px;text-align:center;border:1px dashed #cbd7e3;border-radius:var(--sstf-r-s);background:#fff}.inventory-product-detail{display:grid;gap:14px}.inventory-detail-back{width:max-content;text-decoration:none;color:#174a87;font-weight:750}.inventory-detail-hero{display:grid;grid-template-columns:minmax(260px,460px) minmax(220px,1fr);gap:var(--sstf-space-5);align-items:center;background:#fff;border:1px solid #dbe3ec;border-radius:var(--sstf-r-m);padding:var(--sstf-space-4)}.inventory-detail-image{width:100%;max-height:430px;object-fit:contain;border-radius:var(--sstf-r-s);background:#fff}.inventory-detail-title h2{font-size:clamp(24px,3vw,38px);line-height:1.2;margin:6px 0 10px}.inventory-detail-title small{color:#63788d;font-weight:800}.inventory-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sstf-space-2)}.inventory-detail-meta>div{background:#fff;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);padding:10px;display:grid;gap:3px}.inventory-detail-meta small{color:#6d8195;font-size:var(--sstf-t-small)}.inventory-detail-actions{display:flex;justify-content:flex-start}.inventory-link-fetch{display:grid;grid-template-columns:minmax(150px,.5fr) minmax(0,1.5fr);align-items:center;gap:var(--sstf-space-3);padding:var(--sstf-space-3);border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);background:#fbfdff;margin-bottom:14px}.inventory-link-fetch small{color:#6d8195}.inventory-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.inventory-form-submit{display:flex;justify-content:flex-end;margin-top:var(--sstf-space-4)}.inventory-bulk-head{position:sticky;top:8px;z-index:6;display:flex;align-items:center;gap:10px;justify-content:flex-end;padding:9px 10px;margin:10px 0;background:rgba(255,255,255,.96);border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);backdrop-filter:blur(8px)}.inventory-bulk-head label{margin-left:auto}.inventory-import-card>input{width:20px;height:20px;flex:0 0 auto}.inventory-import-card>span:last-child{display:flex;flex:1;min-width:0;flex-direction:column}.inventory-stocktake-start{margin-bottom:14px}.inventory-stocktake-scope{display:flex;gap:var(--sstf-space-4);margin-bottom:var(--sstf-space-3)}.stocktake-product-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:7px;margin:10px 0 14px}.stocktake-product-picker label{display:flex;align-items:center;gap:var(--sstf-space-2);border:1px solid #dbe3ec;border-radius:var(--sstf-r-s);padding:var(--sstf-space-2)}.stocktake-product-picker label>span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:var(--sstf-space-2);flex:1}.stocktake-product-picker small{grid-column:2;color:#6c8194}.inventory-stocktake-table input{min-width:90px}.stocktake-qty{width:92px}.inventory-stocktake-actions{display:flex;justify-content:flex-end;gap:var(--sstf-space-2);margin-top:13px}.inventory-stocktake-approval{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);flex-wrap:wrap;margin-top:var(--sstf-space-3);padding:var(--sstf-space-3);border:1px solid #c9ddef;border-radius:var(--sstf-r-s);background:#f7fbff}.inventory-stocktake-approval p{margin:0}.inventory-stocktake-approval form{margin:0}
@media(max-width:980px){.inventory-product-row{grid-template-columns:54px minmax(150px,1fr) minmax(180px,.9fr) auto}.inventory-product-stock{display:none}.inventory-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.inventory-action-card{align-items:stretch}.inventory-main-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.inventory-product-row{grid-template-columns:52px minmax(0,1fr) auto;gap:var(--sstf-space-2)}.inventory-product-prices{grid-column:2/3;grid-row:2;grid-template-columns:repeat(3,1fr)}.inventory-product-stock{display:grid;grid-column:2/3;grid-row:3}.inventory-product-actions{grid-column:3;grid-row:1/4;flex-direction:column}.inventory-detail-hero{grid-template-columns:1fr}.inventory-detail-image{max-height:360px}.inventory-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-wizard-grid{grid-template-columns:1fr}.inventory-core-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-price-strip{grid-template-columns:1fr}.inventory-link-fetch{grid-template-columns:1fr}.inventory-stocktake-table{min-width:840px}.inventory-bulk-head{top:4px}}
@media(max-width:460px){.inventory-core-fields{grid-template-columns:1fr 1fr;gap:var(--sstf-space-2)}.inventory-product-stock{gap:3px}.inventory-detail-meta{grid-template-columns:1fr 1fr}.inventory-search-row{grid-template-columns:minmax(0,1fr) 42px}}
/* rc20 inventory UX:end */
/* rc20 S&S sales UX:start */
.ss-sales-create-shell,.ss-summary-actions,.ss-customer-requests-review{background:#fff!important;border:1px solid #dbe3ec!important;border-radius:var(--sstf-r-m)!important;padding:14px!important;margin:0 0 14px!important;box-shadow:var(--sstf-sh-card)!important}.ss-sales-list-card,.ss-order-editor>.ops-form>.ops-card{padding:14px!important;margin:0 0 14px!important}
.ss-sales-create-head,.ss-sales-filters,.ss-create-grid,.ss-order-add-actions,.ss-summary-grid,.ss-customer-actions{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.ss-sales-create-head{align-items:center;justify-content:space-between}.ss-sales-create-head h1{font-size:var(--sstf-t-page);margin:0}.ss-sales-create-head p{margin:2px 0 0}.ss-sales-create-head button{margin:0}.ss-create-card{margin-top:var(--sstf-space-3)}.ss-create-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,.55fr) minmax(180px,1fr) minmax(160px,.8fr);align-items:end}.ss-create-address{grid-column:1/-1}.ss-sales-filters{margin:0 0 10px}.ss-sales-filters label{margin:0;min-width:160px}.ss-sales-filters button{margin:0}.recipient-products-table td small{display:block;color:#74869a;font-size:var(--sstf-t-small);margin-top:2px}.ss-sale-row{cursor:pointer}.ss-order-editor{margin:0}.ss-order-editor>.ops-form{display:grid;gap:var(--sstf-space-3)}.ss-order-add-actions{margin:0}.ss-order-add-actions button{margin:0}.ss-store-panel{margin-top:0!important}.ss-store-tools.compact{position:static;display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(140px,.6fr) minmax(120px,.5fr) auto;gap:var(--sstf-space-2);align-items:end;padding:0;border:0;background:#fff}.ss-store-tools.compact label{margin:0}.ss-store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ss-product-card{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto;gap:9px;text-align:right;padding:var(--sstf-space-2);overflow:hidden;min-width:0}.ss-product-card>img,.ss-product-no-image{width:92px;height:92px;object-fit:contain;border-radius:var(--sstf-r-s);background:#f8fafc;grid-row:1/3}.ss-product-meta{display:grid;gap:3px;min-width:0;padding:0}.ss-product-meta small{font-size:var(--sstf-t-small);color:#718497;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ss-product-meta strong{font-size:var(--sstf-t-small);line-height:1.35}.ss-product-meta em{font-style:normal;font-size:var(--sstf-t-small);color:#2b765c}.ss-product-prices{display:flex;gap:5px;flex-wrap:wrap}.ss-product-prices b{font-size:var(--sstf-t-small);color:#174a87;background:#f3f8fd;border-radius:var(--sstf-r-s);padding:3px 5px}.ss-product-card>button{grid-column:2;margin:0;padding:7px 9px!important;min-height:32px!important}.ss-product-card.is-selected{border-color:#174a87;box-shadow:var(--sstf-sh-card)}.ss-multi-footer{position:sticky;bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border:1px solid #cbdced;border-radius:var(--sstf-r-s);padding:var(--sstf-space-2) 10px;margin-top:10px}.ss-multi-footer button{margin:0}.ss-order-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ss-order-product-card{width:100%;display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;text-align:right;background:#fff!important;color:#111!important;border:1px solid #dbe3ec!important;border-radius:var(--sstf-r-s)!important;padding:9px!important;margin:0!important;box-shadow:none!important}.ss-order-product-card:not(.readonly){cursor:pointer}.ss-order-product-card:hover:not(.readonly){border-color:#9bb8d4!important}.ss-order-product-image{width:100px;height:100px;object-fit:contain;border-radius:var(--sstf-r-s);background:#fafbfc}.ss-order-product-body,.ss-order-product-card.readonly>div{display:grid;align-content:start;gap:5px;min-width:0}.ss-order-product-body>small,.ss-order-product-card.readonly small{font-size:var(--sstf-t-small);color:#718497}.ss-order-product-body>strong,.ss-order-product-card.readonly h3{font-size:var(--sstf-t-body);margin:0;line-height:1.35}.ss-order-sizes{display:flex;gap:var(--sstf-space-1);flex-wrap:wrap}.ss-product-card-price{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:auto}.ss-product-card-price b,.ss-product-card-price strong{font-size:var(--sstf-t-small);color:#174a87}.ss-product-card-price em,.ss-product-card-price span{font-style:normal;font-size:var(--sstf-t-small);color:#526b82}.ss-product-card-price i{font-style:normal;font-size:var(--sstf-t-small);background:#fff4e8;color:#98520d;padding:2px 5px;border-radius:var(--sstf-r-s)}.ss-order-savebar{display:grid;grid-template-columns:minmax(150px,.6fr) minmax(150px,.6fr) minmax(260px,1fr);gap:var(--sstf-space-3);align-items:end;padding:var(--sstf-space-3)!important}.ss-order-savebar>label{margin:0}.ss-order-savebar .ss-order-total{display:grid;gap:2px}.ss-order-savebar .ss-store-submit{display:flex;justify-content:flex-end;gap:7px}.ss-order-savebar button{margin:0}.ss-reference-price{display:flex;justify-content:space-between;align-items:center;padding:var(--sstf-space-2) 10px;background:#f5f9fe;border:1px solid #dce8f5;border-radius:var(--sstf-r-s);margin:var(--sstf-space-2) 0}.ss-modal-actions{display:flex;justify-content:flex-end;gap:var(--sstf-space-2)}.ss-modal-actions button{margin:0}.ss-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.ss-summary-grid>div{display:grid;gap:3px;border-inline-end:1px solid #e1e8ef;padding:var(--sstf-space-1) 10px}.ss-summary-grid>div:last-child{border-inline-end:0}.ss-summary-grid small{font-size:var(--sstf-t-small);color:#718497}.ss-summary-grid strong{font-size:var(--sstf-t-body)}.ss-customer-actions{align-items:center;margin-top:10px}.ss-customer-actions form{margin:0}
.ss-customer-actions button{margin:0;padding:var(--sstf-space-2) 11px!important;min-height:36px!important}.ss-customer-requests-review .section-heading{margin:0 0 10px}.ss-customer-request-list{display:grid;gap:var(--sstf-space-2)}.ss-customer-request-list form{min-width:min(430px,50%);margin:0}.ss-customer-request-list form .inline{justify-content:flex-end}.ss-public-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sstf-space-2);padding:var(--sstf-space-3)!important}.ss-public-summary>div{display:grid;gap:3px}.ss-public-summary small{font-size:var(--sstf-t-small)}.ss-public-sale .ss-order-product-card{display:grid}.ss-customer-change{margin-top:6px}.ss-customer-change summary{cursor:pointer;color:#174a87;font-weight:750}.ss-customer-change form{display:grid;gap:var(--sstf-space-2);margin-top:var(--sstf-space-2)}.ss-customer-change label{margin:0}.ss-customer-change button{margin:0}
@media(max-width:900px){.ss-order-savebar{grid-template-columns:1fr 1fr}.ss-order-savebar .ss-store-submit{grid-column:1/-1}.ss-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-store-tools.compact{grid-template-columns:1fr 1fr}.ss-search{grid-column:1/-1}}
@media(max-width:650px){.ss-sales-create-shell,.ss-sales-list-card,.ss-order-editor>.ops-form>.ops-card,.ss-summary-actions,.ss-customer-requests-review{padding:10px!important}.ss-create-grid{grid-template-columns:1fr 1fr;gap:var(--sstf-space-2)}.ss-create-address{grid-column:1/-1}.ss-store-tools.compact{grid-template-columns:1fr 1fr}.ss-order-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ss-order-product-card{display:block!important;padding:7px!important}.ss-order-product-image{width:100%;height:135px;margin-bottom:6px}.ss-order-product-body>strong,.ss-order-product-card.readonly h3{font-size:var(--sstf-t-small)}.ss-order-sizes{max-height:48px;overflow:auto}.ss-product-card-price{gap:var(--sstf-space-1)}.ss-order-savebar{grid-template-columns:1fr}.ss-order-savebar .ss-store-submit{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}.ss-summary-grid{grid-template-columns:1fr 1fr}.ss-summary-grid>div:nth-child(2n){border-inline-end:0}.ss-public-summary{grid-template-columns:1fr 1fr}.ss-product-card{grid-template-columns:76px minmax(0,1fr)}.ss-product-card>img,.ss-product-no-image{width:76px;height:86px}.recipient-products-table{min-width:760px}}
@media(max-width:390px){.ss-order-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-order-savebar .ss-store-submit{grid-template-columns:1fr}}
/* rc20 S&S sales UX:end */

/* inventory-only fields inside the shared product wizard */
.product-wizard .inventory-wizard-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0}.product-wizard .inventory-size-balance{display:block;margin-top:7px;padding:7px 5px;border-radius:var(--sstf-r-s);background:#f5f8fc;color:#38536e;font-size:var(--sstf-t-small);font-weight:750}.product-wizard .inventory-remove-size{min-height:28px;margin:var(--sstf-space-1) 0 0;padding:3px 6px;font-size:var(--sstf-t-small)}.inventory-link-fetch{max-width:880px;margin:0 auto 10px}.inventory-link-fetch>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sstf-space-2);flex-wrap:wrap}.inventory-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:var(--sstf-space-2)}@media(max-width:640px){.product-wizard .inventory-wizard-prices{grid-template-columns:1fr}.inventory-link-row{grid-template-columns:1fr}}

/* Inventory product cards and read-only product view */

.inventory-product-view{display:grid;gap:var(--sstf-space-4);max-width:1180px;margin:0 auto}
.inventory-product-view-media{width:100%;min-height:420px;max-height:620px;display:grid;place-items:center;background:#fff;border:1px solid #dbe3ec;border-radius:var(--sstf-r-m);padding:18px;overflow:hidden}
.inventory-product-view-image{width:100%;height:100%;max-height:584px;object-fit:contain}
.inventory-product-view-header{display:grid;gap:var(--sstf-space-1);padding:0 2px}
.inventory-product-view-header h1{margin:0;font-size:clamp(24px,3vw,36px);line-height:1.22;color:#142b42}
.inventory-product-view-number{color:#687e93;font-weight:800}
.inventory-product-view-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}

.inventory-product-view-meta small{font-size:var(--sstf-t-small);color:#6d8195}
.inventory-product-view-meta strong{font-size:var(--sstf-t-body);color:#183650}
.inventory-product-view-sizes{display:grid;gap:9px;padding:14px;background:#fff;border:1px solid #dbe3ec;border-radius:var(--sstf-r-s)}

.inventory-product-size-chips{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap}
.inventory-product-size-chip{display:grid;gap:1px;min-width:70px;padding:var(--sstf-space-2) 10px;border:1px solid #d7e2ec;border-radius:var(--sstf-r-s);background:#fbfdff;text-align:center}
.inventory-product-size-chip small,.inventory-product-size-empty{font-size:var(--sstf-t-small);color:#6c8194}
.inventory-product-view-action{display:flex;justify-content:flex-start}
@media(max-width:700px){.inventory-product-view-media{min-height:300px;max-height:460px;padding:var(--sstf-space-3)}.inventory-product-view-image{max-height:436px}.inventory-product-view-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.inventory-product-view-meta{grid-template-columns:1fr 1fr}}

/* Shared customer order card: S&S reuses the same customer-start-card/customer-compact-meta structure. */
.sstf-flow .customer-order-static .order-meta-phone{grid-area:date}.sstf-flow .customer-order-static .order-meta-type{grid-area:currency}.sstf-flow .customer-order-static .order-meta-status{grid-area:country}.ss-sale-header-tools{display:flex;justify-content:flex-end;margin:-2px 0 10px}.ss-sale-header-tools button{margin:0}
/* rc20.5 — structured S&S customer change requests */
.ss-public-sale .ss-customer-change-actions{display:grid;gap:7px;margin-top:var(--sstf-space-2)}.ss-public-sale .ss-customer-change{border:1px solid #dfe7ef;border-radius:var(--sstf-r-s);padding:7px var(--sstf-space-2);background:#fbfdff}.ss-public-sale .ss-structured-change-form{display:grid;gap:var(--sstf-space-2);margin-top:var(--sstf-space-2)}.ss-public-sale .ss-change-fields{display:grid;grid-template-columns:1fr 1fr;gap:var(--sstf-space-2)}.ss-public-sale .ss-change-fields label{margin:0}.ss-public-sale .ss-change-stepper{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:var(--sstf-space-1)}.ss-public-sale .ss-change-stepper button{margin:0;padding:var(--sstf-space-1)!important;min-height:36px!important}.ss-public-sale .ss-change-stepper input{--field-padding:6px 2px;min-width:0;text-align:center}.ss-public-sale .ss-change-product-actions{display:flex;gap:7px;flex-wrap:wrap}.ss-public-sale .ss-inline-request-form{margin:0}.ss-public-sale .ss-inline-request-form button{margin:0}.ss-customer-request-list select,.ss-customer-request-list input[type=number]{width:100%}
@media(max-width:560px){.ss-public-sale .ss-change-fields{grid-template-columns:1fr}}

/* rc20.6 mobile overflow hardening for inventory/store/detail */
.inventory-product-view,.inventory-product-view-meta,.ss-store-grid,.ss-product-card,.ss-product-meta{min-width:0;max-width:100%;box-sizing:border-box}

@media(max-width:460px){.inventory-product-view{width:100%;overflow-x:hidden}.ss-store-grid{width:100%;overflow-x:hidden}}

/* rc20.6 visual unification — canonical Matte Glass surface identity. */
@layer sstf-design {
  :where(.sstf-flow,.sstf-admin),.accounting-ui{
    --sstf-surface-bg:linear-gradient(135deg,rgba(255,255,255,.92),rgba(248,251,255,.80));
    --sstf-surface-line:rgba(133,151,171,.32);
    --sstf-surface-blur:14px;
  }
  :where(
    .sstf-panel,
    .ops-card,
    .finance-home-card,
    .finance-fund-card,
    .treasury-card,
    .fund-section,
    .task-card,
    .customer-start-card,
    .inventory-product-view,
    .ss-product-card,
    .ss-create-card,
    .ss-sales-list-card,
    .pricing-panel,
    .account-fold
  ){
    background:var(--sstf-surface-bg,rgba(255,255,255,.88));
    border:1px solid var(--sstf-surface-line,rgba(133,151,171,.32));
    border-radius:var(--sstf-r-m);
    box-shadow:var(--sstf-sh-card);
    backdrop-filter:blur(var(--sstf-surface-blur,14px)) saturate(1.08);
    -webkit-backdrop-filter:blur(var(--sstf-surface-blur,14px)) saturate(1.08);
    background-clip:padding-box;
  }

  /* Component-specific spacing/layout remains independent from the shared surface identity. */
  .treasury-card{padding:var(--sstf-space-4)}
  .inventory-product-view{padding:var(--sstf-space-4)}
  .ss-create-card{padding:14px}
  .ss-sales-list-card{padding:14px;margin:0 0 14px}

  /* Keep interactive/functional states visually distinct. */
  .ss-product-card.is-selected{border-color:#174a87;box-shadow:var(--sstf-sh-card)}

  @media(max-width:650px){
    .inventory-product-view{padding:var(--sstf-space-3)}
    
    .ss-sales-list-card{padding:10px}
  }

  @media print{
    :where(
      .sstf-panel,.ops-card,.finance-home-card,.finance-fund-card,.treasury-card,.fund-section,.task-card,
      .customer-start-card,.inventory-product-view,.ss-product-card,.ss-create-card,
      .ss-sales-list-card,.pricing-panel,.account-fold
    ){
      background:#fff;
      backdrop-filter:none;
      -webkit-backdrop-filter:none;
      box-shadow:none;
    }
  }
}

/* rc20.7 — unified operational index rows, based on the approved vertical-list reference.
   Rollback is intentionally staged: foundation, orders, S&S sales, inventory, other operational lists. */

/* Phase 0 / shared list foundation — visual tokens only. */
:where(.sstf-flow,.sstf-admin),.sstf-admin-orders,.sstf-customer{
  --sstf-list-bg:linear-gradient(135deg,rgba(255,255,255,.965),rgba(248,251,255,.90));
  --sstf-list-line:var(--sstf-card-line,rgba(126,145,166,.24));/* R286: خطّ القوائم والكروت من رمزٍ واحد */
  --sstf-list-divider:rgba(126,145,166,.18);
  --sstf-list-row-min:78px;
  --sstf-list-row-pad:12px 14px;
  --sstf-list-title:#111827;
  --sstf-list-muted:var(--sstf-text-muted,#5f6d7c);
  --sstf-list-action-bg:rgba(246,248,251,.97);
  --sstf-list-action-line:rgba(80,98,120,.10);
  --sstf-list-action-color:#1475df;
  --sstf-list-blur:10px;
}

/* Phase 1 / orders — employee index + WordPress admin order index. */
.orders-compact-list{max-width:none}
.order-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:var(--sstf-space-3);
  min-height:var(--sstf-list-row-min);
  padding:var(--sstf-list-row-pad);
}
.order-line-main{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  gap:3px 11px;
  min-width:0;
}
.order-line-main>strong{grid-column:1;grid-row:1/3;color:#173d70;font-size:var(--sstf-t-small);font-weight:900;white-space:nowrap}
.order-line-main>span:not(.state-badge){grid-column:2;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:900}
.order-line-main>small{grid-column:2;grid-row:2;color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}
.order-line-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto}
.order-line-actions .compact-actions>summary{border-radius:var(--sstf-radius-pill);background:rgba(255,255,255,.84)}

.sstf-admin-order-list{max-width:1180px}
.sstf-admin-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--sstf-space-3);min-height:var(--sstf-list-row-min);padding:var(--sstf-list-row-pad)}
.sstf-admin-order-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:3px 11px;min-width:0}
.sstf-admin-order-main>strong{grid-column:1;grid-row:1/3;color:#173d70;font-size:var(--sstf-t-small);white-space:nowrap}
.sstf-admin-order-main>span:not(.sstf-lock-badge){grid-column:2;grid-row:1;color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sstf-admin-order-main>small{grid-column:2;grid-row:2;color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}
.sstf-admin-order-main>.sstf-lock-badge{grid-column:3;grid-row:1/3;justify-self:start}
.sstf-admin-cancel-box{min-width:0}
.sstf-admin-cancel-box>summary{list-style:none;cursor:pointer}

/* Phase 2 / S&S sales — preserve the existing table/JS semantics, render it as reference rows. */
.ss-sales-list-card{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;padding:0!important}
.ss-sales-list-card .ss-sales-filters{padding:0 2px}

/* Phase 4 / suppliers, customer gateways, operational records, store orders. */
.supplier-directory-list>.supplier-directory-row,.supplier-quotes-list>.supplier-quote-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:var(--sstf-space-3);
  min-height:var(--sstf-list-row-min);
  padding:var(--sstf-list-row-pad);
}
.supplier-directory-row.is-inactive{background:rgba(248,249,251,.62);opacity:.72}
.supplier-directory-main{display:flex;align-items:center;gap:var(--sstf-space-1) 10px;flex-wrap:wrap;min-width:0}
.supplier-directory-main>strong{flex:1 0 100%;min-width:0;color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supplier-directory-main>span:not(.state-badge),.supplier-directory-main>small{color:var(--sstf-list-muted);font-size:var(--sstf-t-small);min-width:0}
.supplier-directory-actions,.supplier-quote-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}

.supplier-quote-row{grid-template-columns:minmax(0,1fr) auto auto!important}
.supplier-quote-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;min-width:0}
.supplier-quote-main>strong{grid-column:1;color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supplier-quote-main>span{grid-column:1;color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}
.supplier-quote-main>small{grid-column:2;grid-row:1/3;align-self:center;color:#33465b;font-size:var(--sstf-t-small);font-weight:850;white-space:nowrap}
.supplier-quote-row.is-open{background:rgba(246,250,255,.62)}
.supplier-quote-row.is-selected{border-inline-start:3px solid #174a87}

.merchant-gateway-list{display:block;grid-template-columns:none;gap:0}
.merchant-gateway-list>.merchant-gateway-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,auto);
  grid-template-rows:auto auto;
  align-items:center;
  gap:var(--sstf-space-2) var(--sstf-space-4);
  min-height:104px;
  padding:var(--sstf-list-row-pad);
}
.merchant-gateway-head{grid-column:1;grid-row:1;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:0;border:0}
.merchant-gateway-head>div{display:grid;gap:3px;min-width:0}
.merchant-gateway-head strong{color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:900}
.merchant-gateway-head small{color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}
.merchant-gateway-link{grid-column:1;grid-row:2;min-width:0}
.merchant-gateway-actions{grid-column:2;grid-row:1/3;align-self:center}
.merchant-gateway-card.is-disabled{background:rgba(248,249,251,.62)}

.ops-record-list>.ops-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  grid-template-rows:auto auto auto;
  align-items:center;
  gap:2px var(--sstf-space-3);
  min-height:90px;
  padding:var(--sstf-list-row-pad);
}
.ops-record-list>.ops-card>.sstf-avatar{grid-column:1;grid-row:1/4}
.ops-record-list>.ops-card>strong{grid-column:2;grid-row:1;color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:900}
.ops-record-list>.ops-card>p{grid-column:2;margin:0;color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}

/* Phase 5 / parcel tracking — one recipient surface, with each parcel as a full-width row. */
.parcel-section>.recipient-block{margin:10px 0 14px;padding:0;border:1px solid var(--sstf-list-line);border-radius:var(--sstf-r-l);background:var(--sstf-list-bg);box-shadow:var(--sstf-sh-card);backdrop-filter:blur(var(--sstf-list-blur)) saturate(1.04);-webkit-backdrop-filter:blur(var(--sstf-list-blur)) saturate(1.04);overflow:hidden}
/* R193 بند 4 (أمر المالك 17/11): سطر المستلم سطرٌ واحد — الاسم يتمدّد ويُقصّ، والحالة ورقم البوليصة بجانبه بلا التفاف (شاشة الموظف) */
/* بلاغ المالك 18/11: صفّ المستلم صفّان مرتّبان — الاسم والحالة والرقم أولًا، والوزن والنقاط تحتهما.
   ولا يخرج عنصرٌ عن حافّة الكرت. */
.parcel-section>.recipient-block>.ds-recipient-row--line{display:flex;align-items:center;gap:var(--sstf-space-2);flex-wrap:wrap;padding-inline:10px;box-sizing:border-box;max-width:100%;overflow:hidden}
/* R283 (أمر المالك 25/11): صفّان صريحان — الأول: الاسم · شركة الشحن · ⋯ ، والثاني: ✓ · الحالة · رقم البوليصة.
   وحقل الوزن السريع حُذف من الصفّ (بيته كرت المستلم والوزن الموحّد في كرت التجهيز). */
/* R284 (أمر المالك 25/11): كرت التصدير الجماعي — حقوله صفٌّ تحت صفّ، وأزراره في شريطٍ واحد مرتّب
   (قاعدته: «الأزرار تكون منظّمة مش عشوائية»). */
/* R288 (أمر المالك 25/11): «السطر اللي بيسع زرّين حط له زرّين، ما تحطهم فوق بعض».
   صفوف الأزرار تحت الكروت عمودان على الشاشة الواسعة، وعمودٌ واحد على الضيّقة.
   والصفّ العلوي: «تصدير جماعي» صغيرًا وبجانبه حقل شركة الشحن في سطرٍ واحد. */
/* R288: شريط تقدّم الإلغاء — يقرأ ما تمّ فعلًا، بعرض الكرت */
.ds-cancel-bar{display:block;width:100%;height:12px;margin:var(--sstf-space-2) 0;border-radius:999px;overflow:hidden;accent-color:var(--sstf-brand-primary,#174a87)}
[data-ds-cancel-card] .ds-issue-errors{margin:0;padding-inline-start:1.1rem;color:var(--sstf-list-muted)}
.ds-actions-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:var(--sstf-space-2);align-items:stretch}
.ds-actions-2>*{margin:0;width:100%;box-sizing:border-box}
.ds-top-line{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sstf-space-2);width:100%}
.ds-top-line>button{flex:0 0 auto;margin:0}
.ds-top-line>label{flex:1 1 200px;min-width:0;margin:0}
/* R285: مربّع التحديد آخر السطر الثاني — لا يظهر إلا في وضع التحديد، وشريط أدواته صفٌّ واحد مرتّب */
.ds-row__pick{display:inline-flex;align-items:center;flex:0 0 auto;margin-inline-start:auto}
.ds-row__pick>input{width:20px;height:20px;margin:0;accent-color:var(--sstf-brand-primary,#174a87)}
.ds-pick-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sstf-space-2);width:100%}
.ds-pick-bar>button{margin:0;flex:1 1 auto}
.ds-bulk-slot{display:flex;flex-wrap:wrap;justify-content:flex-start;padding:var(--sstf-space-2) var(--sstf-space-3) 0}
.ds-bulk-slot>button{margin:0}
.ds-bulk-card{display:grid;gap:var(--sstf-space-2)}
.ds-bulk-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sstf-space-2);margin-top:var(--sstf-space-2)}
.ds-bulk-actions>button{margin:0;flex:1 1 auto}
.ds-row__line1,.ds-row__line2{display:flex;align-items:center;gap:var(--sstf-space-2);min-width:0}
.ds-row__line1{flex:1 1 100%}
.ds-row__line1>.sstf-icon-actions{flex:1 1 auto;min-width:0;overflow:hidden}
.ds-row__line1>.ds-parcel-menu{margin-inline-start:auto}
.ds-row__carrier{flex:0 0 auto;white-space:nowrap;font-size:.86rem;color:var(--sstf-list-muted)}
.ds-row__line2{flex:1 1 100%;white-space:nowrap}
/* R278 (أمر المالك 24/11): «إشارة صح على كل كرت صدرت بوليصته، ومن لم تصدر كرته عليه إطار أحمر، والكروت مرقّمة».
   الإطار يُقرأ من حالة البوليصة نفسها (data-ds-awb) لا من لونٍ يُكتب باليد. */
.ds-row__awb{display:inline-flex;align-items:center;flex:0 0 auto}
.ds-row__awb .sstf-icon{width:18px;height:18px}
.parcel-section>.recipient-block[data-ds-awb="no"]{border-color:var(--sstf-tone-danger-strong,#d1463b);box-shadow:inset 0 0 0 1px var(--sstf-tone-danger-strong,#d1463b),var(--sstf-sh-card)}
.ds-parcel-menu{flex:0 0 auto;display:inline-flex;align-items:center}
.ds-parcel-menu>button{margin:0}
/* ارتفاعٌ مضبوط: سطران لا أكثر — فالصفّ يبقى صفًّا ولا يصير كتلة */
.parcel-section>.recipient-block>.ds-recipient-row--line{row-gap:4px;padding-block:4px}
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-action{min-height:38px;padding-block:4px}
.parcel-section>.recipient-block>.ds-recipient-row--line .ds-parcel-menu>button{min-height:30px;padding:2px 10px}
/* الغلاف نفسه لا يضيف ارتفاعًا: الصفّ سطران مضبوطان */
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions{min-height:0;padding:0;margin:0}
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions .sstf-icon-action{min-height:34px;padding:4px 10px}
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions .sstf-icon-action .sstf-icon{width:20px;height:20px}
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions{flex:1 1 auto;min-width:0;overflow:hidden}
/* اسم المستلم يبقى ظاهرًا دائمًا: يأخذ ما تبقّى ويُقصّ بنقاطٍ لا يختفي */
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions .sstf-icon-action{min-width:0;max-width:100%}
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions .sstf-icon-action>span{display:inline-block;min-width:3.5rem}
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions .sstf-icon-action__label,
.parcel-section>.recipient-block>.ds-recipient-row--line .sstf-icon-actions span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.parcel-section>.recipient-block>.ds-recipient-row--line>.ds-parcel-state,
.parcel-section>.recipient-block>.ds-recipient-row--line>.ds-parcel-awb{flex:0 0 auto;white-space:nowrap}
.ds-parcel-awb{font-variant-numeric:tabular-nums;color:var(--sstf-list-muted);font-size:.86rem}
.parcel-section>.recipient-block>h3{margin:0;padding:var(--sstf-space-3) 14px 2px;color:var(--sstf-list-title)}
.parcel-section>.recipient-block>p{margin:0;padding:0 14px 10px;color:var(--sstf-list-muted)}

.parcel-section>.recipient-block>.parcel-editor{margin:var(--sstf-space-2) var(--sstf-space-3) var(--sstf-space-3)}

@media(max-width:700px){
  .order-line,.sstf-admin-order-row{gap:var(--sstf-space-2)}
  .order-line-main,.sstf-admin-order-main{grid-template-columns:auto minmax(0,1fr);gap:2px var(--sstf-space-2)}
.sstf-admin-order-main>.sstf-lock-badge{grid-column:2;grid-row:3;justify-self:start}
  .order-line-main>strong,.sstf-admin-order-main>strong{grid-row:1/4}
:where(.sstf-admin-cancel-box>summary){min-inline-size:72px;padding-inline:10px}

  .supplier-directory-list>.supplier-directory-row,.supplier-quotes-list>.supplier-quote-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:start;gap:var(--sstf-space-2)}
  .supplier-quote-state{grid-column:1;justify-self:start}
  .supplier-quote-actions{grid-column:2;grid-row:1/3;align-self:center}

  .merchant-gateway-list>.merchant-gateway-card{grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:var(--sstf-space-2)}
  .merchant-gateway-head,.merchant-gateway-link,.merchant-gateway-actions{grid-column:1;grid-row:auto}
  .merchant-gateway-actions{justify-content:flex-start}

  .ops-record-list>.ops-card{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto auto;min-height:96px}
  .ops-record-list>.ops-card>.sstf-avatar{grid-row:1/5}

  
}

/* Scoped overrides for legacy !important table/recipient rules; same layer is required to keep cascade deterministic. */
@layer sstf-design {
  .sstf-flow .ss-sales-list-card .recipient-products-table-wrap{
    width:100%!important;
    overflow:hidden!important;
    border:1px solid var(--sstf-list-line)!important;
    border-radius:var(--sstf-r-l)!important;
    background:var(--sstf-list-bg)!important;
    box-shadow:var(--sstf-sh-card)!important;
    backdrop-filter:blur(var(--sstf-list-blur)) saturate(1.04)!important;
    -webkit-backdrop-filter:blur(var(--sstf-list-blur)) saturate(1.04)!important;
  }

  @media(max-width:650px){
    .sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row{
      grid-template-columns:auto minmax(0,1fr) 70px!important;
      grid-template-rows:auto auto auto auto auto!important;
      gap:2px var(--sstf-space-2)!important;
      min-height:98px!important;
      padding:10px!important;
    }
    .sstf-flow .ss-sales-list-card .ss-sale-row>td:nth-child(1){grid-column:1!important;grid-row:1/6!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row>td:nth-child(2){grid-column:2!important;grid-row:1!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row>td:nth-child(4){grid-column:2!important;grid-row:2!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row>td:nth-child(5){grid-column:2!important;grid-row:3!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row>td:nth-child(3){grid-column:2!important;grid-row:4!important;color:var(--sstf-list-muted)!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row>td:nth-child(6){grid-column:2!important;grid-row:5!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row::after{grid-column:3!important;grid-row:1/6!important;min-inline-size:64px!important;min-height:34px!important;padding-inline:var(--sstf-space-2)!important}
  }
}

/* Phase 6 / compact accounting indexes that are record lists, not financial reports/tables. */
@layer sstf-design {

  .accounting-ui .customer-balance-list>.customer-balance-card{display:block!important}
  .accounting-ui .customer-balance-head{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px var(--sstf-space-3)}
  .accounting-ui .customer-balance-head>div{display:grid;gap:2px;min-width:0}
  .accounting-ui .customer-balance-head small{color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}
  .accounting-ui .customer-balance-head strong{color:var(--sstf-list-title);font-size:var(--sstf-t-body);font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .accounting-ui .customer-balance-head>span{grid-column:2;grid-row:1/3;align-self:center;color:var(--sstf-list-action-color);font-size:var(--sstf-t-small);font-weight:800;white-space:nowrap}
  .accounting-ui .customer-balance-card>.credit-chips{margin-top:7px}

  .accounting-ui .supplier-finance-list>.supplier-finance-card{display:flex!important;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);color:inherit;text-decoration:none}
  
  
  
  .accounting-ui .supplier-finance-card>b{flex:0 0 auto;font-size:var(--sstf-t-small);white-space:nowrap}
.accounting-ui .simple-list>.simple-list-row{display:flex!important;align-items:center;gap:var(--sstf-space-3)}
  
  
  
  

  .accounting-ui .account-documents>.account-document-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:3px 14px}
  .accounting-ui .account-documents>.account-document-row>div:first-child{grid-column:1;grid-row:1;display:flex;align-items:center;gap:var(--sstf-space-2);justify-content:flex-start;min-width:0}
  
  
  .accounting-ui .account-documents>.account-document-row>div:last-child{grid-column:2;grid-row:1/3;display:grid;justify-items:end;align-content:center;gap:6px}
  

  @media(max-width:700px){
    .accounting-ui .account-documents>.account-document-row{gap:3px var(--sstf-space-2)}
.accounting-ui .supplier-finance-list>.supplier-finance-card,.accounting-ui .simple-list>.simple-list-row{gap:var(--sstf-space-2)}
  }
}

/* Phase 7 / remaining real record lists; product stores and data tables stay excluded. */
@layer sstf-design {
.accounting-ui .credit-source-list{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    gap:0!important;
    margin:10px 0 14px!important;
    overflow:hidden!important;
    border:1px solid var(--sstf-list-line)!important;
    border-radius:var(--sstf-r-l)!important;
    background:var(--sstf-list-bg)!important;
    box-shadow:var(--sstf-sh-card)!important;
    backdrop-filter:blur(var(--sstf-list-blur)) saturate(1.04)!important;
    -webkit-backdrop-filter:blur(var(--sstf-list-blur)) saturate(1.04)!important;
  }
.accounting-ui .credit-source-list>.credit-source-row{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    min-height:var(--sstf-list-row-min)!important;
    margin:0!important;
    padding:var(--sstf-list-row-pad)!important;
    border-block-start:0!important;
    border-inline-end:0!important;
    border-block-end:1px solid var(--sstf-list-divider)!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
.accounting-ui .credit-source-list>.credit-source-row:last-child{border-block-end:0!important}

  
  
  
  
  
  

  :where(.sstf-flow,.sstf-admin) .ss-customer-request-list>article{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,auto)!important;align-items:start!important;gap:var(--sstf-space-3)!important;background:transparent!important}
  
  
  
  
  

  :where(.sstf-flow,.sstf-admin) .change-list>h3{margin:0!important;padding:13px 14px var(--sstf-space-1)!important;color:var(--sstf-list-title)!important}
  :where(.sstf-flow,.sstf-admin) .change-list>p:not(.value-diff){margin:0!important;padding:var(--sstf-space-1) 14px var(--sstf-space-3)!important;color:var(--sstf-list-muted)!important}
  :where(.sstf-flow,.sstf-admin) .change-list>.change-row{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(0,2.4fr)!important;gap:14px!important;background:transparent}
  :where(.sstf-flow,.sstf-admin) .change-list>.diff-added{border-inline-start:3px solid #217345!important;background:#f1faf4!important}
  :where(.sstf-flow,.sstf-admin) .change-list>.diff-removed{border-inline-start:3px solid #b1463b!important;background:#fff7f5!important}
  :where(.sstf-flow,.sstf-admin) .change-list>.diff-changed{border-inline-start:3px solid #a95513!important;background:#fffaf3!important}

  .accounting-ui .credit-source-list>.credit-source-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;gap:2px var(--sstf-space-3)!important;background:transparent!important}
  .accounting-ui .credit-source-row>span{grid-column:1;grid-row:1;color:var(--sstf-list-title);font-size:var(--sstf-t-small);font-weight:850}
  .accounting-ui .credit-source-row>small{grid-column:1;grid-row:2;color:var(--sstf-list-muted);font-size:var(--sstf-t-small)}
  .accounting-ui .credit-source-row>strong{grid-column:2;grid-row:1/3;color:var(--sstf-list-action-color);font-size:var(--sstf-t-small);white-space:nowrap}

  @media(max-width:700px){
.accounting-ui .credit-source-list{--sstf-list-row-pad:10px 11px;--sstf-list-row-min:72px}
    
    :where(.sstf-flow,.sstf-admin) .change-list>.change-row{grid-template-columns:1fr!important;gap:var(--sstf-space-2)!important}
  }
}

@media print{
}

/* rc20.9 — command 3: reference-matched cards on Home/Dashboard pages only. */
@layer sstf-design {
  :where(.sstf-flow,.sstf-admin),.accounting-ui{
    --sstf-home-card-bg:rgba(255,255,255,.965);
    --sstf-home-card-line:rgba(126,145,166,.14);
    --sstf-home-card-muted:var(--sstf-text-muted,#5f6d7c);
    --sstf-home-card-ink:#111827;
  }

  /* Task summaries: operations home, employee home and merchant home. */
  
  :where(.sstf-flow,.sstf-admin) .task-card{
    display:flex!important;
    flex-direction:column;
    align-items:center!important;
    justify-content:center;
    gap:7px!important;
    min-width:0;
    min-height:184px;
    padding:var(--sstf-space-5) var(--sstf-space-4)!important;
    overflow:hidden;
    color:var(--sstf-home-card-ink)!important;
    text-align:center;
    text-decoration:none;
    background:var(--sstf-home-card-bg)!important;
    border:1px solid var(--sstf-home-card-line)!important;
    border-radius:var(--sstf-r-l)!important;
    box-shadow:var(--sstf-sh-card)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
  }
  :where(.sstf-flow,.sstf-admin) .task-card:hover,
  :where(.sstf-flow,.sstf-admin) .task-card:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(126,145,166,.24)!important;
    box-shadow:var(--sstf-sh-card)!important;
  }
  :where(.sstf-flow,.sstf-admin) .task-card>span{
    order:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:var(--sstf-space-2);
    width:100%;
    color:var(--sstf-home-card-muted)!important;
    font-size:var(--sstf-t-small)!important;
    font-weight:700;
    line-height:1.45;
    text-align:center;
  }
  :where(.sstf-flow,.sstf-admin) .task-card>.nav-icon,
  :where(.sstf-flow,.sstf-admin) .task-card>.small-icon,
  :where(.sstf-flow,.sstf-admin) .task-card>span>.nav-icon,
  :where(.sstf-flow,.sstf-admin) .task-card>span>.small-icon{
    order:0;
    width:48px!important;
    height:48px!important;
    flex:0 0 48px;
    object-fit:contain;
    filter:drop-shadow(0 7px 10px rgba(53,83,124,.12));
  }
  :where(.sstf-flow,.sstf-admin) .task-card>strong{
    order:2;
    display:block;
    margin:0;
    color:var(--sstf-home-card-ink)!important;
    font-size:var(--sstf-t-page)!important;
    font-weight:900;
    line-height:1.15;
    letter-spacing:-.02em;
    text-align:center;
  }
  :where(.sstf-flow,.sstf-admin) .task-card>small{
    order:3;
    display:block;
    width:100%;
    color:var(--sstf-home-card-muted)!important;
    font-size:var(--sstf-t-small)!important;
    line-height:1.45;
    text-align:center;
  }

  /* Dashboard quick-entry cards use the same quiet, centered reference shape. */
  
  
  
  
  
  

  /* Native WordPress dashboard metrics and its one direct overview panel. */
  :where(.sstf-flow,.sstf-admin) .sstf-metrics{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:var(--sstf-space-4);
    margin:22px 0 28px;
  }
  :where(.sstf-flow,.sstf-admin) .sstf-metrics article{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:184px;
    padding:var(--sstf-space-5) var(--sstf-space-4);
    text-align:center;
    background:var(--sstf-home-card-bg)!important;
    border:1px solid var(--sstf-home-card-line)!important;
    border-radius:var(--sstf-r-l)!important;
    box-shadow:var(--sstf-sh-card)!important;
  }
  :where(.sstf-flow,.sstf-admin) .sstf-metrics article::before{
    content:"";
    width:48px;
    height:48px;
    margin-bottom:3px;
    border-radius:50%;
    background:radial-gradient(circle at 38% 35%,#fff 0 8%,#8ebbf2 28%,#4f7ed7 64%,#7654d7 100%);
    box-shadow:inset 0 1px 7px rgba(255,255,255,.8),var(--sstf-sh-card);
  }
  :where(.sstf-flow,.sstf-admin) .sstf-metrics article:nth-child(2)::before{background:radial-gradient(circle at 40% 32%,#fff 0 7%,#f3a4c5 27%,#bd5dd6 62%,#7347c5 100%)}
  :where(.sstf-flow,.sstf-admin) .sstf-metrics article:nth-child(3)::before{background:radial-gradient(circle at 40% 32%,#fff 0 7%,#8fe0d0 26%,#36b9a2 60%,#478ad2 100%)}
  :where(.sstf-flow,.sstf-admin) .sstf-metrics article:nth-child(4)::before{background:radial-gradient(circle at 40% 32%,#fff 0 7%,#ffd27e 27%,#f18c58 61%,#ce5f73 100%)}
  :where(.sstf-flow,.sstf-admin) .sstf-metrics span{order:1;color:var(--sstf-home-card-muted)!important;font-size:var(--sstf-t-small);font-weight:700}
  :where(.sstf-flow,.sstf-admin) .sstf-metrics strong{order:2;margin:0;color:var(--sstf-home-card-ink);font-size:var(--sstf-t-page);line-height:1.15;font-weight:900}
  :where(.sstf-flow,.sstf-admin) .sstf-metrics small{order:3;color:var(--sstf-home-card-muted)!important;font-size:var(--sstf-t-small);line-height:1.45}
  .sstf-admin:has(>.sstf-metrics)>.sstf-panel{
    background:var(--sstf-home-card-bg)!important;
    border:1px solid var(--sstf-home-card-line)!important;
    border-radius:var(--sstf-r-l)!important;
    box-shadow:var(--sstf-sh-card)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .sstf-admin:has(>.sstf-metrics)>.sstf-panel .sstf-module-grid>div{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:128px;
    padding:18px;
    text-align:center;
    background:#fff;
    border:1px solid var(--sstf-home-card-line);
    border-radius:var(--sstf-r-m);
    box-shadow:var(--sstf-sh-card);
  }

  /* Accounting home: large containers stay functional; their summary tiles match the reference. */
  .accounting-ui .finance-home-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:var(--sstf-space-3);
    width:100%;
    padding:20px!important;
    margin:var(--sstf-space-4) 0 22px;
    background:var(--sstf-home-card-bg)!important;
    border:1px solid var(--sstf-home-card-line)!important;
    border-radius:var(--sstf-r-l)!important;
    box-shadow:var(--sstf-sh-card)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  
  
  
  
  
  .accounting-ui .finance-fund-stack{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-4);margin-top:2px}
  
  
  
  
  
  
  
  

  @media(max-width:800px){
    :where(.sstf-flow,.sstf-admin) .sstf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .accounting-ui .finance-fund-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media(max-width:700px){
:where(.sstf-flow,.sstf-admin) .task-card{min-height:166px;padding:20px 11px!important;border-radius:var(--sstf-r-l)!important}
    
    
  }
  @media(max-width:340px){
:where(.sstf-flow,.sstf-admin) .sstf-metrics,.accounting-ui .finance-fund-stack{grid-template-columns:1fr}
  }
  @media print{
.sstf-admin:has(>.sstf-metrics)>.sstf-panel,.accounting-ui :where(.finance-home-card,.finance-fund-main-card){box-shadow:none!important;background:#fff!important}
  }
}

/* rc20.8 — unified real-table language based on the approved table reference. */
:root{
  --sstf-table-bg:rgba(255,255,255,.97);
  --sstf-table-head-bg:linear-gradient(180deg,rgba(239,245,252,.99),rgba(232,240,249,.96));
  --sstf-table-head-ink:#173d67;
  --sstf-table-ink:#263b51;
  --sstf-table-muted:var(--sstf-text-muted,#5f6d7c);
  --sstf-table-line:#d8e1eb;
  --sstf-table-line-soft:#e7ecf2;
  --sstf-table-cell-y:11px;
  --sstf-table-cell-x:12px;
}

/* Every real table keeps a true table/grid structure; list screens are excluded below. */
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table){
  width:100%;
  border:1px solid var(--sstf-table-line);
  border-collapse:separate;
  border-spacing:0;
  border-radius:var(--sstf-r-s);
  background:var(--sstf-table-bg);
  color:var(--sstf-table-ink);
  box-shadow:var(--sstf-sh-card);
  overflow:hidden;
  white-space:normal;
}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>thead>tr>th{
  padding:var(--sstf-table-cell-y) var(--sstf-table-cell-x);
  background:var(--sstf-table-head-bg);
  color:var(--sstf-table-head-ink);
  border:0;
  border-block-end:1px solid #cbd7e4;
  border-inline-end:1px solid var(--sstf-table-line);
  font-size:var(--sstf-t-small);
  font-weight:850;
  line-height:1.45;
  text-align:start;
  vertical-align:middle;
  white-space:normal;
}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tbody>tr>td,
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tfoot>tr>td,
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tfoot>tr>th{
  padding:var(--sstf-table-cell-y) var(--sstf-table-cell-x);
  border:0;
  border-block-end:1px solid var(--sstf-table-line-soft);
  border-inline-end:1px solid var(--sstf-table-line-soft);
  background:transparent;
  color:var(--sstf-table-ink);
  line-height:1.55;
  text-align:start;
  vertical-align:middle;
  white-space:normal;
}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>thead>tr>*:last-child,
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tbody>tr>*:last-child,
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tfoot>tr>*:last-child{border-inline-end:0}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tbody>tr:last-child>td{border-block-end:0}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tfoot>tr>*{
  background:rgba(241,246,251,.96);
  color:#173d67;
  font-weight:850;
  border-block-start:1px solid #cbd7e4;
  border-block-end:0;
}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table)>tbody>tr:hover>td{background:rgba(247,250,253,.72)}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table) :is(small,.product-code,.product-meta-line){color:var(--sstf-table-muted)}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table) :is(input,select,textarea){margin:0;max-width:100%}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table) textarea{min-height:72px;resize:vertical}
:where(.sstf-flow,.sstf-admin) table:not(.orders-table):not(.recipient-products-table) img{max-width:100%;object-fit:contain}

/* Horizontal scrolling belongs to the table viewport, never to individual rows/cards. */
:where(.sstf-flow,.sstf-admin) .sstf-table-scroll,
:where(.sstf-flow,.sstf-admin) :is(.table,.product-table-scroll,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table){
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}

/* Stage 1 — customer product table is the reference implementation. */
.sstf-flow .product-table-section{--sstf-table-cell-y:12px;--sstf-table-cell-x:13px}
.sstf-flow .product-table-section .product-table-scroll{overflow-x:auto}
.sstf-flow #products-table{display:table;width:100%;min-width:680px;table-layout:fixed;font-size:var(--sstf-t-small)}
.sstf-flow #products-table thead{display:table-header-group}
.sstf-flow #products-table tbody{display:table-row-group}
.sstf-flow #products-table tfoot{display:table-footer-group}
.sstf-flow #products-table :is(.product-data-row,.product-actions-row){display:table-row;margin:0;border:0;border-radius:0;box-shadow:none}
.sstf-flow #products-table td{display:table-cell;min-width:0;max-width:none}
.sstf-flow #products-table th:nth-child(1),.sstf-flow #products-table td:nth-child(1){width:88px}
.sstf-flow #products-table th:nth-child(2),.sstf-flow #products-table td:nth-child(2){width:31%}
.sstf-flow #products-table th:nth-child(3),.sstf-flow #products-table td:nth-child(3){width:auto}
.sstf-flow #products-table th:nth-child(4),.sstf-flow #products-table td:nth-child(4){width:92px;text-align:center}
.sstf-flow #products-table .product-actions-row>td{padding:7px var(--sstf-space-3);background:rgba(248,250,253,.92);border-block-end:1px solid var(--sstf-table-line)}
.sstf-flow #products-table .product-actions-row:last-child>td{border-block-end:0}

/* Stage 1b — recipient product/review tables generated by customer.js. */
.sstf-flow #recipient-section .recipient-products-table-wrap{
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.sstf-flow #recipient-section .recipient-products-table{
  display:table!important;
  width:100%!important;
  min-width:680px!important;
  table-layout:fixed!important;
  border:1px solid var(--sstf-table-line)!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border-radius:var(--sstf-r-s)!important;
  background:var(--sstf-table-bg)!important;
  box-shadow:var(--sstf-sh-card)!important;
  overflow:hidden!important;
  font-size:var(--sstf-t-small)!important;
}
.sstf-flow #recipient-section .recipient-products-table thead{display:table-header-group!important}
.sstf-flow #recipient-section .recipient-products-table tbody{display:table-row-group!important}
.sstf-flow #recipient-section .recipient-products-table tfoot{display:table-footer-group!important}
.sstf-flow #recipient-section .recipient-products-table tr{display:table-row!important}
.sstf-flow #recipient-section .recipient-products-table th{
  padding:10px 9px!important;background:var(--sstf-table-head-bg)!important;color:var(--sstf-table-head-ink)!important;
  border:0!important;border-block-end:1px solid #cbd7e4!important;border-inline-end:1px solid var(--sstf-table-line)!important;
  font-size:var(--sstf-t-small)!important;font-weight:850!important;text-align:start!important
}
.sstf-flow #recipient-section .recipient-products-table td{
  display:table-cell!important;padding:9px!important;border:0!important;border-block-end:1px solid var(--sstf-table-line-soft)!important;
  border-inline-end:1px solid var(--sstf-table-line-soft)!important;vertical-align:middle!important;color:var(--sstf-table-ink)!important;background:transparent!important
}
.sstf-flow #recipient-section .recipient-products-table tr>*:last-child{border-inline-end:0!important}
.sstf-flow #recipient-section .recipient-products-table tbody tr:last-child>td{border-block-end:0!important}
.sstf-flow #recipient-section .recipient-products-table th:nth-child(1),.sstf-flow #recipient-section .recipient-products-table td:nth-child(1){width:72px!important;text-align:center!important}
.sstf-flow #recipient-section .recipient-products-table th:nth-child(2),.sstf-flow #recipient-section .recipient-products-table td:nth-child(2){width:31%!important}
.sstf-flow #recipient-section .recipient-products-table th:nth-child(3),.sstf-flow #recipient-section .recipient-products-table td:nth-child(3){width:auto!important}
.sstf-flow #recipient-section .recipient-products-table th:nth-child(4),.sstf-flow #recipient-section .recipient-products-table td:nth-child(4){width:76px!important;text-align:center!important}

/* Stage 2 — supplier input, supplier review, internal pricing, review and offers. */
.sstf-flow #supplier-products,.sstf-flow .supplier-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-3);margin:var(--sstf-space-3) 0}
.sstf-flow .supplier-product-card{min-width:0;overflow:hidden;border:1px solid #dce4eb;border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
.sstf-flow .supplier-product-open{--control-padding:0;--control-height:0;display:block;width:100%;margin:0;border:0;background:#fff;color:#193144;box-shadow:none;border-radius:0;text-align:start;cursor:pointer}
.sstf-flow .supplier-product-open img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f7f8fa}
.sstf-flow .supplier-product-open strong{padding:var(--sstf-space-3) 10px 6px;font-size:var(--sstf-t-body);line-height:1.4;}
.sstf-flow .supplier-card-quantity{display:block;padding:0 10px var(--sstf-space-3);font-size:var(--sstf-t-small);font-weight:600}
.sstf-flow .supplier-card-amount{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px;background:#edf6fc;font-size:var(--sstf-t-small)}
.sstf-flow .supplier-card-amount strong{font-size:var(--sstf-t-card)}
.sstf-flow .supplier-edit-dialog{width:min(560px,calc(100vw - 20px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #dce4eb;border-radius:var(--sstf-r-m);background:#fff;color:#193144;overflow:auto}
.sstf-flow .supplier-edit-dialog::backdrop{background:#14283d66}
.sstf-flow .supplier-edit-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:var(--sstf-space-3);border-bottom:1px solid #dce4eb}
.sstf-flow .supplier-edit-dialog h2{font-size:var(--sstf-t-card);margin:0}
.sstf-flow .supplier-dialog-body{display:grid;gap:var(--sstf-space-3);padding:14px;}
.sstf-flow .supplier-dialog-body label{display:grid;gap:5px;margin:0}
.sstf-flow .supplier-dialog-body img{max-width:100%;max-height:180px;object-fit:contain}
.sstf-flow .supplier-product-details{padding:10px;background:#f2f7fb;border-radius:var(--sstf-r-s)}
.sstf-flow .supplier-product-details p{margin:6px 0;font-size:var(--sstf-t-small)}
.sstf-flow .supplier-card-help{font-size:var(--sstf-t-body);line-height:1.6;margin:var(--sstf-space-2) 0}
.sstf-flow .supplier-delivery-cards{display:grid;gap:var(--sstf-space-3);margin:20px 0}
.sstf-flow .supplier-delivery-cards>article{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,160px);gap:var(--sstf-space-3);align-items:center;border:1px solid #dce4eb;border-radius:var(--sstf-r-m);padding:var(--sstf-space-3);background:#f7fbff}
.sstf-flow .supplier-delivery-cards>article>label{font-size:var(--sstf-t-small);margin:0}
.sstf-flow .supplier-delivery-cards h2{font-size:var(--sstf-t-card);margin:0}

.sstf-flow .supplier-review-wrap{overflow-x:auto}
.sstf-flow .supplier-review-table{display:table;width:100%;min-width:900px;table-layout:auto}
.sstf-flow .supplier-review-table thead{display:table-header-group}
.sstf-flow .supplier-review-table tbody{display:table-row-group}
.sstf-flow .supplier-review-table tr{display:table-row;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.sstf-flow .supplier-review-table td{display:table-cell}
.sstf-flow .supplier-review-table td::before{display:none}

.sstf-flow .pricing-table-wrap{overflow-x:auto;border:0;border-radius:0;background:transparent;box-shadow:none}
.sstf-flow .pricing-table-wrap table{display:table;width:100%;min-width:940px;table-layout:auto}
.sstf-flow .pricing-table-wrap thead{display:table-header-group}
.sstf-flow .pricing-table-wrap tbody{display:table-row-group}
.sstf-flow .pricing-table-wrap tr{display:table-row;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.sstf-flow .pricing-table-wrap td{display:table-cell;min-width:88px}
.sstf-flow .pricing-table-wrap td::before{display:none}
.sstf-flow .pricing-table-wrap :is(input,select){width:100%;max-width:170px;min-width:96px}

.sstf-flow .offer-workbench>.table table{min-width:700px}
.sstf-flow #report-table{min-width:760px}

/* Stage 3 — S&S product detail, inventory/stocktake and attendance/operations tables. */
.sstf-flow main>.sstf-table-scroll>table:not(.recipient-products-table),
.sstf-flow .ops-card .ops-form>.sstf-table-scroll>table,
.sstf-flow .ops-card>.sstf-table-scroll>table{min-width:680px}
.sstf-flow .inventory-stocktake-table{min-width:900px}
.sstf-flow .attendance-review-table,.sstf-flow .attendance-print-table table{min-width:700px}

/* Stage 4 — accounting and reporting tables use the same reference grid. */
.sstf-flow .account-report-table{max-width:100%}
.sstf-flow div.account-report-table>.sstf-table-scroll,
.sstf-flow .compact-table-wrap,
.sstf-flow .fund-ledger-table{overflow-x:auto}
.sstf-flow table.account-report-table,
.sstf-flow div.account-report-table table{min-width:760px}

.sstf-flow .account-table{min-width:620px}
.sstf-flow .account-totals{min-width:0;max-width:640px;table-layout:fixed}
.sstf-flow .account-totals th{background:rgba(243,247,251,.96);color:var(--sstf-table-head-ink);font-weight:750}
.sstf-flow .account-totals tr:last-child>*{background:rgba(237,244,251,.98)}
.sstf-flow .fund-ledger-table table{min-width:620px}

/* common-ui.js may generate report cards, but the approved mobile language keeps the real table visible. */
.sstf-flow .sstf-report-cards{display:none!important}
@media(max-width:700px){
.sstf-flow .account-report-table>.sstf-table-scroll{display:block!important}
}

/* Preserve command 1 exactly: the S&S sales index remains a LIST, not a table. */
.sstf-flow .ss-sales-list-card .sstf-table-scroll{overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}

/* Mobile: real tables stay real tables; wide schemas scroll horizontally instead of becoming cards. */
@media(max-width:760px){
  :root{--sstf-table-cell-y:9px;--sstf-table-cell-x:9px}
  .sstf-flow :is(.product-table-scroll,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll){overflow-x:auto;overflow-y:visible}
  .sstf-flow #products-table{display:table;min-width:640px}
  .sstf-flow #products-table thead{display:table-header-group}.sstf-flow #products-table tbody{display:table-row-group}.sstf-flow #products-table tfoot{display:table-footer-group}
  .sstf-flow #products-table :is(.product-data-row,.product-actions-row){display:table-row}.sstf-flow #products-table td{display:table-cell}
  .sstf-flow #products-table tbody td:nth-child(n+4){display:table-cell}.sstf-flow #products-table tbody td:nth-child(7)::before{display:none}

  .sstf-flow .supplier-review-table{display:table;min-width:820px}.sstf-flow .supplier-review-table thead{display:table-header-group}.sstf-flow .supplier-review-table tbody{display:table-row-group}.sstf-flow .supplier-review-table tr{display:table-row}.sstf-flow .supplier-review-table td{display:table-cell}.sstf-flow .supplier-review-table td::before{display:none}
  .sstf-flow .pricing-table-wrap table{display:table;min-width:940px}.sstf-flow .pricing-table-wrap thead{display:table-header-group}.sstf-flow .pricing-table-wrap tbody{display:table-row-group}.sstf-flow .pricing-table-wrap tr{display:table-row}.sstf-flow .pricing-table-wrap td{display:table-cell}.sstf-flow .pricing-table-wrap td::before{display:none}

  .sstf-flow table.account-report-table,.sstf-flow div.account-report-table table{min-width:760px}
  
  .sstf-flow .inventory-stocktake-table{min-width:900px}
  .sstf-flow .fund-ledger-table table{min-width:620px}
}

/* rc20.8 stage 1 precedence bridge — proves the reference customer table before legacy cleanup. */
@layer sstf-design {
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* Recipient/review products generated by customer.js use the exact same table language. */
  
  
  
  
  

  @media(max-width:760px){
    
    
  }
}
.sstf-flow .ss-sales-list-card table,.sstf-flow .orders-compact-list table{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

/* Command 4 — warehouse storefront, product detail and centered action dialogs. */
.sstf-flow .inventory-products-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
  gap:var(--sstf-space-4)!important;
  width:100%!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.sstf-flow .inventory-products-list>.inventory-product-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  padding-inline-end:0!important;
  overflow:hidden!important;
  border:1px solid rgba(35,55,78,.10)!important;
  border-radius:var(--sstf-r-m)!important;
  background:#fff!important;
  box-shadow:var(--sstf-sh-card)!important;
  opacity:1!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.sstf-flow .inventory-products-list>.inventory-product-card:hover{
  transform:translateY(-2px)!important;
  background:#fff!important;
  border-color:rgba(35,55,78,.17)!important;
  box-shadow:var(--sstf-sh-card)!important;
}
.sstf-flow .inventory-products-list>.inventory-product-card.is-disabled{opacity:.68!important}
.sstf-flow .inventory-products-list>.inventory-product-card.is-incomplete{
  order:-1!important;
  opacity:1!important;
  border:2px solid #ee9829!important;
  box-shadow:var(--sstf-sh-card)!important;
}
.sstf-flow .inventory-product-card-link{position:absolute!important;inset:0!important;z-index:4!important;border-radius:var(--sstf-r-m)!important}
.sstf-flow .size-quantity-controls{display:grid;grid-template-columns:22px minmax(0,1fr) 22px;gap:2px;width:100%;align-items:center}
.sstf-flow .size-quantity-controls button{--control-padding:0;--control-height:30px;--control-font-size:15px;margin:0}
.sstf-flow .size-quantity-controls input{--field-padding:6px 2px;min-width:0;width:100%;text-align:center}
.sstf-flow #extra-size-picker{--control-height:48px;--control-padding:10px 18px;--control-font-size:16px;font-weight:900}
.sstf-flow #extra-size-picker .extra-size-icon{--control-content-color:#ef8f1f;font-size:var(--sstf-t-page);line-height:1;color:#ef8f1f;flex:none}
.sstf-flow .extra-size-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;direction:ltr}
.sstf-flow .extra-size-dialog{max-height:80dvh;overflow:auto}
.sstf-flow .inventory-quick-actions{position:absolute;z-index:5;inset-inline-end:8px;inset-block-start:8px;--control-height:32px;--control-padding:2px 10px}
.sstf-flow #inventory-quick-sheet [data-quick-options]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:var(--sstf-space-3);gap:var(--sstf-space-2)}
/* WIZ-V8 sizes unification: warehouse no longer overrides the shared .ss-modal-sizes grid.
   Removed .inventory-size-controls (which put the repeat(2) grid on the #sizes CONTAINER, so the
   .ss-modal-sizes child took one column = half width, right-shifted in RTL). Warehouse now uses the
   same central .ss-modal-sizes layout (rule ~6194) as B2B. */
.sstf-flow .inventory-product-card-link::after{display:none!important}
.sstf-flow .inventory-incomplete-badge{
  position:absolute;z-index:3;inset-block-start:10px;inset-inline-start:10px;display:inline-flex;align-items:center;min-height:25px;
  padding:var(--sstf-space-1) 9px;border-radius:var(--sstf-radius-pill);background:#ef8f1f;color:#fff;font-size:var(--sstf-t-small);font-weight:900;box-shadow:var(--sstf-sh-card)}
.sstf-flow .inventory-product-card-media{
  position:relative!important;z-index:1!important;display:grid!important;place-items:center!important;width:100%!important;height:auto!important;
  aspect-ratio:1/1!important;padding:var(--sstf-space-2)!important;border:0!important;border-radius:0!important;background:#f7f8fa!important;overflow:hidden!important
}
.sstf-flow .inventory-product-card-image{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;mix-blend-mode:multiply}
.sstf-flow .inventory-product-card-media .inventory-no-image{width:100%;height:100%;border-radius:0;background:#f1f3f6;color:#78899a}
.sstf-flow .inventory-product-card-content{position:relative;z-index:2;display:grid;gap:10px;flex:1;padding:var(--sstf-space-3) var(--sstf-space-3) 13px;pointer-events:none;background:#fff}
.sstf-flow .inventory-product-card-content h3{display:-webkit-box;margin:0;overflow:hidden;color:#182b3e;font-size:var(--sstf-t-body);line-height:1.42;font-weight:850;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.sstf-flow .inventory-store-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:auto}
.sstf-flow .inventory-store-prices span{display:grid;gap:2px;min-width:0;padding:7px var(--sstf-space-2);border-radius:var(--sstf-r-s);background:#f6f8fa}
.sstf-flow .inventory-store-prices small{color:#758596;font-size:var(--sstf-t-small);font-weight:700}
.sstf-flow .inventory-store-prices b{overflow:hidden;color:#163d69;font-size:var(--sstf-t-small);font-weight:900;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}

.sstf-flow .inventory-product-view{
  display:grid!important;grid-template-columns:1fr!important;gap:0!important;width:min(100%,920px)!important;max-width:920px!important;margin:0 auto!important;
  padding:0!important;border:1px solid rgba(35,55,78,.10)!important;border-radius:var(--sstf-r-l)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;overflow:hidden!important
}
.sstf-flow .inventory-product-view-media{
  width:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:16/10!important;padding:18px!important;border:0!important;border-radius:0!important;background:#f7f8fa!important
}
.sstf-flow .inventory-product-view-image{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;mix-blend-mode:multiply}
.sstf-flow .inventory-product-view-media .inventory-no-image{width:100%;height:100%;border-radius:var(--sstf-r-m)}
.sstf-flow .inventory-product-view-content{display:grid;gap:14px;padding:18px 20px 20px}
.sstf-flow .inventory-product-view-header{display:flex!important;align-items:flex-start;justify-content:space-between;gap:14px;padding:0!important}
.sstf-flow .inventory-product-view-header>div{display:grid;gap:var(--sstf-space-1);min-width:0}
.sstf-flow .inventory-product-view-header h1{margin:0!important;color:#172a3d!important;font-size:clamp(23px,3.3vw,34px)!important;line-height:1.22!important}
.sstf-flow .inventory-product-view-number{color:#7a8998!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
.sstf-flow .inventory-product-status{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:29px;padding:5px 10px;border-radius:var(--sstf-radius-pill);font-size:var(--sstf-t-small);font-weight:900}
.sstf-flow .inventory-product-status.is-ready{background:#e8f7ed;color:#17733b}.sstf-flow .inventory-product-status.needs-setup{background:#fff0dc;color:#a65300}.sstf-flow .inventory-product-status.is-disabled{background:#eef1f4;color:#667788}
.sstf-flow .inventory-product-view-meta{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
.sstf-flow .inventory-product-view-meta>div{display:grid!important;gap:3px!important;min-width:0;padding:10px!important;border:1px solid #e5e9ee!important;border-radius:var(--sstf-r-s)!important;background:#fafbfc!important}
.sstf-flow .inventory-product-view-meta strong{color:#1c354e!important;font-size:var(--sstf-t-small)!important}
.sstf-flow .inventory-product-view-sizes{display:grid!important;gap:9px!important;padding:var(--sstf-space-3)!important;border:1px solid #e5e9ee!important;border-radius:var(--sstf-r-m)!important;background:#fff!important}
.sstf-flow .inventory-product-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px}.sstf-flow .inventory-product-subhead h2{margin:0;font-size:var(--sstf-t-body)}.sstf-flow .inventory-product-subhead small{color:#748596;font-size:var(--sstf-t-small)}
.sstf-flow .inventory-product-view-action{display:flex!important;justify-content:stretch!important}
.sstf-flow .inventory-product-management{padding-top:2px;color:#6f8090;font-size:var(--sstf-t-small)}.sstf-flow .inventory-product-management summary{cursor:pointer;width:max-content;font-weight:750}.sstf-flow .inventory-product-management>div{display:flex;gap:7px;flex-wrap:wrap;padding-top:9px}.sstf-flow .inventory-product-management form{margin:0}.sstf-flow .inventory-product-management button{min-height:34px;padding:6px 10px;font-size:var(--sstf-t-small)}

 .sstf-flow:has(#inventory-product-config) dialog.product-wizard{
  padding:0!important;border:1px solid rgba(28,48,70,.12)!important;border-block-end:1px solid rgba(28,48,70,.12)!important;
  border-radius:var(--sstf-r-l)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;color:#172b3e!important
}
.sstf-flow:has(#inventory-product-config) dialog.product-wizard::backdrop{background:rgba(20,31,44,.48)!important;backdrop-filter:blur(2px)!important}
.sstf-flow:has(#inventory-product-config) dialog.product-wizard[open]{animation:sstf-inventory-sheet-in .22s ease-out both}
@keyframes sstf-inventory-sheet-in{from{transform:translateY(28px);opacity:.35}to{transform:translateY(0);opacity:1}}
.sstf-flow .inventory-sheet-handle{width:42px;height:4px;margin:9px auto 2px;border-radius:var(--sstf-radius-pill);background:#d7dde3}
.sstf-flow .inventory-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);padding:10px 18px var(--sstf-space-3);border-bottom:1px solid #edf0f3}
.sstf-flow .inventory-sheet-header>div{display:grid;gap:1px}.sstf-flow .inventory-sheet-header small{color:#7b8b9b;font-size:var(--sstf-t-small);font-weight:750}.sstf-flow .inventory-sheet-header h2{margin:0;font-size:var(--sstf-t-card)}
.sstf-flow .inventory-sheet-close{display:grid;place-items:center;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:1px solid #e1e6eb!important;border-radius:50%!important;background:#f7f8fa!important;color:#30465b!important;font-size:var(--sstf-t-page)!important;box-shadow:none!important}
.sstf-flow .inventory-import-source,.sstf-flow .inventory-import-catalog{padding:var(--sstf-space-4) 18px 20px;overflow-y:auto;max-height:calc(88dvh - 76px)}
.sstf-flow .inventory-import-source>p{margin:0 0 var(--sstf-space-3);color:#68798a;font-size:var(--sstf-t-small)}
.sstf-flow .inventory-source-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:11px;padding:var(--sstf-space-3);border:1.5px solid #b9cce0;border-radius:var(--sstf-r-m);background:#f8fbff;cursor:pointer}
.sstf-flow .inventory-source-card>input{position:absolute;opacity:0;pointer-events:none}.sstf-flow .inventory-source-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:var(--sstf-r-m);background:#174a87;color:#fff;font-size:var(--sstf-t-small);font-weight:950;letter-spacing:.04em}.sstf-flow .inventory-source-card>span:nth-of-type(2){display:grid;gap:3px}.sstf-flow .inventory-source-card small{color:#748596;font-size:var(--sstf-t-small)}.sstf-flow .inventory-source-card>b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#174a87;color:#fff}
.sstf-flow .inventory-source-next{width:100%;justify-content:center;margin-top:14px}
.sstf-flow .inventory-import-catalog form{display:grid;gap:10px}.sstf-flow .inventory-bulk-head{position:sticky!important;top:0!important;z-index:7!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0!important;padding:var(--sstf-space-2)!important;border:1px solid #e2e7ec!important;border-radius:var(--sstf-r-s)!important;background:rgba(255,255,255,.96)!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow .inventory-bulk-head>div{display:flex;align-items:center;gap:var(--sstf-space-2)}.sstf-flow .inventory-bulk-head [data-import-count]{color:#6f8090;font-size:var(--sstf-t-small);font-weight:800}.sstf-flow .inventory-bulk-head [data-import-submit]{min-height:36px;padding:7px var(--sstf-space-3);font-size:var(--sstf-t-small)}
.sstf-flow .inventory-import-filter input{width:100%;min-height:42px;margin:0}
.sstf-flow .inventory-import-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.sstf-flow .inventory-import-card{position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;border:1.5px solid #e2e7ec!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;cursor:pointer!important}
.sstf-flow .inventory-import-card.is-selected{border-color:#174a87!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow .inventory-import-card>input{position:absolute;opacity:0;pointer-events:none}.sstf-flow .inventory-import-check{position:absolute;z-index:2;inset-block-start:8px;inset-inline-start:8px;display:grid!important;place-items:center!important;width:24px;height:24px;border:1px solid #c9d3dd;border-radius:50%;background:#fff;color:transparent;font-size:var(--sstf-t-small);font-weight:900}
.sstf-flow .inventory-import-media{display:grid!important;place-items:center!important;width:100%!important;aspect-ratio:1/1!important;background:#f7f8fa!important;overflow:hidden!important}
.sstf-flow .inventory-import-copy{display:grid!important;gap:var(--sstf-space-1)!important;min-width:0!important;padding:10px!important}.sstf-flow .inventory-import-copy>strong{display:-webkit-box;overflow:hidden;color:#1b3045;font-size:var(--sstf-t-small);line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.sstf-flow .inventory-sheet-companion{position:fixed;z-index:100002;inset:50% auto auto 50%;display:grid;width:min(620px,calc(100vw - 24px));max-width:620px;margin:0!important;transform:translate(-50%,-50%);box-shadow:var(--sstf-sh-card)}
.sstf-flow .inventory-sheet-companion[hidden]{display:none!important}.sstf-flow .inventory-sheet-companion>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3)}.sstf-flow .inventory-sheet-companion>div:first-child>span{display:grid;gap:3px}.sstf-flow .inventory-link-trigger{width:100%;margin-top:var(--sstf-space-2)}
.sstf-flow:has(#inventory-product-config) .product-wizard .head{border-radius:var(--sstf-r-l) var(--sstf-r-l) 0 0!important}.sstf-flow:has(#inventory-product-config) .product-wizard .wizard-foot{padding-bottom:max(8px,env(safe-area-inset-bottom))!important}

@media(max-width:700px){
  .sstf-flow .inventory-products-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .sstf-flow .inventory-products-list>.inventory-product-card{border-radius:var(--sstf-r-m)!important}.sstf-flow .inventory-product-card-link{border-radius:var(--sstf-r-m)!important}
  .sstf-flow .inventory-product-card-content{gap:var(--sstf-space-2);padding:9px 9px 10px}.sstf-flow .inventory-product-card-content h3{font-size:var(--sstf-t-small);line-height:1.38}.sstf-flow .inventory-store-prices{gap:5px}.sstf-flow .inventory-store-prices span{padding:6px}.sstf-flow .inventory-store-prices small{font-size:var(--sstf-t-small)}.sstf-flow .inventory-store-prices b{font-size:var(--sstf-t-small)}
  .sstf-flow .inventory-incomplete-badge{inset-block-start:7px;inset-inline-start:7px;min-height:26px;padding:3px 7px;font-size:var(--sstf-t-small)}
  .sstf-flow .inventory-product-view{border-radius:var(--sstf-r-m)!important}.sstf-flow .inventory-product-view-media{aspect-ratio:1/1!important;padding:10px!important}.sstf-flow .inventory-product-view-content{gap:var(--sstf-space-3);padding:14px var(--sstf-space-3) var(--sstf-space-4)}.sstf-flow .inventory-product-view-header{gap:var(--sstf-space-2)}.sstf-flow .inventory-product-view-header h1{font-size:var(--sstf-t-page)!important}.sstf-flow .inventory-product-status{min-height:28px;padding:var(--sstf-space-1) var(--sstf-space-2);font-size:var(--sstf-t-small)}.sstf-flow .inventory-product-view-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.sstf-flow .inventory-product-view-meta>div{padding:var(--sstf-space-2)!important}
  .sstf-flow:has(#inventory-product-config) dialog.product-wizard{border-radius:var(--sstf-r-l)!important}
  .sstf-flow .inventory-sheet-header{padding:var(--sstf-space-2) var(--sstf-space-3) 10px}.sstf-flow .inventory-import-source,.sstf-flow .inventory-import-catalog{max-height:calc(92dvh - 68px);padding:12px 10px max(16px,env(safe-area-inset-bottom))}
  .sstf-flow:has(#inventory-product-config) .product-wizard .head{border-radius:var(--sstf-r-l) var(--sstf-r-l) 0 0!important}
}

/* rc20.9 — final unlayered runtime bridge.
   This block intentionally comes last: legacy unlayered rules used to override
   the command 1–5 design layers in the installed application. */
:root{--sstf-runtime-line:#dfe5eb;--sstf-runtime-soft:#f7f9fb;--sstf-runtime-ink:#172b3e;--sstf-runtime-muted:var(--sstf-text-muted,#5f6d7c);--sstf-runtime-blue:var(--sstf-brand-primary,#174a87)}

/* Home/dashboard summary cards only. */

:where(.sstf-flow,.sstf-admin) .task-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:176px!important;padding:20px 14px!important;border:1px solid rgba(31,51,72,.08)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-runtime-ink)!important;text-align:center!important;text-decoration:none!important}
:where(.sstf-flow,.sstf-admin) .task-card>:where(.nav-icon,.small-icon),:where(.sstf-flow,.sstf-admin) .task-card>span>:where(.nav-icon,.small-icon){order:0;width:48px!important;height:48px!important;padding:11px!important;border-radius:var(--sstf-r-m)!important;background:#eef4fa!important;color:var(--sstf-runtime-blue)!important}
:where(.sstf-flow,.sstf-admin) .task-card>span{order:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;color:var(--sstf-runtime-muted)!important;font-size:var(--sstf-t-small)!important;font-weight:750!important;text-align:center!important}
:where(.sstf-flow,.sstf-admin) .task-card>strong{order:2!important;margin:0!important;color:#111827!important;font-size:var(--sstf-t-page)!important;line-height:1.1!important;font-weight:950!important}
:where(.sstf-flow,.sstf-admin) .task-card>small{order:3!important;color:var(--sstf-runtime-muted)!important;font-size:var(--sstf-t-small)!important;text-align:center!important}
:where(.sstf-flow,.sstf-admin) .sstf-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important}
:where(.sstf-flow,.sstf-admin) .sstf-metrics>article{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-height:185px!important;padding:20px 14px!important;border:1px solid rgba(31,51,72,.08)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;text-align:center!important}
:where(.sstf-flow,.sstf-admin) .sstf-metrics>article::before{content:'';display:block;width:48px;height:48px;border-radius:50%;background:radial-gradient(circle at 38% 32%,#fff 0 7%,#74c8ff 25%,#458ddd 60%,#6759c8 100%);box-shadow:var(--sstf-sh-card)}
:where(.sstf-flow,.sstf-admin) .sstf-metrics>article>span{color:var(--sstf-runtime-muted)!important;font-size:var(--sstf-t-small)!important}
:where(.sstf-flow,.sstf-admin) .sstf-metrics>article>strong{margin:0!important;color:#111827!important;font-size:var(--sstf-t-page)!important;line-height:1.1!important}
:where(.sstf-flow,.sstf-admin) .sstf-metrics>article>small{color:var(--sstf-runtime-muted)!important;font-size:var(--sstf-t-small)!important;text-align:center!important}
.accounting-ui .finance-home-card{overflow:hidden!important;border:1px solid rgba(31,51,72,.08)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}

/* True data tables: one container, one header, cell grid; never row cards. */
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table){max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;border:1px solid var(--sstf-runtime-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table,
:where(.sstf-flow,.sstf-admin) table.account-report-table{display:table!important;width:100%!important;min-width:680px!important;margin:0!important;border:0!important;border-collapse:separate!important;border-spacing:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;table-layout:auto!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table>thead,
:where(.sstf-flow,.sstf-admin) table.account-report-table>thead{display:table-header-group!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table>tbody,
:where(.sstf-flow,.sstf-admin) table.account-report-table>tbody{display:table-row-group!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table tr,
:where(.sstf-flow,.sstf-admin) table.account-report-table tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table th,
:where(.sstf-flow,.sstf-admin) table.account-report-table th{display:table-cell!important;height:46px!important;padding:10px 11px!important;border:0!important;border-block-end:1px solid #cad6e2!important;border-inline-end:1px solid var(--sstf-runtime-line)!important;background:#edf4fa!important;color:#173d67!important;font-size:var(--sstf-t-small)!important;font-weight:900!important;text-align:start!important;vertical-align:middle!important;white-space:nowrap!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table td,
:where(.sstf-flow,.sstf-admin) table.account-report-table td{display:table-cell!important;min-width:0!important;height:54px!important;padding:9px 11px!important;border:0!important;border-block-end:1px solid #e7ecf1!important;border-inline-end:1px solid #e7ecf1!important;background:#fff!important;color:#263d54!important;font-size:var(--sstf-t-small)!important;text-align:start!important;vertical-align:middle!important;white-space:normal!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table tr>*:last-child,
:where(.sstf-flow,.sstf-admin) table.account-report-table tr>*:last-child{border-inline-end:0!important}
:where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table tbody tr:last-child>td,
:where(.sstf-flow,.sstf-admin) table.account-report-table tbody tr:last-child>td{border-block-end:0!important}
:where(.sstf-flow,.sstf-admin) .orders-compact-list>.order-line{width:100%!important;margin:0!important;padding:11px var(--sstf-space-3)!important;border:0!important;border-block-end:1px solid #e7ecf1!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:where(.sstf-flow,.sstf-admin) .orders-compact-list>.order-line:last-child{border-block-end:0!important}
.sstf-flow .ss-sales-list-card .recipient-products-table-wrap{overflow:visible!important;border:1px solid var(--sstf-runtime-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
.sstf-flow .ss-sales-list-card .recipient-products-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
.sstf-flow .ss-sales-list-card .recipient-products-table :where(thead){display:none!important}.sstf-flow .ss-sales-list-card .recipient-products-table tbody{display:block!important}.sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:var(--sstf-space-1) 10px!important;align-items:center!important;width:100%!important;min-height:76px!important;margin:0!important;padding:10px var(--sstf-space-3)!important;border:0!important;border-block-end:1px solid #e7ecf1!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row:last-child{border-block-end:0!important}.sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row>td{display:block!important;width:auto!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important}

/* Suitable standalone data tables which are not list-based screens. */
:where(.sstf-flow,.sstf-admin,.sstf-customer) :where(.table,.account-fold:has(>table.account-table)){max-width:100%!important;overflow-x:auto!important;border:1px solid var(--sstf-runtime-line)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
:where(.sstf-flow,.sstf-admin,.sstf-customer) :where(.table,.account-fold:has(>table.account-table))>table{display:table!important;width:100%!important;min-width:680px!important;margin:0!important;border:0!important;border-collapse:separate!important;border-spacing:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
:where(.sstf-flow,.sstf-admin,.sstf-customer) :where(.table,.account-fold:has(>table.account-table))>table tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:where(.sstf-flow,.sstf-admin,.sstf-customer) :where(.table,.account-fold:has(>table.account-table))>table th{display:table-cell!important;padding:10px 11px!important;border:0!important;border-block-end:1px solid #cad6e2!important;border-inline-end:1px solid var(--sstf-runtime-line)!important;background:#edf4fa!important;color:#173d67!important;font-size:var(--sstf-t-small)!important;font-weight:900!important;text-align:start!important;white-space:nowrap!important}
:where(.sstf-flow,.sstf-admin,.sstf-customer) :where(.table,.account-fold:has(>table.account-table))>table td{display:table-cell!important;padding:9px 11px!important;border:0!important;border-block-end:1px solid #e7ecf1!important;border-inline-end:1px solid #e7ecf1!important;background:#fff!important;color:#263d54!important;font-size:var(--sstf-t-small)!important;text-align:start!important;vertical-align:middle!important}
:where(.sstf-flow,.sstf-admin,.sstf-customer) :where(.table,.account-fold:has(>table.account-table))>table tr>*:last-child{border-inline-end:0!important}
.sstf-flow .inventory-products-list,.sstf-flow .stocktake-product-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(185px,1fr))!important;gap:var(--sstf-space-3)!important;width:100%!important}
.sstf-flow .inventory-products-list>.inventory-product-card,.sstf-flow .warehouse-order-product-card,.sstf-flow .stocktake-product-card{min-width:0!important;overflow:hidden!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
.sstf-flow:has(#inventory-product-config) dialog.product-wizard{z-index:100001!important}

@media(max-width:700px){
:where(.sstf-flow,.sstf-admin) .sstf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  :where(.sstf-flow,.sstf-admin) .task-card,:where(.sstf-flow,.sstf-admin) .sstf-metrics>article{min-height:160px!important;padding:var(--sstf-space-4) 10px!important;border-radius:var(--sstf-r-m)!important}
.sstf-flow .inventory-products-list,.sstf-flow .stocktake-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  :where(.sstf-flow,.sstf-admin) :where(.product-table-fold,.supplier-table-wrap,.supplier-review-wrap,.pricing-table-wrap,.compact-table-wrap,.fund-ledger-table,.sstf-table-scroll,.account-report-table)>table,:where(.sstf-flow,.sstf-admin) table.account-report-table{min-width:680px!important}
}

/* rc20.12 authoritative component layer.
   Important declarations in a named layer outrank unlayered important rules.
   Keeping this in the first declared layer makes the installed cascade
   deterministic while preserving routes, actions, IDs and JavaScript hooks. */
@layer sstf-components {
  :where(.sstf-flow,.sstf-admin-orders){
    --sstf-shell-bg:#fff;--sstf-shell-soft:#f6f8fb;--sstf-shell-line:#dfe6ed;
    --sstf-shell-ink:#172a3d;--sstf-shell-muted:var(--sstf-text-muted,#5f6d7c);--sstf-shell-primary:var(--sstf-brand-primary,#174a87);
    --sstf-shell-active:#edf4fb;--sstf-shell-shadow:0 8px 26px rgba(22,42,64,.07);
    font-family:var(--ui-font,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif)!important
  }

  /* Visibility and positioning are explicit: desktop rails never enter the
     mobile document flow, and drawers are always viewport overlays. */
  .sstf-flow :where(.app-sidebar,.store-sidebar){display:none!important}
  .sstf-flow .app-drawer{
    position:fixed!important;z-index:100100!important;inset-block:0!important;inset-inline-start:0!important;inset-inline-end:auto!important;
    display:none!important;width:min(78vw,390px)!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;
    padding:calc(18px + env(safe-area-inset-top,0px)) 16px calc(18px + env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;border:0!important;border-inline-end:1px solid var(--sstf-shell-line)!important;border-radius:0 var(--sstf-r-l) var(--sstf-r-l) 0!important;
    background:#fff!important;color:var(--sstf-shell-ink)!important;box-shadow:var(--sstf-sh-card)!important;
    font-family:inherit!important
  }
  [dir=rtl] .sstf-flow .app-drawer,.sstf-flow:dir(rtl) .app-drawer{border-radius:var(--sstf-r-l) 0 0 var(--sstf-r-l)!important}
  .sstf-flow .app-drawer[open]{display:block!important}
  .sstf-flow .app-drawer::backdrop{background:rgba(32,55,84,.43)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer,.chat-overlay-threads){
    box-sizing:border-box!important;background:#fff!important;color:var(--sstf-shell-ink)!important;
    border-color:var(--sstf-shell-line)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;font-family:inherit!important
  }
  .sstf-flow :where(.app-sidebar,.store-sidebar){box-shadow:var(--sstf-sh-card)!important}
  .sstf-flow :where(.app-sidebar,.app-drawer) nav{display:grid!important;gap:10px!important;margin:0!important;padding:var(--sstf-space-2) 0!important;border:0!important;background:transparent!important}
  .sstf-flow :where(.app-sidebar,.app-drawer) :where(.nav-group,.drawer-group){display:grid!important;gap:10px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  .sstf-flow .store-sidebar{align-content:start!important;gap:10px!important;padding:15px var(--sstf-space-3)!important}
  .sstf-flow .store-sidebar>a,
  .sstf-flow :where(.app-sidebar,.app-drawer) nav :where(a,button),
  .sstf-flow :where(.app-sidebar,.app-drawer) .nav-dropdown>summary,
  .sstf-flow .chat-overlay-thread{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-3)!important;min-height:58px!important;
    margin:0!important;padding:9px var(--sstf-space-3)!important;border:1px solid rgba(30,58,88,.07)!important;border-radius:var(--sstf-r-m)!important;
    background:#fff!important;color:#172a3d!important;box-shadow:var(--sstf-sh-card)!important;font-family:inherit!important;font-size:var(--sstf-t-body)!important;
    font-weight:800!important;line-height:1.45!important;text-align:start!important;text-decoration:none!important
  }
  .sstf-flow :where(.app-sidebar,.app-drawer) .nav-dropdown>summary{list-style:none!important}
  .sstf-flow :where(.app-sidebar,.app-drawer) .nav-dropdown>summary::-webkit-details-marker{display:none!important}
  .sstf-flow :where(.app-sidebar,.app-drawer) .nav-dropdown>summary i{margin-inline-start:auto!important;color:#8794a1!important;font-style:normal!important}
  .sstf-flow :where(.app-sidebar,.app-drawer) .nav-dropdown-body{display:grid!important;gap:10px!important;padding:0!important}
  .sstf-flow :where(.app-sidebar,.app-drawer) :where(.nav-group,.drawer-group)>small{display:none!important}
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(a,button):not(.nav-collapse)::after{content:'‹';margin-inline-start:auto!important;color:#708091!important;font-size:var(--sstf-t-page)!important;font-weight:400!important;line-height:1!important}
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(.nav-icon,.small-icon){flex:0 0 38px!important;width:38px!important;height:38px!important;padding:7px!important;border-radius:50%!important;background:#f0f5fb!important;object-fit:contain!important;color:var(--sstf-shell-primary)!important}
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) a[aria-current],.sstf-flow .chat-overlay-thread[aria-current=true]{background:#edf5fd!important;color:var(--sstf-shell-primary)!important;border-color:#d7e5f2!important;font-weight:900!important}
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :where(a,button,summary):hover{background:#f5f9fd!important}
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) a[href*="logout"] :where(.nav-icon,.small-icon){background:#fff0f2!important;color:#d92d46!important}
  .sstf-flow .sidebar-identity{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:center!important;gap:13px!important;margin:2px 0 13px!important;padding:var(--sstf-space-2) 7px 14px!important;border:0!important;text-align:center!important}
  .sstf-flow .sidebar-logo{grid-column:1!important;grid-row:1!important;width:76px!important;height:76px!important;border-radius:50%!important;object-fit:contain!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-flow .sidebar-brand-copy{grid-column:2!important;display:grid!important;justify-items:center!important;gap:3px!important;min-width:0!important}
  .sstf-flow .sidebar-brand-copy>strong{color:#111827!important;font-size:var(--sstf-t-card)!important;font-weight:950!important}.sstf-flow .sidebar-brand-copy>small{color:#46586a!important;font-size:var(--sstf-t-small)!important}.sstf-flow .sidebar-brand-copy>span{margin-top:3px!important;padding:3px 11px!important;border-radius:var(--sstf-radius-pill)!important;background:#eef5fd!important;color:#2460a0!important;font-size:var(--sstf-t-small)!important;font-weight:850!important}
  .sstf-flow .drawer-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important;padding:var(--sstf-space-1) 2px var(--sstf-space-2)!important;border:0!important}
  .sstf-flow .drawer-heading strong{color:#111827!important;font-size:var(--sstf-t-page)!important;font-weight:950!important}
  /* Specificity locks replace the older accounting lilac/flat sidebar rules. */
  body.sstf-flow.accounting-ui.accounting-ui #app-more.app-drawer{background:#fff!important;border-color:var(--sstf-shell-line)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  body.sstf-flow.accounting-ui.accounting-ui #app-more.app-drawer nav :where(a,button),body.sstf-flow.accounting-ui.accounting-ui .app-sidebar.app-sidebar nav :where(a,button){min-height:58px!important;padding:9px var(--sstf-space-3)!important;border:1px solid rgba(30,58,88,.07)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#172a3d!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow.accounting-ui.accounting-ui #app-more.app-drawer nav a[aria-current],body.sstf-flow.accounting-ui.accounting-ui .app-sidebar.app-sidebar nav a[aria-current]{border-color:#d7e5f2!important;background:#edf5fd!important;color:#174a87!important}

  @media(min-width:960px){
    .sstf-flow :where(.app-sidebar,.store-sidebar){
      position:fixed!important;z-index:55!important;inset-block:0!important;inset-inline-start:0!important;
      display:grid!important;align-content:start!important;width:var(--ui-sidebar,232px)!important;overflow-y:auto!important;
      border:0!important;border-inline-end:1px solid var(--sstf-shell-line)!important;border-radius:0!important;background:#fff!important
    }
    .sstf-flow .app-sidebar{padding:15px var(--sstf-space-3)!important}
  }
  @media(max-width:959px){
    .sstf-flow :where(.app-sidebar,.store-sidebar){display:none!important;position:fixed!important}
  }
.sstf-flow .ss-sales-list-card .recipient-products-table-wrap{
    display:grid!important;gap:var(--sstf-space-3)!important;width:100%!important;max-width:none!important;margin:14px 0!important;padding:0!important;overflow:visible!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
  }
.sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row{
    box-sizing:border-box!important;width:100%!important;min-height:112px!important;margin:0!important;padding:15px var(--sstf-space-4)!important;
    border:1px solid rgba(38,70,104,.08)!important;border-radius:var(--sstf-r-l)!important;background:#fff!important;
    color:var(--sstf-shell-ink)!important;box-shadow:var(--sstf-sh-card)!important;text-decoration:none!important
  }
.sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row:last-child{border-block-end:1px solid rgba(38,70,104,.08)!important}
  .sstf-flow .order-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
  .sstf-flow .order-line-main{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:5px 10px!important;align-items:center!important;min-width:0!important}
  .sstf-flow .order-line-main>strong{grid-column:1!important;grid-row:1!important;color:#1760a8!important;font-size:var(--sstf-t-body)!important;font-weight:950!important}
  .sstf-flow .order-line-main>span:not(.state-badge){grid-column:2!important;grid-row:1!important;overflow:hidden!important;color:#111827!important;font-size:var(--sstf-t-card)!important;font-weight:900!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  .sstf-flow .order-line-main>small{grid-column:1/3!important;display:flex!important;align-items:center!important;gap:6px!important;color:#96a1ad!important;font-size:var(--sstf-t-small)!important}
  .sstf-flow .order-line-main>small::before{content:'▣';color:#8091a2!important;font-size:var(--sstf-t-small)!important}
  .sstf-flow .order-line-actions{display:flex!important;align-items:center!important;gap:6px!important}
.sstf-flow .warehouse-order-row>em{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-width:104px!important;min-height:46px!important;
    margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border:1px solid #d8e6f3!important;border-radius:var(--sstf-radius-pill)!important;
    background:#eff6fd!important;color:#175591!important;box-shadow:var(--sstf-sh-card)!important;font-family:inherit!important;
    font-size:var(--sstf-t-small)!important;font-style:normal!important;font-weight:900!important;line-height:1.4!important
  }
.sstf-flow .warehouse-order-row>em::after{content:'›';font-size:var(--sstf-t-page)!important;font-weight:500!important;line-height:1!important}
  .sstf-flow #orders .compact-actions{position:relative!important;margin:0!important;padding:0!important;border:0!important}
  .sstf-flow #orders .compact-actions>summary{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0!important;list-style:none!important;border:1px solid #dce5ed!important;border-radius:50%!important;background:#fff!important;color:#173d67!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
  .sstf-flow #orders .compact-actions>summary::after,.sstf-flow #orders .compact-actions>summary::-webkit-details-marker{display:none!important;content:none!important}
  .sstf-flow #orders .compact-actions[open]>div{inset-inline-start:auto!important;inset-inline-end:0!important}
  .sstf-admin-orders .sstf-admin-order-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
  .sstf-admin-orders .sstf-admin-order-main{display:grid!important;gap:5px!important}.sstf-admin-orders .sstf-admin-order-main>strong{color:#1760a8!important;font-size:var(--sstf-t-body)!important}.sstf-admin-orders .sstf-admin-order-main>span{color:#111827!important;font-size:var(--sstf-t-card)!important;font-weight:900!important}.sstf-admin-orders .sstf-admin-order-main>small{color:var(--sstf-shell-muted)!important;font-size:var(--sstf-t-small)!important}
  .sstf-flow .warehouse-order-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto auto!important;align-items:center!important;gap:5px 10px!important}
  .sstf-flow .warehouse-order-row>strong{color:var(--sstf-shell-primary)!important;font-size:var(--sstf-t-small)!important}.sstf-flow .warehouse-order-customer{display:grid!important;gap:3px!important;min-width:0!important}
:where(.sstf-flow,.sstf-admin-orders,.sstf-customer) :where(.supplier-directory-list,.supplier-quotes-list,.merchant-gateway-list,.ops-record-list)>.ops-card,:where(.sstf-flow,.sstf-admin-orders,.sstf-customer) :where(.supplier-directory-row,.supplier-quote-row,.merchant-gateway-card,.stocktake-history-row){box-sizing:border-box!important;width:100%!important;margin:0!important;padding:14px var(--sstf-space-4)!important;border:1px solid rgba(38,70,104,.08)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-shell-ink)!important}
.sstf-admin-orders .sstf-admin-order-search{display:flex!important;align-items:end!important;gap:10px!important;margin:var(--sstf-space-3) 0 18px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.sstf-admin-orders .sstf-admin-order-search :where(input,button){min-height:50px!important;border:1px solid #dce6ef!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;font-family:inherit!important}

  /* S&S keeps its existing table and click behavior; only the list index gets
     a row presentation. */
  .sstf-flow .ss-sales-list-card .recipient-products-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
  .sstf-flow .ss-sales-list-card .recipient-products-table thead{display:none!important}.sstf-flow .ss-sales-list-card .recipient-products-table tbody{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto 70px!important;grid-template-rows:auto auto!important;align-items:center!important;gap:3px 10px!important;cursor:pointer!important}
  .sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row>td{display:block!important;width:auto!important;height:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important}
  .sstf-flow .ss-sales-list-card .ss-sale-row::after{min-inline-size:68px!important;min-height:34px!important;padding:6px 9px!important;background:#f1f6fb!important;color:var(--sstf-shell-primary)!important;border-color:#d7e3ee!important}

  /* The single shared product wizard used by customer and warehouse. */
  .sstf-flow dialog.product-wizard{background:#fff!important;color:var(--sstf-shell-ink)!important;border:1px solid var(--sstf-shell-line)!important;box-shadow:var(--sstf-sh-card)!important;font-family:inherit!important}
  .sstf-flow .product-wizard :where(.head,.wizard-body,.wizard-foot,[data-question],.product-summary){background:#fff!important}
  .sstf-flow .product-wizard .head{border-block-end:1px solid var(--sstf-shell-line)!important;box-shadow:none!important}.sstf-flow .product-wizard .wizard-foot{border-block-start:1px solid var(--sstf-shell-line)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-flow .product-wizard .title{color:var(--sstf-shell-ink)!important;font-family:inherit!important;font-size:var(--sstf-t-card)!important;font-weight:900!important}
  .sstf-flow .product-wizard :where(label,input,select,textarea,button){font-family:inherit!important}
  .sstf-flow .product-wizard :where(input,select,textarea){background:#fff!important;color:var(--sstf-shell-ink)!important;border:1px solid #d9e2ea!important;border-radius:var(--sstf-r-s)!important;box-shadow:none!important}
  .sstf-flow .product-wizard :where(input,select,textarea):focus{border-color:#7fa4c9!important;outline:0!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-flow .product-wizard .choice{background:#fff!important;color:var(--sstf-shell-ink)!important;border:1px solid #dfe6ed!important;box-shadow:var(--sstf-sh-card)!important}.sstf-flow .product-wizard .choice.on{background:#f2f7fc!important;border-color:#8caccb!important}
  .sstf-flow .product-wizard .has-error{padding:0!important;border:0!important;background:#fff!important}.sstf-flow .product-wizard .has-error :where(input,select,textarea){border-color:#cf4a43!important}

  @media(max-width:700px){
.sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row{min-height:112px!important;padding:14px!important}
    .sstf-flow .warehouse-order-row{grid-template-columns:auto minmax(0,1fr) max-content!important;grid-template-rows:auto auto auto!important}.sstf-flow .warehouse-order-row>strong{grid-row:1/4!important}.sstf-flow .warehouse-order-row>em{grid-column:3!important;grid-row:1/4!important}
    .sstf-flow .ss-sales-list-card .recipient-products-table .ss-sale-row{grid-template-columns:auto minmax(0,1fr) 66px!important;grid-template-rows:auto auto auto auto auto!important;min-height:94px!important}
    .sstf-flow .ss-sales-list-card .ss-sale-row::after{min-inline-size:62px!important}
    
  }
  @media print{.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer){display:none!important}}
}

/* rc20.15 authoritative placement — intentionally last inside the highest
   priority layer so historical important declarations cannot win. */
@layer sstf-hotfix {
  
  body.sstf-customer main{width:100%!important;min-width:0!important;margin-inline:auto!important;padding-block-start:calc(var(--customer-header-height) + 8px)!important;overflow:visible!important}
  body.sstf-customer .app-header{position:fixed!important;z-index:1000!important;inset-block-start:0!important;inset-inline:0!important;width:100%!important;min-height:64px!important;margin:0!important;padding:7px clamp(8px,2vw,20px)!important;flex-wrap:nowrap!important;overflow:hidden!important;background:#fff!important;border-block-end:1px solid rgba(35,68,103,.1)!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-customer .app-header .brand-lockup{min-width:0!important;max-width:min(52vw,360px)!important;margin-inline:auto!important}.sstf-customer .app-header .brand-lockup>div{min-width:0!important}.sstf-customer .app-header :where(.company-name,.company-name-ar){display:block!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.sstf-customer .app-header .header-context{max-width:31%!important}.sstf-customer .app-header .header-customer-logout{margin:0!important}.sstf-customer .app-header .header-customer-logout button{width:auto!important;min-width:0!important;min-height:38px!important;margin:0!important;padding:6px 9px!important;border:1px solid #dbe4ec!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;color:#173d67!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important;white-space:nowrap!important}
  body.sstf-customer .page-heading{margin-block:0 var(--sstf-space-2)!important;padding-block:0!important}.sstf-customer .page-heading h1{margin:0!important;font-size:clamp(19px,4vw,28px)!important}
  body.sstf-customer #workspace,body.sstf-customer #order-details{display:grid!important;gap:10px!important;width:100%!important}

  body.sstf-customer .customer-order-static{width:100%!important;margin:0 0 10px!important;padding:10px!important;border:1px solid rgba(44,83,122,.1)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;overflow:hidden!important}
  body.sstf-customer .customer-order-static .customer-start-content{padding:0!important}
  
  
  .sstf-customer .customer-order-static .order-meta-date strong{direction:ltr!important;font-size:var(--sstf-t-small)!important}.sstf-customer .order-country-flag{flex:0 0 auto!important;font-size:var(--sstf-t-page)!important;line-height:1!important;overflow:visible!important}

  body.sstf-customer.store-dashboard .store-bottom-nav{position:fixed!important;z-index:980!important;inset-inline:0!important;inset-block-end:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;min-height:70px!important;margin:0!important;padding:5px max(7px,env(safe-area-inset-left)) max(5px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-right))!important;border:0!important;border-block-start:1px solid #dce5ed!important;border-radius:0!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}.sstf-customer.store-dashboard main{padding-block-end:calc(var(--ui-nav-offset,70px) + 16px)!important}
  body.sstf-customer.plain-order-page #order-actions:not([hidden]){position:fixed!important;z-index:970!important;inset-inline:0!important;inset-block-end:0!important;width:100%!important;margin:0!important;padding:8px max(10px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right))!important;border-block-start:1px solid #dce5ed!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}.sstf-customer.plain-order-page:has(#order-actions:not([hidden])) main{padding-block-end:88px!important}

  body.sstf-customer #app-more.app-drawer .drawer-heading>[data-close-sheet]{position:static!important;display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #dce5ed!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#174a87!important;box-shadow:none!important;font-size:0!important}.sstf-customer #app-more.app-drawer .drawer-heading>[data-close-sheet]::before,.sstf-customer #app-more.app-drawer .drawer-heading>[data-close-sheet]::after{display:none!important;content:none!important}.sstf-customer #app-more.app-drawer .drawer-heading>[data-close-sheet] svg{display:block!important;width:25px!important;height:25px!important;max-width:none!important;color:inherit!important;stroke:currentColor!important}

  body.sstf-customer dialog.product-wizard[open]{z-index:10020!important;padding:0!important;border:1px solid #d8e2eb!important;border-radius:var(--sstf-r-l)!important;background:#fff!important;color:#172a3d!important;box-shadow:var(--sstf-sh-card)!important}.sstf-customer dialog.product-wizard::backdrop{background:rgba(25,45,66,.38)!important;backdrop-filter:none!important}
  body.sstf-customer .product-wizard .head{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:62px!important;padding:9px 13px!important;border:0!important;border-block-end:1px solid #e1e8ef!important;background:linear-gradient(180deg,#fff,#f7faff)!important}.sstf-customer .product-wizard .wizard-close{display:grid!important;place-items:center!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border:1px solid #d8e2eb!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#174a87!important;box-shadow:none!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
  body.sstf-customer .product-wizard .wizard-body{padding:var(--sstf-space-4)!important;background:#fff!important;color:#172a3d!important}.sstf-customer .product-wizard [hidden]{display:none!important}.sstf-customer .product-wizard .title{display:block!important;margin:0 0 13px!important;color:#172a3d!important;font-size:var(--sstf-t-card)!important;font-weight:950!important;line-height:1.45!important}
  body.sstf-customer .product-wizard :where(input:not([type=checkbox]):not([type=file]),select,textarea){display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:var(--field-padding,9px 11px)!important;border:1px solid #d5e0e9!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;color:#172a3d!important;-webkit-text-fill-color:#172a3d!important;font:inherit!important;font-size:var(--sstf-t-body)!important}.sstf-customer .product-wizard :where(input,textarea)::placeholder{color:#929daa!important;opacity:1!important}
  body.sstf-customer .product-wizard .choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;width:100%!important}.sstf-customer .product-wizard .choice{display:grid!important;grid-template-rows:46px auto!important;place-items:center!important;gap:6px!important;min-width:0!important;min-height:98px!important;margin:0!important;padding:9px 5px!important;border:1px solid #dae4ed!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#172a3d!important;box-shadow:var(--sstf-sh-card)!important}.sstf-customer .product-wizard .choice .ic,.sstf-customer .product-wizard .choice .ic img{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;object-fit:contain!important;visibility:visible!important;opacity:1!important}.sstf-customer .product-wizard .choice b{display:block!important;color:inherit!important;font-size:var(--sstf-t-small)!important}
  body.sstf-customer .product-wizard .upload-box{display:flex!important;flex-direction:column!important;align-items:center!important;justify-items:center!important;gap:9px!important;width:100%!important;min-height:220px!important;margin:0!important;padding:13px!important;border:1px dashed #b9cddd!important;border-radius:var(--sstf-r-m)!important;background:#f8fbfe!important;color:#174a87!important;overflow:hidden!important}.sstf-customer .product-wizard .upload-placeholder{display:block!important;width:46px!important;height:46px!important}
  body.sstf-customer .product-wizard .brand-picker{width:100%!important;border:1px solid #d8e2eb!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;overflow:hidden!important}.sstf-customer .product-wizard .brand-picker>summary{display:flex!important;align-items:center!important;min-height:50px!important;padding:10px 13px!important;color:#173d67!important;font-size:var(--sstf-t-small)!important;font-weight:900!important}.sstf-customer .product-wizard .brand-results{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:var(--sstf-space-2) 0!important}.sstf-customer .product-wizard .brand-results button,.sstf-customer .product-wizard .batch-apply{min-height:38px!important;margin:0!important;padding:6px var(--sstf-space-2)!important;border:1px solid #d9e3ec!important;border-radius:var(--sstf-r-s)!important;background:#f7fafc!important;color:#24435f!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important}
  .sstf-customer .product-wizard .size-cell{min-width:0!important;margin:0!important;padding:7px!important;border:1px solid #dbe4ec!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;color:#172a3d!important}.sstf-customer .product-wizard .inventory-wizard-prices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.sstf-customer .product-wizard .product-summary{display:grid!important;justify-items:center!important;gap:9px!important;width:100%!important;margin-top:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid #dce5ed!important;border-radius:var(--sstf-r-m)!important;background:#f9fbfd!important;color:#172a3d!important;text-align:center!important}
  body.sstf-customer .product-wizard .wizard-foot{z-index:2!important;gap:10px!important;min-height:66px!important;padding:9px 14px calc(9px + env(safe-area-inset-bottom))!important;border-block-start:1px solid #dce5ed!important;background:#fff!important}.sstf-customer .product-wizard .wizard-foot>button:not([hidden]){display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:46px!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important;font-weight:900!important}.sstf-customer .product-wizard .wizard-foot>:where(#next-step,#finish-product){background:#174f88!important;color:#fff!important;-webkit-text-fill-color:#fff!important}.sstf-customer .product-wizard .wizard-foot>#previous-step{background:#fff!important;color:#174a87!important;-webkit-text-fill-color:#174a87!important;border:1px solid #d3e0eb!important}

  /* Regular-customer products are store cards. The semantic table stays in
     the DOM and export data stays tabular; only the on-screen presentation changes. */
  body.sstf-customer.plain-order-page .product-table-sheet{position:relative!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  body.sstf-customer.plain-order-page .product-table-title{margin:0 0 9px!important}
  body.sstf-customer.plain-order-page .product-table-content,body.sstf-customer.plain-order-page .product-table-scroll{width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  body.sstf-customer.plain-order-page #products-table{display:grid!important;width:100%!important;min-width:0!important;margin:0!important;border:0!important;border-collapse:separate!important;white-space:normal!important}
  body.sstf-customer.plain-order-page #products-table>thead{display:none!important}
  body.sstf-customer.plain-order-page #products-table>tbody,.sstf-flow .pricing-products-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:var(--sstf-space-3)!important;width:100%!important}
  body.sstf-customer.plain-order-page #products-table .product-data-row,.sstf-flow .pricing-product-card{position:relative!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:0!important;min-width:0!important;margin:0!important;padding:0!important;border:1px solid rgba(40,75,111,.10)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;overflow:hidden!important;cursor:pointer!important}
  
  body.sstf-customer.plain-order-page #products-table .product-data-row>td{display:block!important;width:100%!important;min-width:0!important;margin:0!important;border:0!important;background:transparent!important}
  body.sstf-customer.plain-order-page #products-table .product-image-cell,.sstf-flow .pricing-product-card .product-image-cell{position:relative!important;padding:0!important;background:#f6f8fa!important}.sstf-customer.plain-order-page #products-table .product-thumb,.sstf-flow .pricing-product-card .product-thumb{display:block!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;border:0!important;border-radius:0!important;background:#f6f8fa!important;object-fit:contain!important}
  body.sstf-customer.plain-order-page .product-card-delete{position:absolute!important;z-index:3!important;inset-block-start:8px!important;inset-inline-end:8px!important;display:grid!important;place-items:center!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;border:2px solid #fff!important;border-radius:50%!important;background:#d94742!important;color:#fff!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
  body.sstf-customer.plain-order-page #products-table .product-info-cell,.sstf-flow .pricing-product-card .product-info-cell{display:grid!important;gap:var(--sstf-space-1)!important;padding:11px var(--sstf-space-3) 7px!important;text-align:start!important}.sstf-customer.plain-order-page #products-table .product-info-cell>b,.sstf-flow .pricing-product-card .product-info-cell>b{display:block!important;overflow:hidden!important;color:#172a3d!important;font-size:var(--sstf-t-body)!important;font-weight:950!important;white-space:nowrap!important;text-overflow:ellipsis!important}.sstf-customer.plain-order-page #products-table .product-code{color:#8a97a4!important;font-size:var(--sstf-t-small)!important}.sstf-customer.plain-order-page #products-table .product-meta-line{color:#596d80!important;font-size:var(--sstf-t-small)!important;line-height:1.5!important}
  body.sstf-customer.plain-order-page #products-table .product-sizes-cell{padding:5px var(--sstf-space-3) 10px!important}.sstf-customer.plain-order-page #products-table .product-size-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:5px!important;width:100%!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  body.sstf-customer.plain-order-page #products-table .product-total-cell,.sstf-flow .pricing-product-card .product-total-cell{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;padding:9px var(--sstf-space-3)!important;border-block-start:1px solid #e4eaf0!important;background:#edf5fc!important;color:#173d67!important}.sstf-customer.plain-order-page #products-table .product-total-cell small,.sstf-flow .pricing-product-card .product-total-cell small{color:#65788b!important;font-size:var(--sstf-t-small)!important}.sstf-customer.plain-order-page #products-table .product-total-cell strong,.sstf-flow .pricing-product-card .product-total-cell strong{font-size:var(--sstf-t-card)!important;font-weight:950!important}
  body.sstf-customer.plain-order-page #products-table .product-actions-row{display:none!important}.sstf-customer #preview-dialog .section-heading{position:sticky!important;z-index:2!important;inset-block-start:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 -14px 12px!important;padding:11px 14px!important;border-block-end:1px solid #e0e7ee!important;background:#fff!important}.sstf-customer #preview-dialog .product-preview-card{display:grid!important;grid-template-columns:minmax(120px,42%) minmax(0,1fr)!important;gap:13px!important;align-items:start!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;box-shadow:none!important}.sstf-customer #preview-dialog .product-preview-card>img{display:block!important;width:100%!important;height:min(38dvh,300px)!important;border-radius:var(--sstf-r-m)!important;background:#f6f8fa!important;object-fit:contain!important}.sstf-customer #preview-dialog .product-preview-card h3{margin:3px 0 6px!important;color:#172a3d!important;font-size:var(--sstf-t-card)!important}.sstf-customer #preview-dialog .product-preview-card p{margin:5px 0!important;color:#617386!important;font-size:var(--sstf-t-small)!important}.sstf-customer #preview-dialog .product-preview-sizes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin:9px 0!important}

  @media(max-width:700px){
    .sstf-customer .app-header{gap:5px!important}.sstf-customer .app-header .brand-lockup{max-width:46vw!important}.sstf-customer .app-header :where(.app-back,.profile-link,.chat-launch,.icon-button){width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}
    body.sstf-customer .customer-order-static{padding:7px!important;border-radius:var(--sstf-r-m)!important}.sstf-customer .customer-order-static .order-meta-date strong{font-size:var(--sstf-t-small)!important}
    body.sstf-customer dialog.product-wizard[open]{border-radius:var(--sstf-r-m)!important}.sstf-customer .product-wizard .wizard-body{padding:13px 11px!important}.sstf-customer .product-wizard .choices{gap:7px!important}.sstf-customer .product-wizard .choice{grid-template-rows:40px auto!important;min-height:88px!important;padding:7px var(--sstf-space-1)!important}.sstf-customer .product-wizard .brand-results{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sstf-customer .product-wizard .inventory-wizard-prices{grid-template-columns:1fr!important}
    body.sstf-customer.plain-order-page #products-table>tbody,.sstf-flow .pricing-products-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.sstf-customer.plain-order-page #products-table .product-thumb,.sstf-flow .pricing-product-card .product-thumb{height:auto!important;aspect-ratio:1/1!important}.sstf-customer.plain-order-page #products-table .product-info-cell,.sstf-flow .pricing-product-card .product-info-cell{padding:9px 9px 6px!important}.sstf-customer.plain-order-page #products-table .product-info-cell>b,.sstf-flow .pricing-product-card .product-info-cell>b{font-size:var(--sstf-t-small)!important}.sstf-customer.plain-order-page #products-table .product-sizes-cell{padding:var(--sstf-space-1) 9px var(--sstf-space-2)!important}.sstf-customer.plain-order-page #products-table .product-total-cell,.sstf-flow .pricing-product-card .product-total-cell{padding:var(--sstf-space-2) 9px!important}.sstf-customer.plain-order-page .product-card-delete{inset-block-start:6px!important;inset-inline-end:6px!important;width:29px!important;min-width:29px!important;height:29px!important;min-height:29px!important}.sstf-customer #preview-dialog .product-preview-card{grid-template-columns:1fr!important}.sstf-customer #preview-dialog .product-preview-card>img{height:min(34dvh,250px)!important}
  }
  @media(min-width:960px){body.sstf-customer.store-dashboard .app-header{inset-inline-start:var(--ui-sidebar,232px)!important;width:auto!important}.sstf-customer.store-dashboard .store-bottom-nav{display:none!important}.sstf-customer.store-dashboard main{padding-block-end:var(--sstf-space-5)!important}}
}

/* Customer workspace regression repair: bottom controls, edge-to-edge sheets,
   dropshipping bounds and single-action S&S sale rows. This is intentionally
   the last block in the highest-priority layer. */
@layer sstf-hotfix {
  body.sstf-customer.plain-order-page .customer-bottom-stack:has(#order-actions:not([hidden])){position:fixed!important;z-index:970!important;inset-inline:0!important;inset-block-end:0!important;display:grid!important;width:100%!important;margin:0!important;padding:0!important;border-block-start:1px solid #dce5ed!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
  body.sstf-customer.plain-order-page .customer-bottom-stack #order-actions:not([hidden]){position:static!important;inset:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:64px!important;margin:0!important;padding:8px max(10px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right))!important;border:0!important;background:#fff!important;box-shadow:none!important}
  body.sstf-customer.plain-order-page .customer-bottom-stack #order-actions>button{width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;padding:var(--sstf-space-2)!important}
  body.sstf-customer.plain-order-page .order-quantity-bar:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:52px!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border:0!important;border-block-end:1px solid #d7e3ed!important;border-radius:0!important;background:#edf5fc!important;color:#173d67!important;box-shadow:none!important}
  body.sstf-customer.plain-order-page .order-quantity-bar span{font-size:var(--sstf-t-small)!important;font-weight:850!important}
  body.sstf-customer.plain-order-page .order-quantity-bar strong{font-size:var(--sstf-t-page)!important;font-weight:950!important;line-height:1!important}
  
  body.sstf-customer.plain-order-page #products-table>tfoot{display:none!important}
  /* S1-PC-001 — a plain order page that ALSO carries the account bottom nav (store-dashboard has-store-nav plain-order-page).
     Layout ownership: the nav keeps the bottom edge; the customer action stack sits directly above it; main reserves room for both.
     --ui-nav-offset is the real nav height measured by layout.js (0 while the keyboard is open); the CSS value below is the pre-measure default. */
  
  body.sstf-customer.plain-order-page.has-store-nav #order-actions:not([hidden]){inset-block-end:var(--ui-nav-offset,70px)!important;padding-block-end:var(--sstf-space-2)!important}
  body.sstf-customer.plain-order-page.has-store-nav .customer-bottom-stack:has(#order-actions:not([hidden])){inset-block-end:var(--ui-nav-offset,70px)!important}
  body.sstf-customer.plain-order-page.has-store-nav .customer-bottom-stack #order-actions:not([hidden]){padding-block-end:var(--sstf-space-2)!important}
  
  
  body.sstf-customer.store-dashboard.is-keyboard .store-bottom-nav{display:none!important}
  @media(min-width:960px){}
  body.sstf-flow .ss-sales-order-list>.ss-sale-row{grid-template-columns:105px minmax(150px,1fr) 120px!important;overflow:hidden!important}
  body.sstf-flow .ss-sales-order-list>.ss-sale-row::before,body.sstf-flow .ss-sales-order-list>.ss-sale-row::after{content:none!important;display:none!important}
  body.sstf-flow .ss-sales-order-list>.ss-sale-row:focus-visible{outline:3px solid rgba(23,79,136,.25)!important;outline-offset:2px!important}
  
  
  @media(max-width:700px){
    body.sstf-customer.store-order-workspace main{max-width:none!important;margin:0!important;padding-inline:0!important}
    body.sstf-customer.store-order-workspace .customer-order-static{width:calc(100% - 8px)!important;margin-inline:var(--sstf-space-1)!important}
    body.sstf-customer.store-order-workspace #recipient-section{margin-block:var(--sstf-space-1) 0!important}
    body.sstf-customer.store-order-workspace :where(#order-exports,.customer-export-toolbar,.export-toolbar){width:calc(100% - 8px)!important;margin:var(--sstf-space-1)!important}
    
    
    
    body.sstf-customer .customer-order-static .order-meta-date strong{font-size:var(--sstf-t-small)!important;letter-spacing:-.15px!important}
    body.sstf-flow .ss-sales-order-list>.ss-sale-row{grid-template-columns:76px minmax(0,1fr) 78px!important;gap:7px!important;min-height:100px!important;padding:10px!important}
  }
}
/* Dropshipping recipients: recipient-owned horizontal product storefront. */
@layer sstf-hotfix {
  

  body.sstf-customer.store-order-workspace .recipient-card-products{width:100%!important;margin:0!important;padding:10px 0!important;background:#fff!important;overflow:hidden!important}

  body.sstf-customer .recipient-address-dialog{position:fixed!important;z-index:10030!important;inset:0!important;width:min(600px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:82dvh!important;margin:auto!important;padding:var(--sstf-space-3)!important;border:1px solid #dfe7ee!important;border-radius:var(--sstf-r-l)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;overflow-y:auto!important}
  body.sstf-customer .recipient-address-dialog::backdrop{background:rgba(25,45,66,.38)!important}
  body.sstf-customer .recipient-address-dialog-body{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.sstf-customer .recipient-address-dialog-body>div{display:grid!important;gap:3px!important;min-width:0!important;padding:9px!important;border:1px solid #e1e8ee!important;border-radius:var(--sstf-r-s)!important;background:#f9fbfd!important}.sstf-customer .recipient-address-dialog-body small{color:#7c8998!important;font-size:var(--sstf-t-small)!important}.sstf-customer .recipient-address-dialog-body strong{color:#1c3045!important;font-size:var(--sstf-t-small)!important;line-height:1.55!important;}
  @media(min-width:720px){}
}

/* rc20.17 — focused customer/dropshipping corrections. Intentionally last in
   the highest-priority layer so legacy rules cannot reintroduce these defects. */
@layer sstf-hotfix {
body.sstf-customer.store-order-workspace #add-zone,body.sstf-customer.store-order-workspace #batch-gallery,body.sstf-customer.store-order-workspace #product-table-section{display:none!important}
  body.sstf-flow .product-wizard .wizard-foot>button:not([hidden]){grid-column:auto!important}

  
  body.sstf-customer .customer-order-static .order-meta-date strong,
  body.sstf-customer .customer-order-static .order-meta-date strong>span{display:block!important;width:100%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.sstf-customer .customer-order-static .order-meta-country .order-country-value{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;justify-items:center!important;gap:2px!important;overflow:visible!important}
  body.sstf-customer .customer-order-static .order-meta-country .order-country-flag{font-size:var(--sstf-t-card)!important;overflow:visible!important}
  body.sstf-customer .customer-order-static .order-meta-country [data-country-name]{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  @media(max-width:520px){
    
    body.sstf-customer .customer-order-static .order-meta-country .order-country-value{flex-wrap:nowrap!important;gap:1px!important}
    body.sstf-customer .customer-order-static .order-meta-country .order-country-flag{font-size:var(--sstf-t-card)!important}
    body.sstf-customer .customer-order-static .order-meta-country [data-country-name]{font-size:var(--sstf-t-small)!important}
  }

  body.store-dashboard .store-cards .task-card{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;align-content:center!important;gap:7px!important;text-align:center!important}
  body.store-dashboard .store-cards .task-card :where(img,.nav-icon,.small-icon){margin-inline:auto!important}
  body.store-dashboard .store-cards .task-card>strong{width:100%!important;color:#111827!important;font-size:var(--sstf-t-page)!important;font-weight:950!important;line-height:1!important;text-align:center!important}
  body.store-dashboard .store-cards .task-card>span{width:100%!important;color:#4f6072!important;font-size:var(--sstf-t-body)!important;font-weight:850!important;line-height:1.5!important;text-align:center!important}

  body.sstf-flow #app-more.app-drawer .drawer-heading>[data-close-sheet]{position:static!important;display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;border:1px solid #dce5ed!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#174a87!important;box-shadow:var(--sstf-sh-card)!important;font-size:0!important;line-height:1!important;overflow:hidden!important}
  body.sstf-flow #app-more.app-drawer .drawer-heading>[data-close-sheet]::before,
  body.sstf-flow #app-more.app-drawer .drawer-heading>[data-close-sheet]::after{display:none!important;content:none!important}
  body.sstf-flow #app-more.app-drawer .drawer-heading>[data-close-sheet] svg{display:block!important;width:23px!important;min-width:23px!important;height:23px!important;max-width:23px!important;margin:0!important;padding:0!important;color:inherit!important;stroke:currentColor!important;transform:none!important}
}

/* Settings navigation tree: hierarchical sidebar navigation for administration. */
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-tree>.nav-dropdown-body{gap:6px!important;padding:7px 3px 2px!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section{display:block!important;margin:0!important;border:1px solid #e5ebf2!important;border-radius:var(--sstf-r-m)!important;background:#fbfdff!important;overflow:hidden!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;min-height:44px!important;padding:var(--sstf-space-2) 11px!important;list-style:none!important;cursor:pointer!important;background:#f7fafe!important;color:#31475e!important;font-size:var(--sstf-t-small)!important;font-weight:900!important;line-height:1.45!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section>summary::-webkit-details-marker{display:none!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section>summary i{margin-inline-start:auto!important;color:#7f8f9f!important;font-style:normal!important;font-size:var(--sstf-t-body)!important;transition:transform .16s ease!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section[open]>summary i{transform:rotate(180deg)!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section.is-current{border-color:#cbdced!important;background:#f4f9ff!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-section.is-current>summary{color:var(--sstf-shell-primary,#174a87)!important;background:#edf5fd!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-children{display:grid!important;gap:3px!important;padding:5px!important;background:#fff!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-children>a{min-height:40px!important;padding:7px 10px!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;box-shadow:none!important;color:#526579!important;font-size:var(--sstf-t-small)!important;font-weight:750!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-children>a::after{font-size:var(--sstf-t-card)!important}
.sstf-flow :where(.app-sidebar,.app-drawer) .sstf-settings-nav-children>a[aria-current]{background:#eaf3fc!important;color:var(--sstf-shell-primary,#174a87)!important;font-weight:900!important}

/* Internal pricing editor — reuses supplier cards/dialogs and existing TradeFlow controls. */
.sstf-flow .pricing-editor-ui{min-width:0;max-width:100%;overflow:visible}
.sstf-flow .pricing-editor-ui #pricing-form{display:grid;gap:var(--sstf-space-4);min-width:0}

.sstf-flow .pricing-products-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:var(--sstf-space-1)}
.sstf-flow .pricing-products-heading h3{margin:0}
.sstf-flow .pricing-product-grid{width:100%;min-width:0}
.sstf-flow .pricing-choice-scope{grid-template-columns:repeat(3,minmax(0,1fr));margin:6px 0 10px;padding:0;border:0;min-width:0}

.sstf-flow .pricing-rate-choice label{margin:0}
.sstf-flow .pricing-rate-choice span{min-height:52px}
.sstf-flow .pricing-rate-static{max-width:320px}
.sstf-flow .pricing-product-result{display:grid;grid-template-columns:1fr 1fr;gap:var(--sstf-space-2)}
.sstf-flow .pricing-product-result>div{display:grid;gap:3px;min-width:0}

.sstf-flow .pricing-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sstf-flow .pricing-summary-metrics>div{display:grid;gap:5px;min-width:0;padding:var(--sstf-space-3)}

.sstf-flow .pricing-summary-metrics .loss{color:var(--ui-danger)}
.sstf-flow .pricing-breakdown{max-width:none;margin:0}

@media(max-width:700px){
 .sstf-flow .pricing-editor-ui #pricing-form{gap:var(--sstf-space-3)}
 
 .sstf-flow .pricing-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 
 
 .sstf-flow .pricing-choice-scope{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 
 
 .sstf-flow .pricing-choice-scope span,.sstf-flow .pricing-rate-choice span{min-height:48px;padding:6px;font-size:var(--sstf-t-small)}
 
 
 
 .sstf-flow .pricing-product-result{grid-template-columns:1fr 1fr}
 
}
@media(max-width:390px){
 
}

/* finalui1 — shared readable type scale + pricing/inventory component reuse. */
/* --sstf-text-* (body/secondary/caption/label) are emitted only by TypographyPolicy::css() (caption = the 13px floor). */
html{font-size:100%}
:where(body.sstf-flow,.sstf-admin){font-size:var(--sstf-t-body);line-height:1.62}
:where(body.sstf-flow,.sstf-admin) :where(h1,h2,h3){font-weight:800;line-height:1.32}
:where(body.sstf-flow,.sstf-admin) h1{font-size:clamp(1.75rem,2.4vw,2.25rem)}
:where(body.sstf-flow,.sstf-admin) h2{font-size:clamp(1.375rem,2vw,1.75rem)}
:where(body.sstf-flow,.sstf-admin) h3{font-size:clamp(1.125rem,1.5vw,1.375rem)}
:where(body.sstf-flow,.sstf-admin) label{font-size:var(--sstf-t-body);font-weight:var(--sstf-fw-label);line-height:1.55}
:where(body.sstf-flow,.sstf-admin) small{font-size:var(--sstf-t-small)!important;line-height:1.55}
:where(body.sstf-flow,.sstf-admin) :where(.state-badge,.account-status,.inventory-product-status,.inventory-incomplete-badge,.copy-status,.sstf-field-error){font-size:var(--sstf-t-small)!important;line-height:1.45}
:where(body.sstf-flow,.sstf-admin) :where(.inventory-store-prices b,.inventory-product-view-meta strong,.pricing-summary-metrics strong,.pricing-breakdown strong,.order-line-main>strong,[data-display-number]){font-weight:800;font-variant-numeric:tabular-nums}
@media(max-width:700px){
  :where(body.sstf-flow,.sstf-admin) :where(input,select,textarea,button){font-size:var(--sstf-t-card)!important}
  :where(body.sstf-flow,.sstf-admin) label{font-size:var(--sstf-t-card)!important}
}

/* Pricing editor: flat main page, inventory product cards, inventory detail workspace. */

.sstf-flow .pricing-editor-flat #pricing-form{display:grid;gap:18px;min-width:0;padding:0}
.sstf-flow .pricing-rate-card{display:grid;gap:10px;min-width:0;padding:14px;border:1px solid var(--tf-line,#dfe5eb);border-radius:var(--sstf-r-m);background:#fff;box-shadow:var(--sstf-sh-card)}
.sstf-flow .pricing-rate-card>h3,.sstf-flow .pricing-products-heading h3{margin:0}
.sstf-flow .pricing-rate-card label{margin:0}
.sstf-flow .pricing-rate-card #rate-label,.sstf-flow .pricing-rate-static>span{display:block;direction:ltr;unicode-bidi:isolate;text-align:start}
.sstf-flow .pricing-products-section{min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.sstf-flow .pricing-products-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px}

.sstf-flow .pricing-save-main{width:100%!important;min-height:50px!important;margin:0!important;justify-content:center!important}
.sstf-flow .order-actions-sheet [data-quick-options]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-2);padding:12px max(12px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right))}
.sstf-flow .order-actions-sheet [data-quick-options] :where(button,a){min-width:0;min-height:48px;margin:0;justify-content:center;text-align:center}

.sstf-flow dialog.pricing-product-workspace{position:fixed;z-index:100002;inset:50% auto auto 50%;width:min(920px,calc(100vw - 24px));max-width:920px;max-height:94dvh;margin:0;padding:0;transform:translate(-50%,-50%);overflow:auto;border:0;border-radius:var(--sstf-r-l);background:transparent;box-shadow:var(--sstf-sh-card)}

.sstf-flow .pricing-workspace-tabs{display:flex;gap:7px;width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;padding:3px 0 5px;white-space:nowrap}
.sstf-flow .pricing-workspace-tabs::-webkit-scrollbar{display:none}
.sstf-flow .pricing-workspace-tabs button{flex:0 0 clamp(106px,28vw,140px);min-height:40px;margin:0;padding:7px 10px;background:#fff;color:var(--tf-ink,#172b3e);border:1px solid var(--tf-line,#dfe5eb);box-shadow:none}
.sstf-flow .pricing-workspace-tabs button[aria-current="page"]{background:var(--sstf-runtime-soft,#f7f9fb);border-color:var(--sstf-brand-primary,#174a87);color:var(--sstf-brand-primary,#174a87);font-weight:800}
.sstf-flow .pricing-workspace-panel{min-width:0;padding-top:3px}
.sstf-flow .pricing-workspace-panel>[data-workspace-panel]{display:grid;gap:var(--sstf-space-3);min-width:0}

.sstf-flow .pricing-workspace-panel label{margin:0}
.sstf-flow .pricing-workspace-panel :where(input,textarea){width:100%;margin-top:5px}

.sstf-flow .pricing-choice-scope{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;border:0}
.sstf-flow .pricing-commission-choice{grid-template-columns:repeat(2,minmax(0,1fr))}
.sstf-flow .pricing-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-2)}
.sstf-flow .pricing-summary-metrics>div{display:grid;gap:3px;padding:10px;border:1px solid #e5e9ee;border-radius:var(--sstf-r-s);background:#fafbfc}

.sstf-flow .pricing-breakdown{display:grid;gap:0;margin:0}
.sstf-flow .pricing-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);padding:9px 2px;border-bottom:1px solid var(--tf-line,#dfe5eb)}

.sstf-flow .pricing-workspace-actions{display:flex;justify-content:flex-end;gap:var(--sstf-space-2);padding-top:var(--sstf-space-1)}
.sstf-flow .pricing-workspace-actions button{margin:0}

.sstf-flow .order-actions-trigger{min-width:42px!important;padding-inline:10px!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
.sstf-flow .order-actions-options [data-tone="danger"]{color:var(--ui-danger,#a21919)}

@media(max-width:700px){
  
  
  .sstf-flow dialog.pricing-product-workspace{inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;transform:none;border-radius:0;background:#fff;box-shadow:none}
  
  
  
  
  
  .sstf-flow .pricing-summary-metrics{grid-template-columns:1fr}
}
@media(min-width:900px){}

/* finalui1 typography floor — user-facing readable text only. */
@layer sstf-hotfix {
body.sstf-flow small,.sstf-admin small,body.sstf-customer :where(.order-meta-country [data-country-name],.recipient-address-edit),body.sstf-flow table :where(th,td),.sstf-admin table :where(th,td){
    font-size:var(--sstf-t-small)!important;
    line-height:1.45!important;
  }

  body.sstf-flow :where(.company-name-ar,.app-header .header-context>strong,.ss-sales-create-copy p,.ss-sale-identity>small,.ss-sale-customer>small,.ss-sale-total>small),
  .sstf-admin :where(.company-name-ar,.app-header .header-context>strong) {
    font-size:var(--sstf-t-small)!important;
  }

  body.sstf-flow label,
  .sstf-admin label {
    font-size:var(--sstf-t-body)!important;
    line-height:1.55!important;
  }

  @media(max-width:700px){
    body.sstf-flow :where(input,select,textarea,button),
    .sstf-admin :where(input,select,textarea,button){font-size:var(--sstf-t-card)!important}
  }
}

/* finalui1 typography floor — legacy compact selectors that carry readable text. */
@layer sstf-hotfix {
}

/* Pricing visual hotfix: reuse the actual customer product-grid component. */
@layer sstf-hotfix {
  .sstf-flow .pricing-panel-editor{margin-inline:0!important;padding-inline:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .sstf-flow .pricing-products-section{min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .sstf-flow .pricing-products-heading{margin:0 0 9px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .sstf-flow .pricing-products-list{min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .sstf-flow .pricing-product-card .pricing-product-image-cell{overflow:hidden!important}
  .sstf-flow .pricing-product-card .pricing-product-image{margin:0!important;padding:0!important}
  .sstf-flow .pricing-product-card .pricing-product-no-image{display:grid!important;place-items:center!important;width:100%!important;aspect-ratio:1/1!important;margin:0!important;padding:0!important;border-radius:0!important;background:#f6f8fa!important}
  .sstf-flow .pricing-product-card .pricing-card-status{position:absolute!important;z-index:3!important;inset-inline-start:8px!important;inset-block-end:8px!important;width:max-content!important;max-width:calc(100% - 56px)!important;margin:0!important}
  .sstf-flow .pricing-product-price-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
  .sstf-flow .pricing-product-price-row>span{display:grid!important;gap:2px!important;min-width:0!important}
  .sstf-flow .pricing-product-price-row :where(small,strong){overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;font-variant-numeric:tabular-nums!important}
  .sstf-flow .pricing-save-main{position:static!important;z-index:auto!important;width:100%!important;margin:0!important;box-shadow:none!important}
  .sstf-flow .pricing-editor-flat #pricing-form{padding-bottom:calc(var(--ui-nav-offset,0px) + env(safe-area-inset-bottom,0px) + 12px)!important}
}

/* FEATURE-ROUND / PHASE 1 — S&S order workspace. Reuse inventory components; no new visual identity. */
@layer sstf-hotfix{
.sstf-flow .ss-sales-stage-chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scrollbar-width:none!important;-webkit-overflow-scrolling:touch;gap:var(--sstf-space-2)!important}
.sstf-flow .ss-sales-stage-chips::-webkit-scrollbar,.sstf-flow .ss-editor-tabs::-webkit-scrollbar,.sstf-flow .ss-product-tabs::-webkit-scrollbar{display:none!important}
.sstf-flow .ss-sales-stage-chips>a{flex:0 0 auto!important;min-width:0!important}
  .sstf-flow .order-type-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-2);margin:0 0 var(--sstf-space-3)}
  .sstf-flow .order-type-switch>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:var(--sstf-space-2) 10px;border:1px solid var(--tf-line);border-radius:var(--sstf-r-m);background:#fff;color:var(--tf-ink);text-decoration:none;font-weight:800;text-align:center}
  .sstf-flow .order-type-switch>a[aria-current=page]{border-color:var(--sstf-brand-primary,#174a87);color:var(--sstf-brand-primary,#174a87);background:var(--tf-blue-soft,#f3f7fc)}
  .sstf-flow .ss-sale-row{position:relative}
  .sstf-flow .ss-order-editor{display:grid;gap:var(--sstf-space-4);min-width:0;padding-block-end:calc(84px + env(safe-area-inset-bottom,0px))}
  .sstf-flow .ss-add-products-button{width:100%}
  .sstf-flow .ss-order-products-flat{display:grid;gap:10px;min-width:0}
  .sstf-flow .ss-order-products-flat>.section-heading{padding:0;background:transparent;border:0;box-shadow:none}
  .sstf-flow .ss-order-product-grid{margin:0}
  
  .sstf-flow .ss-order-product-grid .ss-product-info{position:absolute;z-index:5;inset-inline-start:8px;inset-block-start:8px;--control-height:32px;--control-padding:2px 8px}
  .sstf-flow .ss-product-select{position:absolute;z-index:6;inset-inline-start:8px;inset-block-start:8px;width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--tf-line);border-radius:var(--sstf-r-s);background:#fff;box-shadow:var(--sstf-sh-card);cursor:pointer}
  .sstf-flow .ss-product-select input{position:absolute;opacity:0;pointer-events:none}.sstf-flow .ss-product-select span{opacity:.28;font-weight:900}
  .sstf-flow .inventory-product-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;min-width:0}.sstf-flow .inventory-product-card-title>strong{min-width:0;word-break:normal;overflow-wrap:normal}.sstf-flow .inventory-product-card-title .inventory-product-status{flex:0 0 auto}
  .sstf-flow dialog.ss-store-sheet[open]{height:min(92dvh,900px);max-height:92dvh!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto}.sstf-flow .ss-store-sheet-body{min-height:0;overflow-y:auto;overflow-x:hidden;padding:var(--sstf-space-3)}.sstf-flow .ss-sheet-footer{display:grid;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-block-start:1px solid var(--tf-line);background:#fff}.sstf-flow .ss-sheet-footer button{width:100%}
  .sstf-flow .ss-store-tools{position:static!important;margin-block-end:var(--sstf-space-3)}.sstf-flow #ss-store-grid{margin:0}
  .sstf-flow .ss-order-management-card{display:grid;gap:var(--sstf-space-3)}.sstf-flow .ss-editor-tabs,.sstf-flow .ss-product-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;scrollbar-width:none}.sstf-flow .ss-editor-tabs>button,.sstf-flow .ss-product-tabs>button{flex:0 0 auto;min-width:120px;background:#fff!important;color:var(--tf-ink)!important;border:1px solid var(--tf-line)!important}.sstf-flow .ss-editor-tabs>button.is-active,.sstf-flow .ss-product-tabs>button.is-active{border-color:var(--sstf-brand-primary,#174a87)!important;color:var(--sstf-brand-primary,#174a87)!important;background:var(--tf-blue-soft,#f3f7fc)!important}
  .sstf-flow .ss-order-panel{min-width:0}.sstf-flow .ss-order-inline-summary{padding:0}.sstf-flow .ss-order-savebar{position:sticky;z-index:40;inset-block-end:calc(var(--mobile-nav-height,72px) + env(safe-area-inset-bottom,0px));padding:var(--sstf-space-2);background:rgba(255,255,255,.96);border:1px solid var(--tf-line);border-radius:var(--sstf-r-l);box-shadow:var(--sstf-sh-card)}.sstf-flow .ss-order-savebar .ss-store-submit{display:grid;grid-template-columns:1fr 1fr;gap:var(--sstf-space-2)}.sstf-flow .ss-order-savebar button{width:100%}
  .sstf-flow dialog.ss-product-workspace[open]{height:min(92dvh,920px);max-height:92dvh!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)}.sstf-flow .ss-product-workspace-body{min-height:0;overflow:auto;padding:12px 12px calc(88px + env(safe-area-inset-bottom,0px))}.sstf-flow .ss-product-workspace .inventory-product-view{padding:0!important;border:0!important;box-shadow:none!important}.sstf-flow .ss-product-workspace .inventory-product-view-media{aspect-ratio:1/1!important;min-height:0!important;max-height:none!important;padding:0!important}.sstf-flow .ss-product-workspace .inventory-product-view-media img{width:100%;height:100%;object-fit:contain}.sstf-flow .ss-product-workspace .ss-modal-actions{position:sticky;inset-block-end:0;padding:10px 0;background:#fff}
  .sstf-flow .ss-modal-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-2)}.sstf-flow .ss-size-stepper>div{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:5px;align-items:center}.sstf-flow .ss-size-stepper input{text-align:center;min-width:0}.sstf-flow .ss-size-stepper button{min-width:38px;padding:var(--sstf-space-1)!important}
  .sstf-flow .ss-charge-row{display:grid;grid-template-columns:minmax(135px,.8fr) minmax(100px,.6fr) minmax(180px,1fr) auto;gap:var(--sstf-space-2);margin-block:var(--sstf-space-2)}
}
@media(max-width:700px){@layer sstf-hotfix{
.sstf-flow .ss-sales-stage-chips>a{flex-basis:calc((100vw - 58px)/4.5)!important;justify-content:center!important;text-align:center}
  .sstf-flow .order-type-switch{gap:6px}.sstf-flow .order-type-switch>a{padding-inline:6px;font-size:var(--sstf-t-body)}
  .sstf-flow .inventory-products-list.ss-order-product-grid,.sstf-flow #ss-store-grid.inventory-products-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .sstf-flow .ss-store-tools{grid-template-columns:1fr 1fr!important}.sstf-flow .ss-store-tools .ss-search{grid-column:1/-1!important}
  .sstf-flow .ss-product-tabs>button{flex-basis:30vw;min-width:108px}.sstf-flow .ss-charge-row{grid-template-columns:1fr 1fr}.sstf-flow .ss-charge-row input:nth-of-type(2){grid-column:1/-1}.sstf-flow .ss-charge-row button{grid-column:1/-1}
}}

@layer sstf-hotfix {
  /* Feature Round / Phase 2: reuse existing surfaces for split phone, receipts and customer copy. */
  .ss-phone-field{display:grid;gap:6px}
  .ss-phone-input{display:grid;grid-template-columns:minmax(78px,96px) minmax(0,1fr);gap:var(--sstf-space-2);direction:ltr}
  .ss-order-payment-summary{display:grid;gap:var(--sstf-space-3);margin-block:var(--sstf-space-3)}
  .ss-payment-actions{display:flex;gap:var(--sstf-space-2);flex-wrap:wrap}
  .ss-payment-actions>*{flex:1 1 150px}
  .ss-receipt-row{padding:var(--sstf-space-3) 14px}
  
  
  
}

/* S&S CONSOLIDATION / PHASE 1 — unified cards and mobile-safe values. */
@layer sstf-hotfix{
  .sstf-flow .ss-sales-order-list .ss-sale-row{
    display:grid!important;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1.7fr) minmax(110px,.8fr) auto!important;
    grid-template-areas:"identity customer total actions"!important;
    align-items:center!important;
    gap:10px!important;
    position:relative!important;
    min-width:0!important;
  }
  .sstf-flow .ss-sale-identity{grid-area:identity;min-width:0!important}
  .sstf-flow .ss-sale-customer{grid-area:customer;min-width:0!important}
  .sstf-flow .ss-sale-total{grid-area:total;min-width:0!important;width:100%;text-align:start}
  .sstf-flow .ss-sale-actions{grid-area:actions;display:grid;place-items:center;min-width:40px}
  .sstf-flow .ss-sale-row .ss-order-actions-trigger{position:static!important;inset:auto!important;margin:0!important;z-index:auto!important}
  .sstf-flow .ss-sale-total small{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sstf-flow .ss-sale-total strong,
  .sstf-flow .warehouse-order-money :where(b,small),
  .sstf-flow [dir="ltr"]{white-space:nowrap}
  /* FLYCARGO-CHECK-1 (C9, D-37): a central card (glass / confirm / status dialog) takes the page direction — ltr in the external portals' five
     languages — and must not inherit the nowrap above (meant for short LTR fragments): its text was cut at 390 (payments card). The LTR fragments inside keep nowrap. */
  .sstf-flow dialog[dir="ltr"]{white-space:normal}
.sstf-flow .ss-sale-customer :where(strong,small),.sstf-flow .ss-sale-identity :where(strong,small,span),.sstf-flow .inventory-product-card-title>strong{
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }
  .sstf-flow .ss-sale-customer strong,
  .sstf-flow .ss-sale-customer small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sstf-flow .ss-phone-input input,
  .sstf-flow .ss-sale-customer small[dir="ltr"]{direction:ltr;text-align:left}
}
@media(max-width:700px){@layer sstf-hotfix{
  .sstf-flow .ss-sales-order-list .ss-sale-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"identity actions" "customer customer" "total total"!important;
    align-items:start!important;
  }
  .sstf-flow .ss-sale-total{width:100%;display:flex;align-items:baseline;justify-content:space-between;gap:var(--sstf-space-2);min-width:0!important}
  .sstf-flow .ss-sale-total strong{flex:0 0 auto}
  .sstf-flow .ss-sale-total small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}}

/* S&S CONSOLIDATION / PHASE 2 — bounded picker, shared product editor, mobile-safe layout. */
@layer sstf-hotfix{
  .sstf-flow dialog.ss-store-sheet[open]{
    position:fixed!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    height:min(92dvh,900px)!important;
    max-height:92dvh!important;
    overflow:hidden!important;
  }
  .sstf-flow .ss-store-sheet>.inventory-sheet-handle{position:absolute!important;z-index:3;inset-block-start:5px;inset-inline:calc(50% - 24px);margin:0!important}
  .sstf-flow .ss-store-sheet>.inventory-sheet-header{grid-row:1;min-width:0}
  .sstf-flow .ss-store-sheet-body{grid-row:2;height:auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:var(--sstf-space-3)!important;overscroll-behavior:contain}
  .sstf-flow .ss-sheet-footer{grid-row:3;position:static!important;inset:auto!important;display:grid!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;border-block-start:1px solid var(--tf-line)!important;background:#fff!important;z-index:2}
  .sstf-flow .ss-sheet-footer button{width:100%!important;margin:0!important;min-height:44px}
  .sstf-flow #ss-store-load-more{width:100%;margin:var(--sstf-space-3) 0 2px}
  .sstf-flow #ss-store-status{min-height:1.4em;margin:var(--sstf-space-2) 0 0;font-size:var(--sstf-t-body)}
  
  .sstf-flow #ss-store-grid .inventory-product-card-media,
  .sstf-flow .ss-order-product-grid .inventory-product-card-media{padding:0!important;overflow:hidden}
  .sstf-flow #ss-store-grid .inventory-product-card-image,
  .sstf-flow .ss-order-product-grid .inventory-product-card-image{display:block;width:100%;height:100%;object-fit:contain;margin:0!important}
  
  .sstf-flow .inventory-product-card-title>strong,
  .sstf-flow .inventory-product-card-content :where(strong,small),
  .sstf-flow .inventory-product-status,
  .sstf-flow .ss-product-workspace :where(h2,strong,small),
  .sstf-flow .ss-modal-sizes :where(strong,small){word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
  .sstf-flow .inventory-store-prices b,
  .sstf-flow .ss-reference-price strong,
  .sstf-flow .ss-summary-grid strong{white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;font-weight:800}
  .sstf-flow .inventory-product-status{white-space:normal;line-height:1.25}
  .sstf-flow dialog.ss-product-workspace[open]{position:fixed!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;height:min(92dvh,920px)!important;max-height:92dvh!important;overflow:hidden!important}
  .sstf-flow .ss-product-workspace>.inventory-sheet-handle{position:absolute!important;z-index:3;inset-block-start:5px;inset-inline:calc(50% - 24px);margin:0!important}
  .sstf-flow .ss-product-workspace-body{height:auto!important;min-height:0!important;overflow-y:auto!important;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))!important}
  .sstf-flow .ss-product-workspace .ss-modal-actions{position:sticky!important;inset-block-end:0!important;padding:10px 0 calc(8px + env(safe-area-inset-bottom,0px))!important;background:#fff!important;z-index:2}
  .sstf-flow .ss-size-stepper input{font-size:var(--sstf-t-card)!important}
  .sstf-flow .ss-size-stepper button{font-size:var(--sstf-t-card)!important;touch-action:manipulation}
  .sstf-flow .ss-order-savebar{inset-block-end:calc(var(--mobile-nav-height,72px) + env(safe-area-inset-bottom,0px))!important}
  .sstf-flow .ss-order-editor :where(input,select,textarea,button){font-size:max(16px,1rem)}
  .sstf-flow .ss-order-editor small,.sstf-flow .ss-store-sheet small,.sstf-flow .ss-product-workspace small{font-size:var(--sstf-t-small)}
  .sstf-flow .ss-order-editor h2,.sstf-flow .ss-store-sheet h2,.sstf-flow .ss-product-workspace h2{font-weight:800}
}

/* FIX-01: S&S sale creation card only. */
@layer sstf-hotfix{
  
  
  
  
  
  
  
  
  
  
  
}
@media(max-width:820px){@layer sstf-hotfix{
  .sstf-flow .ss-sales-create-shell .ss-create-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:9px!important}
  
}}
@media(max-width:460px){@layer sstf-hotfix{
  .sstf-flow .ss-sales-create-shell .ss-create-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  
  
}}

/* S&S entry and customer details: scoped to the existing sales screens. */
@layer sstf-hotfix {
 body.sstf-flow .ss-sales-start {padding:var(--sstf-space-3) 14px!important;border-radius:var(--sstf-r-s)!important;box-shadow:var(--sstf-sh-card)!important}
 body.sstf-flow .ss-sales-start .ss-sales-create-head {gap:10px!important;flex-wrap:wrap!important}
 body.sstf-flow .ss-sales-start .ss-sales-create-head h2 {margin:0!important;font-size:var(--sstf-t-card)!important}
 body.sstf-flow .ss-sales-start #ss-create-toggle {min-height:42px!important;border-radius:var(--sstf-r-s)!important;padding:9px 14px!important}
 body.sstf-flow .ss-sales-start #ss-create-card {padding:var(--sstf-space-3)!important;margin-top:var(--sstf-space-3)!important;background:#fff!important;border-radius:var(--sstf-r-s)!important}
 body.sstf-flow .ss-sales-start #ss-create-card[hidden] {display:none!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-create-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important}
 body.sstf-flow .ss-sales-start #ss-create-card label {margin:0!important;min-width:0!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-sales-start #ss-create-card :where(input,select,textarea) {min-width:0!important;min-height:42px!important;margin-top:5px!important;padding:var(--sstf-space-2) 10px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-body)!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-phone-input {display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:6px!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-phone-prefix {min-height:42px!important;margin-top:5px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-phone-prefix[hidden] {display:none!important}
 
 body.sstf-flow .ss-sales-start #ss-create-card .ss-create-address {grid-column:1/-1!important}
 body.sstf-flow .ss-sales-start #ss-create-card textarea {height:58px!important;min-height:58px!important;resize:vertical!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-saved-customer-note {grid-column:1/-1!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-saved-customer-note[hidden] {display:none!important}
 body.sstf-flow .ss-sales-start #ss-create-card form>button {width:auto!important;min-height:42px!important;margin-top:var(--sstf-space-3)!important;padding:9px 20px!important}
 body.sstf-flow .ss-sales-table-wrap {width:100%!important;max-width:100%!important;overflow-x:auto!important;border:1px solid var(--ui-line,#d6dee8)!important;border-radius:var(--sstf-r-s)!important;background:#fff!important}
 body.sstf-flow .ss-sales-table {display:table!important;width:100%!important;min-width:760px!important;border-collapse:collapse!important;border-spacing:0!important;table-layout:auto!important;margin:0!important;white-space:nowrap!important}
 body.sstf-flow .ss-sales-table thead {display:table-header-group!important}
 body.sstf-flow .ss-sales-table tbody {display:table-row-group!important}
 body.sstf-flow .ss-sales-table tr {display:table-row!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow .ss-sales-table :where(th,td) {display:table-cell!important;position:static!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;vertical-align:middle!important;text-align:right!important;border:0!important;border-inline-end:1px solid #e3e8ef!important;border-block-end:1px solid #e3e8ef!important;border-radius:0!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important;line-height:1.45!important;background:transparent!important}
 body.sstf-flow .ss-sales-table th {background:#f1f5fb!important;color:#273e5a!important;font-weight:700!important}
 body.sstf-flow .ss-sales-table td:last-child,body.sstf-flow .ss-sales-table th:last-child {border-inline-end:0!important}
 body.sstf-flow .ss-sales-table tbody tr:last-child td {border-block-end:0!important}
 body.sstf-flow .ss-sales-table .ss-sale-row:hover {background:#f6f9ff!important;cursor:pointer}
 body.sstf-flow .ss-sales-table td small {display:block!important;font-size:var(--sstf-t-small)!important;line-height:1.5!important;color:#66758a!important;margin:2px 0 0!important}
 body.sstf-flow .ss-sales-table .ss-sale-open {color:#345fc2!important;font-weight:750!important;text-decoration:none!important}
 body.sstf-flow .ss-sales-table .ss-sales-customer-cell {min-width:150px!important;max-width:260px!important;white-space:normal!important;}
 body.sstf-flow .ss-sales-table .ss-sales-status {display:inline-block!important;position:static!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border-radius:var(--sstf-r-s)!important;background:#edf2fd!important;color:#345ba0!important;font-size:var(--sstf-t-small)!important;line-height:1.4!important}
 body.sstf-flow .ss-sales-table .ss-sales-status.is-complete {background:#eaf7ee!important;color:#237548!important}
 body.sstf-flow .ss-sales-table .ss-sales-status.is-cancelled {background:#fff0f0!important;color:#a32c35!important}
 body.sstf-flow .ss-sales-table button.ss-order-actions-trigger {display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-card)!important;box-shadow:none!important}
 body.sstf-flow .ss-sales-table td.ss-sales-empty {padding:var(--sstf-space-5)!important;text-align:center!important}
 body.sstf-flow .ss-sale-customer-card .customer-start-content {padding:var(--sstf-space-3)!important}
 
 
 
 
 
 
 @media(max-width:680px) {
  
  body.sstf-flow .ss-sales-start #ss-create-card :where(input,select,textarea),body.sstf-flow .ss-sale-customer-card :where(input,select) {font-size:var(--sstf-t-card)!important}
 }
 @media(max-width:420px) {
  body.sstf-flow .ss-sales-start #ss-create-toggle {white-space:normal!important;font-size:var(--sstf-t-small)!important}
  body.sstf-flow .ss-sales-start #ss-create-card .ss-create-grid {grid-template-columns:minmax(0,1fr)!important}
 }
}

/* S&S cycle: compact order, shared product picker and bounded workspaces. */
@layer sstf-hotfix {
 body.sstf-flow .ss-cycle-header {padding:var(--sstf-space-3)!important;margin:var(--sstf-space-2) 0 10px!important;border-radius:var(--sstf-r-s)!important;background:#fff!important}
 body.sstf-flow .ss-cycle-order-line {display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important;margin:0 0 10px!important;font-size:var(--sstf-t-body)!important}
 body.sstf-flow .ss-cycle-customer-fields {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-2) var(--sstf-space-3)!important;align-items:start!important}
 body.sstf-flow .ss-cycle-customer-fields label {display:block!important;margin:0!important;min-width:0!important;font-size:var(--sstf-t-small)!important;line-height:1.5!important}
 body.sstf-flow .ss-cycle-customer-fields :where(input,select) {width:100%!important;min-width:0!important;min-height:38px!important;margin:3px 0 0!important;padding:7px var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;border-radius:var(--sstf-r-s)!important}
 body.sstf-flow .ss-cycle-customer-fields strong {display:block!important;}
 body.sstf-flow .ss-cycle-extra {min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-cycle-extra summary {padding:var(--sstf-space-2) 0!important;min-height:0!important;cursor:pointer}
 body.sstf-flow .ss-cycle-extra small {display:block!important;font-size:var(--sstf-t-small)!important;margin-top:6px!important}
 body.sstf-flow .ss-cycle-add-actions {display:flex!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0!important}
 body.sstf-flow .ss-cycle-add-actions button {flex:1!important;min-width:0!important;min-height:42px!important;padding:var(--sstf-space-2) 10px!important;font-size:var(--sstf-t-body)!important;border-radius:var(--sstf-r-s)!important}
 /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow main:has(.ss-cycle-header) {min-width:0!important;max-width:100%!important}
 body.sstf-flow:has(.ss-cycle-header) :where(.ss-order-editor,.ss-order-products-flat,.ss-order-management-card,.ss-order-payment-summary,.ss-sale-header-tools) {max-width:100%!important;min-width:0!important}
 body.sstf-flow:has(.ss-cycle-header) :where(.ss-order-product-grid,#ss-store-grid) {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:10px!important;margin:0!important;padding:0!important}
 body.sstf-flow:has(.ss-cycle-header) .ss-order-product-grid :where(article,.inventory-product-card) {display:block!important;min-width:0!important;max-width:100%!important;padding:0!important;border:1px solid #dbe3ed!important;border-radius:var(--sstf-r-s)!important;overflow:hidden!important;box-shadow:var(--sstf-sh-card)!important;background:#fff!important}
 body.sstf-flow:has(.ss-cycle-header) :where(.inventory-product-card-media,.ss-order-product-image) {height:auto!important;min-height:0!important;aspect-ratio:1!important;max-width:100%!important;overflow:hidden!important}
 body.sstf-flow:has(.ss-cycle-header) .inventory-product-card-image {width:100%!important;height:100%!important;object-fit:contain!important}
 /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(head):has(~ :where(body) .ss-cycle-header) ~ body.sstf-flow .inventory-product-card-content {padding:9px!important;min-width:0!important}
 body.sstf-flow:has(.ss-cycle-header) .inventory-product-card-title {display:block!important;min-width:0!important}
 body.sstf-flow:has(.ss-cycle-header) .inventory-product-card-title strong {font-size:var(--sstf-t-small)!important;line-height:1.4!important;white-space:normal!important;}
 body.sstf-flow:has(.ss-cycle-header) .inventory-product-status {display:inline-block!important;position:static!important;font-size:var(--sstf-t-small)!important;padding:3px 6px!important;margin-top:var(--sstf-space-1)!important}
 body.sstf-flow .ss-cart-sizes {display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-1)!important;margin:7px 0!important}
 body.sstf-flow .ss-cart-sizes span {font-size:var(--sstf-t-small)!important;background:#f1f5fb!important;padding:3px 5px!important;border-radius:var(--sstf-r-s)!important}
 body.sstf-flow:has(.ss-cycle-header) .inventory-store-prices {display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:space-between!important}
 body.sstf-flow:has(.ss-cycle-header) .inventory-store-prices b {font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-stock-status {display:block!important;margin:5px 0!important;font-size:var(--sstf-t-small)!important;color:#316245!important}
 body.sstf-flow .ss-picker-add {width:100%!important;min-height:34px!important;margin-top:var(--sstf-space-2)!important;padding:6px!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow :is(#ss-store-sheet,#ss-product-workspace,#ss-access-dialog,#ss-product-actions-sheet,#ss-deposit-sheet,#ss-customer-copy-sheet) {position:fixed!important;inset:0!important;transform:none!important;width:calc(100vw - 24px)!important;max-width:760px!important;height:fit-content!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;box-sizing:border-box!important;overflow:auto!important;border-radius:var(--sstf-r-m)!important}
 body.sstf-flow :where(#ss-product-workspace,#ss-access-dialog) .dialog-card {width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:14px!important;box-sizing:border-box!important}
 body.sstf-flow #ss-store-sheet .ss-product-select[hidden] {display:none!important}
 body.sstf-flow #ss-store-sheet[data-selection-mode=single] .ss-sheet-footer {display:none!important}
 body.sstf-flow #ss-store-sheet[data-selection-mode=single] .inventory-sheet-header>strong {display:none!important}
 body.sstf-flow #ss-store-sheet [hidden] {display:none!important}
 body.sstf-flow #ss-product-workspace .inventory-product-view {display:flex!important;gap:10px!important;max-height:160px!important;overflow:hidden!important;padding:0!important;margin:0!important}
 body.sstf-flow #ss-product-workspace .inventory-product-view-media {width:90px!important;height:90px!important;min-height:0!important;flex:0 0 90px!important;margin:0!important;padding:0!important}
 body.sstf-flow #ss-product-workspace .inventory-product-view-content {flex:1!important;min-width:0!important;padding:0!important}
 body.sstf-flow #ss-product-workspace [data-workspace-image] {width:90px!important;height:90px!important;object-fit:contain!important;flex:0 0 90px!important}
 body.sstf-flow #ss-product-workspace :where(h2,h3) {font-size:var(--sstf-t-card)!important;margin:var(--sstf-space-1) 0!important;line-height:1.4!important}
 body.sstf-flow #ss-product-workspace .inventory-product-view-meta {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 body.sstf-flow #ss-product-workspace .ss-modal-sizes {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;gap:var(--sstf-space-2)!important}
 body.sstf-flow #ss-product-workspace .ss-size-stepper {min-width:0!important;padding:var(--sstf-space-2)!important}
 body.sstf-flow #ss-product-workspace .ss-size-stepper>div {display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;gap:var(--sstf-space-1)!important}
 body.sstf-flow #ss-product-workspace .ss-size-stepper input {width:100%!important;min-width:0!important;padding:5px!important;text-align:center!important}
 body.sstf-flow #ss-product-workspace .ss-size-stepper button {width:32px!important;min-width:32px!important;padding:0!important}
 body.sstf-flow #ss-product-workspace [data-save-product] {background:#e99331!important;color:#fff!important}
 body.sstf-flow #ss-product-workspace :where(.ss-product-panel,.ss-reference-price) {min-width:0!important;padding:10px 0!important}
 body.sstf-flow #ss-product-workspace .ss-product-panel>label {display:flex!important;gap:var(--sstf-space-2)!important;align-items:center!important;flex-wrap:wrap!important;margin:5px 0 10px!important}
 body.sstf-flow #ss-product-workspace .ss-product-panel>label input {width:120px!important;margin:0!important}
 body.sstf-flow #ss-access-dialog header {display:flex!important;justify-content:space-between!important;align-items:center!important}
 body.sstf-flow #ss-access-dialog :where(input,a) {max-width:100%!important;min-width:0!important;}
 body.sstf-flow .ss-after-sale-fields {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
 body.sstf-flow .ss-after-sale-fields[hidden] {display:none!important}
 body.sstf-flow .ss-after-sales label {min-width:0!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-after-sale-note {font-size:var(--sstf-t-small)!important;margin:var(--sstf-space-2) 0!important}
 body.sstf-flow .ss-order-savebar {position:sticky!important;bottom:82px!important;inset-inline:auto!important;width:100%!important;margin:14px 0 0!important;padding:var(--sstf-space-2)!important;box-sizing:border-box!important;background:#ffffffef!important;border:1px solid #dce5ef!important;border-radius:var(--sstf-r-s)!important;z-index:20!important}
 body.sstf-flow .ss-order-savebar .ss-store-submit {display:flex!important;gap:var(--sstf-space-2)!important}
 body.sstf-flow .ss-order-savebar button {flex:1!important;min-width:0!important;font-size:var(--sstf-t-body)!important;padding:9px!important;white-space:normal!important}
 body.sstf-flow .ss-sales-start #ss-create-card .ss-phone-input {grid-template-columns:minmax(0,1fr)!important}
 @media(max-width:680px){
  body.sstf-flow .ss-cycle-customer-fields {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.sstf-flow .ss-cycle-customer-fields :where(input,select) {font-size:var(--sstf-t-card)!important}
  body.sstf-flow:has(.ss-cycle-header) :where(.ss-order-product-grid,#ss-store-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.sstf-flow #ss-product-workspace .inventory-product-view-meta {font-size:var(--sstf-t-small)!important}
 }
 @media(max-width:350px){
  body.sstf-flow:has(.ss-cycle-header) :where(.ss-order-product-grid,#ss-store-grid) {grid-template-columns:minmax(0,1fr)!important}
  body.sstf-flow .ss-cycle-add-actions button {font-size:var(--sstf-t-small)!important}
  body.sstf-flow .ss-after-sale-fields {grid-template-columns:minmax(0,1fr)!important}
 }
}

@layer sstf-hotfix {
 
 body.ss-public-sale .ss-order-product-grid {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:10px!important}
 body.ss-public-sale .ss-order-product-card {display:block!important;min-width:0!important;overflow:hidden!important;padding:10px!important;border-radius:var(--sstf-r-s)!important}
 body.ss-public-sale .ss-order-product-image {width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:contain!important}
 body.ss-public-sale :where(input,select,.ss-change-fields,.ss-customer-change) {max-width:100%!important;min-width:0!important}
 body.ss-public-sale .ss-customer-change-actions {display:block!important}
 body.ss-public-sale .ss-change-fields {display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 body.ss-public-sale .ss-change-stepper {display:grid!important;grid-template-columns:28px minmax(0,1fr) 28px!important;gap:3px!important}
 @media(max-width:680px){body.ss-public-sale .ss-order-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ss-public-sale .ss-order-product-card h3 {font-size:var(--sstf-t-body)!important}}
 @media(max-width:350px){body.ss-public-sale .ss-order-product-grid {grid-template-columns:minmax(0,1fr)!important}}
}

@layer sstf-hotfix {
 body.sstf-flow:has(.ss-cycle-header) .ss-order-product-grid.readonly {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
 body.sstf-flow:has(.ss-cycle-header) .ss-order-product-grid.readonly h3 {white-space:normal!important;line-height:1.5!important}
 body.sstf-flow:has(.ss-cycle-header) .ss-receipts-compact {margin:6px 0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important}
 body.sstf-flow:has(.ss-cycle-header) .ss-receipt-row {padding:10px!important;margin:6px 0!important;min-height:0!important}
 @media(max-width:680px){body.sstf-flow:has(.ss-cycle-header) .ss-order-product-grid.readonly {grid-template-columns:repeat(2,minmax(0,1fr))!important}}
 @media(max-width:350px){body.sstf-flow:has(.ss-cycle-header) .ss-order-product-grid.readonly {grid-template-columns:minmax(0,1fr)!important}}
}

/* S&S sales workspace: shared order cards, local tabs and orange gloss filters. */
@layer sstf-hotfix{
/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow main:has(#ss-sales-workspace){max-width:none!important;min-width:0!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace{width:100%;max-width:100%;min-width:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace [hidden],body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)[hidden],body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet) [hidden]{display:none!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace :where(input,select,textarea,button,a){box-sizing:border-box}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-sales-filters{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:10px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-sales-filters>label{flex:1 1 130px;min-width:0!important;margin:0!important;font-size:var(--sstf-t-small);color:#56301c}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-sales-filters>.ss-sales-search{flex:3 1 250px}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-sales-filters :where(input,select){width:100%!important;min-width:0!important;min-height:44px!important;margin:var(--sstf-space-1) 0 0!important;padding:9px 11px!important;border:1px solid #fff9!important;border-radius:var(--sstf-r-s)!important;background:rgba(255,255,255,.88)!important;color:#253647!important;font-size:var(--sstf-t-card)!important;box-shadow:var(--sstf-rim)!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-sales-filters>button{flex:0 0 auto;min-width:64px!important;min-height:44px!important;margin:0!important;border:1px solid #d38750!important;border-radius:var(--sstf-r-s)!important;background:linear-gradient(145deg,#ffd6a0,#eea466)!important;color:#57301b!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;font-size:var(--sstf-t-body)!important}

}
/* Keep scoped button rules in the priority layer used by the shared controls. */
@layer sstf-hotfix {
body.sstf-flow #ss-sales-workspace .ss-sales-stage-chips{display:flex!important;flex-wrap:nowrap!important;gap:9px!important;width:100%!important;min-width:0!important;margin:var(--sstf-space-3) 0 0!important;padding:2px 1px var(--sstf-space-2)!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#769ddd transparent}
body.sstf-flow #ss-sales-workspace .ss-sales-stage-chips>a{flex:0 0 auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:88px!important;min-height:52px!important;margin:0!important;padding:var(--sstf-space-2) 14px!important;border:1px solid #bad6ef!important;border-radius:var(--sstf-r-m)!important;background:var(--ss-action-blue)!important;color:#193b62!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;text-decoration:none!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;white-space:nowrap!important}
body.sstf-flow #ss-sales-workspace .ss-sales-stage-chips>a[aria-current=page]{background:radial-gradient(ellipse at 22% 0%,#fff5,#fff0 55%),linear-gradient(135deg,#548ec9,#536cbd)!important;border-color:#4169a8!important;color:#fff!important}
body.sstf-flow #ss-sales-workspace .ss-sales-stage-chips>a :where(span,strong){color:inherit!important;background:none!important;box-shadow:none!important;font-size:inherit!important}
body.sstf-flow #ss-sales-workspace .ss-sales-stage-chips>a strong{font-variant-numeric:tabular-nums}
body.sstf-flow #ss-sales-workspace #ss-create-toggle{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:48px!important;margin:0 0 14px!important;padding:11px var(--sstf-space-4)!important;border-radius:var(--sstf-r-m)!important;font-size:var(--sstf-t-card)!important;line-height:1.4!important;white-space:normal!important}
body.sstf-flow #ss-sales-workspace .ss-sales-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.sstf-flow #ss-sales-workspace .ss-sales-tabs>[role=tab]{width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;padding:10px var(--sstf-space-3)!important;border:1px solid #e7a36e!important;border-radius:var(--sstf-r-m)!important;background:radial-gradient(ellipse at 24% 0%,#fff8 0%,#fff0 60%),linear-gradient(140deg,#ffd294,#f1a161 64%,#eaa08b)!important;color:#58321b!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;font-size:var(--sstf-t-card)!important;line-height:1.4!important}
body.sstf-flow #ss-sales-workspace .ss-sales-tabs>[aria-selected=true]{border-color:#ce7434!important;background:radial-gradient(ellipse at 24% 0%,#fff9 0%,#fff0 60%),linear-gradient(140deg,#ffb456,#ed893c)!important;color:#4c2916!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important}
@media(max-width:359px){body.sstf-flow #ss-sales-workspace .ss-sales-tabs>[role=tab]{font-size:var(--sstf-t-body)!important;padding:9px 6px!important}}
}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace :where(#ss-sales-panel-orders,#ss-sales-panel-customers,.ss-account-orders,.ss-account-directory){min-width:0;width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .orders-compact-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;min-width:0!important;margin:0 0 14px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}

}
/* These are the same order-line/order-line-main/order-line-actions classes as the bottom Orders tab. */
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line{min-width:0!important;max-width:100%!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;margin:0!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line-main{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:6px 10px!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line-main>strong{grid-column:1!important;grid-row:1!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line-main>span:not(.state-badge){grid-column:2!important;grid-row:1!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line-main>small{grid-column:1!important;grid-row:2!important;white-space:nowrap}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-order-badges{grid-column:2!important;grid-row:2!important;display:flex!important;gap:5px!important;flex-wrap:wrap!important;align-items:center!important;min-width:0!important}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace [data-ss-sale-card]{cursor:pointer}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line-main>span:not(.state-badge){white-space:normal!important;line-height:1.4!important}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .order-line-actions>.ss-order-actions-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #dce5ed!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#5c76a0!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-page)!important;line-height:1!important}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace :where(button,a,[data-ss-sale-card]):focus-visible{outline:3px solid #2c5baf!important;outline-offset:3px!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace #ss-create-card,body.sstf-flow #ss-sales-workspace .ss-account-create{min-width:0;margin:0 0 14px!important;padding:14px!important;border:1px solid #dce3eb!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-account-create>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);min-height:30px;cursor:pointer;list-style:none;font-size:var(--sstf-t-body);font-weight:750;color:#263f5e}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-account-create>summary::-webkit-details-marker{display:none}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-account-create>form{margin-top:var(--sstf-space-3)}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-create-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important;min-width:0;align-items:end}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-create-grid :where(label,.ss-phone-input){min-width:0!important;margin:0!important}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-create-grid :where(input,select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;margin-top:5px!important;border-radius:var(--sstf-r-s)!important;font-size:var(--sstf-t-card)!important;box-sizing:border-box}

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-create-grid textarea{height:62px!important;min-height:62px!important;resize:vertical}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-saved-customer-note{margin:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:var(--sstf-t-small)!important}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-account-create .ss-phone-input{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:6px!important;direction:ltr}

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{

}
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace .ss-account-orders>h2{font-size:var(--sstf-t-card);margin:var(--sstf-space-4) 2px 10px}

}
@layer sstf-hotfix{

}
body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet){
 position:fixed!important;inset:auto;z-index:1200;width:min(224px,calc(100vw - 16px))!important;min-width:min(190px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;margin:0!important;padding:6px!important;overflow:auto;box-sizing:border-box;border:1px solid #dae2eb!important;border-radius:var(--sstf-r-m)!important;background:rgba(255,255,255,.98)!important;color:#263f5e;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);animation:ss-sales-menu-in .14s ease-out;
}
body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:10px var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:transparent!important;color:#2f4360!important;text-align:start!important;box-shadow:none!important;font-size:var(--sstf-t-body)!important;line-height:1.4!important}
body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button[data-tone=danger]{color:#ac3240!important}
body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button:where(:hover,:focus-visible){background:#f0f4fa!important;outline:none!important}
body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button:disabled{opacity:.45;cursor:not-allowed}
@layer sstf-hotfix{
body.sstf-flow:has(#ss-sales-workspace) #ss-order-confirm-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto}

}
body.sstf-flow .ss-cycle-access-management{margin:var(--sstf-space-3) 0;padding:10px var(--sstf-space-3);border:1px solid #dde5ee;border-radius:var(--sstf-r-s);background:#fff}
body.sstf-flow .ss-cycle-access-management summary{cursor:pointer;font-size:var(--sstf-t-body);font-weight:700}
@keyframes ss-sales-menu-in{from{opacity:0;translate:-6px 0}to{opacity:1;translate:0 0}}
@media(max-width:959px){
 @layer sstf-hotfix{
 /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow main:has(#ss-sales-workspace){padding-left:max(8px,env(safe-area-inset-left))!important;padding-right:max(8px,env(safe-area-inset-right))!important}

}
 @layer sstf-hotfix{

}
 @layer sstf-hotfix{

}
 @layer sstf-hotfix{
 body.sstf-flow #ss-sales-workspace .order-line{padding:13px!important;gap:var(--sstf-space-2)!important}

}
}
@media(max-width:600px){
 @layer sstf-hotfix{
 body.sstf-flow #ss-sales-workspace .ss-sales-filters>.ss-sales-search{flex-basis:100%}

}
}
@media(max-width:359px){
 @layer sstf-hotfix{
 body.sstf-flow #ss-sales-workspace .ss-create-grid{grid-template-columns:minmax(0,1fr)!important}

}
 @layer sstf-hotfix{
 body.sstf-flow #ss-sales-workspace .order-line{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}

}
 @layer sstf-hotfix{
 body.sstf-flow #ss-sales-workspace .order-line-actions{justify-content:flex-end!important}

}
}
@media(prefers-reduced-motion:reduce){body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet){animation:none}}

/* S&S shared role workspace. Cards, anchored menus and centered actions share one implementation. */
@layer sstf-hotfix {
 body.sstf-flow{--ss-action-blue:radial-gradient(ellipse at 22% 0%,#fff9 0%,#fff0 58%),linear-gradient(135deg,#7fc8eb 0%,#6896de 58%,#7274cd 100%);--ss-action-green:radial-gradient(ellipse at 22% 0%,#fffc 0%,#fff0 58%),linear-gradient(135deg,#9edecb,#4bb79c 62%,#589bc3)}
 /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow #ss-sales-workspace [hidden],:where(head):has(~ :where(body) .ss-unified-workspace) ~ body.sstf-flow [hidden]{display:none!important}
 body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button{background:var(--ss-action-blue)!important;color:#163457!important;border:1px solid #d7eaff!important;box-shadow:var(--sstf-sh-card)!important;margin:var(--sstf-space-1) 0!important}
 body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button[data-tone=danger]{color:#183453!important}
 body.sstf-flow :is(#ss-order-actions-menu,#order-actions-sheet)>button:disabled{opacity:.5!important}
 /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow main:has(.ss-unified-workspace){width:100%!important;max-width:none!important;min-width:0!important;padding-inline:max(8px,env(safe-area-inset-left))!important}
 body.sstf-flow :is(.ss-unified-workspace,.ss-order-editor,.ss-order-products-flat,.permanent-customer-draft,.permanent-order-items){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow .ss-order-identity{padding:var(--sstf-space-3)!important;margin:0 0 14px!important;border:1px solid #e0e7f0!important;border-radius:var(--sstf-r-l)!important;background:linear-gradient(105deg,#fff 5%,#f4f8fc 52%,#dfedfa 100%)!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important}
 body.sstf-flow .ss-identity-row{display:grid!important;grid-template-columns:.7fr 1.2fr .7fr 1.4fr .9fr!important;gap:0!important;min-width:0!important}
 body.sstf-flow .ss-identity-row>div{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:var(--sstf-space-2)!important;text-align:center!important;min-width:0!important;padding:var(--sstf-space-3) var(--sstf-space-2)!important;border-inline-start:1px solid #dce4ed!important;box-shadow:inset -1px 0 0 #ffffffb3!important}
 body.sstf-flow .ss-identity-row>div:first-child{border:0!important;box-shadow:none!important}
 body.sstf-flow .ss-identity-row small{color:#77818a!important;font-size:var(--sstf-t-small)!important;line-height:1.4!important}
 body.sstf-flow .ss-identity-row strong{color:#182a3d!important;font-size:var(--sstf-t-card)!important;line-height:1.5!important;}
 body.sstf-flow .ss-identity-footer{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2) 14px!important;margin-top:var(--sstf-space-2)!important;font-size:var(--sstf-t-small)!important}
 body.sstf-flow .ss-identity-footer>button{margin-inline-start:auto!important;min-height:36px!important;font-size:var(--sstf-t-small)!important;padding:6px 10px!important}
 body.sstf-flow :is(.ss-unified-workspace,.permanent-customer-draft,.ss-intake-workspace) .ss-order-product-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;width:100%!important;min-width:0!important;margin:var(--sstf-space-3) 0 var(--sstf-space-4)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow :is(.ss-unified-workspace,.permanent-customer-draft,.ss-intake-workspace) .ss-unified-product{display:block!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important;border:1px solid #e4e9ef!important;border-radius:var(--sstf-r-m)!important;overflow:hidden!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;cursor:default!important}
 body.sstf-flow .ss-intake-section{padding:0!important;margin:var(--sstf-space-4) 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow .ss-intake-review{padding:0!important;margin:0!important;border:0!important;min-width:0!important}
 body.sstf-flow .ss-unified-product .inventory-product-card-media{position:relative!important;aspect-ratio:1/1!important;height:auto!important;min-height:0!important;background:#f7f8fa!important;overflow:hidden!important;border:0!important;border-radius:0!important;padding:10px!important}
 body.sstf-flow .ss-unified-product .inventory-product-card-image{display:block!important;position:static!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;background:transparent!important;mix-blend-mode:multiply}
 body.sstf-flow .ss-unified-product .inventory-product-card-content{display:block!important;padding:10px!important;margin:0!important;background:#fff!important;border:0!important}
 body.sstf-flow .ss-unified-product .ss-card-name{display:block!important;min-height:40px!important;margin:0 0 var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;font-weight:750!important;line-height:1.4!important;color:#172b3c!important;text-align:center!important;white-space:normal!important;}
 body.sstf-flow .ss-unified-product .inventory-store-prices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0!important;padding:0!important}
 body.sstf-flow .ss-unified-product .inventory-store-prices>span{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;padding:10px var(--sstf-space-1)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:#f6f8fb!important;text-align:center!important}
 body.sstf-flow .ss-unified-product .inventory-store-prices small{font-size:var(--sstf-t-small)!important;color:#657383!important;line-height:1.4!important}
 body.sstf-flow .ss-unified-product .inventory-store-prices b{font-size:var(--sstf-t-small)!important;color:#21384d!important;white-space:normal!important;line-height:1.4!important}
 body.sstf-flow .ss-unified-product .ss-product-info{position:absolute!important;top:10px!important;right:10px!important;left:auto!important;display:grid!important;place-items:center!important;width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;padding:0!important;margin:0!important;border:1px solid #cbd8e5!important;border-radius:50%!important;background:#ffffffed!important;color:#486c96!important;box-shadow:var(--sstf-sh-card)!important;z-index:2!important}
 body.sstf-flow .ss-unified-product .ss-product-info::before{content:'';position:absolute;inset:-8px;border-radius:50%}
 body.sstf-flow .ss-unified-product .ss-product-info svg{width:24px!important;height:24px!important;pointer-events:none}
 body.sstf-flow .ss-card-menu{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:1px solid #d7e1ec!important;border-radius:var(--sstf-r-m)!important;background:#fffffff5!important;color:#6285ae!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
 body.sstf-flow .ss-unified-product .ss-card-menu{position:absolute!important;top:8px!important;left:8px!important;right:auto!important;z-index:2!important}
 body.sstf-flow .page-heading:has([data-ss-order-menu]){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
 body.sstf-flow .workspace-quick-tools:has([data-chat-thread]){display:flex!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important}
 
 body.sstf-flow .ss-quick-popover{position:fixed!important;inset:auto;z-index:1500!important;box-sizing:border-box!important;width:min(224px,calc(100vw - 16px))!important;min-width:min(190px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;margin:0!important;padding:7px!important;border:1px solid #d9e3ed!important;border-radius:var(--sstf-r-m)!important;background:#fffffffa!important;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
 body.sstf-flow .ss-options-popover>div{display:grid!important;gap:7px!important}
 body.sstf-flow details.row-actions{display:inline-block!important;position:relative!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow details.row-actions>summary{list-style:none!important;cursor:pointer!important}
 body.sstf-flow details.row-actions>summary::-webkit-details-marker{display:none!important}
 body.sstf-flow details.row-actions>div{position:fixed!important;inset:auto!important;z-index:1500!important;display:none!important;grid-template-columns:1fr!important;gap:7px!important;box-sizing:border-box!important;width:min(224px,calc(100vw - 16px))!important;min-width:min(190px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;margin:0!important;padding:7px!important;overflow:auto!important;border:1px solid #d9e3ed!important;border-radius:var(--sstf-r-m)!important;background:#fffffffa!important;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
 body.sstf-flow details.row-actions[open]>div{display:grid!important}
 body.sstf-flow details.row-actions>div>:is(button,a){width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;text-align:start!important}
body.sstf-flow .ss-action-modal button:not([hidden]):not(.ss-dialog-close):not([data-delta]):not(.ss-product-info):not(.ss-card-menu):not(.ss-add-many):not(.ss-add-one):not(.sstf-card-button){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;margin:var(--sstf-space-2) 0 0!important;padding:10px 13px!important;border:1px solid #b9d6f2!important;border-radius:var(--sstf-r-s)!important;background:var(--ss-action-blue)!important;color:#173758!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;font-size:var(--sstf-t-body)!important;line-height:1.5!important;white-space:normal!important}
 body.sstf-flow .ss-quick-facts>div{display:grid!important;gap:var(--sstf-space-1)!important;padding:9px 6px!important;border-bottom:1px solid #edf1f6!important;box-shadow:var(--sstf-sh-card)!important}
 body.sstf-flow .ss-quick-facts small{font-size:var(--sstf-t-small)!important;color:#738197!important}
 body.sstf-flow .ss-quick-facts strong{font-size:var(--sstf-t-body)!important;line-height:1.5!important;color:#243b55!important;}
 body.sstf-flow dialog.ss-action-modal{--ss-modal-min:360px;--ss-modal-max:620px;position:fixed!important;inset:0!important;box-sizing:border-box!important;width:fit-content!important;min-width:min(var(--ss-modal-min),calc(100vw - 24px))!important;max-width:min(var(--ss-modal-max),calc(100vw - 24px))!important;max-height:min(88dvh,840px)!important;height:fit-content!important;margin:auto!important;padding:14px!important;border:1px solid #e0e7ee!important;border-radius:var(--sstf-r-l)!important;background:#fffffffa!important;color:#243b55!important;box-shadow:var(--sstf-sh-card)!important;overflow:auto!important;overscroll-behavior:contain!important;transform:none!important;translate:none!important;animation:none!important}
 body.sstf-flow dialog.ss-action-modal.ss-modal-compact{--ss-modal-min:300px!important;--ss-modal-max:440px!important}
 body.sstf-flow dialog.ss-action-modal.ss-modal-standard{--ss-modal-min:360px!important;--ss-modal-max:620px!important}
body.sstf-flow dialog.ss-action-modal.ss-modal-wide{--ss-modal-min:480px!important;--ss-modal-max:780px!important}
 
 body.sstf-flow dialog.ss-action-modal:not([open]){display:none!important}
 body.sstf-flow dialog.ss-action-modal[open]{display:block!important}
 
 
 body.sstf-flow .ss-action-modal>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:0 0 10px!important;margin:0!important;border-bottom:1px solid #e8edf3!important;background:#fffffffa!important;position:sticky!important;top:0!important;z-index:3!important}
 body.sstf-flow dialog.ss-action-modal>:is(footer,.ss-sheet-footer,.wizard-foot,.stocktake-sheet-submit,.pricing-workspace-actions){position:sticky!important;bottom:0!important;z-index:4!important;background:#fffffffa!important}
 body.sstf-flow .ss-action-modal h2{font-size:var(--sstf-t-card)!important;line-height:1.5!important;margin:0!important;color:#243b55!important}
 body.sstf-flow .ss-action-modal .ss-dialog-close{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;background:#f4f7fb!important;color:#597797!important;border:1px solid #dde5ee!important;border-radius:50%!important;box-shadow:none!important;font-size:var(--sstf-t-page)!important}
 body.sstf-flow .ss-action-body{padding-top:10px!important;min-width:0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
 body.sstf-flow .ss-action-modal :is(input,select,textarea){box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:44px!important;margin:5px 0 0!important;padding:9px 10px!important;border:1px solid #d7e1eb!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;color:#243b55!important;font-size:var(--sstf-t-card)!important;line-height:1.5!important}
 body.sstf-flow .ss-action-modal input[type=checkbox],body.sstf-flow .ss-unified-product input[type=checkbox]{width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0!important;flex:0 0 20px!important}
 body.sstf-flow .ss-action-modal .account-check{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
 body.sstf-flow .ss-action-modal .ss-modal-sizes{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(max(calc((var(--sstf-touch) - var(--sstf-space-1)) * 2 + var(--sstf-space-1) * 2 + 24px + var(--sstf-space-2) * 2 + 2px),calc((100% - 8px * 2) / 3)),1fr))!important;gap:var(--sstf-space-3) var(--sstf-space-2)!important;margin:10px 0!important}
 body.sstf-flow .ss-action-modal .ss-size-stepper{display:flex!important;flex-direction:column!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important;padding:var(--sstf-space-2) 0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
 body.sstf-flow .ss-action-modal .ss-size-stepper>strong{display:grid!important;place-items:center!important;width:58px!important;height:58px!important;border:1px solid #d7dfe8!important;border-radius:50%!important;font-size:var(--sstf-t-page)!important;font-weight:500!important;background:#fff!important;color:#2a3d52!important}
 body.sstf-flow .ss-action-modal .ss-size-stepper>small{font-size:var(--sstf-t-small)!important;line-height:1.3!important;color:#7c8ca0!important}
 body.sstf-flow .ss-action-modal .ss-size-stepper>div{display:grid!important;grid-template-columns:30px minmax(24px,1fr) 30px!important;gap:2px!important;width:100%!important;direction:rtl!important}
 body.sstf-flow .ss-action-modal .ss-size-stepper button[data-delta]{display:grid!important;place-items:center!important;min-width:30px!important;min-height:30px!important;width:30px!important;height:30px!important;padding:0!important;margin:0!important;border:1px solid #cdd9e5!important;border-radius:50%!important;background:#fff!important;box-shadow:none!important;color:#5c7897!important;font-size:var(--sstf-t-page)!important;font-weight:400!important;line-height:1!important}
 body.sstf-flow .ss-action-modal .ss-size-stepper input{height:32px!important;min-height:32px!important;margin:0!important;padding:0 2px!important;border:0!important;box-shadow:none!important;text-align:center!important;direction:ltr!important;background:transparent!important;font-size:var(--sstf-t-card)!important}
 body.sstf-flow .ss-money-field{display:flex!important;align-items:center!important;gap:9px!important;direction:ltr!important}
 body.sstf-flow .ss-pick-check{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:var(--sstf-t-small)!important;margin:10px 0 0!important;padding:0!important;pointer-events:auto!important;cursor:pointer!important}
 body.sstf-flow .ss-pick-check input{pointer-events:auto!important;cursor:pointer!important}
 body.sstf-flow .ss-order-payment-summary{padding:var(--sstf-space-3)!important;margin:14px 0!important;border:1px solid #e0e7f0!important;border-radius:var(--sstf-r-m)!important;background:linear-gradient(130deg,#fff,#f3f8fe)!important;box-shadow:var(--sstf-sh-card)!important}
 body.sstf-flow .ss-order-payment-summary .ss-summary-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(105px,1fr))!important;gap:10px!important}
 body.sstf-flow .ss-order-payment-summary .ss-summary-grid>div{display:grid!important;gap:6px!important;min-width:0!important}
 body.sstf-flow .ss-order-payment-summary small{font-size:var(--sstf-t-small)!important;color:#748294!important}
 body.sstf-flow .ss-order-payment-summary strong{font-size:var(--sstf-t-body)!important;line-height:1.5!important;}
 body.sstf-flow .ss-payment-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:var(--sstf-space-3)!important}
 body.sstf-flow .finance-payment-list{display:grid!important;gap:10px!important;margin-top:var(--sstf-space-3)!important}
 body.sstf-flow .finance-payment-card{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
 body.sstf-flow .finance-payment-card>div:first-child{display:grid!important;gap:var(--sstf-space-1)!important;min-width:0!important}
 body.sstf-flow .finance-payment-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
 body.sstf-flow .finance-payment-actions .ss-card-menu{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border-radius:var(--sstf-r-s)!important;background:#f3f7fb!important;color:#315578!important}
 body.sstf-flow .finance-primary-action{margin:var(--sstf-space-3) 0 0!important}
 body.sstf-flow .ss-action-modal :is(.ss-sheet-footer,.stocktake-sheet-submit,.pricing-workspace-actions){position:sticky!important;bottom:0!important;z-index:3!important;margin-top:10px!important;padding-top:10px!important;background:#fffffffa!important;border-top:1px solid #e8edf3!important}
 @media(max-width:700px){body.sstf-flow .finance-payment-card{grid-template-columns:1fr!important}body.sstf-flow .finance-payment-actions{justify-content:flex-start!important}body.sstf-flow dialog.ss-action-modal{width:fit-content!important;min-width:min(var(--ss-modal-min),calc(100vw - 18px))!important;max-width:min(var(--ss-modal-max),calc(100vw - 18px))!important;max-height:min(90dvh,840px)!important}}
 body.sstf-flow .ss-request-history{margin:14px 0!important;min-width:0!important}
 body.sstf-flow .ss-request-history .order-line{margin:var(--sstf-space-2) 0!important}
 @media(max-width:1000px){body.sstf-flow :is(.ss-unified-workspace,.permanent-customer-draft,.ss-intake-workspace) .ss-order-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
 @media(max-width:700px){body.sstf-flow :is(.ss-unified-workspace,.permanent-customer-draft,.ss-intake-workspace) .ss-order-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body.sstf-flow .ss-identity-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.sstf-flow .ss-identity-row>div{padding:9px 5px!important}body.sstf-flow .ss-identity-row strong{font-size:var(--sstf-t-body)!important}body.sstf-flow .ss-identity-row small{font-size:var(--sstf-t-small)!important}}
 @media(max-width:360px){body.sstf-flow .ss-action-modal .ss-modal-sizes{grid-template-columns:repeat(auto-fill,minmax(max(calc((var(--sstf-touch) - var(--sstf-space-1)) * 2 + var(--sstf-space-1) * 2 + 24px + var(--sstf-space-2) * 2 + 2px),calc((100% - 8px) / 2)),1fr))!important}body.sstf-flow .ss-unified-product .inventory-product-card-content{padding:var(--sstf-space-2) 5px!important}body.sstf-flow .ss-unified-product .ss-card-name{font-size:var(--sstf-t-small)!important}body.sstf-flow .ss-unified-product .inventory-store-prices b{font-size:var(--sstf-t-small)!important}}
}

@layer sstf-hotfix {
body.sstf-flow :is([data-ss-state],.state-badge[class*=status-ss_]){border:1px solid transparent!important;box-shadow:var(--sstf-rim)fa8!important;border-radius:var(--sstf-radius-pill)!important;padding:5px 10px!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;line-height:1.5!important}
}

@layer sstf-hotfix {
 body.sstf-flow dialog.ss-action-modal.ss-store-sheet{width:min(850px,calc(100vw - 20px))!important}
 body.sstf-flow dialog.ss-action-modal.ss-store-sheet .ss-store-sheet-body{max-height:calc(100dvh - 220px)!important;overflow-y:auto!important;padding:10px 0!important}
 body.sstf-flow dialog.ss-action-modal.ss-store-sheet .inventory-products-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
 body.sstf-flow .ss-customer-orders-flat{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow .permanent-orders-list{display:grid!important;gap:var(--sstf-space-3)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 @media(max-width:700px){body.sstf-flow dialog.ss-action-modal.ss-store-sheet .inventory-products-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
}
/* S&S Quick Glass v1 — compact quantities and shared utility dialogs. */
@layer sstf-hotfix {
 body.sstf-flow dialog.ss-action-modal.ss-quantity-modal{width:min(360px,calc(100vw - 24px))!important;max-height:min(430px,52dvh)!important;padding:var(--sstf-space-3)!important;overflow:hidden!important}
 body.sstf-flow dialog.ss-action-modal.ss-quantity-modal[open]{display:flex!important;flex-direction:column!important}
 body.sstf-flow dialog.ss-quantity-modal>header{flex:0 0 auto!important;padding-bottom:7px!important}
 body.sstf-flow dialog.ss-quantity-modal>header h2{font-size:var(--sstf-t-body)!important}
 body.sstf-flow dialog.ss-quantity-modal .ss-action-body{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:auto!important;gap:6px!important;padding-top:6px!important}
 body.sstf-flow dialog.ss-quantity-modal .ss-action-body>.ss-modal-sizes,body.sstf-flow dialog.ss-quantity-modal .ss-action-body>div:has(>.ss-modal-sizes){min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;max-height:calc(52dvh - 138px)!important}
 body.sstf-flow dialog.ss-quantity-modal .ss-action-body>button{flex-shrink:0!important;align-self:flex-end!important;min-height:36px!important;margin:3px 0 0!important;padding:6px var(--sstf-space-4)!important}
 body.sstf-flow dialog.ss-quantity-modal .ss-modal-sizes{grid-template-columns:repeat(auto-fill,minmax(max(calc((var(--sstf-touch) - var(--sstf-space-1)) * 2 + var(--sstf-space-1) * 2 + 24px + var(--sstf-space-2) * 2 + 2px),calc(100% / 3)),1fr))!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-modal-sizes{gap:var(--sstf-space-2)!important;margin:0!important;padding:var(--sstf-space-1) 2px!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-modal-sizes .ss-size-stepper{gap:var(--sstf-space-1)!important;padding:var(--sstf-space-1) 0!important;min-width:0!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper>strong{width:34px!important;height:34px!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper>small{font-size:var(--sstf-t-small)!important;margin:0!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper>div{grid-template-columns:25px minmax(20px,1fr) 25px!important;gap:3px!important;align-items:center!important;max-width:90px!important;margin:0!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper button[data-delta]{width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;max-width:25px!important;padding:0!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper input{width:100%!important;min-width:0!important;height:28px!important;min-height:28px!important;padding:0!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper.is-available>strong,body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper.is-available button[data-delta]:not(:disabled){background:var(--ss-action-green)!important;color:#124b3e!important;border-color:#8ecbb6!important;box-shadow:var(--sstf-rim)!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper button[data-delta]:disabled{background:#f1f3f5!important;color:#a1abb5!important;border-color:#e0e5e9!important;opacity:.65!important}
 body.sstf-flow #ss-access-dialog .ss-copy-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:var(--sstf-space-2)!important}
 body.sstf-flow #ss-access-dialog .ss-copy-field input{min-width:0!important;width:100%!important}
 body.sstf-flow #ss-access-dialog .ss-copy-field .ss-field-copy{min-width:48px!important;min-height:40px!important;margin:5px 0 0!important;padding:6px 10px!important;font-size:var(--sstf-t-small)!important;white-space:nowrap!important}
 body.sstf-flow .app-header .app-back{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;padding:5px!important;margin:0!important;border:1px solid #dce5ef!important;border-radius:var(--sstf-r-s)!important;background:linear-gradient(145deg,#fff,#eef5fc)!important;color:#5880b4!important}
 body.sstf-flow .app-header .app-back svg{width:22px!important;height:22px!important}
 body.sstf-flow .app-header:has(.app-back){gap:6px!important}
 body.sstf-flow .app-header .brand-lockup{min-width:0!important;flex-shrink:1!important}
 body.sstf-flow dialog:is(#sstf-chat-overlay,#sstf-app-panel,#sstf-calculator){position:fixed!important;inset:0!important;margin:auto!important;width:min(410px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:fit-content!important;max-height:calc(var(--sstf-visual-height,100dvh) - 40px)!important;padding:14px!important;border:1px solid #dce5ef!important;border-radius:var(--sstf-r-l)!important;background:#fffffffa!important;box-shadow:var(--sstf-sh-card)!important;transform:none!important;translate:none!important;animation:none!important;overflow:auto!important;box-sizing:border-box!important}
 body.sstf-flow dialog:is(#sstf-chat-overlay,#sstf-app-panel,#sstf-calculator):not([open]){display:none!important}
 body.sstf-flow dialog:is(#sstf-chat-overlay,#sstf-app-panel,#sstf-calculator)::backdrop{background:#dce6f08c!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
 body.sstf-flow #sstf-chat-overlay{width:min(720px,calc(100vw - 24px))!important;height:min(540px,65dvh)!important;padding:0!important;overflow:hidden!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-layout,body.sstf-flow #sstf-chat-overlay .chat-overlay-conversation,body.sstf-flow #sstf-chat-overlay .chat-overlay-active{min-height:0!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-messages{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-form textarea{min-height:38px!important;max-height:75px!important;font-size:var(--sstf-t-card)!important}
body.sstf-flow #sstf-app-panel>:not(.app-panel-heading):not(.app-control-grid),body.sstf-flow #sstf-app-panel #sstf-test-server{display:none!important}
 body.sstf-flow #sstf-app-panel{width:min(340px,calc(100vw - 24px))!important}
 body.sstf-flow :is(#sstf-app-panel,#sstf-calculator) button:not(.sstf-card-button),body.sstf-flow #sstf-chat-overlay .chat-compose button{background:var(--ss-action-blue)!important;color:#173758!important;border:1px solid #b9d6f2!important;border-radius:var(--sstf-r-s)!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;font-weight:750!important}
 
 body.sstf-flow #sstf-calculator .drawer-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin:0 0 10px!important;padding:0 0 var(--sstf-space-2)!important}
 
 
 body.sstf-flow #sstf-calculator [data-calc-key]{min-height:40px!important;height:42px!important;padding:5px!important;font-size:var(--sstf-t-card)!important;margin:0!important}
 body.sstf-flow #sstf-calculator [data-calc-key="="],body.sstf-flow #sstf-app-panel #sstf-push{background:var(--ss-action-green)!important;color:#124b3e!important;border-color:#8ecbb6!important}
 body.sstf-flow :is(#sstf-calculator,#sstf-chat-overlay) :is([data-calculator-close],[data-close-chat]),body.sstf-flow #sstf-app-panel .app-settings-close{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:5px!important;font-size:var(--sstf-t-small)!important;border-radius:50%!important}
}

/* Quick Glass quantity controls: scoped exception to the coarse-pointer floor.
 * Keep this in the first layer, where compatibility !important rules live. */
@layer sstf-compat {
 body.sstf-flow dialog.ss-action-modal.ss-quantity-modal{max-height:min(430px,52dvh)!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper button[data-delta]{inline-size:25px!important;min-inline-size:25px!important;max-inline-size:25px!important;block-size:25px!important;min-block-size:25px!important;max-block-size:25px!important;box-sizing:border-box!important}
}
@layer sstf-hotfix {
 body.sstf-flow dialog.ss-quantity-modal .ss-modal-sizes{grid-auto-rows:max-content!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-modal-sizes{align-content:start!important;align-items:start!important;padding:var(--sstf-space-2) 2px!important;scroll-padding-block:8px!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-modal-sizes .ss-size-stepper{height:auto!important;min-height:0!important;justify-content:flex-start!important;overflow:visible!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper>strong{flex:0 0 34px!important;min-height:34px!important;box-sizing:border-box!important;line-height:1!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper>small,body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper>div{flex-shrink:0!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper input{box-sizing:border-box!important;min-inline-size:0!important;max-inline-size:100%!important}
}

/* S&S Quick Glass — account/create surfaces and comfortable conversations. */
@layer sstf-hotfix {
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-modal-sizes{column-gap:0!important;row-gap:0!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper:nth-child(n+4){border-top:1px solid #dce8f2!important;box-shadow:var(--sstf-rim)!important;margin-top:var(--sstf-space-2)!important;padding-top:10px!important}
 body.sstf-flow dialog:is(.ss-quantity-modal,.ss-b2b-wizard) .ss-size-stepper.is-available button[data-delta]:not(:disabled){background:var(--ss-action-blue)!important;border-color:#b9d6f2!important;color:#173758!important;box-shadow:var(--sstf-rim)!important}
 body.sstf-flow dialog#sstf-chat-overlay{padding:0!important;overflow:hidden!important;width:min(940px,calc(100vw - 20px))!important;height:min(780px,86dvh)!important;max-height:calc(var(--sstf-visual-height,100dvh) - 24px)!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-layout{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;position:relative!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-conversation{position:relative!important;inset:auto!important;height:100%!important;overflow:hidden!important;padding:0!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-active:not([hidden]){display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-titlebar,body.sstf-flow #sstf-chat-overlay .chat-overlay-form,body.sstf-flow #sstf-chat-overlay .chat-load-older{flex:0 0 auto!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-messages{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important}
 body.sstf-flow #sstf-chat-overlay .chat-compose{display:grid!important;grid-template-columns:1fr auto!important;gap:var(--sstf-space-2)!important;width:100%!important;margin:0!important}
 body.sstf-flow #sstf-chat-overlay .chat-compose textarea{grid-column:1/-1!important;width:100%!important;box-sizing:border-box!important;height:46px!important;min-height:46px!important;max-height:46px!important;resize:none!important}
 body.sstf-flow #sstf-chat-overlay .chat-compose button{justify-self:end!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-form{margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important}
 body.sstf-flow #sstf-chat-overlay .chat-overlay-form p:empty,body.sstf-flow #sstf-chat-overlay .chat-overlay-form small:empty{display:none!important}
 body.sstf-flow .ss-create-glass{width:min(570px,calc(100vw - 24px))!important}
 body.sstf-flow .ss-create-glass #ss-create-card{display:block!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
 body.sstf-flow .ss-create-glass .ss-create-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.sstf-flow .ss-account-orders,body.sstf-flow .ss-account-directory,body.sstf-flow .permanent-customer-draft{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
 body.sstf-flow .ss-message-count{display:inline-grid;place-items:center;position:absolute;top:-5px;inset-inline-end:-5px;min-width:19px;height:19px;border-radius:0;background:transparent;color:#c62828;font-size:var(--sstf-t-small);font-weight:800;box-shadow:none}
 body.sstf-flow .ss-message-count[hidden]{display:none!important}
 body.sstf-flow :is(.chat-launch,.app-settings-open){position:relative!important}
 @media(max-width:700px){body.sstf-flow #sstf-chat-overlay .chat-overlay-threads{display:none!important}body.sstf-flow #sstf-chat-overlay.show-threads .chat-overlay-threads{display:block!important}body.sstf-flow #sstf-chat-overlay.show-threads .chat-overlay-conversation{display:none!important}}
}
@layer sstf-hotfix {
 body.sstf-flow .ss-account-filter{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:var(--sstf-space-3)!important;margin:var(--sstf-space-3) 0!important;border-radius:var(--sstf-r-m)!important;background:radial-gradient(circle at 15% 0%,#fff9,transparent 45%),linear-gradient(130deg,#ffd58d,#ffa961 60%,#dda6bb)!important}
 body.sstf-flow .ss-account-filter input{min-width:0!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line[hidden]{display:none!important}
 body.sstf-flow .ss-create-glass .ss-create-grid input,body.sstf-flow .ss-create-glass .ss-create-grid select,body.sstf-flow .ss-create-glass .ss-create-grid textarea{width:100%!important;box-sizing:border-box!important;min-width:0!important}
 body.sstf-flow .permanent-customer-draft>.ss-add-products-button{display:inline-flex!important;width:auto!important;margin:var(--sstf-space-2) var(--sstf-space-1)!important;background:var(--ss-action-blue)!important}
}

/* Permanent customers — approved S&S Quick Glass integration.
 * Staff account management stays isolated to the permanent-customer account page.
 * Customer portal reuses the same S&S cards without exposing staff actions. */
@layer sstf-hotfix {
 body.sstf-flow #ss-sales-workspace.ss-account-workspace{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
 body.sstf-flow #ss-sales-workspace.ss-account-workspace .permanent-account-summary{display:block!important;width:100%!important;min-width:0!important;margin:0 0 var(--sstf-space-3)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;align-items:end!important;width:100%!important;margin:0!important}
 body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters>.ss-sales-search{grid-column:1/-1!important}
 body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters>label{min-width:0!important;margin:0!important;color:#60381f!important;font-size:var(--sstf-t-small)!important;font-weight:700!important}
 body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters :is(input,select){width:100%!important;min-width:0!important;min-height:43px!important;box-sizing:border-box!important;margin:5px 0 0!important;padding:var(--sstf-space-2) 10px!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:var(--sstf-r-s)!important;background:rgba(255,255,255,.91)!important;color:#24384c!important;box-shadow:var(--sstf-rim)!important;font-size:var(--sstf-t-body)!important}
 body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters>button{min-height:43px!important;width:100%!important;margin:0!important;border-radius:var(--sstf-r-s)!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line{position:relative!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:14px!important;gap:10px!important;border:1px solid #dfe7ef!important;border-radius:var(--sstf-r-m)!important;background:rgba(255,255,255,.97)!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line-main{min-width:0!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line-main>strong{color:#182b3e!important;font-size:var(--sstf-t-card)!important;font-weight:850!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line-main>span:not(.state-badge){color:#172b3f!important;font-weight:750!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line-main>small{color:#748294!important}
 body.sstf-flow :is(.ss-account-orders,.ss-account-directory,.permanent-orders-list) .order-line-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
 body.sstf-flow .ss-account-page-menu-trigger{display:inline-grid!important;place-items:center!important;flex:0 0 48px!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
 body.sstf-flow .ss-account-page-menu-trigger>span{font-size:var(--sstf-t-page)!important;line-height:1!important;transform:translateY(-2px)}
 body.sstf-flow .ss-account-card-menu-trigger{display:inline-grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border-radius:var(--sstf-r-m)!important;font-size:var(--sstf-t-page)!important;line-height:1!important}

 body.sstf-flow .ss-floating-actions-menu{position:fixed!important;inset:auto;z-index:2147482000!important;width:min(238px,calc(100vw - 18px));max-width:calc(100vw - 18px)!important;max-height:calc(100dvh - 18px)!important;padding:7px!important;margin:0!important;overflow:auto!important;box-sizing:border-box!important;border:1px solid #d9e4ee!important;border-radius:var(--sstf-r-m)!important;background:rgba(255,255,255,.985)!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important}
 body.sstf-flow .ss-floating-actions-menu[hidden]{display:none!important}
 body.sstf-flow .ss-floating-actions-menu>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:43px!important;margin:3px 0!important;padding:9px 11px!important;border:1px solid #d9e8f7!important;border-radius:var(--sstf-r-s)!important;background:var(--ss-action-blue)!important;color:#163859!important;box-shadow:var(--sstf-rim)!important;text-align:start!important;font-size:var(--sstf-t-body)!important;font-weight:750!important}
 body.sstf-flow .ss-floating-actions-menu>button[data-tone=danger]{background:linear-gradient(135deg,#ffeef0,#ffdce2)!important;border-color:#f1c8d0!important;color:#a43f50!important}
 body.sstf-flow .ss-floating-actions-menu>button:focus-visible{outline:3px solid #2c5baf!important;outline-offset:2px!important}

 body.sstf-flow.permanent-customer-portal main{width:100%!important;max-width:none!important;min-width:0!important}
 body.sstf-flow.permanent-customer-portal #ss-sales-workspace{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding-inline:max(8px,env(safe-area-inset-left))!important}
 body.sstf-flow.permanent-customer-portal .ss-order-identity{background:linear-gradient(112deg,rgba(255,255,255,.98) 0%,rgba(248,251,255,.96) 58%,rgba(235,245,255,.94) 100%)!important;border-color:#dfe8f1!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important}
 body.sstf-flow.permanent-customer-portal .ss-unified-workspace{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow.permanent-customer-portal .ss-account-orders>.section-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin:2px 2px 10px!important;padding:0!important;border:0!important;background:transparent!important}
 body.sstf-flow.permanent-customer-portal .ss-account-orders>.section-heading h2{margin:0!important;color:#1b334b!important;font-size:var(--sstf-t-card)!important;font-weight:850!important}
 body.sstf-flow.permanent-customer-portal .ss-account-orders>.section-heading span{display:grid!important;place-items:center!important;min-width:30px!important;height:30px!important;padding:0 7px!important;border:1px solid #d9e5f0!important;border-radius:var(--sstf-radius-pill)!important;background:#fff!important;color:#66809d!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
 body.sstf-flow.permanent-customer-portal section.login{width:min(460px,calc(100% - 16px))!important;margin:24px auto!important;padding:18px!important;box-sizing:border-box!important;border:1px solid #dce6ef!important;border-radius:var(--sstf-r-l)!important;background:linear-gradient(112deg,rgba(255,255,255,.98) 0%,rgba(248,251,255,.96) 58%,rgba(235,245,255,.94) 100%)!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important}
 body.sstf-flow.permanent-customer-portal section.login .eyebrow{display:inline-flex!important;margin-bottom:6px!important;color:#6f8194!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
 
 
 
 body.sstf-flow.permanent-customer-portal section.login button,body.sstf-flow.permanent-customer-portal .header-customer-logout button{min-height:42px!important;border:1px solid #b9d6f2!important;border-radius:var(--sstf-r-s)!important;background:var(--ss-action-blue)!important;color:#163859!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;font-weight:800!important}
 body.sstf-flow.permanent-customer-portal .permanent-customer-draft{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.sstf-flow.permanent-customer-portal .permanent-draft-submit{margin:var(--sstf-space-3) 0 0!important}
 body.sstf-flow.permanent-customer-portal .permanent-draft-submit button{width:100%!important;min-height:48px!important;border-radius:var(--sstf-r-m)!important;background:var(--ss-action-blue)!important;font-weight:850!important}
 @media(max-width:700px){body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters>.ss-sales-search,body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters>button{grid-column:1/-1!important}}
 @media(max-width:380px){body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters{grid-template-columns:1fr!important}body.sstf-flow #ss-sales-workspace.ss-account-workspace .ss-sales-filters>*{grid-column:1!important}}
}
/* B2B adapters for the shared S&S shell. Domain fields and actions remain unchanged. */
@layer sstf-hotfix {
 body.sstf-flow #ss-sales-workspace[data-b2b-orders] .ss-sales-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.sstf-flow #ss-sales-workspace[data-b2b-orders] .ss-sales-tabs>a{text-decoration:none!important;text-align:center!important}
 body.ss-b2b-page main,body.ss-b2b-page #order-details,body.ss-b2b-page #work-content,body.ss-b2b-page #workspace{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-inline:0!important;left:auto!important;right:auto!important;transform:none!important}
 /* Adapter padding. With the fixed account sidebar (.store-sidebar, ≥961px) the start clearance is owned by sstf-authoritative, so the adapter keeps only the end side there (customer/merchant order pages; staff pages clear .app-sidebar by margin below). */
 body.ss-b2b-page:not(:has(.store-sidebar)) main{padding-inline:10px!important}
 @media(max-width:960px){body.ss-b2b-page:has(.store-sidebar) main{padding-inline:10px!important}}
 @media(min-width:961px){body.ss-b2b-page:has(.store-sidebar) main{padding-inline-end:10px!important}}
 body.ss-b2b-page :is(#order-details,#work-content,#workspace,.review-panel,.pricing-editor,.customer-order-static,.batch-gallery){padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important;max-width:100%!important}
 body.ss-b2b-page :is(.review-general-note-trigger,.staff-review-actions,.work-cancel){display:none!important}
 
 
 
 
 body.ss-b2b-page .workspace-quick-tools>.ss-card-menu{flex:0 0 44px!important}
 body.ss-b2b-page .batch-gallery{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;align-items:stretch!important;gap:10px!important;min-height:112px!important}
 body.ss-b2b-page .ss-photo-strip{display:flex!important;grid-column:2!important;flex-wrap:nowrap!important;gap:10px!important;overflow-x:auto!important;min-width:0!important;max-width:100%!important;padding:var(--sstf-space-2) 0!important;scroll-snap-type:x proximity}
 body.ss-b2b-page .ss-pending-photo{position:relative!important;flex:0 0 clamp(150px,42vw,220px)!important;min-width:0!important;scroll-snap-align:start;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
 body.ss-b2b-page .ss-photo-open{display:block!important;position:relative!important;width:100%!important;aspect-ratio:1/1!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
 body.ss-b2b-page .ss-photo-open img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
 body.ss-b2b-page .ss-photo-remove{position:absolute!important;top:0!important;left:0!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#b83242!important;font-size:var(--sstf-t-page)!important;z-index:2!important}
 body.ss-b2b-page .ss-photo-add{grid-column:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;width:96px!important;min-width:96px!important;min-height:104px!important;margin:var(--sstf-space-1) 0!important;padding:var(--sstf-space-2)!important;line-height:1.35!important}
 body.ss-b2b-page .ss-photo-add-plus{display:block!important;font-size:var(--sstf-t-page)!important;font-weight:500!important;line-height:1!important}
 body.ss-b2b-page .ss-photo-add-label{display:block!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
 /* 1.29.13: geometry/structure/scroll of #wizard moved to the Product Wizard central contract (central-system.css). */
 body.ss-b2b-page #wizard.ss-b2b-wizard{transform:none!important;translate:none!important;padding:var(--sstf-space-3)!important;border-radius:var(--sstf-r-l)!important;background:#fff!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard :is(.head,.wizard-foot){width:100%!important;margin:0!important;box-sizing:border-box!important;background:#fff!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard .wizard-body{min-width:0!important;max-width:100%!important;padding:var(--sstf-space-3) 0!important;background:#fff!important;box-sizing:border-box!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard .title{font-size:var(--sstf-t-page)!important;line-height:1.5!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard :is(label,input,select,textarea){font-size:var(--sstf-t-card)!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard :is(input:not([type=checkbox]),select,textarea){background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard :is(.upload-box,.image-preview){width:100%!important;height:auto!important;max-height:none!important;background:#fff!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard .image-preview{aspect-ratio:1/1!important;object-fit:contain!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard .choice{background:#fff!important;border-color:#d7e1ec!important;box-shadow:var(--sstf-sh-card)!important;color:#243b55!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard .choice.on{background:#edf3ff!important;border-color:#668bd1!important}
 body.ss-b2b-page #wizard.ss-b2b-wizard #sizes{padding:0!important}
 body.ss-b2b-page .pricing-product-workspace.ss-action-modal{width:min(600px,calc(100vw - 24px))!important}
 body.ss-b2b-page .pricing-product-workspace .pricing-workspace-view{display:block!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:#fff!important;box-shadow:none!important}
 body.ss-b2b-page .pricing-product-workspace .inventory-product-view-media{display:none!important}
 body.ss-b2b-page .pricing-product-workspace .inventory-product-view-content{min-width:0!important;padding:0!important}
 body.ss-b2b-page .pricing-product-workspace .pricing-workspace-panel{padding:var(--sstf-space-2) 0!important;min-width:0!important}
 body.ss-b2b-page .ss-order-management-card{min-width:0!important;width:100%!important;box-sizing:border-box!important}
 
 body.ss-b2b-page [hidden]{display:none!important}
}

/* Shared Quick Glass surfaces: explicit component rules, no workflow changes. */
.ss-page-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-3);width:100%}.ss-page-heading h1,.ss-page-heading h2{margin:0}.ss-page-heading>.ss-card-menu{position:static;flex:none}
.ss-work-guidance{padding:var(--sstf-space-3) var(--sstf-space-4);border-radius:var(--sstf-r-m);background:linear-gradient(120deg,#fff,#e5f0fc);border:1px solid #dce4ee;margin-block:var(--sstf-space-3)}.ss-work-guidance p{margin:6px 0 0}

body.sstf-flow #sstf-calculator [data-calc-key="="]{color:#fff!important;background:linear-gradient(120deg,#5f8cf7,#5073cc)!important}
body.sstf-flow dialog.ss-country-modal{position:fixed!important;inset:0!important;margin:auto!important;width:min(420px,calc(100vw - 24px))!important;max-height:75dvh!important;transform:none!important}.ss-country-modal .country-list{max-height:50dvh;overflow:auto}.ss-country-modal>button{float:left}
.ss-product-detail-image{display:block;width:100%;height:min(36dvh,300px);object-fit:contain;border-radius:var(--sstf-r-m);background:#fff;margin-bottom:var(--sstf-space-3)}
.ss-compact-form,.ss-compact-form>.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sstf-space-3)}.ss-compact-form>.fields,.ss-compact-form>header,.ss-compact-form>button,.ss-compact-form>p,.ss-compact-form>label:has(textarea){grid-column:1/-1}.ss-compact-form input,.ss-compact-form select{min-width:0;width:100%}.ss-compact-form label{grid-column:auto!important;min-width:0}
.ss-dashboard-preview .ss-sales-card{padding:14px!important}.ss-dashboard-preview{display:grid;gap:10px}.ss-filter-busy{opacity:.55;pointer-events:none}
@media(max-width:360px){.ss-compact-form,.ss-compact-form>.fields{grid-template-columns:1fr}}

/* Creation form: keep date beside work type and notes across both columns. */

@layer sstf-hotfix{@media(min-width:960px){}}

/* Dropshipping uses the canonical S&S components. Only layout adapters live here. */
@layer sstf-hotfix{
 [data-dropship-workspace] [data-merchant-row][hidden]{display:none!important}
 [data-dropship-workspace] [data-merchant-row]{min-width:0}
 .ss-b2b-wizard.ss-quick-product-editor .compact-progress{display:none!important}
}

@layer sstf-hotfix{.ss-sales-cards .ss-record-detail::before{display:none!important;content:none!important}}

/* Read-only daily records: one summary opens its complete facts in the shared modal. */
@layer sstf-hotfix{
.ss-summary-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important}
.ss-summary-record{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;padding:18px!important;margin:0!important;border:1px solid #dce5ee!important;border-radius:var(--sstf-r-l)!important;background:linear-gradient(115deg,#fff,#f3f8ff)!important;box-shadow:var(--sstf-sh-card)!important;cursor:pointer!important;min-width:0!important}
.ss-summary-record .order-line-main{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:var(--sstf-space-2)!important;min-width:0!important}
.ss-summary-record strong{font-size:var(--sstf-t-card)!important}.ss-summary-record .order-line-main>span:not(.status-pill){font-size:var(--sstf-t-body)!important;color:#526579!important;}
.ss-summary-record:focus-visible{outline:2px solid #557dda!important;outline-offset:2px!important}.ss-record-chevron{color:#557dda!important;font-size:var(--sstf-t-page)!important}

@media(max-width:600px){.ss-summary-list{grid-template-columns:1fr!important}}
}

@layer sstf-hotfix{
.ss-summary-list>.ss-action-modal>.ss-quick-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-1) var(--sstf-space-3)!important}
.ss-summary-list>.ss-action-modal>.ss-quick-facts>div:last-child{grid-column:1/-1!important}
}

/* Compact gateway/account records: explicit slots prevent inherited order grids overlapping. */
@layer sstf-hotfix{
body.sstf-flow #ss-sales-workspace.ss-account-workspace[data-dropship-workspace] .ss-sales-cards>.order-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:var(--sstf-space-4)!important;min-height:0!important;box-sizing:border-box!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-main{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"number name" "details details" "badge badge"!important;align-items:center!important;gap:var(--sstf-space-2) var(--sstf-space-3)!important;min-width:0!important;position:static!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-main>.ss-order-number{grid-area:number!important;position:static!important;margin:0!important;white-space:nowrap!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-main>span{grid-area:name!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-main>small{grid-area:details!important;position:static!important;white-space:normal!important;}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-main>.ss-order-badges{grid-area:badge!important;position:static!important;display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin:0!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-main>[data-batch-order]{grid-column:1/-1!important;grid-row:4!important;position:static!important;width:18px!important;height:18px!important;margin:0!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-actions{display:flex!important;flex-direction:column!important;gap:6px!important;position:static!important;grid-area:auto!important;align-self:center!important;width:auto!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-actions .order-actions-trigger{display:grid!important;place-items:center!important;position:static!important;inset:auto!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;margin:0!important}
body.sstf-flow :is(#ss-sales-workspace.ss-account-workspace[data-dropship-workspace],#recipient-section) .order-line-actions>a{display:none!important}
body.sstf-flow #ss-sales-workspace.ss-account-workspace[data-dropship-workspace] [data-merchant-row] .order-line-main{grid-template-areas:"name number" "badge badge"!important;grid-template-columns:minmax(0,1fr) auto!important}
.ss-gateway-identity{padding:14px!important;margin:0 0 14px!important;border:1px solid #dce5ee!important;border-radius:var(--sstf-r-l)!important;background:linear-gradient(115deg,#fff,#edf5ff)!important;box-shadow:var(--sstf-sh-card)!important}
.ss-gateway-heading{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}.ss-gateway-heading>strong{flex:1!important;min-width:100px!important;}
.ss-gateway-identity>.ss-quick-facts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-2)!important}
body.sstf-flow .ss-profile-workspace .ss-summary-list{display:flex!important;flex-direction:column!important;gap:var(--sstf-space-2)!important}
body.sstf-flow .ss-profile-workspace .ss-summary-record{padding:10px var(--sstf-space-3)!important;min-height:48px!important;border-radius:var(--sstf-r-m)!important;gap:6px!important}
body.sstf-flow .ss-profile-workspace .ss-summary-record .order-line-main{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;flex:1!important;overflow:hidden!important}

body.sstf-flow .ss-profile-workspace .ss-summary-record .order-line-main>span:not(.status-pill){font-size:var(--sstf-t-small)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;flex:1!important}

body.sstf-flow #account-leave-dialog{width:min(440px,calc(100vw - 28px))!important;max-height:min(70dvh,560px)!important;padding:14px!important;overflow:hidden!important;box-sizing:border-box!important}
body.sstf-flow #account-leave-dialog[open]{display:flex!important;flex-direction:column!important}
body.sstf-flow #account-leave-dialog>.drawer-heading{flex:none!important;padding:0 0 10px!important;margin:0!important}
body.sstf-flow #account-leave-dialog>.ss-leave-scroll{overflow-y:auto!important;min-height:0!important;overscroll-behavior:contain!important}
body.sstf-flow #account-leave-dialog .account-request-block{padding:10px 0!important;margin:0!important}
body.sstf-flow #account-leave-dialog .account-form{gap:var(--sstf-space-2)!important;padding:0!important}

body.sstf-flow #account-leave-dialog .two-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-2)!important}

@media(max-width:600px){.ss-gateway-identity>.ss-quick-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.sstf-flow #ss-sales-workspace.ss-account-workspace[data-dropship-workspace] .ss-sales-cards{grid-template-columns:1fr!important}body.sstf-flow .ss-profile-workspace .ss-summary-record .order-line-main{gap:6px!important}}
}
@layer sstf-hotfix{body.sstf-flow #ss-sales-workspace.ss-account-workspace[data-dropship-workspace] .ss-sales-cards>.order-line[hidden]{display:none!important}}

@layer sstf-hotfix{
@media(min-width:960px){}
body.sstf-flow.store-order-workspace #workspace .recipient-card-products{padding:var(--sstf-space-3)!important;box-sizing:border-box!important}

body.sstf-flow.store-order-workspace .ss-staff-add-products{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:14px 0!important}
body.sstf-flow.store-order-workspace .ss-staff-add-products>button{width:100%!important;min-height:46px!important;margin:0!important}
@media(max-width:600px){}
@media(max-width:359px){}
}
@layer sstf-compat{}
@layer sstf-hotfix{}

@layer sstf-hotfix{
.ss-portal-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:var(--sstf-space-3) 0!important}.ss-portal-summary>button{display:flex!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;padding:18px!important;border-radius:var(--sstf-r-m)!important;background:linear-gradient(120deg,#fff,#eaf3ff)!important;color:#345777!important;border:1px solid #dce5f0!important;box-shadow:var(--sstf-sh-card)!important}.ss-portal-summary strong{color:#79559b!important;font-size:var(--sstf-t-page)!important}
body.sstf-flow #recipient-section>.ss-recipient-search{display:block!important;margin:var(--sstf-space-3) 0!important;padding:var(--sstf-space-3)!important}body.sstf-flow #recipient-section>.ss-recipient-search>input{width:100%!important;box-sizing:border-box!important}
body.sstf-flow #recipient-section>.ss-recipient-add{display:block!important;width:100%!important;margin:0 0 var(--sstf-space-3)!important;min-height:46px!important}
body.sstf-flow .ss-recipient-products-dialog{width:min(850px,calc(100vw - 24px))!important}body.sstf-flow .ss-recipient-products-dialog .ss-order-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important}
body.sstf-flow.store-order-workspace #finish-product{background:linear-gradient(120deg,#ffbd79,#ef913d)!important;color:#493018!important;border-color:#e69a50!important}
.ss-account-support{display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-3)!important;margin:14px 0!important}
@media screen{}
@media(max-width:600px){.ss-portal-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
}
@media print{@layer sstf-hotfix{body.store-dashboard:has([data-dropship-workspace]) main>*:not([data-dropship-workspace]),body.store-dashboard [data-dropship-workspace]>*:not(.ss-store-print-report){display:none!important}.ss-store-print-report td,.ss-store-print-report th{border:1px solid #bbb!important;padding:6px!important}}}

@layer sstf-hotfix { }

@layer sstf-hotfix {body.sstf-flow .ss-recipient-products-dialog img.inventory-product-card-image{position:absolute!important;inset:10px!important;width:calc(100% - 20px)!important;height:calc(100% - 20px)!important;object-fit:contain!important} }

/* Shared recipient cards use the order-line markup; only the dialog layout differs. */
@layer sstf-hotfix {
body.sstf-flow #recipient-section .ss-recipient-list{display:grid!important;grid-template-columns:1fr!important;gap:var(--sstf-space-3)!important}
body.sstf-flow #recipient-section .ss-recipient-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:var(--sstf-space-4)!important;min-height:0!important;cursor:pointer!important}
body.sstf-flow #recipient-section .ss-recipient-card[hidden]{display:none!important}
body.sstf-flow #recipient-section .ss-recipient-card-foot{grid-column:1/-1!important}
body.sstf-flow .ss-recipient-add-actions,body.sstf-flow .ss-recipient-products-actions{display:flex!important;gap:var(--sstf-space-2)!important}
body.sstf-flow .ss-recipient-add-actions>button,body.sstf-flow .ss-recipient-products-actions>button{flex:1!important;min-width:0!important;margin:0!important}
body.sstf-flow dialog.ss-recipient-products-dialog[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important;max-height:85dvh!important;width:min(700px,calc(100vw - 24px))!important}
body.sstf-flow dialog.ss-recipient-products-dialog>header,body.sstf-flow dialog.ss-recipient-products-dialog>footer{flex-shrink:0!important;background:#fff!important;padding:10px 0!important}
body.sstf-flow dialog.ss-recipient-products-dialog>.recipient-card-products{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;flex:1 1 auto!important}
body.sstf-flow dialog.ss-recipient-products-dialog .ss-order-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.sstf-flow .ss-preview-actions{display:flex!important;gap:var(--sstf-space-2)!important;position:sticky!important;bottom:0!important;background:#fff!important;padding:10px!important}
body.sstf-flow .ss-preview-actions>button{flex:1!important}
}

@layer sstf-hotfix{body.sstf-flow #recipient-section .ss-recipient-card .order-line-main{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"name" "details" "badge"!important}}

@layer sstf-hotfix {
body.sstf-flow #recipient-section .ss-recipient-toolbar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:10px 0!important}
body.sstf-flow #recipient-section .ss-recipient-toolbar>.ss-recipient-add{width:auto!important;flex:0 1 auto!important;min-height:40px!important;padding:var(--sstf-space-2) 18px!important;margin:0!important;font-size:var(--sstf-t-body)!important}
body.sstf-flow #order-exports.ss-export-dialog-only{display:contents!important;border:0!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important}
body/* owner review 2026-10-05: legacy orange «إضافة عدة منتجات» removed — central send button */
body.sstf-flow :is(.ss-recipient-add-actions,.ss-recipient-products-actions) button.ss-add-one{border-radius:var(--sstf-r-s)!important}
}

@layer sstf-hotfix {
body.sstf-flow .ss-order-access-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;align-items:stretch!important;margin:10px 0!important}
body.sstf-flow #add-zone[hidden]{display:none!important}
body.sstf-flow #recipient-section .ss-recipient-toolbar>.ss-recipient-add{min-height:36px!important;padding:6px 14px!important}
}

/* Shared Quick Glass wizard skin. 1.29.13: geometry/structure/scroll live in the Product Wizard central contract (central-system.css). */
body.sstf-flow #wizard.ss-b2b-wizard{padding:var(--sstf-space-3)!important;background:#fff!important;border-radius:var(--sstf-r-m)!important;transform:none!important}
body.sstf-flow #wizard.ss-b2b-wizard :is(.head,.wizard-foot){background:#fff!important}
body.sstf-flow #wizard.ss-b2b-wizard .wizard-foot{display:flex!important;flex-wrap:wrap;gap:10px}
body.sstf-flow #wizard.ss-b2b-wizard .wizard-foot button{flex:1 1 0;min-width:0}
body.sstf-flow #wizard.ss-b2b-wizard #finish-product{flex:1 0 100%;width:100%}
body.sstf-flow #wizard.ss-b2b-wizard :is(#next-step,#finish-product,#extra-size-picker){background:var(--flow-green)!important;color:#fff!important;font-weight:800!important;border:1px solid var(--flow-green)!important}
body.sstf-flow #wizard.ss-b2b-wizard #previous-step{background:#fff!important;color:#5274ae!important;border:1px solid #d9e2ec!important}
body.sstf-flow #wizard.ss-b2b-wizard #audiences .choice b{font-size:var(--sstf-t-page);font-weight:800}
body.sstf-flow #wizard.ss-b2b-wizard #brand-results button{background:var(--ss-action-blue,linear-gradient(135deg,#608df6,#4e72cf))!important;color:#fff!important;font-weight:800!important}
body.sstf-flow #wizard.ss-b2b-wizard #extra-size-picker{width:calc(100% - 8px);margin:var(--sstf-space-2) var(--sstf-space-1) var(--sstf-space-3)}
body.sstf-flow #wizard.ss-b2b-wizard .upload-box{position:relative;padding:0!important}
body.sstf-flow #wizard.ss-b2b-wizard .wizard-image-zoom{position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:2;width:40px!important;height:40px!important;min-height:0!important;padding:0!important;font-size:var(--sstf-t-page)!important}
body.sstf-flow .ss-wizard-image-dialog{width:min(850px,calc(100vw - 24px));padding:var(--sstf-space-3);max-height:92dvh}
body.sstf-flow .ss-wizard-image-dialog img{display:block;max-width:100%;max-height:80dvh;object-fit:contain;margin:auto}
body.sstf-flow .ss-wizard-image-dialog button{position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1}
body.sstf-flow .ss-recipient-list .ss-recipient-card{border:1px solid #a9b7c8!important}

/* Supplier uses the original S&S product component. */

body.ss-supplier-glass .ss-supplier-alternative-group.has-alternative{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #d9e3ed;padding:var(--sstf-space-2);border-radius:var(--sstf-r-m)}

body.ss-supplier-glass .ss-supplier-alternative-wizard>.supplier-dialog-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body.ss-supplier-glass .ss-supplier-alternative-wizard .wizard-body{overflow:auto;min-height:0;flex:1 1 auto}

body.ss-supplier-glass .ss-supplier-alternative-wizard .wizard-foot{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto;background:#fff}

@media print{body:has(.ss-pa-print) main>*:not(.ss-account-workspace){display:none!important}body:has(.ss-pa-print) #ss-sales-workspace>*:not(.ss-pa-print){display:none!important}body:has(.ss-pa-print) :is(.store-sidebar,.store-bottom-nav){display:none!important}}

/* The same original/proposal pairing in all review roles. */
body.sstf-flow .ss-supplier-alternative-group{min-width:0}
body.sstf-flow .ss-supplier-alternative-group.has-alternative{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #d9e3ed;padding:var(--sstf-space-2);border-radius:var(--sstf-r-m)}
body.sstf-flow .ss-supplier-original{border:2px solid var(--tf-red,#cf4050)!important;opacity:.65}
body.sstf-flow #customer-alternatives .ss-supplier-alternative-group{margin-block:var(--sstf-space-3)}

/* Stage 2 — centered Quick Glass cleanup and action-dialog consistency. */
@layer sstf-hotfix {
 body.sstf-flow dialog.ss-action-modal :is([data-review-dialog-close],[data-export-dialog-close],[data-calculator-close],[data-duty-close],[data-team-close]){display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:1px solid #dde5ee!important;border-radius:50%!important;background:#f4f7fb!important;color:#597797!important;box-shadow:none!important;font-size:var(--sstf-t-page)!important}
 body.sstf-flow .attendance-request-open{width:100%!important;margin:var(--sstf-space-3) 0!important}
 body.sstf-flow .ss-modal-disclosure{margin:var(--sstf-space-3) 0!important;padding:10px var(--sstf-space-3)!important;border:1px solid #dfe7ef!important;border-radius:var(--sstf-r-m)!important;background:#f8fbfe!important}
 body.sstf-flow .ss-modal-disclosure>summary{cursor:pointer!important;font-weight:850!important;color:#315578!important}
}

/* ========================================================================
 * SSTF UNIFIED INTERACTION SYSTEM — 1.23.0
 * Final canonical layer for cards, tabs, action popovers and centered modals.
 * This block intentionally comes last so legacy component rules cannot shrink
 * action menus or turn action dialogs back into bottom sheets.
 * ====================================================================== */
@layer sstf-hotfix {
  /* Page/section geometry: operational content uses the available width. */
  body.sstf-flow :is(#work-content,.review-panel,.supplier-workspace,.pricing-panel,.finance-panel,.fulfillment-panel,.supplier-directory,.ss-account-workspace,.ss-unified-workspace){
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  }
  body.sstf-flow :is(.review-panel,.supplier-workspace,.pricing-panel,.finance-panel,.fulfillment-panel)>*{
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  body.sstf-flow :where(.order-line,.supplier-directory-row){
    width:100%!important;margin:0!important;padding:11px var(--sstf-space-3)!important;
  }
  body.sstf-flow :is(.ss-sales-cards,.orders-compact-list,.supplier-directory-list,.finance-payment-list,.ops-record-list,.ss-account-cards,.permanent-orders-list,.ss-request-history){
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:10px 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  body.sstf-flow .supplier-directory-list{border:0!important;border-radius:0!important}
  body.sstf-flow .supplier-directory-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
  body.sstf-flow .supplier-directory-row+.supplier-directory-row{border-top:1px solid rgba(35,68,103,.11)!important}
  body.sstf-flow .supplier-directory-main{min-width:0!important;display:grid!important;grid-template-columns:minmax(120px,1.25fr) minmax(90px,1fr) auto auto!important;align-items:center!important;gap:7px 10px!important}
  body.sstf-flow .supplier-directory-main>*{min-width:0!important;}
  
  body.sstf-flow.accounting-ui .customer-balance-head{grid-template-columns:minmax(0,1fr) auto auto!important}
  body.sstf-flow.accounting-ui .customer-balance-head>span{grid-column:2!important;grid-row:1/3!important}
  body.sstf-flow.accounting-ui .customer-balance-head>.ss-card-menu{grid-column:3!important;grid-row:1/3!important;align-self:center!important}

  /* One three-dot trigger shape everywhere. */
  body.sstf-flow :is(.ss-card-menu,.ss-order-actions-trigger,.order-actions-trigger,#orders details.compact-actions>summary){
    display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:0!important;border:1px solid #d7e1ec!important;border-radius:var(--sstf-r-m)!important;background:#fffffff7!important;color:#567da7!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;line-height:1!important;text-align:center!important;overflow:visible!important;
  }
  /* A [hidden] three-dot trigger stays hidden (V7 Defect C: orderCard() hides "⋯" with no enabled actions). Matches hidden triggers only, so visible triggers keep their existing cascade. */
  body.sstf-flow :is(.ss-card-menu,.ss-order-actions-trigger,.order-actions-trigger,#orders details.compact-actions>summary)[hidden]{display:none!important}
  body.sstf-flow :is(.ss-card-menu,.ss-order-actions-trigger,.order-actions-trigger,#orders details.compact-actions>summary):focus-visible{outline:3px solid rgba(77,135,192,.28)!important;outline-offset:2px!important}

  /* ONE action-popover geometry. Never derive width from side room. */
  body.sstf-flow :is(.ss-quick-popover,.ss-order-actions-menu,.ss-floating-actions-menu,#order-actions-sheet,#ss-order-actions-menu,#ss-account-actions-menu,details.row-actions>div,#orders details.compact-actions>div){
    position:fixed!important;inset:auto!important;box-sizing:border-box!important;width:min(224px,calc(100vw - 16px))!important;min-width:min(190px,calc(100vw - 16px))!important;max-width:min(224px,calc(100vw - 16px))!important;max-height:calc(100dvh - 16px)!important;margin:0!important;padding:7px!important;overflow:auto!important;overscroll-behavior:contain!important;z-index:2147482000!important;border:1px solid #d9e3ed!important;border-radius:var(--sstf-r-m)!important;background:#fffffffa!important;color:#243b55!important;box-shadow:var(--sstf-sh-card)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;transform:none!important;translate:none!important;
  }
  body.sstf-flow :is(.ss-quick-popover,.ss-order-actions-menu,.ss-floating-actions-menu,#order-actions-sheet,#ss-order-actions-menu,#ss-account-actions-menu,details.row-actions>div,#orders details.compact-actions>div)>:is(button,a),
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions)>div :is(button,a){
    box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:43px!important;margin:0 0 6px!important;padding:9px 11px!important;border:1px solid #dce9f6!important;border-radius:var(--sstf-r-s)!important;background:var(--ss-action-blue)!important;color:#173758!important;box-shadow:var(--sstf-rim)!important;text-align:start!important;font-size:var(--sstf-t-small)!important;font-weight:750!important;line-height:1.4!important;white-space:normal!important;
  }
  body.sstf-flow :is(.ss-quick-popover,.ss-order-actions-menu,.ss-floating-actions-menu,#order-actions-sheet,#ss-order-actions-menu,#ss-account-actions-menu,details.row-actions>div,#orders details.compact-actions>div)>:is(button,a):last-child,
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions)>div :is(button,a):last-child{margin-bottom:0!important}
  body.sstf-flow :is(.ss-quick-popover,.ss-order-actions-menu,.ss-floating-actions-menu,#order-actions-sheet,#ss-order-actions-menu,#ss-account-actions-menu,details.row-actions>div,#orders details.compact-actions>div)>[data-tone=danger],
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions)>div [data-tone=danger]{background:linear-gradient(145deg,#fff4f5,#ffe8eb)!important;border-color:#efc6cc!important;color:#a92d40!important}
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions){position:relative!important;display:inline-block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions)>summary{list-style:none!important}
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions)>summary::-webkit-details-marker{display:none!important}
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions):not([open])>div{display:none!important}
  body.sstf-flow :is(details.row-actions,#orders details.compact-actions)[open]>div{display:grid!important;gap:0!important}
  body.sstf-flow #orders details.compact-actions>div form{display:grid!important;gap:0!important;margin:0!important}
  body.sstf-flow #orders details.compact-actions>div form>button{box-sizing:border-box!important;width:100%!important;min-height:43px!important;margin:0 0 6px!important;padding:9px 11px!important;border:1px solid #dce9f6!important;border-radius:var(--sstf-r-s)!important;background:var(--ss-action-blue)!important;color:#173758!important;text-align:start!important;font-size:var(--sstf-t-small)!important;font-weight:750!important;line-height:1.4!important;white-space:normal!important}
  body.sstf-flow #orders details.compact-actions>div form:last-child>button:last-child{margin-bottom:0!important}

  /* ONE centered modal family. Height follows content until the ceiling. */
  body.sstf-flow dialog.ss-action-modal{
    --ss-modal-min:380px;--ss-modal-max:640px;position:fixed!important;inset:0!important;box-sizing:border-box!important;width:fit-content!important;min-width:min(var(--ss-modal-min),calc(100vw - 20px))!important;max-width:min(var(--ss-modal-max),calc(100vw - 20px))!important;height:fit-content!important;max-height:min(88dvh,840px)!important;margin:auto!important;padding:14px!important;border:1px solid #e0e7ee!important;border-radius:var(--sstf-r-l)!important;background:#fffffffa!important;color:#243b55!important;box-shadow:var(--sstf-sh-card)!important;overflow:auto!important;overscroll-behavior:contain!important;transform:none!important;translate:none!important;animation:none!important;
  }
  body.sstf-flow dialog.ss-action-modal.ss-modal-compact{--ss-modal-min:310px!important;--ss-modal-max:440px!important}
  body.sstf-flow dialog.ss-action-modal.ss-modal-standard{--ss-modal-min:380px!important;--ss-modal-max:640px!important}
  body.sstf-flow dialog.ss-action-modal.ss-modal-wide{--ss-modal-min:500px!important;--ss-modal-max:800px!important}
  body.sstf-flow dialog.ss-action-modal.ss-modal-xwide{--ss-modal-min:560px!important;--ss-modal-max:900px!important}
  body.sstf-flow dialog.ss-action-modal::backdrop{background:#dce6f08c!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  body.sstf-flow dialog.ss-action-modal:has(>.ss-action-body)[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body.sstf-flow dialog.ss-action-modal>.ss-action-body{min-height:0!important;max-width:100%!important;overflow:auto!important;overscroll-behavior:contain!important;padding-top:10px!important}
body.sstf-flow dialog.ss-action-modal>header{position:sticky!important;top:0!important;z-index:5!important;flex:0 0 auto!important;background:#fffffffa!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  body.sstf-flow dialog.ss-action-modal>:is(footer,.ss-sheet-footer,.wizard-foot,.stocktake-sheet-submit,.pricing-workspace-actions){position:sticky!important;bottom:0!important;z-index:5!important;flex:0 0 auto!important;background:#fffffffa!important}
  body.sstf-flow dialog.ss-action-modal .ss-modal-legacy-header,body.sstf-flow dialog.ss-action-modal .ss-modal-legacy-heading{position:sticky!important;top:-1px!important;z-index:5!important;margin-top:0!important;padding-top:2px!important;padding-bottom:10px!important;background:#fffffffa!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
  body.sstf-flow dialog.ss-action-modal .ss-modal-legacy-footer{position:sticky!important;bottom:-1px!important;z-index:5!important;margin-top:10px!important;padding-top:10px!important;background:#fffffffa!important;border-top:1px solid #e8edf3!important}
  body.sstf-flow dialog.ss-action-modal .ss-dialog-close,
  body.sstf-flow dialog.ss-action-modal :is(.icon-button,[data-ss-dialog-close],[data-close-account-create],[data-close-supplier-contact],[data-review-dialog-close],[data-export-dialog-close],[data-order-dialog-close],[data-cancel-close]){
    display:grid!important;place-items:center!important;box-sizing:border-box!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0!important;border:1px solid #dde5ee!important;border-radius:50%!important;background:#f4f7fb!important;color:#597797!important;box-shadow:none!important;font-size:var(--sstf-t-page)!important;line-height:1!important;
  }
  body.sstf-flow .ss-compact-tabs{width:auto!important;max-width:100%!important;margin:0 0 10px!important}

  /* Responsive distribution: no clipped narrow center cards. */
  @media(max-width:700px){
    body.sstf-flow .supplier-directory-row{grid-template-columns:minmax(0,1fr) auto!important;padding:10px!important}
    body.sstf-flow .supplier-directory-main{grid-template-columns:minmax(0,1fr) auto!important;gap:5px var(--sstf-space-2)!important}
    body.sstf-flow .supplier-directory-main>span:not(.state-badge),body.sstf-flow .supplier-directory-main>small{grid-column:1/-1!important}
    body.sstf-flow dialog.ss-action-modal{min-width:min(var(--ss-modal-min),calc(100vw - 16px))!important;max-width:min(var(--ss-modal-max),calc(100vw - 16px))!important;max-height:90dvh!important}
  }
}

/* ss-order-architecture:start */
.ss-unified-workspace[data-sstf-screen="ss_order"] [data-sstf-slot="attention"]{display:grid;gap:var(--sstf-space-3);margin:var(--sstf-space-3) 0}
.ss-unified-workspace[data-sstf-screen="ss_order"] [data-sstf-slot="primary_action"]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}

.ss-unified-workspace[data-sstf-screen="ss_order"] .ss-preparation-attention{margin:0}
.ss-unified-workspace[data-sstf-screen="ss_order"] [data-sstf-slot="history"]{margin-top:14px}
/* ss-order-architecture:end */

/* S&S Quick Glass action architecture — 1.25 */
@layer sstf-quick-glass{
 body.sstf-flow .ss-quick-action-field{overflow:hidden!important}
 body.sstf-flow .ss-quick-action-scroll{display:flex!important;gap:9px!important;align-items:center!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;scrollbar-width:none!important;padding:3px 1px 5px!important;-webkit-overflow-scrolling:touch!important}
 
 
 
 body.sstf-flow .ss-preparation-issue-list{display:grid!important;gap:9px!important}
 body.sstf-flow .ss-preparation-issue-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid rgba(235,148,77,.25)!important;border-radius:var(--sstf-r-m)!important;background:rgba(255,249,242,.84)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
 
 
 body.sstf-flow .ss-workflow-blocked{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;width:100%!important;padding:var(--sstf-space-3) 14px!important;border:1px solid rgba(235,148,77,.26)!important;border-radius:var(--sstf-r-m)!important;background:rgba(255,249,242,.88)!important}
 body.sstf-flow .ss-product-state-stack{display:flex!important;gap:5px!important;align-items:center!important;flex-wrap:wrap!important;margin:0 0 5px!important}
 body.sstf-flow .ss-delivery-money-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin-bottom:10px!important}
 
 body.sstf-flow .ss-quick-note{margin:0 0 10px!important;color:#65778b!important;font-size:var(--sstf-t-small)!important;line-height:1.7!important}
 body.sstf-flow .ss-modal-product-name{margin:0 0 var(--sstf-space-2)!important;font-size:var(--sstf-t-card)!important;font-weight:900!important;color:#293f58!important}
 body.sstf-flow .ss-after-sale-launch{margin-top:var(--sstf-space-3)!important}
 
 @media(max-width:560px){}
}

/* Unified orange search card -> compact search + Quick Glass filters. */
@layer sstf-quick-filter{
 body.sstf-flow .sstf-applied-filter-chips{display:flex!important;gap:7px!important;overflow-x:auto!important;scrollbar-width:none!important;padding:9px 1px 1px!important;grid-column:1/-1!important}
 body.sstf-flow .sstf-applied-filter-chips[hidden]{display:none!important}
 body.sstf-flow .sstf-filter-chip{display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important;min-height:34px!important;padding:5px 9px!important;border:1px solid rgba(89,103,117,.15)!important;border-radius:var(--sstf-radius-pill)!important;background:rgba(255,255,255,.78)!important;color:#30475e!important;box-shadow:none!important}
 body.sstf-flow .sstf-filter-chip small{font-size:var(--sstf-t-small)!important;color:#758597!important}.sstf-flow .sstf-filter-chip strong{font-size:var(--sstf-t-small)!important}.sstf-flow .sstf-filter-chip span{font-size:var(--sstf-t-body)!important}
 body.sstf-flow .sstf-filter-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.sstf-flow .sstf-filter-field,body.sstf-flow .sstf-filter-date{display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:'small arrow' 'value arrow'!important;align-items:center!important;gap:2px var(--sstf-space-2)!important;min-height:58px!important;padding:9px 11px!important;border:1px solid #e0e8f0!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#253b50!important;text-align:start!important;box-shadow:var(--sstf-sh-card)!important}
 body.sstf-flow .sstf-filter-field small{grid-area:small;color:#7b8b9c!important;font-size:var(--sstf-t-small)!important}.sstf-flow .sstf-filter-field strong{grid-area:value;font-size:var(--sstf-t-small)!important}.sstf-flow .sstf-filter-field>span{grid-area:arrow;font-size:var(--sstf-t-page)!important;color:#789!important}
 body.sstf-flow .sstf-filter-date{display:flex!important;flex-direction:column!important;align-items:stretch!important;font-size:var(--sstf-t-small)!important;font-weight:850!important;color:#68798a!important}.sstf-flow .sstf-filter-date input{min-height:36px!important;margin-top:var(--sstf-space-1)!important}
 body.sstf-flow .sstf-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:var(--sstf-space-3)!important}
 body.sstf-flow .sstf-quick-choice-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;max-height:56vh!important;overflow:auto!important;padding:2px!important}
 body.sstf-flow .sstf-choice-card{min-height:46px!important;padding:var(--sstf-space-2) 10px!important;border:1px solid #e1e8ef!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#2c4156!important;box-shadow:none!important}.sstf-flow .sstf-choice-card.is-selected{border-color:#9dbddd!important;background:#edf5fd!important;color:#174a87!important}.sstf-flow .sstf-choice-search{width:100%!important;margin-bottom:9px!important}
 @media(max-width:520px){body.sstf-flow .sstf-filter-field-grid,body.sstf-flow .sstf-quick-choice-list{grid-template-columns:1fr!important}}
}
@layer sstf-quick-filter{}

/* TradeFlow 1.26 — inline navigation accordions + team accounts + S&S action sizing */
@layer sstf-navigation-accordion{
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion{display:block!important;margin:0!important;border:0!important;background:transparent!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion>summary{display:flex!important;align-items:center!important;gap:11px!important;min-height:54px!important;width:100%!important;margin:0!important;padding:9px 11px!important;list-style:none!important;border:1px solid rgba(30,58,88,.075)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;color:#1d3147!important;box-shadow:var(--sstf-sh-card)!important;cursor:pointer!important;font-size:var(--sstf-t-body)!important;font-weight:900!important;line-height:1.35!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion>summary::-webkit-details-marker{display:none!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion>summary>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion>summary>i{margin-inline-start:auto!important;color:#75869a!important;font-style:normal!important;font-size:var(--sstf-t-card)!important;font-weight:900!important;transition:transform .16s ease!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion[open]>summary>i{transform:rotate(180deg)!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion:is([open],.is-current)>summary{border-color:#cfdfed!important;background:#edf5fd!important;color:#174a87!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-children{display:grid!important;gap:var(--sstf-space-1)!important;margin:5px 0 2px!important;padding:5px 5px 6px var(--sstf-space-3)!important;border-inline-start:2px solid #e1eaf3!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-children>a{min-height:43px!important;margin:0!important;padding:7px 10px!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:#fff!important;box-shadow:none!important;color:#52667b!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-children>a::after{font-size:var(--sstf-t-card)!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-children>a[aria-current]{background:#eaf3fc!important;color:#174a87!important;font-weight:950!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-identity{position:sticky!important;top:-1px!important;z-index:15!important;margin-top:0!important;padding-top:var(--sstf-space-2)!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-brand-copy strong{font-size:var(--sstf-t-card)!important;font-weight:950!important;line-height:1.25!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-brand-copy span{font-size:var(--sstf-t-small)!important;font-weight:900!important}
 @media(min-width:960px){body.sstf-flow .app-sidebar nav{gap:7px!important}body.sstf-flow .app-sidebar .nav-group-single>a{font-size:var(--sstf-t-body)!important;font-weight:900!important}}
}

@layer sstf-team-accounts{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 @media(max-width:820px){}
 @media(max-width:560px){}
}

@layer sstf-ss-126{
 body.sstf-flow .ss-post-delivery-actions{display:grid!important;grid-template-columns:minmax(190px,320px)!important;justify-content:start!important;margin:var(--sstf-space-3) 0!important}
 
 body.sstf-flow .ss-return-product-button{width:100%!important;min-height:44px!important;margin-top:9px!important;font-weight:900!important}
 body.sstf-flow .ss-quick-action-scroll>button{min-height:46px!important;padding:9px 15px!important;border-radius:var(--sstf-r-m)!important;font-size:var(--sstf-t-small)!important;font-weight:900!important}
 body.sstf-flow .ss-attention-card>button,body.sstf-flow .ss-after-sale-active .order-line>button,body.sstf-flow .ss-preparation-issue-card>button{min-width:150px!important;min-height:44px!important;padding:var(--sstf-space-2) 14px!important;font-size:var(--sstf-t-small)!important;font-weight:900!important}
 
 @media(max-width:620px){}
}

/* 1.26: create-order stays an action, not a navigation section. */
body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-primary-action{display:block!important;margin:0 0 10px!important;padding:0!important}
body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-primary-action>a{display:flex!important;align-items:center!important;gap:10px!important;min-height:50px!important;padding:9px 13px!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-shell-primary,#174a87)!important;color:#fff!important;box-shadow:var(--sstf-sh-card)!important;font-size:var(--sstf-t-body)!important;font-weight:950!important;text-decoration:none!important}
body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-primary-action>a :where(.nav-icon,.small-icon){background:rgba(255,255,255,.16)!important;color:#fff!important}
body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-primary-action>a::after{color:rgba(255,255,255,.8)!important}

/* TradeFlow 1.27 — reference implementation + central interaction surfaces */
@layer sstf-1271{
 body.sstf-flow .sstf-approval-workspace{display:grid!important;gap:var(--sstf-space-3)!important}
 body.sstf-flow .sstf-approval-section{display:grid!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
 body.sstf-flow .sstf-approval-cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))!important;gap:10px!important}
 body.sstf-flow .sstf-approval-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"person value" "action action"!important;gap:10px!important;align-items:center!important;margin:0!important}
 body.sstf-flow .sstf-approval-person{grid-area:person;display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
 .sstf-flow .sstf-approval-person small{color:#6d7f91!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 .sstf-flow .sstf-approval-value small{font-size:var(--sstf-t-small)!important;color:#728397!important}
 
 
 
 
 
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-accordion-chevron{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;transform:none!important;color:#66798b!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-accordion-chevron .small-icon{width:18px!important;height:18px!important;transition:transform .17s ease!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .nav-section-accordion[open]>summary .nav-accordion-chevron .small-icon{transform:rotate(90deg)!important}
 body.sstf-flow :where(.app-sidebar,.app-drawer) .sidebar-identity{position:sticky!important;inset-block-start:0!important;top:0!important;z-index:50!important;flex:0 0 auto!important;transform:none!important;translate:none!important}
 body.sstf-flow .app-sidebar{overscroll-behavior:contain!important}
 
 
 @media(max-width:720px){}
}

/* 1.27 central Glass sizing + semantic field layout contract. */
@layer sstf-central-contract {
 body.sstf-flow dialog.ss-action-modal:not(.ss-modal-xwide):not(.ss-store-sheet):not(.chat-popup){
  --ss-modal-min:280px!important;--ss-modal-max:480px!important;
  width:fit-content!important;min-width:min(var(--ss-modal-min),calc(100vw - 20px))!important;max-width:min(var(--ss-modal-max),calc(100vw - 20px))!important;height:fit-content!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;
 }
 body.sstf-flow dialog.ss-action-modal.ss-modal-compact{--ss-modal-min:280px!important;--ss-modal-max:420px!important}
 body.sstf-flow dialog.ss-action-modal.ss-modal-standard{--ss-modal-min:320px!important;--ss-modal-max:480px!important}
 body.sstf-flow dialog.ss-action-modal.ss-modal-wide{--ss-modal-min:360px!important;--ss-modal-max:560px!important}
 body.sstf-flow dialog.ss-action-modal.ss-modal-xwide{--ss-modal-min:560px!important;--ss-modal-max:900px!important}
 /* 1.29.13: dialog.product-wizard rules removed here — this layer is the weakest for !important; the Product Wizard
    geometry is owned by layer sstf-wizard-contract (central-system.css). */
 body.sstf-flow dialog.product-wizard{border-radius:var(--sstf-r-m)!important}
 body.sstf-flow .sstf-field-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:10px var(--sstf-space-3)!important;align-items:end!important;min-width:0!important}
 body.sstf-flow .sstf-field-grid>.sstf-field-xs{grid-column:span 3!important}
 body.sstf-flow .sstf-field-grid>.sstf-field-sm{grid-column:span 4!important}
 body.sstf-flow .sstf-field-grid>.sstf-field-md{grid-column:span 6!important}
 body.sstf-flow .sstf-field-grid>.sstf-field-lg{grid-column:span 8!important}
 body.sstf-flow .sstf-field-grid>.sstf-field-full{grid-column:1/-1!important}
 body.sstf-flow .sstf-field-grid>label{min-width:0!important;margin:0!important}
 body.sstf-flow .sstf-field-grid>label> :is(input,select,textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important}
 body.sstf-flow .sstf-field-grid>.account-check{align-self:center!important}
 @media(max-width:560px){
  body.sstf-flow dialog.ss-action-modal:not(.ss-modal-xwide):not(.ss-store-sheet):not(.chat-popup){min-width:0!important;width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important}
  body.sstf-flow dialog.product-wizard{border-radius:var(--sstf-r-m)!important}
  body.sstf-flow .sstf-field-grid>.sstf-field-xs,body.sstf-flow .sstf-field-grid>.sstf-field-sm{grid-column:span 6!important}
  body.sstf-flow .sstf-field-grid>.sstf-field-md,body.sstf-flow .sstf-field-grid>.sstf-field-lg,body.sstf-flow .sstf-field-grid>.sstf-field-full{grid-column:1/-1!important}
 }
}

@layer sstf-hotfix{
  /* WIZ-V7 (compact adaptive wizard: content-height card, head/foot pinned, wizard-body the only scroller)
     is superseded in 1.29.13 by the Product Wizard central contract, layer sstf-wizard-contract in
     central-system.css. Measured on 1.29.12: this sstf-hotfix block reached Warehouse/Supplier only —
     customer-scoped selectors with higher specificity and sstf-compat overrode it. Only non-geometry skin stays here. */
  body.sstf-flow dialog.product-wizard[open]>.ss-action-body{padding:0!important}
  body.sstf-flow dialog.product-wizard[open] .head{z-index:3!important}
  body.sstf-flow dialog.product-wizard[open] .wizard-body{overscroll-behavior:contain!important}
  body.sstf-flow dialog.product-wizard[open] .wizard-foot{z-index:3!important;background:#fff!important}
  body.sstf-flow:has(dialog.product-wizard[open]){overflow:hidden!important}

  /* WIZ-V5 — size/quantity rows: clearer separation, balanced RTL, aligned − / qty / + (lightweight, no heavy cards). */
  body.sstf-flow .product-wizard .size-grid{gap:var(--sstf-space-3) 10px!important;align-items:stretch!important}
  body.sstf-flow .product-wizard .size-grid .size-cell{display:flex!important;flex-direction:column!important;gap:6px!important;padding:10px!important;border:1px solid #dce3ed!important;border-radius:var(--sstf-r-s)!important;background:#fff!important}
  body.sstf-flow .product-wizard .size-grid .size-quantity-controls{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:var(--sstf-space-2)!important;direction:ltr!important}
  body.sstf-flow .product-wizard .size-grid .size-quantity-controls>button{min-width:38px!important;min-height:38px!important}
  body.sstf-flow .product-wizard .size-grid .size-quantity-controls input{min-width:0!important;text-align:center!important}

  /* #7 — brand collapse/expand. Once a brand is chosen the picker collapses to a single pill showing the
     selection; the pill is the <details> summary, so clicking it reopens the search list (native toggle).
     Reused by every brand consumer (customer + warehouse) via SSTFWizardCore.brandCollapse. */
  body.sstf-flow .product-wizard .brand-picker>summary{list-style:none!important;cursor:pointer!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  body.sstf-flow .product-wizard .brand-picker>summary::-webkit-details-marker{display:none!important}
  body.sstf-flow .product-wizard .brand-picker.brand-chosen>summary{min-height:46px!important;padding:var(--sstf-space-3) 14px!important;border:1px solid #d9e3ec!important;border-radius:var(--sstf-r-s)!important;background:#f5f7fa!important;font-weight:800!important}
  body.sstf-flow .product-wizard .brand-picker.brand-chosen>summary #selected-brand{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.sstf-flow .product-wizard .brand-picker.brand-chosen>summary::after{content:attr(data-change-label)!important;/* PHASE4 D12: the translated word from product-wizard.php */flex:0 0 auto!important;margin-inline-start:auto!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;color:var(--ui-primary,#2563eb)!important}

  /* Sidebar cosmetic (owner request, separate from the wizard work): the sidebar accordion arrows were
     inheriting the `.small-icon` blue radial-gradient disc (line ~341) — the same circle used for the item
     icons. Strip the disc from the accordion chevron only, leaving a plain grey arrow; the item icons keep
     their circles. Placed in the sstf-hotfix layer so it overrides the layered `.small-icon` !important rule. */
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .nav-accordion-chevron,
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .nav-accordion-chevron .small-icon,
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .nav-accordion-chevron .icon-chevron{background:none!important;background-image:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important;color:#5a6b7c!important;width:28px!important;height:28px!important;stroke-width:3!important}

  /* Sidebar cosmetic (owner request): the collapsible "dropdown" sections (details.nav-section-accordion)
     get a light-grey card so they are visually distinct from the plain (non-expandable) nav links, which stay white. */
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .nav-section-accordion>summary{background:#eef2f7!important;border-color:#dce3ec!important}
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) .nav-section-accordion[open]>summary{background:#e7edf4!important}

  /* Sidebar cosmetic (owner request): larger + heavier nav label text. */
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button,summary),
  body.sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) nav :where(a,button,summary)>span{font-size:var(--sstf-t-card)!important;font-weight:900!important;letter-spacing:.1px!important}

  /* Item-2 — B2B order bottom-bar fix.
     sstf-authoritative forces mobile-nav visible (display:grid!important) on ALL pages,
     but on desktop the sidebar already provides navigation, so suppress the duplicate.
     On mobile (<960px) the sidebar is hidden, so mobile-nav stays visible. */
  @media(min-width:960px){/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(head):has(~ :where(body) .app-sidebar) ~ body.sstf-flow :where(.mobile-nav:not(.public-nav)){display:none!important}}
  /* #6876 — customer-bottom-stack must sit above the mobile-nav, not at bottom:0.
     Selector must match or exceed the specificity of line 5069's rule (1,4,1) which
     sets inset-block-end:0!important — otherwise the earlier rule wins via specificity
     despite this block coming later in the same sstf-hotfix layer. */
  
  
}

/* OA-30 — staff desktop sidebar collapses to the icon rail (nav-small, 84px).
   sstf-authoritative fixes .app-sidebar/.store-sidebar at width:250px!important; sstf-hotfix wins for !important.
   Staff .app-sidebar only; .store-sidebar is untouched. :where() lets more specific sstf-hotfix page layouts (e.g. staff order view margin) keep control of main; it still overrides lower layers. */
@layer sstf-hotfix{@media(min-width:961px){
  body.sstf-flow.nav-small .app-sidebar{width:84px!important;padding-inline:var(--sstf-space-1)!important;scrollbar-width:thin}
  :where(body.sstf-flow.nav-small) main{padding-inline-start:calc(84px + clamp(12px,2vw,26px))!important}
  /* Owner clarification OA-30: the collapsed rail keeps each item's existing label under its icon — the same icon-over-label pattern as .mobile-nav. */
  body.sstf-flow.nav-small .app-sidebar :where(nav a,nav summary,nav button,.nav-collapse){flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:2px!important;padding:6px 2px!important;text-align:center!important;min-height:0!important}
  body.sstf-flow.nav-small .app-sidebar .nav-collapse{min-height:44px!important}
  body.sstf-flow.nav-small .app-sidebar :where(nav a,nav summary,nav button,.nav-collapse)>span{display:block!important;max-width:100%!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;line-height:1.25!important;white-space:normal!important;}
  body.sstf-flow.nav-small .app-sidebar .nav-section-children{padding-inline:0!important;margin-inline:0!important}
  body.sstf-flow.nav-small .app-sidebar .nav-accordion-chevron{display:none!important}
  body.sstf-flow.nav-small .app-sidebar :where(a,button,summary)::after{content:none!important}
  /* Checker F5: the open staff sidebar is 250px (sstf-authoritative); keep --ui-sidebar in step so order pages do not slide 8px under it. */
  body.sstf-flow:not(.nav-small):has(.app-sidebar){--ui-sidebar:250px!important}
}}

/* Owner DESIGN_APPROVED (replaces the R2-2 header line): V2 Domain colour as a soft glow from the top-left of the page, directly under the header,
   and from the top-left corner of each order card. One central rule keyed on data-sstf-domain. Painted behind content (z-index:-1),
   never over text or buttons, never clickable, never a status colour. The product wizard is not touched. */
@layer sstf-hotfix{
  /* Painted as a background layer of <main> (which owns the opaque page background), so it sits behind all content without changing layout, stacking or the header. */
  body.sstf-flow main:has(> .app-header[data-sstf-domain]){background-image:radial-gradient(ellipse 100% 100% at 0 0,rgba(var(--sstf-domain-rgb),.45) 0,rgba(var(--sstf-domain-rgb),.2) 45%,rgba(var(--sstf-domain-rgb),0) 75%)!important;background-repeat:no-repeat!important;background-position:left 0 top var(--ui-app-height,76px)!important;background-size:min(640px,80vw) 380px!important}
  /* Owner DESIGN_APPROVED (OA-45): Administration glow is turquoise (owner override of V2 #50565E); sidebar entries take their section colour;
     the order number is written in its order's section colour (solid, no glow) on cards and on the order page. Same central variable. */
  body.sstf-flow :is(.app-sidebar,.app-drawer) a[data-sstf-domain]{background-color:rgba(var(--sstf-domain-rgb),.09)!important}
  body.sstf-flow :is(.app-sidebar,.app-drawer) a[data-sstf-domain] svg{color:rgb(var(--sstf-domain-rgb))!important}
  body.sstf-flow :is(.app-sidebar,.app-drawer) a[data-sstf-domain] img.nav-icon{background-color:rgba(var(--sstf-domain-rgb),.24)!important;border-radius:var(--sstf-r-s)!important}
  /* Owner note 1: MAIN fields (group headers, the settings tree header, single-link groups) show their section colour clearly;
     sub-fields inside a section keep the lighter tint above. Text stays readable (dark text on a light tint + a solid side bar). */
  body.sstf-flow :is(.app-sidebar,.app-drawer) details.nav-section-accordion[data-sstf-domain]>summary,body.sstf-flow :is(.app-sidebar,.app-drawer) [data-nav-main]>details[data-sstf-domain]>summary,body.sstf-flow :is(.app-sidebar,.app-drawer) [data-nav-main]>a[data-sstf-domain]{background-color:rgba(var(--sstf-domain-rgb),.26)!important;box-shadow:inset -4px 0 0 rgb(var(--sstf-domain-rgb))!important;font-weight:700}
  body.sstf-flow :is(.app-sidebar,.app-drawer) details.nav-section-accordion[data-sstf-domain]>summary svg,body.sstf-flow :is(.app-sidebar,.app-drawer) [data-nav-main]>details[data-sstf-domain]>summary svg,body.sstf-flow :is(.app-sidebar,.app-drawer) [data-nav-main]>a[data-sstf-domain] svg{color:rgb(var(--sstf-domain-rgb))!important}
  body.sstf-flow :is(.app-sidebar,.app-drawer) details.nav-section-accordion[data-sstf-domain]>summary img.nav-icon,body.sstf-flow :is(.app-sidebar,.app-drawer) [data-nav-main]>details[data-sstf-domain]>summary img.nav-icon,body.sstf-flow :is(.app-sidebar,.app-drawer) [data-nav-main]>a[data-sstf-domain] img.nav-icon{background-color:rgb(var(--sstf-domain-rgb))!important;border-radius:var(--sstf-r-s)!important}
  body.sstf-flow :is(.app-sidebar,.app-drawer) a[data-sstf-domain][aria-current="page"]{background-color:rgba(var(--sstf-domain-rgb),.45)!important;box-shadow:inset -5px 0 0 rgb(var(--sstf-domain-rgb))!important;font-weight:800!important}
  /* Order number: size, weight and section colour live in @layer sstf-typography (end of file). */
  /* Owner note 6: password eye */
  .sstf-password-field{position:relative;display:block}
  .sstf-password-field>input{width:100%;padding-inline-end:46px!important}
  body .sstf-password-field>.sstf-password-eye{position:absolute!important;inset-inline-end:6px!important;top:50%!important;transform:translateY(-50%)!important;width:auto!important;min-width:44px!important;min-height:44px!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-size:var(--sstf-t-card)!important;line-height:1!important;cursor:pointer}
  body .sstf-password-field>.sstf-password-eye[aria-pressed="true"]{opacity:.55!important}
  .sstf-remember-me{display:flex;align-items:center;gap:var(--sstf-space-2);margin-block:6px}
  body.sstf-flow :is(.order-line,.sstf-central-card,.warehouse-order-row)[data-sstf-domain]{position:relative;isolation:isolate}
  body.sstf-flow :is(.order-line,.sstf-central-card,.warehouse-order-row)[data-sstf-domain]::before{content:"";position:absolute;left:0;top:0;width:50%;height:80%;border-top-left-radius:inherit;background:radial-gradient(ellipse 100% 100% at 0 0,rgba(var(--sstf-domain-rgb),.32) 0,rgba(var(--sstf-domain-rgb),.12) 45%,rgba(var(--sstf-domain-rgb),0) 75%);pointer-events:none;z-index:-1}
}

/* Owner 1.29.57 items 4-5. Item 4: the menu header rows never scroll — the sidebar toggle (collapsed rail and open) and the mobile drawer
   heading + identity stay put; only the <nav> list scrolls under them. Item 5: team/staff items that are <button>s (team account cards,
   attendance presence people) carry .sstf-card-button, the one marker every blue button rule excludes, so their own white-card rules apply. */
@layer sstf-hotfix{
  @media(min-width:961px){
    body.sstf-flow .app-sidebar{display:flex!important;flex-direction:column!important;overflow:hidden!important}
    body.sstf-flow .app-sidebar>:is(.sidebar-identity,.nav-collapse){flex:0 0 auto!important;position:relative!important;top:auto!important;z-index:2!important}
    body.sstf-flow .app-sidebar>nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin}
  }
  body.sstf-flow #app-more.app-drawer[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body.sstf-flow #app-more.app-drawer>:is(.drawer-heading,.sidebar-identity){flex:0 0 auto!important;position:relative!important;top:auto!important;z-index:2!important;background:#fff!important;backdrop-filter:none!important}
  body.sstf-flow #app-more.app-drawer>.sidebar-identity{box-shadow:var(--sstf-sh-card)!important}
  body.sstf-flow #app-more.app-drawer>nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-top:10px!important}
}

/* Owner DESIGN_APPROVED 1.29.57 items 3 + 7 — the central type scale. Tokens come only from TypographyPolicy::css().
   sstf-typography is declared right after sstf-wizard-contract (compat.css), so these role rules outrank every older
   hotfix/authoritative/local !important size. Local sizes below the 13px floor were rewritten in place to var(--sstf-t-small).
   Icon/glyph-only buttons, navigation items and card-like buttons keep their own sizes (never shrunk). */
@layer sstf-typography{
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders){font-size:var(--sstf-t-body)!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) :is(h1,.page-heading h1){font-size:var(--sstf-t-page)!important;font-weight:var(--sstf-fw-page)!important;line-height:1.25!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) :is(h2,.section-heading h2){font-size:var(--sstf-t-card)!important;font-weight:var(--sstf-fw-section)!important;line-height:1.3!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) :is(.state-badge,.status-pill,.account-status,.inventory-product-status,.inventory-incomplete-badge,.sstf-central-status,.task-card>span):not(.sstf-status-chip){font-size:var(--sstf-t-body)!important;font-weight:var(--sstf-fw-label)!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) :is(button,.button,.flow-button,input[type=submit],input[type=button]):not(.sstf-status-chip,.icon-button,.nav-collapse,[data-close-sheet],.ss-dialog-close,.wizard-close,.sstf-password-eye,.order-actions-trigger,.ss-order-actions-trigger,.ss-card-menu,.ss-account-page-menu-trigger,.ss-account-card-menu-trigger,[data-delta],.sstf-card-button,.supplier-product-open,.recipient-dialog-close,.recipient-list-dialog-close,.recipient-order-review-close,.recipient-one-review-close,.inventory-sheet-close,[data-review-dialog-close],[data-export-dialog-close],.chat-emojis button,.calculator-grid button,.inventory-search-row button,.review-dialog header button,.export-dialog header button,.recipient-address-dialog-head button,:is(.app-sidebar,.store-sidebar,.app-drawer,.mobile-nav) *){font-size:var(--sstf-t-body)!important;font-weight:var(--sstf-fw-button)!important}
  /* Order number (item 3): every rendering carries .ss-order-number (B2B central cards use their body <strong>); colour = the order's own section. */
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) :is(.ss-order-number,.sstf-central-card[data-sstf-domain] .sstf-central-card__body>strong){font-size:var(--sstf-t-card)!important;font-weight:var(--sstf-fw-order)!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) .ss-identity-row :is(.ss-order-number,.sstf-central-card[data-sstf-domain] .sstf-central-card__body>strong){font-size:var(--sstf-t-card)!important}
  /* order number inside a page title: specificity 0,5,3 / 0,6,3 outranks the general order-number rule (0,4,2) */
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) .page-heading h1 :is(.ss-order-number,.sstf-central-card[data-sstf-domain] .sstf-central-card__body>strong){font-size:1.08em!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) .app-header .header-context strong :is(.ss-order-number,.sstf-central-card[data-sstf-domain] .sstf-central-card__body>strong){font-size:1em!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-admin-orders) :is(.ss-order-number[data-sstf-domain],[data-sstf-domain]:not(.app-header) .ss-order-number,.sstf-central-card[data-sstf-domain] .sstf-central-card__body>strong){color:rgb(var(--sstf-domain-rgb))!important}
}

/* PHASE2-FINANCE-PRINT-FIX (D-01): print only — the two wide accounting reports «حركة الصناديق» (cash, 14 columns) and «سندات القبض» (receipts, 15 columns)
   fit the A4-landscape page: headings may wrap, long references / descriptions wrap anywhere, amounts and numbers never split, tighter cell padding, 10px text. Screen layout, columns and values are unchanged.
   Placed in the existing layer sstf-approved (declared in compat.css), where the screen rule it overrides for print (central-system.css: th nowrap/sticky) lives; the higher specificity wins there. */
@layer sstf-approved{@media print{
.account-report-table.acc-report-scroll:is([data-report-kind="cash"],[data-report-kind="receipts"]){width:100%!important;max-width:100%!important;overflow:visible!important}
.account-report-table.acc-report-scroll:is([data-report-kind="cash"],[data-report-kind="receipts"])>table{table-layout:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:var(--sstf-t-small)!important}
.account-report-table.acc-report-scroll:is([data-report-kind="cash"],[data-report-kind="receipts"])>table>thead>tr>th,
.account-report-table.acc-report-scroll:is([data-report-kind="cash"],[data-report-kind="receipts"])>table>tbody>tr>td{white-space:normal!important;word-break:normal!important;font-size:var(--sstf-t-small)!important;line-height:1.3!important;padding:var(--sstf-space-1) 3px!important;min-width:0!important;max-width:none!important}
.account-report-table.acc-report-scroll:is([data-report-kind="cash"],[data-report-kind="receipts"])>table>thead>tr>th{position:static!important}
}}


/* ─────────────────────────────────────────────────────────────────────────────
   R202 — وثيقة الطباعة المحاسبية المركزية (نموذج المالك المعتمد 20/11).
   تُبنى في UI\PrintDoc وتظهر عند الطباعة وحدها؛ الشاشة تبقى كما هي. كل تصدير PDF
   محاسبي يرث هذا التصميم، فلا يكتب أي قالب ترويسةً أو جدولًا بيده.
   ───────────────────────────────────────────────────────────────────────────── */
.sstf-print-doc{display:none}
/* @page خارج الطبقة عمدًا (المتصفّح يتجاهل @page داخل @layer).
   ولا نفرض اتجاهًا: حوار الطباعة في الجوّال يختار الورق بنفسه ويتجاهل «أفقي»، فكان المحتوى
   المُهيَّأ للأفقي يُحشر في ورقةٍ عمودية — يُصغَّر خطه ويُترك ثلث الصفحة فراغًا (بلاغ المالك 20/11).
   بلا size: الصفحة تُبنى على الورقة التي يختارها الجهاز، فتمتلئ بخطها الكامل أيًّا كان اتجاهها. */
@media print{@page{size:auto;margin:8mm}} /* size:auto يلغي «A4 landscape» المفروض في كتل طباعةٍ أقدم
   في هذا الملف نفسه (أسطر 508 و557 و637) — وهو سبب الحشر في ورقة الجوّال العمودية. */
/* الطبقة: إخفاء عناصر الشاشة عند الطباعة يجب أن يعلو على !important المعلن في
   الطبقات اللاحقة (مثل .sstf-segmented في sstf-ui-contract) — والمهم في الطبقة الأسبق يغلب. */
@layer sstf-glass{
@media print{
 /* ١) لا يُطبع من الشاشة شيء: التبويبات والفلاتر وأدوات الرأس والبحث والترقيم ورابط التخطّي */
 /* القاعدة الحاسمة: لا يُطبع من الصفحة إلا الوثيقة — كل أبٍ لها يفقد زخرفته، وكل أخٍ لها يختفي،
    مهما عمق تداخلها في بطاقات الشاشة. فلا نطارد اسم كل عنصر واجهة على حدة. */
 body:has(.sstf-print-doc) main *:has(.sstf-print-doc){display:block!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;max-width:none!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;contain:none!important;transform:none!important;filter:none!important;break-inside:auto!important}
 body:has(.sstf-print-doc) main>*:not(:has(.sstf-print-doc)):not(.sstf-print-doc),
 body:has(.sstf-print-doc) main *:has(.sstf-print-doc)>*:not(:has(.sstf-print-doc)):not(.sstf-print-doc){display:none!important}
 body:has(.sstf-print-doc) :where(.app-skip,.app-header,.app-sidebar,.mobile-nav,.sstf-head-tools,.account-nav,dialog,.sstf-side-rail,.print-doc-head,.store-bottom-nav,.app-drawer){display:none!important}
 body:has(.sstf-print-doc) main{padding:0!important;margin:0!important;max-width:none!important;width:100%!important}
 body:has(.sstf-print-doc).sstf-flow{background:#fff!important}

 .sstf-print-doc{display:block!important;color:#0f2b46;font-size:12pt;line-height:1.4}
 /* لا عنصر ثابت أو لاصق داخل الوثيقة: المتصفح يعيد رسم الثابت في كل صفحة فيظهر الشعار فوق الجدول */
 .sstf-print-doc *{position:static!important}
 .sstf-print-rule{height:5px;border-radius:3px;background:linear-gradient(90deg,#1565c0,#2f8ce0,#8fc3f2);margin:0 0 14px}

 .sstf-print-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 0 12px;border-bottom:1px solid #e3ecf6}
 .sstf-print-type{display:grid;gap:2px}
 .sstf-print-type strong{font-size:13pt;color:#1a3f66}
 .sstf-print-type span{font-size:9.5pt;letter-spacing:.06em;text-transform:uppercase;color:#7d93ab}
 .sstf-print-brand{display:flex;align-items:center;gap:10px}
 .sstf-print-brand__name{display:grid;gap:1px;text-align:end}
 .sstf-print-brand__name strong{font-size:14pt;color:#12456f}
 .sstf-print-brand__name span{font-size:10pt;color:#7d93ab}
 .sstf-print-logo{width:42px;height:42px;object-fit:contain}

 .sstf-print-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 0 12px}
 .sstf-print-title__text{display:grid;gap:4px;text-align:start}
 .sstf-print-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eaf2fd;flex:0 0 auto}
 .sstf-print-mark .sstf-icon{width:28px;height:28px;object-fit:contain}
 .sstf-print-title{justify-content:space-between}
 .sstf-print-title__text{flex:1 1 auto;padding-inline-end:14px}
 .sstf-print-brand__name strong{white-space:nowrap}
 .sstf-print-title h1{margin:0;font-size:24pt;font-weight:800;color:#103a5e;letter-spacing:-.01em}
 .sstf-print-title p{margin:0;font-size:11pt;color:#7d93ab;max-width:70ch}
 .sstf-print-status{align-self:center;padding:5px 13px;border:1px solid #bcd9f5;border-radius:999px;background:#f2f8ff;color:#1565c0;font-size:10.5pt;font-weight:700;white-space:nowrap}

 .sstf-print-meta{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #e3ecf6;border-radius:10px;overflow:hidden;margin:0 0 12px}
 .sstf-print-meta>div{display:grid;gap:3px;padding:10px 12px;text-align:end;border-inline-start:1px solid #e3ecf6}
 .sstf-print-meta>div:first-child{border-inline-start:0}
 .sstf-print-meta span{font-size:10pt;color:#8aa0b6}
 .sstf-print-meta strong{font-size:12.5pt;color:#163f66}

 .sstf-print-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 16px}
 .sstf-print-cards>div{display:grid;gap:2px;padding:11px 13px;border:1px solid #e3ecf6;border-radius:10px;text-align:end}
 .sstf-print-cards span{font-size:10pt;color:#8aa0b6}
 .sstf-print-cards strong{font-size:18pt;font-weight:800;color:#103a5e}
 .sstf-print-cards small{font-size:9.5pt;color:#8aa0b6}
 .sstf-print-cards>div.is-ok{background:#f1faf3;border-color:#cfe9d6}
 .sstf-print-cards>div.is-ok strong{color:#1e7b3c}
 .sstf-print-cards>div.is-warn{background:#fff7ed;border-color:#f3dcbd}
 .sstf-print-cards>div.is-warn strong{color:#b3621a}

 .sstf-print-section{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:0 0 7px}
 .sstf-print-section h2{margin:0;font-size:14pt;font-weight:800;color:#103a5e}
 .sstf-print-section span{font-size:10pt;color:#8aa0b6}

 .sstf-print-table{width:100%;border-collapse:collapse;font-size:12pt}
 .sstf-print-table thead{display:table-header-group}
 .sstf-print-table tfoot{display:table-row-group!important} /* لا يتكرّر في ذيل كل صفحة: الإجمالي مرة واحدة في آخره */
 .sstf-print-table tr{break-inside:avoid}
 .sstf-print-table th{background:#eaf2fd;color:#16477a;font-weight:800;font-size:12pt;padding:7px 10px;text-align:end;border-bottom:1px solid #d7e6f7}
 .sstf-print-table td{padding:6px 10px;text-align:end;border-bottom:1px solid #eef3f9;color:#1d3f5f}
 .sstf-print-table tbody tr:nth-child(even){background:#f7fafd}
 .sstf-print-table th.is-num,.sstf-print-table td.is-num,.sstf-print-table .is-num{text-align:end;font-variant-numeric:tabular-nums}
 .sstf-print-table tfoot td{background:#eef5fd;font-weight:800;font-size:13pt;color:#103a5e;border-top:1.5px solid #cfe0f3;border-bottom:0;padding:9px 10px}
 .sstf-print-dash{color:#b9c7d6}

 .sstf-print-chip{display:inline-block;padding:2px 9px;border-radius:999px;font-size:10pt;font-weight:700}
 .sstf-print-chip--asset{background:#e8f1fd;color:#1565c0}
 .sstf-print-chip--liability{background:#f3eafc;color:#7232ab}
 .sstf-print-chip--equity{background:#e9ecfb;color:#3a46a8}
 .sstf-print-chip--revenue{background:#e6f7f1;color:#0f7a57}
 .sstf-print-chip--expense{background:#fdf3e3;color:#a9640f}
 .sstf-print-chip--cogs{background:#fdeee6;color:#b0511f}
 .sstf-print-chip--other{background:#eef1f5;color:#5b6b7c}

 .sstf-print-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding-top:8px;border-top:1px solid #e3ecf6;font-size:9.5pt;color:#8aa0b6}
 .sstf-print-foot__pages::after{content:counter(page) " / " counter(pages)}
}
}

/* R322 (بلاغ موظف فلاي 4/12): شبكة التمكيس — مربّعٌ لكل منتج بصورةٍ واضحة وعدّاد، بدل صفٍّ
   لكل حبة (217 صفًّا لـ34 منتجًا في شحنته). والشريط فوقها يتمرّر أفقيًا بقاعدة المالك. */
.fly-parcel-strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:4px 0 8px;-webkit-overflow-scrolling:touch}
.fly-parcel-strip>*{flex:0 0 auto}
.fly-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:10px 0}
.fly-tile{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid var(--tf-line);border-radius:14px;background:var(--tf-canvas)}
.fly-tile--picked{border-color:var(--tf-blue);box-shadow:0 0 0 2px var(--tf-blue-soft)}
.fly-tile__img{display:block;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--tf-blue-soft)}
.fly-tile__img img{width:100%;height:100%;object-fit:cover;display:block}
.fly-tile__img--none{display:grid;place-items:center}
.fly-tile__name{font-size:.95rem;line-height:1.25;overflow-wrap:anywhere}
.fly-tile__meta,.fly-tile__left,.fly-tile__where{font-size:.78rem;opacity:.8;overflow-wrap:anywhere}
.fly-tile__where{color:var(--tf-blue)}
.fly-tile__count{display:flex;align-items:center;gap:6px;margin-top:auto}
.fly-tile__count input{flex:1 1 auto;min-width:0;text-align:center;font-size:1.05rem;padding:7px 4px;border:1px solid var(--tf-line);border-radius:10px;background:var(--tf-canvas);color:var(--tf-ink)}
.fly-step{flex:0 0 auto;width:38px;height:38px;border-radius:10px;border:1px solid var(--tf-line);background:transparent;color:var(--tf-ink);font-size:1.3rem;line-height:1;cursor:pointer}
.fly-step:active{background:var(--tf-blue);color:#fff;border-color:var(--tf-blue)}
@media(max-width:430px){.fly-grid{grid-template-columns:repeat(2,1fr);gap:9px}}

/* R323 (بلاغ المالك 4/12): الطرود في قائمة منسدلة بدل شريطٍ يطول، وإعادة البند إلى الشبكة من كرت طرده. */
.fly-parcel-pick{margin:8px 0}
/* R326 (بلاغ المالك 5/12): بند الطرد صفٌّ واحد واضح — صورةٌ تُفتح، اسمٌ بارز، **عدده في هذا
   الطرد** سطرًا مستقلًّا، ثم الطلب ووزن الحبة؛ وخانة الإخراج بلا أيقونةٍ تغطّي رقمها. */
.fly-in-parcel{display:flex;flex-direction:column;gap:10px;list-style:none;padding:0;margin:8px 0}
.fly-in-parcel__row{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid var(--tf-line);border-radius:12px;background:var(--tf-canvas)}
.fly-in-parcel__img{flex:0 0 auto;width:56px;height:56px;border-radius:9px;overflow:hidden;display:block;background:var(--tf-blue-soft)}
.fly-in-parcel__img img{width:100%;height:100%;object-fit:cover;display:block}
.fly-in-parcel__text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.fly-in-parcel__name{font-size:.95rem;line-height:1.25;overflow-wrap:anywhere}
.fly-in-parcel__count{font-size:.88rem;color:var(--tf-blue)}
.fly-in-parcel__meta{font-size:.76rem;opacity:.75;overflow-wrap:anywhere}
.fly-back{display:flex;flex-direction:column;align-items:center;gap:3px;flex:0 0 auto}
.fly-back__label{font-size:.72rem;opacity:.8;white-space:nowrap}
/* الخانة لا تُؤيقَن: الأيقونة المركزية كانت تُحشر فوقها (padding-left:40px) فتغطّي الرقم */
.fly-back input{width:66px!important;min-width:66px;text-align:center;font-size:1.05rem;padding:8px 4px!important;border:1px solid var(--tf-line);border-radius:10px;background:var(--tf-canvas);color:var(--tf-ink)}
.fly-back .sstf-icon-field__icon{display:none!important}
@media(max-width:380px){.fly-in-parcel__img{width:46px;height:46px}}

/* R327 (أمر المالك 5/12): «تغيير التعبئة» عند المستودع — بندٌ بعدّاده لا مربّعٌ لكل حبة. */
.fly-change-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--tf-line)}
.fly-change-row:last-child{border-bottom:0}
.fly-change-row__name{flex:1 1 auto;min-width:0;font-size:.88rem;overflow-wrap:anywhere}
.fly-change-row__have{flex:0 0 auto;font-size:.76rem;opacity:.75;white-space:nowrap}
.fly-change-row input{flex:0 0 auto;width:66px;text-align:center;font-size:1.02rem;padding:7px 4px!important;border:1px solid var(--tf-line);border-radius:10px;background:var(--tf-canvas);color:var(--tf-ink)}
.fly-change-row .sstf-icon-field__icon{display:none!important}

/* R349 (أمر المالك 5/12): «يفتح محتويات الطرد وعدد القطع بجانب كل صورة وعلى شكل شبكة 3×3».
   فالبنود شبكةٌ من ثلاثة أعمدة، صورةُ البند كبيرةٌ وعددُه عليها، واسمه تحتها. */
.fly-in-parcel{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;list-style:none;padding:0;margin:8px 0}
.fly-in-parcel__row{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px;position:relative}
.fly-in-parcel__img{position:relative;width:100%;height:auto;aspect-ratio:1/1;border-radius:10px}
.fly-in-parcel__text{gap:2px;text-align:center}
.fly-in-parcel__name{font-size:.78rem;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fly-in-parcel__count{position:absolute;top:10px;inset-inline-end:10px;z-index:2;
 background:var(--tf-blue,#1549d6);color:#fff;border-radius:999px;padding:2px 8px;
 font-size:.82rem;font-weight:800;line-height:1.5;box-shadow:0 2px 8px rgba(15,23,42,.25)}
.fly-in-parcel__meta{display:none}
@media(max-width:360px){.fly-in-parcel{grid-template-columns:repeat(2,1fr)}}

/* R354 (أمر المالك 5/12): «بضغط على الكرت بفتحه وخلص» — صفّ القيمة الذي يحمل بابًا يبدو
   قابلًا للضغط ويفتح بلوحة المفاتيح أيضًا. */
.sstf-value-row.is-door{cursor:pointer;width:100%;text-align:inherit;transition:background .15s}
.sstf-value-row.is-door:hover,.sstf-value-row.is-door:focus-visible{background:var(--tf-pale,#f1f5ff)}
.sstf-value-row.is-door:after{content:'‹';margin-inline-start:auto;opacity:.5;font-size:1.1rem}
