/* TradeFlow Central UI Library — presentation only.
   UI-FIX-B2B-03 (1) — ONE spacing & size scale. Reference: Material Design 3 (4-px base grid), with three owner
   exceptions: buttons and fields are 48px high, chips are 36px, header icons are 28px. Central components use only
   these tokens for spacing, sizes and corner radii (border thickness, shadows and font sizes are outside the scale). */
@layer sstf-glass; /* BATCH A: the glass components layer is declared first — its !important rules outrank every other layer (compat.css / app-ui.css declare the same order) */
:root{
  /* GATES-01 rules أ/د (checker F4/F6): typography, blur, focus rings, strokes, hairline and translucent colours of the central components — same values. */
  --sstf-black-a06: rgba(0,0,0,.06);
  --sstf-black-a08: rgba(0,0,0,.08);
  --sstf-blur-12: 12px;
  --sstf-blur-14: 14px;
  --sstf-blur-2: 2px;
  --sstf-blur-3: 3px;
  --sstf-hairline: 1px;
  --sstf-ring-2: 2px;
  --sstf-ring-3: 3px;
  --sstf-ring-offset-1: 1px;
  --sstf-ring-offset-2: 2px;
  --sstf-ring-offset-4: 4px;
  --sstf-shade-14283d-a14: rgba(20,40,61,.14);
  --sstf-shade-142846-a05: rgba(20,40,70,.05);
  --sstf-shade-142846-a06: rgba(20,40,70,.06);
  --sstf-shade-142846-a12: rgba(20,40,70,.12);
  --sstf-shade-142846-a16: rgba(20,40,70,.16);
  --sstf-shade-162234-a18: rgba(22,34,52,.18);
  --sstf-shade-1e4064-a05: rgba(30,64,100,.05);
  --sstf-shade-234467-a08: rgba(35,68,103,.08);
  --sstf-shade-ecf1f7-a34: rgba(236,241,247,.34);
  --sstf-stroke-3: 3px;
  /* BATCH A (owner 27/10, glass reference): ONE type scale — page 24 / card 17 / body 15 / small 13 / numbers 24. The legacy --sstf-text-NN
     names are aliases of the scale (never a second value); nothing renders under 13px. The only exception is the phone input (16px: iOS zooms on focus below it). */
  --sstf-t-page: 24px; --sstf-t-card: 17px; --sstf-t-body: 15px; --sstf-t-small: 13px; --sstf-t-num: 24px;
  --sstf-mobile-input: 16px;
  --sstf-text-11: var(--sstf-t-small); --sstf-text-12: var(--sstf-t-small); --sstf-text-13: var(--sstf-t-small);
  --sstf-text-14: var(--sstf-t-body); --sstf-text-15: var(--sstf-t-body);
  --sstf-text-16: var(--sstf-t-card); --sstf-text-18: var(--sstf-t-card);
  --sstf-text-21: var(--sstf-t-page); --sstf-text-22: var(--sstf-t-page); --sstf-text-28: var(--sstf-t-page);
  --sstf-white-a14: rgba(255,255,255,.14);
  --sstf-white-a7: rgba(255,255,255,.7);
  --sstf-white-a75: rgba(255,255,255,.75);
  --sstf-white-a88: rgba(255,255,255,.88);
  --sstf-white-a9: rgba(255,255,255,.9);
  --sstf-white-a94: rgba(255,255,255,.94);
  --sstf-white-a95: rgba(255,255,255,.95);

  /* GATES-01 rule د: every fixed colour of the central components lives here once — status families (tone-*) and neutral ink/line/surface. */
  --sstf-badge-off: #8a96a3;
  --sstf-ink: #17212b;
  --sstf-ink-arrow: #1f2933;
  --sstf-ink-line: #4d5b69;
  --sstf-ink-muted: #5a6978;
  --sstf-ink-segmented: #46546a;
  --sstf-ink-soft: #5f6d7c;
  --sstf-ink-tag: #46607a;
  --sstf-line-back: #d7e1ec;
  --sstf-line-card: #dfe7ef;
  --sstf-line-choice: #dfe7f0;
  --sstf-line-quick: #e1e8ef;
  --sstf-line-quick-item: #edf1f5;
  --sstf-line-segmented: #e3e9f0;
  --sstf-line-special: #d6dee7;
  --sstf-line-status-now: #eef2f6;
  --sstf-mask-solid: #000;
  --sstf-surface: #fff;
  --sstf-surface-idle: #fafbfc;
  --sstf-surface-now: #fffaf4;
  --sstf-surface-segmented: #f1f4f8;
  --sstf-surface-special: #fbfcfd;
  --sstf-surface-special-danger: #fff8f7;
  --sstf-surface-special-muted: #f7f8fa;
  --sstf-surface-status: #edf4fb;
  --sstf-surface-tag: #eef3f8;
  --sstf-tone-action-bg: #fdeedd;
  --sstf-tone-action-border: #f6cfa4;
  --sstf-tone-action-fg: #a3510b;
  --sstf-tone-action-strong: #e07b1f;
  --sstf-tone-danger-bg: #ffeaee;
  --sstf-tone-danger-border: #f1c5ce;
  --sstf-tone-danger-fg: #b64354;
  --sstf-tone-danger-line: #efc7c2;
  --sstf-tone-danger-stage-bg: #fbe9e7;
  --sstf-tone-danger-stage-fg: #a3271d;
  --sstf-tone-danger-strong: #d1463b;
  --sstf-tone-done-bg: #e8f5e9;
  /* owner 2026-10-06 (reports reference): the purple tone of «الربح المتوقع» */
  --sstf-tone-purple-bg: #f2ecff;
  --sstf-tone-purple-border: #dcd0fb;
  --sstf-tone-purple-fg: #7046d6;
  --sstf-tone-done-bg-soft: #e5f5e9;
  --sstf-tone-done-border: #c2e4cd;
  --sstf-tone-done-fg: #2e7d32;
  --sstf-tone-done-fg-soft: #287847;
  --sstf-tone-done-stage-bg: #e6f5ec;
  --sstf-tone-done-stage-fg: #1f7a43;
  --sstf-tone-done-strong: #2e9a57;
  --sstf-tone-neutral-bg: #edf0f4;
  --sstf-tone-neutral-border: #dfe4ea;
  --sstf-tone-neutral-fg: #5c6878;
  --sstf-tone-neutral-stage-bg: #eef1f4;
  --sstf-tone-neutral-stage-fg: #46525e;
  --sstf-tone-neutral-strong: #c7ced6;
  --sstf-tone-progress-bg: #fff0dc;
  --sstf-tone-progress-border: #f7d4a4;
  --sstf-tone-progress-fg: #a75b16;
  --sstf-tone-progress-stage-bg: #fdf2e3;
  --sstf-tone-progress-stage-fg: #8a5a14;
  --sstf-tone-progress-strong: #e9a452;
  --sstf-tone-waiting-bg: #e7efff;
  --sstf-tone-waiting-border: #ceddf7;
  --sstf-tone-waiting-fg: #3d69ae;
  --sstf-tone-waiting-stage-bg: #e7f0fb;
  --sstf-tone-waiting-stage-fg: #1f5ba6;
  --sstf-tone-waiting-strong: #3a7bd5;
  /* NOTIF (owner 2026-10-21, FEATURE-1320 ب): «التطبيق والتنبيهات» — the colours of the owner's picture, named once */
  --sstf-app-install-from: #36a3ff; --sstf-app-install-to: #2457e6; --sstf-app-install-ink: #fff; --sstf-app-install-line: #8cc4ff;
  --sstf-app-push-from: #d4f6e6; --sstf-app-push-to: #93e2c4; --sstf-app-push-ink: #0f4a3a; --sstf-app-push-line: #9fe0c6;
  --sstf-app-test-from: #dbe7ff; --sstf-app-test-to: #8f9dfb; --sstf-app-test-ink: #102a63; --sstf-app-test-line: #b8c6fb;
  --sstf-app-switch-on: #1fae6a; --sstf-app-switch-off: #b9c3cf; --sstf-app-play: #2563eb; --sstf-app-dot: #f5b82e; --sstf-app-unread: #e0262e; /* R134 Q5: was #e5333a (4.32:1) */
  --sstf-app-tile-h: 64px; --sstf-app-icon-tile: var(--sstf-icon-48);

  --sstf-space-1: 4px; --sstf-space-2: 8px; --sstf-space-3: 12px; --sstf-space-4: 16px; --sstf-space-5: 24px; --sstf-space-6: 32px;
  --sstf-icon-20: 20px; --sstf-icon-32: 32px; --sstf-icon-48: 48px; /* BATCH A: the three icon sizes */
  --sstf-touch: 48px; --sstf-icon-md: var(--sstf-icon-20); --sstf-icon-lg: var(--sstf-icon-32); --sstf-icon-gap: 12px;
  --sstf-control-h: 48px; --sstf-chip-h: 36px;
  --sstf-mobile-nav-icon: 40px; /* R133 G1 (owner default): the team's phone bottom bar icons only (.mobile-nav); the customer store bar keeps its size */
  --sstf-page-x: 16px; --sstf-card-pad: 16px; --sstf-card-gap: 12px;
  /* BATCH A: three corner radii (small 10 / medium 18 / large 24) + the pill; two shadows (card / window) and the glass rim; the state colours
     (idle / info / ok / warn / bad) and the primary gradient of the reference. The legacy names below are aliases. */
  --sstf-r-s: 10px; --sstf-r-m: 18px; --sstf-r-l: 24px;
  --sstf-sh-card: 0 1px 1px rgba(15,27,51,.04),0 6px 18px rgba(15,27,51,.07);
  --sstf-sh-window: 0 24px 60px rgba(15,27,51,.22);
  --sstf-rim: var(--sstf-rim);
  --sstf-primary: #3456d1; --sstf-primary-2: #5b3fd6; --sstf-on-primary: #fff;
  --sstf-primary-grad: linear-gradient(135deg,var(--sstf-primary) 0%,var(--sstf-primary-2) 100%);
  --sstf-primary-glow: 0 8px 22px rgba(70,72,214,.32);
  --sstf-state-idle: #6b7891; --sstf-state-idle-soft: rgba(107,120,145,.12);
  --sstf-state-info: #3456d1; --sstf-state-info-soft: rgba(52,86,209,.11);
  --sstf-state-ok: #14945a; --sstf-state-ok-soft: rgba(20,148,90,.12);
  --sstf-state-warn: #c27a00; --sstf-state-warn-soft: rgba(232,155,0,.14);
  --sstf-state-bad: #d93348; --sstf-state-bad-soft: rgba(217,51,72,.1);
  --sstf-glass-surface: rgba(255,255,255,.72); --sstf-glass-surface-2: rgba(255,255,255,.5); --sstf-glass-line: rgba(15,27,51,.08);
  /* R285 (أمر المالك 25/11): «بدي تخلّي إطار الحقل المركزي أعرض قليلًا واللون أسود».
     حدّ الحقل حلقةٌ داخلية لا border، وكان يأخذ خطّ الزجاج العام (rgba(15,27,51,.08)) الذي تشاركه
     الكروت والشرائح — فلو سُوِّد لسُوِّد كل شيء. فصار للحقل رمزه وحده: لونه وعرضه، يُغيَّران من هنا فقط. */
  --sstf-field-line: #17212b; --sstf-field-line-w: 1.6px;
  /* R286 (أمر المالك 25/11): «وحّد الكروت بلون رمادي متوسط الدرجة». كانت إطارات الكروت خمسة مصادر:
     أبيض الزجاج (كرت العمل) · خطّ الإجراءات #e1e8ef · خطّ الزجاج rgba(15,27,51,.08) ·
     لونٌ مكتوب باليد rgba(15,27,51,.18) لصفوف السجلات · وخطّ القوائم في الورقة القديمة.
     صارت كلّها تقرأ هذا الرمز وحده — يُغيَّر لون إطار كروت التطبيق كلها من هنا. */
  --sstf-card-line: #9aa5b1;
  --sstf-glass-blur: saturate(160%) blur(18px);
  --sstf-radius-card: var(--sstf-r-l); --sstf-radius-field: var(--sstf-r-m);
  /* derived layout sizes from earlier owner decisions (card sizes, Constitution part 6) — named once here */
  --sstf-radius-pill: 999px; --sstf-card-w-min: 360px; --sstf-card-w-max: 560px; --sstf-large-w-max: 1280px;
  --sstf-stage-arrow: var(--sstf-icon-20); --sstf-stage-icon: var(--sstf-icon-48);
  --sstf-choice-min: 150px; --sstf-section-min: 210px; --sstf-header-h: 108px;
  --sstf-safe-top: env(safe-area-inset-top, 0px);
  --sstf-safe-right: env(safe-area-inset-right, 0px);
  --sstf-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sstf-safe-left: env(safe-area-inset-left, 0px);
  --sstf-touch-min: var(--sstf-touch);
  --sstf-glass-standard: 480px;
  --sstf-glass-large: 560px;
  --sstf-glass-wizard: 640px;
  --sstf-mobile-gutter: var(--sstf-space-3);
  /* UI-1321 و-1 (owner reference badge-target.jpg): ONE count badge — a red pill, white ring, a soft top shine, a bold white number */
  --sstf-count-h: calc(var(--sstf-space-5) - var(--sstf-space-1));
  --sstf-count-pad: calc(var(--sstf-space-1) + 1px);
  --sstf-count-ring: 2px;
  --sstf-count-fg: #fff;
  --sstf-count-bg: #e0262e; /* R134 Q5 (U25, owner answer س49): white on it = 4.68:1 (was #f2323a, 3.97:1) — same pill, white ring and white number */
  --sstf-count-bg-shine: linear-gradient(180deg, #e0303a 0%, #e0262e 52%, #c81d25 100%); /* R134 Q5: the shine's lightest stop ≥ 4.5:1 too (was #ff6a6f, 2.78:1) */
  --sstf-count-shadow: var(--sstf-rim), 0 1px 3px rgba(150,20,28,.35);
}

.sstf-central-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--sstf-space-3);align-items:start}
.sstf-field--xs{grid-column:span 3}.sstf-field--sm{grid-column:span 4}.sstf-field--md{grid-column:span 6}.sstf-field--lg{grid-column:span 8}.sstf-field--full{grid-column:1/-1}

.sstf-central-glass{box-sizing:border-box;width:min(calc(100vw - (var(--sstf-mobile-gutter) * 2)),var(--sstf-glass-standard));max-height:calc(100dvh - var(--sstf-safe-top) - var(--sstf-safe-bottom) - calc(var(--sstf-icon-md) - var(--sstf-space-1)));overflow:auto}
.sstf-central-glass[data-size="large"]{width:min(calc(100vw - (var(--sstf-mobile-gutter) * 2)),var(--sstf-glass-large))}
.sstf-central-glass[data-size="wizard"]{width:min(calc(100vw - (var(--sstf-mobile-gutter) * 2)),var(--sstf-glass-wizard))}

[data-sstf-touch],.sstf-touch{min-width:var(--sstf-touch-min);min-height:var(--sstf-touch-min)}
.is-loading{cursor:progress!important;pointer-events:none;opacity:.72}
/* R165 (قرار المالك 12/11): الزرّ المنشغل تدور فيه دائرة — كان يخفت لونه فقط، فلا يُعرف أنه يعمل */
.is-loading{position:relative}
.is-loading::after{content:"";position:absolute;top:50%;inset-inline-end:var(--sstf-space-2,8px);width:16px;height:16px;margin-top:-8px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;opacity:.85;animation:sstf-press-spin .7s linear infinite;pointer-events:none}
@keyframes sstf-press-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.is-loading::after{animation-duration:2.4s}}
/* R165 (قرار المالك 12/11): «تم الحفظ ✓» — علامة خضراء لحظة واحدة بعد نجاح الحفظ */
.is-saved{position:relative}
.is-saved::after{content:"✓ " attr(data-sstf-saved-text);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:inherit;background:var(--sstf-tone-done-bg,#e8f7ee);color:var(--sstf-tone-done-strong,#157347);font-weight:800;animation:sstf-saved-in .18s ease-out both}
@keyframes sstf-saved-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
/* R165: شريط التقدّم بنسبة — رفع صورة أو تصدير ملف فقط، حيث النسبة حقيقية */
.sstf-progress{display:grid;gap:6px;min-width:0;margin-block-start:var(--sstf-space-2,8px)}
.sstf-progress__head{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2,8px)}
.sstf-progress__label{color:var(--sstf-ink-muted);font-size:var(--sstf-t-small)}
.sstf-progress__pct{color:var(--sstf-tone-waiting-strong);font-size:var(--sstf-t-small);font-weight:800}
.sstf-progress__track{height:8px;border-radius:999px;background:var(--sstf-surface-segmented);overflow:hidden}
.sstf-progress__fill{display:block;width:0;height:100%;border-radius:999px;background:var(--sstf-tone-waiting-strong);transition:width .18s linear}
.sstf-progress.is-done .sstf-progress__fill{background:var(--sstf-tone-done-strong,#157347)}
.sstf-progress.is-done .sstf-progress__pct{color:var(--sstf-tone-done-strong,#157347)}

.sstf-central-safe-top{padding-top:max(0,var(--sstf-safe-top))}
.sstf-central-safe-bottom{padding-bottom:max(0,var(--sstf-safe-bottom))}
.sstf-central-bottom-fixed{bottom:0;padding-bottom:max(var(--sstf-space-2),var(--sstf-safe-bottom))}

.sstf-central-table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.sstf-central-empty{text-align:center;padding:var(--sstf-space-5) var(--sstf-space-4)}
.sstf-central-empty>p{margin:.35rem 0 0;color:var(--tf-muted,var(--sstf-ink-soft))}

@media(max-width:700px){
  input,select,textarea{font-size:var(--sstf-mobile-input)}button{font-size:var(--sstf-t-body)}
  .sstf-central-grid{gap:var(--sstf-space-3)}
  .sstf-field--xs{grid-column:span 4}.sstf-field--sm{grid-column:span 6}.sstf-field--md,.sstf-field--lg{grid-column:span 12}
}

@media(max-width:430px){
  .sstf-field--xs,.sstf-field--sm{grid-column:span 6}
}

@media(prefers-reduced-motion:reduce){
  .sstf-central-glass,*[data-sstf-central-motion]{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}
}

.sstf-central-card{display:flex;gap:var(--sstf-space-3);align-items:flex-start;text-decoration:none;color:inherit;border:1px solid var(--tf-line,var(--sstf-line-card));border-radius:var(--sstf-radius-field);background:var(--sstf-brand-surface,var(--sstf-surface));padding:var(--sstf-space-3)}
.sstf-central-card>img{width:calc(var(--sstf-touch) + var(--sstf-space-4));height:calc(var(--sstf-touch) + var(--sstf-space-4));object-fit:contain;border-radius:var(--sstf-radius-field);background:var(--sstf-surface);flex:0 0 auto}
.sstf-central-card__body{min-width:0;display:grid;gap:var(--sstf-space-2);flex:1}
.sstf-central-card__body>small{color:var(--tf-muted,var(--sstf-ink-soft))}
.sstf-central-card__meta{display:flex;gap:var(--sstf-space-2) var(--sstf-space-4);flex-wrap:wrap;margin:0}.sstf-central-card__meta>div{display:flex;gap:var(--sstf-space-1)}.sstf-central-card__meta dt{color:var(--tf-muted,var(--sstf-ink-soft))}.sstf-central-card__meta dd{margin:0;font-weight:650}
.sstf-central-status{display:inline-flex;width:max-content;max-width:100%;align-items:center;min-height:var(--sstf-icon-lg);padding:var(--sstf-space-1) var(--sstf-space-2);border-radius:var(--sstf-radius-pill);background:var(--tf-blue-soft,var(--sstf-surface-status));font-size:var(--sstf-t-small);font-weight:700}
.sstf-central-field{min-width:0;display:grid;gap:var(--sstf-space-2)}.sstf-central-field>label{font-size:var(--sstf-t-body);font-weight:var(--sstf-fw-label)}.sstf-central-field input,.sstf-central-field select,.sstf-central-field textarea{width:100%;box-sizing:border-box}
.sstf-central-glass__head,.sstf-central-glass__foot{display:flex;align-items:center;gap:var(--sstf-space-3);padding:var(--sstf-space-3) var(--sstf-space-4)}.sstf-central-glass__head{justify-content:space-between;position:sticky;top:0;background:inherit;z-index:2}.sstf-central-glass__body{padding:0 var(--sstf-space-4) var(--sstf-space-4)}.sstf-central-glass__foot{justify-content:flex-end;position:sticky;bottom:0;background:inherit;padding-bottom:max(var(--sstf-space-3),var(--sstf-safe-bottom))}
/* 1.30.0 Contract: .sstf-central-progress/.sstf-central-task/.sstf-central-horizontal-rail removed with ComponentRenderer::progress()/task() (zero consumers). */

.sstf-central-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:var(--sstf-space-2);align-items:end}
.sstf-central-filter-chips{display:flex;gap:var(--sstf-space-2);overflow-x:auto;padding:var(--sstf-space-2) 0}
.sstf-central-filter-chips>a{display:inline-flex;align-items:center;gap:var(--sstf-space-2);white-space:nowrap;text-decoration:none;color:inherit;border:1px solid var(--tf-line,var(--sstf-line-card));border-radius:var(--sstf-radius-pill);background:var(--sstf-surface);padding:var(--sstf-space-2) var(--sstf-space-3)}
@media(max-width:600px){.sstf-central-search-row{grid-template-columns:minmax(0,1fr) auto}.sstf-central-search-row>button:last-child{grid-column:1/-1}}
/* 1.29.13 — PRODUCT WIZARD CENTRAL CONTRACT (single source).
   Owns Geometry, Header/Body/Footer structure, Scroll ownership and Sizes layout of dialog.product-wizard
   for EVERY consumer (Warehouse, Customer/B2B incl. staff view, Supplier). Consumers may style domain
   content only; they must not set dialog/head/body/foot geometry or the sizes grid (see
   tests/wizard-central-contract-static-gate.sh).
   Priority: layer `sstf-wizard-contract` is declared FIRST in compat.css, so for !important it outranks
   every other layer and all unlayered rules — independent of selector specificity or body class.
   Values: GlassPolicy::sizes()['wizard'] (min 360 / max 640) and the central tokens above. */
@layer sstf-wizard-contract{
  :root{
    --sstf-wizard-max-width:var(--sstf-glass-wizard,640px);
    --sstf-wizard-min-width:360px;
    --sstf-wizard-gutter:var(--sstf-mobile-gutter,10px);
    --sstf-wizard-max-height:calc(min(100dvh,var(--sstf-visual-height,100dvh)) - var(--sstf-safe-top,0px) - var(--sstf-safe-bottom,0px) - 20px);
    --sstf-wizard-size-columns:3;
  }
  dialog.product-wizard{position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box!important;width:min(var(--sstf-wizard-max-width),calc(100vw - (var(--sstf-wizard-gutter) * 2)))!important;min-width:min(var(--sstf-wizard-min-width),calc(100vw - (var(--sstf-wizard-gutter) * 2)))!important;max-width:calc(100vw - (var(--sstf-wizard-gutter) * 2))!important;height:fit-content!important;min-height:0!important;max-height:var(--sstf-wizard-max-height)!important;overflow:hidden!important}
  dialog.product-wizard[open]{display:flex!important;flex-direction:column!important}
  dialog.product-wizard>.ss-action-body{display:flex!important;flex-direction:column!important;flex:0 1 auto!important;min-height:0!important;overflow:hidden!important}
  dialog.product-wizard>header,dialog.product-wizard .head{position:relative!important;flex:0 0 auto!important}
  dialog.product-wizard .wizard-body{flex:0 1 auto!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important}
  dialog.product-wizard .wizard-foot{position:relative!important;flex:0 0 auto!important}
  dialog.product-wizard #sizes{display:block!important;width:100%!important;max-height:none!important;overflow:visible!important}
  dialog.product-wizard #sizes>.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% / var(--sstf-wizard-size-columns))),1fr))!important;grid-auto-rows:max-content!important;max-height:none!important;overflow:visible!important}
  @media(max-width:360px){:root{--sstf-wizard-size-columns:2}}
}

/* 1.29.14 — central close confirmation of the Product Wizard (wizard-core.js). */
.sstf-wizard-close-confirm .sstf-wizard-close-actions{display:grid;gap:var(--sstf-space-2);margin-top:var(--sstf-space-3)}
.sstf-wizard-close-confirm .sstf-wizard-close-actions>button{width:100%;min-height:var(--sstf-touch)}

/* ======================================================================
 * 1.30.0 — CENTRAL CONTRACT (Design Constitution V3). Presentation only.
 * Layer order (compat.css): wizard-contract > typography > ui-contract > compat > hotfix > …
 * so these !important declarations outrank historical hotfix/authoritative rules,
 * while the typography floor and the protected Product Wizard contract still win.
 * ====================================================================== */
@layer sstf-ui-contract{
  /* ---- UI-FIX-B2B-02 (2): section colours (Constitution 3.6) — ONE definition. The page root takes the colour of the
     current section from the header (data-sstf-domain); an element carrying its own section (e.g. an order card of
     another section) overrides it locally. Central components read only --sstf-domain-rgb (no fixed blue).
     Default when a page declares no section: wholesale (the platform's B2B colour, as before). ---- */
  html{--sstf-domain-rgb:73,111,175}
  html:has(.app-header[data-sstf-domain="wholesale"]),[data-sstf-domain="wholesale"]{--sstf-domain-rgb:73,111,175}
  html:has(.app-header[data-sstf-domain="direct_sales"]),[data-sstf-domain="direct_sales"]{--sstf-domain-rgb:182,106,60}
  html:has(.app-header[data-sstf-domain="warehouse"]),[data-sstf-domain="warehouse"]{--sstf-domain-rgb:113,128,71}
  html:has(.app-header[data-sstf-domain="supplier"]),[data-sstf-domain="supplier"]{--sstf-domain-rgb:141,106,134}
  html:has(.app-header[data-sstf-domain="accounting"]),[data-sstf-domain="accounting"]{--sstf-domain-rgb:125,74,86}
  html:has(.app-header[data-sstf-domain="dropshipping"]),[data-sstf-domain="dropshipping"]{--sstf-domain-rgb:63,137,138}
  html:has(.app-header[data-sstf-domain="fly_cargo"]),[data-sstf-domain="fly_cargo"]{--sstf-domain-rgb:173,169,110} /* FLYCARGO-BUILD D-03/D-06; owner 2026-10-18 (FLYCARGO-FIX-1): khaki #ADA96E (was #FF99ff) */
  html:has(.app-header[data-sstf-domain="shipping"]),[data-sstf-domain="shipping"]{--sstf-domain-rgb:161,132,67}
  html:has(.app-header[data-sstf-domain="staff"]),[data-sstf-domain="staff"]{--sstf-domain-rgb:102,117,138}
  html:has(.app-header[data-sstf-domain="admin"]),[data-sstf-domain="admin"]{--sstf-domain-rgb:32,178,170}
  /* ---- Header: two rows (3.3 / 3ب.2) ---- */
  body.sstf-flow .app-header.app-header--rows,body.sstf-customer .app-header.app-header--rows,.sstf-admin .app-header.app-header--rows,.app-header.app-header--rows{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:stretch!important;row-gap:var(--sstf-space-1)!important;column-gap:0!important;flex-wrap:nowrap!important;min-height:0!important;padding-block:var(--sstf-space-2)!important;overflow:visible!important}
  .app-header--rows .app-header__tools{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;justify-self:start!important;min-width:0!important}
  .app-header--rows .app-header__company{justify-self:center!important;margin:0!important;max-width:100%!important;min-width:0!important;text-align:center!important;flex:initial!important}
  .app-header--rows .app-header__company>div{min-width:0!important;overflow:hidden!important}
  .app-header--rows .app-header__company :is(.company-name,.company-name-ar){text-align:center!important}
  .app-header--rows .app-header__logo{justify-self:end!important;display:flex!important;align-items:center!important}
  .app-header--rows .app-header__logo .logo{width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;flex:0 0 var(--sstf-touch)!important;object-fit:contain!important;margin:0!important}
  .app-header--rows .app-header__nav-start{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;justify-self:start!important;min-width:0!important;grid-column:1!important}
  .app-header--rows .app-header__nav-end{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;justify-self:end!important;grid-column:3!important}
  .app-header--rows .app-header__nav-start .workspace-quick-tools{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;position:static!important;width:auto!important}
  
  .app-header--rows .header-context{grid-column:2!important;justify-self:center!important;max-width:100%!important;min-width:0!important}
  .app-header--rows .app-header__nav-end .app-tools{display:flex!important;margin:0!important}
  /* UI-FIX-B2B-01 (3, 4): header icons are icons only - no box/card - at the 44x44 touch size; unread badges stay. */
  .app-header--rows :is(.app-back,.profile-link,.chat-launch,.app-header__tool,.app-settings-open){flex:0 0 var(--sstf-touch)!important;width:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:var(--sstf-radius-field)!important;color:var(--tf-ink,var(--sstf-ink))!important;position:relative!important}
  .app-header--rows :is(.app-back,.profile-link,.chat-launch,.app-header__tool,.app-settings-open)::before,.app-header--rows :is(.app-back,.profile-link,.chat-launch,.app-header__tool,.app-settings-open)::after{content:none!important;display:none!important}
  .app-header--rows :is(.app-back,.chat-launch,.app-header__tool,.app-settings-open) :is(svg,img.nav-icon){width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .app-header--rows .app-back>:not(svg){display:none!important}
  .app-header--rows :is(.app-back,.profile-link,.chat-launch,.app-header__tool,.app-settings-open):focus-visible{outline:var(--sstf-ring-2) solid rgba(var(--sstf-domain-rgb),.55)!important;outline-offset:var(--sstf-ring-offset-1)!important}
  /* (2, 3 — owner correction) row 2 on fixed columns, nothing grouped in the middle:
     right edge = back arrow aligned with the clock's right edge (row 1), then the team & duty button;
     left edge = messages / notifications / profile aligned with the logo's left edge, 8px apart; the centre stays empty. */
  .app-header--rows .app-header__nav-start{gap:var(--sstf-space-3)!important}
  .app-header--rows .app-header__nav-end{gap:var(--sstf-space-3)!important;grid-column:3!important;justify-self:end!important}
  .app-header--rows .app-back{justify-content:flex-start!important;padding-inline-start:0!important}
  .app-header--rows .app-header__nav-end>:last-child:is(.chat-launch,.profile-link,.app-tools){justify-content:flex-end!important;padding-inline-end:0!important}
  .app-header--rows .app-header__nav-end .profile-link :is(img,.sstf-avatar){width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;min-width:var(--sstf-icon-lg)!important;border-radius:50%!important;object-fit:cover!important}
  .app-header--rows :is(.chat-launch,.app-settings-open) .ss-message-count{position:absolute!important;top:calc(-1 * var(--sstf-space-1))!important;inset-inline-end:auto!important;left:calc(-1 * var(--sstf-space-2))!important;right:auto!important;margin:0!important;line-height:1!important}
  /* Dual clock: two small lines at the row height, no extra row (3.3). 13–14px. */
  .sstf-dual-clock{display:grid!important;grid-auto-rows:auto!important;gap:0!important;align-content:center!important;font-size:var(--sstf-t-body)!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.015em!important;color:var(--tf-ink,var(--sstf-ink))!important;font-variant-numeric:tabular-nums!important}
  .sstf-dual-clock__line{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;white-space:nowrap!important}
  .sstf-dual-clock__line[hidden]{display:none!important}
  .sstf-dual-clock__flag{display:inline-flex!important;flex:0 0 auto!important;min-width:calc(var(--sstf-icon-md) - var(--sstf-space-1))!important;width:calc(var(--sstf-icon-md) - var(--sstf-space-1))!important;height:var(--sstf-space-4)!important;border-radius:var(--sstf-space-1)!important;object-fit:cover!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-dual-clock__flag svg{width:var(--sstf-space-4)!important;height:var(--sstf-space-4)!important}
  @media(max-width:430px){.app-header--rows .app-header__company .company-name-ar{display:none!important}}

  /* ---- Card contract (1.4–1.9, 10.7-أ, owner sizes in part 6) ---- */
  dialog[data-sstf-card]{box-sizing:border-box!important;width:min(calc(100vw - var(--sstf-icon-md)),var(--sstf-card-w-max))!important;min-width:min(var(--sstf-card-w-min),calc(100vw - var(--sstf-icon-md)))!important;max-width:calc(100vw - var(--sstf-icon-md))!important;max-height:80dvh!important;overflow:auto!important;overscroll-behavior:contain!important;border:1px solid var(--sstf-card-line)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-white-a9)!important;-webkit-backdrop-filter:blur(var(--sstf-blur-14)) saturate(130%)!important;backdrop-filter:blur(var(--sstf-blur-14)) saturate(130%)!important;box-shadow:var(--sstf-sh-card)!important;padding:0!important}
  dialog[data-sstf-card]::backdrop{background:var(--sstf-shade-162234-a18)!important;-webkit-backdrop-filter:blur(var(--sstf-blur-2))!important;backdrop-filter:blur(var(--sstf-blur-2))!important}
  dialog[data-sstf-card="large"]{width:calc(100vw - var(--sstf-space-6))!important;max-width:var(--sstf-large-w-max)!important;height:calc(100dvh - var(--sstf-space-6))!important;max-height:calc(100dvh - var(--sstf-space-6))!important}
  dialog[data-sstf-card][open]{animation:sstf-card-in 150ms ease-out both}
  @keyframes sstf-card-in{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
  @media(max-width:600px){dialog[data-sstf-card]{width:calc(100vw - var(--sstf-icon-md))!important;min-width:0!important;max-height:88dvh!important}dialog[data-sstf-card="large"]{height:calc(100dvh - var(--sstf-icon-md))!important;max-height:calc(100dvh - var(--sstf-icon-md))!important}}
  @media(prefers-reduced-motion:reduce){dialog[data-sstf-card][open]{animation:none!important}}
  /* hotfix ui.118 (FIX 3): the ONE loading state of a card whose content comes from the server (central-system.js remoteLoadingShell) — the same
     glass card, a light ring that turns (transform only) and «جارٍ التحميل…»; the loaded card replaces it in place */
  .sstf-loading-shell__body{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-3)!important;min-height:calc(var(--sstf-icon-md) * 4)!important;padding:var(--sstf-space-6) var(--sstf-space-4)!important;color:inherit!important}
  .sstf-loading-shell__spinner{flex:none;width:var(--sstf-icon-md);height:var(--sstf-icon-md);border-radius:50%;border:var(--sstf-stroke-3) solid var(--sstf-shade-234467-a08);border-top-color:currentColor;animation:sstf-loading-turn .8s linear infinite;will-change:transform}
  @keyframes sstf-loading-turn{to{transform:rotate(360deg)}}
  /* R165 (قرار المالك 12/11): «بدي يكون النقاط نابضه، والكرت زجاجي» — ثلاث نقاط تنبض بالتتابع، والصندوق زجاج شفّاف */
  .sstf-loading-shell__dots{flex:none!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .sstf-loading-shell__dots>i{display:block!important;width:10px!important;height:10px!important;border-radius:50%!important;background:var(--sstf-tone-waiting-strong)!important;opacity:.35!important;animation:sstf-loading-pulse 1.05s ease-in-out infinite!important;will-change:transform,opacity}
  .sstf-loading-shell__dots>i:nth-child(2){animation-delay:.18s!important}
  .sstf-loading-shell__dots>i:nth-child(3){animation-delay:.36s!important}
  @keyframes sstf-loading-pulse{0%,70%,100%{transform:scale(1);opacity:.35}35%{transform:scale(1.55);opacity:1}}
  @media(prefers-reduced-motion:reduce){.sstf-loading-shell__dots>i{animation-duration:2.6s!important}}
  dialog.sstf-loading-shell[data-sstf-card]{background:var(--sstf-shade-ffffff-a72,rgba(255,255,255,.72))!important;-webkit-backdrop-filter:blur(var(--sstf-blur-14)) saturate(1.5)!important;backdrop-filter:blur(var(--sstf-blur-14)) saturate(1.5)!important;border:1px solid rgba(255,255,255,.85)!important;box-shadow:var(--sstf-sh-card)!important}
  dialog.sstf-loading-shell[data-sstf-card]>.sstf-central-glass__head{background:transparent!important}
  @media(prefers-reduced-motion:reduce){.sstf-loading-shell__spinner{animation-duration:2.4s}}
  dialog[data-sstf-card]>:is(header,.sstf-central-glass__head,.drawer-heading){position:sticky!important;top:0!important;z-index:3!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;background:var(--sstf-white-a94)!important;border-bottom:1px solid var(--sstf-shade-234467-a08)!important}
  dialog[data-sstf-card]>:is(.sstf-central-glass__body,.sstf-card-body){padding:var(--sstf-space-3) var(--sstf-space-4)!important}
  dialog[data-sstf-card]>:is(footer,.sstf-central-glass__foot){position:sticky!important;bottom:0!important;z-index:3!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;background:var(--sstf-white-a94)!important;border-top:1px solid var(--sstf-shade-234467-a08)!important}
  .sstf-card-back{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-back)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--tf-ink,var(--sstf-ink))!important;font-size:var(--sstf-t-body)!important;font-weight:600!important;cursor:pointer!important;white-space:nowrap!important;max-width:60%!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .sstf-card-back::before{content:"\2039";font-size:var(--sstf-t-card);line-height:1}

}
/* ---- Card contract — groups (FIVE-FIXES item 5): the central card is the ONLY frame of its content. A group of the card ([data-sstf-card-group]:
   a section, form, panel or record wrapper that only gathers the card's rows) draws no border, shadow, surface or side padding of its own — whatever
   legacy page style it also carries (app-ui.css draws every <section> and the «paper box» list as a page card). Only inside a central card; item
   cards inside a group (recipient record, tracking card, fields, notes, disclosures) keep their own frames. Approved layer: it wins over the legacy
   !important boxes and the approved record frame (.parcel-record). */
@layer sstf-approved{
  dialog[data-sstf-card] [data-sstf-card-group]{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;margin-inline:0!important;min-width:0!important;max-width:none!important}
}
@layer sstf-ui-contract{
  /* ---- Choice card items (1.4): navigation only, each opens a card ---- */
  .sstf-choice-list{display:grid!important;gap:var(--sstf-space-3)!important;grid-template-columns:repeat(auto-fill,minmax(var(--sstf-choice-min),1fr))!important}
  .sstf-choice-item{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:var(--sstf-space-1)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-4))!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:inherit!important;text-decoration:none!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;text-align:start!important;cursor:pointer!important}
  .sstf-choice-item small{font-size:var(--sstf-t-body)!important;font-weight:400!important;color:var(--sstf-ink-muted)!important}
  .sstf-choice-item[aria-disabled="true"]{opacity:.62!important;cursor:default!important}
  .sstf-new-tag{display:inline-block!important;padding:0 var(--sstf-space-2)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-tag)!important;color:var(--sstf-ink-tag)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important}

  /* ---- Status cards (part 2, owner choice (a)): state-colour border, badge, glow only on "now" ---- */
  /* UI-FIX-B2B-05: two cards per row on every screen; an arrow column before each card. The very first card has an empty
     slot instead of an arrow. Only the arrow before the glowing card is active (green, calm slide 1.6s); the rest are dark and still. */
  .sstf-stage-rows{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-stage-row{display:grid!important;grid-template-columns:var(--sstf-stage-arrow) minmax(0,1fr) var(--sstf-stage-arrow) minmax(0,1fr)!important;align-items:stretch!important;gap:var(--sstf-space-2)!important}
  .sstf-stage-arrow-slot{display:block!important}
  .sstf-stage-arrow{display:block!important;align-self:center!important;justify-self:center!important;width:var(--sstf-stage-arrow)!important;height:var(--sstf-stage-arrow)!important;color:var(--sstf-ink-arrow)!important;animation:none}
  .sstf-stage-arrow[data-active="1"]{color:var(--sstf-tone-done-strong)!important;animation:sstf-arrow-slide 1.6s ease-in-out infinite}
  @keyframes sstf-arrow-slide{0%,100%{translate:0}50%{translate:calc(-1 * var(--sstf-space-1))}}
  [dir="ltr"] .sstf-stage-arrow{transform:scaleX(-1)}[dir="ltr"] .sstf-stage-arrow[data-active="1"]{animation:none}
  @media(prefers-reduced-motion:reduce){.sstf-stage-arrow,.sstf-stage-arrow[data-active="1"]{animation:none!important}}
  .sstf-stage-card{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important;min-height:0!important;padding:var(--sstf-space-3)!important;border:1.5px solid var(--sstf-tone-neutral-strong)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:inherit!important;text-align:center!important;text-decoration:none!important;cursor:pointer!important;overflow:hidden!important;box-shadow:var(--sstf-sh-card)!important;font:inherit!important}
  .sstf-stage-card[data-state="done"]{border-color:var(--sstf-tone-done-strong)!important}
  .sstf-stage-card[data-state="now"]{border-color:rgb(var(--sstf-domain-rgb))!important}
  .sstf-stage-card[data-state="working"]{border-color:var(--sstf-tone-progress-strong)!important}
  .sstf-stage-card[data-state="waiting"]{border-color:var(--sstf-tone-waiting-strong)!important}
  .sstf-stage-card[data-state="incomplete"]{border-color:var(--sstf-tone-danger-strong)!important}
  .sstf-stage-card{opacity:1!important}
  .sstf-stage-card[data-state="not_started"]{border-color:var(--sstf-tone-neutral-strong)!important;background:var(--sstf-surface-idle)!important;opacity:.55!important}
  .sstf-stage-card[data-sstf-glow="1"]::before{content:"";position:absolute;inset:0 auto auto 0;width:60%;height:80%;pointer-events:none;background:radial-gradient(ellipse at 0 0,rgba(var(--sstf-domain-rgb),.28),rgba(var(--sstf-domain-rgb),.10) 45%,transparent 72%)}
  .sstf-stage-card__icon{flex:none!important;display:block!important;width:var(--sstf-stage-icon)!important;height:var(--sstf-stage-icon)!important;object-fit:contain!important}
  /* name: whole words only, balanced, up to two lines at 16; central-system.js sets data-fit="14" when two lines are not enough (never truncated) */
  .sstf-stage-card__name{display:block!important;width:100%!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;line-height:1.3!important;word-break:keep-all!important;overflow-wrap:normal!important;text-wrap:balance}
  /* text-wrap:balance fallback = normal whole-word wrapping (browsers without balance). FLYCARGO-FIX-1 (owner OQ-X2-02, every language and
     department): a word is never broken in its middle (no soft-hyphen break either) — it goes whole to the next line, and when a single word is
     wider than the card the font steps down (central-system.js data-fit 14 → 13 → 12 → 11; the badge 12 → 11). The text never changes. */
  .sstf-stage-card__name,.sstf-stage-card__badge{word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
  .sstf-stage-card__name[data-fit="14"]{font-size:var(--sstf-t-body)!important}
  .sstf-stage-card__name[data-fit="13"]{font-size:var(--sstf-t-small)!important}
  .sstf-stage-card__name[data-fit="12"],.sstf-stage-card__badge[data-fit="12"]{font-size:var(--sstf-t-small)!important}
  .sstf-stage-card__name[data-fit="11"],.sstf-stage-card__badge[data-fit="11"]{font-size:var(--sstf-t-small)!important}
  .sstf-stage-card__line{display:block!important;min-width:0!important;max-width:100%!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-line)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .sstf-stage-card__badge{align-self:center!important;display:inline-flex!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border-radius:var(--sstf-radius-pill)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;background:var(--sstf-tone-neutral-stage-bg)!important;color:var(--sstf-tone-neutral-stage-fg)!important}
  .sstf-stage-card[data-state="done"] .sstf-stage-card__badge{background:var(--sstf-tone-done-stage-bg)!important;color:var(--sstf-tone-done-stage-fg)!important}
  .sstf-stage-card[data-state="now"] .sstf-stage-card__badge{background:var(--sstf-tone-action-bg)!important;color:var(--sstf-tone-action-fg)!important}
  .sstf-stage-card[data-state="working"] .sstf-stage-card__badge{background:var(--sstf-tone-progress-stage-bg)!important;color:var(--sstf-tone-progress-stage-fg)!important}
  .sstf-stage-card[data-state="waiting"] .sstf-stage-card__badge{background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-tone-waiting-stage-fg)!important}
  .sstf-stage-card[data-state="incomplete"] .sstf-stage-card__badge{background:var(--sstf-tone-danger-stage-bg)!important;color:var(--sstf-tone-danger-stage-fg)!important}
  .sstf-stage-card[aria-disabled="true"]{cursor:default!important}

  /* ---- "Now" card (2.12) ---- */
  .sstf-now-card{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1.5px solid var(--sstf-tone-action-strong)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface-now)!important;color:inherit!important;font:inherit!important;text-align:start!important;cursor:pointer!important}
  .sstf-now-card[data-idle="1"]{border-color:var(--sstf-tone-neutral-strong)!important;background:var(--sstf-surface-idle)!important;cursor:default!important}
  .sstf-now-card strong{font-size:var(--sstf-t-card)!important}

  /* ---- Quick actions card (3.1, AC-01) + section cards ---- */
  .sstf-quick-actions{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-4)!important;border:1px solid var(--sstf-card-line)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .sstf-quick-actions__head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important}
  .sstf-quick-actions__count{min-width:var(--sstf-icon-lg)!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-action-strong)!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;text-align:center!important}
  .sstf-quick-actions__count[data-zero="1"]{background:var(--sstf-tone-neutral-strong)!important}
  .sstf-quick-actions__list{display:grid!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important;list-style:none!important}
  .sstf-quick-actions__item a{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-quick-item)!important;border-radius:var(--sstf-radius-field)!important;color:inherit!important;text-decoration:none!important;font-size:var(--sstf-t-body)!important}
  .sstf-quick-actions__item b{font-size:var(--sstf-t-card)!important;font-variant-numeric:tabular-nums!important}
  .sstf-section-cards{display:grid!important;gap:var(--sstf-space-3)!important;grid-template-columns:repeat(auto-fill,minmax(var(--sstf-section-min),1fr))!important}
  .sstf-section-card{position:relative!important;display:flex!important;flex-direction:column!important;gap:var(--sstf-space-1)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-6) + var(--sstf-space-2))!important;padding:var(--sstf-space-4)!important;border:1px solid var(--sstf-card-line)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:inherit!important;text-decoration:none!important;overflow:hidden!important}
  .sstf-section-card[data-sstf-domain]::before{content:"";position:absolute;inset:0 auto auto 0;width:55%;height:80%;pointer-events:none;background:radial-gradient(ellipse at 0 0,rgba(var(--sstf-domain-rgb),.26),rgba(var(--sstf-domain-rgb),.08) 45%,transparent 72%)}
  .sstf-section-card[aria-current="page"]{border-color:rgba(var(--sstf-domain-rgb),.6)!important;box-shadow:inset 0 0 0 1px rgba(var(--sstf-domain-rgb),.35)!important}
  button.sstf-section-card{font:inherit!important;text-align:start!important;cursor:pointer!important}
  .sstf-section-card[aria-selected="true"]{border-color:rgba(var(--sstf-domain-rgb,182,106,60),.6)!important;box-shadow:inset 0 0 0 1px rgba(var(--sstf-domain-rgb,182,106,60),.35)!important}
  .sstf-choice-note{margin:var(--sstf-space-3) 0 0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .sstf-section-card strong{font-size:var(--sstf-t-card)!important;font-weight:700!important}
  .sstf-section-card small{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}

  /* ---- Unified search & filter + summary line (D-3) ---- */
  .sstf-list-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .sstf-filter-summary{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-space-6)!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-line)!important}
  .sstf-filter-summary a{font-weight:700!important}

  /* ---- Special states (empty / locked / archived / forbidden / expired) ---- */
  .sstf-special-state{display:grid!important;justify-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-5) var(--sstf-space-4)!important;border:1px dashed var(--sstf-line-special)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface-special)!important;text-align:center!important}
  .sstf-special-state strong{font-size:var(--sstf-t-card)!important}
  .sstf-special-state[data-kind="archived"],.sstf-special-state[data-kind="locked"]{border-style:solid!important;background:var(--sstf-surface-special-muted)!important}
  .sstf-special-state[data-kind="forbidden"],.sstf-special-state[data-kind="expired"]{border-color:var(--sstf-tone-danger-line)!important;background:var(--sstf-surface-special-danger)!important}

  /* ---- Central status badge tones (StatusRegistry): one colour per state, Constitution 2.11 palette ---- */
  .sstf-central-status[data-sstf-tone]{border:1px solid transparent!important;border-radius:var(--sstf-radius-pill)!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;line-height:1.5!important}
  .sstf-central-status[data-sstf-tone="done"]{background:var(--sstf-tone-done-bg-soft)!important;color:var(--sstf-tone-done-fg-soft)!important;border-color:var(--sstf-tone-done-border)!important}
  .sstf-central-status[data-sstf-tone="action"]{background:var(--sstf-tone-action-bg)!important;color:var(--sstf-tone-action-fg)!important;border-color:var(--sstf-tone-action-border)!important}
  .sstf-central-status[data-sstf-tone="progress"]{background:var(--sstf-tone-progress-bg)!important;color:var(--sstf-tone-progress-fg)!important;border-color:var(--sstf-tone-progress-border)!important}
  .sstf-central-status[data-sstf-tone="waiting"]{background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;border-color:var(--sstf-tone-waiting-border)!important}
  .sstf-central-status[data-sstf-tone="danger"]{background:var(--sstf-tone-danger-bg)!important;color:var(--sstf-tone-danger-fg)!important;border-color:var(--sstf-tone-danger-border)!important}
  .sstf-central-status[data-sstf-tone="neutral"]{background:var(--sstf-tone-neutral-bg)!important;color:var(--sstf-tone-neutral-fg)!important;border-color:var(--sstf-tone-neutral-border)!important}

  /* HR-P0-02 / VP-024: action-menu labels wrap at word boundaries only (no vertical/arbitrary Arabic breaks). */
  :is(.ss-quick-popover,.ss-order-actions-menu,.ss-floating-actions-menu,#order-actions-sheet,[role=menu]) :is(button,a){word-break:normal!important;white-space:normal!important}
  /* Central summary line of the search & filter component */
  .sstf-search-toolbar + .sstf-filter-summary{margin-block:var(--sstf-space-2) var(--sstf-space-1)!important}

  /* ---- B2B order page (3ب.4): title + order toolbar on one row, now card, horizontal tools (29), stage cards ---- */
  .sstf-order-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;flex-wrap:wrap!important}
  .sstf-js [data-sstf-adopt-home]:not(.is-adopted){display:none!important} /* R188: الموضع الأول لأدوات الرأس مخفيّ حتى ينقلها flow.js */
  .sstf-order-toolbar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important}
  .sstf-order-toolbar .ss-card-menu{min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important}
  .sstf-now-card{margin-block:var(--sstf-space-3)!important}
  .sstf-order-tools{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;padding-block:var(--sstf-space-1) var(--sstf-space-2)!important;margin-block-end:var(--sstf-space-2)!important}
  .sstf-order-tools>*{flex:0 0 auto!important;scroll-snap-align:start!important}
  .sstf-order-tools .ss-order-access-tools{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:nowrap!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  dialog.sstf-work-card>.sstf-card-body{padding:var(--sstf-space-3) var(--sstf-space-4)!important}
  .sstf-order-tools .ss-order-access-tools>*:not(.customer-access-status){flex:0 0 auto!important;max-width:none!important}
  .sstf-order-tools .ss-order-access-tools{width:auto!important;max-width:none!important;min-width:max-content!important}
  /* 3.4 one download entry per context: on the staff order page the toolbar "تحميل" opens the existing export dialog,
     so the page-bottom trigger is hidden (the dialog and the export service are unchanged). */
  
  

  /* ---- Horizontal scrollable card row (3ب.7 / pattern "الصف الأفقي القابل للتمرير"): 3.5 cards visible ---- */
  .sstf-hscroll-title{margin:0 0 var(--sstf-space-2)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important}
  .sstf-hscroll-cards{display:flex!important;gap:var(--sstf-space-3)!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;padding:var(--sstf-space-1) var(--sstf-space-1) var(--sstf-space-2)!important;border:0!important;background:none!important;box-shadow:none!important}
  .sstf-hscroll-card{flex:0 0 calc((100% - var(--sstf-space-6)) / 3.5)!important;min-width:calc(var(--sstf-touch) * 2 + var(--sstf-space-5))!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-5))!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:inherit!important;font:inherit!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;text-align:center!important;white-space:normal!important;scroll-snap-align:start!important;cursor:pointer!important}
  .sstf-hscroll-card.is-active{border-color:rgba(var(--sstf-domain-rgb),.55)!important}
  /* R165 (قرار المالك 12/11): شريحة بأيقونة فوق اسمها — صفّ أفقي يتمرّر كما هو، لا التفاف */
  .sstf-hscroll-card--icon{flex:0 0 auto!important;flex-direction:column!important;gap:var(--sstf-space-1)!important;max-width:calc(100% - var(--sstf-space-6))!important}
  /* R165: اسم الشريحة سطر واحد كامل لا يُقصّ — الصفّ نفسه يتمرّر أفقيًا (قاعدة صفوف الشرائح) */
  .sstf-hscroll-card--icon>.sstf-hscroll-card__label{white-space:nowrap!important}
  .sstf-hscroll-card__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:0 0 auto!important}
  .sstf-hscroll-card__label{display:block!important;min-width:0!important;max-width:100%!important}
  /* R165 (قرار المالك 12/11): الهيكل الرمادي — لمعة تمرّ عليه فيُعرف أنه ينتظر لا أنه فارغ */
  .sstf-pcard-skel{cursor:default!important;pointer-events:none!important}
  .sstf-pcard-skel .sstf-pcard__photo{background:var(--sstf-surface-segmented)!important}
  .sstf-skel-block,.sstf-skel-line{border-radius:var(--sstf-radius-field)!important;background:linear-gradient(90deg,var(--sstf-surface-segmented) 0%,var(--sstf-tone-neutral-border) 50%,var(--sstf-surface-segmented) 100%)!important;background-size:200% 100%!important;animation:sstf-skel-shine 1.4s linear infinite!important}
  .sstf-skel-line{display:block!important;height:14px!important;width:100%!important;margin:0 0 6px!important}
  .sstf-skel-line--short{width:60%!important;height:11px!important}
  .sstf-pcard-skel .sstf-pcard__fact{min-height:calc(var(--sstf-touch) * 1.1)!important;border:0!important}
  @keyframes sstf-skel-shine{to{background-position:-200% 0}}
  @media(prefers-reduced-motion:reduce){.sstf-skel-block,.sstf-skel-line{animation-duration:3.5s!important}}

  /* S&S sale overview + section focus */
  .sstf-sale-overview{display:grid!important;gap:var(--sstf-space-3)!important;margin-block:var(--sstf-space-3) var(--sstf-space-4)!important}
  .sstf-section-focus{outline:var(--sstf-ring-3) solid rgba(var(--sstf-domain-rgb,182,106,60),.45)!important;outline-offset:var(--sstf-ring-offset-4)!important;border-radius:var(--sstf-radius-card)!important;transition:outline-color .6s ease!important}
  :is(#ss-order-attention,#ss-order-products,#ss-order-primary,#ss-payment-actions,#ss-order-details,#ss-order-editor){scroll-margin-top:calc(var(--ui-app-height,var(--sstf-header-h)) + var(--sstf-space-3))!important}

  /* ---- Large card (1.9): slightly smaller than the screen, glass surface, back + close one level ---- */
  .sstf-large-card{position:relative!important;margin:var(--sstf-space-2) auto var(--sstf-space-4)!important;max-width:min(var(--sstf-large-w-max),100%)!important;min-height:calc(100dvh - var(--ui-app-height,var(--sstf-header-h)) - var(--sstf-space-6))!important;border:1px solid var(--sstf-white-a75)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-white-a88)!important;-webkit-backdrop-filter:blur(var(--sstf-blur-12)) saturate(125%)!important;backdrop-filter:blur(var(--sstf-blur-12)) saturate(125%)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-large-card__head{position:sticky!important;top:var(--ui-app-height,0)!important;z-index:20!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border-bottom:1px solid var(--sstf-shade-234467-a08)!important;border-radius:var(--sstf-radius-card) var(--sstf-radius-card) 0 0!important;background:var(--sstf-surface)!important} /* ROUND-1.5-CLOSE: the head is sticky — an opaque surface, so content scrolled under it never shows through the title */
  .sstf-large-card__head>strong{flex:1 1 auto!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .sstf-large-card__close{flex:0 0 var(--sstf-touch)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;font-size:var(--sstf-t-page)!important}
  .sstf-large-card__body{padding:var(--sstf-space-3) var(--sstf-space-4) var(--sstf-space-4)!important;min-width:0!important}
  /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(head):has(~ :where(body) .sstf-large-card) ~ body #app-content.page-heading{position:absolute!important;width:var(--sstf-hairline)!important;height:var(--sstf-hairline)!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
  @media(max-width:600px){.sstf-large-card{margin:var(--sstf-space-2) 0 var(--sstf-space-3)!important;border-radius:var(--sstf-radius-card)!important}.sstf-large-card__head{border-radius:var(--sstf-radius-card) var(--sstf-radius-card) 0 0!important}}

  /* LTR data isolation inside Arabic text (hardening HR-P0-04 / TG-06, TG-07) */
  :is(.sstf-flow,.sstf-customer) :is(input[type=tel],[data-sstf-ltr],.sstf-ltr){direction:ltr!important;unicode-bidi:isolate!important}

  /* ---- UI-FIX-B2B-01 (2): one team & duty button - team icon + clock badge (presence tone) + duty counter ---- */
  .app-header--rows .sstf-workspace-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 var(--sstf-touch)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;padding:0!important;margin:0!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:var(--sstf-radius-field)!important;color:var(--tf-ink,var(--sstf-ink))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .app-header--rows .sstf-workspace-button::before,.app-header--rows .sstf-workspace-button::after{content:none!important;display:none!important}
  .app-header--rows .sstf-workspace-button:focus-visible{outline:var(--sstf-ring-2) solid rgba(var(--sstf-domain-rgb),.55)!important;outline-offset:var(--sstf-ring-offset-1)!important}
  .sstf-workspace-button__icon{position:relative!important;display:inline-flex!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:0 0 var(--sstf-icon-lg)!important}
  .sstf-workspace-button__icon>svg{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-workspace-button__badge{position:absolute!important;left:calc(-1 * var(--sstf-space-1))!important;bottom:calc(-1 * var(--sstf-space-1))!important;width:var(--sstf-space-3)!important;height:var(--sstf-space-3)!important;border-radius:50%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--sstf-badge-off)!important;color:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;border:0!important}
  .sstf-workspace-button__badge svg{width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;stroke-width:3!important}
  .sstf-workspace-button__badge[data-sstf-tone="done"]{background:var(--sstf-tone-done-strong)!important}
  .sstf-workspace-button__badge[data-sstf-tone="progress"]{background:var(--sstf-tone-action-strong)!important}
  .sstf-workspace-button__badge[data-sstf-tone="neutral"]{background:var(--sstf-badge-off)!important}
  /* duty item of the choice card: presence caption (tone colour) + live counter */
  .sstf-duty-hint{font-weight:700!important}
  .sstf-duty-hint[data-sstf-tone="done"]{color:var(--sstf-tone-done-fg-soft)!important}
  .sstf-duty-hint[data-sstf-tone="progress"]{color:var(--sstf-tone-progress-fg)!important}
  .sstf-duty-hint[data-sstf-tone="neutral"]{color:var(--sstf-tone-neutral-fg)!important}
  #sstf-workspace-choice output[data-duty-clock]{font-variant-numeric:tabular-nums!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;direction:ltr!important;unicode-bidi:isolate!important}

  /* ---- Search & filter (UI-FIX-B2B-01/02/03): rendered by the server (UI\SearchFilterEngine::toolbar) in its final shape,
     selectors use server classes only. One line: [filter icon, outside the field] + [field: search icon at its start,
     input, x at its end only when there is text]. ---- */
  :is(.ss-sales-filter-card,.inventory-filter-card){background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 var(--sstf-space-3)!important;border-radius:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;width:100%!important;max-width:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card)::before,:is(.ss-sales-filter-card,.inventory-filter-card)::after{content:none!important;display:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card)>form:not([hidden]){background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;display:block!important;width:100%!important}
  :is(.ss-sales-filter-card,.inventory-filter-card)>form[hidden]{display:none!important}
  /* the list's own filter controls stay in the form as the data source of the filter card; hidden from the start */
  :is(.ss-sales-filter-card,.inventory-filter-card) :is(.sstf-filter-source,label:has(select[name]),label:has(input[type="date"][name]),button[type="submit"]:not(.sstf-search-refresh),form>button:not([type])){display:none!important} /* R197: زرّ التحديث داخل الصفّ يبقى ظاهرًا — هو أداة الصفّ لا حقلًا مصدرًا */
  /* products list: its brand/audience row (+ its own clear link) is the data source of the one filter card — not a second filter shape */
  .inventory-filter-card .inventory-filter-row{display:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-toolbar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;width:100%!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-filter-open{flex:0 0 var(--sstf-touch)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:var(--sstf-radius-field)!important;color:var(--tf-ink,var(--sstf-ink))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  /* R197 (أمر المالك 20/11): زرّ التحديث أداةٌ في الصفّ بحجم زرّ الفلاتر نفسه وشكله — سطرٌ واحد: فلتر · بحث · تحديث · ⋯ */
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-refresh{flex:0 0 var(--sstf-touch)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:var(--sstf-radius-field)!important;color:var(--tf-ink,var(--sstf-ink))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;cursor:pointer}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-refresh>svg{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-refresh:hover{background:var(--sstf-surface-status,#eef4ff)!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-shell{position:relative!important;flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;height:var(--sstf-control-h)!important;min-height:var(--sstf-control-h)!important;padding:0!important;background:var(--sstf-surface)!important;background-image:none!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;box-shadow:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-shell:focus-within{border-color:rgb(var(--sstf-domain-rgb))!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-go{flex:0 0 auto!important;width:calc(var(--sstf-icon-md) + var(--sstf-space-4))!important;min-width:0!important;height:100%!important;min-height:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;color:var(--sstf-ink-muted)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-shell input{flex:1 1 auto!important;min-width:0!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;background:none!important;box-shadow:none!important;outline:0!important;padding:0 var(--sstf-space-1)!important;font-size:var(--sstf-t-card)!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-clear{flex:0 0 auto!important;width:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important;min-width:0!important;height:100%!important;min-height:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;color:var(--sstf-ink-muted)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-clear[hidden]{display:none!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) :is(.sstf-filter-open,.sstf-search-go) svg{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-search-clear svg{width:calc(var(--sstf-icon-md) - var(--sstf-space-1))!important;height:calc(var(--sstf-icon-md) - var(--sstf-space-1))!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-filter-summary{margin:var(--sstf-space-2) 0 0!important;background:none!important;border:0!important;padding:0!important}
  :is(.ss-sales-filter-card,.inventory-filter-card) .sstf-filter-summary[hidden],:is(.ss-sales-filter-card,.inventory-filter-card) .sstf-filter-summary:empty{display:none!important}
  /* stage chips: one horizontally scrolling row under the search, central card style (no old glass colours) */
  .ss-sales-stage-chips{display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;scrollbar-width:none!important;margin:var(--sstf-space-3) 0 0!important;padding:var(--sstf-space-1) 0 var(--sstf-space-1)!important;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important}
  .ss-sales-stage-chips::-webkit-scrollbar{display:none!important}
  .ss-sales-stage-chips>a{flex:0 0 auto!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;height:var(--sstf-touch)!important;box-sizing:border-box!important;min-width:0!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;background:var(--sstf-surface)!important;background-image:none!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;box-shadow:none!important;color:var(--tf-ink,var(--sstf-ink))!important;text-decoration:none!important;font-size:var(--sstf-t-body)!important;font-weight:600!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .ss-sales-stage-chips>a::before,.ss-sales-stage-chips>a::after{content:none!important;display:none!important}
  .ss-sales-stage-chips>a strong{font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink-muted)!important;background:var(--sstf-surface-tag)!important;border-radius:var(--sstf-radius-pill)!important;padding:0 var(--sstf-space-2)!important;min-width:var(--sstf-icon-md)!important;text-align:center!important}
  .ss-sales-stage-chips>a[aria-current="page"]{border-color:rgb(var(--sstf-domain-rgb))!important;box-shadow:0 0 0 1px rgb(var(--sstf-domain-rgb)) inset!important;color:rgb(var(--sstf-domain-rgb))!important}
  .ss-sales-stage-chips>a[aria-current="page"] strong{background:rgb(var(--sstf-domain-rgb))!important;color:var(--sstf-surface)!important}

  /* ---- UI-FIX-B2B-01 (5): segmented control (order type) - one row, lower, wider; active in its domain colour ---- */
  .sstf-segmented{display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-2)!important;width:100%!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-1)!important;background:var(--sstf-surface-segmented)!important;background-image:none!important;border:1px solid var(--sstf-line-segmented)!important;border-radius:var(--sstf-radius-field)!important;box-shadow:none!important}
  .sstf-segmented::before,.sstf-segmented::after{content:none!important;display:none!important}
  .sstf-segmented>.sstf-segmented__item{flex:1 1 0!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:var(--sstf-chip-h)!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:none!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink-segmented)!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;line-height:1.4!important;text-decoration:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .sstf-segmented>.sstf-segmented__item::before,.sstf-segmented>.sstf-segmented__item::after{content:none!important;display:none!important}
  .sstf-segmented>.sstf-segmented__item[aria-current="page"]{background:rgb(var(--sstf-domain-rgb))!important;color:var(--sstf-surface)!important}

  /* ---- UI-FIX-B2B-02 (2): components themed by the section colour ---- */
  :is(body.sstf-flow,body.sstf-customer,.sstf-admin) :is(.flow-button:not(.secondary):not(.danger):not(.ghost):not([data-tone]),.ss-gloss-button.blue,.ss-sales-create-button){background:rgb(var(--sstf-domain-rgb))!important;background-image:linear-gradient(135deg,var(--sstf-white-a14),var(--sstf-black-a06))!important;border-color:rgb(var(--sstf-domain-rgb))!important;color:var(--sstf-surface)!important}
  :is(body.sstf-flow,body.sstf-customer,.sstf-admin) :is(.flow-button:not(.secondary):not(.danger):not(.ghost):not([data-tone]),.ss-gloss-button.blue,.ss-sales-create-button) svg{stroke:currentColor!important}
  /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */html > :where(head):has(~ :where(body) :is(#sstf-workspace-choice,#sstf-team-sheet,#sstf-duty-sheet)[open]) ~ :where(body) .app-header--rows .sstf-workspace-button{color:rgb(var(--sstf-domain-rgb))!important}
  :is(body.sstf-flow,body.sstf-customer) :where(.mobile-nav,.store-bottom-nav)>[aria-current]{border-block-start:var(--sstf-stroke-3) solid rgb(var(--sstf-domain-rgb))!important;background:rgba(var(--sstf-domain-rgb),.12)!important;color:rgb(var(--sstf-domain-rgb))!important}

  /* ---- UI-FIX-B2B-03 (2): header on a fixed column grid — page margin 16 both sides, centre stays empty ---- */
  .app-header.app-header--rows{padding-inline:var(--sstf-page-x)!important;box-sizing:border-box!important}
  .app-header--rows .app-header__tools{gap:var(--sstf-icon-gap)!important}
  .app-header--rows .app-header__nav-start,.app-header--rows .app-header__nav-end{gap:var(--sstf-icon-gap)!important}
  .app-header--rows .app-header__tools .sstf-dual-clock{flex:0 0 auto!important}
  .app-header--rows .app-header__logo{gap:var(--sstf-space-2)!important}

  /* owner note (B2B-03): messages / notifications / profile larger and closer — 32 glyphs in the 48 touch areas, touch areas adjacent */
  .app-header--rows .app-header__nav-end{gap:0!important}
  .app-header--rows .app-header__nav-end :is(.chat-launch,.app-settings-open) :is(svg,img.nav-icon){width:var(--sstf-space-6)!important;height:var(--sstf-space-6)!important;min-width:var(--sstf-space-6)!important;min-height:var(--sstf-space-6)!important;flex:0 0 var(--sstf-space-6)!important}
  .app-header--rows .app-header__nav-end .profile-link :is(img,.sstf-avatar){width:var(--sstf-space-6)!important;height:var(--sstf-space-6)!important;min-width:var(--sstf-space-6)!important}

  /* ---- UI-FIX-B2B-04 (1): one clear control in search fields — the component's x; the browser's own x is off ---- */
  input[type="search"]{-webkit-appearance:none!important;appearance:none!important}
  input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{-webkit-appearance:none!important;appearance:none!important;display:none!important}

  /* ---- UI-FIX-B2B-04 (2): every horizontally scrolling row starts 8 from the edge and fades (24) at its scrolling edge
     while more items follow, so an item is always cut at the edge; the fade goes at the end or when nothing overflows ---- */
  :is(.ss-sales-stage-chips,.sstf-hscroll-cards,.sstf-order-tools,.sstf-head-tools,[data-sstf-hscroll]){padding-inline-start:var(--sstf-space-2)!important;padding-inline-end:0!important;-webkit-mask-image:linear-gradient(to right,transparent 0,var(--sstf-mask-solid) var(--sstf-space-5))!important;mask-image:linear-gradient(to right,transparent 0,var(--sstf-mask-solid) var(--sstf-space-5))!important}
  [dir="ltr"] :is(.ss-sales-stage-chips,.sstf-hscroll-cards,.sstf-order-tools,.sstf-head-tools,[data-sstf-hscroll]),:is(.ss-sales-stage-chips,.sstf-hscroll-cards,.sstf-order-tools,.sstf-head-tools,[data-sstf-hscroll])[dir="ltr"]{-webkit-mask-image:linear-gradient(to left,transparent 0,var(--sstf-mask-solid) var(--sstf-space-5))!important;mask-image:linear-gradient(to left,transparent 0,var(--sstf-mask-solid) var(--sstf-space-5))!important}
  :is(.ss-sales-stage-chips,.sstf-hscroll-cards,.sstf-order-tools,.sstf-head-tools,[data-sstf-hscroll]):is([data-sstf-scroll-end],[data-sstf-scroll-none]){-webkit-mask-image:none!important;mask-image:none!important}

  /* ---- UI-FIX-B2B-04 (3): anchored cards — grow from the button, matte glass behind (10.7-أ), page does not scroll ---- */
  dialog[data-sstf-anchored][open]{animation:sstf-anchor-in 160ms ease-out both!important}
  .ss-quick-popover[data-sstf-anchored]:popover-open{animation:sstf-anchor-fade 160ms ease-out both!important}
  @keyframes sstf-anchor-in{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
  @keyframes sstf-anchor-fade{from{opacity:0}to{opacity:1}}
  @media(prefers-reduced-motion:reduce){dialog[data-sstf-anchored][open],.ss-quick-popover[data-sstf-anchored]:popover-open{animation:none!important}}
  dialog[data-sstf-anchored]::backdrop,.ss-quick-popover[data-sstf-anchored]::backdrop{background:var(--sstf-shade-ecf1f7-a34)!important;backdrop-filter:blur(var(--sstf-blur-3))!important;-webkit-backdrop-filter:blur(var(--sstf-blur-3))!important}
  html:has(dialog[data-sstf-anchored][open],.ss-quick-popover[data-sstf-anchored]:popover-open){overflow:hidden!important;scrollbar-gutter:stable!important}

  /* small status card opened from the status chip */
  dialog.sstf-status-card{box-sizing:border-box!important;width:max-content!important;min-width:0!important;max-width:min(calc(100vw - var(--sstf-page-x) * 2),var(--sstf-card-w-min))!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-segmented)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:var(--tf-ink,var(--sstf-ink))!important;box-shadow:var(--sstf-sh-card)!important;display:grid!important;gap:var(--sstf-space-2)!important}
  dialog.sstf-status-card:not([open]){display:none!important}
  .sstf-status-card__full{margin:0!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;line-height:1.5!important}
  .sstf-status-card__now{margin:0!important;display:grid!important;gap:var(--sstf-space-1)!important;padding-top:var(--sstf-space-2)!important;border-top:1px solid var(--sstf-line-status-now)!important}
  .sstf-status-card__now small{font-size:var(--sstf-t-small)!important;font-weight:700!important;color:rgb(var(--sstf-domain-rgb))!important}
  .sstf-status-card__now span{font-size:var(--sstf-t-body)!important;line-height:1.5!important}

  /* ---- UI-FIX-B2B-04 (4): unified order card ---- */
  .sstf-large-card__body{padding:var(--sstf-space-2)!important}
  .ss-sales-cards{display:grid!important;gap:var(--sstf-space-2)!important;padding:0!important;margin:0!important}
  .ss-sales-cards>.sstf-order-card{margin:0!important}
  /* BATCH B MER-027: [hidden] (search filters, store.js) must keep hiding the card — the central display rule applies to visible cards only */
  .sstf-order-card:not([hidden]){display:block!important}.sstf-order-card[hidden]{display:none!important}
  .sstf-order-card{box-sizing:border-box!important;width:100%!important;max-width:100%!important;padding:var(--sstf-space-3)!important;border-radius:var(--sstf-radius-card)!important;min-height:0!important;overflow:hidden!important}
  /* owner correction: a 2-column grid — content column (rest of the width) + a fixed 48 column for ⋯ spanning both rows;
     row 1 = number · full date · status chip (only the chip truncates), row 2 = the customer across the whole column */
  .sstf-order-card>.sstf-order-card__main{display:grid!important;grid-template-columns:minmax(0,1fr) var(--sstf-touch)!important;grid-auto-rows:auto!important;column-gap:var(--sstf-space-2)!important;row-gap:var(--sstf-space-1)!important;align-items:center!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important}
  .sstf-order-card__row{grid-column:1!important;grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  .sstf-order-card__row>:is(.ss-order-number,.ss-account-number){flex:0 0 auto!important;font-size:var(--sstf-t-card)!important;font-weight:900!important;line-height:1.2!important;white-space:nowrap!important;margin:0!important}
  .sstf-order-card__row>.ss-order-number{color:rgb(var(--sstf-domain-rgb))!important}
  .sstf-order-card__date{flex:0 0 auto!important;min-width:10ch!important;white-space:nowrap!important;overflow:visible!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-body)!important;margin:0!important}
  .sstf-order-card__main>.order-line-actions{grid-column:2!important;grid-row:1 / span 2!important;align-self:center!important;justify-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;width:var(--sstf-touch)!important}
  .sstf-order-card__main>.sstf-order-card__name{grid-column:1!important;grid-row:2!important;visibility:visible!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;line-height:1.4!important;color:var(--tf-ink,var(--sstf-ink))!important;margin:0!important;min-width:0!important;max-width:100%!important;}
  .sstf-order-card__main>:is(.sstf-order-card__details,.sstf-order-card__badges){grid-column:1!important;grid-row:auto!important} /* gallery review 2026-10-05 (MER-005/031): the legacy dropship rule grid-area:details named an undefined area, so the details line was drawn on the customer row */
  .sstf-order-card__details{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important;margin:0!important}
  .sstf-order-card__badges:empty{display:none!important}
  .sstf-order-card__badges{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-1)!important;margin:0!important}
  .sstf-status-chip__text{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  @keyframes sstf-chip-scale{0%,100%{scale:1}50%{scale:1.025}}
  @keyframes sstf-chip-ring{0%{box-shadow:0 0 0 0 rgba(var(--sstf-chip-rgb),.35);border-color:rgba(var(--sstf-chip-rgb),.7)}50%{border-color:rgba(var(--sstf-chip-rgb),1)}60%{box-shadow:0 0 0 var(--sstf-space-1) rgba(var(--sstf-chip-rgb),.35)}100%{box-shadow:0 0 0 var(--sstf-space-1) rgba(var(--sstf-chip-rgb),0);border-color:rgba(var(--sstf-chip-rgb),.7)}}
  @media(prefers-reduced-motion:reduce){}
}

/* design reference 2026-09-30 — every card title ≈16/800 (ماذا تنزل 48/2.91, قائمة المنتجات 48/3.03, كرت الفلاتر 42/2.73). Every h2 size is set
 * with !important in the earliest cascade layer (sstf-typography), so the card title size must live in that same layer. */
@layer sstf-typography{
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(strong,h2,h3,.sstf-central-glass__title),
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>div:has(>:is(h2,h3))>:is(h2,h3){font-size:var(--sstf-t-card)!important;font-weight:800!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head) .sstf-central-glass__titlebox>h2{font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.25!important}
}

/* ==================================================================================================================
 * UI-FIX-B2B-06 — approved WORK CARD, CONFIRMATION card and DOWNLOAD flow (central). In the FIRST cascade layer (important declarations: earliest layer wins) so the
 * approved shape wins over the legacy per-page modal rules while those are being migrated (Expand → Migrate → Contract).
 * ================================================================================================================== */
/* NOTE: the approved rules below are !important; for important declarations the EARLIEST cascade layer wins, so they live in
 * `sstf-approved`, declared right after the protected wizard + typography layers in compat.css (those two keep precedence) — that is how they beat the legacy per-page modal rules (sstf-hotfix) while those
 * are being migrated. */
@layer sstf-approved{
  /* Only the approved B2B-04 anchored card with a head (the search/filter card, data-sstf-approved-shell, frozen baseline) is excluded; every other card — anchored from a button or not — takes the rules. */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:not(.sstf-card-back,strong,h2,h3,.sstf-central-glass__title,.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close,.icon-button,button){grid-row:1!important;grid-column:1!important;justify-self:end!important;min-width:0!important}
  /* (أ.1) head = ONE 48px row: back (start, arrow + text, no box) · title (centre) · × (end, 48 touch target). Design reference 2026-09-30 (every card file):
   * title ≈16/800 and × drawn as a 36 circle — these supersede (أ)'s «21/700» and «no box» (MATCH-MATRIX.md); the 48 touch target stays. */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading){display:grid!important;grid-template-columns:minmax(var(--sstf-touch),1fr) minmax(0,auto) minmax(var(--sstf-touch),1fr)!important;grid-auto-flow:column!important;align-items:center!important;justify-items:stretch!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;margin:0!important;padding:0 var(--sstf-space-3)!important;border:0!important;border-bottom:1px solid var(--sstf-shade-234467-a08)!important;background:var(--sstf-white-a94)!important;backdrop-filter:blur(var(--sstf-blur-12))!important;-webkit-backdrop-filter:blur(var(--sstf-blur-12))!important;position:sticky!important;top:0!important;z-index:3!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(strong,h2,h3,.sstf-central-glass__title,div:has(>:is(h2,h3))){grid-row:1!important;grid-column:2!important;justify-self:center!important;max-width:100%!important;flex:1 1 auto!important;order:1!important;min-width:0!important;margin:0!important;padding:0!important;text-align:center!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.3!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:inherit!important;border:0!important;background:none!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading) div:has(>:is(h2,h3))>:is(h2,h3){margin:0!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.3!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(strong,h2,h3,.sstf-central-glass__title)~small,dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(strong,h2,h3,.sstf-central-glass__title)~p{display:none!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back{grid-row:1!important;grid-column:1!important;justify-self:start!important;display:block!important;flex:0 1 auto!important;order:0!important;min-height:var(--sstf-touch)!important;line-height:var(--sstf-touch)!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--tf-primary,var(--sstf-ink))!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:start!important;justify-content:flex-start!important;min-width:0!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close,.icon-button,button[aria-label="إغلاق"],button[data-close-account-dialog],button[data-close-deposit],button[data-ss-access-close],button[data-ss-create-close],button[data-account-disable-close]){grid-row:1!important;grid-column:3!important;justify-self:end!important;flex:0 0 auto!important;order:2!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;max-width:var(--sstf-touch)!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:none!important;box-shadow:none!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-icon-lg)!important;line-height:1!important;font-weight:400!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close):focus-visible{outline:var(--sstf-ring-2) solid var(--tf-primary,var(--sstf-ink))!important;outline-offset:calc(-1 * var(--sstf-ring-2))!important}
  /* design reference 2026-09-30: × = a 36 circle (white, hairline, soft shadow) inside the 48 touch target; the glyph ≈16 */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close){position:relative!important;isolation:isolate!important;font-weight:400!important;color:transparent!important;background:none!important;border:0!important;box-shadow:none!important}
  /* 2C image zoom header: the central head owns its three areas (back | title | ×) — the back and close controls stay in their grid areas; a legacy button
   * offset (app-ui .ss-wizard-image-dialog button: absolute + insets, written for the removed raw zoom dialog) no longer lifts them out of the head */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back{position:static!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-card-back,.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close){inset:auto!important}
  /* the × itself = the reference image (close-navy, every reference card), centred over the circle; the button's own text is transparent (it stays for
   * assistive tech) — font-size alone cannot hide it: an earlier cascade layer sets the button font size (checker cycle 1 F8; render c2-download-all) */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close)::after{content:""!important;position:absolute!important;inset:0!important;margin:auto!important;width:var(--sstf-t-card)!important;height:var(--sstf-t-card)!important;background:url("../icons/ref/256/close-navy.webp") center/contain no-repeat!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close)::before{content:""!important;position:absolute!important;z-index:-1!important;inset:0!important;margin:auto!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;border:1px solid var(--sstf-line-card)!important;border-radius:50%!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  /* design reference 2026-09-30: the back chevron is the library icon (right-pointing in RTL, left-pointing in LTR portals) */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back::before{content:""!important;display:inline-block!important;flex:0 0 auto!important;width:var(--sstf-t-small)!important;height:var(--sstf-t-small)!important;margin-inline-end:var(--sstf-space-1)!important;vertical-align:middle!important;background:url("../icons/ref/256/chevron-right-navy.webp") center/contain no-repeat!important;font-size:0!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back:dir(ltr)::before{background-image:url("../icons/ref/256/chevron-left-navy.webp")!important}
  /* (أ.2) bottom action bar: over the scrolling body, matte glass, hairline top border; the body keeps a bottom padding = bar height */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  /* R134 batch A fix (owner 2026-10-28, «سحب منتج معد مسبقًا» did not scroll): the body of the flex card is the scroller — this rule was dropped by A 1.4 as an orphan because one of its classes (.finance-modal-body) no longer renders; restored with the classes that do */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])[open]>:is(.sstf-central-glass__body,.sstf-card-body,.ss-action-body,form.dialog-card,.ss-sheet-form){flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;padding-bottom:calc(var(--sstf-space-4) + var(--sstf-card-actions-h,0%))!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>.sstf-card-actions{position:absolute!important;inset-inline:0!important;bottom:0!important;z-index:4!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3) max(var(--sstf-space-2),var(--sstf-safe-bottom))!important;border:0!important;border-top:1px solid var(--sstf-shade-234467-a08)!important;background:var(--sstf-white-a88)!important;backdrop-filter:blur(var(--sstf-blur-12))!important;-webkit-backdrop-filter:blur(var(--sstf-blur-12))!important;justify-content:flex-start!important}
  .sstf-card-actions__summary{margin:0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important;line-height:1.4!important}
  .sstf-card-actions__summary :is(strong,output,b){color:var(--sstf-ink)!important;font-weight:700!important;font-size:inherit!important;line-height:inherit!important}
  .sstf-card-actions__summary :is(strong,output,b):not(:first-child){margin-inline-start:var(--sstf-space-1)!important}
  .sstf-card-actions__summary>*{display:inline!important}
  .sstf-card-actions__summary>*+*{margin-inline-start:var(--sstf-space-1)!important}
  .sstf-card-actions__row{display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-2)!important;align-items:stretch!important}
  /* a moved wrapper (e.g. #order-actions, a legacy .task-bar with its own sticky/fixed grid) dissolves into the row: its buttons become the row items */
  .sstf-card-actions__row>:not(button,a,input,[hidden]){display:contents!important}
  .sstf-card-actions__row>:is(button,a,input:is([type=submit],[type=button]),.flow-button):not([hidden]),.sstf-card-actions__row>:not(button,a,input)>:is(button,a,input:is([type=submit],[type=button]),.flow-button):not([hidden]){flex:1 1 0!important;min-width:0!important;max-width:none!important;width:auto!important;height:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;max-height:var(--sstf-touch)!important;margin:0!important;padding-block:0!important;padding-inline:var(--sstf-space-2)!important;position:static!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .sstf-card-actions__row>[hidden],.sstf-card-actions__row>:not(button,a,input)>[hidden]{display:none!important}
  /* (أ.4) product grid inside the card: two per row, gap 8, «+ إضافة صورة منتج» is the last grid item */
  dialog[data-sstf-card]:not([data-sstf-approved-shell]) .ss-order-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell]) .ss-order-product-grid>.ss-photo-add{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;min-height:calc(var(--sstf-touch) * 3)!important;margin:0!important;border:1px dashed var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface-idle)!important;color:var(--tf-primary,var(--sstf-ink))!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;box-shadow:none!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell]) .ss-order-product-grid>.ss-photo-add .ss-photo-add-plus{font-size:var(--sstf-t-page)!important;line-height:1!important}
  /* ---- design reference 2026-09-30: the FILTER card = 07-WORKING/design-reference/html/كرت الفلاتر.html. The reference is a 1065px scene of a
   * 390px phone (÷2.73), mapped onto the scale tokens: head ≈79 (grip + back pill · title with icon + subtitle · × circle), rows 52 (icon 44 ·
   * value chip · name 13/700 · chevron), actions 48 («تطبيق» + check · «مسح الفلاتر» + broom 40). Icons: assets/icons/ref (approved library). */
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head){position:relative!important;grid-template-columns:minmax(0,max-content) auto var(--sstf-stage-icon)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-6))!important;padding:var(--sstf-space-4) var(--sstf-space-4) var(--sstf-space-2)!important;border-bottom:0!important;align-items:center!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)::before{content:""!important;position:absolute!important;top:var(--sstf-space-1)!important;inset-inline-start:50%!important;transform:translateX(50%)!important;width:var(--sstf-space-6)!important;height:var(--sstf-space-1)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-ink-muted)!important;opacity:.45!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>.sstf-central-glass__titlebox{display:contents!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>.sstf-central-glass__titlebox>h2,dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>h2{grid-row:1!important;grid-column:2!important;justify-self:start!important;min-width:0!important;display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.25!important;color:var(--sstf-ink)!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head) .sstf-central-glass__title-icon{order:2!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;object-fit:contain!important;flex:0 0 auto!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head) .sstf-central-glass__subtitle{grid-row:2!important;grid-column:1/-1!important;justify-self:center!important;margin:0!important;font-size:var(--sstf-t-small)!important;line-height:1.35!important;color:var(--sstf-ink-muted)!important;text-align:center!important;white-space:normal!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>.sstf-card-back{grid-row:1!important;grid-column:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;justify-self:start!important;align-self:center!important;min-width:0!important;min-height:var(--sstf-touch)!important;height:var(--sstf-touch)!important;line-height:calc(var(--sstf-touch) - var(--sstf-space-4) - var(--sstf-hairline) - var(--sstf-hairline))!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink-soft)!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;max-width:100%!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close){grid-row:1!important;grid-column:3!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close)::before{width:var(--sstf-stage-icon)!important;height:var(--sstf-stage-icon)!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-2)!important;padding:0!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field{display:grid!important;grid-template-columns:calc(var(--sstf-stage-icon) + var(--sstf-space-1)) auto minmax(0,1fr) var(--sstf-space-4)!important;grid-template-areas:none!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-1))!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;text-align:start!important;width:100%!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field.sstf-filter-field--no-icon{grid-template-columns:auto minmax(0,1fr) var(--sstf-space-4)!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field>.sstf-filter-field__icon{grid-area:auto!important;width:calc(var(--sstf-stage-icon) + var(--sstf-space-1))!important;height:calc(var(--sstf-stage-icon) + var(--sstf-space-1))!important;object-fit:contain!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field>.sstf-filter-field__value{grid-area:auto!important;justify-self:center!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--tf-blue-soft)!important;color:var(--sstf-ink-soft)!important;font-size:var(--sstf-t-small)!important;font-weight:500!important;line-height:1.3!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field>.sstf-filter-field__name{grid-area:auto!important;min-width:0!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;color:var(--sstf-ink)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-field>.sstf-filter-field__arrow{grid-area:auto!important;width:var(--sstf-space-4)!important;height:var(--sstf-space-4)!important;object-fit:contain!important;justify-self:end!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-3)!important;margin-top:var(--sstf-space-4)!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;height:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;border-radius:var(--sstf-radius-field)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;padding:0 var(--sstf-space-3)!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-actions>.sstf-filter-clear{border:1px solid var(--sstf-line-card)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;box-shadow:none!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-action__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important;flex:0 0 auto!important}
  dialog.sstf-filter-card[data-sstf-card]:not([data-sstf-approved-shell]) .sstf-filter-action__icon--broom{width:var(--sstf-stage-icon)!important;height:var(--sstf-stage-icon)!important;margin-block:calc(-1 * var(--sstf-space-2))!important}

  /* Supplier cards (owner amendment UI-FIX-B2B-06): the status-card anatomy (icon · name · line · badge, family border, glow only
     on the card to act on) side by side in a grid — a comparison, so no arrows; the «+» tile last, dashed like «+ إضافة صورة منتج». */
  .sstf-supplier-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important}
  .sstf-supplier-card{justify-content:flex-start!important;padding-top:var(--sstf-space-4)!important}
  .sstf-supplier-card[data-sstf-pinned="1"]{order:-1!important}
  .sstf-supplier-card>.sstf-central-status{align-self:center!important;margin:0!important}
  .sstf-supplier-card>.sstf-central-status+.sstf-central-status{margin-top:calc(-1 * var(--sstf-space-1))!important}
  /* ---- design reference 2026-09-30: «ماذا تنزّل؟» = design-reference/html/ماذا تنزل.html (scene 1135 → 390, ÷2.91): two columns of tiles, icon 48,
   * name 14/700, hint 13; tints: عرض السعر = action (orange), قائمة المنتجات = waiting (blue), نسخة التسعير المحفوظة = neutral — the reference draws it
   * lavender, which is not an approved family (decision #9/#10; checker cycle 1 F5) → the existing neutral family until the owner assigns one.
   * Items without a reference icon keep the plain choice row. */
  .sstf-choice-list:has(>.sstf-choice-item--tile){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important}
  .sstf-choice-item--tile{align-items:center!important;justify-content:flex-start!important;text-align:center!important;gap:var(--sstf-space-1)!important;min-height:calc(var(--sstf-touch) * 2 + var(--sstf-space-6))!important;padding:var(--sstf-space-3) var(--sstf-space-2)!important;border-radius:var(--sstf-radius-field)!important;border:1px solid var(--sstf-tone-waiting-border)!important;background:linear-gradient(145deg,var(--sstf-surface),var(--sstf-tone-waiting-stage-bg))!important}
  .sstf-choice-item--tile[data-tone="action"]{border-color:var(--sstf-tone-action-border)!important;background:linear-gradient(145deg,var(--sstf-surface),var(--sstf-tone-action-bg))!important}
  .sstf-choice-item--tile[data-tone="neutral"]{border-color:var(--sstf-tone-neutral-border)!important;background:linear-gradient(145deg,var(--sstf-surface),var(--sstf-tone-neutral-stage-bg))!important}
  .sstf-choice-item__icon{position:relative!important;display:block!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;flex:0 0 auto!important}
  .sstf-choice-item__icon>img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
  .sstf-choice-item__icon>img.sstf-choice-item__badge{position:absolute!important;width:var(--sstf-t-card)!important;height:var(--sstf-t-card)!important;bottom:0!important;inset-inline-start:calc(-1 * var(--sstf-space-1))!important}
  .sstf-choice-item--tile>span:not(.sstf-choice-item__icon){font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important;line-height:1.3!important}
  .sstf-choice-item--tile>small{font-size:var(--sstf-t-small)!important;line-height:1.5!important;color:var(--sstf-ink-muted)!important}
  /* ---- design reference 2026-09-30: the options card = design-reference/html/قائمة المنتجات.html (scene 1183 → 390, ÷3.03): the download buttons are
   * tiles in the body (height 88, icon 44, 13/700) — Excel = done tint, PDF = danger tint, print = done-soft tint; icons from the export hooks. */
  .sstf-download-tiles{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:var(--sstf-space-3)!important;margin-top:var(--sstf-space-4)!important}
  .sstf-download-tiles>:is(button,a){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:auto!important;height:auto!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-6) + var(--sstf-space-2))!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-1)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:none!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;line-height:1.2!important;text-align:center!important;white-space:normal!important}
  .sstf-download-tiles>:is(button,a)::before{content:""!important;display:block!important;width:calc(var(--sstf-stage-icon) + var(--sstf-space-1))!important;height:calc(var(--sstf-stage-icon) + var(--sstf-space-1))!important;background:center/contain no-repeat!important;flex:0 0 auto!important}
  .sstf-download-tiles>:is(#export-xlsx,[data-offer-export="xlsx"],[data-customer-export="xlsx"],[data-t="excel"]){border-color:var(--sstf-tone-done-border)!important;background:linear-gradient(140deg,var(--sstf-surface),var(--sstf-tone-done-bg))!important}
  .sstf-download-tiles>:is(#export-xlsx,[data-offer-export="xlsx"],[data-customer-export="xlsx"],[data-t="excel"])::before{background-image:url("../icons/ref/256/excel-file-3d.webp")!important}
  .sstf-download-tiles>:is(#export-pdf,[data-offer-export="pdf"],[data-customer-export="pdf"],[data-t="pdf"]){border-color:var(--sstf-tone-danger-border)!important;background:linear-gradient(140deg,var(--sstf-tone-danger-bg),var(--sstf-tone-danger-stage-bg))!important}
  .sstf-download-tiles>:is(#export-pdf,[data-offer-export="pdf"],[data-customer-export="pdf"],[data-t="pdf"])::before{background-image:url("../icons/ref/256/pdf-file-3d.webp")!important}
  .sstf-download-tiles>:is(#print-order,[data-export-print]){border-color:var(--sstf-tone-done-border)!important;background:linear-gradient(140deg,var(--sstf-surface),var(--sstf-tone-done-bg-soft))!important}
  .sstf-download-tiles>:is(#print-order,[data-export-print])::before{background-image:url("../icons/ref/256/printer-3d.webp")!important}
  .sstf-download-tiles>:is(button,a):disabled{opacity:.6!important}
  /* the language field of the options card: the reference globe inside the select (start side) */
  .sstf-download-options label:has(>select#export-language){display:grid!important;gap:var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  .sstf-download-options select#export-language{min-height:var(--sstf-touch)!important;padding-inline-start:calc(var(--sstf-touch) + var(--sstf-space-1))!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background-color:var(--sstf-surface-idle)!important;background-image:url("../icons/ref/256/language-globe-3d.webp")!important;background-repeat:no-repeat!important;background-size:var(--sstf-icon-lg)!important;background-position:right var(--sstf-space-3) center!important;font-size:var(--sstf-t-body)!important;font-weight:500!important}
  .sstf-download-options select#export-language:dir(ltr){background-position:left var(--sstf-space-3) center!important}
  /* ---- design reference 2026-09-30: the «المورد» work card = design-reference/html/تصميم-المورد-وعروض-التسعير-mobile.html (drawn at 390, px = tokens):
   * head = back pill 37 (chevron + text 14/700) · × in a 39 rounded tile (this file: a tile, not a circle); body opens with the hero art 128, the title 19→18/700
   * + the RMB chip, the «إدارة الموردين» row 52 (duo art 88, text 16/700, chevron); cards 176 tall: art 76 over the top, name 13/700 (2 lines),
   * line 13 muted, the badge 32 tall at the bottom with its icon 32 (✓ المعتمد / ⏱ وصل التسعير). The hero carries the title → the head title is visually hidden (kept for screen readers). */
  dialog[data-sstf-card]:not([data-sstf-approved-shell]):has(.sstf-supplier-hero)>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(strong,h2,h3,.sstf-central-glass__title,div:has(>:is(h2,h3))){position:absolute!important;width:var(--sstf-hairline)!important;height:var(--sstf-hairline)!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell]):has(.sstf-supplier-hero)>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back{display:block!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;height:var(--sstf-touch)!important;min-height:0!important;line-height:calc(var(--sstf-chip-h) - var(--sstf-hairline))!important;padding:calc((var(--sstf-touch) - var(--sstf-chip-h) - var(--sstf-hairline)) / 2) var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell]):has(.sstf-supplier-hero)>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close)::before{width:calc(var(--sstf-chip-h) + var(--sstf-space-1) - var(--sstf-hairline))!important;height:calc(var(--sstf-chip-h) + var(--sstf-space-1) - var(--sstf-hairline))!important;border-radius:var(--sstf-radius-field)!important}
  .sstf-supplier-hero{display:flex!important;flex-direction:column!important;align-items:center!important;gap:var(--sstf-space-1)!important;margin:0 0 var(--sstf-space-3)!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;text-align:center!important}
  .sstf-supplier-hero__art{display:block!important;width:calc(var(--sstf-touch) * 2 + var(--sstf-space-6))!important;height:calc(var(--sstf-touch) * 2 + var(--sstf-space-6))!important;object-fit:contain!important;margin-bottom:calc(-1 * var(--sstf-space-4))!important}
  .sstf-supplier-hero__title{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;line-height:1.8!important;color:var(--sstf-ink)!important}
  .sstf-supplier-hero__currency{display:inline-grid!important;place-items:center!important;height:var(--sstf-icon-lg)!important;min-width:calc(var(--sstf-touch) + var(--sstf-space-2))!important;padding:0 var(--sstf-space-3)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;direction:ltr!important}
  .sstf-supplier-hero__manage{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;height:calc(var(--sstf-touch) + var(--sstf-space-1))!important;margin-top:var(--sstf-space-5)!important;padding:0 calc(var(--sstf-touch) + var(--sstf-space-3)) 0 var(--sstf-space-6)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-tone-waiting-fg)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;text-decoration:none!important;overflow:visible!important}
  .sstf-supplier-hero__manage>img{position:absolute!important;inset-inline-end:var(--sstf-space-1)!important;bottom:0!important;width:calc(var(--sstf-touch) * 2 - var(--sstf-space-2))!important;height:calc(var(--sstf-touch) * 2 - var(--sstf-space-2))!important;object-fit:contain!important;pointer-events:none!important}
  .sstf-supplier-hero__manage::before{content:""!important;position:absolute!important;inset-inline-start:var(--sstf-space-2)!important;top:50%!important;transform:translateY(-50%)!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;background:url("../icons/ref/256/chevron-right-navy.webp") center/contain no-repeat!important}
  .sstf-supplier-hero__manage:dir(ltr)::before{background-image:url("../icons/ref/256/chevron-left-navy.webp")!important}
  /* the reference draws every supplier card with the same light frame (#e0ebf7 → the card line) — this supersedes the family frame of the owner amendment #12 (MATCH-MATRIX.md); the glow rule stays */
  .sstf-supplier-card:not(.sstf-supplier-card--add){border:1px solid var(--sstf-line-card)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-supplier-card{position:relative!important;min-height:calc(var(--sstf-touch) * 3 + var(--sstf-space-6))!important;padding:calc(var(--sstf-touch) + var(--sstf-space-5)) var(--sstf-space-1) var(--sstf-space-2)!important;border-radius:var(--sstf-radius-field)!important;justify-content:flex-start!important;gap:var(--sstf-space-1)!important;overflow:hidden!important}
  .sstf-supplier-card:not(.sstf-supplier-card--add)>.sstf-stage-card__icon{position:absolute!important;top:0!important;inset-inline:0!important;margin:0 auto!important;width:calc(var(--sstf-touch) + var(--sstf-space-6) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) + var(--sstf-space-6) - var(--sstf-space-1))!important;object-fit:contain!important}
  .sstf-supplier-card>.sstf-stage-card__name{font-size:var(--sstf-t-small)!important;font-weight:700!important;line-height:1.4!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;white-space:normal!important}
  .sstf-supplier-card>.sstf-stage-card__line{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  /* PHASE4 E04: the supplier phone on its own line, whole (no ellipsis) */
  .sstf-supplier-card>.sstf-stage-card__phone{display:block!important;direction:ltr!important;unicode-bidi:isolate!important;white-space:nowrap!important;overflow:visible!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;max-width:100%!important}
  .sstf-supplier-card:not(.sstf-supplier-card--add)>.sstf-central-status{margin-top:auto!important;align-self:stretch!important;justify-content:center!important;gap:var(--sstf-space-1)!important;height:calc(var(--sstf-icon-lg) + var(--sstf-space-1))!important;min-height:0!important;margin-inline:var(--sstf-space-2)!important;padding:0 var(--sstf-space-2)!important;border-radius:var(--sstf-radius-pill)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;width:auto!important}
  .sstf-central-status>.sstf-central-status__icon{width:var(--sstf-t-card)!important;height:var(--sstf-t-card)!important;object-fit:contain!important;flex:0 0 auto!important}
  .sstf-supplier-card>.sstf-central-status>.sstf-central-status__icon{width:calc(var(--sstf-icon-md) + var(--sstf-space-1))!important;height:calc(var(--sstf-icon-md) + var(--sstf-space-1))!important}
  /* ---- design reference 2026-09-30: the child card «عرض المورد» = design-reference/html/عرض المورد.html (drawn at 390; text below 13 → 13):
   * status box tinted by the quote tone [badge (+icon) · «المطلوب الآن» / phone / next step · store art 72]; the link button full width with the link art;
   * products as rows [photo 96 · name · three figures with icons (الكمية cube · سعر الوحدة tag · الإجمالي coins) · state]; «إجمالي التكلفة» card
   * (calculator) with the total row highlighted; «ملاحظات المورد» card (document + note art). */
  #supplier-quote-card .supplier-next-action{display:grid!important;grid-template-columns:auto minmax(0,1fr) calc(var(--sstf-touch) + var(--sstf-space-6) - var(--sstf-space-2))!important;grid-template-areas:"badge label art" "phone phone art" "now now art"!important;align-items:center!important;column-gap:var(--sstf-space-2)!important;row-gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-neutral-bg)!important;box-shadow:none!important}
  #supplier-quote-card .supplier-next-action[data-sstf-tone="done"]{border-color:var(--sstf-tone-done-border)!important;background:var(--sstf-tone-done-bg-soft)!important}
  #supplier-quote-card .supplier-next-action[data-sstf-tone="action"]{border-color:var(--sstf-tone-action-border)!important;background:var(--sstf-tone-action-bg)!important}
  #supplier-quote-card .supplier-next-action[data-sstf-tone="waiting"]{border-color:var(--sstf-tone-waiting-border)!important;background:var(--sstf-tone-waiting-bg)!important}
  #supplier-quote-card .supplier-next-action>.supplier-next-action__art{grid-area:art!important;width:100%!important;height:calc(var(--sstf-touch) + var(--sstf-space-3))!important;padding:var(--sstf-space-1)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-white-a75)!important;object-fit:contain!important;box-sizing:border-box!important}
  #supplier-quote-card .supplier-next-action>.sstf-central-status{grid-area:badge!important;align-self:start!important;gap:var(--sstf-space-1)!important}
  #supplier-quote-card .supplier-next-action>small{grid-area:label!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-soft)!important}
  #supplier-quote-card .supplier-next-action>span[dir="ltr"]{grid-area:phone!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important;text-align:end!important}
  #supplier-quote-card .supplier-next-action>strong{grid-area:now!important;font-size:var(--sstf-t-small)!important;font-weight:500!important;color:var(--sstf-ink-soft)!important}
  #supplier-quote-card .sstf-section-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important;vertical-align:middle!important;margin-inline-end:var(--sstf-space-1)!important}
  #supplier-quote-card .ss-staff-supplier-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-2)!important}
  #supplier-quote-card .ss-staff-supplier-grid .inventory-product-card{display:grid!important;grid-template-columns:minmax(0,1fr) calc(var(--sstf-touch) * 2)!important;grid-template-areas:"content media"!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;align-items:start!important}
  #supplier-quote-card .ss-staff-supplier-grid .inventory-product-card>.inventory-product-card-media{grid-area:media!important;width:calc(var(--sstf-touch) * 2)!important;height:calc(var(--sstf-touch) * 2 + var(--sstf-space-4))!important;aspect-ratio:auto!important;border-radius:var(--sstf-radius-field)!important;overflow:hidden!important}
  #supplier-quote-card .ss-staff-supplier-grid .inventory-product-card>.inventory-product-card-media img{width:100%!important;height:100%!important;object-fit:cover!important}
  #supplier-quote-card .ss-staff-supplier-grid .inventory-product-card>.inventory-product-card-content{grid-area:content!important;min-width:0!important;text-align:start!important;padding:0!important}
  #supplier-quote-card .ss-staff-supplier-grid .inventory-store-prices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--sstf-space-1)!important;margin-top:var(--sstf-space-2)!important}
  .sstf-cost-card,.sstf-notes-card{margin-top:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  :is(.sstf-cost-card__title,.sstf-notes-card__title){display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-1)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  :is(.sstf-cost-card__title,.sstf-notes-card__title)>img{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important}
  .sstf-cost-card .pricing-totals{display:grid!important;gap:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
  .sstf-cost-card .pricing-totals>div{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:var(--sstf-icon-lg)!important;padding:0 var(--sstf-space-1)!important;border-top:1px solid var(--sstf-line-card)!important;font-size:var(--sstf-t-small)!important}
  .sstf-cost-card .pricing-totals>div>strong{direction:ltr!important;font-size:var(--sstf-t-small)!important}
  .sstf-cost-card .pricing-totals>div:last-child{margin-top:var(--sstf-space-1)!important;min-height:var(--sstf-chip-h)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;font-weight:800!important}
  .sstf-notes-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title title" "body art"!important;align-items:center!important}
  .sstf-notes-card>.sstf-notes-card__title{grid-area:title!important}
  .sstf-notes-card>.sstf-notes-card__body{grid-area:body!important;margin:0!important;min-height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;display:flex!important;align-items:center!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-start-end-radius:0!important;border-end-end-radius:0!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-idle)!important;font-size:var(--sstf-t-small)!important}
  .sstf-notes-card__empty{color:var(--sstf-ink-muted)!important}
  .sstf-notes-card>.sstf-notes-card__art{grid-area:art!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;object-fit:contain!important;margin-inline-start:var(--sstf-space-2)!important}
  /* design reference 2026-09-30: «كرت رابط المورد» (كرت رابط المورد.html, scene 1145 → 390): each credential = a row [field · copy tile (blue, copy icon)],
   * then the WhatsApp button full width (dark blue, WhatsApp art) — last */
  .ss-credentials-dialog .supplier-credential-actions{display:flex!important;flex-direction:column!important;gap:var(--sstf-space-2)!important}
  .ss-credentials-dialog .supplier-credential-actions>.credential-mini{display:grid!important;grid-template-columns:minmax(0,1fr) calc(var(--sstf-touch) + var(--sstf-space-6))!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-idle)!important}
  .ss-credentials-dialog .credential-mini>input{min-height:var(--sstf-touch)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;font-size:var(--sstf-t-body)!important}
  .ss-credentials-dialog .credential-mini>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;min-height:var(--sstf-touch)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:linear-gradient(140deg,var(--tf-blue-soft),var(--tf-blue))!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important}
  .ss-credentials-dialog .credential-mini>button::before{content:""!important;width:var(--sstf-t-card)!important;height:var(--sstf-t-card)!important;background:url("../icons/ref/256/copy-blue.webp") center/contain no-repeat!important;filter:brightness(0) invert(1)!important}
  .ss-credentials-dialog .supplier-credential-actions>a.whatsapp{order:9!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;border-radius:var(--sstf-radius-field)!important;background:linear-gradient(110deg,var(--tf-blue),var(--tf-blue-deep))!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;text-decoration:none!important}
  .ss-credentials-dialog .supplier-credential-actions>a.whatsapp::before{content:""!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;background:url("../icons/ref/256/whatsapp-3d.webp") center/contain no-repeat!important}
  .sstf-supplier-card__menu{position:absolute!important;inset-inline-start:var(--sstf-space-1)!important;top:var(--sstf-space-1)!important;z-index:2!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-page)!important;line-height:1!important;cursor:pointer!important}
  .sstf-supplier-card--add{justify-content:center!important;border:1px dashed var(--sstf-line-card)!important;background:var(--sstf-surface-idle)!important;box-shadow:none!important;color:var(--tf-primary,var(--sstf-ink))!important;opacity:1!important}
  .sstf-supplier-card--add .ss-photo-add-plus{font-size:var(--sstf-t-page)!important;line-height:1!important}
  .sstf-supplier-card--add .sstf-stage-card__name{font-size:var(--sstf-t-body)!important}
  /* (ب) confirmation card — anchored to its button (B2B-04), title 16/700, text 14, two 48px buttons */
  dialog.sstf-confirm-card{width:min(var(--sstf-glass-standard),calc(100vw - var(--sstf-space-6)))!important;max-width:var(--sstf-glass-standard)!important;margin:0!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-white-a94)!important;backdrop-filter:blur(var(--sstf-blur-14))!important;-webkit-backdrop-filter:blur(var(--sstf-blur-14))!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;overflow:auto!important}
  dialog.sstf-confirm-card::backdrop{background:var(--sstf-shade-142846-a12)!important}
  .sstf-confirm-card__title{display:block!important;margin:0 0 var(--sstf-space-1)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;line-height:1.4!important}
  .sstf-confirm-card__text{margin:0 0 var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;line-height:1.5!important;color:var(--sstf-ink-soft)!important;white-space:pre-line!important}
  .sstf-confirm-card__field{display:block!important;margin:0 0 var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;font-weight:600!important}
  .sstf-confirm-card__field :is(input,textarea){display:block!important;width:100%!important;box-sizing:border-box!important;margin-top:var(--sstf-space-1)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;font-size:var(--sstf-t-card)!important;font-weight:400!important;background:var(--sstf-surface)!important}
  .sstf-confirm-card__actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-2)!important}
  .sstf-confirm-card__actions>button{min-height:var(--sstf-touch)!important;margin:0!important;padding:0 var(--sstf-space-3)!important;border-radius:var(--sstf-radius-field)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;cursor:pointer!important;box-shadow:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .sstf-confirm-card__cancel{border:1px solid var(--sstf-tone-neutral-border)!important;background:var(--sstf-tone-neutral-bg)!important;color:var(--sstf-tone-neutral-fg)!important}
  .sstf-confirm-card__ok{border:1px solid transparent!important;background:var(--tf-primary,var(--sstf-tone-action-strong))!important;color:var(--sstf-surface)!important}
  .sstf-confirm-card__ok[data-sstf-tone="danger"]{background:var(--sstf-tone-danger-strong)!important}
  .sstf-confirm-card__ok:disabled{opacity:.5!important;cursor:not-allowed!important}
  /* (ج) download: choice card items already central; the options card lists version / language / format */
  .sstf-download-options{display:grid!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-2) 0 var(--sstf-space-3)!important}
  .sstf-download-options>label{display:grid!important;gap:var(--sstf-space-1)!important;font-size:var(--sstf-t-body)!important;font-weight:600!important}
  .sstf-download-options>label>:is(select,input){min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;font-size:var(--sstf-t-card)!important;font-weight:400!important;background:var(--sstf-surface)!important}
  .sstf-download-options>label[hidden]{display:none!important}
  .sstf-download-status{margin:0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important;min-height:1.4em!important}
  /* Quick navigation search — phase 1 (owner 2026-10-01): an anchored glass card (central card rules); the field and the instant results */
  .sstf-nav-search{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-nav-search__field input{width:100%!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important}
  .sstf-nav-search__results{list-style:none!important;margin:0!important;padding:0!important;display:grid!important;gap:var(--sstf-space-1)!important;max-height:calc(var(--sstf-touch) * 7)!important;overflow:auto!important}
  .sstf-nav-search__item{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid transparent!important;border-radius:var(--sstf-radius-field)!important;color:var(--sstf-ink)!important;text-decoration:none!important}
  .sstf-nav-search__results>li.is-active>.sstf-nav-search__item,.sstf-nav-search__item:hover,.sstf-nav-search__item:focus-visible{border-color:var(--sstf-tone-waiting-border)!important;background:var(--sstf-tone-waiting-stage-bg)!important}
  .sstf-nav-search__title{font-size:var(--sstf-t-body)!important;font-weight:700!important}
  .sstf-nav-search__group{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;white-space:nowrap!important}
  .sstf-nav-search__empty{margin:0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
}

/* ==================================================================================================================
 * CENTRAL-DESIGN-UNIFICATION (2026-10-02) — patterns shared by the approved HTML references (Groups 1–4). ComponentRenderer::
 * icon / factGrid / sectionBanner / statusHead / stepper / disclosureStart / iconAction / emptyState(icon) / largeCardStart(icon).
 * Proportions follow the references; type follows the central scale (Constitution 3.6: smallest text 13) — the references
 * draw labels at 10–11 CSS px at 390, below the approved minimum (DEFERRED-EXCEPTIONS.md E-01).
 * ================================================================================================================== */
@layer sstf-approved{
  .sstf-icon{display:inline-block!important;flex:none!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;object-fit:contain!important;vertical-align:middle!important}
  .sstf-icon--pending{box-sizing:border-box!important;border:1px dashed var(--sstf-line-special)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-special)!important}
  .sstf-icon--title{width:var(--sstf-stage-icon)!important;height:var(--sstf-stage-icon)!important}
  .sstf-large-card__titlebox{display:inline-flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  .sstf-large-card__titlebox>strong{min-width:0!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  /* phone head layout: see «wrapped large-card head» (B3) — measured by central-system.js initLargeHead() */
  .sstf-fact__value[data-tone="waiting"]{color:var(--sstf-tone-waiting-fg)!important}.sstf-fact__value[data-tone="action"]{color:var(--sstf-tone-action-fg)!important}
  .sstf-fact__value[data-tone="done"]{color:var(--sstf-tone-done-fg)!important}.sstf-fact__value[data-tone="danger"]{color:var(--sstf-tone-danger-fg)!important}
  .sstf-fact__value[data-tone="progress"]{color:var(--sstf-tone-progress-fg)!important}
  .sstf-status-head__action .sstf-icon-action{white-space:nowrap!important}

  .sstf-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0!important}
  /* بلاغ المالك 18/11: عنوانٌ مرئيّ فوق الحقائق (ComponentRenderer::factGrid مع 'title') */
  .sstf-facts__title{margin:var(--sstf-space-3) 0 0!important;font-weight:700!important;color:var(--sstf-ink)!important}
  .sstf-fact{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-width:0!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-2))!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;text-decoration:none!important;box-sizing:border-box!important}
  .sstf-fact--wide{grid-column:1/-1!important}
  .sstf-fact--link:hover,.sstf-fact--link:focus-visible{border-color:var(--sstf-tone-waiting-border)!important}
  .sstf-fact__text{display:grid!important;gap:0!important;min-width:0!important;flex:1 1 auto!important}
  .sstf-fact__label{display:block!important;margin:0!important;font-size:var(--sstf-t-small)!important;font-weight:400!important;line-height:1.35!important;color:var(--sstf-ink-muted)!important}
  .sstf-fact__value{display:block!important;margin:0!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;line-height:1.4!important;color:var(--sstf-ink)!important;}
  .sstf-fact__sub{display:block!important;margin:0!important;font-size:var(--sstf-t-small)!important;line-height:1.35!important;color:var(--sstf-ink-soft)!important}

  .sstf-banner{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-5))!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-tone-waiting-stage-bg)!important;box-sizing:border-box!important}
  .sstf-banner[data-tone="danger"]{border-color:var(--sstf-tone-danger-border)!important;background:var(--sstf-tone-danger-stage-bg)!important}
  .sstf-banner[data-tone="done"]{border-color:var(--sstf-tone-done-border)!important;background:var(--sstf-tone-done-stage-bg)!important}
  .sstf-banner[data-tone="action"]{border-color:var(--sstf-tone-action-border)!important;background:var(--sstf-tone-action-bg)!important}
  .sstf-banner[data-tone="neutral"]{border-color:var(--sstf-line-card)!important;background:var(--sstf-surface-idle)!important}
  .sstf-banner__text{display:grid!important;gap:var(--sstf-space-1)!important;flex:1 1 0!important;min-width:0!important}
  .sstf-banner:not(.sstf-banner--with-footer){flex-wrap:nowrap!important}
  .sstf-banner__text>:is(h2,h3){margin:0!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;line-height:1.3!important;color:var(--sstf-ink)!important}
  .sstf-banner__text>h3{font-size:var(--sstf-t-card)!important}
  .sstf-banner[data-tone="danger"] .sstf-banner__text>:is(h2,h3){color:var(--sstf-tone-danger-stage-fg)!important}
  .sstf-banner__text>p{margin:0!important;font-size:var(--sstf-t-body)!important;line-height:1.5!important;color:var(--sstf-ink-soft)!important}
  .sstf-banner__icon{width:calc(var(--sstf-touch) + var(--sstf-space-2))!important;height:calc(var(--sstf-touch) + var(--sstf-space-2))!important}
  .sstf-banner__actions{display:flex!important;gap:var(--sstf-space-2)!important;flex:none!important}

  .sstf-status-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  .sstf-status-head__state{display:grid!important;justify-items:start!important;gap:var(--sstf-space-1)!important;flex:1 1 auto!important;min-width:0!important}
  .sstf-status-head__state>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-status-head__action{flex:none!important;margin-inline-start:auto!important}

  .sstf-stepper{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;list-style:none!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-5)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  .sstf-stepper__step{position:relative!important;display:flex!important;flex:1 1 0!important;flex-direction:column!important;align-items:center!important;gap:var(--sstf-space-1)!important;margin:0!important;padding:0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-stepper__step+.sstf-stepper__step::before{content:""!important;position:absolute!important;top:calc(var(--sstf-icon-lg) / 2)!important;inset-inline-end:50%!important;width:100%!important;border-top:1.5px solid var(--sstf-tone-neutral-strong)!important;z-index:0!important}
  .sstf-stepper__step.is-done+.sstf-stepper__step.is-done::before{border-top-color:var(--sstf-tone-waiting-border)!important}
  .sstf-stepper__dot{position:relative!important;z-index:1!important;display:grid!important;place-items:center!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-neutral-stage-bg)!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important}
  .sstf-stepper__step.is-done{color:var(--sstf-tone-waiting-stage-fg)!important}
  .sstf-stepper__step.is-done .sstf-stepper__dot{background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-stage-fg)!important;font-size:var(--sstf-t-card)!important}

  .sstf-disclosure{margin:var(--sstf-space-2) 0 0!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;overflow:hidden!important}
  .sstf-disclosure>summary{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-6)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;cursor:pointer!important;list-style:none!important;position:relative!important}
  .sstf-disclosure>summary::-webkit-details-marker{display:none!important}
  .sstf-disclosure__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-disclosure__count{min-width:var(--sstf-icon-md)!important;padding:0 var(--sstf-space-1)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;font-size:var(--sstf-t-small)!important;text-align:center!important}
  .sstf-disclosure__chevron{position:absolute!important;inset-inline-end:var(--sstf-space-4)!important;top:50%!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-inline-start:1.5px solid var(--sstf-ink-soft)!important;border-bottom:1.5px solid var(--sstf-ink-soft)!important;transform:translateY(-75%) rotate(-45deg)!important;transition:transform .15s ease!important}
  .sstf-disclosure[open]>summary .sstf-disclosure__chevron{transform:translateY(-25%) rotate(135deg)!important}
  .sstf-disclosure__body{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important}
  /* R163 (11/11): الكاشف المركزي لم يكن يُطبِق فعلًا — display:grid!important كان يتجاوز إخفاء المتصفح للمحتوى وهو مغلق، فيظهر الجسم دائمًا في كل شاشات التطبيق. */
  .sstf-disclosure:not([open])>.sstf-disclosure__body{display:none!important}

  .sstf-icon-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-tone-waiting-stage-fg)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-icon-action:hover,.sstf-icon-action:focus-visible{border-color:var(--sstf-tone-waiting-border)!important;background:var(--sstf-tone-waiting-stage-bg)!important}
  .sstf-icon-action__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-icon-actions{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0!important}

  .sstf-central-empty--illustrated{display:grid!important;justify-items:center!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-6) var(--sstf-space-4)!important;border:1px dashed var(--sstf-line-special)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface-special)!important}
  .sstf-central-empty--illustrated>strong{font-size:var(--sstf-t-card)!important;font-weight:700!important;color:var(--sstf-ink-soft)!important}
  .sstf-central-empty__icon{width:calc(var(--sstf-space-6) * 4)!important;height:calc(var(--sstf-space-6) * 4)!important}

  .sstf-amounts{width:100%!important;max-width:none!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;margin:var(--sstf-space-2) 0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;overflow:hidden!important;font-size:var(--sstf-t-body)!important}
  .sstf-amounts :is(th,td){padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:0!important;border-bottom:1px solid var(--sstf-line-card)!important;text-align:start!important;font-weight:700!important;background:transparent!important}
  .sstf-amounts th{width:50%!important;border-inline-end:1px solid var(--sstf-line-card)!important;color:var(--sstf-ink)!important}
  
  .sstf-amounts tr:last-child :is(th,td){border-bottom:0!important}
}

/* CENTRAL-DESIGN-UNIFICATION: printing keeps its current type sizes (Constitution 3.4 / OA-67) — the fact grid prints as the former
 * summary grid did (label at the minimum size, value at 15), without the decorative icons. */
@media print{
  .sstf-fact__icon{display:none!important}
  .sstf-fact{min-height:0!important;break-inside:avoid!important}
  .sstf-fact__value{font-size:var(--sstf-t-body)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B2 — tiles of the references «المخزن - المنتجات - القائمة» (section tiles), «حركات المخزون» (feature choice
 * tiles) and the store card of «المخزن - المنتجات» (banner with the icon first and a row of actions under the caption). */
@layer sstf-approved{
  .sstf-section-cards:has(>.sstf-section-card--tile){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin-bottom:var(--sstf-space-4)!important}
  .sstf-section-card--tile{align-items:stretch!important;gap:var(--sstf-space-1)!important;min-height:calc(var(--sstf-space-6) * 7)!important;padding:var(--sstf-space-3) var(--sstf-space-3) var(--sstf-space-4)!important}
  .sstf-section-card__icon{display:flex!important;justify-content:center!important;align-items:center!important;height:calc(var(--sstf-space-6) * 3.5)!important;margin-bottom:var(--sstf-space-2)!important}
  .sstf-section-card__icon>.sstf-icon{width:calc(var(--sstf-space-6) * 3.5)!important;height:calc(var(--sstf-space-6) * 3.5)!important}
  .sstf-section-card--tile>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .sstf-section-card--tile>small{font-size:var(--sstf-t-small)!important;line-height:1.5!important}
  .sstf-section-card__go{position:relative!important;display:block!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;margin-top:auto!important;border-radius:var(--sstf-radius-pill)!important;background:rgba(var(--sstf-domain-rgb,113,128,71),.14)!important}
  .sstf-section-card__go::after{content:""!important;position:absolute!important;top:50%!important;left:50%!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-top:var(--sstf-ring-2) solid rgb(var(--sstf-domain-rgb,113,128,71))!important;border-right:var(--sstf-ring-2) solid rgb(var(--sstf-domain-rgb,113,128,71))!important;transform:translate(-70%,-50%) rotate(45deg)!important}

  .sstf-choice-item--feature{align-items:stretch!important;text-align:start!important;min-height:calc(var(--sstf-space-6) * 7)!important;padding:var(--sstf-space-3)!important}
  .sstf-choice-item--feature>.sstf-choice-item__icon{width:100%!important;height:calc(var(--sstf-space-6) * 2.5)!important;margin-bottom:var(--sstf-space-2)!important}
  .sstf-choice-item--feature>.sstf-choice-item__icon>.sstf-icon{width:100%!important;height:100%!important}
  .sstf-choice-item--feature>span:not(.sstf-choice-item__icon,.sstf-new-tag){font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .sstf-choice-item--feature>.sstf-new-tag{align-self:flex-start!important;margin-top:auto!important}
  .sstf-choice-item--feature[aria-disabled="true"]{opacity:1!important}
  .sstf-choice-item--feature[aria-disabled="true"]>.sstf-choice-item__icon{opacity:.78!important}

  .sstf-banner--with-footer{flex-wrap:wrap!important;align-items:flex-start!important}
  .sstf-banner__footer{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;flex:1 1 100%!important}
  .sstf-banner__footer>*{width:100%!important;min-width:0!important;margin:0!important;padding-inline:var(--sstf-space-2)!important;box-sizing:border-box!important;white-space:nowrap!important}
  .sstf-banner--with-footer>.sstf-banner__text{flex:1 1 0!important}
  .sstf-banner:has(>.sstf-banner__icon:first-child)>.sstf-banner__icon{width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important}
  .inventory-store-add{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important}
  .inventory-store-add__glyph{display:inline-grid!important;place-items:center!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;border-radius:var(--sstf-space-2)!important;background:var(--sstf-white-a88)!important;color:rgb(var(--sstf-domain-rgb,113,128,71))!important;font-weight:800!important;line-height:1!important}

  .inventory-import-source{display:grid!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  
  .inventory-import-source>.inventory-source-next{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-1))!important}
  .inventory-import-source>.inventory-source-next>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B3 — wrapped large-card head (any title), option rows («اختيار نطاق الجرد»), stocktake log rows («سجل الجرد»),
 * count rows («عد المنتج») and the primary button carrying a 3D icon. */
@layer sstf-approved{
  .sstf-large-card__head[data-sstf-wrapped]{flex-wrap:wrap!important;row-gap:var(--sstf-space-2)!important}
  /* B14: the references' order of the two-row head — title (+icon) and × on the first row, «العودة إلى …» under the title */
  .sstf-large-card__head[data-sstf-wrapped]>.sstf-large-card__close{order:2!important;margin-inline-start:auto!important}
  .sstf-large-card__head[data-sstf-wrapped]>:is(strong,.sstf-large-card__titlebox){order:1!important;flex:1 1 0%!important;min-width:0!important;text-align:start!important;justify-content:flex-start!important}
  .sstf-large-card__head[data-sstf-wrapped]>.sstf-card-back{order:3!important;flex:1 1 100%!important;min-width:100%!important;max-width:100%!important}

  .sstf-option{position:relative!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;text-align:start!important;gap:var(--sstf-space-3)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-5))!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;cursor:pointer!important;box-sizing:border-box!important}
  .sstf-option>input{position:absolute!important;opacity:0!important;width:var(--sstf-hairline)!important;height:var(--sstf-hairline)!important;margin:0!important;pointer-events:none!important}
  .sstf-option__icon{width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important}
  .sstf-option__label{display:grid!important;flex:1 1 auto!important;min-width:0!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;color:var(--sstf-ink)!important}
  .sstf-option__label>small{font-size:var(--sstf-t-small)!important;font-weight:400!important;color:var(--sstf-ink-muted)!important}
  .sstf-option__check{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;border-radius:var(--sstf-radius-pill)!important;border:1.5px solid var(--sstf-line-special)!important;box-sizing:border-box!important;position:relative!important}
  .sstf-option:has(>input:checked){border-color:var(--sstf-tone-waiting-strong)!important;background:var(--sstf-tone-waiting-stage-bg)!important}
  .sstf-option:has(>input:checked) .sstf-option__check{border-color:var(--sstf-tone-waiting-strong)!important;background:var(--sstf-tone-waiting-strong)!important}
  .sstf-option:has(>input:checked) .sstf-option__check::after{content:""!important;position:absolute!important;top:45%!important;left:50%!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-1)!important;border-left:var(--sstf-ring-2) solid var(--sstf-surface)!important;border-bottom:var(--sstf-ring-2) solid var(--sstf-surface)!important;transform:translate(-50%,-50%) rotate(-45deg)!important}
  .sstf-option:has(>input:focus-visible){outline:var(--sstf-ring-2) solid var(--sstf-tone-waiting-strong)!important;outline-offset:var(--sstf-ring-offset-2)!important}

  .stocktake-history-list{display:grid!important;gap:var(--sstf-space-3)!important}
  .stocktake-history-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;text-decoration:none!important}
  .stocktake-history-row[data-scope="brand"]{background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-tone-waiting-stage-bg))!important}
  .stocktake-history-row[data-scope="all"]{background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-tone-done-stage-bg))!important}
  .stocktake-history-row[data-scope="selected"]{background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-tone-danger-stage-bg))!important}
  .stocktake-history-row__head{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .stocktake-history-row__head>strong{padding:var(--sstf-space-1) var(--sstf-space-2)!important;border-radius:var(--sstf-space-2)!important;background:var(--sstf-surface-tag)!important;color:var(--sstf-tone-waiting-fg)!important;font-size:var(--sstf-t-body)!important}
  .stocktake-history-row__head>b{flex:1 1 auto!important;min-width:0!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .stocktake-history-row__icon{width:calc(var(--sstf-touch) + var(--sstf-space-2))!important;height:calc(var(--sstf-touch) + var(--sstf-space-2))!important}
  .stocktake-history-row__meta{display:grid!important;gap:0!important}
  .stocktake-history-row__meta>small{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .stocktake-history-row__actor{display:flex!important;align-items:baseline!important;gap:var(--sstf-space-2)!important}
  .stocktake-history-row__actor>small{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .stocktake-history-row>.sstf-central-status{justify-self:start!important}

  .stocktake-size-counts{display:grid!important;gap:var(--sstf-space-2)!important}
  .stocktake-count-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-surface-status))!important}
  .stocktake-count-row__fields{display:grid!important;flex:1 1 auto!important;justify-items:center!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  .stocktake-count-row__fields>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .stocktake-count-row__fields>span:not(.stocktake-count-row__input){font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink-muted)!important}
  .stocktake-count-row__input{position:relative!important;display:block!important;width:100%!important}
  .stocktake-count-row__input>input{width:100%!important;min-height:var(--sstf-touch)!important;padding-inline-end:calc(var(--sstf-touch) + var(--sstf-space-1))!important;box-sizing:border-box!important}
  .stocktake-count-row__input>.sstf-icon{position:absolute!important;inset-inline-end:var(--sstf-space-2)!important;top:50%!important;transform:translateY(-50%)!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;pointer-events:none!important}
  .stocktake-count-row__media{flex:none!important;display:grid!important;place-items:center!important;width:calc(var(--sstf-touch) * 2)!important;height:calc(var(--sstf-touch) * 2)!important;border-radius:var(--sstf-radius-field)!important;overflow:hidden!important;background:var(--sstf-surface-idle)!important}
  .stocktake-count-row__media img{width:100%!important;height:100%!important;object-fit:contain!important}
}

/* B3: the legacy per-page rules (app-ui.css) that placed the former stocktake markup (scope chips in 5 columns, history row grid areas,
 * size rows as a 3-column table) are neutralised for the new reference markup only. */
@layer sstf-approved{
  .inventory-stocktake-scope{display:block!important;margin-bottom:var(--sstf-space-3)!important}
  .inventory-stocktake-scope>.sstf-option{grid-column:auto!important}
  .inventory-stocktake-scope .sstf-option>span{min-height:0!important;padding:0!important;border:0!important;background:none!important;place-items:initial!important;text-align:start!important;box-shadow:none!important}
  .inventory-stocktake-scope .sstf-option>.sstf-option__check{border:1.5px solid var(--sstf-line-special)!important;border-radius:var(--sstf-radius-pill)!important}
  .inventory-stocktake-scope .sstf-option:has(>input:checked)>.sstf-option__check{border-color:var(--sstf-tone-waiting-strong)!important;background:var(--sstf-tone-waiting-strong)!important}
  .stocktake-history-row>*{grid-column:1/-1!important;grid-row:auto!important}
  .stocktake-history-row>small{display:block!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .stocktake-size-counts{overflow:visible!important;border:0!important;border-radius:0!important}
  .stocktake-size-counts>.stocktake-count-row{flex-direction:row!important;grid-template-columns:none!important;min-height:0!important;margin:0!important;border-block-end:1px solid var(--sstf-line-card)!important}
  .stocktake-size-counts>.stocktake-count-row span{color:inherit!important}
  .stocktake-size-counts .stocktake-count-row__input>input{min-height:var(--sstf-touch)!important;text-align:center!important}
}

/* CENTRAL-DESIGN-UNIFICATION B4 — S&S order: identity card of 3×2 facts («تفاصيل الطلب - التجهيز», «ملخص الطلب»), the green workflow
 * step with its play symbol, the money actions (blue settle, gold deposit) and the details fold with its file icon. */
@layer sstf-approved{
  .sstf-facts--3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-surface-status))!important;overflow:hidden!important}
  .sstf-facts--3>.sstf-fact{flex-direction:row!important;gap:var(--sstf-space-2)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-3))!important;padding:var(--sstf-space-2)!important;border:0!important;border-radius:0!important;background:transparent!important}
  .sstf-facts--3>.sstf-fact:nth-child(-n+3){border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-facts--3>.sstf-fact:not(:nth-child(3n)){border-inline-end:1px solid var(--sstf-line-card)!important}
  .sstf-facts--3 .sstf-fact__icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important}
  .sstf-facts--3 .sstf-fact__value{font-size:var(--sstf-t-small)!important;line-height:1.3!important}
  .sstf-facts--3 .sstf-fact__value .ss-order-number{font-size:var(--sstf-t-card)!important}
  .sstf-fact__value>bdi{display:inline-block!important;max-width:100%!important;unicode-bidi:isolate!important}
  .sstf-fact__icon--html{display:grid!important;place-items:center!important;flex:none!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-fact__icon--html>img{width:60%!important;height:auto!important;border-radius:var(--sstf-ring-2)!important}
  .ss-order-identity .ss-identity-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-2)!important}
  /* a phone keeps the reference's order and icons in two columns: three columns of 13 px values do not fit 390 (DEFERRED-EXCEPTIONS E-01) */
  @media(max-width:480px){.sstf-facts--3{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sstf-facts--3>.sstf-fact{border:0!important;border-bottom:1px solid var(--sstf-line-card)!important}.sstf-facts--3>.sstf-fact:nth-child(odd){border-inline-end:1px solid var(--sstf-line-card)!important}.sstf-facts--3>.sstf-fact:nth-last-child(-n+2){border-bottom:0!important}}
  .ss-money-action>span{background:none!important;color:inherit!important;padding:0!important;box-shadow:none!important}
  .ss-money-action:not(.ss-money-action--deposit){border-color:var(--sstf-tone-waiting-strong)!important;background:linear-gradient(180deg,var(--sstf-tone-waiting-strong),var(--sstf-tone-waiting-stage-fg))!important;color:var(--sstf-surface)!important}
  .ss-workflow-start>span{background:none!important;color:inherit!important;padding:0!important;box-shadow:none!important}

  .ss-section-heading-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;margin-inline-end:var(--sstf-space-2)!important}
  .ss-workflow-start{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-1))!important;border-color:var(--sstf-tone-done-strong)!important;background:linear-gradient(180deg,var(--sstf-tone-done-strong),var(--sstf-tone-done-fg))!important;color:var(--sstf-surface)!important}
  .ss-workflow-start>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .ss-money-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;flex:1 1 0!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-1))!important}
  .ss-money-action>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .ss-money-action--deposit{border-color:var(--sstf-tone-progress-strong)!important;background:linear-gradient(180deg,var(--sstf-tone-progress-strong),var(--sstf-tone-action-strong))!important;color:var(--sstf-surface)!important}
  .ss-payment-current-actions .ss-quick-action-scroll:has(>.ss-money-action){display:flex!important;gap:var(--sstf-space-2)!important;overflow:visible!important}
  .ss-order-details-card>summary>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .ss-order-details-card>summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B5 — iconed form field (label above, the 3D icon beside the control, references «تسجيل عربون»,
 * «تسوية رصيد الطلب»), the iconed check row, and the send action (gradient, paper-plane symbol). */
@layer sstf-approved{
  .sstf-icon-field{position:relative!important;display:block!important;padding-inline-start:calc(var(--sstf-touch) + var(--sstf-space-2))!important;margin:0 0 var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  .sstf-icon-field>.sstf-icon-field__icon{position:absolute!important;inset-inline-start:0!important;bottom:var(--sstf-space-1)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important}
  .sstf-icon-field:has(>textarea)>.sstf-icon-field__icon{bottom:auto!important;top:calc(var(--sstf-t-body) * 1.5 + var(--sstf-space-3))!important}
  .sstf-icon-field>:is(input:not([type=checkbox]),select,textarea){display:block!important;width:100%!important;margin-top:var(--sstf-space-1)!important;box-sizing:border-box!important}
  .sstf-icon-field.account-check{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;font-weight:600!important}
  .sstf-icon-field.account-check>.sstf-icon-field__icon{top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;inset-inline-start:var(--sstf-space-1)!important}
  .sstf-send-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-1))!important;margin-top:var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:linear-gradient(90deg,var(--sstf-tone-waiting-border),var(--sstf-tone-waiting-strong))!important;color:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-send-button>span{background:none!important;color:inherit!important;padding:0!important}
  .sstf-send-button>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  /* forms laid out as a multi-column grid (account-form / ops-form): the reference patterns take the full row */
  :is(.account-form,.ops-form)>:is(.sstf-facts,.sstf-icon-field,.sstf-send-button,.sstf-banner){grid-column:1/-1!important;width:auto!important}
  .ss-workflow-banner{margin-bottom:var(--sstf-space-2)!important}
  .ss-settle-balance{background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-tone-waiting-stage-bg))!important}
}

/* CENTRAL-DESIGN-UNIFICATION B6 — value list («التفصيل المالي للطلب») and timeline («حالات الطلب»). */
@layer sstf-approved{
  .sstf-values{display:grid!important;gap:var(--sstf-space-2)!important}
  .sstf-value-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  .sstf-value-row.is-tinted{border-color:var(--sstf-tone-waiting-border)!important;background:var(--sstf-tone-waiting-stage-bg)!important}
  .sstf-value-row__label{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink-soft)!important}
  .sstf-value-row__icon{display:grid!important;place-items:center!important;flex:none!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;border-radius:var(--sstf-space-2)!important;background:var(--sstf-surface-status)!important}
  .sstf-value-row__icon>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-value-row>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important;white-space:nowrap!important}

  .sstf-timeline{position:relative!important;display:grid!important;gap:var(--sstf-space-2)!important;list-style:none!important;margin:0!important;padding:0!important;padding-inline-end:var(--sstf-space-5)!important}
  .sstf-timeline::before{content:""!important;position:absolute!important;inset-inline-end:var(--sstf-space-2)!important;top:var(--sstf-space-4)!important;bottom:var(--sstf-space-4)!important;border-inline-end:1.5px dashed var(--sstf-line-special)!important}
  .sstf-timeline__item{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  .sstf-timeline__item::after{content:""!important;position:absolute!important;top:50%!important;inset-inline-end:calc(-1 * var(--sstf-space-4) - var(--sstf-space-1))!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-neutral-strong)!important;transform:translateY(-50%)!important}
  .sstf-timeline__item[data-tone="waiting"]::after{background:var(--sstf-tone-waiting-strong)!important}
  .sstf-timeline__item[data-tone="progress"]::after{background:var(--sstf-tone-progress-strong)!important}
  .sstf-timeline__item[data-tone="action"]::after{background:var(--sstf-tone-action-strong)!important}
  .sstf-timeline__item[data-tone="done"]::after{background:var(--sstf-tone-done-strong)!important}
  .sstf-timeline__item[data-tone="danger"]::after{background:var(--sstf-tone-danger-strong)!important}
  .sstf-timeline__item>time{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-soft)!important;white-space:nowrap!important}
  .sstf-timeline__item .sstf-central-status__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  /* SHIPPING STEP 1 — central Tracking Card + Shipping Hub (owner visual reference 2026-10-14): same Glass rows, iconed fields, vertical timeline, existing tokens only */
  .sstf-tracking-card{display:grid!important;gap:var(--sstf-space-3)!important;min-width:0!important}
  .sstf-tracking-card+.sstf-tracking-card{margin-top:var(--sstf-space-4)!important;padding-top:var(--sstf-space-4)!important;border-top:1px solid var(--sstf-line-card)!important}
  .sstf-tracking-card .sstf-value-row,.sstf-shipping-hub .sstf-value-row{min-height:calc(var(--sstf-touch) + var(--sstf-space-3))!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-tracking-card .sstf-value-row>strong,.sstf-shipping-hub .sstf-value-row>strong{flex:0 1 auto!important;min-width:0!important;font-size:var(--sstf-t-card)!important;color:var(--sstf-ink)!important;text-align:end!important}
  .sstf-tracking-card .sstf-value-row__label,.sstf-shipping-hub .sstf-value-row__label{flex:0 0 auto!important}
  .sstf-tracking-card .sstf-value-row,.sstf-shipping-hub .sstf-value-row{flex-wrap:wrap!important;row-gap:var(--sstf-space-1)!important}
  .sstf-tracking-card .sstf-value-row>strong,.sstf-shipping-hub .sstf-value-row>strong{margin-inline-start:auto!important;white-space:normal!important}
  .sstf-tracking-card .sstf-value-row__icon,.sstf-shipping-hub .sstf-value-row__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-tracking-card .sstf-value-row__icon .sstf-icon,.sstf-shipping-hub .sstf-value-row__icon .sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-tracking-timeline{gap:var(--sstf-space-3)!important;margin-top:var(--sstf-space-2)!important}
  .sstf-tracking-timeline::before{border-inline-end-style:solid!important;border-inline-end-color:var(--sstf-tone-neutral-border)!important}
  .sstf-tracking-timeline .sstf-timeline__item{justify-content:flex-start!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-3))!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-tracking-timeline .sstf-timeline__item::after{width:var(--sstf-space-3)!important;height:var(--sstf-space-3)!important;inset-inline-end:calc(-1 * var(--sstf-space-5) + var(--sstf-space-1))!important;transform:translateY(-50%)!important}
  .sstf-tracking-step__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:0 0 auto!important}
  /* SHIPPING STEP 3 REPAIR 2: a tracking milestone (label, carrier, tracking number, date) wraps inside its own row — the LTR section card inherits `.sstf-flow [dir="ltr"]{white-space:nowrap}` (app-ui.css); scoped to tracking cards and their details card only */
  .sstf-tracking-card .sstf-timeline__item,.sstf-tracking-details .sstf-timeline__item{white-space:normal!important}
  .sstf-tracking-card .sstf-timeline__item>span,.sstf-tracking-details .sstf-timeline__item>span{min-width:0!important;}
  /* SHIPPING STEP 3 REPAIR 2 (message): the parcel section's empty-state text («لا توجد معلومات تتبع دولي متاحة بعد.») wraps inside its recipient block — same inherited `.sstf-flow [dir="ltr"]{white-space:nowrap}` of the LTR section card; .parcel-section exists only in templates/dropshipping/tracking.php */
  .parcel-section .sstf-central-empty__text{white-space:normal!important;}
  .sstf-tracking-timeline .sstf-timeline__item[data-state="done"]{background:var(--sstf-tone-done-bg-soft)!important;border-color:var(--sstf-tone-done-border)!important;color:var(--sstf-ink)!important}
  .sstf-tracking-timeline .sstf-timeline__item[data-state="current"]{background:var(--sstf-tone-progress-bg)!important;border-color:var(--sstf-tone-progress-border)!important;color:var(--sstf-tone-progress-fg)!important}
  .sstf-tracking-timeline .sstf-timeline__item[data-state="upcoming"]{color:var(--sstf-ink-soft)!important;font-weight:600!important}
  .sstf-tracking-timeline .sstf-timeline__item[data-state="upcoming"] .sstf-tracking-step__icon{opacity:.75!important}
  .sstf-tracking-timeline .sstf-timeline__item[data-state="current"]::after{animation:sstf-track-pulse 2s ease-in-out infinite!important}
  @keyframes sstf-track-pulse{0%,100%{box-shadow:0 0 0 0 var(--sstf-tone-progress-strong)}50%{box-shadow:0 0 0 var(--sstf-space-1) transparent}}
  @media(prefers-reduced-motion:reduce){.sstf-tracking-timeline .sstf-timeline__item[data-state="current"]::after{animation:none!important}}
  .sstf-tracking-card__head .sstf-central-status{font-size:var(--sstf-t-page)!important}
  .sstf-tracking-card__events{margin-top:var(--sstf-space-3)!important;padding-top:var(--sstf-space-3)!important;border-top:1px solid var(--sstf-line-card)!important}
  .sstf-tracking-card__events .sstf-timeline__item{flex-wrap:wrap!important} /* SHIPPING STEP 4 FIX: in the journey update log a long entry (carrier update: status · tag + carrier and reference) moves the date to its own line instead of squeezing it over the text */
  .sstf-tracking-card__events>summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;color:var(--sstf-ink-muted)!important;cursor:pointer!important}
  .sstf-tracking-card__events-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-shipping-hub__head{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;margin-bottom:var(--sstf-space-3)!important}
  .sstf-shipping-hub__head h2{margin:0!important}
  .sstf-shipping-hub__head-icon{width:calc(var(--sstf-icon-lg) * 1.6)!important;height:calc(var(--sstf-icon-lg) * 1.6)!important;flex:0 0 auto!important}
  .sstf-shipping-hub__sub{margin:var(--sstf-space-1) 0 0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .sstf-shipping-hub__children{display:grid!important;gap:var(--sstf-space-3)!important;margin-top:var(--sstf-space-4)!important;padding-top:var(--sstf-space-4)!important;border-top:1px solid var(--sstf-line-card)!important}
  .sstf-shipping-hub__child{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-4))!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-tone-waiting-stage-fg)!important;font:inherit!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;text-align:start!important;box-shadow:var(--sstf-sh-card)!important;cursor:pointer!important}
  .sstf-shipping-hub__child:hover,.sstf-shipping-hub__child:focus-visible{border-color:var(--sstf-tone-waiting-border)!important}
  .sstf-shipping-hub__child-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:0 0 auto!important}
  .sstf-shipping-hub__child-label{flex:1 1 auto!important;min-width:0!important}
  .sstf-shipping-hub__chevron{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:0 0 auto!important}
}

/* CENTRAL-DESIGN-UNIFICATION B7 — plain heading banner, record card («المستندات»), type chips in rows. */
@layer sstf-approved{
  .sstf-banner[data-tone="plain"]{min-height:0!important;padding:var(--sstf-space-1) 0!important;border:0!important;background:none!important}
  .sstf-banner[data-tone="plain"] .sstf-banner__footer{display:flex!important}
  .sstf-banner[data-tone="plain"] .sstf-banner__footer>*{width:auto!important;padding-inline:var(--sstf-space-5)!important}

  .sstf-record{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-record__head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  .sstf-record__title{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  .sstf-record__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-record__sub{margin:0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important;}
  .sstf-record__foot{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important}
  .sstf-record__amount{font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important;white-space:nowrap!important}
  .sstf-record__foot>:is(a,button){display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .sstf-record__foot>:is(a,button)>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-record__foot>.sstf-record__amount{order:2!important}

  /* R138: the documents chips scroll sideways like every chip row (owner rule 29/10); the 3-column grid of Batch A cut «فاتورة مشتريات» at 390 */
  
  .account-documents{display:grid!important;gap:var(--sstf-space-3)!important}
  /* the record keeps the legacy hook class account-document-row (layout.js dashboard preview reads it); its legacy grid areas are reset */
  .account-documents>.sstf-record{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;margin:0!important;border-radius:var(--sstf-radius-card)!important}
  .account-documents>.sstf-record>*{grid-column:1/-1!important;grid-row:auto!important;justify-items:initial!important}
  .account-documents>.sstf-record>.sstf-record__sub{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .account-documents>.sstf-record .sstf-record__title{white-space:normal!important;overflow:visible!important;font-size:var(--sstf-t-card)!important}
  .account-documents>.sstf-record .sstf-record__foot>:is(a,button){min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border-radius:var(--sstf-radius-field)!important;font-size:var(--sstf-t-card)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B8 — fund page («صندوق B2B», «كرت أدوات الصندوق»): head icon, iconed action bar, iconed fold summaries. */
@layer sstf-approved{
  .fund-page-head{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important}
  .fund-page-head>div{flex:1 1 auto!important;min-width:0!important}
  .fund-page-head__icon{width:calc(var(--sstf-touch) + var(--sstf-space-3))!important;height:calc(var(--sstf-touch) + var(--sstf-space-3))!important}
  .fund-action{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-2))!important;color:var(--sstf-surface)!important}
  .fund-action>.sstf-icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important}
  .fund-action--in,.fund-action--out{background:linear-gradient(180deg,var(--sstf-tone-waiting-strong),var(--sstf-tone-waiting-stage-fg))!important;border-color:var(--sstf-tone-waiting-strong)!important}
  .fund-action--transfer{background:linear-gradient(90deg,var(--sstf-tone-waiting-border),var(--sstf-tone-waiting-strong))!important;border-color:var(--sstf-tone-waiting-strong)!important}
  .fund-fold>summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .fund-fold>summary>.sstf-icon,.fund-tools details>summary>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .fund-tools details>summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .fund-tool-links.sstf-icon-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  
  .fund-tool-links .sstf-icon-action{padding-inline:var(--sstf-space-2)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B9 — «الحركات المالية»: chip counts (tinted per flow) and the 3D direction sign of each movement. */
@layer sstf-approved{
  .finance-chip-count{display:inline-grid!important;place-items:center!important;min-width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;margin-inline-end:var(--sstf-space-1)!important;padding:0 var(--sstf-space-1)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
  [data-flow="in"]>.finance-chip-count{background:var(--sstf-tone-done-bg)!important;color:var(--sstf-tone-done-fg)!important}
  [data-flow="out"]>.finance-chip-count{background:var(--sstf-tone-danger-bg)!important;color:var(--sstf-tone-danger-fg)!important}
  [data-flow="internal"]>.finance-chip-count{background:var(--sstf-tone-neutral-bg)!important;color:var(--sstf-tone-neutral-fg)!important}
  .movement-sign-icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;align-self:start!important}
}

/* CENTRAL-DESIGN-UNIFICATION B10 — product wizard shell per the approved wizard references (batch-004): head = × · context + % + bar ·
 * wizard icon; large centred step title without a focus box (focus is still moved to it for screen readers); primary «التالي». Geometry
 * stays owned by the protected sstf-wizard-contract layer. */
@layer sstf-approved{
  #wizard>header.head{display:grid!important;grid-template-columns:var(--sstf-touch) minmax(0,1fr) var(--sstf-touch)!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-bottom:1px solid var(--sstf-line-card)!important}
  #wizard>header.head>.wizard-close{grid-column:3!important;grid-row:1!important;justify-self:end!important}
  #wizard>header.head>.wizard-head-center{grid-column:2!important;grid-row:1!important;justify-self:stretch!important;display:grid!important;justify-items:center!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  #wizard>header.head>.wizard-head-icon{grid-column:1!important;grid-row:1!important;justify-self:start!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important}
  #wizard .wizard-context{font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
  #wizard .wizard-head-center>.compact-progress{display:grid!important;grid-template-columns:none!important;justify-items:center!important;gap:var(--sstf-space-1)!important;width:min(100%,calc(var(--sstf-space-6) * 5))!important}
  #wizard .wizard-head-center .pct{font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  #wizard .wizard-head-center .track{width:100%!important;height:var(--sstf-space-2)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-neutral-stage-bg)!important;overflow:hidden!important}
  #wizard .wizard-head-center .fill{height:100%!important;border-radius:var(--sstf-radius-pill)!important;background:linear-gradient(90deg,var(--sstf-tone-waiting-border),var(--sstf-tone-waiting-strong))!important}
  /* PHASE 3: wizard language control (supplier alternative wizard only) — one segmented row under the progress, central segmented tokens */
  #wizard .wizard-language{display:inline-flex!important;gap:var(--sstf-space-1)!important;padding:calc(var(--sstf-space-1) / 2)!important;border:1px solid var(--sstf-line-segmented)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-segmented)!important}
  #wizard .wizard-language__option{min-width:calc(var(--sstf-space-6) + var(--sstf-space-2))!important;min-height:calc(var(--sstf-space-6) + var(--sstf-space-1))!important;padding:0 var(--sstf-space-2)!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:transparent!important;color:var(--sstf-ink-segmented)!important;font-weight:700!important;font-size:var(--sstf-t-body)!important;box-shadow:none!important}
  #wizard .wizard-language__option[aria-pressed="true"]{background:var(--sstf-tone-waiting-fg)!important;color:var(--sstf-surface)!important}
  #wizard .wizard-body [data-question]>.title{font-size:var(--sstf-t-page)!important;font-weight:800!important;text-align:center!important;color:var(--sstf-ink)!important}
  #wizard .wizard-body [data-question]>.title:focus{outline:none!important;box-shadow:none!important}
  #wizard .wizard-foot #next-step,#wizard .wizard-foot #finish-product{border-color:var(--sstf-tone-waiting-strong)!important;background:var(--sstf-tone-waiting-fg)!important;color:var(--sstf-surface)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B11 — wizard choice tiles (type / audience steps, approved wizard references): tinted cards with the 3D icon
 * on top and the label under it; the chosen tile takes the blue border and tint. Handlers and aria-pressed unchanged. */
@layer sstf-approved{
  #wizard .choices>.choice{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;min-height:calc(var(--sstf-space-6) * 5)!important;padding:var(--sstf-space-3) var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-surface-status))!important;color:var(--sstf-ink)!important;box-shadow:var(--sstf-sh-card)!important}
  #wizard .choices>.choice:nth-child(3n+2){background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-tone-done-stage-bg))!important}
  #wizard .choices>.choice:nth-child(3n){background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-tone-progress-stage-bg))!important}
  #wizard .choices>.choice.on,#wizard .choices>.choice.active,#wizard .choices>.choice[aria-pressed="true"]{border:var(--sstf-ring-2) solid var(--sstf-tone-waiting-strong)!important;background:var(--sstf-tone-waiting-stage-bg)!important}
  #wizard .choices>.choice>.ic{display:grid!important;place-items:center!important;width:calc(var(--sstf-space-6) * 2.5)!important;height:calc(var(--sstf-space-6) * 2.5)!important;border:0!important;background:none!important;box-shadow:none!important}
  #wizard .choices>.choice>.ic>img{width:100%!important;height:100%!important;object-fit:contain!important}
  #wizard .choices>.choice>b{font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  #wizard .choices>.choice>.rd{display:none!important}
}

/* CENTRAL-DESIGN-UNIFICATION B12 — «التحصيل»: the create action first (full width), section banners, iconed history fold. */
@layer sstf-approved{
  .finance-new-receipt-open{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-1))!important;margin:0 0 var(--sstf-space-3)!important}
  .finance-history-fold>summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .finance-history-fold>summary>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B13 — PREPARED_UI_ONLY section card (visibly inactive), centred hero heading, row empty state. */
@layer sstf-approved{
  .sstf-section-card--prepared{cursor:default!important;border-style:dashed!important;background:var(--sstf-surface-special-muted)!important;color:var(--sstf-ink-muted)!important;box-shadow:none!important}
  .sstf-section-card--prepared::before{display:none!important}
  .sstf-section-card--prepared>strong{color:var(--sstf-ink-soft)!important}
  .sstf-section-card--prepared>.sstf-new-tag{align-self:flex-start!important;margin-top:auto!important}

  .sstf-banner--hero{flex-direction:column!important;align-items:center!important;text-align:center!important;gap:var(--sstf-space-2)!important}
  .sstf-banner.sstf-banner--hero:has(>.sstf-banner__icon)>.sstf-banner__icon{width:calc(var(--sstf-space-6) * 3.5)!important;height:calc(var(--sstf-space-6) * 3.5)!important}
  .sstf-banner--hero .sstf-banner__text{flex:none!important;justify-items:center!important}
  .sstf-banner--hero .sstf-banner__text>p{color:var(--sstf-ink-muted)!important}

  .sstf-central-empty--row{display:flex!important;align-items:center!important;justify-items:initial!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-4)!important;text-align:start!important}
  .sstf-central-empty--row>.sstf-central-empty__icon{width:calc(var(--sstf-touch) + var(--sstf-space-3))!important;height:calc(var(--sstf-touch) + var(--sstf-space-3))!important;flex:none!important}
  .sstf-central-empty__text{display:grid!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  .sstf-central-empty__text>strong{color:var(--sstf-ink)!important}
  .sstf-central-empty__text>p{margin:0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B14 — work-card title icon + wrapped head; app shell cards («حالة الفريق», «الدوام اليوم», «الحاسبة»,
   «التطبيق والتنبيهات») and «لوحة العمل» per the approved references (design-reference/html). */
@layer sstf-approved{
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>.sstf-central-glass__title--icon{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .sstf-central-glass__title--icon>.sstf-icon--title{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:none!important}
  .sstf-central-glass__title-text{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]{flex-shrink:0!important;grid-template-columns:minmax(0,1fr) var(--sstf-touch)!important;grid-template-rows:auto auto!important;row-gap:0!important;padding-bottom:var(--sstf-space-2)!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>:is(strong,h2,h3,.sstf-central-glass__title,div:has(>:is(h2,h3))){grid-row:1!important;grid-column:1!important;justify-self:start!important;text-align:start!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)[data-sstf-wrapped] .sstf-central-glass__title-text{white-space:normal!important;overflow:visible!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>.sstf-card-back{grid-row:2!important;grid-column:1/-1!important;min-height:var(--sstf-touch)!important;line-height:var(--sstf-chip-h)!important;padding-block:calc((var(--sstf-touch) - var(--sstf-chip-h)) / 2)!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close,.icon-button){grid-row:1!important;grid-column:2!important}

  /* «حالة الفريق» — person cards: avatar ring with the presence dot, name, divider, presence pill */
  .sstf-team-card>.sstf-central-glass__body,.sstf-duty-card>.sstf-central-glass__body,.sstf-calc-card>.sstf-central-glass__body{padding-top:var(--sstf-space-3)!important}
  .sstf-team-card .team-presence{margin:0!important;padding:0!important;border:0!important;background:none!important}
  .sstf-team-card .team-strip{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(calc(var(--sstf-touch) * 2.4),1fr))!important;gap:var(--sstf-space-3)!important;overflow:visible!important;padding:0!important}
  .sstf-team-card .team-person{display:grid!important;justify-items:center!important;align-content:start!important;gap:var(--sstf-space-2)!important;min-width:0!important;margin:0!important;padding:var(--sstf-space-4) var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:0 var(--sstf-space-1) var(--sstf-space-4) var(--sstf-shade-142846-a06)!important;text-align:center!important;color:var(--sstf-ink)!important}
  .sstf-team-card .team-person>.presence-avatar{position:relative!important;display:grid!important;place-items:center!important;width:calc(var(--sstf-touch) * 1.5)!important;height:calc(var(--sstf-touch) * 1.5)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-status)!important;box-shadow:0 0 0 var(--sstf-space-1) var(--sstf-white-a94),0 var(--sstf-space-1) var(--sstf-space-3) var(--sstf-shade-142846-a12)!important}
  .sstf-team-card .team-person>.presence-avatar>.presence-dot{position:absolute!important;inset-block-end:var(--sstf-space-1)!important;inset-inline-end:var(--sstf-space-1)!important}
  .sstf-team-card .team-person>strong{width:100%!important;padding-bottom:var(--sstf-space-2)!important;border-bottom:1px solid var(--sstf-line-card)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;}
  .sstf-team-card .team-person>small{display:inline-flex!important;align-items:center!important;min-height:var(--sstf-chip-h)!important;padding:0 var(--sstf-space-3)!important;border-radius:var(--sstf-radius-pill)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;background:var(--sstf-tone-neutral-bg)!important;color:var(--sstf-tone-neutral-fg)!important}
  .sstf-team-card .team-person[data-presence="out"]>small{background:var(--sstf-tone-danger-bg)!important;color:var(--sstf-tone-danger-fg)!important}
  .sstf-team-card .team-person[data-presence="working"]>small{background:var(--sstf-tone-done-bg)!important;color:var(--sstf-tone-done-fg)!important}
  .sstf-team-card .team-person:is([data-presence="break"],[data-presence="departure"])>small{background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important}
  .sstf-team-card .team-person[data-presence="field"]>small{background:var(--sstf-tone-progress-bg)!important;color:var(--sstf-tone-progress-fg)!important}

  /* «الدوام اليوم» — hero (state pill, stopwatch, big counter, hint), the two time tiles, place field, start button, note */
  .sstf-duty{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;position:static!important}
  .sstf-duty__hero{position:relative!important;display:grid!important;justify-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-5) var(--sstf-space-4) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .sstf-duty__state{justify-self:start!important;display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;font-size:var(--sstf-t-body)!important}
  .sstf-duty__state>strong{font-weight:700!important}
  .sstf-duty__watch{width:calc(var(--sstf-touch) * 2)!important;height:calc(var(--sstf-touch) * 2)!important}
  .sstf-duty .duty-clock{display:block!important;margin:0!important;font-size:calc(var(--sstf-t-page) * 2)!important;font-weight:800!important;line-height:1.1!important;color:var(--sstf-ink)!important;font-variant-numeric:tabular-nums!important}
  .sstf-duty__times{margin:0!important}
  .sstf-duty .duty-form{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important}
  .sstf-duty .duty-form>button.duty-primary{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-2))!important;border-radius:var(--sstf-radius-card)!important;font-size:var(--sstf-t-card)!important}
  .sstf-duty .duty-form>button.duty-primary>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-duty__note{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;justify-self:center!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important;text-decoration:none!important}
  .sstf-duty__note>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-calc-card .sstf-calc-key__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;pointer-events:none!important}
  .sstf-calc-card [data-calc-key]{display:grid!important;place-items:center!important}
  .sstf-calc-card .fx-swap>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-calc-card .fx-result{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;column-gap:var(--sstf-space-3)!important}
  .sstf-calc-card .fx-result>.fx-result__icon{grid-row:span 3!important;width:calc(var(--sstf-touch) * 1.2)!important;height:calc(var(--sstf-touch) * 1.2)!important}
  .sstf-calc-card .fx-note{display:flex!important;align-items:flex-start!important;gap:var(--sstf-space-2)!important}
  .sstf-calc-card .fx-note>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}

  /* «التطبيق والتنبيهات» — the body's buttons as full-width rows */
  .sstf-app-card .sstf-central-glass__body{display:grid!important;gap:var(--sstf-space-3)!important}
.sstf-app-card .sstf-central-glass__body>button{width:100%!important;min-height:var(--sstf-touch)!important}
  /* NOTIF (owner 2026-10-21, FEATURE-1320 ب — the owner's picture): head bell with the unread count, rows with a glass icon tile, three gradient
     tiles (install / phone switch / test), «آخر الإشعارات» (kind icon, title + short line, time, unread mark) and «إدارة تهيئة التنبيهات».
     Text rule OQ-X5-01: a short text is one line that scrolls inside its place (no wrap, no «…»). */
  dialog#sstf-app-panel.sstf-app-card{background:linear-gradient(180deg,var(--sstf-white-a95),var(--sstf-white-a88))!important;-webkit-backdrop-filter:blur(var(--sstf-blur-14))!important;backdrop-filter:blur(var(--sstf-blur-14))!important;border:1px solid var(--sstf-white-a9)!important;border-radius:calc(var(--sstf-radius-card) + var(--sstf-space-3))!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important}
  dialog#sstf-app-panel.sstf-app-card .sstf-central-glass__title{position:relative!important;font-size:var(--sstf-t-page)!important;font-weight:800!important}
  dialog#sstf-app-panel.sstf-app-card .sstf-central-glass__title--icon>.sstf-icon--title{width:calc(var(--sstf-icon-lg) + var(--sstf-space-2))!important;height:calc(var(--sstf-icon-lg) + var(--sstf-space-2))!important}
  .sstf-app-card .sstf-app-card__count{position:absolute!important;top:calc(-1 * var(--sstf-space-1))!important;inset-inline-start:calc(var(--sstf-icon-lg) - var(--sstf-space-2))!important;min-width:calc(var(--sstf-space-5) - var(--sstf-space-1))!important;height:calc(var(--sstf-space-5) - var(--sstf-space-1))!important;padding:0 var(--sstf-space-1)!important;display:inline-grid!important;place-items:center!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-app-unread)!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;line-height:1!important;border:2px solid var(--sstf-surface)!important;box-sizing:border-box!important}
  .sstf-app-card .sstf-app-card__count[hidden]{display:none!important}
  .sstf-app-card .sstf-central-glass__body{gap:var(--sstf-space-4)!important}
  .sstf-app-card .sstf-app-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;padding:0 0 var(--sstf-space-3)!important;color:var(--sstf-ink)!important;text-decoration:none!important;font-size:var(--sstf-t-card)!important;font-weight:750!important;border-bottom:1px solid var(--sstf-line-card)!important;cursor:pointer!important;list-style:none!important}
  .sstf-app-card .sstf-app-row::-webkit-details-marker{display:none!important}
  .sstf-app-card .sstf-app-row__icon,.sstf-app-card .sstf-app-item__icon{flex:none!important;box-sizing:border-box!important;width:var(--sstf-app-icon-tile)!important;height:var(--sstf-app-icon-tile)!important;padding:var(--sstf-space-2)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-surface-segmented))!important;border:1px solid var(--sstf-white-a9)!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;object-fit:contain!important}
  .sstf-app-card .sstf-app-row__text,.sstf-app-card .sstf-app-tile__text,.sstf-app-card .sstf-app-item__title,.sstf-app-card .sstf-app-item__line{min-width:0!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;text-overflow:clip!important;scrollbar-width:none!important}
  .sstf-app-card :is(.sstf-app-row__text,.sstf-app-tile__text,.sstf-app-item__title,.sstf-app-item__line)::-webkit-scrollbar{display:none!important}
  .sstf-app-card .sstf-app-row__text{flex:1 1 auto!important}
  .sstf-app-card .sstf-app-row__chevron{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;transition:transform .15s!important}
  .sstf-app-card .sstf-app-manage{margin:0!important;padding:0!important;border:0!important;background:none!important}
  .sstf-app-card .sstf-app-manage>.sstf-app-row{border-bottom:0!important;padding:var(--sstf-space-3) 0 0!important;border-top:1px solid var(--sstf-line-card)!important}
  .sstf-app-card .sstf-app-manage>.sstf-app-row .sstf-app-row__text{flex:0 1 auto!important}
  .sstf-app-card .sstf-app-manage[open]>.sstf-app-row .sstf-app-row__chevron{transform:rotate(-90deg)!important}
  .sstf-app-card .sstf-app-manage>:not(summary){margin:var(--sstf-space-3) 0 0!important}
  .sstf-app-card .sstf-app-group{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important}
  .sstf-app-card .sstf-app-group[hidden],.sstf-app-card .sstf-app-note:empty,.sstf-app-card [hidden]{display:none!important}
  .sstf-app-card #sstf-install-group{padding-bottom:var(--sstf-space-4)!important;border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-app-card .sstf-app-hint,.sstf-app-card .sstf-app-note{margin:0!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-body)!important;line-height:1.7!important}
  dialog#sstf-app-panel.sstf-app-card .sstf-central-glass__body>.sstf-app-group>button.sstf-app-tile,dialog#sstf-app-panel.sstf-app-card button.sstf-app-tile{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:var(--sstf-app-tile-h)!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:calc(var(--sstf-radius-card) + var(--sstf-space-1))!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;text-align:center!important;box-shadow:var(--sstf-rim),var(--sstf-sh-card)!important;cursor:pointer!important}
  dialog#sstf-app-panel.sstf-app-card button.sstf-app-tile--install{background:linear-gradient(120deg,var(--sstf-app-install-from),var(--sstf-app-install-to))!important;color:var(--sstf-app-install-ink)!important;border:1px solid var(--sstf-app-install-line)!important}
  dialog#sstf-app-panel.sstf-app-card button.sstf-app-tile--push{background:linear-gradient(120deg,var(--sstf-app-push-from),var(--sstf-app-push-to))!important;color:var(--sstf-app-push-ink)!important;border:1px solid var(--sstf-app-push-line)!important}
  dialog#sstf-app-panel.sstf-app-card button.sstf-app-tile--test{background:linear-gradient(120deg,var(--sstf-app-test-from),var(--sstf-app-test-to))!important;color:var(--sstf-app-test-ink)!important;border:1px solid var(--sstf-app-test-line)!important}
  .sstf-app-card .sstf-app-tile__text{flex:1 1 auto!important;text-align:center!important}
  .sstf-app-card .sstf-app-tile__icon{flex:none!important;width:var(--sstf-app-icon-tile)!important;height:var(--sstf-app-icon-tile)!important;object-fit:contain!important}
  .sstf-app-card .sstf-app-tile__icon--stack{position:relative!important;display:inline-block!important;box-sizing:border-box!important;padding:var(--sstf-space-1)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-white-a7)!important}
  .sstf-app-card .sstf-app-tile__icon--stack>.sstf-icon:first-child{width:100%!important;height:100%!important;object-fit:contain!important}
  .sstf-app-card .sstf-app-tile__icon--stack>.sstf-app-tile__badge-icon{position:absolute!important;top:calc(-1 * var(--sstf-space-1))!important;inset-inline-end:calc(-1 * var(--sstf-space-1))!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-app-card .sstf-app-tile__end{flex:none!important;display:inline-grid!important;place-items:center!important;width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-white-a14)!important;border:1px solid var(--sstf-card-line)!important}
  .sstf-app-card .sstf-app-tile__end>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;object-fit:contain!important}
  .sstf-app-card .sstf-app-play{background:var(--sstf-surface)!important;border:2px solid var(--sstf-app-play)!important}
  .sstf-app-card .sstf-app-play>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-app-play)!important;padding:var(--sstf-space-1)!important;box-sizing:border-box!important;margin-inline-start:2px!important}
  .sstf-app-card .sstf-app-switch{flex:none!important;position:relative!important;display:inline-block!important;width:calc(var(--sstf-touch) + var(--sstf-space-4))!important;height:calc(var(--sstf-space-6) + var(--sstf-space-1))!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-app-switch-off)!important;box-shadow:inset 0 2px 4px var(--sstf-shade-142846-a16)!important;transition:background .2s!important}
  .sstf-app-card .sstf-app-switch>span{position:absolute!important;top:var(--sstf-space-1)!important;inset-inline-start:var(--sstf-space-1)!important;width:calc(var(--sstf-space-6) - var(--sstf-space-1))!important;height:calc(var(--sstf-space-6) - var(--sstf-space-1))!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;transition:inset-inline-start .2s!important}
  .sstf-app-card .sstf-app-tile--push.is-on .sstf-app-switch{background:var(--sstf-app-switch-on)!important}
  .sstf-app-card .sstf-app-tile--push.is-on .sstf-app-switch>span{inset-inline-start:calc(100% - var(--sstf-space-6) + var(--sstf-space-1) - var(--sstf-space-1))!important}
  .sstf-app-card .sstf-app-tile:disabled{opacity:.7!important;cursor:progress!important}
  .sstf-app-card .sstf-app-tile:focus-visible,.sstf-app-card .sstf-app-row:focus-visible,.sstf-app-card .sstf-app-item:focus-visible{outline:var(--sstf-ring-2) solid var(--sstf-app-play)!important;outline-offset:var(--sstf-ring-offset-2)!important}
  dialog#sstf-app-panel.sstf-app-card button.sstf-app-plain{min-height:var(--sstf-touch)!important;width:100%!important}
  dialog#sstf-app-panel.sstf-app-card section.sstf-app-latest{display:grid!important;gap:0!important;margin:0!important;padding:var(--sstf-space-3) 0 0!important;border:0!important;border-top:1px solid var(--sstf-line-card)!important;border-radius:0!important;background:none!important;box-shadow:none!important;min-width:0!important}
  dialog#sstf-app-panel.sstf-app-card .sstf-app-latest__title{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-1)!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  .sstf-app-card .sstf-app-latest__title::after{content:""!important;width:var(--sstf-space-3)!important;height:var(--sstf-space-3)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-app-dot)!important}
  .sstf-app-card .sstf-app-list{list-style:none!important;margin:0!important;padding:0!important;display:grid!important}
  .sstf-app-card .sstf-app-list>li{margin:0!important;padding:0!important;border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-app-card .sstf-app-list>li:last-child{border-bottom:0!important}
  .sstf-app-card .sstf-app-item{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:calc(var(--sstf-app-icon-tile) + var(--sstf-space-4))!important;padding:var(--sstf-space-2) 0!important;color:var(--sstf-ink)!important;text-decoration:none!important}
  .sstf-app-card .sstf-app-item__chev{flex:none!important;width:var(--sstf-space-3)!important;height:var(--sstf-space-3)!important;background:url("../icons/ref/256/chevron-right-navy.webp") center/contain no-repeat!important;opacity:.7!important}
  .sstf-app-card .sstf-app-item__chev:dir(ltr){background-image:url("../icons/ref/256/chevron-left-navy.webp")!important} /* NOTIF-2: the ltr portals mirror the row */
  .sstf-app-card .sstf-app-item__icon{position:relative!important;display:inline-grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;margin-inline-end:var(--sstf-space-1)!important}
  .sstf-app-card .sstf-app-item__icon>img{width:100%!important;height:100%!important;object-fit:contain!important}
  .sstf-app-card .sstf-app-item__dot{position:absolute!important;top:calc(-1 * var(--sstf-space-2))!important;inset-inline-start:calc(-1 * var(--sstf-space-2))!important;min-width:calc(var(--sstf-space-5) - var(--sstf-space-1))!important;height:calc(var(--sstf-space-5) - var(--sstf-space-1))!important;display:inline-grid!important;place-items:center!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-app-unread)!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;border:2px solid var(--sstf-surface)!important;box-sizing:border-box!important}
  .sstf-app-card .sstf-app-item__text{flex:1 1 auto!important;min-width:0!important;display:grid!important;gap:2px!important}
  .sstf-app-card .sstf-app-item__title{font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.5!important}
  .sstf-app-card .sstf-app-item__line{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-soft)!important;line-height:1.5!important}
  .sstf-app-card .sstf-app-item:not(.is-unread) .sstf-app-item__title{font-weight:650!important;color:var(--sstf-ink-line)!important}
  .sstf-app-card .sstf-app-item__time{flex:none!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-soft)!important;white-space:nowrap!important;direction:ltr!important;unicode-bidi:isolate!important}
  /* the bell of the header carries the panel's own unread count (Notifications::recent, which holds the new-message notices too) — not a second
     count beside it */
  .app-header--rows .app-settings-open .ss-message-count{display:none!important}
  .app-header--rows .app-settings-open #sstf-update-count{position:absolute!important;top:calc(-1 * var(--sstf-space-1))!important;right:calc(-1 * var(--sstf-space-1))!important;left:auto!important;min-width:calc(var(--sstf-space-5) - var(--sstf-space-1))!important;height:calc(var(--sstf-space-5) - var(--sstf-space-1))!important;padding:0 var(--sstf-space-1)!important;display:inline-grid!important;place-items:center!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-app-unread)!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;line-height:1!important;border:2px solid var(--sstf-surface)!important;box-sizing:border-box!important}
  .app-header--rows .app-settings-open #sstf-update-count[hidden]{display:none!important}

  /* «لوحة العمل» (home-screen-no-header) */
  section.sstf-role-home{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  .sstf-role-home__intro{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .sstf-role-home__welcome{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;font-weight:700!important;color:var(--sstf-ink-soft)!important}
  .sstf-role-home__welcome>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-role-home__create{margin:0 0 var(--sstf-space-4)!important}
  .sstf-create-bar{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:calc(var(--sstf-touch) * 1.5)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border-radius:var(--sstf-radius-card)!important;text-align:start!important}
  .sstf-create-bar__icon{display:grid!important;place-items:center!important;flex:none!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-white-a95)!important}
  .sstf-create-bar__icon>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-create-bar__text{display:grid!important;gap:0!important}
  .sstf-create-bar__text>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important;color:inherit!important} /* owner 29/10: the title and its line take the button's white, not the page heading colours */
  .sstf-create-bar__text>small{font-size:var(--sstf-t-small)!important;font-weight:600!important;opacity:.85!important;color:inherit!important}
  .sstf-quick-actions--tiles .sstf-quick-actions__head>span:first-child{display:grid!important;gap:0!important}
  .sstf-quick-actions--tiles .sstf-quick-actions__head small{font-size:var(--sstf-t-small)!important;font-weight:500!important;color:var(--sstf-ink-muted)!important}
  .sstf-quick-actions__tiles{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - var(--sstf-space-2) * 3) / 4)!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-3) 0 0!important;padding:0 0 var(--sstf-space-1)!important;list-style:none!important;overflow-x:auto!important;scrollbar-width:none!important}
  .sstf-quick-tile{margin:0!important}
  .sstf-quick-tile>a{display:grid!important;justify-items:center!important;align-content:start!important;gap:var(--sstf-space-1)!important;height:100%!important;padding:var(--sstf-space-2) var(--sstf-space-1)!important;border:1px solid rgba(var(--sstf-domain-rgb),.18)!important;border-radius:var(--sstf-radius-card)!important;background:rgba(var(--sstf-domain-rgb),.08)!important;color:var(--sstf-ink)!important;text-align:center!important;text-decoration:none!important}
  .sstf-quick-tile__icon{position:relative!important;display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important}
  .sstf-quick-tile__icon>.sstf-icon{width:100%!important;height:100%!important}
  .sstf-quick-tile__icon>i{position:absolute!important;inset-block-start:calc(var(--sstf-space-1) * -1)!important;inset-inline-end:calc(var(--sstf-space-1) * -1)!important;display:grid!important;place-items:center!important;min-width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;padding:0 var(--sstf-space-1)!important;border-radius:var(--sstf-radius-pill)!important;background:rgb(var(--sstf-domain-rgb))!important;color:var(--sstf-white-a95)!important;font-style:normal!important;font-size:var(--sstf-t-small)!important;font-weight:800!important}
  .sstf-quick-tile>a>b{font-size:var(--sstf-t-page)!important;font-weight:800!important;line-height:1.1!important}
  .sstf-quick-tile>a>strong{font-size:var(--sstf-t-small)!important;font-weight:800!important;line-height:1.25!important}
  .sstf-quick-tile>a>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-role-home__sections{margin:var(--sstf-space-5) 0 var(--sstf-space-3)!important}
  .sstf-role-home__sections>h2{margin:0!important;font-size:var(--sstf-t-page)!important;font-weight:800!important}
  .sstf-role-home__sections>p{margin:0!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .sstf-section-cards.sstf-section-cards--rows{display:grid!important;grid-template-columns:1fr!important;margin-bottom:var(--sstf-space-4)!important;gap:var(--sstf-space-3)!important}
  .sstf-section-cards--rows>.sstf-section-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:auto auto!important;align-items:center!important;align-content:center!important;column-gap:var(--sstf-space-3)!important;row-gap:0!important;min-height:calc(var(--sstf-touch) * 1.7)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1px solid rgba(var(--sstf-domain-rgb),.2)!important;background:linear-gradient(270deg,rgba(var(--sstf-domain-rgb),.16),rgba(var(--sstf-domain-rgb),.04))!important;text-align:start!important}
  .sstf-section-cards--rows>.sstf-section-card>.sstf-section-card__icon{grid-column:1!important;grid-row:1/span 2!important;display:grid!important;place-items:center!important;width:calc(var(--sstf-touch) * 1.25)!important;height:calc(var(--sstf-touch) * 1.25)!important;margin:0!important}
  .sstf-section-cards--rows>.sstf-section-card>.sstf-section-card__icon>:is(.sstf-icon,img){width:100%!important;height:100%!important;object-fit:contain!important}
  .sstf-section-cards--rows>.sstf-section-card>strong{grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .sstf-section-cards--rows>.sstf-section-card>small{grid-column:2!important;grid-row:2!important;align-self:start!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-section-cards--rows>.sstf-section-card>.sstf-section-card__go{grid-column:3!important;grid-row:1/span 2!important;position:relative!important;align-self:center!important;justify-self:end!important;margin:0!important;background:none!important}
}

/* CENTRAL-DESIGN-UNIFICATION B15 — order lists («تصميم-صفحة-الطلبات»): chip, create-action, segmented and order-card meta icons. */
@layer sstf-approved{
  .ss-sales-stage-chips>a{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important}
  .ss-sales-stage-chips>a>.sstf-chip-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  :is(.ss-sales-create-button,#ss-create-toggle){display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important}
  :is(.ss-sales-create-button,#ss-create-toggle)>.sstf-create-icon{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-segmented__item{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important}
  .sstf-segmented__item>.sstf-segmented__icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-order-card__date{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important}
  .sstf-order-card__name{display:flex!important;align-items:center!important;gap:var(--sstf-space-1)!important}
  .sstf-order-card__meta-icon{flex:none!important;width:var(--sstf-t-body)!important;height:var(--sstf-t-body)!important;opacity:.8!important}
  .ss-sales-tabs.sstf-section-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
  .ss-sales-tabs>.sstf-section-card{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center!important;align-content:center!important;column-gap:var(--sstf-space-2)!important;row-gap:0!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-4))!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;text-align:start!important}
  .ss-sales-tabs>.sstf-section-card>strong{grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:var(--sstf-t-body)!important}
  .ss-sales-tabs>.sstf-section-card>small{grid-column:2!important;grid-row:2!important;align-self:start!important;font-size:var(--sstf-t-small)!important}
  .ss-sales-tabs>.sstf-section-card>.sstf-section-card__icon{grid-column:1!important;grid-row:1/span 2!important;display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important}
  .ss-sales-tabs>.sstf-section-card>.sstf-section-card__icon>.sstf-icon{width:100%!important;height:100%!important}
}

/* CENTRAL-DESIGN-UNIFICATION B16 — order information as one row of four facts (reference «تصميم-تفاصيل-الطلب»), page-heading title icon,
   order toolbar buttons with their 3D icons. */
@layer sstf-approved{
  .sstf-facts--4{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-surface-status))!important;overflow:hidden!important}
  .sstf-facts--4>.sstf-fact{flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important;gap:var(--sstf-space-1)!important;min-width:0!important;padding:var(--sstf-space-3) var(--sstf-space-1)!important;border:0!important;border-radius:0!important;background:transparent!important}
  .sstf-facts--4>.sstf-fact:not(:last-child){border-inline-end:1px solid var(--sstf-line-card)!important}
  .sstf-facts--4 .sstf-fact__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-facts--4 .sstf-fact__icon>.sstf-facts__emoji{font-size:var(--sstf-t-page)!important;line-height:1!important}
  .sstf-facts--4 .sstf-fact__label{font-size:var(--sstf-t-small)!important}
  .sstf-facts--4 .sstf-fact__value{font-size:var(--sstf-t-body)!important;line-height:1.3!important;}
  .sstf-facts--4 .sstf-fact__value .ss-order-number,.sstf-facts--4 .sstf-fact__value .ss-account-number{font-size:var(--sstf-t-card)!important}
  .sstf-facts--4 .sstf-fact__sub{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-order-toolbar>:is(button,a){display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important}
  .sstf-order-toolbar>:is(button,a)>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B17 — B2B work panels: payments (02-04/03-04), fulfilment (04-04), offer items (تصميم-كروت-المنتجات), action-bar summary. */
@layer sstf-approved{
  .finance-panel-heading{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important}
  .finance-panel-heading>.finance-panel-heading__icon{flex:none!important;width:calc(var(--sstf-touch) * 1.3)!important;height:calc(var(--sstf-touch) * 1.3)!important}
  .finance-panel-tabs{display:grid!important;grid-template-columns:1fr!important;gap:var(--sstf-space-2)!important}
  .finance-panel-tabs>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-3)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-2))!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border-radius:var(--sstf-radius-card)!important;text-align:start!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .finance-panel-tabs>button>.sstf-icon{flex:none!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important}
  .finance-panel-tabs>button>span{flex:1 1 auto!important}
  .finance-panel-tabs>button::after{content:"‹"!important;flex:none!important;font-size:var(--sstf-t-page)!important;line-height:1!important;opacity:.7!important}
  .finance-primary-action{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important}
  .finance-primary-action>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .finance-payment-card{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important}
  .finance-payment-card>.finance-payment-card__icon{flex:none!important;width:calc(var(--sstf-touch) * 1.1)!important;height:calc(var(--sstf-touch) * 1.1)!important}
  .finance-payment-card>div:first-of-type{flex:1 1 auto!important;min-width:0!important}
  .finance-payment-card>div:first-of-type>.finance-payment-card__reason{margin:0!important;width:0!important;min-width:100%!important} /* C1-9: the return reason line under the status; it takes the line width but never widens the column (the action buttons keep their room) */

  .sstf-card-actions__summary{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1) var(--sstf-space-4)!important}
  .sstf-card-actions__summary>*{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;position:static!important;white-space:nowrap!important}

  .sstf-offer-items{display:grid!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-4)!important}
  .sstf-offer-item{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .sstf-offer-item__top{display:flex!important;align-items:flex-start!important;gap:var(--sstf-space-3)!important}
  .sstf-offer-item__no{display:grid!important;place-items:center!important;flex:none!important;min-width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-status)!important;font-weight:800!important}
  .sstf-offer-item__info{display:grid!important;gap:var(--sstf-space-1)!important;flex:1 1 auto!important;min-width:0!important}
  .sstf-offer-item__info>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important;}
  .sstf-offer-item__info>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;}
  .sstf-offer-item__photo{flex:none!important;width:calc(var(--sstf-touch) * 1.8)!important;height:calc(var(--sstf-touch) * 1.8)!important;object-fit:cover!important;border-radius:var(--sstf-radius-field)!important}
  .sstf-offer-item .sstf-facts--4 .sstf-fact__value{font-size:var(--sstf-t-small)!important;white-space:normal!important}
  .sstf-offer-item .sstf-facts--4 .sstf-fact__value small{display:block!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important}
  .sstf-flow .pricing-product-card .pricing-card-status{position:static!important;align-self:center!important;justify-self:center!important;margin:var(--sstf-space-2) auto 0!important;width:auto!important;max-width:100%!important}
  .sstf-offer-items__note{display:flex!important;align-items:flex-start!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-offer-items__note>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B18 — price tiles never hide a value; pricing workspace facts with icons and the discount switch as one row of pills. */
@layer sstf-approved{
  .pricing-meta-iconed>div{display:grid!important;justify-items:center!important;align-content:start!important;gap:var(--sstf-space-1)!important;text-align:center!important}
  .pricing-meta-iconed>div>.pricing-meta-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  
  .pricing-product-workspace .pricing-choice-scope{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0!important;padding:0!important;border:0!important}
  .pricing-product-workspace .pricing-choice-scope>label{flex:1 1 0%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;min-height:var(--sstf-touch)!important;margin:0!important;padding:0 var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;font-weight:700!important;white-space:nowrap!important;font-size:var(--sstf-t-body)!important}
  .pricing-product-workspace .pricing-choice-scope>label:has(input:checked){background:rgb(var(--sstf-domain-rgb))!important;border-color:transparent!important;color:var(--sstf-white-a95)!important}
  .pricing-product-workspace .pricing-choice-scope>label>input{position:absolute!important;opacity:0!important;width:var(--sstf-hairline)!important;height:var(--sstf-hairline)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B19 — team accounts («حسابات الفريق»), monthly settlement («التسويات الشهرية»), fund transfer («تحويل بين الصناديق-3D»). */
@layer sstf-approved{
  .sstf-field-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;width:100%!important;grid-column:1/-1!important;flex:1 1 100%!important}
  .sstf-field-pair>label{min-width:0!important}
  section.sstf-form-section{margin:0 0 var(--sstf-space-4)!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  :is(.sstf-iconed-fold,.ops-action-fold)>summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  :is(.sstf-iconed-fold,.ops-action-fold)>summary>.sstf-icon{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .team-finance-directory{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  .team-account-count{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important;font-size:var(--sstf-t-card)!important}
  .team-account-count>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .team-account-cards{display:grid!important;grid-template-columns:1fr!important;gap:var(--sstf-space-3)!important}
  .team-account-card{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;align-items:center!important;column-gap:var(--sstf-space-3)!important;min-height:calc(var(--sstf-touch) * 1.7)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;text-align:start!important}
  .team-account-card>span:nth-child(2){display:grid!important;gap:0!important;min-width:0!important}
  .team-account-card>span:nth-child(2)>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important;}
  .team-account-card .team-account-balance{display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:var(--sstf-space-2)!important;text-align:start!important}
  .team-account-card .team-account-balance>.team-account-balance__icon{grid-row:1/span 2!important;width:calc(var(--sstf-touch) * 1.05)!important;height:calc(var(--sstf-touch) * 1.05)!important}
  .team-account-card .team-account-balance>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .team-account-card .team-account-balance>b{font-size:var(--sstf-t-body)!important;font-weight:800!important;white-space:nowrap!important}
  .team-account-go{display:block!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-top:var(--sstf-ring-2) solid var(--sstf-ink-arrow)!important;border-left:var(--sstf-ring-2) solid var(--sstf-ink-arrow)!important;transform:rotate(-45deg)!important}
  
  .team-finance-actions .ss-quick-action-scroll{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;overflow:visible!important}
  .team-finance-actions .ss-quick-action-scroll>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:100%!important;min-width:0!important;white-space:normal!important}
  .sstf-field-grid>:is(.account-fields,.sstf-field-pair,details){grid-column:1/-1!important}
  .account-fields:has(>.sstf-icon-field:only-child){display:block!important}
  .account-fields>.sstf-icon-field:only-child{width:100%!important}
  .team-finance-actions .ss-quick-action-scroll>button{height:auto!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;line-height:1.3!important;font-size:var(--sstf-t-body)!important}
  
  .team-finance-actions .ss-quick-action-scroll>button>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-facts.team-account-metrics{margin:var(--sstf-space-3) 0 0!important}
}

/* CENTRAL-DESIGN-UNIFICATION B20 — «حسابي»: the detail actions as feature tiles (icon on top, label); record review head. */
@layer sstf-approved{
  .employee-profile-details .profile-tiles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;overflow:visible!important;padding:var(--sstf-space-2) 0 0!important}
  .employee-profile-details .profile-tiles>button{display:grid!important;justify-items:center!important;align-content:center!important;gap:var(--sstf-space-1)!important;width:100%!important;min-width:0!important;height:auto!important;min-height:calc(var(--sstf-touch) * 2)!important;padding:var(--sstf-space-3) var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:none!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;white-space:normal!important;text-align:center!important}
  .employee-profile-details .profile-tiles>button>.profile-tile__icon{width:calc(var(--sstf-touch) * 0.95)!important;height:calc(var(--sstf-touch) * 0.95)!important}
  .sstf-detail-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:var(--sstf-space-3)!important;padding:var(--sstf-space-2) 0!important;border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-detail-row>div{display:grid!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  
  
  .sstf-detail-row>b{white-space:nowrap!important;font-size:var(--sstf-t-body)!important}
  
}

/* CENTRAL-DESIGN-UNIFICATION B21 — accounting home (fund cash-box icons) and the financial operation forms (info note). */
@layer sstf-approved{
  .finance-fund-main-card{position:relative!important;display:grid!important;justify-items:center!important;align-content:center!important;gap:var(--sstf-space-1)!important}
  .finance-fund-main-card>.finance-fund-main-card__icon{width:calc(var(--sstf-touch) * 1.2)!important;height:calc(var(--sstf-touch) * 1.2)!important}
  .finance-fund-main-card::before,.finance-fund-main-card::after{display:none!important}
  .sstf-info-note{display:flex!important;align-items:flex-start!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-status)!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-info-note>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  #finance-operation-choice .sstf-choice-item{display:grid!important;justify-items:center!important;gap:var(--sstf-space-1)!important;text-align:center!important}
  #finance-operation-choice .sstf-choice-item>.sstf-icon{width:calc(var(--sstf-touch) * 1.1)!important;height:calc(var(--sstf-touch) * 1.1)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B22 — receipts: the cash preview as one row of three facts (reference «مراجعة التحصيل»); the table stays for accounting.js. */
@layer sstf-approved{
  .sstf-fact__value{white-space:normal!important;min-width:0!important}
  table.account-totals[data-cash-preview]{display:block!important;width:100%!important;margin:var(--sstf-space-2) 0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;overflow:hidden!important}
  table.account-totals[data-cash-preview]>tbody{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  table.account-totals[data-cash-preview] tr{display:grid!important;align-content:start!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2)!important;text-align:center!important;border:0!important}
  table.account-totals[data-cash-preview] tr:not(:last-child){border-inline-end:1px solid var(--sstf-line-card)!important}
  table.account-totals[data-cash-preview] :is(th,td){display:block!important;padding:0!important;border:0!important;background:none!important;text-align:center!important}
  table.account-totals[data-cash-preview] th{font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important}
  table.account-totals[data-cash-preview] td{font-size:var(--sstf-t-body)!important;font-weight:800!important;direction:ltr!important}
}

/* CENTRAL-DESIGN-UNIFICATION B23 — accounting settings opening cards with the fund cash-box icon. */
@layer sstf-approved{
  .opening-admin-card{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;column-gap:var(--sstf-space-3)!important}
  .opening-admin-card>.opening-admin-card__icon{grid-row:span 3!important;width:calc(var(--sstf-touch) * 1.1)!important;height:calc(var(--sstf-touch) * 1.1)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B24 — reference «الهيدر»: the 3D header icons (messages, calculator), the counters as red pills on the icon's
   top corner, the «القائمة» drawer head (title kept on one line; the long back label moves to its own row, as the card heads do), and the
   result notices carry the approved alert / check icons (no new markup: the same .notice tones). */
@layer sstf-approved{
  .app-header .app-header__icon3d{display:block!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important}
  .app-header--rows :is(.chat-launch,.app-settings-open) .ss-message-count{top:calc(-1 * var(--sstf-space-1))!important;right:calc(-1 * var(--sstf-space-1))!important;left:auto!important;inset-inline-end:auto!important;display:inline-grid!important;place-items:center!important;min-width:var(--sstf-space-4)!important;height:var(--sstf-space-4)!important;padding:0 var(--sstf-space-1)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-danger-strong)!important;color:var(--sstf-surface)!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;box-shadow:0 0 0 var(--sstf-hairline) var(--sstf-surface)!important}
  .app-header--rows :is(.chat-launch,.app-settings-open) .ss-message-count:empty,.app-header--rows :is(.chat-launch,.app-settings-open) .ss-message-count[hidden]{display:none!important}
  #app-more.app-drawer>.drawer-heading{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  #app-more.app-drawer>.drawer-heading>strong{flex:1 0 auto!important;white-space:nowrap!important;font-size:var(--sstf-t-page)!important;line-height:1.3!important}
  #app-more.app-drawer>.drawer-heading>.sstf-card-back{flex:0 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  /* the stack dialogs without a card type (the drawer, the alert card «تنبيه») get the same fitHead mark; before, only dialog[data-sstf-card] heads
     reacted to it, so a long «العودة إلى …» label stayed cut. A marked head wraps: title + × on the first row, the back label on its own row. */
  dialog:not([data-sstf-card]):not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]{display:flex!important;flex-wrap:wrap!important;align-items:center!important;row-gap:var(--sstf-space-1)!important}
  dialog:not([data-sstf-card]):not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>:is(strong,h2,h3,.sstf-central-glass__title){flex:1 1 auto!important;min-width:0!important}
  dialog:not([data-sstf-card]):not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>.sstf-card-back{order:3!important;flex:1 1 100%!important;max-width:none!important;width:auto!important;justify-content:flex-start!important}
}

/* CENTRAL-DESIGN-UNIFICATION B25 — S&S sale page: the stock picker on the central card (its context line + selected count as the first body row;
   the count stays hidden in single-pick mode, as before in the old header). */
@layer sstf-approved{
  .ss-store-sheet .ss-store-context{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-2)!important;color:var(--sstf-ink-muted)!important}
  .ss-store-sheet .ss-store-context>strong{color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important}
  .ss-store-sheet[data-selection-mode=single] .ss-store-selected{display:none!important}
}

/* CENTRAL-DESIGN-UNIFICATION B26 — reference «تصميم-تفاصيل-الطلب»: the «الآن» card in its done state (nothing left to do) is green with the check
   icon at its end; the order access states are iconed info rows. */
@layer sstf-approved{
  .sstf-now-card[data-tone="done"]{border-color:var(--sstf-tone-done-strong)!important;background:var(--sstf-tone-done-bg)!important;color:var(--sstf-tone-done-fg)!important}
  .sstf-now-card[data-tone="done"] strong{color:var(--sstf-tone-done-fg)!important}
  .sstf-now-card>.sstf-now-card__icon{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;margin-inline-start:auto!important}
  /* the done card is informative, not disabled: full opacity (the idle rule dims it to .55); the «الآن:» label never breaks */
  .sstf-now-card[data-tone="done"]{opacity:1!important}
  .sstf-now-card>span{flex:none!important;white-space:nowrap!important}
}

/* CENTRAL-DESIGN-UNIFICATION B27 — the work page is the mother (owner 2026-10-03): page sections that open as child cards stay out of the page
   until their stage card opens them; inside the card a section is not a second frame (no card-in-card). */
@layer sstf-approved{
  [data-sstf-section-home][hidden],.ss-order-attention[hidden]{display:none!important}
  .sstf-section-card-body>:is([data-sstf-section-home],.ops-card,section){margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
  .sstf-section-card-body>*+*{margin-block-start:var(--sstf-space-3)!important}
  .sstf-section-card-body [hidden]{display:none!important}
}

/* CENTRAL-DESIGN-UNIFICATION B28 — reference «صندوق B2B»: «أدوات الصندوق» is a full-width button that opens the tools card. */
@layer sstf-approved{
  .fund-tools-open{display:flex!important;width:100%!important;justify-content:center!important;margin-block:var(--sstf-space-3)!important}
  .fund-attachments-search{display:grid!important;gap:var(--sstf-space-2)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B28 — owner 2026-10-03: no container inside a container; the cards sit directly on the page. Wrappers that only group
   cards (the sale overview, the stage-card rows, the order identity around its facts grid) draw no frame of their own. */
@layer sstf-approved{
  :is(.sstf-sale-overview,.sstf-stage-rows){border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;backdrop-filter:none!important}
  section:has(>.ss-order-identity){border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
  /* the save bar of a section opened in a child card is the last row of the card's form, not pinned over the content */
  /* section groups inside a child card (e.g. «إجراءات الطلب») are rows of the card, not a second frame; item cards (products) keep theirs */
  .sstf-section-card-body .ops-card{border:0!important;box-shadow:none!important;background:transparent!important;padding-inline:0!important}
  .sstf-section-card-body .ss-order-savebar{position:static!important;inset:auto!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin-block-start:var(--sstf-space-3)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B28 — owner 2026-10-03: the S&S stock picker toolbar inside its card never squeezes a field to a letter-wide column:
   search on its own row, brand + category, availability on its own row (the four-column desktop toolbar belonged to the old full-page sheet). */
@layer sstf-approved{
  .ss-store-sheet .ss-store-tools.compact{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .ss-store-sheet .ss-store-tools.compact>:is(.ss-search,.ss-available-check){grid-column:1/-1!important}
  .ss-store-sheet .ss-store-tools.compact>label{min-width:0!important}
}

/* CENTRAL-DESIGN-UNIFICATION B29 — owner 2026-10-03: the order head follows «ملخص-الطلب-1730» (Group 1): one card (the frame is the head, not the grid
   inside it), three columns on every width (row 1: order · customer · currency with their 3D icons; row 2: date · country · sale type/phone with round
   icon tiles), values wrap (never cut), the status chip with its stage icon inside the card. */
@layer sstf-approved{
  section.ss-order-identity.ss-cycle-header{border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(160deg,var(--sstf-surface),var(--sstf-tone-waiting-bg))!important;padding:var(--sstf-space-2)!important;box-shadow:none!important}
  .ss-order-identity .sstf-facts--3.ss-identity-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .ss-order-identity .sstf-facts--3.ss-identity-facts>.sstf-fact{border:0!important;align-items:center!important;min-width:0!important;padding:var(--sstf-space-2) var(--sstf-space-1)!important}
  .ss-order-identity .sstf-facts--3.ss-identity-facts>.sstf-fact:nth-child(-n+3){border-bottom:1px solid var(--sstf-line-card)!important}
  .ss-order-identity .sstf-facts--3.ss-identity-facts>.sstf-fact:not(:nth-child(3n)){border-inline-end:1px solid var(--sstf-line-card)!important}
  .ss-order-identity .ss-identity-facts>.sstf-fact:nth-child(-n+3) .sstf-fact__icon{width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;flex:none!important}
  .ss-order-identity .ss-identity-facts>.sstf-fact:nth-child(n+4) .sstf-fact__icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;flex:none!important;padding:var(--sstf-space-1)!important;border-radius:50%!important;background:var(--sstf-tone-waiting-bg)!important;object-fit:contain!important;box-sizing:border-box!important}
  .ss-order-identity .ss-identity-facts>.sstf-fact:nth-child(n+4) .sstf-fact__icon--html img{width:100%!important;height:100%!important;object-fit:contain!important}
  .ss-order-identity .ss-identity-facts .sstf-fact__text{min-width:0!important}
  .ss-order-identity .ss-identity-facts .sstf-fact__value,.ss-order-identity .ss-identity-facts .sstf-fact__value bdi{white-space:normal!important;overflow:visible!important;min-width:0!important}
  .ss-order-identity .ss-identity-facts .sstf-fact__value bdi{display:inline-block!important;max-width:100%!important;}
  .ss-order-identity .ss-identity-footer{justify-content:flex-end!important;flex-wrap:wrap!important}
  @media(max-width:480px){
    .ss-order-identity .ss-identity-facts>.sstf-fact{flex-direction:row!important;text-align:start!important;gap:var(--sstf-space-1)!important;padding-inline:var(--sstf-space-1)!important}
    .ss-order-identity .ss-identity-facts>.sstf-fact:nth-child(n+4) .sstf-fact__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
    .ss-order-identity .ss-identity-facts .sstf-fact__value{font-size:var(--sstf-t-small)!important}
    .ss-order-identity .ss-identity-facts>.sstf-fact:nth-child(-n+3) .sstf-fact__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
    .ss-order-identity .ss-identity-facts .sstf-fact__label{font-size:var(--sstf-t-small)!important}
  }
}

/* CENTRAL-DESIGN-UNIFICATION B29 — desktop: the S&S order page kept no room for the fixed side bar (a mobile-only hotfix padding applied at every
   width and out-ranked the side-bar reservation), so the bar covered the title and the order head. From 961px the reservation is restored. */
@layer sstf-approved{
  @media(min-width:961px){
    /* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */body.sstf-flow main:has(.ss-unified-workspace):has(.app-sidebar){padding-inline-start:calc(var(--ui-sidebar) + var(--sstf-page-x))!important}
  }
}

/* CENTRAL-DESIGN-UNIFICATION B30 — owner 2026-10-03 (card content 100% visible), findings of the card-integrity sweep:
   a wrapped head whose layout is flex (not the grid head) also gives «العودة إلى …» its own full line; a value-row label keeps its natural width (a long
   value wraps beside it instead of squeezing it into a column of letters). */
@layer sstf-approved{
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]{flex-wrap:wrap!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>.sstf-card-back{flex:1 1 100%!important;order:3!important;max-width:none!important;width:auto!important;min-width:0!important;justify-self:stretch!important;inline-size:auto!important}
  .sstf-value-row>.sstf-value-row__label{flex:0 0 auto!important;min-width:max-content!important}
  .sstf-value-row>:not(.sstf-value-row__label){min-width:0!important;}
  /* the currency list («JOD — دينار أردني») in a three-column accounting row takes two columns so its text is never cut */
  @media(min-width:700px){.account-fields:not(.sstf-field-grid)>label:has(>select[name$="currency"]){grid-column:span 2!important}}
}

/* CENTRAL-DESIGN-UNIFICATION B31 — reference «التحصيل» (Group 4) + owner container rule: each receipts section is ONE tinted box (review: danger tint,
   conversion: blue tint) holding its title row, its rows and its pager; the title has no box of its own; a row is one line (name · amount · action). */
@layer sstf-approved{
  .finance-action-section.finance-review-section{background:var(--sstf-tone-danger-bg)!important;border:1px solid var(--sstf-tone-danger-border)!important}
  .finance-action-section.finance-conversion-section{background:var(--sstf-tone-waiting-bg)!important;border:1px solid var(--sstf-tone-waiting-border)!important}
  .finance-action-section:is(.finance-review-section,.finance-conversion-section){border-radius:var(--sstf-radius-card)!important;padding:var(--sstf-space-2)!important;box-shadow:none!important;display:grid!important;gap:var(--sstf-space-2)!important}
  .finance-action-section:is(.finance-review-section,.finance-conversion-section)>.sstf-banner{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
  .finance-action-section .account-documents{display:grid!important;gap:var(--sstf-space-2)!important}
  .finance-action-section .account-pagination{margin:0!important;padding:0!important;min-height:0!important;border:0!important;justify-content:center!important}
  .finance-action-section .account-documents:empty{display:none!important}
  .finance-action-section .account-document-row{display:grid!important;grid-template-columns:minmax(50%,1fr) minmax(0,1fr)!important;align-items:center!important;gap:var(--sstf-space-2)!important;background:var(--sstf-surface)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;padding:var(--sstf-space-2)!important;margin:0!important}
  .finance-action-section .account-document-row>div:last-child{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important;justify-content:flex-end!important}
  .finance-action-section .account-document-row :is(strong,p){min-width:0!important;word-break:normal!important;margin:0!important}
}

/* CENTRAL-DESIGN-UNIFICATION B32 — owner decision C-12 (2026-10-03): the stage cards follow «تصميم-تفاصيل-الطلب»: two per row, no arrows; each card is
   horizontal — the name with its badge (and the optional line) first, the stage icon beside it, the open chevron at the end. A not-started stage keeps
   its full design (not dimmed) with the neutral frame and the «لم تبدأ» badge. Scoped to the stage rows (the supplier card shares the classes). */
@layer sstf-approved{
  .sstf-stage-rows .sstf-stage-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;align-items:stretch!important}
  .sstf-stage-rows .sstf-stage-card{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:start!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-4))!important;height:100%!important;box-sizing:border-box!important}
  .sstf-stage-rows .sstf-stage-card__text{order:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:var(--sstf-space-1)!important;flex:1 1 auto!important;min-width:0!important}
  .sstf-stage-rows .sstf-stage-card__icon{order:1!important;flex:none!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important}
  .sstf-stage-rows .sstf-stage-card__chevron{order:2!important;flex:none!important;color:var(--sstf-ink-arrow)!important;font-size:var(--sstf-t-card)!important;line-height:1!important}
  .sstf-stage-rows .sstf-stage-card__name{width:auto!important;max-width:100%!important;text-align:start!important;white-space:normal!important;overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important} /* FLYCARGO-FIX-1 (OQ-X2-02): whole words (was the break-word rule) */
  .sstf-stage-rows .sstf-stage-card__badge{align-self:flex-start!important}
  /* FLYCARGO-FIX-1 (owner OQ-X2-02): only a card with a word wider than its text column (central-system.js data-fit-stack) — the icon above, the
     chevron at the end of the same first row, the text the card's whole width below; the other cards keep the icon beside the text (C-12). */
  .sstf-stage-rows .sstf-stage-card[data-fit-stack]{flex-wrap:wrap!important;align-items:center!important;row-gap:var(--sstf-space-1)!important}
  .sstf-stage-rows .sstf-stage-card[data-fit-stack] .sstf-stage-card__icon{order:0!important}
  .sstf-stage-rows .sstf-stage-card[data-fit-stack] .sstf-stage-card__chevron{order:1!important;margin-inline-start:auto!important}
  .sstf-stage-rows .sstf-stage-card[data-fit-stack] .sstf-stage-card__text{order:2!important;flex:1 0 100%!important}
  .sstf-stage-rows .sstf-stage-card__line{text-align:start!important}
  .sstf-stage-rows .sstf-stage-card[data-state="not_started"]{opacity:1!important;background:var(--sstf-surface)!important;border-color:var(--sstf-tone-neutral-strong)!important}
  .sstf-stage-rows .sstf-stage-card[data-state="not_started"] .sstf-stage-card__badge{background:var(--sstf-tone-neutral-bg)!important;color:var(--sstf-tone-neutral-fg)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B33 — owner 2026-10-03: the ↻ beside the order currency is its change button (reference «تصميم-تفاصيل-الطلب»). */
@layer sstf-approved{
  .sstf-fact__action{display:inline-grid!important;place-items:center!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;min-width:0!important;min-height:0!important;padding:0!important;margin-inline-end:var(--sstf-space-1)!important;border:0!important;background:transparent!important;box-shadow:none!important;vertical-align:middle!important;cursor:pointer!important}
  .sstf-fact__action>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-fact__action:focus-visible{outline:var(--sstf-ring-2) solid rgb(var(--sstf-domain-rgb))!important;outline-offset:var(--sstf-ring-offset-2)!important;border-radius:50%!important}
}

/* CENTRAL-DESIGN-UNIFICATION B33 — owner decision C-13 (2026-10-03): ONE central product card everywhere (reference «تصميم-كروت-المنتجات»), the photo is a
   column the full height of the card with no margins (owner), the content beside it: name, code / brand, chips, the metrics row (icon · label · value),
   then badges, pick check and buttons. Class hooks that other code depends on are kept (.inventory-product-card-media / -content, .ss-card-menu,
   .ss-product-info, .inventory-store-prices, .ss-product-select, .is-selected). The :is(#…) prefix only lifts specificity over older id-scoped rules. */
@layer sstf-approved{
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card){container:sstf-pcard / inline-size!important;counter-increment:sstf-pcard!important;display:grid!important;grid-template-columns:33.5% minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:stretch!important;gap:max(var(--sstf-space-2),2cqw)!important;padding:max(var(--sstf-space-2),1.4cqw)!important;overflow:hidden!important;min-height:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:max(var(--sstf-radius-card),2.2cqw)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;text-align:start!important;width:auto!important;max-width:none!important;position:relative!important} /* 2B: the legacy root (L4 PHP import card) wears the central card frame (2477) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-media{grid-column:1!important;grid-row:1 / span 6!important;position:relative!important;display:grid!important;place-items:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:max(var(--sstf-radius-field),1.8cqw)!important;height:auto!important;min-height:0!important;aspect-ratio:505 / 460!important;background:radial-gradient(110% 85% at 50% 45%,var(--sstf-surface-segmented) 0%,var(--sstf-tone-neutral-border) 100%)!important;overflow:hidden!important} /* 2B: the central photo treatment (2481) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-media>:is(img,.inventory-product-card-image){position:absolute!important;inset:0!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important;padding:4%!important;border-radius:0!important;background:transparent!important} /* 2B: whole product, contain (2482) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-media>.inventory-no-image{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;margin:0!important;border:0!important;border-radius:0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;background:transparent!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:max(calc(var(--sstf-space-1) / 2),.3cqw)!important;padding:0!important;min-width:0!important;text-align:start!important} /* 2B: the central side/names stack (2493-2494) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content :is(.ss-card-name,.inventory-product-card-title strong,h3){display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;color:var(--sstf-ink)!important;font-size:max(var(--sstf-t-body),2.65cqw)!important;font-weight:800!important;line-height:1.2!important;text-align:start!important;overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important} /* 2B: the central title contract (2495) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content>small{margin:0!important;color:var(--sstf-ink-muted)!important;font-size:max(calc(var(--sstf-t-small) * .885),1.75cqw)!important;line-height:1.3!important;text-align:start!important} /* 2B: the central code/meta line (2496) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content>b{align-self:flex-start!important;display:grid!important;justify-items:center!important;gap:max(calc(var(--sstf-space-1) / 4),.3cqw)!important;margin-top:auto!important;padding:max(calc(var(--sstf-space-1) * 1.25),1cqw) max(var(--sstf-space-2),1.4cqw)!important;border:1px solid var(--sstf-tone-progress-border)!important;border-radius:max(calc(var(--sstf-radius-field) * .83),1.3cqw)!important;background:var(--sstf-tone-progress-stage-bg)!important;color:var(--sstf-ink)!important;font-size:max(var(--sstf-t-small),2.6cqw)!important;font-weight:800!important;line-height:1.25!important;text-align:center!important;white-space:nowrap!important;unicode-bidi:isolate!important} /* 2B: the L4 wholesale price (<b>… JOD <small>جملة</small></b>) as the central gold fact tile (2513/2516/2521) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content>b>small{color:var(--sstf-ink-soft)!important;font-size:max(calc(var(--sstf-t-small) * .77),1.7cqw)!important;font-weight:700!important;line-height:1.2!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .inventory-store-prices{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(calc(var(--sstf-touch) * 1.4),1fr))!important;gap:0!important;margin:0!important;padding:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-segmented)!important;overflow:hidden!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .inventory-store-prices>span{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2) var(--sstf-space-1)!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:center!important;min-width:0!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .inventory-store-prices>span+span{border-inline-start:1px solid var(--sstf-line-card)!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .inventory-store-prices>span>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;white-space:normal!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .inventory-store-prices>span>b{font-size:var(--sstf-t-body)!important;font-weight:800!important;white-space:pre-line!important;direction:ltr!important;unicode-bidi:isolate!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .inventory-store-prices>span>.inventory-store-prices__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>:is(.ss-product-select,.inventory-import-check){position:absolute!important;top:var(--sstf-space-1)!important;inset-inline-start:var(--sstf-space-1)!important;z-index:3!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-link{position:absolute!important;inset:0!important;z-index:1!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>:is(.inventory-quick-actions,.ss-card-menu){position:absolute!important;top:var(--sstf-space-1)!important;inset-inline-start:var(--sstf-space-1)!important;z-index:3!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-incomplete-badge{position:absolute!important;bottom:var(--sstf-space-1)!important;inset-inline-start:var(--sstf-space-1)!important;z-index:3!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card).is-selected{border-color:rgb(var(--sstf-domain-rgb))!important;box-shadow:0 0 0 var(--sstf-ring-2) rgba(var(--sstf-domain-rgb),.25)!important}
  /* anything a screen adds inside the card after the content (review controls, supplier amounts …) sits in the content column, under the content */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>:not(.inventory-product-card-media,.inventory-product-card-content,.ss-product-select,.inventory-import-check,[data-import-item],.inventory-product-card-link,.ss-card-menu,.inventory-quick-actions,.inventory-incomplete-badge,dialog){grid-column:2!important;min-width:0!important;padding-inline:var(--sstf-space-3)!important;padding-block-end:var(--sstf-space-2)!important}
  /* a card number (offer summary) is a chip at the start of the content, not a full-width bar */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content>.sstf-offer-item__no{align-self:flex-start!important}
  /* the stocktake card keeps its count state on the border (counted / needs a recount) */
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card).stocktake-product-card.is-counted{border-color:var(--sstf-tone-done-border)!important}
  :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card).stocktake-product-card.is-recount{border-color:var(--sstf-tone-danger-border)!important}
  /* the stocktake grid is a <section>: it holds the cards and is not a frame of its own (owner container rule) */
  section.stocktake-product-grid{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
  /* owner 2026-10-03: the ⋯ is never on the photo — bare dots (no tile) a little larger at the card's opposite top corner; the name keeps room for it */
  body :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) :is(.ss-card-menu,.inventory-quick-actions):not([hidden]){position:absolute!important;top:var(--sstf-space-1)!important;bottom:auto!important;inset-inline-start:auto!important;inset-inline-end:var(--sstf-space-1)!important;z-index:3!important;display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-page)!important;font-weight:900!important;line-height:1!important;letter-spacing:0!important}
  body :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card):has(>:is(.ss-card-menu,.inventory-quick-actions):not([hidden]))>.inventory-product-card-content>:is(.ss-card-name,h3,.inventory-product-card-title){padding-inline-end:var(--sstf-touch)!important}
  /* owner 2026-10-03: the ⓘ on a matte glass tile, the i thicker and clearer */
  body :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .ss-product-info{top:var(--sstf-space-1)!important;bottom:auto!important;inset-inline-start:auto!important;inset-inline-end:var(--sstf-space-1)!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;min-width:0!important;min-height:0!important;padding:0!important;border:1px solid var(--sstf-white-a88)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-white-a75)!important;backdrop-filter:blur(var(--sstf-blur-12)) saturate(1.2)!important;-webkit-backdrop-filter:blur(var(--sstf-blur-12)) saturate(1.2)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important}
  body :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card) .ss-product-info svg{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;stroke-width:3.4!important}
  /* the grids holding product cards: one card per row (the card is horizontal) */
  :is(.inventory-products-list,.inventory-import-grid,.stocktake-product-grid,.ss-order-product-grid,#ss-store-grid,#pc-picker-grid,.ss-staff-supplier-grid,#supplier-products,#pricing-products):has(>.inventory-product-card,>.ss-supplier-alternative-group){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-2)!important}
  /* 2B L4: the legacy warehouse-import card is its own visible shell AND its own container, so its own cqw measures (radius, padding, gap) resolve against its parent — the one-column import grid becomes that container, so they follow the card width exactly like .sstf-pcard__in inside .sstf-pcard (same central declarations at line 1602) */
  
}

/* CENTRAL-DESIGN-UNIFICATION B34 — owner manual-test decisions (2026-10-03 ~21:40, verbatim in ORIGINAL-COMMAND.md). */
@layer sstf-approved{
  /* defect: app-ui.css (baseline) makes the card content click-through for the card link; a control placed in the content must still take the click */
  body :is(#sstf-pc,.inventory-product-card):is(#sstf-pc2,.inventory-product-card)>.inventory-product-card-content :is(button,a,input,select,textarea,label,summary){pointer-events:auto!important}
  /* the page-head tools: icon-only, one row from the start of the line under the title (never pushed to the far end, never at the page bottom) */
  :is(.sstf-order-heading,.ss-page-heading):has(>.sstf-head-tools){display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;row-gap:var(--sstf-space-2)!important}
  :is(.sstf-order-heading,.ss-page-heading)>.sstf-head-tools{flex:1 0 100%!important;order:9!important}
  .sstf-head-tools{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;margin:0!important}
  :is(.sstf-head-tool,.sstf-head-tools>.ss-card-menu){display:inline-grid!important;place-items:center!important;flex:none!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid var(--sstf-white-a88)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-white-a75)!important;-webkit-backdrop-filter:blur(var(--sstf-blur-12))!important;backdrop-filter:blur(var(--sstf-blur-12))!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-page)!important;font-weight:900!important;line-height:1!important;text-decoration:none!important}
  .sstf-head-tool>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;margin:0!important}
  .sstf-head-tools>[hidden]{display:none!important}
  /* B36: the one action that resolves an empty state sits under its text */
  .sstf-central-empty__action{display:flex!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-2)!important;flex-basis:100%!important}
  .sstf-central-empty--row:has(>.sstf-central-empty__action){flex-wrap:wrap!important}
  /* B37 F2: logout head tool — while its icon is pending the label is shown (text fallback) instead of an empty dashed slot */
  .sstf-head-tool.sstf-head-tool--labelled{display:inline-flex!important;width:auto!important;gap:var(--sstf-space-1)!important;padding:0 var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;white-space:nowrap!important}
  .sstf-head-tool--labelled>.sstf-icon--pending{display:none!important}
  form:has(>.sstf-logout-tool){display:inline-flex!important;margin:0!important}
  .sstf-central-empty--row>.sstf-central-empty__action{margin-top:0!important}
  /* the work-area tools row keeps no empty strip once its head tools moved up (checker B34 F8): only real controls keep it */
  .sstf-order-tools:not(:has(:is(button,a,select,input):not([hidden]):not(dialog *))){display:none!important}
  /* owner 2026-10-03: section tiles two per row on a phone; on a wide page as many as fit (one tile about five touch targets wide), not two stretched tiles */
  @media(min-width:961px){.sstf-section-cards:has(>.sstf-section-card--tile){grid-template-columns:repeat(auto-fill,minmax(calc(var(--sstf-touch) * 5),1fr))!important}}
}

/* CENTRAL-DESIGN-UNIFICATION B38 — product wizard step bodies per the approved wizard references (batch-004): fields, photo box, brand list
 * and add-brand panel, size cells with pale steppers, stacked price cards with their 3D icons, review hero with a chip grid, the close
 * confirmation and the «السابق» button. CSS on the existing markup only: ids, handlers and wording unchanged; the size-grid geometry stays
 * in the protected sstf-wizard-contract layer. */
@layer sstf-approved{
  #wizard .wizard-body [data-question] :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){min-height:var(--sstf-touch)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;font-size:var(--sstf-t-card)!important}
  #wizard :is([data-question="type"],[data-question="brand"],[data-question="name"],[data-question="color"],[data-question="sizes"],[data-question="pricing"],[data-question="other"])>.title::before{content:""!important;display:block!important;width:calc(var(--sstf-touch) + var(--sstf-space-2))!important;height:calc(var(--sstf-touch) + var(--sstf-space-2))!important;margin:0 auto var(--sstf-space-2)!important;background:url("../icons/ref/256/brand-blue-tag-3d.webp") center/contain no-repeat!important}
  #wizard [data-question="other"]>.title::before{background-image:url("../icons/ref/256/wizard-clipboard.webp")!important}
  #wizard [data-question="type"]>.title::before{background-image:url("../icons/ref/256/wizard-purple-box.webp")!important}
  #wizard [data-question="sizes"]>.title::before{background-image:url("../icons/ref/256/ruler-blue.webp")!important}
  #wizard [data-question="pricing"]>.title::before{background-image:url("../icons/ref/256/wizard-price-coins.webp")!important}
  #wizard .wizard-foot #previous-step{border:1px solid var(--sstf-line-card)!important;background:var(--sstf-surface)!important;color:var(--sstf-tone-waiting-strong)!important}
  #wizard .upload-box{position:relative!important;padding:var(--sstf-space-2)!important;border:1px dashed var(--sstf-line-special)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  #wizard .upload-box>.image-preview:not([hidden]){display:block!important;width:100%!important;max-height:none!important;aspect-ratio:1.11!important;object-fit:cover!important;border-radius:var(--sstf-radius-card)!important}
  #wizard .upload-box>.wizard-image-zoom:not([hidden]){position:absolute!important;inset-block-start:calc(var(--sstf-space-2) * 2)!important;inset-inline-end:calc(var(--sstf-space-2) * 2)!important;z-index:1!important;display:grid!important;place-items:center!important;width:var(--sstf-touch-min)!important;height:var(--sstf-touch-min)!important;min-width:0!important;padding:0!important;border:1px solid var(--sstf-white-a88)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-white-a75)!important;-webkit-backdrop-filter:blur(var(--sstf-blur-12))!important;backdrop-filter:blur(var(--sstf-blur-12))!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important}
  #wizard .upload-box>.image-upload-label:not([hidden]){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;height:auto!important;padding:0 var(--sstf-space-3)!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:64%!important;min-height:var(--sstf-touch)!important;margin:var(--sstf-space-2) auto 0!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-tone-waiting-strong)!important;font-weight:700!important}
  #wizard .upload-box>.image-upload-label::before{content:""!important;flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;background:url("../icons/ref/256/wizard-gallery.webp") center/contain no-repeat!important}
  #wizard #brand-results:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-1)!important;max-height:calc(var(--sstf-touch) * 6)!important;overflow:auto!important}
  #wizard #brand-results>button:not([hidden]){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:600!important;text-align:start!important}
  #wizard #brand-results>button::before{content:""!important;flex:none!important;width:var(--sstf-space-4)!important;height:var(--sstf-space-4)!important;border:var(--sstf-ring-2) solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important}
  #wizard #brand-picker>summary[hidden]{display:none!important}
  #wizard #brand-picker>.inline:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-tone-waiting-stage-bg)!important}
  #wizard #brand-picker #use-brand{border:0!important;background:var(--sstf-tone-waiting-fg)!important;color:var(--sstf-surface)!important;font-weight:800!important}
  #wizard #extra-size-picker:not([hidden]){display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:var(--sstf-touch)!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-waiting-fg)!important;color:var(--sstf-surface)!important;font-weight:800!important}
  #wizard #extra-size-picker>.extra-size-icon{border:0!important;background:none!important;color:inherit!important}
  #wizard #sizes .ss-size-stepper{gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-surface-idle))!important}
  #wizard #sizes .ss-size-stepper>strong:not([hidden]){display:grid!important;place-items:center!important;width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;margin-inline:auto!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-weight:800!important}
  #wizard #sizes .ss-size-stepper>div{display:grid!important;grid-template-columns:minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr) minmax(24px,1.1fr) minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr)!important;align-items:center!important;gap:var(--sstf-space-1)!important;width:100%!important;max-width:none!important}
  @media(min-width:961px){#wizard #sizes .ss-size-stepper>div{grid-template-columns:minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr) minmax(24px,1.5fr) minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr)!important}}
  #wizard #sizes .ss-size-stepper button[data-delta]{width:auto!important;min-width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;max-width:none!important;max-height:none!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;min-height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-tone-waiting-strong)!important;font-weight:800!important}
  #wizard #sizes .ss-size-stepper input{width:100%!important;min-width:0!important;max-width:none!important;height:calc(var(--sstf-touch) * .75)!important;min-height:0!important;padding:0!important;text-align:center!important}
  #wizard #sizes .ss-modal-sizes>.ss-size-stepper:only-child{grid-column:1 / -1!important;justify-self:center!important;width:min(100%,calc(var(--sstf-touch) * 6))!important}
  #wizard #sizes .ss-modal-sizes>.ss-size-stepper:only-child>strong{width:auto!important;min-width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;padding-inline:var(--sstf-space-3)!important;white-space:nowrap!important}
  #wizard .quantity-summary{padding-top:var(--sstf-space-3)!important;border-top:1px solid var(--sstf-line-card)!important;text-align:start!important}
  #wizard .quantity-summary>#product-total{font-size:calc(var(--sstf-t-page) * 1.3)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  #wizard .inventory-wizard-prices:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-3)!important;padding:0!important;border:0!important;background:none!important}
  #wizard .inventory-wizard-prices>label:not([hidden]){display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;column-gap:var(--sstf-space-3)!important;row-gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-surface-idle))!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
  #wizard .inventory-wizard-prices>label::before{content:""!important;grid-row:1!important;width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-waiting-stage-bg) url("../icons/ref/256/wizard-blue-cart.webp") center/76% no-repeat!important}
  #wizard .inventory-wizard-prices>label:nth-child(2)::before{background-image:url("../icons/ref/256/wizard-bag.webp")!important}
  #wizard .inventory-wizard-prices>label:nth-child(3)::before{background-image:url("../icons/ref/256/wizard-blue-coins.webp")!important}
  #wizard .inventory-wizard-prices>label>input{grid-column:1 / -1!important;direction:ltr!important;text-align:left!important}
  #wizard #product-summary:not([hidden]):has(>img){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)!important;align-items:start!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;text-align:start!important}
  #wizard #product-summary:has(>img)>img{grid-column:1!important;grid-row:1 / span 4!important;width:100%!important;max-height:none!important;aspect-ratio:1!important;object-fit:contain!important;border-radius:var(--sstf-radius-field)!important}
  #wizard #product-summary:has(>img)>:not(img){grid-column:2!important;margin:0!important}
  #wizard #product-summary>div:has(>.size-chip){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:var(--sstf-space-1)!important;width:100%!important;justify-self:stretch!important}
  .sstf-wizard-close-confirm{border-radius:var(--sstf-radius-card)!important;background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-tone-waiting-stage-bg))!important}
  .sstf-wizard-close-confirm [data-close-choice="save"]{border:0!important;background:var(--sstf-tone-waiting-fg)!important;color:var(--sstf-surface)!important;font-weight:800!important}
  /* 2C F2: the wizard close card uses the central confirmation card shell (dialog.sstf-confirm-card) and keeps its accepted single column of three
   * full-width choices (the former unlayered rule above, line 211) — the central 48px touch buttons come from .sstf-confirm-card__actions>button */
  .sstf-wizard-close-confirm .sstf-confirm-card__actions{grid-template-columns:minmax(0,1fr)!important}
}

/* CENTRAL-DESIGN-UNIFICATION B39 — small polish from the B33 / B38 records: the wizard close card keeps one primary («احفظ كمسودة»), «متابعة
 * التعديل» is the secondary (white, blue text). (The currency card is rendered outside the order tools row since B39 cycle 1 — template, not CSS.) */
@layer sstf-approved{
  /* B39 checker 2 F1: the currency card styled by its own identity (it no longer sits inside the order tools row): the B33 shape — currency
   * and reason one under the other, each full width, the send button full width */
  #order-currency-dialog form>.fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-3)!important;width:100%!important}
  
  
  #order-currency-dialog form>.sstf-send-button{width:100%!important;margin-top:var(--sstf-space-3)!important}
  .sstf-wizard-close-confirm [data-close-choice="resume"]{border:1px solid var(--sstf-line-card)!important;background:var(--sstf-surface)!important;background-image:none!important;color:var(--sstf-tone-waiting-strong)!important;font-weight:800!important}
}
/* C-02 (owner 2026-10-05): fund movements table — Group 2 «كرت حركات الصندوق» table and icons on the Group 3 fund page; central tokens only */
.sstf-ledger-title{display:flex;align-items:center;gap:var(--sstf-space-2)}
.sstf-ledger-title__icon{width:calc(var(--sstf-space-6) + var(--sstf-space-2));height:calc(var(--sstf-space-6) + var(--sstf-space-2));flex:none}
.sstf-ledger{overflow-x:auto}
.sstf-ledger__table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid var(--sstf-tone-waiting-border);border-radius:var(--sstf-radius-card);overflow:hidden;background:var(--sstf-surface)}
.sstf-ledger__table th{padding:var(--sstf-space-2) var(--sstf-space-1);background:var(--sstf-tone-waiting-bg);color:var(--sstf-tone-waiting-fg);font-weight:500;font-size:var(--sstf-t-body);text-align:center;border-inline-start:1px solid var(--sstf-tone-waiting-border)}
.sstf-ledger__table th:first-child{border-inline-start:0}
.sstf-ledger__table th>span{vertical-align:middle}
.sstf-ledger__head-icon{display:inline-block;width:var(--sstf-icon-md);height:var(--sstf-icon-md);vertical-align:middle;margin-inline-end:var(--sstf-space-1)}
.sstf-ledger__table td{padding:var(--sstf-space-2) var(--sstf-space-1);text-align:center;font-size:var(--sstf-t-body);border-top:1px solid var(--sstf-tone-waiting-border);border-inline-start:1px solid var(--sstf-tone-waiting-border);}
.sstf-ledger__table td:first-child{border-inline-start:0}
.sstf-ledger__mark{display:inline-flex;align-items:center;justify-content:center;width:calc(var(--sstf-space-5) + var(--sstf-space-1));height:calc(var(--sstf-space-5) + var(--sstf-space-1));border-radius:50%;vertical-align:middle;margin-inline-end:var(--sstf-space-1)}
.sstf-ledger__mark .sstf-icon{width:var(--sstf-space-4);height:var(--sstf-space-4)}
.sstf-ledger__mark--in{background:var(--sstf-tone-done-bg)}
.sstf-ledger__mark--out{background:var(--sstf-tone-danger-bg)}
.sstf-ledger__mark--out .sstf-icon{transform:rotate(180deg)}
.sstf-ledger__mark--opening{background:var(--sstf-tone-waiting-bg)}
.sstf-ledger__mark--opening i{display:block;width:var(--sstf-space-2);height:var(--sstf-space-2);border-radius:50%;background:var(--sstf-tone-waiting-strong)}
.sstf-ledger__amount{display:block;padding:var(--sstf-space-1);border-radius:var(--sstf-radius-field);font-weight:700}
.sstf-ledger__amount>span{display:block}
.sstf-ledger__amount--in{background:var(--sstf-tone-done-bg);color:var(--sstf-tone-done-fg)}
.sstf-ledger__amount--out{background:var(--sstf-tone-danger-bg);color:var(--sstf-tone-danger-fg)}
.sstf-ledger__empty{color:var(--sstf-ink-muted)}
#sstf-chat-overlay .chat-overlay-titlebar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border-bottom:1px solid var(--sstf-tone-waiting-border)!important}
#sstf-chat-overlay .chat-back-threads{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;font-weight:500!important}
#sstf-chat-overlay .chat-back-threads__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
#sstf-chat-overlay [data-chat-title]{font-weight:700!important;color:var(--sstf-ink)!important}
#sstf-chat-overlay .chat-overlay-placeholder{display:grid!important;justify-items:center!important;align-content:center!important;gap:var(--sstf-space-2)!important;min-height:calc(var(--sstf-space-6) * 5)!important;color:var(--sstf-ink-muted)!important}
#sstf-chat-overlay .chat-overlay-empty__art{width:calc(var(--sstf-space-6) * 3)!important;height:calc(var(--sstf-space-6) * 3)!important}
#sstf-chat-overlay .chat-overlay-form{border-top:1px solid var(--sstf-tone-waiting-border)!important;padding:var(--sstf-space-2) var(--sstf-space-3) var(--sstf-space-3)!important}
#sstf-chat-overlay .chat-compose{display:block!important}
#sstf-chat-overlay .chat-compose textarea{width:100%!important;border-radius:var(--sstf-radius-field)!important}
#sstf-chat-overlay .chat-send-row{display:flex!important;direction:ltr!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-2)!important}
#sstf-chat-overlay .chat-send{direction:rtl!important;display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;background:var(--sstf-tone-waiting-fg)!important;color:var(--sstf-surface)!important;border-radius:var(--sstf-radius-field)!important}
#sstf-chat-overlay .chat-send__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
#sstf-chat-overlay .chat-attach{min-width:calc(var(--sstf-space-6) + var(--sstf-space-2))!important;border-radius:var(--sstf-radius-field)!important;font-size:var(--sstf-t-card)!important;color:var(--sstf-tone-waiting-fg)!important}
#sstf-chat-overlay .chat-back-threads,#sstf-chat-overlay .chat-attach{background-image:none!important;box-shadow:none!important}
#sstf-chat-overlay .chat-attach{background:var(--sstf-surface)!important;border:1px solid var(--sstf-tone-waiting-border)!important}
#sstf-chat-overlay .chat-overlay-empty{display:none}
#sstf-chat-overlay .chat-overlay-messages:empty+.chat-overlay-empty{display:grid;place-items:center;min-height:calc(var(--sstf-space-6) * 5)}
/* BATCH-B ACC (merged by the main session; appended unlayered — every rule carries !important as in the layer) — domain ACC (staff accounting). Append to assets/css/central-system.css inside the existing @layer sstf-approved block
 * (after the «sstf-offer-items» rules, ~line 1334). Tokens only (var(--sstf-*)); 1px borders and 0 are the only literals.
 * Every selector targets markup written by the ACC Batch B source edits (see ACC-REPORT.md). */

/* ACC-028 — fund «يحتاج متابعة»: banner + value list stacked, no extra frame (the legacy .fund-attention box is no longer rendered) */
.sstf-fund-attention{display:grid!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-4)!important}

/* ACC-058 — approval record: banner, signature fact, info note stacked; the signature keeps its own size inside the fact value */
.account-approval-record{display:grid!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-4) 0!important}

/* ACC-066 / ACC-070 — the action rows under the payments table and the settlement list */

/* ACC-088 — «تم إدخاله إلى الصندوق»: heading, fact grid and the iconed action stacked without the legacy box */

/* ACC-099 — customer balance card head: the customer fact takes the row, the ⋯ menu (accounting.js) stays at the end */
.customer-balance-head{display:flex!important;align-items:flex-start!important;gap:var(--sstf-space-2)!important}
.customer-balance-head>.sstf-facts{flex:1 1 auto!important;min-width:0!important;margin:0!important}
.customer-balance-card>.sstf-values,.customer-balance-card>.sstf-disclosure{margin-top:var(--sstf-space-2)!important}

/* ACC-013 — print head (print only). Place this block at top level next to the existing «@media print» block of central-system.css (~line 880),
 * not inside a layer. Central spacing and line tokens; the print type sizes and the logo size stay as they are (OA-67 / Constitution 3.4). */
@media print{
  
  
}
/* BATCH-B ADM (merged by the main session, appended unlayered) */
/* PROPOSAL — DOMAIN ADM (TradeFlow pages inside wp-admin). Merge target: assets/css/central-system.css (end of file, own block).
   Scope: main.sstf-admin-central — printed only by templates/admin/*.php, and central-system.css itself is enqueued only on TradeFlow
   admin screens (DashboardController::assets returns early for every other hook), so WordPress core screens are untouched.
   Tokens only (var(--sstf-*)); no raw colour; px only as 1px borders. Every display rule on an element that settings.js / the templates
   toggle with [hidden] carries :not([hidden]) — the app-ui [hidden] rule is unlayered and a layered !important would otherwise win. */
@layer sstf-approved{
  /* ---- page rhythm (ADM-003/004/010/012): one gap between the central blocks under the shell header ---- */
  .sstf-admin-central>:is(.sstf-banner,.sstf-facts,.sstf-section-cards,.sstf-admin-readiness,.sstf-admin-order-search,.sstf-admin-order-list,.sstf-admin-reset,.sstf-settings-current,.notice){margin:0 0 var(--sstf-space-4)!important}

  /* ---- one surface level (no box in a box): the settings form and the tab panels are layout only, the card is the surface ---- */
  .sstf-admin-central .sstf-settings-form{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .sstf-admin-central .sstf-settings-panel:not([hidden]){display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  .sstf-admin-central :is(.sstf-settings-card,.sstf-admin-reset,.sstf-admin-readiness){box-sizing:border-box!important;margin:0!important;padding:var(--sstf-card-pad)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:0 var(--sstf-ring-2) var(--sstf-space-2) var(--sstf-shade-142846-a06)!important;scroll-margin-top:var(--sstf-header-h)!important}
  .sstf-admin-central .sstf-settings-card__banner{margin:0 0 var(--sstf-space-2)!important}
  .sstf-admin-central .sstf-settings-panel__banner{margin:0!important}

  /* ---- breadcrumb (settings.js writes its span / strong) ---- */
  .sstf-admin-central .sstf-settings-current{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
  .sstf-admin-central .sstf-settings-current strong{font-weight:800!important;color:var(--sstf-ink)!important}

  /* ---- fields (ADM-014..026, team forms): template rows and Operations\Settings::render_group rows share `.sstf-fields > label` ---- */
  .sstf-admin-central .sstf-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-2) 0 0!important}
  .sstf-admin-central .sstf-fields>:is(label,.sstf-logo-field){display:grid!important;align-content:start!important;gap:var(--sstf-space-2)!important;min-width:0!important;margin:0!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  .sstf-admin-central .sstf-fields small{font-size:var(--sstf-t-small)!important;font-weight:400!important;line-height:1.45!important;color:var(--sstf-ink-muted)!important}
  .sstf-admin-central :is(.sstf-fields,.sstf-central-field,.sstf-disclosure__body,.sstf-team-editor) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=file]),select:not([multiple])){box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:var(--sstf-control-h)!important;min-height:var(--sstf-control-h)!important;margin:0!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;background-color:var(--sstf-surface)!important;box-shadow:none!important;font-size:var(--sstf-t-card)!important;color:var(--sstf-ink)!important}
  .sstf-admin-central :is(.sstf-fields,.sstf-central-field,.sstf-disclosure__body,.sstf-team-editor) :is(textarea,select[multiple]){box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;background-color:var(--sstf-surface)!important;box-shadow:none!important;font-size:var(--sstf-t-card)!important}
  .sstf-admin-central :is(input,select,textarea):focus-visible{border-color:rgb(var(--sstf-domain-rgb))!important;outline:var(--sstf-ring-2) solid rgba(var(--sstf-domain-rgb),.35)!important;outline-offset:var(--sstf-ring-offset-1)!important}
  .sstf-admin-central .sstf-fields>label:has(>input[type=checkbox]),.sstf-admin-central .sstf-check-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-idle)!important}
  .sstf-admin-central .sstf-fields>label:has(>input[type=checkbox])>span{order:2!important;margin:0!important}
  .sstf-admin-central .sstf-fields input[type=checkbox],.sstf-admin-central .sstf-check-row input{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;margin:0!important;accent-color:rgb(var(--sstf-domain-rgb))!important}
  .sstf-admin-central .sstf-fields input[type=color]{width:calc(var(--sstf-touch) + var(--sstf-space-4))!important;height:var(--sstf-control-h)!important;padding:var(--sstf-space-1)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  .sstf-admin-central #sstf-logo-preview{display:grid!important;place-items:center!important;min-height:calc(var(--sstf-touch) * 2)!important;padding:var(--sstf-space-2)!important;border:1px dashed var(--sstf-line-special)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-special)!important;color:var(--sstf-ink-muted)!important;font-weight:400!important}
  .sstf-admin-central #sstf-logo-preview img{max-width:100%!important;max-height:calc(var(--sstf-touch) * 2)!important;object-fit:contain!important}
  @media(max-width:600px){.sstf-admin-central .sstf-fields{grid-template-columns:minmax(0,1fr)!important}}

  /* ---- sticky save bar of the settings form ---- */
  .sstf-admin-central .sstf-settings-form>.submit{position:sticky!important;bottom:0!important;z-index:3!important;margin:var(--sstf-space-3) 0 0!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-white-a94)!important;box-shadow:none!important}

  /* ---- dashboard (ADM-003): prepared metric cells, modules grid ---- */
  .sstf-admin-central .sstf-admin-prepared{border-style:dashed!important;background:var(--sstf-surface-special-muted)!important}
  .sstf-admin-central .sstf-admin-prepared .sstf-central-status{min-height:0!important}
  .sstf-admin-central .sstf-admin-readiness{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-admin-central .sstf-admin-modules{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(var(--sstf-section-min),1fr))!important;gap:var(--sstf-space-2)!important}

  /* ---- orders (ADM-004/005/006) ---- */
  .sstf-admin-central .sstf-admin-order-list{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-admin-central .sstf-admin-order-badges{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  .sstf-admin-central .sstf-admin-cancel-form{margin:0!important}

  /* ---- re-initialisation (ADM-010/011) ---- */
  .sstf-admin-central .sstf-admin-reset{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-admin-central .sstf-admin-reset>.sstf-banner,.sstf-admin-central .sstf-admin-reset>.sstf-info-note{margin:0!important}
  .sstf-admin-central .sstf-admin-reset-form{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-admin-central .sstf-admin-reset-scopes{min-width:0!important;margin:0!important;padding:0!important;border:0!important}
  .sstf-admin-central .sstf-admin-reset-scopes>legend{margin:0 0 var(--sstf-space-2)!important;padding:0!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  .sstf-admin-central .sstf-admin-reset-form>.sstf-option{margin:0!important}
  .sstf-admin-central .sstf-admin-reset-submit{width:100%!important;height:var(--sstf-control-h)!important}

  /* ---- users & permissions (ADM-027..033) ---- */
  .sstf-admin-central .sstf-team-facts{margin:0!important}
  .sstf-admin-central .sstf-team-list{display:grid!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0 0!important}
  .sstf-admin-central .sstf-team-editor{border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;overflow:hidden!important}
  .sstf-admin-central .sstf-team-editor>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;list-style:none!important;cursor:pointer!important}
  .sstf-admin-central .sstf-team-editor>summary::-webkit-details-marker{display:none!important}
  .sstf-admin-central .sstf-team-editor[open]>summary{border-bottom:1px solid var(--sstf-line-card)!important;background:var(--sstf-surface-idle)!important}
  .sstf-admin-central .sstf-team-person{display:grid!important;gap:0!important;min-width:0!important}
  .sstf-admin-central .sstf-team-person strong{font-size:var(--sstf-t-card)!important;color:var(--sstf-ink)!important}
  .sstf-admin-central .sstf-team-person small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;}
  .sstf-admin-central .sstf-team-summary-meta{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:var(--sstf-space-1)!important;flex:none!important}
  .sstf-admin-central .sstf-team-editor>form,.sstf-admin-central .sstf-disclosure__body>form{display:grid!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;margin:0!important}
  .sstf-admin-central .sstf-team-form-section{margin:0!important;padding:0!important;border:0!important;background:none!important}
  .sstf-admin-central .sstf-team-form-section>h4{margin:0 0 var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  .sstf-admin-central .sstf-team-form-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;padding-top:var(--sstf-space-3)!important;border-top:1px solid var(--sstf-line-card)!important}
  .sstf-admin-central .sstf-team-form-actions>p{flex:1 1 auto!important;min-width:0!important;margin:0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;}
  .sstf-admin-central .sstf-user-cap-fields:not([hidden]),.sstf-admin-central .sstf-role-matrix fieldset{display:grid!important;gap:var(--sstf-space-2)!important;min-width:0!important;margin:0!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-idle)!important}
  .sstf-admin-central .sstf-role-matrix fieldset>legend{padding:0 var(--sstf-space-1)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  .sstf-admin-central :is(.sstf-user-cap-fields,.sstf-role-matrix fieldset)>label{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;font-size:var(--sstf-t-body)!important}
  /* Operations\Profile::fields prints a plain <details> (ADM-030) — the central disclosure look until it adopts disclosureStart (ADM-components.php.md §2) */
  .sstf-admin-central form>details:not(.sstf-disclosure){border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;overflow:hidden!important}
  .sstf-admin-central form>details:not(.sstf-disclosure)>summary{display:flex!important;align-items:center!important;justify-content:center!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-6)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;list-style:none!important;cursor:pointer!important}
  .sstf-admin-central form>details:not(.sstf-disclosure)>summary::-webkit-details-marker{display:none!important}
  .sstf-admin-central form>details:not(.sstf-disclosure)[open]>:not(summary){margin:var(--sstf-space-3)!important}
  .sstf-admin-central form>details:not(.sstf-disclosure) fieldset{min-width:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important}
}
/* BATCH-B PORTALS (merged by the main session): P-1 + P-1b — the original / alternative product pair stacks at every width for every role
   (root cause: app-ui.css:6548 / :6562 two-column pair rule under the central one-card-per-row grid → names broken letter by letter at 390 px);
   P-2 — an empty central info line stays hidden. */
@layer sstf-approved{
  body.ss-supplier-glass .ss-supplier-alternative-group.has-alternative,body.sstf-flow .ss-supplier-alternative-group.has-alternative{grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important}
  .sstf-info-note:empty{display:none!important}
}
/* Batch B gate ج: the wp-admin order search uses the central search-row layout through its own hook */
.sstf-admin-order-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:var(--sstf-space-2);align-items:end}
@media(max-width:600px){.sstf-admin-order-search{grid-template-columns:minmax(0,1fr) auto}.sstf-admin-order-search>button:last-child{grid-column:1/-1}}
/* BATCH-B OPS (merged by the integration session from proposals/OPS.css): wrapped in the approved layer — sstf-approved is declared before the
   legacy layers (compat.css), so its !important rules outrank the legacy layered !important rules (unlayered they would lose). The colour
   declarations of the OPS-028/029/031 navigation sizing rules were left out so the current-item colours stay as they are (the proposal's intent). */
@layer sstf-approved{
/* OPS-197 — layout.js clones the fold's server-rendered central icon (.sstf-icon) into the upgraded card trigger and into the card
   title slot (no class is written in JS): size and spacing for those two places. */
.sstf-flow .ops-action-trigger{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
.sstf-flow .ops-action-trigger>.sstf-icon,
.sstf-flow .sstf-central-glass [data-sstf-card-title-slot]>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:0 0 auto!important}
.sstf-flow .sstf-central-glass [data-sstf-card-title-slot]>.sstf-icon{margin-inline-end:var(--sstf-space-2)!important;vertical-align:middle!important}

/* OPS-204 — the per-section dossier tables keep their exact markup (<details class="ops-card dossier-section"><summary>…</summary>
   <div class="account-report-table"><table>…) because qa/gates/dossier-render-harness.php asserts it; they take the central
   disclosure look (same tokens as .sstf-disclosure / .sstf-disclosure>summary). */
.sstf-flow details.dossier-section{margin:var(--sstf-space-2) 0 0!important;padding:0!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;overflow:hidden!important}
.sstf-flow details.dossier-section>summary{display:flex!important;align-items:center!important;justify-content:center!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-6)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;cursor:pointer!important;list-style:none!important}

.sstf-flow details.dossier-section>.account-report-table{max-width:100%!important;overflow-x:auto!important;padding:var(--sstf-space-3)!important}
/* OPS-204 — signatures and proof labels (dossier.php) */
.sstf-flow .dossier-signatures{display:grid!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-3)!important}
.sstf-flow .dossier-signature{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-card-pad)!important;border-radius:var(--sstf-radius-card)!important}
.sstf-flow .dossier-signature>strong,.sstf-flow .dossier-proof-label{margin:0!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important}
.sstf-flow .dossier-proofs .dossier-proof{max-width:100%!important;height:auto!important;border-radius:var(--sstf-radius-field)!important}

/* OPS-168/169 — the stocktake approval block (warehouse.php: .stocktake-approval-block replaces the legacy boxed
   .inventory-stocktake-approval so the banner is not nested in a second frame) */
.sstf-flow .stocktake-approval-block{display:grid!important;gap:var(--sstf-space-3)!important;margin-top:var(--sstf-space-3)!important}
.sstf-flow .stocktake-approval-block form{margin:0!important}

/* OPS-125 — the customer link card actions row (sale_inventory.php: .ss-access-actions) */
.sstf-flow .ss-access-actions{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-3)!important}
.sstf-flow .ss-access-actions>*{flex:1 1 0!important;min-width:0!important}

/* OPS-138 — the product page facts and the sizes head (warehouse-product-view.php: new hooks .inventory-product-facts /
   .inventory-product-sizes-head; the legacy .inventory-product-view-meta 5-column !important grid is no longer emitted) */
.sstf-flow .inventory-product-facts{margin:var(--sstf-space-3) 0!important}
.sstf-flow .inventory-product-sizes-head{margin-bottom:var(--sstf-space-2)!important}

/* OPS-131 — the warehouse preparation states (warehouse.php: segmented with the new hook .warehouse-stage-segmented; the legacy
   .warehouse-order-tabs rules no longer apply) */
.sstf-flow .warehouse-stage-segmented{margin:0 0 var(--sstf-space-3)!important}

/* OPS-039 — record rows (View::records, class .ops-record-card on the central record card): the avatar sits in the title row */
.sstf-flow .ops-record-card .sstf-record__title .sstf-avatar,
.sstf-flow .ops-record-card .sstf-record__title img{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;border-radius:var(--sstf-radius-pill)!important;flex:0 0 auto!important}

/* OPS-026 — update toast (proposal in OPS-components.php.md adds .sstf-update-toast beside the legacy class) */
.sstf-flow .sstf-update-toast{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;box-shadow:0 var(--sstf-space-1) var(--sstf-space-4) var(--sstf-shade-142846-a12)!important}
.sstf-flow .sstf-update-toast[hidden]{display:none!important}
/* H-acc-57: the live update toast never prints over a voucher / report (it outranked the app-ui print rule) */
@media print{.sstf-flow .sstf-update-toast{display:none!important}}
.sstf-flow .sstf-update-toast>span:first-child{flex:1 1 auto!important;min-width:0!important;font-weight:700!important}
.sstf-flow .sstf-update-toast__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:0 0 auto!important}

/* OPS-028/029/031 — staff navigation chrome on central tokens (Chrome.php markup unchanged except the settings-tree chevron, see
   OPS-components.php.md). Sizing and surfaces only — the current-item colours stay as they are. */
.sstf-flow aside.app-sidebar :is(a,summary),.sstf-flow .app-drawer :is(a,summary){min-height:var(--sstf-touch-min)!important;font-size:var(--sstf-t-body)!important}
.sstf-flow nav.mobile-nav{padding-bottom:var(--sstf-safe-bottom)!important;border-top:1px solid var(--sstf-line-card)!important;background:var(--sstf-white-a94)!important;backdrop-filter:blur(var(--sstf-blur-12))!important}
.sstf-flow nav.mobile-nav :is(a,button){min-height:var(--sstf-touch)!important;font-size:var(--sstf-t-small)!important}
.sstf-flow .sstf-settings-tree .sstf-settings-nav-section>summary{min-height:var(--sstf-touch-min)!important;padding-inline:var(--sstf-space-3)!important;font-size:var(--sstf-t-small)!important}
.sstf-flow .sstf-settings-tree .sstf-settings-nav-children a{min-height:var(--sstf-touch-min)!important;padding-inline:var(--sstf-space-5)!important;font-size:var(--sstf-t-small)!important}
/* OPS-031 (integration): the settings-tree chevron is now the central chevron — it turns like the section accordions when open */
.sstf-flow :where(.app-sidebar,.app-drawer) :is(.sstf-settings-tree,.sstf-settings-nav-section)[open]>summary .nav-accordion-chevron .small-icon{transform:rotate(90deg)!important}
/* P-IDN-3 (integration): the password eye is the approved icon, not the emoji */
.sstf-password-eye>.sstf-password-eye__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;pointer-events:none!important}
}
/* BATCH-B IDN (merged by the integration session from proposals/IDN.css; the auth-card rules also carry .sstf-auth-card — ONE login card shape
   for the staff, merchant, permanent-customer and central identity logins) */
/* PROPOSAL — DOMAIN IDN (central identity screens + B2B portal account pages). Merge target: assets/css/central-system.css (end of file, own block).
   Scope hooks printed only by templates/identity/portal.php (.sstf-identity, .sstf-identity-auth, .sstf-identity-actions, .sstf-identity-invitations,
   .sstf-identity-records) and templates/shared/portal-account.php (.sstf-identity-auth, .sstf-portal-account-selected).
   Tokens only (var(--sstf-*)); no raw colour; px only as 1px borders. No [hidden] element is targeted. Without this block the screens still render
   (records stack, actions wrap) — it only sets the rhythm. */
@layer sstf-approved{
  /* ---- auth card (login / invitation / reset / forced change / «تسجيل الدخول مطلوب»): the existing .login card, banner on top, one field rhythm ---- */
  .sstf-auth-card>.sstf-banner,.sstf-identity-auth>.sstf-banner{margin:0 0 var(--sstf-space-3)!important}
  .sstf-auth-card form,.sstf-identity-auth form{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-auth-card form>label,.sstf-identity-auth form>label{display:grid!important;gap:var(--sstf-space-1)!important;margin:0!important}
  .sstf-auth-card form>:is(button,label.sstf-remember-me),.sstf-identity-auth form>:is(button,label.sstf-remember-me){margin:0!important}

  /* ---- identity mother page: action row (2 per row on the phone, one row on desktop), invitations disclosure, record list ---- */
  .sstf-identity .sstf-identity-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-4)!important}
  @media(min-width:900px){.sstf-identity .sstf-identity-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
  .sstf-identity .sstf-identity-actions>.sstf-icon-action{width:100%!important;min-width:0!important;white-space:normal!important}
  .sstf-identity-records{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-3)!important}
  .sstf-identity-records .sstf-record__foot form{margin:0!important}
  

  /* ---- glass work cards of the identity page: forms keep one column rhythm; info note below the fields ---- */
  .sstf-identity .sstf-central-glass__body form{display:grid!important;gap:var(--sstf-space-3)!important}
  .sstf-identity .sstf-central-glass__body form+.sstf-banner{margin-top:var(--sstf-space-4)!important}
  .sstf-identity .sstf-central-glass__body .sstf-icon-field{margin:0!important}

  /* ---- B2B portal account (staff): the selected account block — banner, then its actions in one row; the invite form sits in the row ---- */
  .sstf-portal-account-selected{display:grid!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-3) 0 var(--sstf-space-4)!important}
  .sstf-portal-account-selected .sstf-icon-actions{margin:0!important}
  .sstf-portal-account-selected .sstf-icon-actions>form{display:contents!important}

  /* ---- credentials copy row (identity handoff + portal invitation): the copy action under the read-only link, full width on the phone ---- */
  .ss-credentials-dialog .sstf-icon-action[data-pa-copy],.ss-credentials-dialog .sstf-icon-action[data-copy-target]{width:100%!important;margin-top:var(--sstf-space-2)!important}
}

/* BATCH B fix pass (FIX-REPORT D1/D5/D6/D7) — tokens only */
@layer sstf-approved{
  /* ---- D5/D6: a control the page hid after enhancing it (country-picker.js trigger, the report-type chooser of portal-accounts.js) stays hidden
     inside an icon field: «.sstf-icon-field>select{display:block!important}» above overrode [hidden], so both controls showed ---- */
  .sstf-icon-field>:is(input,select,textarea)[hidden]{display:none!important}
  /* ---- D5/D6/D7: compact work-card forms that opt in with .sstf-form-stack are one column on the phone (icon + label + control keep their width) ---- */
  @media(max-width:600px){.ss-compact-form.sstf-form-stack{grid-template-columns:minmax(0,1fr)!important}.ss-compact-form.sstf-form-stack>:not([type=hidden]){grid-column:1/-1!important}}
  /* ---- D1 (ACC-105): the reconcile rows are central record cards — the count badge keeps its number LTR and the row its record rhythm ---- */
  .reconcile-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-3)!important}
  .reconcile-list>.sstf-record .sstf-central-status{min-width:var(--sstf-chip-h)!important;justify-content:center!important}
}
/* BATCH B (IDN-030 on ui.79): an enhanced list inside an icon field — the page hides the select and puts its chooser button right after it
   (portal-accounts.js report type, supplier.js choosers); the chooser takes the control place of the select (full width under the label) */
@layer sstf-approved{
  .sstf-icon-field>select[hidden]+button{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:var(--sstf-touch)!important;margin-top:var(--sstf-space-1)!important;box-sizing:border-box!important;text-align:start!important}
}
/* BATCH B — B2B / GST rows (merged from proposals/B2B.css; tokens only: var(--sstf-*), 1px borders, 0).
   Every rule that sets display on a node toggled by [hidden] is written with :not([hidden]) so the central rule never re-shows a hidden node.
   Source rows: see BATCH-B/B2B-REPORT.md. */
@layer sstf-approved{
  /* ---- B2B-013 orders index inbox line (orders-index.php:42): the info note inside the [hidden]-toggled #inbox-notice ---- */
  #inbox-notice:not([hidden]){display:block!important;margin:var(--sstf-space-3) 0 0!important;padding:0!important;border:0!important}
  #inbox-notice>.sstf-info-note{align-items:center!important;margin:0!important}
  #inbox-notice>.sstf-info-note>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  #inbox-notice>.sstf-info-note a{display:inline-flex!important;align-items:center!important;min-height:var(--sstf-touch-min)!important;padding:0 var(--sstf-space-2)!important}

  /* ---- B2B-053 / B2B-082 / B2B-114 / GST-022 «reminder after save» notes: the text column and its WhatsApp action ---- */
  :is(.action-notice,.supplier-alternative-sent,.finance-reminder,#customer-offer-reminder>p).sstf-info-note{align-items:flex-start!important;margin:var(--sstf-space-3) 0!important;border:1px solid var(--sstf-tone-done-border)!important;background:var(--sstf-tone-done-bg)!important;color:var(--sstf-tone-done-fg)!important}
  :is(.action-notice,.supplier-alternative-sent,.finance-reminder,#customer-offer-reminder>p).sstf-info-note>:is(span,div){display:grid!important;gap:var(--sstf-space-2)!important;min-width:0!important}

  /* ---- B2B-070 version history (review.php:12-15) ---- */
  .version-history.sstf-disclosure form.inline{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important}
  .version-history.sstf-disclosure .sstf-icon-field{margin:0!important}
  

  /* ---- B2B-074 / B2B-079 supplier send form (supplier-admin.php:18-28) ---- */
  .supplier-send-form{display:grid!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-3)!important}
  .supplier-send-form>.sstf-icon-field.supplier-pick{margin:0!important}
  .supplier-send-form .supplier-advanced-body{display:grid!important;gap:var(--sstf-space-2)!important}
  .supplier-send-form .supplier-advanced-body>.sstf-disclosure{margin:0!important}
  .supplier-send-form .supplier-advanced-body>.sstf-disclosure .sstf-disclosure__body{display:grid!important;gap:var(--sstf-space-2)!important}
  .supplier-send-form>.sstf-send-button{margin:0!important}

  /* ---- B2B-091 the quote's ⋯ panel (layout.js anchored row-actions): the same popover surface as the central ⋯ menu ---- */
  details.row-actions>.ss-row-action-menu[role=menu]{display:grid!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-card-line)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  

  /* ---- B2B-096 rate card + B2B-101 live message / save (pricing-admin.php) ---- */
  .pricing-rate-card>.sstf-banner{margin:0 0 var(--sstf-space-2)!important}
  .pricing-rate-card>.sstf-icon-field{margin:var(--sstf-space-2) 0 0!important}
  #pricing-message.sstf-info-note{margin:var(--sstf-space-3) 0 0!important}
  #pricing-form>.pricing-save-main.sstf-send-button{margin:var(--sstf-space-3) 0 0!important}

  /* ---- B2B-103 the two-step publish confirmation (inline, server step) ---- */
  .pricing-confirm{display:grid!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-4)!important;padding:var(--sstf-space-4)!important;border:1px solid var(--sstf-tone-action-border)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .pricing-confirm>:is(.sstf-banner,.sstf-facts,.sstf-info-note){margin:0!important}
  .pricing-confirm>form{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important}
  .pricing-confirm>form>:is(.sstf-send-button,.sstf-icon-actions){margin:0!important}

  /* ---- GST-005 customer start card (workspace.html:4-17) ---- */
  .customer-start-card.customer-order-static:not([hidden]){border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:none!important}
  .customer-start-content>.sstf-banner{margin:var(--sstf-space-3) 0!important}

  /* ---- GST-006 pending photo strip (customer.js renderBatch / pendingPhoto) ---- */
  .sstf-customer .batch-gallery:not([hidden]){border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;box-shadow:none!important}
  .ss-photo-remove>.ss-photo-remove__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}

  /* ---- GST-010 the guest page bottom bar (workspace.html:29-33; inside a work card central-system.js already moves it into the card bar) ---- */
  body.sstf-customer.plain-order-page .customer-bottom-stack:not([hidden]){background:var(--sstf-surface)!important;border-top:1px solid var(--sstf-line-card)!important;box-shadow:none!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important}

  /* ---- GST-013 customer review head + decisions (central intake badge) ---- */
  .sstf-customer-review:not([hidden]){display:grid!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important}
  .sstf-customer-review>.sstf-banner{margin:0!important}
  #customer-decisions>p{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:var(--sstf-space-2) 0!important;border-bottom:1px solid var(--sstf-line-card)!important}

  /* ---- GST-019 customer offer: banner, state note, central product cards (.sstf-offer-items already central) ---- */
  #customer-offer>.sstf-banner{margin:0 0 var(--sstf-space-3)!important}
  #customer-offer-state.sstf-info-note{margin:0 0 var(--sstf-space-3)!important}
  #customer-offer-form .customer-offer-primary-actions{display:grid!important;gap:var(--sstf-space-2)!important}
  #customer-offer-form .customer-offer-primary-actions>.sstf-send-button{margin:0!important}

  /* ---- GST-025 customer fulfillment (fulfillment.js) ---- */
  .sstf-fulfillment-title{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-2)!important;font-size:var(--sstf-t-card)!important}
  .sstf-fulfillment-title>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .sstf-fulfillment-status{margin:0 0 var(--sstf-space-3)!important}
  .sstf-fulfillment-steps{display:grid!important;gap:var(--sstf-space-1)!important;margin:0 0 var(--sstf-space-3)!important;padding:0!important;list-style:none!important}
  .sstf-fulfillment-steps>li{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch-min)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;font-size:var(--sstf-t-body)!important}
  .sstf-fulfillment-steps>li[data-state=done]{border-color:var(--sstf-tone-done-border)!important;background:var(--sstf-tone-done-bg)!important;color:var(--sstf-tone-done-fg)!important}
  .sstf-fulfillment-steps>li[data-state=current]{border-color:var(--sstf-tone-waiting-border)!important;background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;font-weight:700!important}
  .sstf-fulfillment-steps>li[data-state=next]{color:var(--sstf-ink-muted)!important}
  .sstf-fulfillment-steps__mark{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-fulfillment-fact{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-2)!important;}
  .sstf-fulfillment-fact>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
}
/* BATCH B (OPS-216 on ui.79): the attendance print table keeps its 8 columns readable on the phone — app-ui.css:411 forces every
   compact table to min-width:0 (!important), which beat the attendance table's own min width and broke the words letter by letter; the table
   keeps its natural width and scrolls inside its own wrapper (the page never scrolls sideways) */
@layer sstf-approved{@media screen{
  body.sstf-flow .compact-table-wrap.attendance-print-table{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  
  
}}
/* BATCH B (OPS-107 on ui.80): the blocked-workflow wrapper (app-ui.css:6705 flex box with its own frame) holding the central banner
   squeezed the banner to its content width (title one word per line at 390) and framed a card inside a card — with a central banner inside
   it, the wrapper is only a block and the banner is the card */
@layer sstf-approved{
  body.sstf-flow .ss-workflow-blocked:has(>.sstf-banner){display:block!important;padding:0!important;border:0!important;background:none!important}
  body.sstf-flow .ss-workflow-blocked>.sstf-banner{width:100%!important;margin:0!important}
}
/* BATCH B (SSC-002/003/013/015 on ui.80): the S&S customer-account pages carry the fixed store side bar from 961px, but
   «body.sstf-customer main{padding-inline:var(--sstf-space-2)!important}» (same specificity, later) cancelled the side-bar reservation of app-ui.css:404, so the
   bar covered the page (a click on «مراجعة واعتماد التعديل» hit «التقارير»). Same reservation as B29, for the store side bar. */
@layer sstf-approved{
  @media(min-width:961px){
    
  }
}
/* SPRINT C4 (B2B-103): the publish confirmation is the body of a central child card — the glass card is the frame, the legacy frame is dropped */
@layer sstf-approved{
  .pricing-confirm-card .pricing-confirm{border:0!important;background:transparent!important;padding:0!important;margin:0!important}
}
/* SPRINT OPS-007: the central unavailable page (SystemPage) keeps the page gutter */
@layer sstf-approved{
  .sstf-system-page__main{display:block!important;max-width:var(--sstf-card-w-min)!important;margin:var(--sstf-space-6) auto!important;padding:0 var(--sstf-page-x)!important}
}
/* Owner review 2026-10-05 (merchant / dropshipping order page): one place for ⋯ — a list ⋯ sits at the end of its search row, a card ⋯ at the
   top of the card on the title line; the parcel is a central record (head, facts, iconed actions, «سجل التتبع» disclosure) */
@layer sstf-approved{
  .ss-sales-filter-card.ss-recipient-search-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .ss-sales-filter-card.ss-recipient-search-row>input{flex:1 1 auto!important;min-width:0!important;margin:0!important}
  .ss-sales-filter-card.ss-recipient-search-row>.ss-card-menu{flex:0 0 var(--sstf-touch)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;margin:0!important}
  .ss-recipient-toolbar[hidden]{display:none!important}
  .ss-recipient-card :is(.order-line-actions,.ss-card-menu){align-self:flex-start!important}
  .parcel-record{display:grid!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .parcel-record-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important}
  .parcel-record>.sstf-facts,.parcel-record>.sstf-icon-actions,.parcel-record>.sstf-disclosure{margin:0!important}
  .parcel-record .parcel-note{margin:0!important;color:var(--sstf-ink-muted)!important}
  .parcel-record .parcel-event{margin:0!important;padding:var(--sstf-space-2) 0!important;border-bottom:1px solid var(--sstf-line-card)!important;font-size:var(--sstf-t-small)!important;}
  .parcel-record .parcel-track-link{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  /* SHIPPING STEP 4 FIX (owner: no nested boxes): customer / merchant «التجهيز والشحن» only (#customer-fulfillment-home exists only in customer.php). The central
     window holds the content directly: the fulfillment panel, the recipients' shipments section, each recipient block and each parcel record keep their
     elements (JS ids, banners, #id, actions) but draw no box / padding of their own; the central tracking card stays the only card. Staff / supplier unchanged. */
  #customer-fulfillment-home>:is(#customer-fulfillment,#recipient-tracking){margin:0 0 var(--sstf-space-4)!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  #customer-fulfillment-home #recipient-tracking>.recipient-block{margin:var(--sstf-space-4) 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  #customer-fulfillment-home #recipient-tracking .parcel-record{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
  #customer-fulfillment-home #recipient-tracking .parcel-record+.parcel-record{margin-top:var(--sstf-space-5)!important} /* parcels stay apart without their boxes */
  #customer-fulfillment-home>#customer-fulfillment>h3{margin-top:var(--sstf-space-4)!important} /* the international heading keeps the space its removed wrapper gave it */
}
/* owner review 2026-10-05: the wizard × is the central close (round, neutral) on every page — on customer / merchant pages the legacy gradient
   button rule painted it as a blue square */
@layer sstf-approved{
  #wizard .wizard-close.ss-dialog-close{display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-height:0!important;padding:0!important;border-radius:var(--sstf-radius-pill)!important;border:1px solid var(--sstf-line-card)!important;background:var(--sstf-surface)!important;background-image:none!important;color:var(--sstf-ink)!important;box-shadow:none!important}
}
/* owner review 2026-10-05 (2): recipient editor — a field the page hides (Saudi-only fields) stays hidden inside the central icon field; the country
   chooser of the country picker is the field control (not a gradient button); the cancel action is the neutral secondary button */
@layer sstf-approved{
  .sstf-icon-field[hidden]{display:none!important}
  .sstf-icon-field .country-picker{display:block!important;width:100%!important;margin-top:var(--sstf-space-1)!important}
  .sstf-icon-field .country-trigger{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;background-image:none!important;color:var(--sstf-ink)!important;box-shadow:none!important;font-weight:400!important;text-align:start!important}
}
/* Owner review 2026-10-05 — form layout from the references: a form with 5+ fields (marked .sstf-form-long by central-system.js, fields counted at
   any depth) follows «أمر قبض جديد»: one two-column grid also on the phone (wrapper containers flattened, hidden ones untouched), the label above, a
   small icon inside the field, long fields (textareas, wide / full fields) and every non-field part on the full row, checks as tiles side by side;
   a short form (up to 4 fields) keeps «تعديل المورد» (one column, the icon beside the field). Same inputs, names and handlers. */
@layer sstf-approved{
  .sstf-form-long{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:var(--sstf-space-3)!important;row-gap:var(--sstf-space-2)!important;align-items:end!important}
  .sstf-form-long :is(div,section):not([hidden]):not(.sstf-central-glass__body):not(.sstf-card-body):not(.sstf-facts):not(.sstf-fact):not(.account-action-bar):not(.country-picker):not(.recipient-import-visible):not(.recipient-dialog-actions):not(.sstf-fxrate):not(.sstf-fxrate__row):not(.sstf-fxrate__side)/* R165: صفّ «من ← إلى» يبقى صفًّا، لا يُسطَّح مع حقول النموذج الطويل */:has(.sstf-icon-field){display:contents!important}
  .sstf-form-long :is(table,.sstf-facts,.account-totals,.account-action-bar,.sstf-send-button,.sstf-banner,.sstf-info-note,.notice,p,small,h2,h3,hr,.recipient-import-visible,.recipient-dialog-actions,.sstf-field-full,.sstf-disclosure,.sstf-icon-actions){grid-column:1/-1!important}
  .sstf-form-long > button,.sstf-form-long > input[type=submit]{grid-column:1/-1!important}
  .sstf-form-long .sstf-icon-field{margin:0!important;padding-inline-start:0!important;grid-column:auto!important}
  .sstf-form-long .sstf-icon-field:is(:has(>textarea),.recipient-wide,.sstf-field-full,[data-sstf-field-wide]){grid-column:1/-1!important}
  .sstf-form-long .sstf-icon-field:not(.account-check)>.sstf-icon-field__icon{z-index:1!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;inset-inline-start:var(--sstf-space-2)!important;bottom:calc((var(--sstf-touch) - var(--sstf-icon-md)) / 2)!important;top:auto!important;transform:none!important}
  .sstf-form-long .sstf-icon-field:has(>textarea)>.sstf-icon-field__icon{bottom:auto!important;top:calc(var(--sstf-t-body) * 1.5 + var(--sstf-space-3))!important}
  .sstf-form-long .sstf-icon-field:not(.account-check)>:is(input:not([type=checkbox]),select,textarea){padding-inline-start:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
  .sstf-form-long .sstf-icon-field:not(.account-check) .country-picker .country-trigger{padding-inline-start:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
  .sstf-form-long .account-check{grid-column:auto!important;align-self:stretch!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important}
}
/* owner review 2026-10-05 (forms, 2): no empty half-rows (a single field before a full-row part takes the next short field beside it) and the
   submit action of a long form is always the full last row */
@layer sstf-approved{
  .sstf-form-long{grid-auto-flow:row dense!important}
  .sstf-form-long :is(button[type=submit],button:not([type]),input[type=submit],.sstf-send-button){grid-column:1/-1!important;width:100%!important}
}
/* gallery review 2026-10-05 (MER-021): inside a central card the legacy sticky .task-bar (app-ui: position:sticky; bottom) floated over the
   fields of the card's form while the card scrolled; owner rule: the actions of a card are its last row, never pinned over the content */
@layer sstf-approved{
  .sstf-central-glass .task-bar{position:static!important;inset:auto!important;z-index:auto!important;box-shadow:none!important;background:transparent!important;border:0!important;padding:0!important}
}
/* gallery review 2026-10-05 (SSC-019): an empty date field shows no reversed browser placeholder; focused it shows the editable parts */
@layer sstf-approved{
  input[data-empty]:not(:focus)::-webkit-datetime-edit{color:transparent!important}
}
/* gallery review 2026-10-05 (MER-015, SSC-002/015): a product without a photo shows the approved product icon, not the words «صورة المنتج»
   (the text stays for screen readers) */
@layer sstf-approved{
  .inventory-product-card-media>.inventory-no-image{font-size:0!important;color:transparent!important;background:url(../icons/ref/256/product-cube-v2.webp) center/42% auto no-repeat!important;opacity:.85}
}
/* gallery review 2026-10-05 (MER-025, SSC-021): a message / notes field of any card form is a full-width textarea row, also in short forms */
@layer sstf-approved{
  dialog form :is(label:has(>textarea),.sstf-icon-field:has(>textarea)){grid-column:1/-1!important;width:auto!important;max-width:none!important}
  dialog form label>textarea,dialog form .sstf-icon-field>textarea{width:100%!important;max-width:none!important;min-height:calc(var(--sstf-touch) * 2)!important}
}
/* gallery review 2026-10-05 (ADM-004, MER-004): an order / record number never breaks (it was squeezed to one digit per line by its badges);
   the badges beside it take the remaining width */
@layer sstf-approved{
  .ss-order-number,.sstf-record__head>.sstf-record__title{white-space:nowrap!important}
  .sstf-record__head>.sstf-record__title{flex:0 0 auto!important;min-width:max-content!important}
  .sstf-record__head>:not(.sstf-record__title){min-width:0!important;flex:0 1 auto!important}
}
/* gallery review 2026-10-05 (logins): «تذكرني» is one row — the box beside its text, not above it */
@layer sstf-approved{
  label.sstf-remember-me{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;width:auto!important;font-weight:600!important}
  label.sstf-remember-me>input[type=checkbox]{flex:0 0 auto!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;min-height:0!important;margin:0!important}
  .sstf-login-secret .sstf-password-field{display:block!important;position:relative!important;margin-top:var(--sstf-space-1)!important}
}
/* gallery review 2026-10-05 (MER-026, B2B desktop rail): a navigation label never breaks inside a word («Dropship/ping», «تسجيل الخ…») */
@layer sstf-approved{
  :is(.app-sidebar,.store-sidebar,.mobile-nav,.store-bottom-nav) :is(a,button)>span{overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important}
}
/* gallery review 2026-10-05 (ui.91 recheck): the phone bottom bar is never shown beside the desktop side menu. The legacy show rule
   (app-ui, display:grid!important) sits in a cascade layer that the legacy desktop hide could not beat; the approved layer decides */
@layer sstf-approved{
  @media (min-width:961px){/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(head):has(~ :where(body) .app-sidebar) ~ body :is(.mobile-nav,.store-bottom-nav){display:none!important}}
  @media (min-width:1024px){/* Round 4 close: :has() no longer anchored on html/body (same elements, same specificity) */:where(head):has(~ :where(body) .store-sidebar) ~ body :is(.mobile-nav,.store-bottom-nav){display:none!important}}
}
/* gallery review 2026-10-05 (team strip): a person's name is one line, ellipsis at the card edge — never «qa_direct/or» */
@layer sstf-approved{
  .team-presence .team-person :is(strong,b){display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important}
}
/* gallery review 2026-10-05 (phone tables → cards, see stackTables in central-system.js) */
@layer sstf-approved{
  @media screen and (max-width:700px){
    table.sstf-stack-table,table.sstf-stack-table>tbody{display:block!important;width:100%!important;border:0!important;background:transparent!important}
    table.sstf-stack-table>thead{display:none!important}
    table.sstf-stack-table>tbody>tr{display:grid!important;gap:var(--sstf-space-1)!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
    table.sstf-stack-table>tbody>tr>td{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:var(--sstf-space-3)!important;padding:0!important;border:0!important;text-align:end!important;white-space:normal!important}
    table.sstf-stack-table>tbody>tr>td[data-label]::before{content:attr(data-label);flex:0 0 auto;max-width:45%;color:var(--sstf-ink-muted);font-weight:600;text-align:start}
    table.sstf-stack-table>tbody>tr>td:empty{display:none!important}
    table.sstf-stack-table>tfoot{display:block!important}
  }
}
/* gallery review 2026-10-05 (OPS-008…, ACC-10…): the close button drew its text «×» under the close-navy image (a crossed glyph) — an
   earlier cascade layer keeps the text colour, so the text is moved out of the button box instead (still read by assistive tech) */
@layer sstf-approved{
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close){text-indent:200%!important;white-space:nowrap!important;overflow:hidden!important}
}
/* gallery review 2026-10-05 (ACC-16/26/29/37/41/61, B2B-08): on a phone a list choice in a two-column long form was clipped («دينار أرد…»);
   a select takes the full row there, short text / number / date fields stay two per row */
@layer sstf-approved{
  @media (max-width:700px){.sstf-form-long .sstf-icon-field:has(>select:not([hidden])),.sstf-form-long .sstf-icon-field:has(.country-picker){grid-column:1/-1!important}}
  select{text-overflow:ellipsis!important}
}
/* gallery review 2026-10-05 (ADM-008…022 settings tree, desktop rail): a side-menu label that does not fit ends with «…» on one line —
   never broken letter by letter down the rail */
@layer sstf-approved{
  :is(.app-sidebar,.store-sidebar) :is(a,summary)>span{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important}
}
/* gallery review 2026-10-05 (ADM-004 phone): when the record badges do not fit beside the number they move to the next line — never over the
   number or the customer; a badge keeps its text on one line */
@layer sstf-approved{
  .sstf-record__head{flex-wrap:wrap!important;row-gap:var(--sstf-space-1)!important}
.sstf-record__head .sstf-admin-order-badges>*{white-space:nowrap!important;border-radius:var(--sstf-radius-pill)!important;width:auto!important;height:auto!important;aspect-ratio:auto!important}
  .sstf-admin-order-badges{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-1)!important}
}
/* owner 2026-10-05: a zero-valued numeric field looks empty (its value stays 0) — see markZeros in central-system.js */
@layer sstf-approved{
  input[data-zero]:not(:focus){color:transparent!important;-webkit-text-fill-color:transparent!important}
}
/* owner 2026-10-05 («كل النماذج بالأيقونة الصغيرة»): every icon field — short forms too — carries the small icon INSIDE the field (the long-form
   look of «أمر قبض جديد»); short forms keep their one-column order, only the icon moves in */
@layer sstf-approved{
  .sstf-icon-field:not(.account-check){padding-inline-start:0!important}
  .sstf-icon-field:not(.account-check)>.sstf-icon-field__icon{position:absolute!important;z-index:1!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;inset-inline-start:var(--sstf-space-2)!important;bottom:calc((var(--sstf-touch) - var(--sstf-icon-md)) / 2)!important;top:auto!important;transform:none!important}
  .sstf-icon-field:not(.account-check):has(>textarea)>.sstf-icon-field__icon{bottom:auto!important;top:calc(var(--sstf-t-body) * 1.5 + var(--sstf-space-3))!important}
  /* R131-9: a textarea field whose label carries a second line (<small> note, e.g. «توضيحات خاصة للمورد») — the one-line top offset above put the icon over that line; anchor it to the textarea's bottom corner instead */
  .sstf-icon-field:not(.account-check):has(>small+textarea)>.sstf-icon-field__icon{top:auto!important;bottom:var(--sstf-space-2)!important}
  .sstf-icon-field:not(.account-check)>:is(input:not([type=checkbox]):not([type=radio]),select,textarea){padding-inline-start:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
  .sstf-icon-field:not(.account-check) .country-picker .country-trigger{padding-inline-start:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
  .sstf-icon-field:not(.account-check) .sstf-password-field>input{padding-inline-start:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
}
/* owner 2026-10-05 (empty state): on a page the empty state is the large central one (3D icon, title, text, centred); the small row stays only
   inside cards; a page «no results» shows the approved 3D search icon instead of the thin line magnifier */
@layer sstf-approved{
  .sstf-central-empty--row:not(:is(dialog,.sstf-central-glass) *){display:grid!important;justify-items:center!important;text-align:center!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-6) var(--sstf-space-4)!important}
  .sstf-central-empty--row:not(:is(dialog,.sstf-central-glass) *)>.sstf-central-empty__icon{width:calc(var(--sstf-space-6) * 4)!important;height:calc(var(--sstf-space-6) * 4)!important}
  .sstf-central-empty--row:not(:is(dialog,.sstf-central-glass) *) .sstf-central-empty__text{justify-items:center!important}
  .sstf-central-empty--row:not(:is(dialog,.sstf-central-glass) *) .sstf-central-empty__action{justify-content:center!important}
  .sstf-central-empty:not(:is(dialog,.sstf-central-glass) *)>img.sstf-central-empty__icon[data-icon-key="search-gray"]{content:url(../icons/ref/256/document-search-blue-3d.webp)!important}
}
/* structural batch 2026-10-05 — accounting central requests (GALLERY/central-requests/ACC.md) */
@layer sstf-approved{
  /* CR-ACC-1: printing shows the document only — the app chrome (kept by stronger legacy screen rules) is hidden in print */
  @media print{
    body.sstf-flow :is(.app-header,.app-sidebar,.mobile-nav,.store-bottom-nav,.app-drawer,.app-tools,#sstf-app-panel,.sstf-head-tools,.sstf-quick-actions,.sstf-create-bar){display:none!important}
    body.sstf-flow .sstf-large-card__head :is(.sstf-card-back,.sstf-large-card__close){display:none!important}
  }
  /* CR-ACC-2: every quick-action tile is visible (the strip hid tiles 5+ while the badge counted them) */
  .sstf-quick-actions__tiles{grid-auto-flow:row!important;grid-template-columns:repeat(auto-fill,minmax(calc(var(--sstf-touch) * 3),1fr))!important;overflow:visible!important}
  /* CR-ACC-3: a choice grid never leaves one tile alone in a row */
  .sstf-choice-list:has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  @media (min-width:701px){.sstf-choice-list:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
  .sstf-send-button.danger{background:var(--sstf-tone-danger-bg)!important;color:var(--sstf-tone-danger-fg)!important;border:1px solid var(--sstf-tone-danger-border)!important;box-shadow:none!important}
  [data-sstf-section-home] form>.sstf-send-button{width:100%!important}
  /* CR-ACC-5: the accounting folds use the central disclosure chevron instead of the «v» marker */
  details.account-fold>summary{position:relative!important;list-style:none!important;padding-inline-end:calc(var(--sstf-space-4) * 2)!important}
  details.account-fold>summary::-webkit-details-marker{display:none!important}
  details.account-fold>summary::after{content:""!important;position:absolute!important;inset-inline-end:var(--sstf-space-4)!important;top:50%!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-inline-start:1px solid var(--sstf-ink-soft)!important;border-bottom:1px solid var(--sstf-ink-soft)!important;transform:translateY(-75%) rotate(-45deg)!important}
  details.account-fold[open]>summary::after{transform:translateY(-25%) rotate(135deg)!important}
}
/* structural batch 2026-10-05 — administration central requests (GALLERY/central-requests/ADMIDN.md) */
@layer sstf-approved{
  /* CR-ADMIDN-1: on desktop the settings page carries its own section / view navigation — the side menu keeps only «الإعدادات والمستخدمون» */
  @media (min-width:961px){.app-sidebar .sstf-settings-tree>.nav-dropdown-body{display:none!important}}
  [data-sstf-error-notice]:focus,[data-sstf-error-notice]:focus-visible{outline:none!important}
}
/* structural batch 2026-10-05 — CR-OPS-01 (owner rule: a card's ⋯ sits on its title line): the order-card ⋯ moves from the middle of the
   two rows to the first row, top-aligned — every domain's order cards */
@layer sstf-approved{
  .sstf-order-card__main>.order-line-actions{grid-row:1!important;align-self:start!important}
}
/* structural batch 2026-10-05 — B2B / OPS central requests */
@layer sstf-approved{
  /* CR-B2B-2 / CR-OPS-02: the confirm «تأكيد» follows the screen's domain colour (it fell back to the legacy orange primary) */
  .sstf-confirm-card__ok:not([data-sstf-tone="danger"]){background:rgb(var(--sstf-domain-rgb))!important}
  /* CR-B2B-3: no raw browser resize grip on card text areas */
  :is(dialog,.sstf-central-glass,.sstf-form-long) textarea{resize:none!important}
  /* CR-B2B-4: the order-head ⋯ sits at the far end of the title line */
  .sstf-order-heading>.ss-card-menu{margin-inline-start:auto!important}
}
/* structural batch 2026-10-05 — portal central requests CR-1 (search-row ⋯), CR-2 (menu rows with icons), CR-3 (account action cards) */
@layer sstf-approved{
  .sstf-search-toolbar>.sstf-search-menu{flex:0 0 auto!important;inline-size:var(--sstf-touch)!important;block-size:var(--sstf-touch)!important;display:grid!important;place-items:center!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important}
  .ss-quick-popover .ss-menu-item{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;inline-size:100%!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:none!important;color:var(--sstf-ink)!important;box-shadow:none!important;font-weight:600!important;text-align:start!important}
  .ss-quick-popover .ss-menu-item:hover,.ss-quick-popover .ss-menu-item:focus-visible{background:var(--sstf-tone-neutral-bg)!important}
  .ss-quick-popover .ss-menu-item.is-danger{color:var(--sstf-tone-danger-fg)!important}
  .ss-quick-popover .ss-menu-item:disabled{opacity:.5!important}
  .ss-menu-item__icon{inline-size:var(--sstf-icon-md)!important;block-size:var(--sstf-icon-md)!important;flex:0 0 auto!important}
  .sstf-section-cards--actions .sstf-section-card__form{display:contents!important}
  .sstf-section-cards--actions button.sstf-section-card{font:inherit!important;text-align:start!important;cursor:pointer!important;inline-size:100%!important}
  .sstf-section-card[data-tone="danger"]>strong{color:var(--sstf-tone-danger-fg)!important}
}
/* structural batch 2026-10-05 — CR-ACC-7: an embedded finance page (inside the card iframe) keeps no phone-bar bottom padding */
@layer sstf-approved{
  body.sstf-flow.finance-embedded{padding-bottom:0!important}
}
/* structural batch 2026-10-05 — administration central requests CR-ADMIDN-12..15 (owner decision 10: settings redesigned to the references) */
@layer sstf-approved{
  @media(max-width:600px){
    .sstf-admin-central .sstf-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .sstf-admin-central .sstf-fields>:is(.sstf-settings-span,label:has(>textarea),label:has(>small),label:has(>input[type=checkbox]),label:has(>.sstf-settings-choices)){grid-column:1/-1!important}
    #wpbody-content .sstf-settings-page .sstf-team-editor>summary{grid-template-columns:auto minmax(0,1fr) auto!important}
  }
  #wpbody-content .sstf-admin-central select:not([multiple]){padding-inline-end:calc(var(--sstf-space-5) + var(--sstf-space-2))!important}
  #wpbody-content .sstf-admin-central .sstf-password-field>input{padding-inline-end:calc(var(--sstf-touch) + var(--sstf-space-1))!important}
  #wpbody-content .sstf-settings-page .sstf-team-editor>summary{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;justify-content:stretch!important}
  #wpbody-content .sstf-settings-page :is(.sstf-settings-sections,.sstf-settings-views){overflow-x:auto!important;scrollbar-width:none!important}
  #wpbody-content .sstf-settings-page :is(.sstf-settings-sections,.sstf-settings-views)>.sstf-segmented__item{flex:0 0 auto!important;white-space:nowrap!important}
}
/* owner 2026-10-05 (decision E1): a status is its coloured text with a dot of the same colour beside it — no background, no frame, no ring;
   the text is shown in full (an order-card row wraps the status to the next line instead of cutting it) */
@layer sstf-approved{
  .sstf-status-chip__text{overflow:visible!important;text-overflow:clip!important;white-space:normal!important}
  .sstf-order-card__row{flex-wrap:wrap!important;row-gap:var(--sstf-space-1)!important}
}
/* owner 2026-10-05 (decision E2): central list pages + search (initPaged) */
@layer sstf-approved{
  .sstf-paged-search{display:block!important;width:100%!important;min-height:var(--sstf-touch)!important;margin:0 0 var(--sstf-space-2)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-sizing:border-box!important}
  .sstf-paged-pager{display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-3) 0!important}
  .sstf-paged-pager[hidden]{display:none!important}
}
/* round 2 central requests — B2B CR-11 (more-filters cue), CR-12 (page empty state without frame), CR-13 (draft-photo remove), CR-15 (work card) */
@layer sstf-approved{
  [data-sstf-hscroll-hint]{position:relative!important}
  [data-sstf-hscroll-hint]:has(>[data-sstf-hscroll],>.ss-sales-stage-chips):not(:has(>:is([data-sstf-scroll-end],[data-sstf-scroll-none])))::after{content:""!important;position:absolute!important;inset-block:0!important;inset-inline-end:0!important;width:var(--sstf-touch)!important;pointer-events:none!important;background:url("../icons/ref/256/chevron-left-blue.webp") center/var(--sstf-icon-md) no-repeat,linear-gradient(to left,var(--sstf-surface) 40%,transparent)!important}
  [dir="ltr"] [data-sstf-hscroll-hint]:not(:has(>:is([data-sstf-scroll-end],[data-sstf-scroll-none])))::after{background:url("../icons/ref/256/chevron-right-navy.webp") center/var(--sstf-icon-md) no-repeat,linear-gradient(to right,var(--sstf-surface) 40%,transparent)!important}
  @media (max-width:600px){.ss-sales-stage-chips>a{padding-inline:var(--sstf-space-2)!important}}
  .sstf-central-empty--illustrated:not(:is(dialog,.sstf-central-glass) *){border:0!important;background:none!important}
  .sstf-central-empty:not(:is(dialog,.sstf-central-glass) *)>strong,.sstf-central-empty:not(:is(dialog,.sstf-central-glass) *) .sstf-central-empty__text>strong{font-size:var(--sstf-t-page)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  body.sstf-flow .ss-action-modal button.ss-photo-remove:not([hidden]){padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important}
  dialog[data-sstf-card="large"]:has(.sstf-card-actions) .sstf-card-body{min-height:auto!important}
  .customer-start-card .sstf-banner{padding-inline:var(--sstf-space-3)!important}
}
/* round 2 central requests — ADMIDN CR-16 (settings field icons), CR-17 (profile time / commission), CR-18 (portal link row, report dates), CR-19 (login width) */
@layer sstf-approved{
  .sstf-admin-central .sstf-fields>.sstf-icon-field{position:relative!important}
  .sstf-admin-central .sstf-fields>.sstf-icon-field>.sstf-icon-field__icon{position:absolute!important;inset-inline-start:var(--sstf-space-2)!important;bottom:calc((var(--sstf-control-h) - var(--sstf-icon-md)) / 2)!important;top:auto!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;z-index:1!important}
  .sstf-admin-central .sstf-fields>.sstf-icon-field>:is(input:not([type=checkbox]):not([type=color]):not([type=radio]):not([type=hidden]):not([type=file]),select:not([multiple]),textarea){padding-inline-start:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
  .sstf-icon-field>input[type=time]::-webkit-calendar-picker-indicator,.sstf-icon-field>input[type=date]::-webkit-calendar-picker-indicator{opacity:0!important;cursor:pointer!important}
  
  
  .sstf-identity-auth.sstf-auth-card{max-width:var(--sstf-card-w-max)!important;margin-inline:auto!important}
}
/* round 2 central requests — OPS CR-05 (forbidden icon), CR-06 (shortage options stack, danger gloss), CR-07 (phone pair icon), CR-15 (no frame in frame) */
@layer sstf-approved{
  .sstf-special-state[data-kind="forbidden"]{display:grid!important;justify-items:center!important;text-align:center!important}
  .sstf-special-state[data-kind="forbidden"]::before{content:""!important;display:block!important;width:calc(var(--sstf-icon-lg) * 3)!important;height:calc(var(--sstf-icon-lg) * 3)!important;margin-bottom:var(--sstf-space-3)!important;background:url(../icons/ref/256/lock-yellow-3d.webp) center/contain no-repeat!important}
  .ss-issue-actions{display:flex!important;flex-direction:column!important;gap:var(--sstf-space-2)!important}
  .ss-issue-actions>button{width:100%!important}
  
  .sstf-central-glass #ss-sales-workspace #ss-create-card,.sstf-central-glass #ss-create-card{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
}
/* CR-OPS-17 (decision E2): an item the central pager hides is hidden whatever its own display rule */
@layer sstf-approved{
  [data-sstf-paged]>[hidden]{display:none!important}
}
/* owner decision E1 (2026-10-05), all status components: the central status (StatusRegistry::badge → .sstf-central-status) and the stage-card
   status are the coloured text with a dot of the same colour — no background, no frame — shown in full */
@layer sstf-approved{
  /* the per-state badge rules (.sstf-stage-rows .sstf-stage-card[data-state] …) are more specific — matched here so «لم تبدأ» keeps no background */
  .sstf-central-status,.sstf-stage-card__badge,.sstf-stage-rows .sstf-stage-card[data-state] .sstf-stage-card__badge{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;height:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important}
  .sstf-central-status::before,.sstf-stage-card__badge::before{content:""!important;flex:0 0 auto!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-radius:50%!important;background:currentColor!important}
  .sstf-central-status::after,.sstf-stage-card__badge::after{content:none!important}
}
/* owner 2026-10-06 (signature): a finger on the signature pad draws — the browser no longer takes the move as a page scroll (which cancelled
   the stroke); the pad shows its drawing area */
@layer sstf-approved{
  #account-signature-canvas{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;display:block!important;width:100%!important;height:auto!important;aspect-ratio:8/3!important;border:1px dashed var(--sstf-line-special)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;cursor:crosshair!important}
}
/* owner rule 2026-10-06: the head-row (i) pulses softly to invite a tap (stops once opened or for reduced motion) */
@layer sstf-approved{
  .sstf-head-tool--info:not(.is-seen)>.sstf-icon{animation:sstf-info-pulse 1.8s ease-in-out infinite!important}
  @keyframes sstf-info-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.14);opacity:.75}}
  @media (prefers-reduced-motion:reduce){.sstf-head-tool--info>.sstf-icon{animation:none!important}}
  .sstf-info-popover-text{padding:var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;line-height:1.6!important;color:var(--sstf-ink)!important}
}
/* owner 2026-10-06: a status inside the head-tools row sits at its start, the icon tools follow */
@layer sstf-approved{
  .sstf-head-tools>.receipt-head-status{margin-inline-end:auto!important;display:inline-flex!important;align-items:center!important}
}
/* owner 2026-10-06: the signature pad opener + its «تم التوقيع من قبل …» line */
@layer sstf-approved{
  .account-signature-pad>button{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .account-signature-status{color:var(--sstf-tone-done-fg)!important;font-weight:600!important;margin:var(--sstf-space-2) 0!important}
  .account-signature-error{color:var(--sstf-tone-danger-fg)!important;margin:var(--sstf-space-2) 0 0!important}
}
/* owner 2026-10-06 (corrected by the owner: the green circle is the OLD look): ONE size display everywhere = the APPROVED new product-wizard look
   (#wizard #sizes: a card with a light frame, the size in a white round badge, pale-blue + / − with the count between) — the same declarations on every
   size stepper, plus the same white badge on the read-only size chips and the stocktake rows. Presentation only — inputs, names and values unchanged. */
@layer sstf-approved{
  .ss-modal-sizes>.ss-size-stepper{gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:linear-gradient(180deg,var(--sstf-surface),var(--sstf-surface-idle))!important}
  .ss-modal-sizes>.ss-size-stepper>strong:not([hidden]){display:grid!important;place-items:center!important;width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;margin-inline:auto!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-weight:800!important}
  .ss-modal-sizes>.ss-size-stepper>div{display:grid!important;grid-template-columns:minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr) minmax(24px,1.1fr) minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr)!important;align-items:center!important;gap:var(--sstf-space-1)!important;width:100%!important;max-width:none!important}
  @media(min-width:961px){.ss-modal-sizes>.ss-size-stepper>div{grid-template-columns:minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr) minmax(24px,1.5fr) minmax(calc(var(--sstf-touch) - var(--sstf-space-1)),1fr)!important}}
  .ss-modal-sizes>.ss-size-stepper button[data-delta]{width:auto!important;min-width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;max-width:none!important;max-height:none!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;min-height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-tone-waiting-strong)!important;font-weight:800!important}
  .ss-modal-sizes>.ss-size-stepper input{width:100%!important;min-width:0!important;max-width:none!important;height:calc(var(--sstf-touch) * .75)!important;min-height:0!important;padding:0!important;text-align:center!important}
  .inventory-product-size-chip>b,.stocktake-count-row__fields>strong{display:grid!important;place-items:center!important;width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;margin-inline:auto!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-weight:800!important}
}
/* owner rule 2026-10-06: a card note moved behind (i) sits in the card header beside ×; the hidden note keeps no space */
@layer sstf-approved{
  dialog>header>.sstf-head-tool--info{margin-inline-start:auto!important;flex:0 0 auto!important}
  dialog>header>.sstf-head-tool--info+[data-sstf-dialog-close],dialog>header>.sstf-head-tool--info+[data-ss-dialog-close]{margin-inline-start:var(--sstf-space-1)!important}
  p.sstf-info-note[hidden]{display:none!important}
}

/* == OWNER-BATCH-2026-10-06 A START (product card / pricing / warehouse cards / wizard review / import) == */
@layer sstf-approved{
  /* owner 2026-10-06 (item 1): the ONE central product card = the owner-approved preview «product-card-preview-4» (JS orderCard + PHP productCard,
     same markup). The card is its own size container: every measure follows the card width (cqw) with a readable minimum, so the phone and the
     desktop show the same layout. The card spans the whole row of any list it is put in (one card per row). */
  .sstf-pcard{container:sstf-pcard / inline-size!important;display:block!important;grid-column:1 / -1!important;position:relative!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;counter-increment:sstf-pcard!important;cursor:pointer!important;text-align:start!important;outline:0!important}
  /* R166 (ملاحظة المالك 14/11: «في تعليق وتجميد وشيء مستفز وبطء»): كرت المنتج خارج الشاشة لا يُخطَّط.
     أكبر طلب حقيقي فيه 54 منتجًا، وفتح كاشف المنتجات كان يجمّد المتصفح في إطار واحد 24.2 ثانية (قياس على
     الروبوت) لأن كل كرت يُخطَّط ويُقاس وإن لم يُرَ. content-visibility:auto يجعل المتصفح يتخطّى ما خرج عن
     الشاشة، وcontain-intrinsic-size:auto يحفظ قياسه الأخير فلا يرتجف الشريط. القياس: 24.2 ثانية → 4.0 ثانية.
     لا شيء في المحتوى أو العقد تغيّر: الكرت يُرسم كما هو حين يصل إليه التمرير. */
  .sstf-pcard{content-visibility:auto;contain-intrinsic-size:auto var(--sstf-pcard-h,226px)}
  .sstf-pcard[hidden]{display:none!important}
  .sstf-pcard__in{direction:ltr!important;display:grid!important;grid-template-columns:33.5% minmax(0,1fr)!important;gap:max(var(--sstf-space-2),2cqw)!important;padding:max(var(--sstf-space-2),1.4cqw)!important;border:1px solid var(--sstf-line-card)!important;border-radius:max(var(--sstf-radius-card),2.2cqw)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;transition:box-shadow .15s!important}
  .sstf-pcard:hover>.sstf-pcard__in{box-shadow:var(--sstf-sh-card)!important}
  /* R188 (أمر المالك 17/11): النسخة المكرَّرة **مسودة** — إطارها برتقالي حتى يفتحها صاحبها ويحفظها حفظًا نهائيًّا.
     شكل فقط: لا تدخل مخزونًا ولا حسابًا ولا يراها العميل (active=0). */
  /* R190 (أمر المالك 17/11): «بدي إطار أحمر بالمنتج أو الحقل اللي لازم أصححو» — علامة الخطأ الموضعية
     المركزية: إطار أحمر، وسببه مكتوب على الكرت، ووميض خفيف حين يُنتقل إليه. */
  :is(.sstf-pcard,.pricing-product-card,.sstf-record,.ss-intake-product).is-missing-value{position:relative!important;border-radius:var(--sstf-radius-card)!important;outline:2px solid var(--sstf-tone-danger-strong,#d1463b)!important;outline-offset:2px!important}
  :is(.sstf-pcard,.pricing-product-card,.sstf-record,.ss-intake-product).is-missing-value[data-sstf-error]::after{content:attr(data-sstf-error)!important;position:absolute!important;inset-block-start:0!important;inset-inline-start:0!important;z-index:4!important;padding:2px var(--sstf-space-2)!important;border-end-end-radius:var(--sstf-radius-card)!important;background:var(--sstf-tone-danger-strong,#d1463b)!important;color:#fff!important;font-size:var(--sstf-t-small)!important;font-weight:700!important}
  :is(.sstf-pcard,.pricing-product-card,.sstf-record,.ss-intake-product).is-flash{animation:sstf-error-flash .7s ease-in-out 2!important}
  @keyframes sstf-error-flash{0%,100%{outline-color:var(--sstf-tone-danger-strong,#d1463b)}50%{outline-color:transparent}}
  :is(input,select,textarea).is-missing-value{outline:2px solid var(--sstf-tone-danger-strong,#d1463b)!important;outline-offset:1px!important}
  .sstf-pcard.is-draft>.sstf-pcard__in{border-color:var(--sstf-tone-action-strong,#e07b1f)!important;border-width:2px!important;background:var(--sstf-tone-action-bg,#fdeedd)!important}
  .sstf-duplicate-form{display:contents!important}
  .sstf-duplicate-form--hidden{display:none!important}
  /* R188 (أمر المالك 17/11): «زرّ التكرار على نفس الكرت بمكان مناسب لا يعيق» — في صفّ قرار الكرت:
     يبدأ من أوّله، بحجم مضغوط، فوق طبقة الرابط فلا يفتح الكرت، ولا يزاحم الاسم ولا ⋯. */
  .sstf-pcard__switch>.sstf-duplicate-form--card{flex:1 1 0!important;min-width:0!important;display:flex!important}
  .sstf-pcard__switch>.sstf-duplicate-form--card>.sstf-duplicate-button{margin:0!important;flex:1 1 auto!important;justify-content:center!important;min-height:var(--sstf-touch)!important;padding-inline:max(var(--sstf-space-2),1.4cqw)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;white-space:nowrap!important}
  .sstf-pcard__switch:has(>.sstf-duplicate-form--card){justify-content:flex-start!important;gap:max(var(--sstf-space-2),1.4cqw)!important;flex-wrap:wrap!important}
  /* R188: زرّ «تعديل» على كرت المسودة — بجانب «تكرار» بالحجم نفسه */
  .sstf-pcard__switch>.sstf-draft-edit{margin:0!important;flex:1 1 0!important;min-width:0!important;justify-content:center!important;min-height:var(--sstf-touch)!important;padding-inline:max(var(--sstf-space-2),1.4cqw)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;white-space:nowrap!important;position:relative!important;z-index:3!important}
  .sstf-pcard:focus-visible>.sstf-pcard__in{outline:var(--sstf-ring-2) solid var(--sstf-tone-waiting-strong)!important;outline-offset:var(--sstf-ring-offset-2)!important}
  /* the photo: the whole product (contain) on a light gradient, i at its top-left corner, dots only with several images */
  .sstf-pcard__photo{position:relative!important;display:grid!important;place-items:center!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:max(var(--sstf-radius-field),1.8cqw)!important;overflow:hidden!important;aspect-ratio:505 / 460!important;background:radial-gradient(110% 85% at 50% 45%,var(--sstf-surface-segmented) 0%,var(--sstf-tone-neutral-border) 100%)!important}
  .sstf-pcard__img{position:absolute!important;inset:0!important;display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:4%!important;border:0!important;border-radius:0!important;background:transparent!important;object-fit:contain!important}
  .sstf-pcard__noimg{display:grid!important;justify-items:center!important;gap:var(--sstf-space-1)!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  .sstf-pcard__noimg>.sstf-icon{width:max(var(--sstf-icon-lg),9cqw)!important;height:max(var(--sstf-icon-lg),9cqw)!important;opacity:.8!important}
  .sstf-pcard__info{position:absolute!important;z-index:2!important;top:5%!important;left:5%!important;right:auto!important;bottom:auto!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:max(var(--sstf-icon-md),4cqw)!important;height:max(var(--sstf-icon-md),4cqw)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:1.5px solid var(--sstf-ink)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;box-shadow:var(--sstf-sh-card)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;cursor:pointer!important}
  .sstf-pcard__info::after{content:""!important;position:absolute!important;inset:calc(var(--sstf-space-2) * -1)!important}
  .sstf-pcard__info>svg{width:70%!important;height:70%!important;pointer-events:none!important}
  .sstf-pcard__dots{position:absolute!important;z-index:1!important;bottom:5%!important;left:0!important;right:0!important;display:flex!important;justify-content:center!important;gap:max(var(--sstf-space-1),1cqw)!important;pointer-events:none!important}
  .sstf-pcard__dots>i{width:max(calc(var(--sstf-space-1) * 1.5),1.2cqw)!important;height:max(calc(var(--sstf-space-1) * 1.5),1.2cqw)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-neutral-strong)!important}
  .sstf-pcard__dots>i.is-on{background:var(--sstf-tone-waiting-strong)!important}
  /* beside the photo: name · code · chip, then the number and the ⋮ at the top right, the facts at the bottom; what a screen appends to the
     content slot (.inventory-product-card-content) joins this grid — a status right under the name block, anything else under the facts */
  /* R165 (قرار المالك 12/11): عمودان لا ثلاثة — رقم الترقيم نزل تحت الثلاث نقاط، فاتّسع عمود الاسم بعرض الرقم وفجوته */
  .sstf-pcard__side{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-auto-rows:auto!important;align-content:space-between!important;align-items:start!important;column-gap:max(var(--sstf-space-1),1.2cqw)!important;row-gap:max(var(--sstf-space-1),1cqw)!important;min-width:0!important;margin:0!important;padding:0!important}
  .sstf-pcard__names{grid-row:1!important;grid-column:1!important;order:1!important;direction:ltr!important;display:grid!important;justify-items:start!important;align-content:start!important;gap:max(calc(var(--sstf-space-1) / 2),.3cqw)!important;min-width:0!important;margin:0!important;padding:0!important}
  .sstf-pcard__name{display:block!important;justify-self:stretch!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;color:var(--sstf-ink)!important;font-size:max(var(--sstf-t-body),2.65cqw)!important;font-weight:800!important;line-height:1.2!important;text-align:left!important;overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important} /* 2B title contract: ONE line, no wrap, no letter break; a long name scrolls inside its own region only (manual), the card never grows or overflows */
  .sstf-pcard__code{margin:0!important;color:var(--sstf-ink-muted)!important;font-size:max(var(--sstf-t-small),calc(var(--sstf-t-small) * .885),1.75cqw)!important;line-height:1.3!important;direction:ltr!important}
  .sstf-pcard__chip{direction:rtl!important;display:inline-block!important;margin-top:max(calc(var(--sstf-space-1) / 2),.4cqw)!important;padding:max(calc(var(--sstf-space-1) / 2),.3cqw) max(var(--sstf-space-2),1.4cqw)!important;border-radius:max(var(--sstf-space-2),1cqw)!important;background:var(--sstf-tone-waiting-bg)!important;color:var(--sstf-tone-waiting-fg)!important;font-size:max(calc(var(--sstf-t-small) * .885),1.6cqw)!important;font-weight:700!important;line-height:1.4!important}
  .sstf-pcard__names>.ss-product-state-stack{direction:rtl!important;display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-1)!important;margin:0!important}
  .sstf-pcard__no{grid-row:2!important;grid-column:2!important;order:4!important;justify-self:center!important;display:grid!important;place-items:center!important;width:max(var(--sstf-icon-lg),5.3cqw)!important;height:max(var(--sstf-icon-lg),5.3cqw)!important;margin:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-waiting-stage-bg)!important;color:var(--sstf-tone-waiting-strong)!important;font-size:max(var(--sstf-t-body),2.7cqw)!important;font-weight:700!important;line-height:1!important}
  .sstf-pcard__no:empty::before{content:counter(sstf-pcard)!important}
  .sstf-pcard__no[hidden]{display:none!important}
  .sstf-pcard__menu{grid-row:1!important;grid-column:2!important;order:2!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:max(var(--sstf-icon-lg),4.6cqw)!important;height:max(var(--sstf-icon-lg),4.6cqw)!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-size:max(var(--sstf-t-card),2.4cqw)!important;font-weight:900!important;line-height:1!important;cursor:pointer!important}
  .sstf-pcard__menu[hidden]{display:none!important}
  /* R165 (قرار المالك 12/11): زرّ الثلاث نقاط كان 32 بكسل بلا حدّ — لا يُرى أنه زر. صار 40 بكسل بحدّ ظاهر؛
     ومساحة الضغط 44 تأتي من مساحة اللمس المركزية (i.sstf-touch) لا من قاعدة خاصة. */
  .sstf-pcard__in>.sstf-pcard__side>:is(.sstf-pcard__menu,.ss-card-menu,.inventory-quick-actions){position:relative!important;width:max(calc(var(--sstf-icon-lg) * 1.25),5.6cqw)!important;height:max(calc(var(--sstf-icon-lg) * 1.25),5.6cqw)!important;border:1.5px solid var(--sstf-line-card)!important;font-size:max(var(--sstf-t-body),3cqw)!important}
  /* central request (warehouse, owner 2026-10-06): a prebuilt ⋮ (menu_html) takes the same place; a card that is a link (href / link_html) is
     covered by its anchor — the i, the ⋮, the sizes fact and the slot controls stay above it */
  .sstf-pcard__side>:is(.ss-card-menu,.inventory-quick-actions):not(.sstf-pcard__menu){grid-row:1!important;grid-column:2!important;order:2!important;position:relative!important;inset:auto!important;z-index:3!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:max(var(--sstf-icon-lg),4.6cqw)!important;height:max(var(--sstf-icon-lg),4.6cqw)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-size:max(var(--sstf-t-card),2.4cqw)!important;font-weight:900!important;line-height:1!important;cursor:pointer!important} /* 2B menu geometry: a prebuilt ⋯ (menu_html) gets the same geometry as the central ⋮ (2502) */
  .sstf-pcard__side>:is(.ss-card-menu,.inventory-quick-actions)[hidden]{display:none!important}
  .sstf-pcard>.inventory-product-card-link{position:absolute!important;inset:0!important;z-index:1!important;display:block!important;border-radius:max(var(--sstf-radius-card),2.2cqw)!important}
  .sstf-pcard:has(>.inventory-product-card-link)>.sstf-pcard__in :is(.sstf-pcard__menu,.sstf-pcard__switch,.sstf-pcard__fact--sizes[data-sizes],.sstf-pcard__slot>*){position:relative!important;z-index:2!important}
  /* R180 (بلاغ المالك 15/11): صفّ القرار في الكرت — مفتاح واضح بعرض الكرت، فوق طبقة الرابط. كان المفتاح في فتحة الثلاث نقاط
     فلا يُرفع (فيفتح الكرت بدل أن يقلب الحالة) ولا يأخذ تخطيطه (تنسيقه مكتوب لشبكة حقول الإعدادات: grid-column:1/-1). */
  .sstf-pcard__switch{grid-column:1/-1!important;order:6!important;display:flex!important;min-width:0!important;margin-block-start:max(var(--sstf-space-1),.7cqw)!important}
  .sstf-pcard__switch>.account-check{width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;margin:0!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:999px!important;background:var(--sstf-surface)!important;font-weight:800!important}
  .sstf-pcard__switch>.account-check>span{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  /* 2B-P2: on a card that is a link, the title region sits above the overlay so it can be dragged / swiped / wheeled; a plain click on it still opens the card's own link (ss-product-components.js, pcard title drag) */
  .sstf-pcard:has(>.inventory-product-card-link)>.sstf-pcard__in .sstf-pcard__name{position:relative!important;z-index:2!important}
  .sstf-pcard>.inventory-product-card-link:focus-visible{outline:var(--sstf-ring-2) solid var(--sstf-tone-waiting-strong)!important;outline-offset:var(--sstf-ring-offset-2)!important}
  /* the four facts in one row: sizes blue · quantity green · price red · total gold, the unit under the value */
  .sstf-pcard__facts{grid-column:1 / -1!important;order:5!important;align-self:end!important;direction:ltr!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:max(var(--sstf-space-1),.7cqw)!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  .sstf-pcard__fact{direction:rtl!important;display:grid!important;justify-items:center!important;align-content:center!important;gap:max(calc(var(--sstf-space-1) / 4),.3cqw)!important;min-width:0!important;margin:0!important;padding:max(calc(var(--sstf-space-1) * 1.25),1cqw) max(calc(var(--sstf-space-1) / 2),.4cqw)!important;border:1px solid transparent!important;border-radius:max(calc(var(--sstf-radius-field) * .83),1.3cqw)!important;text-align:center!important}
  .sstf-pcard__fact>.sstf-icon{width:max(calc(var(--sstf-icon-md) * .92),5.6cqw)!important;height:max(calc(var(--sstf-icon-md) * .92),5.6cqw)!important;margin:0!important;object-fit:contain!important}
  .sstf-pcard__fact>small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--sstf-ink-soft)!important;font-size:max(var(--sstf-t-small),calc(var(--sstf-t-small) * .81),1.85cqw)!important;font-weight:600!important;line-height:1.3!important}
  .sstf-pcard__fact>b{max-width:100%!important;color:var(--sstf-ink)!important;font-size:max(var(--sstf-t-small),2.6cqw)!important;font-weight:800!important;line-height:1.25!important;unicode-bidi:isolate!important}
  /* 2B fact overflow safety (frozen matrix: a free-text fact such as «ملاحظات» can be long): a non-numeric value stays ONE compact line in the card; the complete value is in the DOM and in the central details card (card tap) */
  .sstf-pcard__fact[data-text]>b{display:block!important;width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important}
  .sstf-pcard-detail__facts>.sstf-pcard__fact[data-text]>b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  /* 2B stock fact (central presentation policy): the localized stock meaning is never hidden — its prefix label and a status-only phrase wrap inside the same fact, like the details card above */
  .sstf-pcard__fact.sstf-pcard__fact--stock>small,.sstf-pcard__fact.sstf-pcard__fact--stock[data-text]>b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  /* 2B pricing status fact (central presentation policy): the unpriced customer-price STATUS phrase (data-text is set only while the value is non-numeric) wraps inside its fact like the stock status above — never ellipsized */
  .sstf-pcard__fact[data-pricing-card-price][data-text]>b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  .sstf-pcard__fact>em{color:var(--sstf-ink-soft)!important;font-style:normal!important;font-size:max(var(--sstf-t-small),calc(var(--sstf-t-small) * .77),1.7cqw)!important;font-weight:700!important;line-height:1.2!important}
  .sstf-pcard__fact[data-tone="blue"]{background:var(--sstf-tone-waiting-stage-bg)!important;border-color:var(--sstf-tone-waiting-border)!important}
  .sstf-pcard__fact[data-tone="green"]{background:var(--sstf-tone-done-stage-bg)!important;border-color:var(--sstf-tone-done-border)!important}
  .sstf-pcard__fact[data-tone="red"]{background:var(--sstf-tone-danger-stage-bg)!important;border-color:var(--sstf-tone-danger-border)!important}
  .sstf-pcard__fact[data-tone="gold"]{background:var(--sstf-tone-progress-stage-bg)!important;border-color:var(--sstf-tone-progress-border)!important}
  /* item 2: the sizes fact is a button — «N مقاسات» with several sizes, its icon taps (no motion when the device asks for less motion) */
  .sstf-pcard__fact--sizes[data-sizes]{cursor:pointer!important}
  .sstf-pcard__fact--sizes[data-sizes]:hover{border-color:var(--sstf-tone-waiting-strong)!important}
  .sstf-pcard__fact--sizes[data-sizes]:focus-visible{outline:var(--sstf-ring-2) solid var(--sstf-tone-waiting-strong)!important;outline-offset:var(--sstf-ring-offset-1)!important}
  .sstf-pcard__fact--sizes>b{white-space:normal!important}
  .sstf-pcard__fact--sizes[data-sizes]>.sstf-icon{animation:sstf-pcard-tap 1.8s ease-in-out infinite!important}
  @keyframes sstf-pcard-tap{0%,100%{transform:scale(1) rotate(0)}40%{transform:scale(1.14) rotate(-8deg)}60%{transform:scale(1.06) rotate(6deg)}}
  @media (prefers-reduced-motion:reduce){.sstf-pcard__fact--sizes[data-sizes]>.sstf-icon{animation:none!important}}
  /* the content slot of the callers: no box of its own — its children join the side grid (a status under the name block, the rest under the facts) */
  .sstf-pcard__side>.sstf-pcard__slot{display:contents!important;pointer-events:auto!important}
  .sstf-pcard__slot>*{grid-column:1 / -1!important;order:6!important;min-width:0!important;margin:0!important;direction:rtl!important}
  .sstf-pcard__slot>:is(.sstf-central-status,.ss-product-state-stack){order:4!important;justify-self:start!important;position:static!important}
  .sstf-pcard__slot>[hidden]{display:none!important}
  /* 2B pricing badge: the central card owns the frozen placement (R1 cascade result) — centred full-width row beneath the name */
  .sstf-pcard__slot>.sstf-central-status.pricing-card-status{order:4!important;justify-self:center!important;align-self:center!important;position:static!important;margin:var(--sstf-space-2) auto 0!important;width:auto!important;max-width:100%!important}
  /* 2B supplier special state (owner decision): the central card owns the only surviving distinction — the fade */
  .sstf-pcard.ss-supplier-original{opacity:.65!important}
  /* 2B duplicate item number: hide the redundant slot copy ONLY when the same card already shows its number circle (unique contexts keep theirs) */
  .sstf-pcard:has(>.sstf-pcard__in>.sstf-pcard__side>.sstf-pcard__no:not([hidden]))>.sstf-pcard__in .sstf-pcard__slot>.sstf-offer-item__no{display:none!important}
  /* 2B picker compatibility: the selected state of a picker card on the central frame (same colour/ring as the legacy rule) */
  .sstf-pcard.is-selected>.sstf-pcard__in{border-color:rgb(var(--sstf-domain-rgb))!important;box-shadow:0 0 0 var(--sstf-ring-2) rgba(var(--sstf-domain-rgb),.25)!important}
  .sstf-pcard__slot>.ss-product-select{order:6!important;justify-self:start!important;display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;position:static!important;cursor:pointer!important}
  .sstf-pcard__slot>.ss-picker-add{order:6!important;justify-self:start!important;min-height:var(--sstf-touch)!important}
  .sstf-pcard__note{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important;text-align:start!important}
  .sstf-pcard__pick{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;cursor:pointer!important}
  /* a narrow card (the phone): the photo takes the height of the side, the values stay on one line (the preview's own phone rules) */
  @container sstf-pcard (max-width:37.5rem){
    .sstf-pcard__photo{aspect-ratio:1 / 1!important;align-self:start!important;min-height:calc(var(--sstf-touch) * 2.5)!important} /* R164: الصورة مربّع بجانب الاسم، لا عمود يمتد ليسدّ فراغ العمود — الفراغ زال لأن اللوحات نزلت تحت */
    .sstf-pcard__fact{padding:calc(var(--sstf-space-1) * 1.25) calc(var(--sstf-space-1) / 4)!important}
    .sstf-pcard__fact>b{font-size:max(var(--sstf-t-small),calc(var(--sstf-t-small) * .92))!important;letter-spacing:-.015em!important}
    .sstf-pcard__fact>b[dir="ltr"]{white-space:nowrap!important}
    .sstf-pcard__fact>small{font-size:max(var(--sstf-t-small),calc(var(--sstf-t-small) * .77))!important;white-space:normal!important;text-overflow:clip!important}
  }
  /* any list of product cards: one card per row (the card is horizontal) */
  .sstf-pcard-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--sstf-space-3)!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  /* items 2–3: the sizes card and the product details card (centred central cards; sizes outside the card container, so no cqw here) */
  .sstf-pcard-detail{display:grid!important;gap:var(--sstf-space-3)!important;direction:rtl!important}
  .sstf-pcard-detail__photo{position:relative!important;display:grid!important;place-items:center!important;aspect-ratio:4 / 3!important;overflow:hidden!important;border-radius:var(--sstf-radius-card)!important;background:radial-gradient(110% 85% at 50% 45%,var(--sstf-surface-segmented) 0%,var(--sstf-tone-neutral-border) 100%)!important}
  .sstf-pcard-detail__photo>img{position:absolute!important;inset:0!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:4%!important;object-fit:contain!important;border-radius:0!important}
  .sstf-pcard-detail__meta{display:grid!important;justify-items:start!important;gap:calc(var(--sstf-space-1) * .75)!important}
  .sstf-pcard-detail__meta>strong{display:block!important;justify-self:stretch!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.3!important;overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap!important;text-overflow:clip!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important} /* Command 3: the details title owns the closed 2B title contract (central-system.css .sstf-pcard__name) in both directions; owner 2026-10-13: no visible title scrollbar here so the card height never depends on the title length (touch / trackpad / Shift+wheel scroll; the full name stays reachable by the same internal scroll) — ONE line, no wrap, no letter break, no ellipsis; a long name scrolls inside its own region; it no longer depends on an inherited white-space (legacy app-ui.css:5567 [dir="ltr"] nowrap / RTL normal) */
  dialog.sstf-pcard-modal[data-sstf-card][open]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head)>.sstf-central-glass__title{display:block!important;min-width:0!important;max-width:100%!important;overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap!important;text-overflow:clip!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important} /* Command 3 (owner 2026-10-13): the Product details card head title is the product name too - same one-line contract (also when the head is [data-sstf-wrapped]), so the card height never depends on the name length; only this card, other central heads keep the 2C wrapped-title contract */
  .sstf-pcard-detail__meta>small{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-body)!important}
  .sstf-pcard-detail .sstf-pcard__chip{margin:0!important;padding:calc(var(--sstf-space-1) / 2) var(--sstf-space-3)!important;border-radius:var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important}
  .sstf-pcard-detail__facts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
  .sstf-pcard-detail__facts>.sstf-pcard__fact{gap:calc(var(--sstf-space-1) / 2)!important;padding:calc(var(--sstf-space-2) * 1.25) calc(var(--sstf-space-1) * 1.5)!important;border-radius:var(--sstf-radius-field)!important}
  .sstf-pcard-detail__facts>.sstf-pcard__fact>.sstf-icon{width:calc(var(--sstf-icon-lg) * 1.07)!important;height:calc(var(--sstf-icon-lg) * 1.07)!important;animation:none!important}
  .sstf-pcard-detail__facts>.sstf-pcard__fact>small{font-size:calc(var(--sstf-t-small) * .96)!important;white-space:normal!important}
  .sstf-pcard-detail__facts>.sstf-pcard__fact>b{font-size:var(--sstf-t-card)!important;white-space:normal!important;letter-spacing:0!important}
  .sstf-pcard-detail__facts>.sstf-pcard__fact>em{font-size:var(--sstf-t-small)!important}
  .sstf-pcard-detail__title{margin:0!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}
  .sstf-pcard-sizes{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(calc(var(--sstf-touch) * 1.85),1fr))!important;gap:var(--sstf-space-2)!important;direction:rtl!important}
  .sstf-pcard-sizes>span{display:grid!important;justify-items:center!important;gap:calc(var(--sstf-space-1) / 2)!important;padding:calc(var(--sstf-space-2) * 1.25) calc(var(--sstf-space-1) * 1.5)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:calc(var(--sstf-radius-field) * 1.17)!important;background:var(--sstf-tone-waiting-stage-bg)!important;text-align:center!important}
  .sstf-pcard-sizes>span>b{color:var(--sstf-ink)!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;line-height:1.2!important;unicode-bidi:isolate!important}
  .sstf-pcard-sizes>span>small{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}

  /* item 5 (owner screenshot 03): the pricing card on a phone showed the products squeezed into one narrow column beside the exchange rate.
     Root cause: central-system.js markLongForms() counts the iconized fields of the WHOLE #pricing-form (rate + the nested pricing work cards,
     ≥5) and marks it .sstf-form-long — the two-column «long form» grid with align-items:end; the rate field (its section flattened by
     display:contents) took column 2 at the bottom and the products section column 1. The pricing form is a page of cards, not a long form:
     one column. The product list is the central one-column card list. */
  #pricing-form.sstf-form-long{grid-template-columns:minmax(0,1fr)!important;align-items:start!important}
  #pricing-products.sstf-pcard-list{margin:0!important}

  /* item 6 (owner screenshot 05): the product wizard review — «size × quantity» chips were five fixed columns, so a chip wider than its
     column ran over its neighbours. The chips now wrap to as many columns as fit, each value on one line, read left-to-right. */
  #wizard #product-summary>div:has(>.size-chip){grid-template-columns:repeat(auto-fill,minmax(calc(var(--sstf-touch) * 1.5),1fr))!important;gap:var(--sstf-space-1)!important}
}
/* == OWNER-BATCH-2026-10-06 A END == */

/* == OWNER-BATCH-2026-10-06 B START (accounting) == */
@layer sstf-approved{
  /* item 9 (owner 2026-10-06): on a phone each fund movement is one compact ordered row — type (with its small mark) and the signed amount pill on
     the first line, date and reference on the second; no column titles, no big centred mark */
  @media screen and (max-width:700px){
    .fund-section .sstf-ledger{overflow:visible!important}
    
    
    
    
    
    
    
    
    .fund-section .sstf-ledger__mark{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;margin:0!important}
    .fund-section .sstf-ledger__mark .sstf-icon{width:calc(var(--sstf-icon-md) * .6)!important;height:calc(var(--sstf-icon-md) * .6)!important}
    .fund-section .sstf-ledger__amount{display:inline-flex!important;gap:var(--sstf-space-1)!important;align-items:baseline!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;white-space:nowrap!important;font-size:var(--sstf-t-body)!important}
    .fund-section .sstf-ledger__amount>span{display:inline!important}
  }

  /* item 14: the fund tools tiles wrap their text inside the tile (2 per row) — no label is cut at the card edge */
  .fund-tool-links.sstf-icon-actions>.sstf-icon-action{min-width:0!important;height:auto!important;padding-block:var(--sstf-space-2)!important;justify-content:flex-start!important}
  
  .fund-tool-links .sstf-icon-action>.sstf-icon{flex:none!important}

  /* item 10: «كل التقارير» opens a centred card that lists the reports / actions one per row (scrolls inside the card) */
  .rep-all-open.sstf-icon-actions{margin:var(--sstf-space-2) 0 var(--sstf-space-3)!important}
  .rep-all-open>.sstf-icon-action{width:100%!important}
  .rep-action-tiles>.rep-all-list.sstf-icon-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;margin:0!important}
  .rep-all-list>.sstf-icon-action{width:100%!important;justify-content:flex-start!important;white-space:normal!important;text-align:start!important;height:auto!important;padding-block:var(--sstf-space-2)!important}
  .rep-all-list>.sstf-icon-action>.sstf-icon{flex:none!important}

  /* item 12: the report note's (i) is a little larger than the usual head tool icon */
  .rep-info-tool>.sstf-icon{width:calc(var(--sstf-icon-lg) * 1.2)!important;height:calc(var(--sstf-icon-lg) * 1.2)!important}
  @media screen{.rep-print-note{display:none!important}}

  /* item 11: a large report record is a real table — scrolls horizontally AND vertically inside its frame, sticky readable head, no letter wrapping */
  :is(.acc-report-scroll,.rep-table-scroll){max-width:100%!important;max-height:70vh!important;overflow:auto!important;overscroll-behavior:contain!important}
  :is(.acc-report-scroll,.rep-table-scroll)>table{display:table!important;table-layout:auto!important;width:max-content!important;min-width:100%!important}
  :is(.acc-report-scroll,.rep-table-scroll)>table>thead>tr>th{position:sticky!important;top:0!important;z-index:1!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
  :is(.acc-report-scroll,.rep-table-scroll)>table>tbody>tr>td{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;max-width:none!important}
  
  @media print{:is(.acc-report-scroll,.rep-table-scroll){max-height:none!important;overflow:visible!important}:is(.acc-report-scroll,.rep-table-scroll)>table{width:100%!important}:is(.acc-report-scroll,.rep-table-scroll)>table>tbody>tr>td{white-space:normal!important}}

  /* item 13 (reference owner-batch-2026-10-06/13): «الحسابات والتقارير» — tabs, filter card, tinted KPI tiles, records list, pager, exports */
  .rep-page .rep-tabs .sstf-segmented__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:none!important}
  .rep-page .rep-tabs>.sstf-segmented__item{gap:var(--sstf-space-2)!important}
  /* reference 13: the three report tabs stay on ONE row (the wrapping segmented rule of item 15 is for long filter rows) — a long label breaks inside its own tab */
  .rep-page .rep-tabs{flex-wrap:nowrap!important}
  .rep-page .rep-tabs>.sstf-segmented__item{flex:1 1 0!important;min-width:0!important;white-space:normal!important;text-align:center!important;font-size:var(--sstf-t-small)!important;line-height:1.25!important;padding-inline:var(--sstf-space-1)!important}
  .rep-page .rep-tabs .sstf-segmented__icon{width:var(--sstf-t-card)!important;height:var(--sstf-t-card)!important}
  .rep-filter{margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .rep-filter>form{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important}
  .rep-filter__fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin:0!important}
  .rep-filter__fields>label{min-width:0!important;margin:0!important;font-size:var(--sstf-t-body)!important;font-weight:600!important}
  
  .rep-filter__fields :is(select,input){width:100%!important;min-width:0!important}
  .rep-filter__go{width:100%!important;background:var(--sstf-tone-waiting-strong)!important;border-color:var(--sstf-tone-waiting-strong)!important;color:var(--sstf-surface)!important}
  @media (max-width:520px){.rep-filter__fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
  .rep-kpis{margin:0 0 var(--sstf-space-3)!important}
  .rep-kpis__currency{margin:var(--sstf-space-2) 0 var(--sstf-space-1)!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important;text-align:start!important}
  .rep-kpis .rep-kpis__grid{grid-template-columns:repeat(auto-fit,minmax(calc(var(--sstf-space-6) * 3),1fr))!important;gap:var(--sstf-space-2)!important;margin:0!important}
  .rep-kpis .rep-kpi{flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-3) var(--sstf-space-1)!important;text-align:center!important;min-width:0!important}
  .rep-kpis .rep-kpi .sstf-fact__text{display:flex!important;flex-direction:column-reverse!important;align-items:center!important;min-width:0!important}
  .rep-kpis .rep-kpi .sstf-fact__value{font-size:var(--sstf-t-card)!important;font-weight:800!important;}
  .rep-kpis .rep-kpi .sstf-fact__label{font-size:var(--sstf-t-small)!important}
  .rep-kpis .rep-kpi .sstf-fact__sub{order:-1!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .rep-kpi--waiting{background:var(--sstf-tone-waiting-stage-bg)!important;border-color:var(--sstf-tone-waiting-border)!important}
  .rep-kpi--action{background:var(--sstf-tone-action-bg)!important;border-color:var(--sstf-tone-action-border)!important}
  .rep-kpi--progress{background:var(--sstf-tone-progress-stage-bg)!important;border-color:var(--sstf-tone-progress-border)!important}
  .rep-kpi--done{background:var(--sstf-tone-done-stage-bg)!important;border-color:var(--sstf-tone-done-border)!important}
  .rep-kpi--danger{background:var(--sstf-tone-danger-stage-bg)!important;border-color:var(--sstf-tone-danger-border)!important}
  .rep-list{padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .rep-list__head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-2)!important}
  .rep-list__head>h2{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;font-size:var(--sstf-t-card)!important}
  .rep-list__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:none!important}
  .rep-list__head>p{margin:0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  
  .rep-table-scroll .rep-col-toggle{width:var(--sstf-touch)!important;padding:0!important;text-align:center!important}
  .rep-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--sstf-ink-soft)!important;cursor:pointer!important}
  .rep-toggle::before{content:""!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-inline-start:1.5px solid currentColor!important;border-bottom:1.5px solid currentColor!important;transform:rotate(-45deg)!important;transition:transform .15s ease!important}
  .rep-toggle[aria-expanded="true"]::before{transform:rotate(135deg)!important}
  
  .rep-detail__list{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2) var(--sstf-space-4)!important;margin:0!important}
  .rep-detail__list>div{display:grid!important;gap:0!important;min-width:0!important}
  .rep-detail__list dt{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .rep-detail__list dd{margin:0!important;font-weight:600!important;}
  .rep-status{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;padding:0!important;background:none!important;font-weight:700!important;color:var(--sstf-tone-neutral-fg)!important}
  .rep-status::before{content:""!important;flex:none!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-radius:50%!important;background:currentColor!important}
  .rep-status[data-tone="done"]{color:var(--sstf-tone-done-fg)!important}
  .rep-status[data-tone="action"]{color:var(--sstf-tone-action-fg)!important}
  .rep-status[data-tone="progress"]{color:var(--sstf-tone-progress-fg)!important}
  .rep-status[data-tone="waiting"]{color:var(--sstf-tone-waiting-fg)!important}
  .rep-status[data-tone="danger"]{color:var(--sstf-tone-danger-fg)!important}
  .rep-flag{width:var(--sstf-space-5)!important;height:auto!important;margin-inline-end:var(--sstf-space-1)!important;vertical-align:middle!important;border-radius:calc(var(--sstf-space-1) / 2)!important}
  .rep-pager{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-3) 0 0!important}
  .rep-pager__size{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;font-size:var(--sstf-t-body)!important}
  .rep-pager__size>select{width:auto!important;min-width:calc(var(--sstf-space-6) * 2)!important}
  .rep-pager__nav{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
  .rep-pager__nav>button{min-width:var(--sstf-touch)!important;padding:0!important}
  .rep-pager__nav>#report-page{min-width:var(--sstf-touch)!important;text-align:center!important;font-weight:700!important}
  .rep-exports{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-3) 0!important}
  .rep-exports>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;min-width:0!important;white-space:normal!important}
  .rep-exports>button>.sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;flex:none!important}
  .rep-exports>#report-message{grid-column:1/-1!important}
  .rep-exports>#report-message:empty{display:none!important}
}
/* == OWNER-BATCH-2026-10-06 B END == */

/* == OWNER-BATCH-2026-10-06 C START (general + operations) == */
@layer sstf-approved{
  /* item 3 (owner 2026-10-06, «لا حاويات»): a card sits directly on the page or on its mother card.
     (a) app-ui.css pads every main>section — the large mother card too, so its head and body sat as a second frame inside it */
  body.sstf-flow main>section.sstf-large-card{padding:0!important}
  /* (b) app-ui.css draws every <section> as a card; a section that only holds a list of cards is not a frame of its own */
  :where(body.sstf-flow,.sstf-admin) section:not(.sstf-large-card,.finance-action-section,.ss-order-identity,.sstf-banner):has(>:is(.inventory-product-card,.sstf-order-card,.sstf-record,.sstf-central-card,.warehouse-order-row,.stocktake-history-row,.ss-supplier-alternative-group),>:is(div,nav,form)>:is(.inventory-product-card,.sstf-order-card,.sstf-record,.sstf-central-card,.warehouse-order-row,.stocktake-history-row,.ss-supplier-alternative-group)){padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

  /* item 7: «استيراد منتجات» — «إضافة رابط منتج» and «سحب منتج معد مسبقًا» side by side at the top, the select-all / add bar right under them,
     then the list; no frame around either step and no inner scroll (the card body scrolls), so the bar never floats over the list */
  #inventory-import-sheet .inventory-import-source[hidden],#inventory-import-sheet .inventory-import-catalog[hidden]{display:none!important}
  #inventory-import-sheet .inventory-import-source:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;max-height:none!important;overflow:visible!important}
  #inventory-import-sheet .inventory-import-source>:is(.sstf-icon-action,.inventory-source-next){justify-self:stretch!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:100%!important;min-width:0!important;min-height:var(--sstf-touch)!important;margin:0!important;white-space:normal!important;text-align:center!important;line-height:1.3!important}
  #inventory-import-sheet .inventory-import-source>:is(.sstf-icon-action,.inventory-source-next)>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  #inventory-import-sheet .inventory-import-catalog{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;max-height:none!important;overflow:visible!important}
  
  #inventory-import-sheet .inventory-bulk-head{position:static!important;margin:0!important;box-shadow:none!important}

  /* item 8: a card's title / name line never runs outside the card — one line inside the card, a long name scrolls sideways (no visible bar) */
  .sstf-record>.sstf-record__head>.sstf-record__title{flex:1 1 0!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .sstf-record>.sstf-record__head>:not(.sstf-record__title){flex:0 0 auto!important;max-width:60%!important}
  .sstf-record__title>.sstf-record__icon{flex:none!important}
  :is(.sstf-record__title>span,.sstf-order-card .sstf-order-card__main>.sstf-order-card__name,.warehouse-order-row .warehouse-order-customer>b){display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;text-overflow:clip!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
  .sstf-order-card .sstf-order-card__main>.sstf-order-card__name{display:flex!important;flex-wrap:nowrap!important;-webkit-line-clamp:none!important;line-clamp:none!important}
  .sstf-order-card .sstf-order-card__main>.sstf-order-card__name>.sstf-icon{flex:none!important}
  :is(.sstf-record__title>span,.sstf-order-card__name,.warehouse-order-customer>b)::-webkit-scrollbar{display:none!important}

  /* item 15: a segmented filter row shows every label in full — it wraps to a second row instead of cutting «قيد التجهيز» / «جديدة» */
  .sstf-segmented{flex-wrap:wrap!important}
  .sstf-segmented>.sstf-segmented__item{flex:1 1 0!important;min-width:max-content!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important}

  /* item 16: the permanent customer's account card is a compact ordered fact grid — account · customer/type · currency / last login · country ·
     phone (two per row on a phone, three on wide screens), equal small icons, long values wrap inside their cell; status and ⋯ on one line */
  .permanent-account-summary>.ss-order-identity{margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important}
  
  
  
  
  
  
  
  
  .permanent-account-summary .ss-order-identity .ss-identity-footer{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0 0!important;padding-top:var(--sstf-space-2)!important;border-top:1px solid var(--sstf-line-card)!important}
  
  @media(min-width:700px){
    
    
    
    
  }
}
/* == OWNER-BATCH-2026-10-06 C END == */

/* == OWNER-BATCH-2026-10-06 D START (customer portal + dropshipping) == */
@layer sstf-approved{
  /* owner 2026-10-06 (item 17): a section home (customer.php / workspace.html) never shows on the page — the central section launcher shows it in
     its card; its empty line shows only while no section inside is visible */
  .customer-section-home>.customer-section-empty{display:none!important}
  .customer-section-home:not(:has(>:is(section,article):not([hidden])))>.customer-section-empty{display:block!important}
  .customer-order-meta-card>.customer-order-tools{display:flex!important;justify-content:flex-start!important;margin:0 0 var(--sstf-space-2)!important}
  /* owner 2026-10-06 (item 18): the «المنتجات والمستلمون» rows and the recipient's «إضافة منتج» card with its photo gallery (first slot «+» stays fixed) */
  .ss-recipient-hub-rows{margin:var(--sstf-space-3) 0!important}
  .recipient-hub-home>.ss-recipient-hub-rows{margin:0!important}
  .ss-recipient-add-card{display:grid!important;gap:var(--sstf-space-3)!important;min-width:0!important;margin:var(--sstf-space-4) 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .ss-recipient-add-card>.ss-recipient-hub-rows{margin:0!important}
  .customer-products-count:not([hidden]){display:block!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;font-weight:600!important}
  .ss-recipient-gallery{min-width:0!important;max-width:100%!important}
  .ss-recipient-gallery>.ss-photo-strip{display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;min-width:0!important;max-width:100%!important;padding:var(--sstf-space-1) 0!important;grid-column:auto!important;scroll-snap-type:x proximity}
  .ss-recipient-gallery .ss-pending-photo{flex:0 0 calc(var(--sstf-touch) * 3)!important}
  .ss-recipient-gallery .ss-photo-strip>.ss-photo-add{position:sticky!important;inset-inline-start:0!important;z-index:1!important;flex:0 0 calc(var(--sstf-touch) * 1.5)!important;display:grid!important;place-items:center!important;align-self:stretch!important;min-height:calc(var(--sstf-touch) * 3)!important;margin:0!important;padding:0!important;border:1px dashed var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:none!important}
  .ss-recipient-gallery .ss-photo-add-plus{font-size:var(--sstf-t-page)!important;line-height:1!important;font-weight:800!important}
  /* the fixed «+» keeps exactly its own slot (a legacy 96px width made it cover the next photo) */
  .ss-recipient-gallery .ss-photo-strip>.ss-photo-add{position:static!important;flex:none!important;width:calc(var(--sstf-touch) * 1.5)!important;min-width:calc(var(--sstf-touch) * 1.5)!important;max-width:calc(var(--sstf-touch) * 1.5)!important;margin:0!important;box-sizing:border-box!important}
}
/* == OWNER-BATCH-2026-10-06 D END == */

/* == OWNER-BATCH-2026-10-06 E START (reports rows + KPI) == */
@layer sstf-approved{
  /* owner 2026-10-06b (reference 00-reports-reference.png) — «الحسابات والتقارير». Overrides the block B rules of this page; block B stays as is. */
  /* KPI tiles: the tiles of one currency in ONE row on phone and desktop (big value, caption under it); «كل العملات» = one row per currency, swiped sideways */
  .rep-kpis .rep-kpis__track{display:block!important;margin:0!important}
  .rep-kpis.rep-kpis--multi .rep-kpis__track{display:flex!important;gap:var(--sstf-space-3)!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important}
  .rep-kpis.rep-kpis--multi .rep-kpis__track::-webkit-scrollbar{display:none!important}
  .rep-kpis .rep-kpis__slide{container-type:inline-size!important;min-width:0!important}
  .rep-kpis.rep-kpis--multi .rep-kpis__slide{flex:0 0 100%!important;scroll-snap-align:start!important}
  .rep-kpis .rep-kpis__currency{display:flex!important;align-items:baseline!important;gap:var(--sstf-space-1)!important;margin:0 0 var(--sstf-space-2)!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  .rep-kpis .rep-kpis__currency>span{font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important}
  .rep-kpis .rep-kpis__grid{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:min(var(--sstf-space-2),1.6cqw)!important;margin:0!important}
  .rep-kpis .rep-kpis__grid>.rep-kpi{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:min(var(--sstf-space-2),1.4cqw)!important;min-width:0!important;padding:min(var(--sstf-space-3),2.4cqw) min(var(--sstf-space-2),1cqw)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;text-align:center!important}
  .rep-kpis .rep-kpi>.sstf-fact__icon{width:min(var(--sstf-icon-lg),7cqw)!important;height:min(var(--sstf-icon-lg),7cqw)!important;flex:none!important;margin:0!important}
  .rep-kpis .rep-kpi .sstf-fact__text{display:flex!important;flex-direction:column-reverse!important;align-items:center!important;gap:calc(var(--sstf-space-1) / 2)!important;min-width:0!important;max-width:100%!important}
  .rep-kpis .rep-kpi .sstf-fact__value{display:block!important;max-width:100%!important;font-size:min(var(--sstf-t-page),3.3cqw)!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap!important;overflow-wrap:normal!important;overflow-x:auto!important;scrollbar-width:none!important}
  .rep-kpis .rep-kpi .sstf-fact__label{display:block!important;font-size:min(var(--sstf-t-body),2.5cqw)!important;font-weight:600!important;line-height:1.25!important;}
  .rep-kpis .rep-kpi--waiting :is(.sstf-fact__value,.sstf-fact__label){color:var(--sstf-tone-waiting-fg)!important}
  .rep-kpis .rep-kpi--action :is(.sstf-fact__value,.sstf-fact__label){color:var(--sstf-tone-action-fg)!important}
  .rep-kpis .rep-kpi--done :is(.sstf-fact__value,.sstf-fact__label){color:var(--sstf-tone-done-fg)!important}
  .rep-kpis .rep-kpi--danger :is(.sstf-fact__value,.sstf-fact__label){color:var(--sstf-tone-danger-fg)!important}
  /* purple: the central purple tokens are a central request (the gate allows a :root colour token only from tokens-allowlist.json); until they exist the tile falls back to the neutral family */
  .rep-kpis .rep-kpi--purple{background:var(--sstf-tone-purple-bg,var(--sstf-tone-neutral-stage-bg))!important;border-color:var(--sstf-tone-purple-border,var(--sstf-tone-neutral-border))!important}
  .rep-kpis .rep-kpi--purple :is(.sstf-fact__value,.sstf-fact__label){color:var(--sstf-tone-purple-fg,var(--sstf-tone-neutral-stage-fg))!important}
  /* records: on screen no header row; each record is one card row (never wraps, fonts follow the list width); print keeps the real table (block B) */
  @media screen{
    .rep-list .rep-table-scroll{container-type:inline-size!important;max-height:none!important;overflow:visible!important;border:0!important;background:none!important}
    .rep-list .rep-table-scroll>table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:none!important}
    
    
    
    
    
    
    
    /* the reference order (RTL): order · customer · country / number · remaining / amount · collected · sales · cost · profit · currency · status · chevron */
    
    
    
    
    
    
    
    
    
    
    
    .rep-list tr.rep-row .rep-val{display:block!important;max-width:100%!important;font-weight:700!important;color:var(--sstf-ink)!important}
    
    
    .rep-list tr.rep-row :is(.rep-cap,.rep-sub){display:block!important;font-size:min(var(--sstf-t-small),2.1cqw)!important;font-weight:500!important;color:var(--sstf-ink-muted)!important}
    
    
    .rep-list tr.rep-row .rep-flag{width:min(var(--sstf-space-5),4.4cqw)!important;margin:0!important}
    .rep-list tr.rep-row .rep-country{display:block!important;max-width:100%!important;font-weight:600!important}
    
    
    .rep-list tr.rep-row .rep-toggle{width:min(var(--sstf-touch),6cqw)!important;height:min(var(--sstf-touch),6cqw)!important;min-width:0!important}
    
    
    
    
    
  }
  @media print{.rep-list tr.rep-row .rep-cap{display:none!important}.rep-list tr.rep-row .rep-sub{display:block!important}}
  /* owner 2026-10-06 (decision on the phone): no second line (the numbers would scatter) — the WHOLE list scrolls sideways as one table,
     only about one and a half screens wide, readable fixed sizes, and the order number stays pinned while scrolling */
  @media (max-width:700px){
    .rep-list .rep-table-scroll{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
    .rep-list .rep-table-scroll>table{width:160%!important;min-width:160%!important;overflow:visible!important}/* a hidden overflow on the table made it its own scroll box, so the pinned columns scrolled away */
    
    
    .rep-list tr.rep-row .rep-flag{width:var(--sstf-space-5)!important}
    /* owner decision: order number, customer name and country stay pinned; the money values, currency, status and chevron scroll */
    
    
    
    
  }
}
/* == OWNER-BATCH-2026-10-06 E END == */

/* == OWNER-BATCH-2026-10-06 F START (shell: bars, calculator, converter, close X, backdrop) == */
@layer sstf-approved{
  /* owner 2026-10-06 (phone bar): the library icons (B2B and S&S have their own), bigger, with a slightly bigger and bolder label — the bar keeps
     its height (the item's own min height is set by an earlier layer; icon + label fit inside it) */
  :is(.mobile-nav,.store-bottom-nav)>:is(a,button)>.nav-ref-icon{display:block!important;flex:0 0 auto!important;width:calc(var(--sstf-chip-h) - var(--sstf-ring-2))!important;height:calc(var(--sstf-chip-h) - var(--sstf-ring-2))!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;object-fit:contain!important}
  :is(.mobile-nav,.store-bottom-nav)>:is(a,button)>span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:var(--sstf-t-small)!important;letter-spacing:-.01em!important;font-weight:900!important;line-height:1.1!important}
  /* owner 2026-10-06 (side menu / drawer): library icons without the painted blue circle, at a comfortable size */
  :is(.app-sidebar,.app-drawer) .nav-ref-icon{display:block!important;flex:0 0 var(--sstf-chip-h)!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;min-width:var(--sstf-chip-h)!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;object-fit:contain!important}
  .nav-ref-close{display:block!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;max-width:none!important;margin:0!important;padding:0!important;background:none!important;object-fit:contain!important;pointer-events:none!important}
  /* owner 2026-10-06 (owner-batch-2026-10-06b/04): ONE close mark on every card — the owner's blue × (close-x-blue-3d) on a white rounded square
     inside the touch target; the button has no text of its own any more (the second × was that text) */
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close)::before{width:calc(var(--sstf-touch) - var(--sstf-space-1))!important;height:calc(var(--sstf-touch) - var(--sstf-space-1))!important;border:1px solid var(--sstf-line-back)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>:is(.sstf-central-glass__close,[data-sstf-dialog-close],[data-ss-dialog-close],.ss-dialog-close)::after{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;background:url("../icons/ref/256/close-x-blue-3d.webp") center/contain no-repeat!important}
  /* owner 2026-10-06 (reference «الحاسبة», owner-batch-2026-10-06b/02): the screen — the running operation above, the result below after «=»,
     copy at its top-left */
  #sstf-calculator .sstf-calc-screen{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-end!important;gap:var(--sstf-space-1)!important;min-height:calc(var(--sstf-touch) * 3)!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface-status)!important;text-align:right!important;overflow:hidden!important}
  #sstf-calculator .sstf-calc-expression{max-width:100%!important;min-height:0!important;margin:0!important;color:var(--sstf-ink)!important;font-size:calc(var(--sstf-t-page) * 2)!important;font-weight:800!important;line-height:1.15!important;}
  #sstf-calculator .sstf-calc-result{display:block!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:var(--sstf-ink)!important;font-size:calc(var(--sstf-t-page) * 2)!important;font-weight:800!important;line-height:1.15!important;}
  /* owner 2026-10-06 (phone calculator): the live result line «= 50» always sits under the big operation, smaller and muted */
  #sstf-calculator .sstf-calc-screen>.sstf-calc-result{display:block!important;min-height:1.2em!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;color:var(--sstf-ink-muted)!important}
  #sstf-calculator :is(.sstf-calc-copy,.sstf-fx-copy){position:absolute!important;top:var(--sstf-space-2)!important;display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:none!important;box-shadow:none!important}
  #sstf-calculator .sstf-calc-copy{left:var(--sstf-space-2)!important}
  #sstf-calculator .sstf-calc-copy__icon{width:calc(var(--sstf-touch) - var(--sstf-space-2))!important;height:calc(var(--sstf-touch) - var(--sstf-space-2))!important;pointer-events:none!important}
  #sstf-calculator :is(.sstf-calc-copy,.sstf-fx-copy).is-copied{background:var(--sstf-surface-status)!important}
  /* the keypad: left-to-right in the RTL page, each key at its reference place (⌫ top-left, × top-right, − + = on the right, wide 0 bottom-left) */
  #sstf-calculator .sstf-calc-pad{direction:ltr!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:calc(var(--sstf-touch) + var(--sstf-space-3))!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important}
  #sstf-calculator .sstf-calc-key{display:grid!important;place-items:center!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink)!important;font-size:calc(var(--sstf-t-page) + var(--sstf-space-1))!important;font-weight:800!important;line-height:1!important}
  #sstf-calculator .sstf-calc-key--op{background:var(--tf-blue-soft)!important;border-color:var(--sstf-line-back)!important;color:var(--tf-blue)!important;font-size:calc(var(--sstf-t-page) * 1.5)!important}
  #sstf-calculator .sstf-calc-key--back{background:var(--sstf-tone-danger-bg)!important;border-color:var(--sstf-tone-danger-border)!important;color:var(--sstf-tone-danger-strong)!important;font-size:calc(var(--sstf-t-page) + var(--sstf-space-2))!important}
  #sstf-calculator .sstf-calc-key--eq{background:var(--tf-blue)!important;border-color:transparent!important;color:var(--sstf-surface)!important;font-size:calc(var(--sstf-t-page) * 1.5)!important}
  #sstf-calculator .sstf-calc-key .sstf-calc-key__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;pointer-events:none!important}
  #sstf-calculator .sstf-calc-key>span{pointer-events:none!important}
  #sstf-calculator [data-calc-btn="back"]{grid-area:1/1!important}
  #sstf-calculator [data-calc-btn="percent"]{grid-area:1/2!important}
  #sstf-calculator [data-calc-btn="/"]{grid-area:1/3!important}
  #sstf-calculator [data-calc-btn="*"]{grid-area:1/4!important}
  #sstf-calculator [data-calc-btn="7"]{grid-area:2/1!important}
  #sstf-calculator [data-calc-btn="8"]{grid-area:2/2!important}
  #sstf-calculator [data-calc-btn="9"]{grid-area:2/3!important}
  #sstf-calculator [data-calc-btn="-"]{grid-area:2/4!important}
  #sstf-calculator [data-calc-btn="4"]{grid-area:3/1!important}
  #sstf-calculator [data-calc-btn="5"]{grid-area:3/2!important}
  #sstf-calculator [data-calc-btn="6"]{grid-area:3/3!important}
  #sstf-calculator [data-calc-btn="+"]{grid-area:3/4!important}
  #sstf-calculator [data-calc-btn="1"]{grid-area:4/1!important}
  #sstf-calculator [data-calc-btn="2"]{grid-area:4/2!important}
  #sstf-calculator [data-calc-btn="3"]{grid-area:4/3!important}
  #sstf-calculator [data-calc-btn="="]{grid-area:4/4/6/5!important}
  #sstf-calculator [data-calc-btn="0"]{grid-area:5/1/6/3!important}
  #sstf-calculator [data-calc-btn="."]{grid-area:5/3!important}
  /* owner 2026-10-06 (owner-batch-2026-10-06b/03): the swap is the arrows icon alone (no blue tile, no frame); the result's copy is a small icon at
     its top-left */
  #sstf-calculator .sstf-fx-swap{display:grid!important;place-items:center!important;align-self:end!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:none!important;box-shadow:none!important}
  #sstf-calculator .sstf-fx-swap__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;pointer-events:none!important}
  #sstf-calculator .sstf-fx-result{position:relative!important}
  #sstf-calculator .sstf-fx-copy{top:0!important;inset-inline-end:0!important}
  /* owner 2026-10-06: the header calculator uses the owner's calculator icon, a little bigger — it keeps its own slot beside the dual clock (never over it) */
  .app-header__tools>[data-open-calculator]{flex:0 0 auto!important;width:auto!important;min-width:44px!important;padding:0!important;margin-inline:var(--sstf-space-1) 0!important}/* the bigger icon must not squeeze the company name */
  .app-header__tools>[data-open-calculator]>.app-header__calc-icon{width:calc(var(--sstf-icon-lg) + var(--sstf-space-1))!important;height:calc(var(--sstf-icon-lg) + var(--sstf-space-1))!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
}
/* == OWNER-BATCH-2026-10-06 F END == */

/* == OWNER-BATCH-2026-10-06 G START (B2B staff order page) == */
@layer sstf-approved{
  /* owner 2026-10-06 item 1 (reference «المنتجات والمراجعة»): title + subtitle + box icon once (review.php banner; the list banner of workspace.html
     repeated «منتجات الطلب»), the product cards, the note row, the totals tiles, then «اعتماد المنتجات» — all in the page flow, no gap */
  .review-panel>.review-panel-heading.sstf-banner{margin:0 0 var(--sstf-space-3)!important;padding:0!important}
  .review-panel>.review-panel-heading.sstf-banner .sstf-banner__icon{width:calc(var(--sstf-icon-lg) * 2.4)!important;height:calc(var(--sstf-icon-lg) * 2.4)!important}
  .review-panel>.review-form{display:grid!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-3) 0 0!important}
  body.ss-b2b-page .review-note-row,.review-note-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:calc(var(--sstf-touch) + var(--sstf-space-2))!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-4)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface-status)!important;box-shadow:none!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;text-align:start!important;cursor:pointer}
  .review-note-row>.sstf-icon{flex:none!important;width:calc(var(--sstf-icon-lg) * 1.3)!important;height:calc(var(--sstf-icon-lg) * 1.3)!important}
  
  .review-note-row>.review-note-row__chevron{flex:none!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-page)!important;line-height:1!important}
  [data-review-recipient]>.review-note-row{margin:var(--sstf-space-2) 0 0!important}
  
  #review-totals>.sstf-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0!important;gap:var(--sstf-space-2)!important}
  #review-totals>.sstf-facts>.sstf-fact{flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;min-width:0!important;padding:var(--sstf-space-3) var(--sstf-space-1)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;text-align:center!important}
  #review-totals>.sstf-facts>.sstf-fact>.sstf-fact__icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;margin:0!important}
  #review-totals .sstf-fact__text{display:flex!important;flex-direction:column!important;align-items:center!important;min-width:0!important}
  #review-totals .sstf-fact__label{font-size:var(--sstf-t-small)!important;white-space:normal!important}
  #review-totals .sstf-fact__value{font-size:var(--sstf-t-page)!important;font-weight:800!important;line-height:1.2!important}
  
  .review-form>.ss-review-primary.sstf-send-button>.sstf-icon{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}

  /* owner 2026-10-06 item 2 (reference «سجل النسخ»): the select card (field + «عرض النسخة»), the save facts card (date · version + state), the quantity
     chip with the box icon, then the version's product cards */
  .review-version-pick{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important}
  .review-version-pick>.sstf-icon-field{width:100%!important;margin:0!important}
  .review-version-pick>.sstf-send-button{margin:0!important}
  .review-version-pick>.sstf-send-button>.sstf-icon,.review-version-facts .sstf-fact__icon{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
  .review-version-facts .sstf-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0!important}
  .review-version-facts .sstf-fact__sub{display:block!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  .review-history-quantity{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-3) 0!important}
  .review-history-quantity>.sstf-values{flex:0 1 auto!important;min-width:0!important}
  .review-history-quantity .sstf-value-row{border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-status)!important}
  .review-history-quantity>.sstf-icon{flex:none!important;width:calc(var(--sstf-icon-lg) * 2)!important;height:calc(var(--sstf-icon-lg) * 2)!important}

  /* owner 2026-10-06 item 3: without the ⋯, the remaining menu sources of a section card (supplier link management, supplier revisions, offer history,
     the customer-link error) show in their card as full-width inline actions (flow.js adds the class) */
  .ss-order-inline-action{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:var(--sstf-touch)!important;margin:var(--sstf-space-2) 0 0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;color:var(--sstf-ink)!important;font-weight:700!important;box-shadow:none!important}

  /* owner 2026-10-06 item 4 (reference: staff order page): «تجديد رابط دخول الضيف» / «تحويل الضيف إلى حساب دائم» are two side-by-side tinted tiles
     (teal / blue) — icon + title + subtitle (the <small> line, see the central request for customer.php); same forms and submitters */
  .ss-order-access-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin:var(--sstf-space-3) 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .ss-order-access-tools:not(:has(>form:nth-of-type(2))){grid-template-columns:minmax(0,1fr)!important}
  .ss-order-access-tools:not(:has(>form)){display:none!important}
  .ss-order-access-tools>.order-customer-access-form{display:block!important;width:auto!important;min-width:0!important;margin:0!important}
  .ss-order-access-tools>.order-customer-access-form>.sstf-send-button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;width:100%!important;height:100%!important;min-height:calc(var(--sstf-touch) * 1.75)!important;margin:0!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-white-a14)!important;border-radius:var(--sstf-radius-card)!important;background:linear-gradient(135deg,var(--sstf-tone-waiting-strong),var(--tf-blue,var(--sstf-tone-waiting-stage-fg)))!important;color:var(--sstf-surface)!important;text-align:start!important;white-space:normal!important;box-shadow:0 var(--sstf-space-1) var(--sstf-space-3) var(--sstf-shade-142846-a16)!important}
  
  
  
  .ss-order-access-tools>.order-customer-access-form>.sstf-send-button>.sstf-icon{flex:none!important;width:calc(var(--sstf-icon-lg) * 1.6)!important;height:calc(var(--sstf-icon-lg) * 1.6)!important}
  /* owner 2026-10-06: the order head row stays ONE line (تحميل · مراسلة · سجل النسخ · تعديل · السعر · إلغاء) — the tools share the row, never under 0.78 touch */
  .sstf-order-heading>.sstf-head-tools{flex-wrap:nowrap!important;gap:var(--sstf-space-1)!important}
  .sstf-order-heading>.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu){flex:1 1 0!important;width:auto!important;max-width:var(--sstf-touch)!important;min-width:calc(var(--sstf-touch) * .78)!important}
}
/* == OWNER-BATCH-2026-10-06 G END == */

/* == OWNER-BATCH-2026-10-06 H START (S&S + warehouse) == */
@layer sstf-approved{
}
/* == OWNER-BATCH-2026-10-06 H END == */

/* == OWNER-BATCH-2026-10-06 I START (sales paging, stocktake picker, available filter) == */
@layer sstf-approved{
  /* owner 2026-10-06 (proposal 1): the saved-customer search of «إنشاء طلب» — the field, its result rows (name + phone) and «عميل جديد» */
  .ss-customer-picker{grid-column:1/-1!important;display:grid!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  
  
  .ss-customer-picker__new[hidden],.ss-customer-picker__results[hidden],.stocktake-search-picker__results[hidden]{display:none!important}
  .ss-customer-picker__results,.stocktake-search-picker__results{display:grid!important;gap:var(--sstf-space-1)!important;max-height:calc(var(--sstf-touch) * 6)!important;overflow-y:auto!important;padding:var(--sstf-space-1)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
  .ss-customer-picker__results>button,.stocktake-search-picker__result{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:var(--sstf-touch)!important;margin:0!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border:1px solid transparent!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-idle)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;text-align:start!important;box-shadow:none!important}
  .ss-customer-picker__results>button:is(:hover,:focus-visible),.stocktake-search-picker__result:is(:hover,:focus-visible){border-color:var(--sstf-tone-action-border)!important;background:var(--sstf-tone-action-bg)!important}
  .ss-customer-picker__results>button bdi,.stocktake-search-picker__result small{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  .ss-customer-picker__status:empty,.stocktake-search-picker__status:empty{display:none!important}
  .ss-customer-picker__status,.stocktake-search-picker__status{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  /* owner 2026-10-06 (proposal 1, E2): the accounts search card sits directly above the server-paged list */
  .ss-account-directory>.ss-sales-filter-card{margin:0 0 var(--sstf-space-3)!important}
  /* owner 2026-10-06 (proposal 2): «منتجات محددة» — chips (name, number, ×) above one search field, then up to 20 results */
  .stocktake-search-picker{display:grid!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  
  .stocktake-search-picker__chips{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-1)!important}
  .stocktake-search-picker__chips:empty{display:none!important}
  .stocktake-search-picker__chip{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;max-width:100%!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border:1px solid var(--sstf-tone-action-border)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-tone-action-bg)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-small)!important}
  .stocktake-search-picker__chip>span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .stocktake-search-picker__chip>small{color:var(--sstf-ink-muted)!important}
  .stocktake-search-picker__chip>small:empty{display:none!important}
  .stocktake-search-picker__remove{display:inline-grid!important;place-items:center!important;min-width:var(--sstf-touch-min)!important;min-height:var(--sstf-touch-min)!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:transparent!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;line-height:1!important;box-shadow:none!important}
  .stocktake-search-picker__result{justify-content:flex-start!important}
  .stocktake-search-picker__result>img{flex:none!important;width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important;object-fit:cover!important;border-radius:var(--sstf-radius-field)!important}
  .stocktake-search-picker__result>span{display:grid!important;min-width:0!important}
  .stocktake-search-picker__result.is-picked{border-color:var(--sstf-tone-action-border)!important;background:var(--sstf-tone-action-bg)!important}
  .stocktake-search-picker__result.is-picked strong::before{content:'✓ '}
}
/* == OWNER-BATCH-2026-10-06 I END == */

/* == OWNER-BATCH-2026-10-06 J START (latest movements card + movements archive) == */
@layer sstf-approved{
  /* owner 2026-10-06: «آخر الحركات» on the accounting home is a full-width button (icon · title · go chevron) that opens the central card */
  .finance-recent-open{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;width:100%!important;min-height:var(--sstf-touch)!important;margin:var(--sstf-space-3) 0 0!important;padding:0 var(--sstf-space-6)!important;border:1px solid var(--sstf-tone-action-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-action-bg)!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;cursor:pointer!important}
  .finance-recent-open__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:none!important}
  .finance-recent-open__go{position:absolute!important;inset-inline-end:var(--sstf-space-4)!important;top:50%!important;width:var(--sstf-space-2)!important;height:var(--sstf-space-2)!important;border-inline-end:1.5px solid var(--sstf-ink-soft)!important;border-bottom:1.5px solid var(--sstf-ink-soft)!important;transform:translateY(-50%) rotate(45deg)!important}
  
  /* the card head of the reference: title with the small sub-line under it */
  .finance-recent-card .sstf-central-glass__title-text{display:grid!important;white-space:normal!important;line-height:1.25!important}
  .finance-recent-sub{display:block!important;font-size:var(--sstf-t-small)!important;font-weight:500!important;color:var(--sstf-ink-muted)!important}
  /* the movements card / archive: search row (+ «تحميل» beside it in the archive), chips row, then the movement cards — no frame around them */
  .finance-moves{display:grid!important;gap:var(--sstf-space-3)!important;min-width:0!important}
  .finance-moves>.finance-moves-bar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important}
  /* R159: زرّ «بحث» المنفصل لا يأخذ سطرًا — العدسة في الصفّ تُرسل النموذج نفسه (يظهر فقط إن غاب الشريط المركزي) */
  form[data-sstf-quick-filter] button.sstf-filter-source[type="submit"]{display:none!important}
  /* R159: صفّ البحث المطويّ — العدسة وحدها بحجمها، فلا يؤخذ سطر كامل لحقل فارغ */
  .sstf-search-toolbar.is-search-collapsed{justify-content:flex-start!important;gap:8px!important}
  .sstf-search-toolbar.is-search-collapsed .sstf-search-shell{flex:0 0 auto!important;width:auto!important;min-width:0!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
  .sstf-search-toolbar.is-search-collapsed .sstf-search-shell input[type="search"],
  .sstf-search-toolbar.is-search-collapsed .sstf-search-shell .sstf-search-clear{display:none!important}
  .finance-moves>.finance-moves-bar>.sstf-search-toolbar{flex:1 1 auto!important;min-width:0!important;width:auto!important}
  .finance-moves>.finance-moves-bar>.sstf-head-tool{flex:none!important;height:var(--sstf-control-h)!important;width:var(--sstf-control-h)!important}
  .finance-moves-filters{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
  .finance-moves-filters>:is(a,button){display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;min-height:var(--sstf-chip-h)!important;min-width:0!important;margin:0!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer!important}
  .finance-moves-filters>:is(a,button):is([aria-current="page"],[aria-pressed="true"]){border-color:var(--sstf-tone-action-border)!important;background:var(--sstf-tone-action-bg)!important;color:var(--sstf-tone-action-fg)!important}
  /* the chip dot = the colour of its movement kind (قبض green · صرف red · تحويل blue · معكوس red); «الكل» has none */
  
  
  
  
  [data-flow="reversed"]>.finance-chip-count{background:var(--sstf-tone-danger-bg)!important;color:var(--sstf-tone-danger-fg)!important}
  /* the fund list «جميع العمليات»: a small field with its icon inside, at the end of the chips row */
  .finance-moves-fund{display:inline-flex!important;margin-block:0!important;margin-inline:auto 0!important;padding:0!important;border:0!important;background:none!important}
  
  .finance-moves-fund__icon{width:calc(var(--sstf-icon-md) * .75)!important;height:calc(var(--sstf-icon-md) * .75)!important;flex:none!important}
  
  /* each movement = its own card: tone circle at the start, type + party / «رقم العملية» / date / «عرض المزيد», the amount at the other end */
  .finance-moves-list{display:grid!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  .finance-move{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;column-gap:var(--sstf-space-2)!important;margin:0!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;scroll-margin-block:var(--sstf-space-6)!important}
  .finance-move[hidden]{display:none!important}
  .finance-move.is-focus{border-color:var(--sstf-tone-action-border)!important;background:var(--sstf-tone-action-bg)!important}
  /* R193 (أمر المالك 18/11): كرت الحركة سطرٌ واحد وتحته التاريخ و«⋯»، وإطاره يقول نوعها:
     أخضر قبض · أحمر صرف · برتقالي تحويل. الدائرة الملوّنة سقطت لأن الإطار صار يحمل اللون. */
  .finance-move{border-width:1px 1px 1px 3px!important;border-inline-start-width:3px!important;border-color:var(--sstf-tone-done-strong)!important}
  .finance-move[data-move-kind="out"]{border-color:var(--sstf-tone-danger-strong)!important}
  .finance-move[data-move-kind="internal"]{border-color:var(--sstf-tone-progress-strong)!important}
  .finance-move[data-move-kind="reversed"]{border-color:var(--sstf-ink-muted)!important}
  /* R193 (أمر المالك 19/11): اسم الحركة بلون إطارها نفسه — «تحصيل» أخضر، «دفع مستند» أحمر،
     «تحويل بين الصناديق» برتقالي، والمعكوس رماديّ. اسم الطرف داخله يبقى بلون النصّ العادي. */
  .finance-move .finance-move__title{color:var(--sstf-tone-done-strong)!important}
  .finance-move[data-move-kind="out"] .finance-move__title{color:var(--sstf-tone-danger-strong)!important}
  .finance-move[data-move-kind="internal"] .finance-move__title{color:var(--sstf-tone-progress-strong)!important}
  .finance-move[data-move-kind="reversed"] .finance-move__title{color:var(--sstf-ink-muted)!important}
  .finance-move .finance-move__title bdi{color:var(--sstf-ink)!important}
  .finance-move__main{gap:2px!important}
  .finance-move__fix{display:none!important}
  .finance-move__menu{align-self:center!important;justify-self:end!important;min-width:var(--sstf-chip-h)!important;min-height:var(--sstf-chip-h)!important;padding:0 var(--sstf-space-1)!important;border:0!important;border-radius:var(--sstf-radius-field)!important;background:transparent!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1!important;cursor:pointer!important}
  .finance-move__value>strong{font-size:var(--sstf-t-body)!important}
  .finance-move__main{display:grid!important;justify-items:start!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  .finance-move__title{font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important;}
  .finance-move__ref,.finance-move__time{font-size:var(--sstf-t-small)!important;font-weight:500!important;color:var(--sstf-ink-muted)!important}
  
  .finance-move .sstf-icon-action.finance-move__more{min-height:var(--sstf-chip-h)!important;gap:var(--sstf-space-1)!important;padding:0 var(--sstf-space-2)!important;border-color:var(--sstf-tone-action-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-action-bg)!important;color:var(--sstf-tone-action-fg)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;text-decoration:none!important}
  .finance-move .finance-move__more .sstf-icon{width:calc(var(--sstf-icon-md) * .75)!important;height:calc(var(--sstf-icon-md) * .75)!important}
  .finance-move__value{display:grid!important;justify-items:end!important;gap:var(--sstf-space-1)!important;text-align:end!important}
  .finance-move__value>strong{font-size:var(--sstf-t-card)!important;font-weight:800!important;color:var(--sstf-ink)!important;white-space:nowrap!important}
  .finance-move__value>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;white-space:nowrap!important}
  
  .finance-moves-none[hidden]{display:none!important}
  
  /* a long operation number (uuid-like reference) wraps inside the card and never runs under the amount */
  .finance-move__main{min-width:0!important;flex:1 1 auto!important}
  .finance-move__ref,.finance-move__title{min-width:0!important;}
  .finance-move__value{flex:0 0 auto!important;white-space:nowrap!important}
  /* R259 (كشفه فاحص r134-q2 على 390): خانة المبلغ كانت تنضغط إلى 19 بكسل فيتمرّر «60 JOD» داخلها ولا
     يقرؤه المحاسب. المبلغ لا يُضغط: يأخذ عرض محتواه، والوصف هو الذي يلتفّ. */
  .finance-move__value{min-width:max-content!important;overflow:visible!important}
  .finance-move__value>strong,.finance-move__value>small{overflow:visible!important;max-width:none!important}
  .finance-move__main>*{max-width:100%!important;min-width:0!important}/* the grid lines start-aligned took their text's full width — capped to the card so the reference wraps */
  .finance-move__ref>bdi{display:inline-block!important;max-width:100%!important;}
}
/* == OWNER-BATCH-2026-10-06 J END == */

/* == OWNER-BATCH-2026-10-06 K START (home pages one pattern) == */
@layer sstf-approved{
  /* owner 2026-10-06 («لا تتركها مبعثره»): on a phone an odd last section tile spans the row (no lone card hanging in its own line) */
  @media(max-width:960px){.sstf-section-cards:has(>.sstf-section-card--tile)>.sstf-section-card--tile:last-child:nth-child(odd){grid-column:1/-1!important}}
  /* the S&S create button now uses the create-bar shape; its id rule (block 1273) centred it — the bar reads from the start like «عملية مالية» */
  #ss-create-toggle.sstf-create-bar{justify-content:flex-start!important;gap:var(--sstf-space-3)!important}
  
}
/* == OWNER-BATCH-2026-10-06 K END == */

/* == OWNER-BATCH-2026-10-06 L START (head-row icon captions + photo galleries + home quick cards) == */
@layer sstf-approved{
  /* owner 2026-10-06d (item 8): every icon of a page's top tools row shows its name under it (e.g. «إلغاء»). One central rule for every builder of
     the row (ComponentRenderer::headTool / download trigger / logout / the JS info tool / the ⋯ menu): the caption is the control's own aria-label,
     so no template repeats the text and the accessible name stays the aria-label. */
  .sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)[aria-label]:not(.sstf-head-tool--labelled){display:inline-flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;width:auto!important;min-width:var(--sstf-touch)!important;height:auto!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-1)!important}
  .sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)[aria-label]:not(.sstf-head-tool--labelled)::after{content:attr(aria-label);display:block;max-width:100%;font-size:calc(var(--sstf-t-small) * .85);font-weight:700;line-height:1.15;color:var(--sstf-ink);text-align:center;white-space:normal;}
  .sstf-order-heading>.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu){max-width:none!important}
  /* owner 2026-10-06d (item 9): every photo gallery (order gallery + the recipient's gallery) — the photo fills its frame on the plain surface (no blue
     button gradient behind it), the status sits under the photo; the ONE «+» tile (customer.js photoAddTile) is larger with «أضف صورة» under the «+» */
  .ss-photo-strip>.ss-pending-photo,.batch-gallery .ss-pending-photo{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
  :is(.ss-photo-strip,.batch-gallery) .ss-pending-photo>.ss-photo-open{display:flex!important;flex-direction:column!important;gap:var(--sstf-space-1)!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-card)!important;background:transparent!important;background-image:none!important;box-shadow:none!important;overflow:visible!important}
  :is(.ss-photo-strip,.batch-gallery) .ss-pending-photo>.ss-photo-open>img{display:block!important;width:100%!important;aspect-ratio:1/1!important;height:auto!important;object-fit:contain!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important;border:1px solid var(--sstf-line-card)!important}
  :is(.ss-photo-strip,.batch-gallery) .ss-pending-photo>.ss-photo-open>:not(img){position:static!important;align-self:center!important;background:var(--sstf-surface)!important}
  .ss-recipient-gallery .ss-photo-strip>.ss-photo-add{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;width:calc(var(--sstf-touch) * 2.4)!important;min-width:calc(var(--sstf-touch) * 2.4)!important;max-width:calc(var(--sstf-touch) * 2.4)!important;min-height:calc(var(--sstf-touch) * 3)!important}
  :is(.ss-photo-strip,.batch-gallery)>.ss-photo-add>.ss-photo-add-plus{font-size:calc(var(--sstf-t-page) * 1.6)!important;line-height:1!important;font-weight:800!important;color:var(--sstf-ink)!important}
  :is(.ss-photo-strip,.batch-gallery)>.ss-photo-add>.ss-photo-add-label{display:block!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  /* owner 2026-10-06 (answer to «الكروت السريعة», verbatim in ORIGINAL-COMMAND.md): on every home the quick-action cards take the reference shape
     (the owner's accounting-home picture): a small horizontal card — label + sub-line at the start, the 3D icon with its count badge at the end,
     the section tint — at most FOUR cards per row (the fifth starts a new row — owner), the rows scroll sideways together showing two and a half cards on a phone. Zero-count actions are already dropped by quickActions().
     The section cards below stay as they are (owner). */
  .sstf-quick-actions--tiles>.sstf-quick-actions__tiles{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(4,calc((100% - var(--sstf-space-2) * 2) / 2.5))!important;grid-auto-columns:auto!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;overscroll-behavior-x:contain!important;padding:var(--sstf-space-2) 0 var(--sstf-space-1)!important}
  @media(min-width:961px){.sstf-quick-actions--tiles>.sstf-quick-actions__tiles{grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow-x:visible!important}}
  .sstf-quick-actions--tiles .sstf-quick-tile{scroll-snap-align:start!important;min-width:0!important}
  .sstf-quick-actions--tiles .sstf-quick-tile>a{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;justify-items:start!important;align-items:center!important;align-content:center!important;column-gap:var(--sstf-space-1)!important;row-gap:0!important;min-height:calc(var(--sstf-touch) * 1.5)!important;padding:var(--sstf-space-2)!important;text-align:start!important;border:1px solid rgba(var(--sstf-domain-rgb,113,128,71),.28)!important;background:rgba(var(--sstf-domain-rgb,113,128,71),.08)!important}
  .sstf-quick-actions--tiles .sstf-quick-tile>a>b{display:none!important}
  .sstf-quick-actions--tiles .sstf-quick-tile>a>strong{grid-column:1!important;grid-row:1!important;font-size:var(--sstf-t-small)!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  .sstf-quick-actions--tiles .sstf-quick-tile>a>small{grid-column:1!important;grid-row:2!important;font-size:var(--sstf-t-small)!important}
  .sstf-quick-actions--tiles .sstf-quick-tile>a>.sstf-quick-tile__icon{grid-column:2!important;grid-row:1/span 2!important;width:calc(var(--sstf-touch) * .8)!important;height:calc(var(--sstf-touch) * .8)!important}
  /* the cash boxes (accounting home) take the same reference shape: the box icon beside the name and the balance, two per row, a lone last box spans */
  
  
  
  
  
  
  /* the header team button: the owner's team icon (team-section-3d) in the line icon's place, the duty clock badge kept */
  .sstf-workspace-button__icon>.sstf-workspace-button__team{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
}
/* == OWNER-BATCH-2026-10-06 L END == */
@layer sstf-ui-contract{
  /* FLYCARGO-BUILD F2 (D-04, owner decision): the team's phone bottom bar (the same central component for every role) scrolls horizontally
     when its entries do not fit; «المزيد» stays fixed at the bar's end. While the entries fit, every column keeps its equal share (1fr), as before. */
  /* R134 Q1 (owner decision 23/10, replaces the 20/10 scrolling bar): at most 5 entries per role (Chrome::roleSections), so the bar never scrolls and
     «المزيد» is a normal last column — nothing sticks over another entry (U1: «المزيد» covered «الموافقات»). */
  body.sstf-flow nav.mobile-nav{grid-auto-columns:minmax(64px,1fr)!important;overflow:visible!important}
}
@layer sstf-ui-contract{
  /* FLYCARGO-BUILD F4 (D-12, D-16): the Fly Cargo «أوردر» editor rows that open a question card (inspection / packing) and the question card
     itself, the «إضافة حقل» rows and the sea order fields — laid out with the central field tokens, no new look. */
  .recipient-editor .fly-question-field{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:var(--sstf-space-3,12px)!important;padding:var(--sstf-space-2,8px) 0!important}
  .recipient-editor .fly-question-field__text{display:grid!important;gap:2px!important;min-width:0!important}
  .fly-question-card{display:grid!important;gap:var(--sstf-space-3,12px)!important}
  .fly-question-card .fly-question{margin:0!important;padding:var(--sstf-space-2,8px) var(--sstf-space-3,12px)!important;border:1px solid var(--sstf-line,rgba(15,23,42,.12))!important;border-radius:var(--sstf-r-m)!important;display:grid!important;gap:6px!important}
  .fly-question-card .fly-question>legend{font-weight:700!important;padding:0 var(--sstf-space-1)!important}
  .fly-question-card .fly-question>label.checkbox{display:flex!important;flex-direction:row!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important}
  .fly-question-card .fly-question>label.checkbox>input{width:20px!important;height:20px!important;min-height:0!important;flex:0 0 auto!important;margin:0!important}
  .fly-fields-editor{display:grid!important;gap:var(--sstf-space-3,12px)!important}
  .fly-fields-editor .fly-field-row{padding-block-end:var(--sstf-space-3,12px)!important;border-block-end:1px solid var(--sstf-line,rgba(15,23,42,.12))!important}
  .fly-order-fields__grid{margin-block-start:var(--sstf-space-2,8px)!important}
  /* FLYCARGO-BUILD F7 (D-11, D-27): the China-warehouse record form (the central long-form grid; its file fields and checklist rows full width
     through the central .sstf-field-full hook) and the أوردر cards — the checklist rows as two option buttons, the product and photo strips as wrapping thumbnails */
  .fly-wh-check,.fly-wh-choice{display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-2,8px)!important;margin:0!important;padding:var(--sstf-space-3,12px)!important;border:1px solid var(--sstf-line,rgba(15,23,42,.12))!important;border-radius:var(--sstf-r-m)!important;min-width:0!important}
  .fly-wh-check>legend,.fly-wh-choice>legend{font-weight:700!important;padding-inline:var(--sstf-space-1)!important}
  .fly-wh-choice{grid-template-columns:1fr!important}
  .fly-wh-check .sstf-option__label{white-space:nowrap!important}
  .fly-wh-form input[type=file]{max-width:100%!important;min-width:0!important}
  .fly-wh-products{list-style:none!important;margin:var(--sstf-space-2,8px) 0!important;padding:0!important;display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-3,12px)!important}
  .fly-wh-products>li{display:grid!important;grid-template-columns:72px 1fr!important;align-items:center!important;column-gap:var(--sstf-space-2,8px)!important;min-width:0!important}
  /* R349 (أمر المالك 5/12): «لما أكبس على طرد 1 يفتح محتويات الطرد وعدد القطع بجانب كل صورة
     وعلى شكل شبكة 3×3». فبنود الطرد — وهي وحدها — شبكةُ ثلاثة أعمدة: صورةٌ كبيرة وعدّادٌ عليها
     واسمٌ تحتها. وبقيةُ قوائم المستودع على حالها. */
  .fly-wh-products.fly-in-parcel{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--sstf-space-2,8px)!important}
  .fly-wh-products.fly-in-parcel>li{display:flex!important;flex-direction:column!important;align-items:stretch!important;grid-template-columns:none!important;position:relative!important;flex:0 1 auto!important;padding:4px!important}
  .fly-wh-products.fly-in-parcel .fly-in-parcel__img{width:100%!important;height:auto!important;aspect-ratio:1/1!important;border-radius:10px!important;overflow:hidden!important;display:block!important}
  .fly-wh-products.fly-in-parcel .fly-in-parcel__img img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
  .fly-wh-products.fly-in-parcel .fly-in-parcel__count{position:absolute!important;top:8px!important;inset-inline-end:8px!important;z-index:2!important;background:var(--sstf-accent,#1549d6)!important;color:#fff!important;border-radius:999px!important;padding:1px 8px!important;font-size:.82rem!important;font-weight:800!important;line-height:1.55!important;box-shadow:0 2px 8px rgba(15,23,42,.28)!important}
  .fly-wh-products.fly-in-parcel .fly-in-parcel__text{text-align:center!important;min-width:0!important}
  .fly-wh-products.fly-in-parcel .fly-in-parcel__name{font-size:.76rem!important;line-height:1.2!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
  .fly-wh-products.fly-in-parcel .fly-in-parcel__meta{display:none!important}
  .fly-wh-products>li>img{grid-row:span 2!important;border-radius:var(--sstf-r-s)!important;object-fit:cover!important}
  .fly-wh-photos{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2,8px)!important;margin:var(--sstf-space-2,8px) 0!important}
  .fly-wh-photos img{width:72px!important;height:72px!important;object-fit:cover!important;border-radius:var(--sstf-r-s)!important}
  .fly-wh-order+.fly-wh-order{margin-block-start:var(--sstf-space-4,16px)!important}
  .fly-wh-review{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-3,12px)!important;align-items:flex-start!important}
  .fly-wh-review>form.sstf-form-stack{flex:1 1 100%!important}
  /* FLYCARGO-BUILD F8 (D-27; path 40–41): one card per parcel (its tone from the warehouse's weight), the piece's parcel choice under its name */
  .fly-parcel{margin-block-start:var(--sstf-space-3,12px)!important;padding:var(--sstf-space-3,12px)!important;border:1px solid var(--sstf-line,rgba(15,23,42,.12))!important;border-radius:var(--sstf-r-m)!important}
  .fly-parcel[data-tone=green]{border-color:var(--sstf-tone-done-border)!important}.fly-parcel[data-tone=yellow]{border-color:var(--sstf-tone-waiting-border)!important}.fly-parcel[data-tone=red]{border-color:var(--sstf-tone-danger-border)!important}
  .fly-parcel .fly-wh-products>li{grid-template-columns:72px minmax(0,1fr)!important;flex:1 1 260px!important}
  .fly-parcel .fly-move{grid-column:2!important;margin:0!important}.fly-parcel .fly-move select{width:100%!important;min-width:0!important}
  .fly-shipment-orders a,.fly-shipment-orders bdi{white-space:nowrap!important}
}

/* ==================================================================================================================
 * FLYCARGO-FIX-1 OQ-X5-01 (owner decision 18/10, 19:49) — the 2B TITLE CONTRACT (owner 2026-10-13: .sstf-pcard__name,
 * .sstf-pcard-detail__meta>strong, the order-card name) is the ONE text contract of the whole application. Two rules, here only:
 *  (1) every text: a word never breaks inside (no letter break, no hyphenation) — long text (paragraphs, notes, descriptions,
 *      messages, detailed addresses, table cells) wraps to a new line at word boundaries only;
 *  (2) the 2B contract for short text — titles, names, short values, numbers and codes (phone, order number, tracking number,
 *      amounts, codes), field labels, buttons, badges and chips, and the text spans inside them: ONE line, no wrap, no letter
 *      break, no ellipsis; a long one scrolls inside its own place only, from its start, with no visible scrollbar; the card never
 *      grows or overflows (the page never scrolls sideways).
 * The general break rules (overflow-wrap:anywhere / break-word, word-break:break-all / break-word) were removed from
 * central-system*.css and app-ui*.css; no local exception. The stage cards keep their own fit (OQ-X2-02). Numbers and codes keep
 * their dir="ltr" / <bdi> isolation. Layers: (1) and (2) are !important in sstf-typography (the earliest layer after the wizard
 * contract, so they win over every component rule); the display / min-width hints are plain declarations in the earliest layer,
 * so a component that sets its own display or min-width keeps it. A long centred one is set to start by central-system.js (fitText2B).
 * ================================================================================================================== */
@layer sstf-wizard-contract{
  :where(strong,b,bdi,small,output,time,code,kbd,data,a,label):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)){display:inline-block;max-width:100%;vertical-align:bottom}
  :where(:is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)),:is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)) span:not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong))){min-width:0;max-width:100%} /* a short text never grows past its place (a centred column would show its middle) */
}
@layer sstf-typography{
  *:not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)):not(:where(textarea,input,select)){overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  :is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)),
  :is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)) span:not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)){white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;text-overflow:clip!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
  :is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong))::-webkit-scrollbar,
  :is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong)) span:not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong))::-webkit-scrollbar{display:none!important}
  :is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong))::before,:is(h1,h2,h3,h4,h5,h6,legend,th,dt,strong,b,bdi,small,output,time,code,kbd,data,.sstf-fact__label,.sstf-fact__value,label:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,textarea,select))),button:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),a:not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))):not(:has(:is([class*="badge"],[class*="count"],[class*="dot"]))),[class*="badge"]:not([class*="badges"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6))),[class*="chip"]:not([class*="chips"]):not([class*="chip-row"]):not(:has(:is(div,p,ul,ol,section,article,figure,table,fieldset,h1,h2,h3,h4,h5,h6)))):not(:where(p,dd,blockquote,address,figcaption,pre,textarea,td,.chat-message,.recipient-details,.sstf-confirm-card__text,[class*="__note"],[class*="__desc"],[class*="__hint"],[class*="__help"],[data-sstf-long]) *):not(:where([data-sstf-stage-card],[data-sstf-stage-card] *,.sstf-stage-card,.sstf-stage-card *,.sstf-now-card>strong))::after{white-space:nowrap!important} /* a label drawn by the component as ::before / ::after (e.g. the head tools' attr(aria-label)) is one line too */
  [data-sstf-2b-start]{justify-content:flex-start!important;justify-items:start!important;text-align:start!important} /* a long one starts at its start (central-system.js fitText2B) */
  .sstf-info-note>span{min-width:0;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}.sstf-info-note>span::-webkit-scrollbar{display:none!important} /* E7-ب (C6-3): a note's text wraps at word boundaries (rule 1); a single word longer than its place (no spaces) scrolls inside its own place, unbroken, with no visible scrollbar (the 2B way) — the card never grows */
}

/* BUILD-2 م2 (CD-01..CD-11) — the ONE central chat (assets/js/chat-core.js): the team's «المراسلات» dialog and every external «الرسائل» page share
   the same layout, bubbles and tools; colours, spacing, radii and icons are the central tokens and the reference icons (no new look). */
#sstf-chat-overlay .chat-overlay-host{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.sstf-chat{display:flex;flex-direction:column;min-height:0;position:relative}
.sstf-chat>.chat-overlay-layout{flex:1 1 auto;min-height:0;height:100%}
.sstf-chat .chat-overlay-threads{display:flex;flex-direction:column;gap:var(--sstf-space-2);min-height:0}
.sstf-chat .chat-threads-tools{display:flex;flex-wrap:wrap;gap:var(--sstf-space-1);align-items:center}
.sstf-chat .chat-threads-search{flex:1 1 140px;min-width:0;min-height:38px;border:1px solid var(--sstf-tone-waiting-border);border-radius:var(--sstf-radius-field);padding:0 var(--sstf-space-2);font-size:var(--sstf-t-card);background:var(--sstf-surface)}
.sstf-chat .chat-archived-toggle.is-active{background:var(--sstf-tone-waiting-bg,#eef5fd)!important;border-color:var(--sstf-tone-waiting-border)!important}
.sstf-chat .chat-new-group,.sstf-chat .chat-new-group>span{display:inline-flex;align-items:center;gap:var(--sstf-space-1)}
.sstf-chat .chat-tool__icon,.sstf-chat .chat-thread-icon{width:var(--sstf-icon-md);height:var(--sstf-icon-md);flex:none}
.sstf-chat .chat-thread-list{overflow:auto;min-height:0;flex:1 1 auto}
.sstf-chat .chat-thread-lead{position:relative;display:grid;place-items:center}
.sstf-chat .chat-thread-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover}
.sstf-chat .chat-online-dot{position:absolute;inset-inline-end:-2px;bottom:-2px;width:10px;height:10px;border-radius:50%;background:var(--sstf-tone-done-fg,#1f8f4e);border:2px solid var(--sstf-surface,#fff)}
.sstf-chat .chat-thread-flag{font-size:var(--sstf-t-small);color:var(--sstf-muted,#738092)}
.sstf-chat .chat-overlay-thread.is-muted>strong{color:var(--sstf-muted,#738092)}
.sstf-chat .chat-search-hit{grid-template-columns:1fr!important}
.sstf-chat .chat-search-snippet{display:block;font-size:var(--sstf-t-small);color:var(--sstf-muted,#738092);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sstf-chat .chat-overlay-titlebar .chat-thread-menu{margin-inline-start:auto;min-width:36px;min-height:36px}
.sstf-chat .chat-typing{margin:0;padding:var(--sstf-space-1) var(--sstf-space-3);font-size:var(--sstf-t-small);color:var(--sstf-muted,#738092)}
.sstf-chat .chat-older-sentinel{height:1px}
.sstf-chat .chat-overlay-message.is-system{width:auto;max-width:92%;margin-inline:auto;text-align:center;background:var(--sstf-tone-waiting-bg,#f3f7fb);border-style:dashed}
.sstf-chat .chat-overlay-message.is-deleted .chat-deleted,.sstf-chat .chat-file-expired{font-style:italic;color:var(--sstf-muted,#738092)}
.sstf-chat .chat-overlay-message.is-focused{outline:2px solid var(--sstf-tone-waiting-fg);outline-offset:2px}
.sstf-chat .chat-overlay-message.is-pending{opacity:.7}
.sstf-chat .chat-forwarded,.sstf-chat .chat-overlay-message__subject,.sstf-chat .chat-overlay-message__context{display:block;font-size:var(--sstf-t-small);color:var(--sstf-muted,#738092)}
.sstf-chat .chat-reply-quote{cursor:pointer}
.sstf-chat .chat-image{display:block;margin-top:var(--sstf-space-1)}
.sstf-chat .chat-image img{display:block;max-width:100%;max-height:240px;border-radius:var(--sstf-radius-field);object-fit:contain}
.sstf-chat .chat-voice{display:block;width:100%;max-width:280px;margin-top:var(--sstf-space-1)}
.sstf-chat .chat-file{display:inline-flex!important;align-items:center;gap:var(--sstf-space-1)}
.sstf-chat .chat-file__icon{width:var(--sstf-icon-md);height:var(--sstf-icon-md)}
.sstf-chat .chat-link{word-break:break-all}
.sstf-chat .chat-message-foot{display:flex;align-items:center;justify-content:flex-end;gap:var(--sstf-space-1);margin-top:2px}
.sstf-chat .chat-edited,.sstf-chat .chat-ticks{font-size:var(--sstf-t-small);color:var(--sstf-muted,#738092)}
.sstf-chat .chat-ticks.is-seen{color:var(--sstf-tone-waiting-fg)}
.sstf-chat .chat-message-menu,.sstf-chat .chat-thread-menu{min-width:32px!important;width:auto!important;min-height:32px!important;height:32px!important;padding:0 var(--sstf-space-2)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface,#fff)!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink,#173d70)!important;font-size:var(--sstf-t-card)!important;line-height:1!important}
.sstf-chat .chat-message-menu{border-color:transparent!important;background:transparent!important;color:var(--sstf-muted,#738092)!important}
.sstf-chat .chat-reply-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);margin-bottom:var(--sstf-space-1);padding:var(--sstf-space-1) var(--sstf-space-2);border-inline-start:3px solid var(--sstf-tone-waiting-border);background:var(--sstf-tone-waiting-bg,#f3f7fb);font-size:var(--sstf-t-small)}
.sstf-chat .chat-reply-bar[hidden]{display:none}
.sstf-chat .chat-context{width:100%;min-height:38px;margin-bottom:var(--sstf-space-1);font-size:var(--sstf-t-card)}
.sstf-chat .chat-send-row{display:flex;align-items:center;gap:var(--sstf-space-2);flex-wrap:wrap}
.sstf-chat .chat-emoji,.sstf-chat .chat-mic,.sstf-chat .chat-attach{min-width:40px;min-height:40px;display:inline-grid;place-items:center;background:var(--sstf-surface)!important;border:1px solid var(--sstf-tone-waiting-border)!important;border-radius:var(--sstf-radius-field)!important;box-shadow:none!important}
.sstf-chat .chat-mic.is-recording{border-color:var(--sstf-tone-danger-fg,#c0392b)!important;background:var(--sstf-tone-danger-bg,#fdeceb)!important}
.sstf-chat .chat-status:empty,.sstf-chat .chat-file-name:empty{display:none}
.chat-emoji-grid{display:grid;grid-template-columns:repeat(6,40px);gap:var(--sstf-space-1);padding:var(--sstf-space-1)}
.chat-emoji-grid .chat-emoji-pick{min-width:40px;min-height:40px;padding:0;border:0;background:transparent;box-shadow:none;font-size:var(--sstf-t-page)}
.chat-pick-list{display:grid;gap:var(--sstf-space-1);max-height:50dvh;overflow:auto;margin-top:var(--sstf-space-2)}
.chat-member-row{display:flex;align-items:center;justify-content:space-between;gap:var(--sstf-space-2);padding:var(--sstf-space-1) 0;border-bottom:1px solid var(--sstf-tone-waiting-border)}
.chat-member-picker input,.ss-action-modal input[type=search]{width:100%;min-height:40px;font-size:var(--sstf-t-card)}
.chat-chosen{display:flex;flex-wrap:wrap;gap:var(--sstf-space-1);margin:var(--sstf-space-2) 0}
.sstf-chat-page{height:min(720px,calc(100dvh - 190px));min-height:420px;margin:var(--sstf-space-3) 0;border:1px solid var(--sstf-tone-waiting-border);border-radius:var(--sstf-radius-card,16px);background:var(--sstf-surface,#fff);overflow:hidden}
@media(max-width:700px){.sstf-chat>.chat-overlay-layout{grid-template-columns:1fr!important}.sstf-chat .chat-overlay-threads{display:none!important}.sstf-chat.show-threads .chat-overlay-threads{display:flex!important}.sstf-chat.show-threads .chat-overlay-conversation{display:none!important}.sstf-chat .chat-back-threads{display:inline-flex!important}}
/* BUILD-2 م2: the chat's small tool buttons (message ⋯, thread ⋯, emoji, microphone) are flat — set in the early layer so the authoritative button
   gradient (app-ui.css @layer sstf-authoritative) does not paint them as primary buttons */
@layer sstf-hotfix{
 .sstf-chat button.chat-message-menu,.sstf-chat button.chat-thread-menu,.sstf-chat button.chat-emoji,.sstf-chat button.chat-mic,.sstf-chat button.chat-attach,.chat-emoji-grid button.chat-emoji-pick{background:var(--sstf-surface,#fff)!important;background-image:none!important;color:var(--sstf-ink,#173d70)!important;box-shadow:none!important;min-height:32px!important;width:auto!important;min-width:32px!important}
 .sstf-chat button.chat-message-menu,.chat-emoji-grid button.chat-emoji-pick{background:transparent!important;border-color:transparent!important;color:var(--sstf-muted,#738092)!important}
 .chat-emoji-grid button.chat-emoji-pick{min-width:40px!important;min-height:40px!important;font-size:var(--sstf-t-page)!important;padding:0!important}
}

/* BUILD-2 م3 (SD-02): presence — a team member online (the green dot on the team card), and «مفتوح الآن عند» on the team's order page (sync.js) */
.sstf-flow .team-person.is-online>.presence-avatar::after{content:""!important;position:absolute!important;inset-block-end:2px!important;inset-inline-end:2px!important;width:10px!important;height:10px!important;border-radius:50%!important;background:var(--sstf-tone-done-fg)!important;box-shadow:var(--sstf-sh-card)!important}
.sstf-flow .sstf-sync-presence{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;margin-block:var(--sstf-space-2)!important}
.sstf-flow .sstf-sync-presence[hidden]{display:none!important}

/* BUILD-2 م4 (CD-06): «نزّل التطبيق» — the central update toast with its text column and wrapped buttons; the two pictured iPhone steps */
.sstf-flow .sstf-install-card{flex-wrap:wrap!important;z-index:9000!important;position:fixed!important;inset-inline:12px!important;inset-block-start:max(12px,env(safe-area-inset-top,0px))!important;inset-block-end:auto!important;max-width:560px!important;margin-inline:auto!important;box-shadow:var(--sstf-sh-card)!important}
/* D3-ج (owner 2026-10-20): on the phone the card sits UNDER the page head (menu, language, «في مشكلة؟» stay usable), not over it. --ui-app-height is the head's measured height (falls back to --sstf-header-h) */
@media (max-width:600px){.sstf-flow .sstf-install-card{inset-block-start:calc(var(--ui-app-height,var(--sstf-header-h)) + 8px)!important}}
.sstf-flow .sstf-install-card *{white-space:normal!important}
.sstf-flow .sstf-install-card>.sstf-install-card__text{flex:1 1 calc(100% - var(--sstf-icon-md) - var(--sstf-space-3))!important;min-width:0!important;display:grid!important;gap:2px!important;font-weight:400!important}
.sstf-flow .sstf-install-card__text>strong{font-weight:700!important}
.sstf-flow .sstf-install-card__text>small{color:var(--sstf-ink-soft,inherit)!important;white-space:normal!important}
.sstf-flow .sstf-install-card__status:empty{display:none!important}
.sstf-flow .sstf-install-card>button{flex:1 1 auto!important;min-height:44px!important}
.sstf-flow .sstf-install-card>button[hidden]{display:none!important}
.sstf-flow .sstf-install-steps{display:grid!important;gap:var(--sstf-space-3)!important;margin:0!important;padding:0!important;list-style:none!important}
.sstf-flow .sstf-install-step{display:grid!important;grid-template-columns:auto auto 1fr!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-radius-card)!important}
.sstf-flow .sstf-install-step__icon{width:calc(var(--sstf-icon-md) * 1.5)!important;height:calc(var(--sstf-icon-md) * 1.5)!important}
.sstf-flow .sstf-install-step__no{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:50%!important;background:var(--sstf-tone-action-bg)!important;border:1px solid var(--sstf-tone-action-border)!important}

/* BUILD-2 (fix found in the owner review shots): in the team's «المراسلات» dialog on a phone, «المحادثات» (back to the list) showed an empty card — an old
   rule (app-ui.css, #sstf-chat-overlay .chat-overlay-threads{display:none!important}, id specificity) beat the central chat's .show-threads rule. Same id here. */
@layer sstf-hotfix{@media(max-width:700px){body.sstf-flow #sstf-chat-overlay .sstf-chat.show-threads .chat-overlay-threads{display:flex!important}body.sstf-flow #sstf-chat-overlay .sstf-chat.show-threads .chat-overlay-conversation{display:none!important}}} /* the old rule lives in @layer sstf-hotfix (an important declaration of an earlier layer wins over unlayered ones): set in the same layer, higher specificity */

/* BUILD-2 (owner decision 2026-10-19): out of duty, the team card's chip is the connection state — «متصل» green, «غير متصل» neutral (not the red «خارج الدوام») */
@layer sstf-approved{.sstf-team-card .team-person.team-person[data-presence="out"][data-online="1"]>small{background:var(--sstf-tone-done-bg)!important;color:var(--sstf-tone-done-fg)!important}.sstf-team-card .team-person.team-person[data-presence="out"]:not([data-online="1"])>small{background:var(--sstf-surface-idle)!important;color:var(--sstf-ink-muted)!important}
.sstf-team-card .team-person.team-person[data-presence="out"]>.presence-avatar>.presence-dot{background:var(--sstf-ink-muted)!important}.sstf-team-card .team-person.team-person[data-presence="out"][data-online="1"]>.presence-avatar>.presence-dot{background:var(--sstf-tone-done-fg)!important}
.sstf-flow .team-person.team-person[data-presence="out"].is-online>.presence-avatar::after{display:none!important}} /* same layer as the approved team card (its order decides), higher specificity; out of duty the avatar dot is the connection too (no second dot) */

/* Owner 2026-10-19 («الرسائل تكون بالطريقة هذه … نفس طريقة واتس اب، بس بنفس ألوان تريد فلو»; «خلي يكون الشكل الخارجي … قريب من واتس اب قدر الإمكان»):
   the ONE central chat (chat-core.js) drawn the WhatsApp way in the TradeFlow colours — the list (round picture, name + time, last message, unread
   count, filters), the conversation (bubbles as wide as their text with the hour and ✓✓ in the corner, a day chip at the start of each day, a tail
   on the first bubble of a run, photos filling their bubble, 4+ photos as one album, voice notes as a player) and the composer (a round field with
   emoji · text · attachment beside a round microphone / send button). Same layer as the approved chat rules; :is(#…) only raises the specificity. */
@layer sstf-approved{
.sstf-chat:is(#sstf-chat-x,.sstf-chat){--chat-accent:var(--sstf-brand-primary,#174a87);--chat-own:color-mix(in srgb,var(--sstf-brand-primary,#174a87) 13%,#fff);--chat-bg:var(--sstf-tone-neutral-bg,#edf0f4);--chat-muted:var(--sstf-ink-muted,#5a6978);--chat-shadow:0 1px .5px rgba(11,20,26,.13);--chat-seen:#2f8fe0}
/* ── the list ── */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-threads{background:var(--sstf-surface,#fff)!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2) 0 0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-threads-tools{padding:0 var(--sstf-space-3)!important;gap:var(--sstf-space-2)!important;flex-wrap:nowrap!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-threads-search{min-height:42px!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-segmented,#f1f4f8)!important;padding:0 var(--sstf-space-3)!important;box-shadow:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-new-group{flex:none!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;justify-content:center!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-new-group>span:not(.sstf-icon){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(min-width:701px){.sstf-chat:is(#sstf-chat-x,.sstf-chat)>.chat-overlay-layout{display:grid!important;grid-template-columns:minmax(300px,36%) minmax(0,1fr)!important}}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-filter-chips{display:flex!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;padding:var(--sstf-space-1) var(--sstf-space-3)!important;scrollbar-width:none}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-filter-chips::-webkit-scrollbar{display:none}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-chip{flex:none!important;width:auto!important;min-width:0!important;min-height:34px!important;height:34px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;gap:6px!important;border:1px solid var(--sstf-line-card,#dfe7ef)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface,#fff)!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink,#17212b)!important;font-size:var(--sstf-t-body)!important;font-weight:500!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-chip.is-active{background:var(--sstf-brand-primary-soft,#edf4fb)!important;border-color:color-mix(in srgb,var(--chat-accent) 40%,#fff)!important;color:var(--chat-accent)!important;font-weight:700!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-chip[hidden]{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-chip__count:empty{display:none}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-thread-list{display:block!important;padding:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;min-height:74px!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:0!important;border-radius:0!important;background:var(--sstf-surface,#fff)!important;background-image:none!important;box-shadow:none!important;text-align:start!important;font-weight:400!important;color:var(--sstf-ink,#17212b)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-row:is(:hover,.is-active,[aria-current=true]){background:var(--sstf-surface-segmented,#f1f4f8)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-thread-lead{position:relative!important;flex:none!important;width:50px!important;height:50px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:var(--sstf-brand-primary-soft,#edf4fb)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-thread-lead .chat-thread-avatar{width:50px!important;height:50px!important;border-radius:50%!important;object-fit:cover!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-thread-lead .chat-thread-icon{width:28px!important;height:28px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-thread-lead .chat-online-dot{width:13px!important;height:13px!important;inset-inline-end:1px!important;bottom:1px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-row__main{flex:1 1 auto!important;min-width:0!important;display:grid!important;gap:var(--sstf-space-1)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) :is(.chat-row__top,.chat-row__bottom){width:100%!important;justify-self:stretch!important;justify-content:space-between!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) strong.chat-row__title{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;color:var(--sstf-ink,#17212b)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) time.chat-row__time{flex:none!important;font-size:var(--sstf-t-small)!important;color:var(--chat-muted)!important;font-weight:400!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .has-unread time.chat-row__time{color:var(--chat-accent)!important;font-weight:700!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-row__preview{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:var(--sstf-t-body)!important;font-weight:400!important;color:var(--chat-muted)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-row__preview.is-deleted{font-style:italic!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-row__preview .chat-ticks{font-size:var(--sstf-t-small)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-row__marks{flex:none!important;display:inline-flex!important;align-items:center!important;gap:6px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-row__mark{width:16px!important;height:16px!important;opacity:.55}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) b.chat-row__unread{min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:var(--sstf-radius-pill)!important;display:inline-grid!important;place-items:center!important;background:var(--chat-accent)!important;color:#fff!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;line-height:1!important}
/* ── the conversation head ── */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-titlebar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;background:var(--sstf-surface,#fff)!important;border-bottom:1px solid var(--sstf-line-quick,#e1e8ef)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-titlebar .chat-thread-lead{width:40px!important;height:40px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-titlebar .chat-thread-lead :is(.chat-thread-avatar){width:40px!important;height:40px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-titlebar .chat-thread-lead .chat-thread-icon{width:24px!important;height:24px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-titlebar [data-chat-title]{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:var(--sstf-t-card)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-back-threads{min-width:40px!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;justify-content:center!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat)[dir=rtl] .chat-back-threads__icon{transform:scaleX(-1)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-thread-menu{border:0!important;background:transparent!important;font-size:var(--sstf-t-page)!important}
/* ── the messages ── */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-messages{display:flex!important;flex-direction:column!important;gap:2px!important;padding:var(--sstf-space-2) var(--sstf-space-3) var(--sstf-space-3)!important;background:var(--chat-bg)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-day{align-self:center!important;margin:var(--sstf-space-2) 0 var(--sstf-space-1)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-day>span{display:inline-block!important;padding:5px var(--sstf-space-3)!important;border-radius:var(--sstf-r-s)!important;background:var(--sstf-surface,#fff)!important;box-shadow:var(--chat-shadow)!important;color:var(--chat-muted)!important;font-size:var(--sstf-t-small)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message{position:relative!important;display:block!important;align-self:flex-start!important;width:fit-content!important;min-width:72px!important;max-width:min(82%,540px)!important;margin:0!important;padding:6px 9px 7px!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:var(--sstf-surface,#fff)!important;box-shadow:var(--chat-shadow)!important;color:var(--sstf-ink,#17212b)!important;font-size:var(--sstf-t-body)!important;line-height:1.38!important;text-align:start!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.own{align-self:flex-end!important;background:var(--chat-own)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.is-first{margin-top:6px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.is-first:not(.own):not(.is-system){border-start-start-radius:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.is-first.own{border-start-end-radius:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.is-first:not(.is-system)::before{content:""!important;position:absolute!important;top:0!important;width:8px!important;height:13px!important;background:inherit!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat)[dir=rtl] article.chat-overlay-message.is-first:not(.own):not(.is-system)::before{right:-8px!important;clip-path:polygon(0 0,100% 0,0 100%)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat)[dir=rtl] article.chat-overlay-message.is-first.own::before{left:-8px!important;clip-path:polygon(0 0,100% 0,100% 100%)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat):not([dir=rtl]) article.chat-overlay-message.is-first:not(.own):not(.is-system)::before{left:-8px!important;clip-path:polygon(0 0,100% 0,100% 100%)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat):not([dir=rtl]) article.chat-overlay-message.is-first.own::before{right:-8px!important;clip-path:polygon(0 0,100% 0,0 100%)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message>header{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.show-name>header{display:block!important;margin:0 0 2px!important;padding:0!important;border:0!important;background:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.show-name>header strong{font-size:var(--sstf-t-small)!important;font-weight:700!important;color:var(--chat-accent)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message :is(p.chat-text,p.chat-deleted){margin:0!important;padding:0!important;white-space:pre-wrap!important;font-size:var(--sstf-t-body)!important;line-height:1.38!important;color:inherit!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-meta{float:inline-end!important;position:relative!important;top:5px!important;display:inline-flex!important;align-items:center!important;gap:3px!important;margin-inline-start:10px!important;margin-top:2px!important;white-space:nowrap!important;line-height:1!important;font-size:var(--sstf-t-small)!important;color:var(--chat-muted)!important;direction:ltr}
.sstf-chat:is(#sstf-chat-x,.sstf-chat)[dir=rtl] .chat-meta{direction:rtl}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-meta :is(time,small){font-size:var(--sstf-t-small)!important;color:inherit!important;font-weight:400!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-meta .chat-ticks{font-size:var(--sstf-t-small)!important;letter-spacing:-3px!important;padding-inline-end:3px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-meta .chat-ticks.is-seen{color:var(--chat-seen)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message>.chat-meta{float:none!important;display:flex!important;justify-content:flex-end!important;top:0!important;margin:2px 0 0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-reply-quote{display:block!important;margin:0 0 var(--sstf-space-1)!important;padding:5px var(--sstf-space-2)!important;border:0!important;border-inline-start:4px solid var(--chat-accent)!important;border-radius:var(--sstf-r-s)!important;background:rgba(11,20,26,.05)!important;color:var(--chat-muted)!important;font-size:var(--sstf-t-small)!important;max-height:4.2em;overflow:hidden}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) :is(.chat-forwarded,.chat-overlay-message__context,.chat-overlay-message__subject){display:block!important;margin:0 0 2px!important;font-size:var(--sstf-t-small)!important;font-style:italic;color:var(--chat-muted)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.is-system{align-self:center!important;max-width:88%!important;text-align:center!important;background:var(--sstf-surface-now,#fffaf4)!important;font-size:var(--sstf-t-small)!important;border-style:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message.is-deleted .chat-deleted{font-style:italic!important;color:var(--chat-muted)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-message__translation{margin:var(--sstf-space-1) 0 0!important;padding:var(--sstf-space-1) 0 0!important;border-top:1px dashed rgba(11,20,26,.15)!important;font-size:var(--sstf-t-body)!important}
/* the options button: a small arrow in the corner on hover (computer), a long press on the phone */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-message-menu{position:absolute!important;top:2px!important;inset-inline-end:2px!important;width:26px!important;min-width:26px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:50%!important;background:inherit!important;color:var(--chat-muted)!important;font-size:var(--sstf-t-body)!important;line-height:1!important;opacity:0;transition:opacity .12s}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message:is(:hover,:focus-within)>button.chat-message-menu{opacity:1}
/* photos: alone they fill the bubble with the hour on the photo */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-image{display:block!important;margin:0 -6px 4px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-image img{display:block!important;width:min(260px,62vw)!important;max-width:100%!important;height:auto!important;max-height:320px!important;object-fit:cover!important;border-radius:var(--sstf-r-s)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-media{padding:3px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-media .chat-image{margin:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-media>.chat-meta,.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-album__tile .chat-meta{position:absolute!important;bottom:8px!important;inset-inline-end:10px!important;top:auto!important;margin:0!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.65)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-media>.chat-meta .chat-ticks.is-seen{color:#9fd4ff!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-in-album{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-album>:is(.chat-image,.chat-meta){display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-album{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px!important;width:min(264px,64vw)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-album__tile{position:relative!important;display:block!important;aspect-ratio:1/1;overflow:hidden!important;border-radius:var(--sstf-r-s)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-album__tile img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-album__tile .chat-meta{bottom:4px!important;inset-inline-end:6px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-album__more{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;background:rgba(11,20,26,.45)!important;color:#fff!important;font-size:var(--sstf-t-page)!important;font-weight:700!important;direction:ltr}
.chat-album-view{display:grid;gap:var(--sstf-space-2)}.chat-album-view .chat-image{position:relative;display:block}.chat-album-view img{display:block;width:100%;border-radius:var(--sstf-r-s)}.chat-album-view__time{position:absolute;bottom:6px;inset-inline-end:8px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.65);font-size:var(--sstf-t-small)}
/* files */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) a.chat-file{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-1)!important;padding:var(--sstf-space-2) 10px!important;border-radius:var(--sstf-r-s)!important;background:rgba(11,20,26,.05)!important;color:var(--sstf-ink,#17212b)!important;text-decoration:none!important}
/* voice notes: picture · play · wave (with the moving dot) · length; the hour in the corner */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-voice{padding:6px var(--sstf-space-2) 6px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice-note{position:relative!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;width:min(268px,64vw)!important;padding:2px 0 14px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice-note audio.chat-voice{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__avatar{flex:none!important;width:46px!important;height:46px!important;border-radius:50%!important;overflow:hidden!important;display:grid!important;place-items:center!important;background:color-mix(in srgb,var(--chat-accent) 22%,#fff)!important;color:var(--chat-accent)!important;font-weight:700!important;font-size:var(--sstf-t-card)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-voice__play{position:relative!important;flex:none!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:var(--chat-accent)!important;background-image:none!important;box-shadow:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__play-icon{width:16px!important;height:16px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .is-playing .chat-voice__play-icon{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .is-playing button.chat-voice__play::before{content:""!important;width:12px!important;height:14px!important;border-inline:4px solid #fff!important;box-sizing:border-box!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__wave{position:relative!important;flex:1 1 auto!important;min-width:0!important;height:30px!important;display:flex!important;align-items:center!important;gap:2px!important;direction:ltr!important;cursor:pointer}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__wave i{flex:1 1 0!important;min-width:2px!important;border-radius:var(--sstf-r-s)!important;background:color-mix(in srgb,var(--chat-muted) 45%,#fff)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__wave i.on{background:var(--chat-accent)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-voice__dot{position:absolute!important;top:50%!important;left:calc(var(--p,0) * 100%)!important;width:12px!important;height:12px!important;margin:-6px 0 0 -6px!important;border-radius:50%!important;background:var(--chat-accent)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) small.chat-voice__time{position:absolute!important;bottom:-3px!important;inset-inline-start:90px!important;font-size:var(--sstf-t-small)!important;color:var(--chat-muted)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) article.is-voice>.chat-meta{position:absolute!important;top:auto!important;bottom:6px!important;inset-inline-end:10px!important;margin:0!important}
/* ── the composer: a round field (emoji · text · attachment) and the round microphone / send button ── */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-form{background:var(--chat-bg)!important;border-top:0!important;padding:6px var(--sstf-space-2) var(--sstf-space-2)!important;margin:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar{display:flex!important;align-items:flex-end!important;gap:6px!important;margin:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-pill{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:flex-end!important;gap:2px!important;padding:3px 6px!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-surface,#fff)!important;box-shadow:var(--chat-shadow)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-pill .chat-compose{flex:1 1 auto!important;min-width:0!important;display:block!important;margin:0!important;padding:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-pill textarea{display:block!important;width:100%!important;min-height:42px!important;height:42px;max-height:132px!important;margin:0!important;padding:10px var(--sstf-space-1)!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;resize:none!important;font-size:var(--sstf-t-card)!important;line-height:1.35!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-pill button:is(.chat-emoji,.chat-attach){flex:none!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;background-image:none!important;box-shadow:none!important;font-size:var(--sstf-t-page)!important;display:grid!important;place-items:center!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-pill .chat-tool__icon{width:24px!important;height:24px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar button:is(.chat-send,.chat-mic){position:relative!important;flex:none!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:var(--chat-accent)!important;background-image:none!important;box-shadow:var(--chat-shadow)!important;color:#fff!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar button:is(.chat-send,.chat-mic)[hidden],.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-pill button[hidden]{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-send__icon{width:24px!important;height:24px!important;filter:brightness(0) invert(1)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat)[dir=rtl] .chat-bar .chat-send__icon{transform:scaleX(-1)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-mic .chat-tool__icon{width:24px!important;height:24px!important;filter:brightness(0) invert(1)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-mic .sstf-icon--pending{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-mic:has(.sstf-icon--pending)::before{content:""!important;width:24px!important;height:24px!important;background:#fff!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3.5 3.5 0 0 0 3.5-3.5v-6a3.5 3.5 0 0 0-7 0v6A3.5 3.5 0 0 0 12 15zm6-3.5a1 1 0 1 0-2 0 4 4 0 0 1-8 0 1 1 0 1 0-2 0 6 6 0 0 0 5 5.9V20H9a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-2v-2.6a6 6 0 0 0 5-5.9z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15a3.5 3.5 0 0 0 3.5-3.5v-6a3.5 3.5 0 0 0-7 0v6A3.5 3.5 0 0 0 12 15zm6-3.5a1 1 0 1 0-2 0 4 4 0 0 1-8 0 1 1 0 1 0-2 0 6 6 0 0 0 5 5.9V20H9a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-2v-2.6a6 6 0 0 0 5-5.9z'/%3E%3C/svg%3E") center/contain no-repeat}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-mic.is-recording{background:var(--sstf-tone-danger-strong,#d1463b)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-file-name{display:inline-block!important;margin:0 0 6px!important;padding:var(--sstf-space-1) 10px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface,#fff)!important;font-size:var(--sstf-t-small)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-file-name:empty{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-reply-bar{border-radius:var(--sstf-r-s)!important;background:var(--sstf-surface,#fff)!important;border-inline-start:4px solid var(--chat-accent)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-reply-bar[hidden]{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-context{border-radius:var(--sstf-radius-pill)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) p.chat-status{margin:var(--sstf-space-1) var(--sstf-space-1) 0!important;font-size:var(--sstf-t-small)!important;color:var(--chat-muted)!important}
}
@layer sstf-typography{
 .sstf-chat:is(#sstf-chat-x,.sstf-chat) article.chat-overlay-message :is(p,a,blockquote,span){overflow-wrap:anywhere!important}
}
/* CHAT-WA (owner 2026-10-21, FEATURE-1320 أ): the floating «+» of the conversations list, «تحديد جهة اتصال», the person card, the broadcast picker,
   the WhatsApp recording bar, the readable owner microphone (chat-mic) and the emoji card — central tokens and the library icons only. A name or a short
   line stays on one line and scrolls inside its place (OQ-X5-01: no «…», the row never grows). */
@layer sstf-approved{
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-threads{position:relative!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-fab{position:absolute!important;inset-inline-end:var(--sstf-space-4)!important;bottom:calc(var(--sstf-space-4) + env(safe-area-inset-bottom,0px))!important;z-index:3!important;width:58px!important;min-width:58px!important;height:58px!important;min-height:58px!important;padding:0!important;margin:0!important;border:0!important;border-radius:var(--sstf-r-m)!important;display:grid!important;place-items:center!important;background:var(--sstf-surface,#fff)!important;background-image:none!important;box-shadow:var(--sstf-sh-card)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-fab__icon{width:42px!important;height:42px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-threads.is-contacts>:not(.chat-contacts){display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts[hidden]{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts:not([hidden]){display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__head{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:0 var(--sstf-space-2) var(--sstf-space-2)!important;border-bottom:1px solid var(--sstf-line-quick,#e1e8ef)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__back{display:inline-flex!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__titles{flex:1 1 auto!important;min-width:0!important;display:grid!important;gap:2px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__titles[hidden],.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__search[hidden]{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) strong.chat-contacts__title{font-size:var(--sstf-t-card)!important;font-weight:700!important;color:var(--sstf-ink,#17212b)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) small.chat-contacts__count{font-size:var(--sstf-t-small)!important;color:var(--chat-muted)!important;font-weight:500!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) input.chat-contacts__search{flex:1 1 auto!important;min-width:0!important;min-height:42px!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-segmented,#f1f4f8)!important;padding:0 var(--sstf-space-3)!important;font-size:var(--sstf-t-card)!important;box-shadow:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-contacts__find{flex:none!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 0 var(--sstf-space-4)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__section{margin:var(--sstf-space-3) var(--sstf-space-4) var(--sstf-space-1)!important;padding:0!important;font-size:var(--sstf-t-body)!important;font-weight:600!important;color:var(--chat-muted)!important;background:none!important;border:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-contact,.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-contacts__action{min-height:66px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__action-lead{background:var(--sstf-tone-done-bg,#e8f5e9)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contacts__action strong.chat-row__title{font-size:var(--sstf-t-card)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contact strong.chat-row__title,.sstf-chat:is(#sstf-chat-x,.sstf-chat) small.chat-contact__sub,.chat-broadcast__who>:is(strong,small),.chat-person__name{display:block!important;min-width:0!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;text-overflow:clip!important;scrollbar-width:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contact strong.chat-row__title::-webkit-scrollbar,.sstf-chat:is(#sstf-chat-x,.sstf-chat) small.chat-contact__sub::-webkit-scrollbar,.chat-broadcast__who>:is(strong,small)::-webkit-scrollbar,.chat-person__name::-webkit-scrollbar{display:none}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) small.chat-contact__sub{font-size:var(--sstf-t-small)!important;font-weight:400!important;color:var(--chat-muted)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contact.is-closed small.chat-contact__sub{font-style:italic!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contact-row{display:flex!important;align-items:center!important;min-width:0!important;padding-inline-end:var(--sstf-space-2)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contact-row>button.chat-contact{flex:1 1 auto!important;min-width:0!important;width:auto!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-contact__info{flex:none!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border:0!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) button.chat-contact__info:is(:hover,:focus-visible){background:var(--sstf-surface-segmented,#f1f4f8)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-contact__info-icon{width:26px!important;height:26px!important}
/* the person card (actionModal) */
.chat-person{display:grid;gap:var(--sstf-space-3);justify-items:center}
.chat-person__head{display:grid;justify-items:center;gap:var(--sstf-space-2);max-width:100%;min-width:0}
.chat-person .chat-thread-lead.chat-person__lead{position:relative;width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:var(--sstf-brand-primary-soft,#edf4fb)}
.chat-person__lead .chat-thread-avatar{width:84px;height:84px;border-radius:50%;object-fit:cover}.chat-person__lead .chat-thread-icon{width:44px;height:44px}
.chat-person__lead .chat-online-dot{position:absolute;inset-inline-end:4px;bottom:4px;width:16px;height:16px;border-radius:50%;background:var(--sstf-tone-done-fg,#1f8f4e);border:2px solid var(--sstf-surface,#fff)}
.chat-person__name{max-width:100%;font-size:var(--sstf-t-card);font-weight:700;color:var(--sstf-ink,#17212b)}
.chat-person__facts{display:grid;gap:var(--sstf-space-2);width:100%;margin:0}
.chat-person__fact{display:grid;grid-template-columns:minmax(80px,auto) minmax(0,1fr);gap:var(--sstf-space-2);align-items:baseline;padding:var(--sstf-space-2) 0;border-bottom:1px solid var(--sstf-line-quick,#e1e8ef)}
.chat-person__fact dt{margin:0;color:var(--sstf-ink-muted,#5a6978);font-size:var(--sstf-t-small)}.chat-person__fact dd{margin:0;min-width:0;overflow-wrap:break-word;word-break:normal}
.chat-person__phone{unicode-bidi:isolate}
.chat-person__open{justify-self:stretch}
/* the broadcast picker (actionModal) */
.chat-broadcast__count{margin:var(--sstf-space-2) 0 0;font-size:var(--sstf-t-small);color:var(--sstf-ink-muted,#5a6978)}
.chat-broadcast__list{max-height:42dvh}
.chat-broadcast__list .chat-contacts__section{margin:var(--sstf-space-2) 0 0;font-size:var(--sstf-t-body);color:var(--sstf-ink-muted,#5a6978)}
.chat-broadcast__person{display:flex;align-items:center;gap:var(--sstf-space-2);min-width:0;padding:var(--sstf-space-1) 0;cursor:pointer}
.chat-broadcast__person input{flex:none;width:20px;height:20px;margin:0}
.chat-broadcast__person .chat-thread-lead{position:relative;flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--sstf-brand-primary-soft,#edf4fb)}
.chat-broadcast__person .chat-thread-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover}.chat-broadcast__person .chat-thread-icon{width:22px;height:22px}.chat-broadcast__person .chat-online-dot{display:none}
.chat-broadcast__who{display:grid;min-width:0;flex:1 1 auto}.chat-broadcast__who small{color:var(--sstf-ink-muted,#5a6978);font-size:var(--sstf-t-small)}
textarea.chat-broadcast__text{width:100%;min-height:84px;margin-top:var(--sstf-space-2);font-size:var(--sstf-t-card);box-sizing:border-box}
/* أ-5: the readable owner microphone (chat-mic, in its own colours) */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar button.chat-mic{background:transparent!important;box-shadow:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-mic .chat-tool__icon{width:48px!important;height:48px!important;filter:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-bar .chat-mic:has(.sstf-icon--pending)::before{background:var(--chat-accent)!important;width:30px!important;height:30px!important}
/* أ-5: the recording bar replaces the writing box while recording */
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-overlay-form.is-recording>:is(.chat-bar,.chat-reply-bar,.chat-file-name,.chat-context){display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec[hidden]{display:none!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) p.chat-status.is-alert{margin:6px 0 0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-r-s)!important;background:var(--sstf-tone-danger-bg,#ffeaee)!important;color:var(--sstf-tone-danger-fg,#a92d40)!important;font-size:var(--sstf-t-body)!important;font-weight:600!important;line-height:1.45!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec:not([hidden]){display:grid!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3) var(--sstf-space-3) var(--sstf-space-2)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-surface,#fff)!important;box-shadow:var(--chat-shadow)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__top{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__dot{flex:none!important;width:12px!important;height:12px!important;border-radius:50%!important;background:var(--sstf-tone-danger-strong,#d1463b)!important;animation:sstf-rec-blink 1s steps(2,start) infinite}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec.is-paused .chat-rec__dot{animation:none!important;background:var(--chat-muted)!important}
@keyframes sstf-rec-blink{to{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__dot{animation:none!important}}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__time{flex:none!important;min-width:3.2em!important;direction:ltr!important;unicode-bidi:isolate!important;font-size:var(--sstf-t-page)!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;color:var(--sstf-ink,#17212b)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__wave{flex:1 1 auto!important;min-width:0!important;height:32px!important;display:flex!important;align-items:center!important;gap:2px!important;direction:ltr!important;overflow:hidden!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__wave i{flex:0 0 3px!important;min-height:3px!important;border-radius:var(--sstf-r-s)!important;background:color-mix(in srgb,var(--chat-muted) 35%,#fff)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__wave i.is-on{background:var(--chat-accent)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__actions{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__actions>button{margin:0!important;border:0!important;background-image:none!important;box-shadow:none!important;padding:0!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__actions>button:is(.chat-rec__delete,.chat-rec__send){flex:none!important;width:50px!important;min-width:50px!important;height:50px!important;min-height:50px!important;border-radius:50%!important;display:grid!important;place-items:center!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__actions>button.chat-rec__delete{background:var(--sstf-tone-danger-bg,#ffeaee)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__actions>button.chat-rec__send{background:var(--chat-accent)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__send .chat-rec__icon{filter:brightness(0) invert(1)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat)[dir=rtl] .chat-rec__send .chat-rec__icon{transform:scaleX(-1)}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__icon{width:24px!important;height:24px!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__actions>button.chat-rec__pause{flex:1 1 auto!important;min-width:0!important;min-height:50px!important;border-radius:var(--sstf-radius-pill)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;background:var(--sstf-surface-segmented,#f1f4f8)!important;color:var(--sstf-ink,#17212b)!important;font-size:var(--sstf-t-card)!important;font-weight:600!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__pause-mark{flex:none!important;width:12px!important;height:15px!important;border-inline:4px solid currentColor!important;box-sizing:border-box!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec.is-paused .chat-rec__pause-mark{width:14px!important;height:14px!important;border:0!important;border-radius:50%!important;background:var(--sstf-tone-danger-strong,#d1463b)!important}
.sstf-chat:is(#sstf-chat-x,.sstf-chat) .chat-rec__pause-text{min-width:0!important;white-space:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important}
/* أ-6: the emoji card — inside the screen at any width (the central popover width), flat faces, its own vertical scroll */
body .ss-quick-popover:has(>.chat-emoji-grid),body .ss-quick-popover.chat-emoji-popover{padding:6px!important}
body .ss-quick-popover .chat-emoji-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(38px,1fr))!important;gap:2px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:0!important;max-height:min(264px,calc(100dvh - 140px))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
body .ss-quick-popover .chat-emoji-grid button.chat-emoji-pick{display:grid!important;place-items:center!important;width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:transparent!important;background-image:none!important;box-shadow:none!important;outline-offset:-2px;font-size:var(--sstf-t-page)!important;line-height:1!important;color:inherit!important;filter:none!important}
body .ss-quick-popover .chat-emoji-grid button.chat-emoji-pick:is(:hover,:focus-visible){background:var(--sstf-surface-segmented,#f1f4f8)!important}
}
/* BUILD-2 م10: a settings card with no field (only notes, e.g. «الفحص الليلي للبيانات») is one full-width cell of the long-form grid, not a narrow column */
@layer sstf-approved{.sstf-form-long .sstf-settings-card:not([hidden]):not(:has(.sstf-icon-field)){grid-column:1/-1!important;min-width:0}}
/* BUILD-2 B2-F06 (seen in the review of item 8): the update toast's long notice squeezed «فتح» to a cut word at 390 — the notice takes its own row, the two buttons the next */
.sstf-flow .sstf-update-toast{flex-wrap:wrap!important}
.sstf-flow .sstf-update-toast>span:first-child{flex:1 1 calc(100% - var(--sstf-icon-md) - var(--sstf-space-3))!important}
.sstf-flow .sstf-update-toast>:is(a,button){flex:1 1 auto!important}
/* ERROR-CATCHER E5: the «في مشكلة؟» card and the managers' report page — the screenshot fits its card, the voice row wraps */
@layer sstf-approved{.sstf-pilot-shot{margin:0;display:grid;gap:var(--sstf-space-2)}.sstf-pilot-shot img,img.sstf-pilot-shot{display:block;max-width:100%;height:auto;border:1px solid var(--sstf-tone-neutral-border);border-radius:var(--sstf-radius-card)}.sstf-pilot-voice{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sstf-space-2)}.sstf-pilot-voice audio{max-width:100%}.sstf-pilot-form{display:grid;gap:var(--sstf-space-3)}.sstf-pilot-text{white-space:pre-wrap}}
/* PILOT-FAST (owner 2026-10-21): the report card's «أرفق صورة الشاشة» / «تصوير تلقائي» row, the phone hint and up to 3 thumbnails, each with its remove × */
@layer sstf-approved{
  .sstf-pilot-shots{display:grid;gap:var(--sstf-space-2)}
  .sstf-pilot-shots__tools{display:flex;flex-wrap:wrap;gap:var(--sstf-space-2);align-items:center}
  .sstf-pilot-shots__tools>button{display:inline-flex;align-items:center;gap:var(--sstf-space-2);min-height:var(--sstf-touch)}
  .sstf-pilot-hint,.sstf-pilot-shots__status{color:var(--sstf-ink-muted,#5b6b7c)}
  .sstf-pilot-shots__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sstf-space-2)}
  .sstf-pilot-shots__list:empty{display:none}
  .sstf-pilot-shots__list .sstf-pilot-shot{position:relative;margin:0}
  .sstf-pilot-shots__list .sstf-pilot-shot img{display:block;width:100%;height:calc(var(--sstf-touch) * 2);object-fit:cover;border:1px solid var(--sstf-tone-neutral-border);border-radius:var(--sstf-radius-card)}
  .sstf-pilot-shot__remove{position:absolute!important;inset-block-start:var(--sstf-space-1)!important;inset-inline-end:var(--sstf-space-1)!important;min-width:var(--sstf-chip-h)!important;min-height:var(--sstf-chip-h)!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;padding:0!important;border-radius:50%!important;line-height:1!important}
}
/* PILOT-SHEET (owner 2026-10-21): the small «في مشكلة؟» button that EVERY card head carries beside × (central-system.js pilotTool, pilot mode only):
   a 40 hit box with the same white circle as × (36) and the header's red alert icon; in the central one-row head (back · title · ×) it shares the
   × column, just inside it — both side columns widen by its size so the title stays centred (a long title keeps the 2B one-line rule). */
@layer sstf-approved{
  .sstf-card-pilot{--sstf-card-pilot:calc(var(--sstf-chip-h) + var(--sstf-space-1));position:relative!important;display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;flex:0 0 auto!important;width:var(--sstf-card-pilot)!important;height:var(--sstf-card-pilot)!important;min-width:var(--sstf-card-pilot)!important;min-height:var(--sstf-card-pilot)!important;max-width:var(--sstf-card-pilot)!important;margin:0!important;padding:0!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:none!important;box-shadow:none!important;color:inherit!important;cursor:pointer!important;isolation:isolate!important;inset:auto!important;font-size:0!important;line-height:0!important}
  .sstf-card-pilot::before{content:""!important;position:absolute!important;z-index:-1!important;inset:0!important;margin:auto!important;width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;border:1px solid var(--sstf-line-card)!important;border-radius:50%!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important}
  .sstf-card-pilot>.sstf-card-pilot__icon{display:block!important;width:calc(var(--sstf-t-card) + var(--sstf-space-1))!important;height:calc(var(--sstf-t-card) + var(--sstf-space-1))!important;min-width:0!important;max-width:none!important;margin:0!important;object-fit:contain!important;pointer-events:none!important}
  .sstf-card-pilot:focus-visible{outline:var(--sstf-ring-2) solid var(--tf-primary,var(--sstf-ink))!important;outline-offset:calc(-1 * var(--sstf-ring-2))!important}
  .sstf-card-pilot[aria-busy="true"]{opacity:.6!important;cursor:progress!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading):has(>.sstf-card-pilot){grid-template-columns:minmax(calc(var(--sstf-touch) + var(--sstf-chip-h) + var(--sstf-space-1)),1fr) minmax(0,auto) minmax(calc(var(--sstf-touch) + var(--sstf-chip-h) + var(--sstf-space-1)),1fr)!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-pilot{grid-row:1!important;grid-column:3!important;justify-self:end!important;align-self:center!important;margin-inline-end:var(--sstf-touch)!important;order:2!important}
}
/* I2 (owner 2026-10-20): the «المحادثات» app page (templates/shared/chat-app.php) — the same central chat (#sstf-chat-overlay rules), only its frame
   fills the window; and the small «ثبّت المحادثات كتطبيق» line of the conversations list (chat-core.js). The overlay frame size
   rules live in sstf-compat / sstf-hotfix with !important: the frame is set in sstf-compat (the earlier layer) with the higher specificity. */
@layer sstf-compat{body.sstf-flow.sstf-chat-app{margin:0!important;padding:0!important;min-height:0!important;overflow:hidden!important;background:#fff!important}body.sstf-flow.sstf-chat-app #sstf-chat-overlay{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:var(--sstf-visual-height,100dvh)!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important;box-sizing:border-box!important;overflow:hidden!important}body.sstf-flow.sstf-chat-app .sstf-chat-app__push{margin-inline-start:auto!important}body.sstf-flow.sstf-chat-app .sstf-chat-app__status{position:fixed!important;inset-inline:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;z-index:5!important;margin:0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-r-s)!important;background:#173758!important;color:#fff!important;font-size:var(--sstf-t-small)!important}body.sstf-flow.sstf-chat-app .sstf-chat-app__status[hidden]{display:none!important}}
@layer sstf-hotfix{body.sstf-flow .sstf-chat button.chat-app-install{display:block!important;width:100%!important;min-height:0!important;margin:2px 0 6px!important;padding:var(--sstf-space-1) 6px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--sstf-tone-waiting-fg,#3d69ae)!important;font-size:var(--sstf-t-small)!important;font-weight:500!important;text-align:start!important;text-decoration:underline!important;cursor:pointer!important}body.sstf-flow .sstf-chat button.chat-app-install[hidden]{display:none!important}}
@layer sstf-approved{
  /* ASSIST (1.32.0): the portals' phone bottom bar carries «المساعد» (after the first two items): one row of equal columns; it scrolls
     horizontally only when its entries do not fit (same rule as the team bar), «المزيد» stays at the bar's end. */
  body.sstf-flow nav.store-bottom-nav{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(64px,1fr)!important;overflow:visible!important} /* R134 Q1: 5 entries, no scroll, «المزيد» not sticky */
  body.sstf-flow :is(nav.mobile-nav,nav.store-bottom-nav)>button.sstf-assistant-bar-item{cursor:pointer}
}

/* == UI-1321 و-1 START — every count badge (owner reference badge-target.jpg) ==
 * One look for every count: header chats + bell (and the same chrome in the external portals), the quick-action tile icons, the quick-actions
 * total, the notifications card title, the chat list / filter counts. A round red pill (height 20, min-width = height → one digit is a circle,
 * two digits widen sideways), 2px white ring, a soft shine (top highlight + gradient), the number white 12/800 centred, never wrapped.
 * On an icon it sits at the icon's top-right corner, overlapping it slightly (touching), drawn over it, never clipped (a badge carries a class with «count» so its
 * host button is not a 2B scroll box — see the 2B contract above). :not(#sstf-count-boost) lifts the rule over the older per-badge id rules. Above 99 the writers print «99+». */
@layer sstf-approved{
  :is(.ss-message-count,#sstf-update-count,.sstf-count,.sstf-quick-tile__icon>i,.sstf-quick-actions__count,.sstf-app-card .sstf-app-card__count,.sstf-chat b.chat-row__unread,.sstf-chat b.chat-chip__count,.fold-count,.finance-chip-count,.sstf-icon-count):not(#sstf-count-boost){ /* BATCH A 2.7: one counter shape on every icon (fold / finance chip counts joined) */
    display:inline-grid!important;place-items:center!important;box-sizing:border-box!important;min-width:var(--sstf-count-h)!important;height:var(--sstf-count-h)!important;
    padding:0 var(--sstf-count-pad)!important;margin:0!important;border:var(--sstf-count-ring) solid var(--sstf-surface,#fff)!important;border-radius:var(--sstf-radius-pill)!important;
    background:var(--sstf-count-bg)!important;background-image:var(--sstf-count-bg-shine)!important;box-shadow:var(--sstf-count-shadow)!important;
    color:var(--sstf-count-fg)!important;font-family:inherit!important;font-style:normal!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;line-height:1!important;
    letter-spacing:0!important;text-align:center!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;
    direction:ltr!important;unicode-bidi:isolate!important;font-variant-numeric:tabular-nums!important;z-index:2!important}
  :is(.ss-message-count,#sstf-update-count,.sstf-quick-actions__count,.sstf-app-card__count,.chat-row__unread,.chat-chip__count,.sstf-count):is([hidden],:empty):not(#sstf-count-boost){display:none!important}
  .app-settings-open .ss-message-count:not(#sstf-count-boost){display:none!important} /* the bell shows its own count only */
  .sstf-quick-actions__count[data-zero="1"]:not(#sstf-count-boost){background:var(--sstf-tone-neutral-strong)!important;background-image:none!important} /* «0»: the neutral pill, as before */
  /* on an icon: the badge's start edge a little inside the icon's right edge, its middle on the icon's top edge (physical top-right in both directions) */
  .app-header :is(.chat-launch,.app-settings-open){--sstf-count-icon:var(--sstf-space-6);position:relative!important;overflow:visible!important}
  .app-header :is(.chat-launch,.app-settings-open) :is(.ss-message-count,#sstf-update-count){position:absolute!important;inset:auto!important;
    top:calc(50% - var(--sstf-count-icon) / 2 - var(--sstf-count-h) / 2 + var(--sstf-space-1))!important;
    left:calc(50% + var(--sstf-count-icon) / 2 - var(--sstf-space-3))!important;right:auto!important}
  .sstf-quick-tile__icon{position:relative!important;overflow:visible!important}
  /* a tile icon sits beside its label: the badge's right edge stays at the icon's right edge (it widens over the icon, never over the label) */
  .sstf-quick-tile__icon>i{position:absolute!important;inset:auto!important;top:calc(-1 * var(--sstf-count-h) / 2 + var(--sstf-space-1))!important;right:calc(-1 * var(--sstf-space-1) / 2)!important;left:auto!important}
}
/* == UI-1321 و-1 END == */

/* == UI-1321 و-2 START — the header icon row (owner: header-icons-current.jpg) ==
 * Every header control of the nav row — back arrow, team & duty, «في مشكلة؟», account, bell, chats (staff and the external portals: one chrome,
 * Chrome.php) — is the same 48 touch box with no frame, its picture one size (--sstf-header-icon = 28, the header-icon exception of the scale)
 * and centred; between two neighbours ONE fixed gap from the scale (--sstf-header-gap = space-2). On a phone (≤600) the two groups close up into one
 * run with that same gap (the middle no longer takes the left-over width); on a wide screen the groups keep the two ends, each with the same gap. */
@layer sstf-approved{
  .app-header.app-header--rows{--sstf-header-gap:var(--sstf-space-2);--sstf-header-icon:var(--sstf-icon-lg)}
  .app-header.app-header--rows :is(.chat-launch,.app-settings-open){--sstf-count-icon:var(--sstf-header-icon)}
  /* coordinator 2026-10-21 (OQ-X5-01): the page title in the nav row (header-context, e.g. «Fly Cargo 订单 F-0001») takes the room the row has —
     the legacy 120px cap (app-ui.css) cut it with 990px free; it scrolls in place only when the row really is too narrow */
  .app-header--rows .header-context>strong{max-width:100%!important;flex:0 1 auto!important;min-width:0!important}
  @media(max-width:600px){
  }
}
/* == UI-1321 و-2 END == */

/* == UI-1321 و-3 START — the page-head tools row (owner: order-buttons B-0004, the picture with the light strip) ==
 * Every head-tools row (ComponentRenderer::toolbar / headTool / download trigger / info tool — B2B order, S&S order, accounting, portals …) is ONE
 * light strip holding equal tools: same width (flex 1 1 0 between a 48 floor and a cap), same height, one gap; in each tool the picture on top and
 * its full name under it in a smaller font (the caption, central-system.js headCaptions: data-sstf-caption, else the aria-label). Text rule
 * OQ-X5-01: the caption is one line, never «…» and never a second line — a caption longer than its tool scrolls inside it; a row of tools wider
 * than the screen scrolls sideways inside the strip (never wraps, the page never scrolls). Coordinator 2026-10-21 (owner: «الاسم كاملًا … لا قص»): every
 * tool is at least as wide as the strip's longest caption (--sstf-tool-w, measured by central-system.js) — all names whole; when 7 such tools do not
 * fit (Arabic at 390 needs ≈ 60px a tool, 52.8 available) the STRIP scrolls, never a name. On a phone the tools share the strip's width; on a wide
 * screen each tool has the cap width (96). */
@layer sstf-approved{
  .sstf-head-tools{--sstf-tool-min:var(--sstf-touch);--sstf-tool-max:calc(var(--sstf-touch) * 2);--sstf-tool-h:calc(var(--sstf-touch) + var(--sstf-space-3));--sstf-tool-icon:var(--sstf-icon-lg);--sstf-tool-caption:var(--sstf-t-small);--sstf-tool-gap:2px;--sstf-strip-bg:rgba(226,233,243,.72)}
  @media(max-width:430px){.sstf-head-tools{--sstf-tool-caption:var(--sstf-t-small)}} /* R134 Q2 (#97, owner answer س45): no text under 12px — the strip scrolls with its edge fade when the tools do not fit */
  .sstf-head-tools.sstf-head-tools{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:var(--sstf-tool-gap)!important;box-sizing:border-box!important;
    width:fit-content!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:var(--sstf-tool-gap)!important;border:1px solid var(--sstf-white-a88)!important;border-radius:var(--sstf-radius-card)!important;
    background:var(--sstf-strip-bg)!important;box-shadow:var(--sstf-rim)!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain!important;scrollbar-width:none!important}
  .sstf-head-tools.sstf-head-tools::-webkit-scrollbar{display:none!important}
  :is(.sstf-order-heading,.ss-page-heading)>.sstf-head-tools.sstf-head-tools{flex:1 0 100%!important;width:auto!important;order:9!important} /* a standalone row is as wide as its tools; the page-head row takes its line */
  @media(min-width:601px){
    /* evaluator 2026-10-21 (و-3 1366): the head strip is as wide as its equal buttons (no empty strip beside them); a zero-height full-width
       break before it keeps it on its own line under the title */
    :is(.sstf-order-heading,.ss-page-heading)>.sstf-head-tools.sstf-head-tools{flex:0 0 auto!important;width:fit-content!important}
    :is(.sstf-order-heading,.ss-page-heading):has(>.sstf-head-tools)::after{content:""!important;display:block!important;order:8!important;flex:0 0 100%!important;height:0!important;margin:0!important;padding:0!important}
    .sstf-head-tools{--sstf-tool-caption:var(--sstf-t-small)}.sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)[aria-label]:not(.sstf-head-tool--labelled){flex:0 0 max(var(--sstf-tool-max),var(--sstf-tool-w,0px))!important}}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)[aria-label]:not(.sstf-head-tool--labelled){flex:1 1 0!important;box-sizing:border-box!important;width:auto!important;min-width:max(var(--sstf-tool-min),var(--sstf-tool-w,0px))!important;max-width:var(--sstf-tool-max)!important;
    height:var(--sstf-tool-h)!important;min-height:var(--sstf-tool-h)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;
    margin:0!important;padding:var(--sstf-space-1) 1px!important;border:1px solid var(--sstf-white-a88)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:var(--sstf-sh-card)!important;text-decoration:none!important}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)[aria-label]:not(.sstf-head-tool--labelled)>.sstf-icon{flex:0 0 var(--sstf-tool-icon)!important;width:var(--sstf-tool-icon)!important;height:var(--sstf-tool-icon)!important;margin:0!important}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)[aria-label]:not(.sstf-head-tool--labelled)::after{font-size:var(--sstf-tool-caption)!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:clip!important}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu):has(>.sstf-head-tool__caption)::after{content:none!important;display:none!important}
  .sstf-head-tool__caption{display:none!important}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)>.sstf-head-tool__caption{display:block!important;flex:0 0 auto!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;
    font-size:var(--sstf-tool-caption)!important;font-weight:700!important;line-height:1.25!important;color:var(--sstf-ink)!important;text-align:center!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;text-overflow:clip!important;scrollbar-width:none!important}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)>.sstf-head-tool__caption::-webkit-scrollbar{display:none!important}
  .sstf-head-tools.sstf-head-tools>:is(.sstf-head-tool,.ss-card-menu)>.sstf-head-tool__caption[data-sstf-2b-start]{text-align:start!important}
  .sstf-head-tools.sstf-head-tools>:not(.sstf-head-tool,.ss-card-menu,[hidden]){flex:0 0 auto!important;align-self:center!important}
}
/* == UI-1321 و-3 END == */

/* == UI-1321 N-3 START — the short «العودة» in the title row (owner: ss-order-back-target.png) ==
 * Every order / section page head (ComponentRenderer::largeCardStart) and every card head with a back (central-system.js ensureBackButton) is ONE
 * row: start = a short «العودة» button (Back / 返回) with its arrow, a light-blue rounded button; middle = the title (one line, scrolls in place
 * when long — 2B); end = ×. The full «العودة إلى …» is the button's accessible name and tooltip. No second row (the JS no longer marks
 * data-sstf-wrapped; the rules below also hold if an older script still does). */
@layer sstf-approved{
  :root{--sstf-back-bg:#e6effb;--sstf-back-border:#c9daf3;--sstf-back-fg:#1f5bb5}
  .sstf-large-card__head.sstf-large-card__head,.sstf-large-card__head.sstf-large-card__head[data-sstf-wrapped]{flex-wrap:nowrap!important;row-gap:0!important;align-items:center!important;gap:var(--sstf-space-3)!important}
  .sstf-large-card__head.sstf-large-card__head>.sstf-card-back,
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back{
    order:0!important;flex:0 0 auto!important;grid-row:1!important;grid-column:1!important;justify-self:start!important;align-self:center!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;box-sizing:border-box!important;
    width:auto!important;min-width:0!important;max-width:none!important;inline-size:auto!important;margin:0!important;padding:0 var(--sstf-space-3)!important;
    border:1px solid var(--sstf-back-border)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-back-bg)!important;box-shadow:var(--sstf-sh-card)!important;
    color:var(--sstf-back-fg)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;text-decoration:none!important}
  .sstf-large-card__head.sstf-large-card__head>.sstf-card-back{height:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back{height:var(--sstf-chip-h)!important;min-height:var(--sstf-chip-h)!important;font-size:var(--sstf-t-body)!important}
  /* the arrow (owner picture): a bold chevron in the text colour pointing back — in RTL after the word, pointing right («العودة ›» read from the right);
     in LTR before the word, pointing left («‹ Back») */
  .sstf-large-card__head.sstf-large-card__head>.sstf-card-back::before,.sstf-large-card__head.sstf-large-card__head>.sstf-card-back::after,dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back::before,dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back::after{content:none!important;display:none!important}
  .sstf-large-card__head.sstf-large-card__head>.sstf-card-back:dir(rtl)::after,dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back:dir(rtl)::after,.sstf-large-card__head.sstf-large-card__head>.sstf-card-back:dir(ltr)::before,dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back:dir(ltr)::before{content:""!important;display:inline-block!important;flex:0 0 auto!important;position:static!important;
    width:calc(var(--sstf-space-2) + 2px)!important;height:calc(var(--sstf-space-2) + 2px)!important;margin:0 2px!important;padding:0!important;border:solid currentColor!important;border-width:0 3px 3px 0!important;border-radius:var(--sstf-r-s)!important;
    background:none!important;font-size:0!important;transform:rotate(-45deg)!important;vertical-align:middle!important}
  .sstf-large-card__head.sstf-large-card__head>.sstf-card-back:dir(ltr)::before,dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)>.sstf-card-back.sstf-card-back:dir(ltr)::before{transform:rotate(135deg)!important}
  .sstf-large-card__head.sstf-large-card__head>:is(strong,.sstf-large-card__titlebox),.sstf-large-card__head.sstf-large-card__head[data-sstf-wrapped]>:is(strong,.sstf-large-card__titlebox){order:1!important;flex:1 1 auto!important;min-width:0!important;text-align:center!important;justify-content:center!important}
  .sstf-large-card__head.sstf-large-card__head>.sstf-large-card__close,.sstf-large-card__head.sstf-large-card__head[data-sstf-wrapped]>.sstf-large-card__close{order:2!important;margin-inline-start:0!important}
  dialog[data-sstf-card]:not([data-sstf-approved-shell])>:is(header,.sstf-central-glass__head,.drawer-heading)[data-sstf-wrapped]>:is(strong,h2,h3,.sstf-central-glass__title,div:has(>:is(h2,h3))){grid-row:1!important;grid-column:2!important}
}
/* == UI-1321 N-3 END == */

/* INVITE-STAFF: the employee's self-registration (templates/identity/portal.php .sstf-staff-invite) and the director's invitation card and
   «بانتظار التسجيل» list (templates/admin/team.php). Tokens only; presentation only. */
@layer sstf-approved{
  .sstf-staff-invite .ss-phone-field{display:grid;gap:var(--sstf-space-1)}
  .sstf-staff-invite .ss-phone-input{display:grid;grid-template-columns:5.5em minmax(0,1fr);gap:var(--sstf-space-2);direction:ltr}
  .sstf-staff-invite .ss-phone-input input{min-width:0;direction:ltr;text-align:left}
  .sstf-record__foot>.sstf-team-invite-foot{flex:1 1 100%;display:grid;gap:var(--sstf-space-2);min-width:0}
  .sstf-team-invite-foot .sstf-team-invite-link{width:100%;min-width:0;direction:ltr;text-align:left;font-size:.85em;box-sizing:border-box}
  .sstf-team-invite-foot form{margin:0}
  .sstf-team-invite-foot .sstf-icon-actions{margin:0}
  @media(min-width:900px){.sstf-record__foot>.sstf-team-invite-foot{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}}
  #wpbody-content .sstf-team-invite-form .sstf-user-cap-fields[hidden]{display:none!important}
  #wpbody-content fieldset.sstf-team-invite-roles{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr))!important;gap:var(--sstf-space-2)!important;min-width:0;margin:0 0 var(--sstf-space-3)!important;padding:0!important;border:0!important}
  #wpbody-content fieldset.sstf-team-invite-roles>:is(legend,p){grid-column:1/-1;margin:0}
  #wpbody-content .sstf-team-invite-roles .sstf-option__label{flex:1 1 auto!important;min-width:0!important}
  .sstf-team-invite-ready{display:grid;gap:var(--sstf-space-3);margin:0 0 var(--sstf-space-4);padding:var(--sstf-space-3);border:1px solid var(--sstf-line-card);border-radius:var(--sstf-radius-card)}
  .sstf-team-invite-ready .sstf-icon-actions{margin:0}
}
/* == R133 G1 START (team phone bottom bar: slightly bigger icons; an entry's name is never cut or wrapped — the bar scrolls sideways instead, OQ-X5-01) == */
@layer sstf-approved{
  .mobile-nav>:is(a,button)>.nav-ref-icon{width:var(--sstf-mobile-nav-icon)!important;height:var(--sstf-mobile-nav-icon)!important}
  .mobile-nav>:is(a,button)>span{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
}
@layer sstf-ui-contract{
  body.sstf-flow nav.mobile-nav{grid-auto-columns:minmax(max-content,1fr)!important}
  body.sstf-flow nav.mobile-nav>:is(a,button){min-width:64px!important}
}
/* == R133 G1 END == */
/* == R133 G2 START («سياسة المستندات المالية»: per approval kind «متى» | «الحد» on one row, then «من يعتمد» on its own full row — the settings form is ONE
   2-column grid (its panels are display:contents), so the approver row spans it instead of breaking the pairs) == */
@layer sstf-approved{
  .sstf-admin-central .sstf-fields>label:has(>select[name*="[op_doc_approver_"]),.sstf-admin-central .sstf-fields>label:has(select[name*="[op_doc_approver_"]){grid-column:1/-1!important}
}
/* == R133 G2 END == */
/* == R133 G4 START (central simple bar chart — ComponentRenderer::barChart; «حالة الأرباح») == */
@layer sstf-approved{
  .sstf-bar-chart{margin:0!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .sstf-bar-chart>figcaption{margin:0 0 var(--sstf-space-2)!important;font-weight:800!important;color:var(--sstf-ink)!important}
  .sstf-bar-chart__scroll{overflow-x:auto!important;overscroll-behavior-x:contain!important;direction:ltr!important}
  .sstf-bar-chart__svg{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:260px!important;margin-inline:auto!important} /* R133 REV-V7d: a sensible plot height on a wide screen (the svg keeps its proportions, centred) */ /* R133 REV-V2: the whole period fits the card (the latest months — where the money is — were scrolled out of view) */
  .sstf-bar-chart__zero{stroke:var(--sstf-line-card)!important;stroke-width:1!important}
  .sstf-bar-chart__label{fill:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important;direction:ltr}
  .sstf-bar-chart__bar.is-profit{fill:var(--sstf-tone-done-fg)!important}
  .sstf-bar-chart__bar.is-distributed{fill:var(--sstf-tone-waiting-fg)!important}
  .sstf-bar-chart__bar.is-undistributed{fill:var(--sstf-tone-action-fg)!important}
  .sstf-bar-chart__legend{display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-3)!important;overflow-x:auto!important;margin:var(--sstf-space-2) 0 0!important;padding:0!important;list-style:none!important;font-size:var(--sstf-t-small)!important;white-space:nowrap!important}
  .sstf-bar-chart__legend>li{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important}
  .sstf-bar-chart__legend>li>span{display:inline-block!important;width:12px!important;height:12px!important;border-radius:var(--sstf-r-s)!important;background:var(--sstf-ink-muted)!important}
  .sstf-bar-chart__legend>li.is-profit>span{background:var(--sstf-tone-done-fg)!important}
  .sstf-bar-chart__legend>li.is-distributed>span{background:var(--sstf-tone-waiting-fg)!important}
  .sstf-bar-chart__legend>li.is-undistributed>span{background:var(--sstf-tone-action-fg)!important}
}
/* == R133 G4 END == */
/* == R133 G5 START («أمر توزيع أرباح» form, inside the central long-form grid (.sstf-form-long flattens its divs): each fund and each beneficiary line is
   ONE full-row card (article.sstf-field-full); a line's own fields in two columns, its advances and its result on full rows) == */
@layer sstf-approved{
  .sstf-form-long :is(.distribution-fund,.distribution-line){grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:var(--sstf-space-3)!important;row-gap:var(--sstf-space-2)!important;align-items:end!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface)!important}
  .sstf-form-long .distribution-fund>.sstf-icon-field{grid-column:1/-1!important}
  .sstf-form-long .distribution-line :is(.distribution-advances,.distribution-advance,.distribution-line__result){grid-column:1/-1!important}
  .sstf-form-long .distribution-line .account-check{grid-column:1/-1!important;white-space:normal!important}
  .distribution-line__result{margin:0!important;font-weight:700!important;color:var(--sstf-ink-muted)!important}
  .distribution-line__result:empty{display:none!important}
}
/* == R133 G5 END == */
/* == R133 G7 START (the shipping mark chip beside an order number, everywhere it is shown) == */
@layer sstf-approved{
  .sstf-shipping-mark{display:inline-flex!important;align-items:center!important;max-width:100%!important;margin-inline-start:var(--sstf-space-1)!important;padding:0 var(--sstf-space-2)!important;border:1px dashed var(--sstf-tone-action-fg)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-action-bg,#fff7ed)!important;color:var(--sstf-tone-action-fg)!important;font-size:var(--sstf-t-small)!important;font-weight:800!important;line-height:1.6!important;white-space:nowrap!important;vertical-align:middle!important}
  .sstf-shipping-mark-card{display:grid!important;gap:var(--sstf-space-2)!important;margin-block:var(--sstf-space-2)!important}
}
/* == R133 G7 END == */
/* == R133 G8 START (the kilogram weight field: its helper line, the big confirmation and its red alert; the warehouse photo slots) == */
@layer sstf-approved{
  .sstf-kg-help{display:block!important;grid-column:1/-1!important;margin-block-start:var(--sstf-space-1)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;color:var(--sstf-ink-soft)!important;direction:auto!important;unicode-bidi:plaintext!important}
  .sstf-kg-help.is-alert{color:var(--sstf-tone-danger-fg)!important}
  .sstf-confirm-card--big .sstf-confirm-card__text{font-size:clamp(20px,5vw,26px)!important;font-weight:800!important;line-height:1.45!important;color:var(--sstf-ink)!important;white-space:pre-line!important}
  .sstf-confirm-card--alert{border:2px solid var(--sstf-tone-danger-fg)!important;background:var(--sstf-tone-danger-bg)!important}
  .sstf-confirm-card--alert .sstf-confirm-card__title,.sstf-confirm-card--alert .sstf-confirm-card__text{color:var(--sstf-tone-danger-fg)!important}
  /* R133 ENT-9: the red warning note only on the R133 elements (the Fly settlement's goods notes, the shipping-mark warehouse note) — the older notes keep their look */
  :is(.fly-arrival-panel,.sstf-shipping-mark-card,#shipping-mark-change) .sstf-info-note[data-tone="warning"]{border-color:var(--sstf-tone-danger-border)!important;background:var(--sstf-tone-danger-bg)!important;color:var(--sstf-tone-danger-fg)!important}
}
/* == R133 G8 END == */
/* == R133 REV-V7a START (OQ-X5-01 at phone width: the money facts of the Fly estimate / goods / settlement cards and of «حالة الأرباح» take one
   fact per row, so a label («الوزن التقديري (كغ)», «مصاريف عامة (للعلم)») and a value («-487.468 JOD») are never cut) == */
@layer sstf-approved{
  @media (max-width:480px){
    .fly-estimate-facts,.fly-goods-facts,.fly-settlement-values,.fly-settlement-totals,.profit-status-facts,.fly-customer-due-facts{grid-template-columns:minmax(0,1fr)!important}
  }
}
/* == R133 REV-V7a END == */

/* == R134 Q2 START (OQ-X5-01 + owner answers س44 / س45; the 2B contract above stays the one text contract) ==
   (a) the stage card's status line shows its information whole — the approved exception: a stage card may grow (no «…», no cut);
   (b) a long VALUE that scrolls inside its place shows a fade at its end edge (central-system.js fitText2B marks it data-sstf-value="fade");
       headings, labels, names and buttons are fitted to their place by fitText2B (font down to 12px at most). */
@layer sstf-approved{
  .sstf-stage-card__line{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  .sstf-now-card>strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-width:0!important;flex:1 1 auto!important} /* R134 B8: (with the stage cards' exception of the typography layers above) «الآن» mirrors the stage card it opens (its stage, what it holds, who it waits for) — it grows like the stage card instead of scrolling */
  [data-sstf-fade]{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 22px);mask-image:linear-gradient(to right,transparent 0,#000 22px)}
  :is([dir="ltr"],[dir="ltr"] *,:lang(en),:lang(zh-CN)):not([dir="rtl"])[data-sstf-fade],bdi[dir="ltr"][data-sstf-fade]{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 22px);mask-image:linear-gradient(to left,transparent 0,#000 22px)}
}
/* == R134 Q2 END == */
/* == R134 Q3 START («العودة» with its name on every page, one arrow; «×» on an order page — central header and drawer) == */
@layer sstf-approved{
  .app-header--rows .app-back.app-back--text>.app-back__text{display:inline!important;font-size:var(--sstf-t-body)!important;font-weight:800!important;white-space:nowrap!important;color:var(--tf-ink,var(--sstf-ink))!important}
  /* U22: the drawer's row arrow (app-ui.css «‹» ::after on every drawer link/button) is not drawn on a back control — it has its own arrow */
  .sstf-flow :where(.app-sidebar,.store-sidebar,.app-drawer) :is(.sstf-card-back,.app-back,[data-sstf-back])::after{content:none!important;display:none!important}
}
/* == R134 Q3 END == */
/* == R134 Q5 START (tap targets ≥ 44×44 with the same look — owner answer س48 ب; the badge red: --sstf-count-bg above) == */
@layer sstf-approved{
  /* R165 (قرار المالك 12/11، بند زرّ الثلاث نقاط): مساحة الضغط كانت تُزاح خارج الزر — «inset-inline-start» مع قلب الاتجاه
     يُخرجها 37 بكسل خارج كرت المنتج (قياس 390 بكسل)، فتُضغط فراغًا ولا يُضغط الزر. التوسيط فيزيائي ومتماثل في الاتجاهين. */
  .sstf-touch-host>i.sstf-touch,i.sstf-touch{position:absolute!important;left:50%!important;right:auto!important;top:50%!important;width:max(100%,44px)!important;height:max(100%,44px)!important;transform:translate(-50%,-50%)!important;background:transparent!important;border:0!important;margin:0!important;padding:0!important;z-index:1!important;pointer-events:auto!important;display:block!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important}
  label.sstf-touch-box{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;margin:-10px!important;padding:0!important;background:transparent!important;border:0!important;cursor:pointer;vertical-align:middle;flex:0 0 auto}
}
/* == R134 Q5 END == */

/* == R134 Q6 START (iPhone: no zoom on a field, the window keeps the field and its save button in sight with the keyboard — #115, #98, #99, #101) == */
@layer sstf-wizard-contract{
  @media (max-width:960px){:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea){font-size:var(--sstf-t-card)!important}} /* iOS zooms a field under 16px (was 14px: export language, fund filter, credential mini) */
}
@layer sstf-approved{
  html.sstf-kb-open dialog[open] :is(.sstf-central-glass__foot,.wizard-foot){padding-block:var(--sstf-space-1)!important;padding-bottom:var(--sstf-space-1)!important;gap:var(--sstf-space-2)!important;flex-wrap:nowrap!important}
  html.sstf-kb-open dialog[open] .sstf-card-actions__summary{display:none!important}
  html.sstf-kb-open dialog[open] :is(.sstf-central-glass__foot,.wizard-foot) :is(button,.button,a.flow-button){min-height:44px!important;padding-block:0!important}
}
/* == R134 Q6 END == */
/* R134 Q2: the language menu's current name («العربية») is shown whole */
@layer sstf-wizard-contract{ details[data-sstf-lang-menu]>summary{width:auto!important;max-width:none!important;flex:0 0 auto!important} details[data-sstf-lang-menu]>summary>span,details[data-sstf-lang-menu] [data-sstf-lang-list] :is(a,button,span){overflow:visible!important;max-width:none!important} }
@layer sstf-wizard-contract{ } /* R134 Q2: a one-glyph button («⋯») is never a scroll box */
@layer sstf-wizard-contract{ .sstf-touch-host{position:relative!important;overflow:visible!important} } /* R134 Q5: the earliest layer — the 2B text contract (sstf-typography) would clip the touch area */
/* R134 Q2: the desktop icon rail (OA-30, collapsed sidebar) is wide enough for every entry's name on its one line at 12px (was 84px: names scrolled) */
@layer sstf-wizard-contract{ @media (min-width:961px){ body.sstf-flow.nav-small .app-sidebar{width:136px!important} :where(body.sstf-flow.nav-small) main{padding-inline-start:calc(136px + clamp(12px,2vw,26px))!important} body.sstf-flow.nav-small .app-sidebar nav :is(a,summary,button)>span{font-size:var(--sstf-t-small)!important;overflow:visible!important;max-width:none!important} body.sstf-flow.nav-small .app-sidebar .sidebar-brand-copy{display:none!important} /* the rail shows the logo; the name is in the header */ } }
@layer sstf-wizard-contract{ } /* R134 Q5: the order card clips (overflow hidden): the status chip itself is 44 wide (was 40) */
/* R134 Q5: three controls whose touch area cannot grow outside a clipping / tight row get the 44×44 box itself, the visible look unchanged (transparent
   margin compensates the layout): the card «في مشكلة؟», the fact action («تغيير عملة الطلب»), and every select on the phone */
@layer sstf-wizard-contract{
  .sstf-card-pilot{min-width:44px!important;min-height:44px!important}
  .sstf-fact__action{min-width:44px!important;min-height:44px!important;margin:-10px!important}
  @media (max-width:960px){select{min-height:44px!important}}
}
@layer sstf-wizard-contract{ .sstf-record__title a[href]{display:inline-flex!important;align-items:center!important;min-height:44px!important;min-width:44px!important} } /* R134 Q5: a record card's title link (e.g. a shipment) is its own 44 target */
/* R134 Q6: with the keyboard up, the open window sits at the top of the visible area (not at its opener / the centre, which the keyboard covers) */
@layer sstf-wizard-contract{ html.sstf-kb-open dialog[open]{position:fixed!important;inset-block-start:calc(var(--sstf-visual-top,0px) + 4px)!important;inset-block-end:auto!important;margin-block:0!important;translate:none!important;transform:none!important;max-height:calc(var(--sstf-visual-height,100vh) - 8px)!important} }
/* R134 Q5: a touch area that reaches past the screen edge never widens the page (no sideways scroll, no zoom-out on the phone) */
@layer sstf-wizard-contract{ html,body{overflow-x:clip!important} }
/* R134 Q2: a field's help sentence (small.field-hint) wraps at word boundaries like every long text (rule 1 of the text contract) */
@layer sstf-wizard-contract{ }
@layer sstf-approved{.sstf-pcard__facts{grid-template-columns:repeat(4,minmax(max-content,1fr))!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}.sstf-pcard__facts::-webkit-scrollbar{display:none!important}.sstf-pcard__fact>small,.sstf-pcard__fact>b,.sstf-pcard__fact[data-text]>b{overflow:visible!important;text-overflow:clip!important}.sstf-pcard__chip{font-size:max(var(--sstf-t-small),12px)!important}} /* R134 B15 (#87, «عرض المورد» and every central product card): each fact of the card takes the width of its whole name and value (the four equal columns cut «الكمية» to «الك», «سعر الوحدة» to «سع», «الإجمالي» to «الإج»); a row wider than the card scrolls sideways inside the card (OQ-X5-01), the card keeps its full width */
@layer sstf-approved{.sstf-now-card--action{flex-wrap:wrap!important;cursor:default!important}.sstf-now-card--action>strong{flex:1 1 60%%!important}.sstf-now-card__go{margin-inline-start:auto!important;flex:0 0 auto!important;width:auto!important}.sstf-now-target{outline:3px solid var(--sstf-tone-action-strong)!important;outline-offset:3px!important;border-radius:var(--sstf-r-m)!important}} /* R134 B11: «الآن» with its action button (ComponentRenderer::nowCard) and the short highlight of the element the button opens */
/* R163 (قرار المالك 11/11): حُذفت طبقة إخفاء نصف نموذج التسعير — لم يعد النموذج يُرسم مرتين. كل التسعير في كرت «التسعير» وحده، والمنتجات مطويّة داخله. */
@layer sstf-approved{dialog[data-sstf-switched]{visibility:hidden!important}dialog[data-sstf-switched]::backdrop{opacity:0!important}dialog[data-sstf-switched] dialog[open]{visibility:visible!important}} /* R134 B12: a third window takes the place of the grandchild (central-system.js data-sstf-switched) — at most two windows shown above a page */
@layer sstf-approved{.sstf-head-tools.sstf-head-tools.sstf-head-tools{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch;-webkit-mask-image:none!important;mask-image:none!important}.sstf-head-tools.sstf-head-tools.sstf-head-tools::-webkit-scrollbar{display:none!important}.sstf-head-tools.sstf-head-tools.sstf-head-tools>*{flex:0 0 auto!important}} /* R134-FIX4 (owner): the order page head tools are ONE row scrolling sideways (no second line); the Q2 wrap stays for the other elements */ /* R134 Q2 (coordinator 23/10): a row of head tools or of filter chips WRAPS instead of scrolling sideways — every tool and chip whole at 390 («إلغاء الطلب», «قيد التجهيز» were cut at the strip edge); names stay on one line */
@layer sstf-approved{@media(max-width:600px){:is(.sstf-facts.ss-order-identity,.ss-order-identity .ss-identity-facts).sstf-facts{display:flex!important;flex-wrap:wrap!important}:is(.sstf-facts.ss-order-identity,.ss-order-identity .ss-identity-facts).sstf-facts>.sstf-fact{flex:1 1 auto!important;min-width:min(max-content,100%)!important;max-width:100%!important}:is(.sstf-facts.ss-order-identity,.ss-order-identity .ss-identity-facts).sstf-facts>.sstf-fact--wide{flex-basis:100%!important}}} /* R134 B11 + Q2: on the phone each fact of the order information takes the width of its whole value (the customer name, the phone) and the row wraps only when they do not fit — «الآن» stays in the first screen (a full-width name fact pushed it down) */
@layer sstf-approved{.sstf-now-card.sstf-now-card--action{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;column-gap:var(--sstf-space-2)!important;row-gap:0!important;padding-block:var(--sstf-space-2)!important}.sstf-now-card--action>strong{flex:none!important;min-width:0!important}.sstf-now-card--action>.sstf-now-card__go{margin:0!important;max-width:45vw!important}} /* R134 B11: «الآن» with its button in ONE row (label · what · the action) — the card stays short so it is in the first screen */
@layer sstf-approved{@media(max-width:600px){.sstf-facts.ss-order-identity.sstf-facts>.sstf-fact{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:start!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important}.sstf-facts.ss-order-identity.sstf-facts>.sstf-fact .sstf-fact__icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;flex:none!important}}} /* R134 B11: on the phone the order information facts are compact rows (icon beside the name and value) — the card is short and «الآن» is in the first screen */
/* R134 B5 (#84): «إضافة أوردر» clearer and the full width of the row (was width:auto, app-ui.css sstf-hotfix) */
@layer sstf-wizard-contract{body.sstf-flow #recipient-section .ss-recipient-toolbar>.ss-recipient-add{width:100%!important;flex:1 1 100%!important;min-height:48px!important;font-size:var(--sstf-t-card)!important;font-weight:700!important}
  .fly-question-check{display:grid!important;gap:var(--sstf-space-2)!important}.fly-question-check__box{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;font-weight:700!important}.fly-question-check>.fly-question-card[hidden]{display:none!important}}
/* R134 B5 (answer س68 أ): a grandchild (a window over another window) is fully opaque — the page's own buttons never show through it;
   the «حفظ» row of «إضافة أوردر» stays in sight at the foot of its scrolling card; the ✓ box sits on one row with its icon and name */
@layer sstf-wizard-contract{dialog[open][data-sstf-stacked]{background:var(--sstf-surface,#fff)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .recipient-editor-dialog .recipient-editor>.recipient-dialog-actions{position:sticky!important;bottom:0!important;z-index:2!important;background:var(--sstf-surface,#fff)!important;padding-block:var(--sstf-space-2)!important;margin:0!important}
  /* R259 (كشفه فاحص r134-q6 على iPhone): قدم معالج الأوردر داخل جسم النافذة المتمرِّر، فمع ارتفاع لوحة
     المفاتيح يخرج «التالي» من الشاشة فلا يستطيع العميل المتابعة. يلتصق بقاع جسمه كما تفعل «حفظ». */
  dialog[open] .sstf-central-glass__body .fly-wizard-foot{position:sticky!important;bottom:0!important;z-index:2!important;background:var(--sstf-surface,#fff)!important;padding-block:var(--sstf-space-2)!important;margin:0!important}
  .recipient-editor-dialog .recipient-editor{overflow:visible!important;max-height:none!important}
  .fly-question-check{grid-column:1/-1!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important}
  .fly-question-check>.fly-question-check__box{flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;text-align:start!important;width:100%!important}
  .fly-question-check>.fly-question-card{display:grid!important;gap:var(--sstf-space-2)!important;width:100%!important;min-width:0!important;max-width:none!important;padding:0!important}
  .fly-question-check .fly-question{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important}}
/* R134 B6: the hint on an unfinished product photo, the «تمت إضافة المنتج ✓» line and the highlighted new product card */
@layer sstf-wizard-contract{.ss-photo-open{position:relative!important}.ss-photo-open>.ss-photo-hint{position:absolute!important;inset-inline:6px!important;bottom:6px!important;padding:var(--sstf-space-1) 6px!important;border-radius:var(--sstf-r-s)!important;background:rgba(15,23,42,.78)!important;color:#fff!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;line-height:1.3!important;text-align:center!important;white-space:normal!important}
  .sstf-success-note{margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-r-s)!important;background:#e7f7ee!important;color:#14532d!important;font-weight:700!important}
  .sstf-just-added{outline:3px solid #22a35a!important;outline-offset:2px!important;border-radius:var(--sstf-r-m)!important}}
/* R134 ADV-OPENING: «سلفة سابقة (رصيد افتتاحي)» takes the whole row of the document form */
@layer sstf-wizard-contract{.doc-opening{grid-column:1/-1!important;display:grid!important;gap:var(--sstf-space-2)!important}.doc-opening[hidden],.doc-opening [hidden]{display:none!important}.doc-opening>.checkbox{display:flex!important;flex-direction:row!important;align-items:center!important;gap:var(--sstf-space-2)!important;font-weight:700!important}}
/* R134 #135 (OQ-X5-01): a payment card's actions («عرض إثبات الحوالة», ⋯ …) take their own row under the payment line — no cut button, no cut line */
@layer sstf-wizard-contract{.finance-payment-card{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;column-gap:var(--sstf-space-3)!important;row-gap:var(--sstf-space-2)!important}
  .finance-payment-card>.finance-payment-actions{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:var(--sstf-space-2)!important;width:auto!important;min-width:0!important;max-width:none!important}}
@layer sstf-wizard-contract{.finance-payment-card__text{min-width:0!important;overflow:hidden!important}}
/* R134 D3: «إكمال المنتج ←» under an unfinished product photo, the photo's full width */
@layer sstf-wizard-contract{.ss-pending-photo{display:flex!important;flex-direction:column!important;gap:var(--sstf-space-1)!important}.ss-pending-photo>.ss-photo-complete{width:100%!important;min-height:44px!important;white-space:nowrap!important}}
/* R134 U21 (owner decision D14): «إجراءات سريعة» — every card in sight in a grid (no card hidden behind a sideways scroll) with its whole title:
   two columns on the phone with the title wrapping inside its tile (D14 «العناوين كاملة»), three from 600px, four from 961px */
@layer sstf-wizard-contract{.sstf-quick-actions--tiles>.sstf-quick-actions__tiles{grid-auto-flow:row!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-columns:auto!important;overflow:visible!important;overflow-x:visible!important}
  @media(min-width:600px){.sstf-quick-actions--tiles>.sstf-quick-actions__tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
  @media(min-width:961px){.sstf-quick-actions--tiles>.sstf-quick-actions__tiles{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
  .sstf-quick-tile,.sstf-quick-tile>a{min-width:0!important}
  /* the whole title in the tile (owner D14): it wraps at word boundaries inside the tile instead of scrolling — the tile grows, never cut */
  .sstf-quick-actions--tiles .sstf-quick-tile strong,.sstf-quick-actions--tiles .sstf-quick-tile small{white-space:normal!important;overflow:visible!important;overflow-wrap:break-word!important;text-overflow:clip!important;-webkit-mask-image:none!important;mask-image:none!important;max-width:100%!important}}
/* R134 U13: a row of tabs shows the selected one clearly — the central tabs (.ss-section-tabs, role=tablist): the chosen tab filled in its section
   colour with white text and a bottom bar, the others plain */
@layer sstf-wizard-contract{:is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-pressed="true"],:is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-selected="true"],:is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-current="page"]{background:rgb(var(--sstf-domain-rgb,37,99,235))!important;color:#fff!important;border-color:transparent!important;box-shadow:inset 0 -3px 0 rgba(0,0,0,.22)!important;font-weight:800!important}
  :is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-pressed="true"] *,:is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-selected="true"] *{color:#fff!important}
  :is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-pressed="false"],:is(.ss-section-tabs,[role=tablist])>:is(button,a)[aria-selected="false"]{background:var(--sstf-surface,#fff)!important;opacity:.85}}
/* R134 U16: the central file field — the native input stays in the form, out of sight; the button and the chosen name in the screen's language */
@layer sstf-wizard-contract{input[type=file].sstf-file-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
  .sstf-file-row{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important;width:100%!important}.sstf-file-row>.sstf-file-pick{flex:0 0 auto!important;min-height:44px!important;white-space:nowrap!important}.sstf-file-row>.sstf-file-name{min-width:0!important;flex:1 1 auto!important}}
/* R134 U19: the screen's main next action (data-sstf-primary) in the strongest look — filled in its section colour, white text */
@layer sstf-wizard-contract{.sstf-icon-action[data-sstf-primary]{background:rgb(var(--sstf-domain-rgb,37,99,235))!important;color:#fff!important;border-color:transparent!important;font-weight:800!important;box-shadow:var(--sstf-sh-card)!important}.sstf-icon-action[data-sstf-primary] span{color:#fff!important}}
/* R134 D19: the notifications card — chips over the list (wrapping rows, no sideways scroll), the notice's department under its title */
@layer sstf-wizard-contract{.sstf-app-chips{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-2)!important}.sstf-app-chips[hidden]{display:none!important}
  .sstf-app-item__dept{display:flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-soft,#475569)!important}.sstf-app-item__dept>img{width:16px!important;height:16px!important}
  .sstf-app-gear{min-width:44px!important;min-height:44px!important}}
@layer sstf-wizard-contract{.sstf-app-chips>button{flex:0 0 auto!important;white-space:nowrap!important}.sstf-app-chips>button[aria-selected="true"]{background:rgb(var(--sstf-domain-rgb,37,99,235))!important;color:#fff!important;border-color:transparent!important}}

/* R134-FIX16: the next step of «التجهيز» is the card's primary button, full width */
.sstf-next-step{margin:var(--sstf-space-3) 0!important}
/* NOTIF-CENTER (owner 26/10, the iPhone picture): «مركز الإشعارات» — white card; top row × (start = right in Arabic) and the gear (end); a large bold
   title under it with the unread count; the D19 chips one scrolling row; every notice its own white card (20 corners, soft shadow, hairline), the
   section/type icon in a 48 rounded square at the start, the bold title 17 and the whole text 15 (wraps, no «…», no cut), the time small grey at the
   end; unread = a lighter tint + a small dot. Presentation only: same ids, links, filters, settings and count. First layer + the panel id: wins. */
@layer sstf-wizard-contract{
  dialog#sstf-app-panel.sstf-nc{background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:1px solid rgba(15,23,42,.06)!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head{flex:none!important;height:auto!important;max-height:none!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:var(--sstf-space-2)!important;min-height:0!important;padding:var(--sstf-space-3) var(--sstf-space-4) var(--sstf-space-2)!important;border:0!important;background:#fff!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head>.sstf-nc__close{order:0!important;margin:0!important;margin-inline-end:auto!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head>.sstf-card-pilot{order:1!important;margin:0!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head>.sstf-app-gear{order:2!important;display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:none!important;box-shadow:none!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head>.sstf-app-gear>.sstf-icon{width:30px!important;height:30px!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head>.sstf-nc__title{order:3!important;flex:1 0 100%!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;justify-self:auto!important;margin:var(--sstf-space-1) 0 0!important;padding:0!important;text-align:start!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;line-height:1.25!important;color:var(--sstf-ink,#0f172a)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  dialog#sstf-app-panel.sstf-nc>header.sstf-nc__head>.sstf-nc__title>.sstf-app-card__count{position:static!important;inset:auto!important;font-size:var(--sstf-t-small)!important;flex:none!important}
  dialog#sstf-app-panel.sstf-nc>.sstf-central-glass__body{gap:var(--sstf-space-3)!important;padding-top:var(--sstf-space-1)!important;background:#fff!important}
  dialog#sstf-app-panel.sstf-nc section.sstf-app-latest{padding:0!important;border:0!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-latest__title{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}
  dialog#sstf-app-panel.sstf-nc .sstf-app-chips{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;margin:0 calc(-1 * var(--sstf-space-4)) var(--sstf-space-3)!important;padding:2px var(--sstf-space-4)!important;scroll-padding-inline:var(--sstf-space-4)!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-chips::-webkit-scrollbar{display:none!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-chips>button{width:auto!important;border-radius:var(--sstf-radius-pill)!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-list{display:grid!important;gap:var(--sstf-space-3)!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-list>li{border:0!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-list>li[hidden]{display:none!important}
  dialog#sstf-app-panel.sstf-nc a.sstf-app-item{position:relative!important;display:flex!important;align-items:flex-start!important;gap:var(--sstf-space-3)!important;min-height:0!important;padding:14px!important;border:1px solid rgba(15,23,42,.07)!important;border-radius:var(--sstf-r-m)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important;color:var(--sstf-ink,#0f172a)!important;text-decoration:none!important}
  dialog#sstf-app-panel.sstf-nc a.sstf-app-item.is-unread{background:#f3f8ff!important;border-color:rgba(37,99,235,.14)!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__chev{display:none!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__icon{position:relative!important;flex:0 0 48px!important;width:48px!important;height:48px!important;margin:0!important;padding:var(--sstf-space-2)!important;box-sizing:border-box!important;border-radius:var(--sstf-r-s)!important;background:#f1f5f9!important;border:0!important;box-shadow:none!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__icon>img{width:100%!important;height:100%!important;object-fit:contain!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__dot{position:absolute!important;top:-3px!important;inset-inline-start:-3px!important;inset-inline-end:auto!important;min-width:0!important;width:12px!important;height:12px!important;padding:0!important;border-radius:50%!important;border:2px solid #fff!important;background:#2563eb!important;font-size:0!important;line-height:0!important;color:transparent!important;box-shadow:none!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__text{flex:1 1 auto!important;min-width:0!important;display:grid!important;gap:3px!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__title,dialog#sstf-app-panel.sstf-nc .sstf-app-item__line{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;-webkit-mask-image:none!important;mask-image:none!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__title{font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.4!important;color:var(--sstf-ink,#0f172a)!important}
  dialog#sstf-app-panel.sstf-nc a.sstf-app-item:not(.is-unread) .sstf-app-item__title{font-weight:700!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__line{font-size:var(--sstf-t-body)!important;line-height:1.55!important;color:var(--sstf-ink-soft,#334155)!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__dept{font-size:var(--sstf-t-small)!important;color:#64748b!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__time{flex:none!important;align-self:flex-start!important;margin-top:2px!important;font-size:var(--sstf-t-small)!important;color:#8a94a6!important;white-space:nowrap!important;direction:rtl!important;unicode-bidi:isolate!important;overflow:visible!important;-webkit-mask-image:none!important;mask-image:none!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-item__time:dir(ltr){direction:ltr!important}
  dialog#sstf-app-panel.sstf-nc .sstf-app-row--back{padding:var(--sstf-space-3) 0 0!important;border-bottom:0!important;border-top:1px solid var(--sstf-line-card,rgba(15,23,42,.08))!important;font-size:var(--sstf-t-body)!important}
}
/* == BOTTOM-BAR-GLASS START (owner order 26/10, /root/R134/BOTTOM-BAR-GLASS.md): the central phone bottom bar (staff .mobile-nav, portals .store-bottom-nav)
   = a frosted glass capsule (heavy blur + an almost opaque white layer, a thin bright white frame, a very light sheen on top that never costs legibility);
   each icon sits in its own small glass circle (no square behind it), the name stays under it; the current page = ONLY its circle in a light transparent
   blue. Presentation only: same items, links, counters and roles. Fallback without backdrop-filter = near-opaque white. == */
@layer sstf-approved{
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav){
    --sstf-bbg-gap:8px;--sstf-bbg-circle:46px;
    inset-inline:10px!important;inset-block-end:calc(var(--sstf-bbg-gap) + var(--sstf-safe-bottom))!important;
    gap:2px!important;padding:6px var(--sstf-space-2)!important;overflow:visible!important;isolation:isolate;
    border:1px solid rgba(255,255,255,.75)!important;border-radius:var(--sstf-radius-pill)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.38) 0%,rgba(255,255,255,.1) 46%,rgba(255,255,255,0) 60%),rgba(240,246,255,.34)!important;
    backdrop-filter:blur(18px) saturate(170%)!important;-webkit-backdrop-filter:blur(18px) saturate(170%)!important;
    box-shadow:var(--sstf-rim),inset 0 -1px 0 rgba(255,255,255,.45),var(--sstf-sh-card)!important}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav){background:rgba(255,255,255,.9)!important}
  }
  /* the water sheen: a soft bright arc across the top half only (decoration, under the items) */
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)::before{content:"";position:absolute;z-index:-1;inset:1px 14% 52% 14%;border-radius:var(--sstf-radius-pill);
    background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0));pointer-events:none}
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>:is(a,button),
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>:is(a,button)[aria-current],
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>:is(a,button):hover{position:relative!important;min-height:var(--sstf-touch)!important;gap:3px!important;padding:0 1px!important;
    border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--sstf-ink,#162033)!important}
  /* R149 (أمر المالك 9/11): صفّ تبديل البوابات تحت الهيدر — أربعة كروت صغيرة تتّسع بلا تمرير. */
  /* R149 (أمر المالك 9/11 مساءً): كان الصفّ أعمدةً متساوية فيُقطع اسم البوابة ويتلخبط —
     صار تمريرًا أفقيًا دائمًا (قاعدة الشرائح)، والاسم كاملًا بلا التفاف ولا قطع. */
  .sstf-portal-switch{display:flex;gap:6px;margin:0 0 10px;padding:0 2px;overflow-x:auto;overflow-y:hidden;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .sstf-portal-switch>.sstf-portal-chip{flex:0 0 auto;scroll-snap-align:start}
  .sstf-portal-switch::-webkit-scrollbar{display:none}
  /* المهمّ هنا مقصود: قواعد «nav a» العامة في طبقة لاحقة تجعل الكرت كتلة سوداء عند aria-current، والمهمّ في طبقة أسبق يتقدّم */
  .sstf-portal-switch>.sstf-portal-chip{display:flex!important;align-items:center;gap:6px;min-height:44px;padding:6px 10px!important;border-radius:10px!important;
    border:1px solid rgba(9,30,57,.1)!important;background:#fff!important;color:#17314f!important;text-decoration:none;box-shadow:0 1px 2px rgba(9,30,57,.05)}
  .sstf-portal-switch .sstf-portal-chip__icon{flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px}
  .sstf-portal-chip__icon :is(img,svg){width:22px;height:22px;object-fit:contain}
  .sstf-portal-switch .sstf-portal-chip__name{font-size:12px!important;font-weight:700;line-height:1.3;color:#17314f;
    white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
  .sstf-portal-switch>.sstf-portal-chip.is-active{border-color:#2f6fed!important;background:#eaf2ff!important;color:#123c78!important;box-shadow:0 2px 8px rgba(47,111,237,.18)}
  /* R149 (أمر المالك 9/11): بطل الشريط — «إنشاء طلب» في وسط الشريط، دائرة أكبر مرفوعة قليلًا بلونها.
     هنا لا في app-ui: المهمّ داخل طبقة أسبق يتقدّم، وقواعد الشريط المعتمدة هنا كانت تُلغي خلفيته. */
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>a.nav-hero,
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>a.nav-hero[aria-current],
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>a.nav-hero:hover{
    background:linear-gradient(180deg,#3d5afe,#2f3fd6)!important;color:#fff!important;border-radius:var(--sstf-r-m)!important;
    transform:translateY(-8px)!important;box-shadow:0 8px 18px rgba(47,63,214,.34)!important;padding:5px 7px!important}
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>a.nav-hero>span{color:#fff!important;white-space:nowrap!important}
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>a.nav-hero>:is(.nav-ref-icon,.nav-icon,.small-icon){
    border-color:rgba(255,255,255,.55)!important;background:rgba(255,255,255,.22)!important}
  /* the glass circle around each icon (the same icons) */
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>:is(a,button)>:is(.nav-ref-icon,.nav-icon,.small-icon){box-sizing:border-box!important;display:block!important;flex:0 0 auto!important;
    width:var(--sstf-bbg-circle)!important;height:var(--sstf-bbg-circle)!important;margin:0 auto!important;padding:6px!important;border-radius:50%!important;object-fit:contain!important;
    border:1px solid rgba(255,255,255,.7)!important;
    background:radial-gradient(120% 80% at 50% 0%,rgba(255,255,255,.5) 0%,rgba(255,255,255,.12) 55%,rgba(225,234,246,.1) 100%)!important;
    box-shadow:var(--sstf-rim),inset 0 -2px 5px rgba(110,135,175,.16),var(--sstf-sh-card)!important;
    transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
  html :is(body.sstf-flow,body) nav.store-bottom-nav>:is(a,button)>.small-icon{padding:11px!important}
  /* the current page: only its circle turns light transparent blue */
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>:is(a,button)[aria-current]>:is(.nav-ref-icon,.nav-icon,.small-icon){border-color:rgba(150,200,255,.95)!important;
    background:radial-gradient(120% 80% at 50% 0%,rgba(225,240,255,.55) 0%,rgba(120,185,255,.32) 60%,rgba(80,155,245,.26) 100%)!important;
    box-shadow:var(--sstf-rim),inset 0 -2px 6px rgba(40,110,210,.22),var(--sstf-sh-card)!important}
  html :is(body.sstf-flow,body) :is(nav.mobile-nav,nav.store-bottom-nav)>:is(a,button)>span{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;max-width:none!important;line-height:1.15!important;text-shadow:0 0 6px rgba(255,255,255,.85)!important}
}
/* == BOTTOM-BAR-GLASS END == */
/* == HEADER-GLASS START (owner order 26/10, /root/R134/HEADER-GLASS.md): the central header (UI\Chrome::header) = three separate glass cards (one per line, ~8px apart; owner correction 26/10), made
   like BOTTOM-BAR-GLASS but LESS transparent (owner: more opaque and frosted, very little shows through), a light-blue frame, round corners;
   each icon ~32px in its own glass circle, touch >= 44px; the counters stay on their icons. The sides are ABSOLUTE screen sides in every language:
   every line / group is written left → right in the markup, and an RTL line is turned around (row-reverse) so its first child stays on the left.
   Line 1: logo + name | clock.  Line 2: avatar, search field (flexible) | team.  Line 3: messages, notifications, «في مشكلة؟» | calculator, «العودة».
   Presentation only: same items, links, counters and permissions. == */
@layer sstf-approved{
  /* owner correction 26/10: THREE separate glass cards (one per line, ~8px apart, like the reference picture); the header itself carries no glass */
  html body header.app-header.app-header--glass{
    --sstf-hg-circle:44px;--sstf-hg-icon:32px;--sstf-hg-gap:6px;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;
    gap:var(--sstf-space-2)!important;padding:0!important;min-height:0!important;height:auto!important;box-sizing:border-box!important;overflow:visible!important;
    margin:var(--sstf-space-2) 0 var(--sstf-space-2)!important;width:auto!important;max-width:none!important;top:calc(8px + env(safe-area-inset-top,0px))!important;
    border:0!important;border-radius:0!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
  html body header.app-header.app-header--glass::before,html body header.app-header.app-header--glass::after{content:none!important;display:none!important}
  /* each card: less transparent than BOTTOM-BAR-GLASS (more opaque and frosted), light-blue frame, round corners */
  html body .app-header--glass>.app-header__line{position:relative!important;isolation:isolate;box-sizing:border-box!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;
    border:1px solid rgba(150,200,255,.95)!important;border-radius:var(--sstf-r-m)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.62) 0%,rgba(255,255,255,.3) 46%,rgba(255,255,255,.18) 60%),rgba(244,248,255,.8)!important;
    backdrop-filter:blur(28px) saturate(170%)!important;-webkit-backdrop-filter:blur(28px) saturate(170%)!important;
    box-shadow:var(--sstf-rim),inset 0 -1px 0 rgba(200,225,255,.5),var(--sstf-sh-card)!important}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    html body .app-header--glass>.app-header__line{background:rgba(248,251,255,.96)!important}
  }
  html body .app-header--glass>.app-header__line::before{content:""!important;display:block!important;position:absolute!important;z-index:-1!important;inset:1px 12% 55% 12%!important;border-radius:var(--sstf-r-m)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0))!important;pointer-events:none!important}
  /* the lines and their groups: flex rows; the first child on the LEFT whatever the page direction */
  html body .app-header--glass :is(.app-header__line,.app-header__group){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
    gap:var(--sstf-hg-gap)!important;min-width:0!important;margin:0!important;grid-column:auto!important;justify-self:auto!important;width:auto!important;max-width:none!important}
  html[dir="rtl"] body .app-header--glass :is(.app-header__line,.app-header__group){flex-direction:row-reverse!important}
  html body .app-header--glass .app-header__group{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  html body .app-header--glass .app-header__line{width:100%!important;min-height:var(--sstf-touch,44px)!important}
  html body .app-header--glass .app-header__group--right{margin-left:auto!important}
  html body .app-header--glass .app-header__group--left{flex:0 1 auto!important}
  html body .app-header--glass .app-header__group--right{flex:0 0 auto!important}
  html body .app-header--glass :is(.app-header__nav-end .app-tools,.workspace-quick-tools){display:flex!important;flex:0 0 auto!important;align-items:center!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
  /* line 1: logo + name (left), clock (right) */
  html body .app-header--glass .app-header__company{gap:var(--sstf-space-2)!important;overflow:hidden!important;text-align:start!important;flex:0 1 auto!important}
  html body .app-header--glass .app-header__logo{display:flex!important;flex:0 0 auto!important;margin:0!important}
  html body .app-header--glass .app-header__logo .logo{width:40px!important;height:40px!important;flex:0 0 40px!important;max-height:none!important;object-fit:contain!important;margin:0!important;border-radius:var(--sstf-r-s)!important}
  html body .app-header--glass .app-header__company>div{min-width:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important}
  html body .app-header--glass .app-header__company :is(.company-name,.company-name-ar){text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
  html[dir="rtl"] body .app-header--glass .app-header__company>div{align-items:flex-end!important}
  html[dir="rtl"] body .app-header--glass .app-header__company .company-name-ar{text-align:right!important}
  html body .app-header--glass .app-header__company .company-name{font-size:var(--sstf-t-card)!important;line-height:1.25!important}
  html body .app-header--glass .app-header__tools .sstf-dual-clock{flex:0 0 auto!important}
  /* line 2: avatar (left), the search field (flexible), team (right) */
  html body .app-header--glass .app-header__search{flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:none!important;height:var(--sstf-touch,44px)!important;min-height:var(--sstf-touch,44px)!important;
    display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;padding:0 14px!important;border-radius:var(--sstf-radius-pill,999px)!important;cursor:text!important;
    border:1px solid rgba(150,200,255,.8)!important;background:rgba(255,255,255,.72)!important;box-shadow:inset 0 1px 3px rgba(20,40,80,.08)!important;color:var(--sstf-ink-muted,#5b6475)!important;font:inherit!important;font-size:var(--sstf-t-body)!important;text-align:start!important}
  html[dir="rtl"] body .app-header--glass .app-header__search{flex-direction:row-reverse!important}
  html body .app-header--glass .app-header__search>svg{flex:0 0 22px!important;width:22px!important;height:22px!important;color:var(--sstf-ink,#162033)!important}
  html body .app-header--glass .app-header__search-text{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  html body .app-header--glass .app-header__search:focus-visible{outline:var(--sstf-ring-2,2px) solid rgba(56,140,240,.6)!important;outline-offset:2px!important}
  html body .app-header--glass .app-header__spacer{flex:1 1 auto!important}
  /* every round control = a glass circle (like BOTTOM-BAR-GLASS), icon ~32px, touch 44px */
  html body .app-header--glass :is(.profile-link,.chat-launch,.app-settings-open,.pilot-report-launch,.app-header__tool,.sstf-workspace-button,.app-close){
    position:relative!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 var(--sstf-hg-circle)!important;width:var(--sstf-hg-circle)!important;min-width:var(--sstf-hg-circle)!important;max-width:none!important;height:var(--sstf-hg-circle)!important;min-height:var(--sstf-hg-circle)!important;
    margin:0!important;padding:0!important;overflow:visible!important;border-radius:50%!important;
    border:1px solid rgba(255,255,255,.8)!important;
    background:radial-gradient(120% 80% at 50% 0%,rgba(255,255,255,.7) 0%,rgba(255,255,255,.3) 55%,rgba(225,234,246,.25) 100%)!important;
    box-shadow:var(--sstf-rim),inset 0 -2px 5px rgba(110,135,175,.16),var(--sstf-sh-card)!important}
  html body .app-header--glass :is(.chat-launch,.app-settings-open,.pilot-report-launch,.app-header__tool)>:is(svg,img),
  html body .app-header--glass .sstf-workspace-button :is(.sstf-workspace-button__icon,.sstf-workspace-button__team),
  html body .app-header--glass .app-header__tool>.app-header__calc-icon{flex:0 0 var(--sstf-hg-icon)!important;width:var(--sstf-hg-icon)!important;height:var(--sstf-hg-icon)!important;min-width:var(--sstf-hg-icon)!important;min-height:var(--sstf-hg-icon)!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important}
  html body .app-header--glass .profile-link>:is(img,.sstf-avatar){flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:50%!important;object-fit:cover!important}
  html body .app-header--glass .app-close{font-size:var(--sstf-t-page)!important;line-height:1!important}
  /* «العودة»: its glass pill on the right edge, arrow + name */
  html body .app-header--glass .app-back.app-back--text{position:relative!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;
    flex:0 0 auto!important;width:auto!important;min-width:var(--sstf-hg-circle)!important;max-width:none!important;height:var(--sstf-hg-circle)!important;min-height:var(--sstf-hg-circle)!important;margin:0!important;padding:0 var(--sstf-space-3) 0 10px!important;
    border-radius:var(--sstf-radius-pill,999px)!important;border:1px solid rgba(255,255,255,.8)!important;
    background:radial-gradient(120% 80% at 50% 0%,rgba(255,255,255,.7) 0%,rgba(255,255,255,.3) 55%,rgba(225,234,246,.25) 100%)!important;
    box-shadow:var(--sstf-rim),inset 0 -2px 5px rgba(110,135,175,.16),var(--sstf-sh-card)!important}
  html body .app-header--glass .app-back.app-back--text>svg{flex:0 0 26px!important;width:26px!important;height:26px!important}
  /* line 3: the page context (compact action pages) between the two groups */
  html body .app-header--glass .app-header__line--nav>.header-context{flex:1 1 auto!important;min-width:0!important;justify-content:center!important;max-width:none!important;margin:0!important}
  /* the counters stay on top of their icons */
  html body .app-header--glass :is(.chat-launch,.app-settings-open) :is(.ss-message-count,#sstf-update-count){z-index:2!important}
  @media print{html body header.app-header.app-header--glass{display:none!important}} /* CR-ACC-1: printing shows the document only */
  @media(max-width:360px){html body header.app-header.app-header--glass{--sstf-hg-gap:4px}html body .app-header--glass>.app-header__line{padding-inline:6px!important}}
}
/* owner 26/10: the header is not fixed — it scrolls away with the page (more room for the content) */
@layer sstf-approved{html body header.app-header.app-header--glass{position:relative!important;top:auto!important;inset-block-start:auto!important;
  inset-inline:auto!important;left:auto!important;right:auto!important}} /* the fixed header's side offsets (the store sidebar's right:232px) no longer shift the in-flow header (Fly merchant order page at 1366 started at -222px) */
/* owner 26/10: square corners for the three header cards and the search field, as the reference */
@layer sstf-approved{html body .app-header--glass>.app-header__line,html body .app-header--glass>.app-header__line::before,html body .app-header--glass>.app-header__line::after{border-radius:0!important}html body .app-header--glass :is(.app-header__search,.app-header__search-text,input[type=search]){border-radius:0!important}}
/* owner 26/10: no blue frame on the header cards; the cards a little closer; the header scrolls with the page, so nothing below it keeps its height
   (a page's sticky title stuck ~header-height down with the list showing above it) */
@layer sstf-approved{html body .app-header--glass>.app-header__line{border:0!important;box-shadow:var(--sstf-sh-card)!important}html body header.app-header.app-header--glass{--sstf-hg-gap:3px!important;gap:3px!important}}
/* R168 (طلب المالك: إثبات) — إحصاء محدّدات المتصفح: هذا المحدّد وحده كان 116 مللي من 1988 في مطابقة
   الأنماط (2374 محاولة، 2017 مطابقة)، لأن «body *» يُعيد حساب أنماط كل عنصر في الصفحة كلما تغيّر الرأس.
   و«body *» زائد: ‎--ui-app-height‎ خاصيّة مخصّصة تُورَّث، ولا يكتبها أحد على عنصر داخلي (layout.js يكتبها
   على body وحده)، فالقيمة نفسها تصل كل عنصر بالوراثة. النتيجة مطابقة تمامًا بأقل كلفة. */
html:has(body header.app-header.app-header--glass),html:has(body header.app-header.app-header--glass) body{--ui-app-height:0px!important}
/* owner 26/10: no «العودة» in the header (each page / card has its own); the calculator takes its place at the right edge */
@layer sstf-approved{html body header.app-header.app-header--glass :is(a,button).app-back.app-back,html body header.app-header.app-header--glass .app-header__line :is(a,button).app-back{display:none!important}}
/* == HEADER-GLASS END == */
/* owner 26/10: «المزيد» drawer head = «×» + «القائمة» only, the role on the second line; no back, no problem button, no logo, no company name */
@layer sstf-approved{
  html body dialog#app-more .drawer-heading>*:not(#app-menu-title):not([data-close-sheet]){display:none!important}
  html body dialog#app-more>:is([data-sstf-back],.app-back,.sstf-pilot-button,[data-pilot-open],[data-sstf-pilot]),html body dialog#app-more .drawer-heading :is([data-sstf-back],.app-back){display:none!important}
  html body dialog#app-more .drawer-heading{justify-content:flex-start!important;gap:10px!important}
  html body dialog#app-more .sidebar-identity{padding:0 var(--sstf-space-1) var(--sstf-space-2)!important;background:none!important;border:0!important;box-shadow:none!important;min-height:0!important}
  html body dialog#app-more .sidebar-identity>.sidebar-logo,html body dialog#app-more .sidebar-brand-copy>:is(strong,small){display:none!important}
  html body dialog#app-more .sidebar-brand-copy>span{display:inline-block!important}
  html body dialog#app-more :is(.sidebar-identity,.sidebar-brand-copy){justify-content:flex-start!important;align-items:flex-start!important;text-align:start!important;margin-inline:0!important}
}
/* owner 26/10: the role under «القائمة» = plain small grey text aligned with the title (no chip) */
@layer sstf-approved{
  html body dialog#app-more .sidebar-identity{padding:0 0 10px!important;margin:-6px 0 0!important}
  html body dialog#app-more .sidebar-brand-copy{padding-inline-start:54px!important}
  html body dialog#app-more .sidebar-brand-copy>span{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;font-size:var(--sstf-t-body)!important;font-weight:500!important;color:var(--sstf-ink-muted,#5b6b82)!important;line-height:1.3!important}
}
@layer sstf-approved{html body dialog#app-more .sidebar-identity,html body dialog#app-more .sidebar-brand-copy{display:block!important;width:auto!important;text-align:start!important}html body dialog#app-more .sidebar-identity{padding-inline:var(--sstf-space-4)!important}}
@layer sstf-approved{html body dialog#app-more .sidebar-brand-copy{padding-inline-start:37px!important}}
/* owner 26/10: the role line bolder, with a green «available» dot before it */
@layer sstf-approved{html body dialog#app-more .sidebar-brand-copy>span{font-weight:700!important;color:var(--sstf-ink,#162033)!important;display:inline-flex!important;align-items:center!important;gap:6px!important}
html body dialog#app-more .sidebar-brand-copy>span::before{content:""!important;display:inline-block!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#22c55e!important;box-shadow:var(--sstf-sh-card)!important}}
/* == HEADER-TITLE START (owner order 26/10, /root/R134/HEADER-TITLE.md; absolute screen sides): line 1 = logo + name | «في مشكلة؟», clock;
   line 3 = messages, notifications, calculator (from the left edge, glass circles of 40px inside a 44px touch box) | the page title (the page's
   one h1, bold 17px, two lines when long, never cut, no «…»). The separate title line under the header is gone. Presentation only. == */
@layer sstf-approved{
  html body .app-header--glass .app-header__line--nav>.app-header__group--left{flex:0 0 auto!important}
  /* line 3 circles: 40px visible, 44px touch (a transparent 2px border around the painted circle) */
  html body .app-header--glass .app-header__line--nav :is(.chat-launch,.app-settings-open,.app-header__tool,.app-close){
    border:2px solid transparent!important;background-clip:padding-box!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),var(--sstf-rim),inset 0 -2px 5px rgba(110,135,175,.16)!important;filter:drop-shadow(0 2px 3px rgba(20,40,80,.1))}
  html body .app-header--glass .app-header__line--nav :is(.chat-launch,.app-settings-open,.app-header__tool)>:is(svg,img),
  html body .app-header--glass .app-header__line--nav .app-header__tool>.app-header__calc-icon{flex:0 0 28px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
  /* the title side takes the rest of line 3; the title sits on the right edge */
  html body .app-header--glass .app-header__line--nav>.app-header__title-group{flex:1 1 0%!important;min-width:0!important;margin-left:auto!important;justify-content:flex-end!important}
  html[dir="rtl"] body .app-header--glass .app-header__line--nav>.app-header__title-group{justify-content:flex-start!important}
  html body .app-header--glass .app-header__title{flex:1 1 auto!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:2px var(--sstf-space-1)!important;
    color:var(--sstf-ink,#162033)!important;text-align:right!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
    -webkit-line-clamp:unset!important;display:block!important;max-height:none!important;height:auto!important}
  html body .app-header--glass .app-header__line--nav{height:auto!important;max-height:none!important}
  html body .app-header--glass .app-header__line--nav>.header-context{flex:0 1 auto!important}
  /* line 1: «في مشكلة؟» left of the clock, the same glass circle */
  html body .app-header--glass .app-header__tools{gap:var(--sstf-hg-gap,6px)!important}
  /* the emptied title line under the header: no height of its own (stays the skip target and the place of the page's head tools) */
  html body .page-heading.page-heading--in-header:empty{display:block!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
  html body .page-heading.page-heading--in-header:not(:empty){justify-content:flex-end!important}
}
/* the global h1 size (sstf-typography outranks sstf-approved for !important): the header title = 17px bold */
@layer sstf-typography{
  html body .app-header .app-header__title.app-header__title{font-size:var(--sstf-t-card)!important;font-weight:800!important;line-height:1.3!important;letter-spacing:0!important}
  html body .app-header .app-header__title.app-header__title .ss-order-number{font-size:1em!important}
}
/* == HEADER-TITLE END == */

/* == BATCH A — GLASS COMPONENTS START (owner 27/10; reference ui-specimen «glass»). One central look for every button, notice, chip, segmented bar,
   field, status badge and counter. The layer sstf-glass is declared first, so these rules outrank the older layers. == */
@layer sstf-glass{
  /* 2.1 the central button — three shapes: primary (gradient + gloss) / .secondary (glass) / .danger (soft red) */
  .sstf-send-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;box-sizing:border-box!important;width:100%!important;min-height:50px!important;padding:var(--sstf-space-1) var(--sstf-space-4)!important;border:0!important;border-radius:var(--sstf-r-m)!important;font:inherit!important;font-size:var(--sstf-t-body)!important;font-weight:600!important;line-height:1.3!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;cursor:pointer!important;transition:transform .12s ease,box-shadow .2s ease!important;background:var(--sstf-primary-grad)!important;color:var(--sstf-on-primary)!important;box-shadow:var(--sstf-primary-glow),inset 0 1px 0 rgba(255,255,255,.25)!important}
  .sstf-send-button>span{background:none!important;color:inherit!important;padding:0!important;font:inherit!important}
  .sstf-send-button>.sstf-icon,.sstf-send-button>img{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important}
  .sstf-send-button.secondary{background:var(--sstf-glass-surface-2)!important;color:var(--sstf-ink)!important;border:0!important;box-shadow:inset 0 0 0 1px var(--sstf-glass-line)!important}
  .sstf-send-button.danger{background:var(--sstf-state-bad-soft)!important;color:var(--sstf-state-bad)!important;border:0!important;box-shadow:none!important}
  .sstf-send-button:active{transform:scale(.98)!important}
  .sstf-send-button:focus-visible{outline:3px solid color-mix(in srgb,var(--sstf-primary) 35%,transparent)!important;outline-offset:2px!important}
  .sstf-send-button:disabled,.sstf-send-button[aria-disabled="true"]{opacity:.5!important;cursor:not-allowed!important;transform:none!important}
  /* the row rule: up to three equal buttons; a primary alone takes the full width */
  .sstf-btn-row{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:var(--sstf-space-2)!important;align-items:stretch!important;margin:var(--sstf-space-3) 0 0!important}
  .sstf-btn-row>*{width:100%!important;min-width:0!important;margin:0!important}
  .sstf-btn-row>form{display:contents!important}
  .sstf-btn-row--3>.sstf-send-button,.sstf-btn-row--3>form>.sstf-send-button{font-size:var(--sstf-t-small)!important;padding-inline:var(--sstf-space-2)!important;min-height:46px!important}
  .sstf-card-actions__row>.sstf-send-button,.sstf-card-actions__row>:not(button,a,input)>.sstf-send-button{margin:0!important}
  /* 2.2 the central notice — four kinds (info / ok / warn / bad) with an optional icon; the older .sstf-banner / .sstf-info-note take the same look */
  .sstf-notice{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;box-sizing:border-box!important;margin:0!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-state-info-soft)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-small)!important;font-weight:500!important;line-height:1.5!important;box-shadow:none!important}
  .sstf-notice>.sstf-icon,.sstf-notice>img{flex:none!important;width:var(--sstf-icon-32)!important;height:var(--sstf-icon-32)!important;object-fit:contain!important}
  .sstf-notice__text{display:grid!important;gap:2px!important;flex:1 1 0!important;min-width:0!important}
  .sstf-notice__text>b,.sstf-notice__text>strong{display:block!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  .sstf-notice__text>p{margin:0!important}
  .sstf-notice--ok{background:var(--sstf-state-ok-soft)!important}.sstf-notice--warn{background:var(--sstf-state-warn-soft)!important}.sstf-notice--bad{background:var(--sstf-state-bad-soft)!important}.sstf-notice--info{background:var(--sstf-state-info-soft)!important}
  .sstf-notice--bad .sstf-notice__text>b,.sstf-notice--bad .sstf-notice__text>strong{color:var(--sstf-state-bad)!important}
  .sstf-banner:not([data-tone="plain"]),.sstf-info-note{border:0!important;border-radius:var(--sstf-r-m)!important;box-shadow:none!important;background:var(--sstf-state-info-soft)!important;color:var(--sstf-ink)!important}
  .sstf-banner[data-tone="done"]{background:var(--sstf-state-ok-soft)!important}.sstf-banner[data-tone="action"]{background:var(--sstf-state-warn-soft)!important}.sstf-banner[data-tone="danger"]{background:var(--sstf-state-bad-soft)!important}.sstf-banner[data-tone="neutral"]{background:var(--sstf-state-idle-soft)!important}
  .sstf-banner[data-tone="danger"] .sstf-banner__text>:is(h2,h3){color:var(--sstf-state-bad)!important}
  .sstf-banner__text>:is(h2,h3){font-size:var(--sstf-t-card)!important;font-weight:700!important}
  .sstf-banner__text>p,.sstf-info-note{font-size:var(--sstf-t-small)!important}
  /* 2.3 the central filter chips — one row that scrolls sideways, the counter inside the chip; the older chip rows take the same look */
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips){display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;scrollbar-width:none!important;margin:0 0 var(--sstf-space-3)!important;padding:2px!important;background:none!important;border:0!important;box-shadow:none!important}
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)::-webkit-scrollbar{display:none!important}
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)>:is(a,button),.sstf-chip{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-2)!important;box-sizing:border-box!important;min-height:44px!important;height:auto!important;min-width:0!important;margin:0!important;padding:0 var(--sstf-space-4)!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-glass-surface)!important;background-image:none!important;-webkit-backdrop-filter:var(--sstf-glass-blur);backdrop-filter:var(--sstf-glass-blur);box-shadow:inset 0 0 0 1px var(--sstf-glass-line)!important;color:var(--sstf-ink)!important;font:inherit!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;line-height:1.3!important;white-space:nowrap!important;text-decoration:none!important;cursor:pointer!important}
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)>:is(a,button)::before,:is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)>:is(a,button)::after{content:none!important;display:none!important}
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)>:is(a,button)>:is(b,strong,.sstf-chip__count),.sstf-chip>:is(b,strong,.sstf-chip__count){display:inline-grid!important;place-items:center!important;min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-glass-surface-2)!important;box-shadow:inset 0 0 0 1px var(--sstf-glass-line)!important;color:inherit!important;font-size:var(--sstf-t-small)!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;line-height:1!important;text-align:center!important}
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)>:is(a,button):is([aria-current="page"],[aria-pressed="true"],.is-active),.sstf-chip:is([aria-current="page"],[aria-pressed="true"]){background:var(--sstf-primary-grad)!important;color:var(--sstf-on-primary)!important;box-shadow:var(--sstf-primary-glow)!important;font-weight:600!important}
  :is(.sstf-chips,.ss-sales-stage-chips,.finance-filter-chips,.finance-moves-filters,.sstf-central-filter-chips)>:is(a,button):is([aria-current="page"],[aria-pressed="true"],.is-active)>:is(b,strong,.sstf-chip__count),.sstf-chip:is([aria-current="page"],[aria-pressed="true"])>:is(b,strong,.sstf-chip__count){background:rgba(255,255,255,.22)!important;box-shadow:none!important;color:inherit!important}
  /* 2.4 the central segmented bar (tabs / sticky states): equal cells, the current one lifted; a disabled cell dims and a hint line explains it */
  .sstf-segmented{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:var(--sstf-space-1)!important;width:100%!important;box-sizing:border-box!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-1)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-glass-surface-2)!important;background-image:none!important;box-shadow:inset 0 0 0 1px var(--sstf-glass-line)!important}
  .sstf-segmented>form{display:contents!important}
  .sstf-segmented>:is(a,button,.sstf-segmented__item),.sstf-segmented>form>:is(a,button){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;box-sizing:border-box!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink-muted)!important;font:inherit!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;line-height:1.3!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;cursor:pointer!important;width:100%!important}
  .sstf-segmented>:is(a,button,.sstf-segmented__item):is([aria-current="page"],[aria-pressed="true"],[aria-selected="true"]),.sstf-segmented>form>:is(a,button):is([aria-current="page"],[aria-pressed="true"]){background:var(--sstf-surface)!important;color:var(--sstf-primary)!important;box-shadow:0 4px 12px rgba(15,27,51,.1)!important}
  .sstf-segmented>:is(a,button,.sstf-segmented__item):disabled,.sstf-segmented>form>:is(a,button):disabled{opacity:.4!important;cursor:not-allowed!important}
  .sstf-segmented>:is(a,button,.sstf-segmented__item)>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-segmented__hint{margin:calc(-1 * var(--sstf-space-2)) var(--sstf-space-1) var(--sstf-space-3)!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  /* 2.5 the central field — one height (52) and one frame for every control; the amount + currency box; the error state */
  .sstf-field{display:grid!important;gap:6px!important;min-width:0!important;margin:0!important}
  .sstf-field>label,.sstf-field__label,.sstf-icon-field{font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important}
  .sstf-field__box{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;box-sizing:border-box!important;min-height:52px!important;padding:0 var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-glass-surface-2)!important;box-shadow:inset 0 0 0 1px var(--sstf-glass-line)!important;color:var(--sstf-ink)!important}
  .sstf-field__box:focus-within{box-shadow:inset 0 0 0 2px var(--sstf-primary)!important}
  .sstf-field__box>:is(input,select,textarea){flex:1 1 0!important;min-width:0!important;width:auto!important;min-height:48px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;font:inherit!important;font-size:var(--sstf-mobile-input)!important;color:var(--sstf-ink)!important}
  .sstf-field__box>select{appearance:auto!important;-webkit-appearance:auto!important;flex:0 0 auto!important;max-width:40%!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important}
  .sstf-field__box>.sstf-icon,.sstf-field__box>img{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important}
  .sstf-field__unit{flex:none!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important}
  .sstf-field--bad .sstf-field__box,.sstf-field__box:has(>[aria-invalid="true"]){box-shadow:inset 0 0 0 2px var(--sstf-state-bad)!important}
  .sstf-field__error{margin:0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-state-bad)!important}
  .sstf-field--bad .sstf-field__error:empty{display:none!important}
  /* 2.6 the status badge — five colours (idle / info / ok / warn / bad) on the central status and the stage-card badge; the legacy
     state-badge / status-pill / sstf-status-chip / size-chip hooks keep only this look (their own rules are gone) */
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip,.size-chip,.sstf-stage-card__badge){display:inline-flex!important;align-items:center!important;gap:6px!important;box-sizing:border-box!important;width:max-content!important;max-width:100%!important;min-height:0!important;margin:0!important;padding:3px 8px!important;border:0!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-state-idle-soft)!important;color:var(--sstf-state-idle)!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;line-height:1.3!important;white-space:normal!important;text-decoration:none!important;box-shadow:none!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip,.size-chip)::before{content:""!important;display:inline-block!important;flex:none!important;width:6px!important;height:6px!important;margin:0!important;border-radius:50%!important;background:currentColor!important;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 18%,transparent)!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip,.size-chip)::after{content:none!important;display:none!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip,.size-chip)>.sstf-central-status__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;object-fit:contain!important;flex:none!important}
  button.sstf-status-chip{position:relative!important;overflow:visible!important} /* its text is shown whole (E1), so the chip is no scroll box — an overflow would clip the floating touch area to the pill */ button.sstf-status-chip::after{content:""!important;display:block!important;position:absolute!important;inset-inline:0!important;top:calc(50% - var(--sstf-touch) / 2)!important;height:var(--sstf-touch)!important;border:0!important;background:none!important;box-shadow:none!important;pointer-events:auto!important} /* R134 Q5 (batch A): the tappable status chip keeps its pill look and answers a 44px-tall tap (the row of the order card) */
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip)[data-sstf-tone="done"],.sstf-stage-card[data-state="done"] .sstf-stage-card__badge{background:var(--sstf-state-ok-soft)!important;color:var(--sstf-state-ok)!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip)[data-sstf-tone="action"],.sstf-stage-card[data-state="now"] .sstf-stage-card__badge{background:var(--sstf-state-warn-soft)!important;color:var(--sstf-state-warn)!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip):is([data-sstf-tone="progress"],[data-sstf-tone="waiting"]),.sstf-stage-card:is([data-state="working"],[data-state="waiting"]) .sstf-stage-card__badge{background:var(--sstf-state-info-soft)!important;color:var(--sstf-state-info)!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip)[data-sstf-tone="danger"],.sstf-stage-card[data-state="incomplete"] .sstf-stage-card__badge{background:var(--sstf-state-bad-soft)!important;color:var(--sstf-state-bad)!important}
  :is(.sstf-central-status,.state-badge,.status-pill,.sstf-status-chip)[data-sstf-tone="neutral"],.sstf-stage-card[data-state="idle"] .sstf-stage-card__badge{background:var(--sstf-state-idle-soft)!important;color:var(--sstf-state-idle)!important}
  /* 3.1 the legacy buttons are gone: compact (inline, auto width) and icon (round 44) are modifiers of the one central button; WhatsApp keeps its green */
  .sstf-send-button--compact{width:auto!important;min-height:44px!important;padding:0 var(--sstf-space-3)!important;font-size:var(--sstf-t-small)!important;margin:0!important}
  .sstf-send-button--icon{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;margin:0!important;position:relative!important}
  /* R134 batch A fix: the live / update toast keeps its two actions in one row (the central width:100% stacked them and the toast grew to 182px over the page's own buttons at 1366) */
  .sstf-update-toast:not(.sstf-install-card)>.sstf-send-button{width:auto!important;flex:0 0 auto!important;min-height:44px!important;padding:var(--sstf-space-2) 14px!important;margin:0!important}
  .sstf-send-button--icon>:is(.sstf-icon,img,svg){width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;margin:0!important}
  .sstf-send-button.whatsapp,.sstf-send-button[href^="https://wa.me/"]{background:linear-gradient(135deg,#25d366 0%,#128c7e 100%)!important;color:#fff!important;box-shadow:0 8px 22px rgba(18,140,126,.28),inset 0 1px 0 rgba(255,255,255,.25)!important}
  .sstf-send-button.warning{background:var(--sstf-state-warn-soft)!important;color:var(--sstf-state-warn)!important;box-shadow:none!important}
  :is(td,th,.sstf-icon-actions,.sstf-head-tools,.app-tools,.sstf-create-bar-row,.sstf-central-glass__head,.app-header) .sstf-send-button:not(.sstf-create-bar){width:auto!important;margin:0!important}
  :is(td,th) .sstf-send-button{min-height:44px!important;padding:0 var(--sstf-space-3)!important;font-size:var(--sstf-t-small)!important}
  /* 3.2 the older tab rows are the central segmented bar; the older notices are the central notice (kind by their old class) */
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips)){display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;gap:var(--sstf-space-1)!important;width:100%!important;box-sizing:border-box!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-1)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-glass-surface-2)!important;background-image:none!important;box-shadow:inset 0 0 0 1px var(--sstf-glass-line)!important;overflow:visible!important}
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:var(--sstf-space-1)!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:44px!important;margin:0!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important;border:0!important;border-radius:var(--sstf-r-s)!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--sstf-ink-muted)!important;font:inherit!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;line-height:1.3!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;cursor:pointer!important}
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button)>.sstf-icon{flex:none!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button):is([aria-current="page"],[aria-current="true"],[aria-pressed="true"],[aria-selected="true"],.is-active){background:var(--sstf-surface)!important;color:var(--sstf-primary)!important;box-shadow:0 4px 12px rgba(15,27,51,.1)!important}
  :is(.notice,.pricing-reminder,.reminder,.supplier-reminder,.finance-reminder,.action-notice,.warning,.duty-warning,.pricing-warning,.duty-error,.field-error):not(button,a,.sstf-send-button){display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;box-sizing:border-box!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-state-info-soft)!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-small)!important;font-weight:500!important;line-height:1.5!important;box-shadow:none!important}
  :is(.notice,.pricing-reminder,.reminder,.supplier-reminder,.finance-reminder,.action-notice):not(button,a)>:is(.sstf-icon,img){flex:none!important;width:var(--sstf-icon-32)!important;height:var(--sstf-icon-32)!important;object-fit:contain!important}
  :is(.notice,.pricing-reminder,.reminder):not(button,a)>span{flex:1 1 0!important;min-width:0!important}
  :is(.notice,.pricing-reminder,.reminder):not(button,a) :is(strong,b){font-size:var(--sstf-t-body)!important;font-weight:700!important}
  :is(.notice.account-success,.notice.success,.account-success):not(button,a){background:var(--sstf-state-ok-soft)!important}
  :is(.notice.notice-error,.notice.ops-error,.notice.field-error,.duty-error,.field-error,.notice-error,.ops-error):not(button,a){background:var(--sstf-state-bad-soft)!important}
  :is(.notice.notice-error,.notice.ops-error,.duty-error,.field-error):not(button,a) :is(strong,b){color:var(--sstf-state-bad)!important}
  :is(.warning,.duty-warning,.pricing-warning):not(button,a){background:var(--sstf-state-warn-soft)!important}
  :is(.notice,.warning,.field-error):empty{display:none!important}
  :is(.field-hint,.sstf-field-hint,.sstf-field__hint,.hint,.duty-hint,.sstf-duty-hint,.read-only-hint,.sstf-app-hint,.sstf-shipping-mark__hint){display:block!important;margin:var(--sstf-space-1) var(--sstf-space-1) 0!important;font-size:var(--sstf-t-small)!important;font-weight:400!important;color:var(--sstf-ink-muted)!important;background:none!important;border:0!important;padding:0!important}
  /* 3.3 list rows = the central record card (reference «صفوف القوائم»); the summary facts = the reference «الملخص»; empty pages = the central empty state */
  :is(.sstf-record,.orders-compact-list>*,.order-line,.account-document-row,.simple-list-row,.sstf-order-card){box-sizing:border-box!important;border:1px solid var(--sstf-glass-line)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-glass-surface)!important;-webkit-backdrop-filter:var(--sstf-glass-blur);backdrop-filter:var(--sstf-glass-blur);box-shadow:var(--sstf-sh-card),var(--sstf-rim)!important}
  /* R159 (أمر المالك 10/11): «إطار كرت الطلب مش واضح» — خطّ أوضح وظلّ أعمق قليلًا ليتميّز الكرت عن الخلفية.
     مركزيًّا لكل كروت السجلات (الطلبات والمستندات والصفوف البسيطة) فلا يختلف كرت عن كرت. */
  :is(.sstf-record,.orders-compact-list>*,.order-line,.account-document-row,.simple-list-row,.sstf-order-card){border-color:var(--sstf-card-line)!important;box-shadow:0 2px 10px rgba(15,27,51,.10),var(--sstf-rim)!important}
  @media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.sstf-record,.orders-compact-list>*,.order-line,.account-document-row,.simple-list-row,.sstf-order-card){border-color:rgba(255,255,255,.28)!important;box-shadow:0 2px 12px rgba(0,0,0,.45),var(--sstf-rim)!important}}
  :is(.sstf-record,.order-line,.account-document-row,.simple-list-row) :is(.sstf-record__title,.order-number,.ss-order-number,strong:first-child){font-weight:700!important;font-variant-numeric:tabular-nums!important}
  :is(.sstf-record,.order-line,.account-document-row,.simple-list-row) :is(small,.sstf-record__meta){font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity){border:1px solid var(--sstf-card-line)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-glass-surface)!important;box-shadow:var(--sstf-sh-card),var(--sstf-rim)!important;overflow:hidden!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity)>.sstf-fact{display:grid!important;justify-items:center!important;align-content:center!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-3) var(--sstf-space-2)!important;border:0!important;border-inline-start:1px solid var(--sstf-glass-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;min-width:0!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity)>.sstf-fact:first-child{border-inline-start:0!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity)>.sstf-fact>.sstf-fact__text{display:grid!important;justify-items:center!important;gap:var(--sstf-space-1)!important;min-width:0!important;max-width:100%!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity) .sstf-fact__label{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;white-space:normal!important;overflow:visible!important;text-align:center!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity) .sstf-fact__value{font-size:var(--sstf-t-card)!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;text-align:center!important}
  .sstf-facts:is(.sstf-facts--3,.sstf-facts--4):not(.ss-identity-facts,.ss-order-identity) .sstf-fact__value:is([dir="ltr"],.is-number){font-size:var(--sstf-t-num)!important}
  @media(max-width:480px){.sstf-facts--3:not(.ss-identity-facts,.ss-order-identity)>.sstf-fact:nth-child(3){border-inline-start:0!important;border-top:1px solid var(--sstf-glass-line)!important;grid-column:1/-1!important}}
  .sstf-values{display:grid!important;gap:0!important;border:1px solid var(--sstf-card-line)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-glass-surface)!important;box-shadow:var(--sstf-sh-card),var(--sstf-rim)!important;overflow:hidden!important}
  .sstf-value-row{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-1) var(--sstf-space-3)!important;min-height:52px!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .sstf-value-row+.sstf-value-row{border-top:1px solid var(--sstf-glass-line)!important}
  .sstf-value-row.is-tinted{background:var(--sstf-state-info-soft)!important}
  .sstf-value-row__label{flex:1 1 auto!important;min-width:0!important;font-size:var(--sstf-t-small)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important;white-space:normal!important}
  .sstf-value-row__label>span:last-child{white-space:normal!important;overflow:visible!important}
  .sstf-value-row>strong{flex:0 1 auto!important;min-width:0!important;margin-inline-start:auto!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;color:var(--sstf-ink)!important;white-space:normal!important}
  .sstf-value-row__icon{width:var(--sstf-icon-32)!important;height:var(--sstf-icon-32)!important;border-radius:var(--sstf-r-s)!important;background:var(--sstf-glass-surface-2)!important}
  :is(.sstf-central-empty,.sstf-special-state){display:grid!important;justify-items:center!important;gap:var(--sstf-space-2)!important;padding:28px var(--sstf-space-4)!important;text-align:center!important;border:1px solid var(--sstf-glass-line)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-glass-surface)!important;box-shadow:var(--sstf-sh-card),var(--sstf-rim)!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  :is(.sstf-central-empty,.sstf-special-state)>:is(.sstf-icon,img){width:72px!important;height:72px!important;object-fit:contain!important;opacity:.95!important}
  :is(.sstf-central-empty,.sstf-special-state) :is(strong,b,h2,h3){margin:0!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;color:var(--sstf-ink)!important}
  :is(.sstf-central-empty,.sstf-special-state) p{margin:0!important}
  .sstf-central-empty--row{grid-auto-flow:column!important;justify-content:start!important;justify-items:start!important;text-align:start!important;padding:var(--sstf-space-3) var(--sstf-space-4)!important}
  .sstf-central-empty--row>:is(.sstf-icon,img){width:var(--sstf-icon-48)!important;height:var(--sstf-icon-48)!important}
  /* 3.4 one field everywhere: every input / select / textarea / file of the app takes the central box (52 tall, one frame) without touching the 641 templates;
     the icon field keeps its icon inside the box */
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) :is(input:not([type="checkbox"],[type="radio"],[type="hidden"],[type="range"],[type="color"],[type="submit"],[type="button"],[type="reset"],[type="image"]),select,textarea):not(.sstf-field__box *,.sstf-chips *,.sstf-segmented *){box-sizing:border-box!important;width:100%!important;min-height:52px!important;margin:0!important;padding:0 var(--sstf-space-3)!important;border:0!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-glass-surface-2)!important;background-image:none!important;box-shadow:inset 0 0 0 var(--sstf-field-line-w) var(--sstf-field-line)!important;color:var(--sstf-ink)!important;font:inherit!important;font-size:var(--sstf-mobile-input)!important;font-weight:400!important;line-height:1.4!important;outline:0!important;transition:box-shadow .15s ease!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) :is(input:not([type="checkbox"],[type="radio"],[type="hidden"],[type="range"],[type="color"],[type="submit"],[type="button"],[type="reset"],[type="image"]),select,textarea):not(.sstf-field__box *):focus-visible{box-shadow:inset 0 0 0 2px var(--sstf-primary)!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) :is(input,select,textarea):is([aria-invalid="true"],.is-invalid,:user-invalid){box-shadow:inset 0 0 0 2px var(--sstf-state-bad)!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) textarea:not(.sstf-field__box *){min-height:96px!important;padding:var(--sstf-space-3)!important;resize:vertical!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) select:not(.sstf-field__box *){appearance:none!important;-webkit-appearance:none!important;padding-inline-end:calc(var(--sstf-space-3) + var(--sstf-icon-20))!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%235d6b84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:left var(--sstf-space-3) center!important;background-size:var(--sstf-icon-20)!important}
  [dir="ltr"] :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) select:not(.sstf-field__box *),:is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui)[dir="ltr"] select:not(.sstf-field__box *){background-position:right var(--sstf-space-3) center!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) input[type="file"]:not(.sstf-field__box *){padding:var(--sstf-space-2) var(--sstf-space-3)!important;line-height:1.3!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) :is(input,select,textarea):disabled{opacity:.55!important}
  :is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) :is(input[type="checkbox"],input[type="radio"]){width:22px!important;height:22px!important;min-height:0!important;margin:0!important;accent-color:var(--sstf-primary)!important}
  .sstf-icon-field{position:relative!important;display:grid!important;gap:6px!important;padding:0!important;margin:0 0 var(--sstf-space-3)!important;font-size:var(--sstf-t-body)!important;font-weight:600!important;color:var(--sstf-ink-muted)!important;white-space:normal!important;overflow:visible!important} /* owner 29/10: a field's label reads at body size and wraps in a half-width column (it was 13px and cut at the edge) */
  .account-check{white-space:normal!important;overflow:visible!important}
  .sstf-icon-field.sstf-icon-field.sstf-icon-field>:is(input:not([type="checkbox"],[type="radio"]),select,textarea){margin:0!important;padding-inline-start:calc(var(--sstf-space-3) + var(--sstf-icon-md) + var(--sstf-space-2))!important}
  .sstf-icon-field>.sstf-icon-field__icon{position:absolute!important;inset-inline-start:var(--sstf-space-3)!important;bottom:calc((52px - var(--sstf-icon-md)) / 2)!important;top:auto!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;transform:none!important;pointer-events:none!important}
  .sstf-icon-field:has(>textarea)>.sstf-icon-field__icon{bottom:auto!important;top:calc(var(--sstf-t-small) * 1.4 + 6px + var(--sstf-space-3))!important}
  .sstf-icon-field.account-check{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:44px!important;padding-inline-start:0!important}
  .sstf-icon-field.account-check>.sstf-icon-field__icon{position:static!important;width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-icon-field.sstf-icon-field.sstf-icon-field>select[hidden]+button{margin:0!important;padding-inline-start:calc(var(--sstf-space-3) + var(--sstf-icon-md) + var(--sstf-space-2))!important}
  /* 3.5 the chat window on the central card: the body is the chat's column */
  #sstf-chat-overlay>.sstf-central-glass__body.chat-overlay-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;padding:0!important;overflow:hidden!important}
  #sstf-chat-overlay>.sstf-central-glass__body.chat-overlay-body>.chat-overlay-host{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  /* 3.7 fit pass: the stage-card badge stays one line; tab cells show their whole label (no chevron, the label wraps); the record foot keeps the amount beside its button */
  .sstf-stage-card__badge{white-space:nowrap!important}
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button){flex-wrap:wrap!important}
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button)::before,:is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button)::after{content:none!important;display:none!important}
  :is(.ss-section-tabs,.sstf-calc-tabs,[role="tablist"]:not(.sstf-app-chips))>:is(a,button)>span{flex:0 1 auto!important;min-width:0!important;width:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;text-align:center!important}
  .sstf-segmented>.sstf-segmented__item>span{white-space:normal!important;overflow:visible!important;text-align:center!important;line-height:1.2!important} /* R134 Q2 (batch A): a tab label wraps inside its tab instead of scrolling (one-line contract) */
  .sstf-record__foot{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2) var(--sstf-space-3)!important}
  .sstf-record__foot>.sstf-record__amount{flex:none!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;font-variant-numeric:tabular-nums!important}
  .sstf-record__foot>.sstf-send-button{flex:1 1 160px!important;width:auto!important;margin:0!important}
  /* 4.3 text check: with the 13px floor a banner title, a hub child label and a fact label wrap instead of scrolling inside their place */
  .sstf-banner__text>:is(h2,h3),.sstf-shipping-hub__child-label,.sstf-fact__label{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

  /* R356 (أمر المالك 6/12): «خلّي الطرود بكروت شكلها أفضل». وموضعها **في طبقة الزجاج** لأنّ
     `.sstf-record__foot{display:flex!important}` معرَّفةٌ فيها، والمهمّ يُرجَّح للطبقة الأسبق —
     فوضعتُها خارج الطبقات ثم في `sstf-approved` فخسرت مرّتين وبقي الكرت 139 بكسل بذيله. */
  ووزنه وبوليصته تحته، وهو كلّه بابُه. وقياسي: الكرت 149 بكسل منها 48 لذيل زرّ «فتح»،
  والكرت نفسه باب فالذيل يسقط. */
  .fly-parcel-cards .fly-parcel-card{padding:9px 12px!important;cursor:pointer!important;position:relative!important}
  .fly-parcel-cards .fly-parcel-card:hover{background:var(--sstf-pale,#f1f5ff)!important}
  .fly-parcel-cards .fly-parcel-card .sstf-record__foot{display:none!important}
  .fly-parcel-cards .fly-parcel-card .sstf-record__icon{width:30px!important;height:30px!important;flex:0 0 30px!important}
  .fly-parcel-cards .fly-parcel-card .sstf-record__title{font-size:.96rem!important;line-height:1.25!important}
  .fly-parcel-cards .fly-parcel-card .sstf-record__sub{font-size:.8rem!important;line-height:1.3!important;opacity:.82;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:2px!important}
  .fly-parcel-cards .fly-parcel-card:after{content:'‹';position:absolute;inset-inline-start:12px;top:50%;
  transform:translateY(-50%);opacity:.45;font-size:1.15rem}
}
/* == BATCH A — GLASS COMPONENTS END == */
@layer sstf-approved{.sstf-now-card--action>.sstf-now-card__form{display:contents!important}} /* BATCH B 1: the one-button form in «الآن» sits in the card's third column */

@layer sstf-glass{
/* owner 29/10 (his rule): a row of filter chips or head tools scrolls sideways with the fade at its edge — never wrapped (the ب3-21 wrap rule was removed) */
html body span.sstf-status-chip__text{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important} /* owner E1: a status is shown in full */
/* R135 ب3-21: the shipping-mark chip after the order number in a list row never covers the name — it stays inline, trimmed, on its own line when the row is narrow */
.ss-order-number+.sstf-shipping-mark,.sstf-shipping-mark{position:static!important;vertical-align:middle!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important}
/* R135 ب3-21: the dropshipping carrier card at 390 — the download button's text is never cut, the linked-waybill row wraps (name, then the tracking number) */
html body #ds-shipping .sstf-send-button>span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important}
html body #ds-shipping button.ds-awb-linked__open.ds-awb-linked__open{flex-wrap:wrap!important}
html body #ds-shipping button.ds-awb-linked__open>span{flex:1 1 100%!important;min-width:0!important;overflow-wrap:anywhere!important}
html body #ds-shipping button.ds-awb-linked__open>bdi{flex:0 0 auto!important}

/* owner 29/10 (the payment form showed every field for every type): the hidden attribute always hides — the glass display rules (.sstf-icon-field{display:grid!important}, .sstf-info-note{display:flex!important} …) sit in this first layer and used to beat the [hidden] rules of the later layers; the :is(#id,…) form gives this rule an id's specificity inside the same layer */
:is(#sstf-hidden-wins,[hidden]):not([hidden="until-found"]){display:none!important}
/* owner 29/10: the funds total row under the fund tiles on the accounting home */
.finance-fund-total{grid-column:1/-1!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-top:1px solid var(--sstf-tone-neutral-border)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;color:var(--sstf-ink)!important}
.finance-fund-total>strong{font-size:var(--sstf-t-card)!important;font-variant-numeric:tabular-nums!important}
/* R136 (owner 29/10): the stocktake counting screen, the approval card, the cartons */
.st-toolbar{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important}
.st-toolbar>.sstf-send-button{flex:0 0 auto!important;width:auto!important;min-height:var(--sstf-touch)!important;white-space:nowrap!important}
.st-search{flex:1 1 auto!important;min-width:0!important;display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important}
.st-search>input{flex:1 1 auto!important;min-width:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:auto!important;padding:0!important;font-size:var(--sstf-t-body)!important}
.st-search>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:none!important}
.st-remaining{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;column-gap:var(--sstf-space-2)!important;row-gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-3)!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-surface-tag)!important}
.st-remaining>strong{font-size:var(--sstf-t-num)!important;line-height:1!important;color:rgb(var(--sstf-domain-rgb))!important;font-variant-numeric:tabular-nums!important}
.st-remaining>strong.is-over{color:var(--sstf-state-bad)!important}
.st-remaining>span{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important}
.st-remaining>progress{grid-column:1/-1!important;width:100%!important;height:6px!important;accent-color:rgb(var(--sstf-domain-rgb))!important}
.st-cartons{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important}
.st-carton-chip{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;padding:4px 10px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-state-ok-soft)!important;color:var(--sstf-state-ok)!important;font-size:var(--sstf-t-small)!important;font-weight:700!important}
.st-carton-chip>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
.st-product{display:block!important;margin:0 0 var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-surface)!important}
.st-product.is-done{border-color:var(--sstf-state-ok)!important}
.st-product__head{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-2)!important}
.st-product__image{width:48px!important;height:48px!important;flex:none!important;border-radius:var(--sstf-r-m)!important;object-fit:cover!important;display:grid!important;place-items:center!important;background:var(--sstf-surface-tag)!important}
.st-product__text{flex:1 1 auto!important;min-width:0!important;display:grid!important;gap:2px!important}
.st-product__text>strong{font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important;overflow-wrap:anywhere!important}
.st-product__text>small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
.st-product__head>b{flex:none!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink)!important}
.st-sizes{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(88px,1fr))!important;gap:var(--sstf-space-2)!important}
.st-size{display:grid!important;gap:4px!important;margin:0!important;padding:var(--sstf-space-2)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-surface-tag)!important;text-align:center!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important;white-space:normal!important}
.st-size.is-set{border-color:var(--sstf-state-ok)!important;background:var(--sstf-state-ok-soft)!important}
.st-size.is-error{border-color:var(--sstf-state-bad)!important;background:var(--sstf-state-bad-soft)!important}
.st-size.is-saving{opacity:.6!important}
.st-size__label{font-size:var(--sstf-t-body)!important;font-weight:800!important;color:var(--sstf-ink)!important}
.st-size>input{width:100%!important;min-height:var(--sstf-touch)!important;text-align:center!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;padding:0 var(--sstf-space-1)!important}
/* عدّ سريع (أمر المالك 2/11، مقيسًا من صورته): زر 44 بخلفية #F6F6F6 وزاوية 5، شرطة 1.6×22، والرقم 27 بوزن عادي بلا إطار */
.st-sizes[data-st-stepper]{grid-template-columns:1fr!important;gap:8px!important}
.st-sizes[data-st-stepper] .st-size{padding:8px 10px!important;gap:6px!important;border-radius:var(--sstf-r-m)!important;background:#fff!important}
.st-sizes[data-st-stepper] .st-size__label{display:block!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-state-bad)!important} /* أمر المالك 2/11: رقم المقاس أحمر ليتميّز عن الكمية */
.st-size .size-quantity-controls{display:grid!important;grid-template-columns:44px auto 44px!important;justify-content:center!important;gap:14px!important;align-items:center!important;direction:ltr!important;width:100%!important}
.st-sizes[data-st-stepper] .size-quantity-controls>input[type=number]{width:auto!important;min-width:64px!important;height:44px!important;min-height:44px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;text-align:center!important;font-size:27px!important;font-weight:400!important;line-height:1!important;color:var(--sstf-ink,#111)!important;font-variant-numeric:tabular-nums!important;padding:0!important;appearance:textfield!important;-moz-appearance:textfield!important}
.st-sizes[data-st-stepper] .size-quantity-controls>input[type=number]::-webkit-outer-spin-button,.st-sizes[data-st-stepper] .size-quantity-controls>input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
.st-sizes[data-st-stepper] .size-quantity-controls>button{position:relative!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:5px!important;background:#f6f6f6!important;box-shadow:none!important;font-size:0!important;color:transparent!important}
.st-sizes[data-st-stepper] .size-quantity-controls>button::before{content:''!important;position:absolute!important;top:50%!important;left:11px!important;width:22px!important;height:1.6px!important;margin-top:-.8px!important;background:#111!important}
.st-sizes[data-st-stepper] .size-quantity-controls>button:last-of-type::after{content:''!important;position:absolute!important;left:50%!important;top:11px!important;width:1.6px!important;height:22px!important;margin-left:-.8px!important;background:#111!important}
.st-size .size-quantity-controls>button{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:14px!important;background:var(--sstf-surface-tag,#f2f4f7)!important;box-shadow:none!important;color:var(--sstf-ink)!important;font-size:var(--sstf-t-card)!important;font-weight:900!important}
.st-size__carton{font-size:var(--sstf-t-small)!important;color:var(--sstf-state-ok)!important;font-weight:700!important}
.st-bar{position:static!important;margin:var(--sstf-space-3) 0 0!important;padding:0!important}
.st-bar form{margin:0!important}.st-bar .sstf-send-button{width:100%!important}
.st-start{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:100%!important;min-height:calc(var(--sstf-touch) * 1.5)!important;margin:0 0 var(--sstf-space-3)!important}
.st-start>span{font-size:var(--sstf-t-card)!important;font-weight:800!important}.st-start>small{font-size:var(--sstf-t-small)!important;opacity:.85!important;color:inherit!important}
.st-approve{display:grid!important;gap:var(--sstf-space-3)!important;padding:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-3)!important;border-radius:var(--sstf-r-l)!important;border:1px solid var(--sstf-tone-neutral-border)!important;background:var(--sstf-surface)!important}
.st-approve__lines{display:grid!important;gap:var(--sstf-space-2)!important}
.st-approve__line{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-r-m)!important;font-size:var(--sstf-t-body)!important}
.st-approve__line.is-short{background:var(--sstf-state-bad-soft)!important;color:var(--sstf-state-bad)!important}.st-approve__line.is-over{background:var(--sstf-state-ok-soft)!important;color:var(--sstf-state-ok)!important}
.st-approve__line>.sstf-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important;flex:none!important}
.st-approve__line>span{flex:0 0 auto!important}.st-approve__line>strong{flex:1 1 auto!important;font-size:var(--sstf-t-card)!important;font-weight:800!important}.st-approve__line>b{font-variant-numeric:tabular-nums!important;font-weight:800!important}
.st-approve__button{width:100%!important}
.st-diff{display:block!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-r-m)!important;background:var(--sstf-surface-tag)!important}
.st-diff>header{display:flex!important;align-items:baseline!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-1)!important}.st-diff>header>strong{font-size:var(--sstf-t-body)!important}.st-diff>header>small{color:var(--sstf-ink-muted)!important}
.st-diff__row{display:grid!important;grid-template-columns:auto 1fr auto minmax(120px,1.2fr)!important;align-items:center!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-1) 0!important;font-size:var(--sstf-t-body)!important}
.st-diff__row>strong{font-weight:800!important}.st-diff__row>span{color:var(--sstf-ink-muted)!important;font-variant-numeric:tabular-nums!important}.st-diff__row>b{font-variant-numeric:tabular-nums!important;font-weight:800!important}
.st-diff__row.diff-short>b{color:var(--sstf-state-bad)!important}.st-diff__row.diff-over>b{color:var(--sstf-state-ok)!important}
.st-diff__row>select{min-height:var(--sstf-touch)!important;font-size:var(--sstf-t-small)!important}
.st-reasons{display:flex!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important;margin:var(--sstf-space-2) 0!important}
.st-reverse,.st-note{font-size:var(--sstf-t-body)!important;color:var(--sstf-ink)!important;margin:0 0 var(--sstf-space-1)!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
.st-scan{display:grid!important;gap:var(--sstf-space-3)!important}
.st-scan__video{width:100%!important;aspect-ratio:4/3!important;border-radius:var(--sstf-r-m)!important;background:#000!important;object-fit:cover!important}
.st-scan__status{margin:0!important;text-align:center!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink-muted)!important;min-height:1.4em!important;overflow-wrap:anywhere!important}
.ct-toolbar>a{flex:1 1 auto!important}
.ct-code{display:flex!important;gap:var(--sstf-space-2)!important;align-items:center!important}.ct-code>input{flex:1 1 auto!important;min-width:0!important}.ct-code>button{flex:none!important}
.ct-capacity{display:flex!important;gap:var(--sstf-space-2)!important;align-items:center!important;flex-wrap:wrap!important}
.ct-capacity__pick{min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;font-weight:800!important;font-size:var(--sstf-t-body)!important;color:var(--sstf-ink)!important}
.ct-capacity__pick.is-on{background:rgb(var(--sstf-domain-rgb))!important;color:#fff!important;border-color:rgb(var(--sstf-domain-rgb))!important}
.ct-capacity>input{flex:1 1 90px!important;min-width:90px!important}
.ct-lines{display:block!important;margin:var(--sstf-space-3) 0!important}
.ct-content{display:block!important;margin:0 0 var(--sstf-space-3)!important}
.ct-product{display:block!important;margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-tone-neutral-border)!important;border-radius:var(--sstf-r-l)!important;background:var(--sstf-surface)!important}
.ct-product>header{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-2)!important}
.ct-sizes{display:flex!important;flex-wrap:wrap!important;gap:var(--sstf-space-2)!important}
.ct-size{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:6px 12px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface-tag)!important;font-size:var(--sstf-t-body)!important}
.ct-size>strong{font-weight:800!important}.ct-size>b{color:var(--sstf-ink-muted)!important;font-variant-numeric:tabular-nums!important}
/* R136 (robot Q2 29/10): the «خيارات» start form is a two-column long form — the scope rows and their panels take the whole width, not one 158px column */
.st-options>form.sstf-form-long>*{grid-column:1/-1!important;min-width:0!important}
/* R137 (owner 30/10): the Chinese tracking number — ONE wide fact: the number whole (never clipped), «نسخ» and «تتبع الشحنة» beside it; warehouse portal + staff card */
.sstf-fact.fly-wh-tracking-fact .sstf-fact__value{white-space:normal!important;overflow:visible!important}
.fly-wh-tracking{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-width:0!important}
.fly-wh-tracking__number{display:block!important;flex:1 1 100%!important;max-width:100%!important;font-size:var(--sstf-t-card)!important;font-weight:800!important;font-variant-numeric:tabular-nums!important;letter-spacing:.03em!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:start!important}
.fly-wh-tracking>.sstf-send-button{flex:0 0 auto!important;width:auto!important;min-height:var(--sstf-touch)!important;padding-inline:var(--sstf-space-3)!important;white-space:nowrap!important;margin:0!important}
.fly-wh-tracking>.copy-status{flex:1 1 100%!important;margin:0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-tone-done-fg)!important}
.fly-wh-tracking>.copy-status:empty{display:none!important}
/* R137 item 2 (owner 30/10): «تسجيل الخروج» as a drawer / sidebar entry (a POST form styled as the links) + the app-styled refusal page */
.sstf-flow .app-drawer nav form.app-drawer__logout,.sstf-flow .store-sidebar form.app-drawer__logout{display:contents!important}
.sstf-flow .app-drawer nav .app-drawer__logout-button,.sstf-flow .store-sidebar .app-drawer__logout-button{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;width:100%!important;padding:8px 11px!important;border:1px solid rgba(35,68,103,.08)!important;border-radius:18px!important;min-height:48px!important;background:#fff!important;color:var(--sstf-tone-danger-fg)!important;font:inherit!important;font-size:15px!important;font-weight:900!important;text-align:start!important;cursor:pointer!important;box-shadow:var(--sstf-sh-card)!important}
.sstf-flow .store-sidebar .app-drawer__logout-button{background:transparent!important}
.sstf-system-page--refused .sstf-system-page__actions{margin-top:var(--sstf-space-4)!important}
/* R137 item 1: the additions badge + «إقفال الطلب» row (staff products / warehouse cards) and the customer's lock line */
.fly-additions{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-3)!important}
.fly-additions__form{margin:0!important;display:inline-flex!important}
.fly-additions-lock{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:var(--sstf-space-3)!important}
.fly-additions-lock>.sstf-send-button{flex:0 0 auto!important;width:auto!important;min-height:var(--sstf-touch)!important}
/* R137 item 4: the place picker, the container card's move card and action row */
.place-picker{display:grid!important;gap:var(--sstf-space-2)!important;grid-column:1/-1!important}
.place-picker__slots{display:grid!important;grid-template-columns:1fr 1fr!important;gap:var(--sstf-space-2)!important}
.place-picker__slots>label[hidden]{display:none!important}
.ct-move{display:grid!important;gap:var(--sstf-space-4)!important}
.ct-move__way{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line,rgba(35,68,103,.08))!important;border-radius:var(--sstf-r-m,14px)!important;background:#fff!important}
.ct-move__way>h3{margin:0!important;font-size:var(--sstf-t-body)!important;font-weight:800!important}
.ct-move__freed{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin:0!important;font-weight:800!important}
.ct-actions,.pv-actions{margin:var(--sstf-space-3) 0!important}
/* بلاغ المالك 17/11: كراتين المنتج كانت شرائح دائرية (pill) تقصّ عنوان المكان («طبلية A · عمود 9 · رف 1»).
   صارت كروت السجلّ المركزية في قائمة: لا استدارة تأكل النصّ، والعنوان يلتفّ كاملًا في سطره. */
.inventory-product-cartons>.sstf-record{min-width:0!important}
.inventory-product-cartons>.sstf-record>.sstf-record__sub{white-space:normal!important;overflow-wrap:anywhere!important}
/* R137 item 4: the «الرمز» card (a fixed square QR, never stretched) and the label block the PDF renders */
.label-view{display:grid!important;justify-items:center!important;gap:var(--sstf-space-2)!important;text-align:center!important}
.label-view__qr{width:220px!important;height:220px!important;padding:8px!important;background:#fff!important;border-radius:var(--sstf-r-m,14px)!important;box-shadow:var(--sstf-sh-card)!important}
.label-view__qr svg{display:block!important;width:100%!important;height:100%!important}
.label-view__code{font-size:var(--sstf-t-page)!important;font-weight:900!important;letter-spacing:.04em!important;font-variant-numeric:tabular-nums!important}
.label-view__title{font-weight:800!important}
.label-view__sub{color:var(--sstf-muted,#6b7a90)!important}
.label-view__actions{margin-top:var(--sstf-space-2)!important}
.label-stage{position:fixed!important;left:-10000px!important;top:0!important;width:400px!important;pointer-events:none!important;opacity:1!important}
.label-item{box-sizing:border-box!important;width:378px!important;height:227px!important;overflow:hidden!important;padding:12px!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;gap:12px!important;background:#fff!important;color:#000!important;font-family:'Noto Naskh Arabic','Segoe UI',Tahoma,sans-serif!important;direction:rtl!important}
.label-item__qr{flex:0 0 190px!important;width:190px!important;height:190px!important}
.label-item__qr svg{display:block!important;width:100%!important;height:100%!important}
.label-item__text{flex:1 1 auto!important;min-width:0!important;align-self:stretch!important;overflow:hidden!important;justify-content:flex-start!important;display:flex!important;flex-direction:column!important;gap:6px!important;text-align:right!important}
.label-item__code{font-size:30px!important;font-weight:900!important;direction:ltr!important;text-align:right!important;font-family:Arial,Helvetica,sans-serif!important;letter-spacing:.04em!important;word-break:break-all!important}
.label-item__title{font-size:20px!important;font-weight:800!important;line-height:1.3!important;overflow:hidden!important} /* بلاغ المالك 2/11: بلا -webkit-line-clamp (html2canvas لا يطبّقه فكان الاسم يخرج من الملصق ويُقص في PDF)؛ القياس يصغّر النص حتى يدخل كاملًا */
.label-item__sub{font-size:15px!important;color:#333!important}
.label-item__code,.label-item__title,.label-item__sub{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-all!important;max-width:100%!important} /* بلاغ المالك 2/11: الرمز الطويل كان سطرًا واحدًا لا يلتف فيخرج من الملصق ويُقص في PDF */
.label-item__text>*{flex:0 0 auto!important;min-height:0!important} /* بلاغ المالك 2/11: بلا انكماش — سطور الملصق تبقى بقياسها الحقيقي ليقيسها labels.js ويصغّرها حتى تدخل كاملة */
/* R137 item 4: the warehouse's fixed «مسح», the read flash and the torch button */
.wh-scan-fab{position:fixed!important;inset-inline-start:var(--sstf-space-4)!important;bottom:calc(var(--sstf-space-4) + 72px)!important;z-index:60!important;display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:52px!important;padding:0 18px 0 14px!important;border:0!important;border-radius:999px!important;background:var(--ui-primary,#2b64d9)!important;color:#fff!important;font:inherit!important;font-weight:900!important;box-shadow:0 8px 24px rgba(43,100,217,.35)!important;cursor:pointer!important}
.wh-scan-fab img,.wh-scan-fab svg{width:26px!important;height:26px!important}
@media print{.wh-scan-fab{display:none!important}}
.st-scan-dialog.is-hit .st-scan__video{outline:5px solid #22c55e!important;outline-offset:-5px!important}
.st-scan__tools{display:flex!important;justify-content:flex-end!important;margin:var(--sstf-space-2) 0!important}
.st-scan__tools [data-scan-torch].is-on{background:#f5b50a!important;color:#000!important}
.st-scan__status .sstf-send-button{margin-inline-start:var(--sstf-space-2)!important}
/* R137 item 4: the stocktake on the products page — the grid badges, the count card's blocks, the sticky send bar */
.st-grid .ss-card-name{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.st-grid__card.is-done{opacity:.86!important}
.st-extra{margin-top:var(--sstf-space-3)!important}
.st-card{display:grid!important;gap:var(--sstf-space-3)!important}
.st-block{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-3)!important;border-radius:var(--sstf-r-m,14px)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
.st-block__title{margin:0!important;font-size:var(--sstf-t-body)!important;font-weight:900!important}
.st-ct{display:grid!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid rgba(35,68,103,.08)!important;border-radius:var(--sstf-r-s,10px)!important;background:#fff!important}
.st-ct.is-on{border-color:#22c55e!important;background:#f0fdf4!important}
.st-ct.is-missing{border-color:#ef4444!important;background:#fef2f2!important;opacity:.9!important}
.st-ct__head{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:nowrap!important;min-height:44px!important}
.st-ct__more{flex:0 0 44px!important;width:44px!important;min-height:44px!important;padding:0!important;margin:0!important}
.st-ct__head .st-ct__ok{flex:0 0 auto!important;width:auto!important;min-width:68px!important;min-height:44px!important;padding:0 14px!important;margin:0!important}
.st-ct__head .st-ct__text{flex:1 1 auto!important;min-width:0!important}
.st-ct__head .st-ct__text strong,.st-ct__head .st-ct__text small{display:block!important;overflow-wrap:anywhere!important;white-space:normal!important}
.st-ct-summary{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important}
.st-ct-summary>span{color:var(--sstf-muted,#6b7a90)!important;font-size:var(--sstf-t-small)!important}
.st-ct-summary>.sstf-send-button{margin-inline-start:auto!important;flex:0 0 auto!important;width:auto!important}
.st-ct-list{display:grid!important;gap:var(--sstf-space-2)!important}
.st-loose__sum{margin-inline-start:auto!important;font-variant-numeric:tabular-nums!important;font-size:var(--sstf-t-small)!important;white-space:nowrap!important}
.st-loose__sum.diff-short{color:#b64354!important}.st-loose__sum.diff-over{color:#b7791f!important}
.st-loose.is-error{outline:2px solid #b64354!important;border-radius:var(--sstf-r-s,10px)!important}
.st-ct__text{display:grid!important;min-width:0!important}
.st-ct__text strong{font-weight:900!important;letter-spacing:.03em!important;font-variant-numeric:tabular-nums!important}
.st-ct__text small{color:var(--sstf-muted,#6b7a90)!important;font-size:var(--sstf-t-small)!important}
.st-ct__text{flex:1 1 auto!important}
.st-ct__tools{display:flex!important;gap:var(--sstf-space-2)!important;flex:1 1 100%!important}
.st-ct__tools .sstf-send-button{flex:0 0 auto!important;width:auto!important;min-height:var(--sstf-touch)!important;padding-inline:var(--sstf-space-3)!important;margin:0!important}
.st-ct__ok{min-width:64px!important}
.st-ct.is-on .st-ct__ok{background:#16a34a!important;color:#fff!important}
.st-ct.is-missing .st-ct__miss{background:#ef4444!important;color:#fff!important}
.st-ct__lines{padding-top:var(--sstf-space-2)!important;border-top:1px dashed rgba(35,68,103,.12)!important}
.st-loose{align-items:center!important}
.st-loose .st-size__label small{display:block!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-muted,#6b7a90)!important}
.st-loose__ctl{display:inline-flex!important;align-items:center!important;gap:4px!important}
.st-loose__ctl input{width:72px!important;text-align:center!important;font-weight:900!important;font-size:var(--sstf-t-card)!important}
.st-loose__step{width:44px!important;height:44px!important;border:1px solid rgba(35,68,103,.14)!important;border-radius:12px!important;background:#fff!important;font-size:22px!important;font-weight:900!important;cursor:pointer!important}
.st-totals{display:grid!important;gap:6px!important}
.st-totals__row{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important;font-size:var(--sstf-t-small)!important}
.st-totals__row strong{min-width:40px!important}
.st-totals__row b{margin-inline-start:auto!important;font-variant-numeric:tabular-nums!important}
.st-totals__row.diff-short b{color:#b64354!important}.st-totals__row.diff-over b{color:#b7791f!important}
.st-totals__row.is-error{color:#b64354!important}
.st-supplies{display:grid!important;gap:var(--sstf-space-2)!important}
.st-supply .st-size__label small{display:block!important;color:var(--sstf-muted,#6b7a90)!important;font-size:var(--sstf-t-small)!important}
.st-bar--submit{display:grid!important;gap:4px!important;margin-top:var(--sstf-space-3)!important;padding:var(--sstf-space-2)!important;border-radius:var(--sstf-r-m,14px)!important;background:#fff!important;box-shadow:var(--sstf-sh-card)!important}
.st-bar__why{display:block!important;text-align:center!important;color:var(--sstf-muted,#6b7a90)!important;font-size:var(--sstf-t-small)!important}
/* R137 item 4: the preparation sources under a pick card */
.ss-pick-sources{display:grid!important;gap:6px!important;padding:var(--sstf-space-2) var(--sstf-space-3) var(--sstf-space-3)!important;border-top:1px dashed rgba(35,68,103,.12)!important}
.ss-pick-sources__title{font-size:var(--sstf-t-small)!important;color:var(--sstf-muted,#6b7a90)!important;font-weight:800!important}
.ss-pick-source{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important;font-size:var(--sstf-t-small)!important}
.ss-pick-source>span{font-weight:900!important;min-width:56px!important}
.ss-pick-source>b{font-weight:700!important;flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere!important}
.ss-pick-source.is-short>b{color:#b64354!important}
.ss-pick-source__alt{flex:0 0 auto!important;width:auto!important;min-height:40px!important;padding-inline:var(--sstf-space-3)!important;margin:0!important;font-size:var(--sstf-t-small)!important}
/* R135 ب3-21 (owner 29/10): the portal bottom bar at phone width — five entries share the width exactly, nothing pushed past the edge (Q1: «المزيد» 1px outside) */
@media (max-width:430px){html body.sstf-flow nav.store-bottom-nav,html body nav.store-bottom-nav{width:auto!important;max-width:none!important;padding-inline:3px!important;column-gap:2px!important;grid-auto-columns:minmax(0,1fr)!important;overflow:hidden!important}html body nav.store-bottom-nav>:is(a,button){min-width:0!important}}


/* R138 (owner 30/10): the ledger pages — a manual entry's lines (account · debit · credit · memo), their running totals, the entry's lines table, the home places chips (scroll sideways) */
.gl-journal-line{border:1px solid rgba(35,68,103,.12)!important;border-radius:14px!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;margin-block-end:var(--sstf-space-2)!important}
.gl-journal-totals{display:flex!important;gap:var(--sstf-space-3)!important;flex-wrap:wrap!important;justify-content:flex-end!important;font-weight:800!important;padding:var(--sstf-space-2) 0!important}
.gl-journal-totals b{direction:ltr!important;unicode-bidi:embed!important}
.gl-journal-totals [data-journal-diff] b{color:#b64354!important}
table.gl-lines td,table.gl-lines th{padding:8px 10px!important;vertical-align:top!important}
table.gl-lines td[dir=ltr]{font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
.gl-chart-row.is-inactive{opacity:.55!important}
.finance-places-chips{margin-top:var(--sstf-space-2)!important}
.gl-filters label{min-width:0!important}
/* R140: the invariants badge on the accounting home, and a broken invariant row */
.finance-invariants-badge{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-2)!important;font-weight:700!important;color:var(--sstf-ink)!important;text-decoration:none!important}
.finance-invariants-badge .sstf-icon{width:var(--sstf-icon-lg)!important;height:var(--sstf-icon-lg)!important}
.account-document-row.is-danger{border-color:rgba(182,67,84,.45)!important}


/* R141: the invoice sheet lives in its own isolated document (assets/css/invoice.css, ?sstf_invoice=<token>&sheet=1) — the app shows it in a frame */
.sstf-invoice-frame{display:block!important;width:100%!important;max-width:860px!important;margin:0 auto var(--sstf-space-4)!important;border:0!important;background:transparent!important;min-height:420px}
.sstf-invoice-main{max-width:860px;margin:0 auto;padding:var(--sstf-space-3) var(--sstf-space-3) var(--sstf-space-6)}
.sstf-invoice-tools{margin-bottom:var(--sstf-space-3)}
/* owner 31/10 («ما بدي خلفية الاختيارات أزرق»): the search card's choices are neutral list rows on the central surface; the chosen / active one takes the waiting tint */
body .country-popup .country-option{background:var(--sstf-surface,#fff)!important;background-image:none!important;color:var(--sstf-ink,#17375a)!important;border:1px solid var(--sstf-line,#d6dfe9)!important;box-shadow:none!important;border-radius:var(--sstf-r-s,10px)!important;justify-content:flex-start!important;text-align:start!important;font-weight:600!important;min-height:var(--sstf-touch,44px)!important;margin:0 0 var(--sstf-space-1,6px)!important;padding:var(--sstf-space-2,8px) var(--sstf-space-3,12px)!important;text-shadow:none!important}
body .country-popup .country-option.is-active,body .country-popup .country-option[aria-selected="true"]{background:var(--sstf-tone-waiting-bg,#eef3fb)!important;border-color:var(--sstf-tone-waiting-border,#9db7e4)!important;font-weight:800!important}
body .country-popup .country-list{max-height:min(52vh,420px)!important;overflow:auto!important;overscroll-behavior:contain}
/* owner 31/10: the show/hide eye (44px, 6px from the edge) never sits over the typed password */
:is(body.sstf-flow,.sstf-admin,.sstf-customer,body.ss-supplier-glass,.sstf-admin-central,.accounting-ui) .sstf-password-field>input:not([type="checkbox"]):not(.sstf-field__box *),body .sstf-password-field>input{padding-inline-end:calc(var(--sstf-touch,44px) + var(--sstf-space-3,12px))!important}
body.sstf-invoice-page{color-scheme:light only;background:#eef1f6!important}
}
/* owner 1/11 («أيقونات إعدادات الفاتورة مشوهة»): in the glass layer, which is declared first and therefore owns the icon-field position and the control padding:
   (1) a settings label whose limit line sits above its textarea is two lines tall, so the textarea's icon moves down one small line; (2) an LTR input (phone, email, website)
   inside an RTL icon field keeps its text clear of the icon on ITS right side; (3) on a phone every settings field takes its own row, so no label is cut */
@layer sstf-glass{
 .sstf-admin-central .sstf-form-long .sstf-icon-field:has(>span>.sstf-field-limit):has(>textarea)>.sstf-icon-field__icon{top:calc(var(--sstf-t-small) * 1.4 + 6px + var(--sstf-space-3) + var(--sstf-t-small) * 1.6)!important}
 html[dir=rtl] .sstf-admin-central .sstf-fields>.sstf-icon-field>input[dir=ltr]{padding-inline-start:var(--sstf-space-3)!important;padding-inline-end:calc(var(--sstf-icon-md) + var(--sstf-space-3))!important}
 @media (max-width:600px){.sstf-admin-central .sstf-form-long .sstf-fields>label{grid-column:1/-1!important}}
}
/* owner 1/11 («زر توغل تشغيل»): the central on/off switch for a checkbox marked data-sstf-switch (the settings cards' switch look, usable in any central form). The glass dialog body inside a long form is excluded from the div flattening above, so «إعدادات العرض» scrolls instead of clipping its panel */
@layer sstf-glass{
 .account-check>input[type=checkbox][data-sstf-switch]{appearance:none!important;-webkit-appearance:none!important;position:relative!important;flex:0 0 auto!important;width:46px!important;height:26px!important;margin:0!important;padding:0!important;border:0!important;border-radius:13px!important;background:rgba(120,120,128,.45)!important;box-shadow:none!important;cursor:pointer!important;transition:background .18s ease!important}
 .account-check>input[type=checkbox][data-sstf-switch]::before{content:""!important;position:absolute!important;top:3px!important;inset-inline-start:3px!important;width:20px!important;height:20px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(0,0,0,.35)!important;transition:transform .18s ease!important}
 .account-check>input[type=checkbox][data-sstf-switch]:checked{background:#34c759!important}
 .account-check>input[type=checkbox][data-sstf-switch]:checked::before{transform:translateX(-20px)!important}
 html[dir=ltr] .account-check>input[type=checkbox][data-sstf-switch]:checked::before{transform:translateX(20px)!important}
 .account-check:has(>input[data-sstf-switch]){grid-column:1/-1!important;width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;white-space:nowrap!important}
}
/* owner 1/11 («زر توغل تشغيل»): the central on/off switch for a checkbox marked data-sstf-switch (the settings cards' switch look, usable in any central form). The glass dialog body inside a long form is excluded from the div flattening above, so «إعدادات العرض» scrolls instead of clipping its panel */
@layer sstf-glass{
 .account-check>input[type=checkbox][data-sstf-switch]{appearance:none!important;-webkit-appearance:none!important;position:relative!important;flex:0 0 auto!important;width:46px!important;height:26px!important;margin:0!important;padding:0!important;border:0!important;border-radius:13px!important;background:rgba(120,120,128,.45)!important;box-shadow:none!important;cursor:pointer!important;transition:background .18s ease!important}
 .account-check>input[type=checkbox][data-sstf-switch]::before{content:""!important;position:absolute!important;top:3px!important;inset-inline-start:3px!important;width:20px!important;height:20px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(0,0,0,.35)!important;transition:transform .18s ease!important}
 .account-check>input[type=checkbox][data-sstf-switch]:checked{background:#34c759!important}
 .account-check>input[type=checkbox][data-sstf-switch]:checked::before{transform:translateX(-20px)!important}
 html[dir=ltr] .account-check>input[type=checkbox][data-sstf-switch]:checked::before{transform:translateX(20px)!important}
 .account-check:has(>input[data-sstf-switch]){grid-column:1/-1!important;width:100%!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important;white-space:nowrap!important}
}
/* R142 (owner 1/11/2026) — the storefront's central pieces: the store header (brand + search), the news ticker, the hero banner, the featured row and the listing grid. Design: the owner's 14 screens, built from the central components. */
@layer sstf-glass{
 .sstf-store .app-header--store{display:block!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important}
 .sstf-store .app-header__row--store{display:flex!important;align-items:center!important;gap:var(--sstf-space-3)!important;min-height:var(--sstf-touch)!important}
 .sstf-store .app-header__brand{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;text-decoration:none!important;color:inherit!important;min-width:0!important}
 .sstf-store .app-header__logo{width:40px!important;height:40px!important;border-radius:12px!important;object-fit:cover!important;flex:none!important}
 .sstf-store .app-header__names{display:flex!important;flex-direction:column!important;line-height:1.15!important;min-width:0!important}
 .sstf-store .app-header__names strong{font-size:var(--sstf-t-body)!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .sstf-store .app-header__names small{font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-2,var(--sstf-text-muted))!important;white-space:nowrap!important}
 .sstf-store .app-header__back{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;border-radius:50%!important;color:inherit!important}
 .sstf-store .app-header__search{display:block!important;margin-top:var(--sstf-space-2)!important}
 .sstf-store #app-content{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0 var(--sstf-space-3) var(--sstf-space-4)!important}
 .sstf-store .app-header__search{margin-top:var(--sstf-space-2)!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
 .sstf-store .app-header__menu{display:none!important;margin-inline-start:var(--sstf-space-2)!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;border-radius:50%!important;border:1px solid var(--sstf-line,#dfe5eb)!important;background:#fff!important;color:inherit!important;align-items:center!important;justify-content:center!important;cursor:pointer!important}
 @media (min-width:1024px){.sstf-store .app-header__menu{display:inline-flex!important}.sstf-store:not(.sstf-store--menu) .store-sidebar{display:none!important}.sstf-store:not(.sstf-store--menu) main{margin-inline-start:var(--sstf-space-5)!important;padding-inline-start:0!important}}
 .sstf-store .sstf-store-block{margin-top:var(--sstf-space-3)!important}
 .sstf-ticker{overflow:hidden!important;white-space:nowrap!important;margin:var(--sstf-space-2) 0 0!important;padding:var(--sstf-space-1) 0!important;border-radius:var(--sstf-radius-pill,999px)!important;background:rgba(var(--sstf-domain-rgb,23,74,135),.08)!important;border:1px solid rgba(var(--sstf-domain-rgb,23,74,135),.18)!important;font-size:var(--sstf-t-small)!important;direction:ltr!important}
 .sstf-ticker__track{display:inline-flex!important;align-items:center!important;gap:64px!important;padding-inline-start:16px!important;animation:sstf-ticker var(--sstf-ticker-dur,30s) linear infinite!important;will-change:transform}
 .sstf-ticker:hover .sstf-ticker__track,.sstf-ticker:focus-within .sstf-ticker__track{animation-play-state:paused!important}
 .sstf-ticker__item{direction:rtl!important;unicode-bidi:isolate!important;white-space:nowrap!important;color:var(--sstf-ink)!important}
 .sstf-ticker__item::before{content:"•"!important;color:rgb(var(--sstf-domain-rgb,23,74,135))!important;margin-inline-end:8px!important}
 @keyframes sstf-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
 @media (prefers-reduced-motion:reduce){.sstf-ticker{overflow-x:auto!important}.sstf-ticker__track{animation:none!important}}
 .sstf-hero{position:relative!important;overflow:hidden!important;margin-top:var(--sstf-space-3)!important;min-height:196px!important;border-radius:var(--sstf-radius-card,18px)!important;background:linear-gradient(135deg,rgb(var(--sstf-domain-rgb,23,74,135)),#0b2a52)!important;color:#fff!important;display:flex!important;align-items:flex-end!important}
 .sstf-hero--image{background-image:linear-gradient(to top,rgba(0,0,0,.62),rgba(0,0,0,.08) 60%),var(--sstf-hero-image)!important;background-size:cover!important;background-position:center!important}
 .sstf-hero__text{position:relative!important;padding:var(--sstf-space-4)!important;max-width:100%!important}
 .sstf-hero__text h2{margin:0!important;font-size:var(--sstf-t-page)!important;font-weight:800!important;color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.35)!important}
 .sstf-hero__text p{margin:var(--sstf-space-1) 0 0!important;font-size:var(--sstf-t-small)!important;color:rgba(255,255,255,.92)!important}
 .sstf-hero__button{margin-top:var(--sstf-space-3)!important;background:#fff!important;color:#0b2a52!important;border-color:#fff!important;display:inline-flex!important;width:auto!important;min-height:40px!important}
 .sstf-store .sstf-store-sections{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
 .sstf-store .sstf-store-sections .sstf-section-card{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2) 5px!important;min-height:0!important}
 .sstf-store .sstf-store-sections .sstf-section-card__icon{order:0!important;margin:0!important}
 .sstf-store .sstf-store-sections .sstf-section-card__icon img{width:100%!important;max-width:88px!important;aspect-ratio:1/1!important;height:auto!important;object-fit:contain!important}
 .sstf-store .sstf-store-sections .sstf-section-card small{order:1!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink)!important;text-align:center!important}
 .sstf-store .sstf-store-sections .sstf-section-card strong{order:2!important;color:rgb(var(--sstf-domain-rgb,23,74,135))!important;font-size:10px!important;letter-spacing:-.2px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important;line-height:1.2!important;max-width:100%!important}
 .sstf-store .sstf-store-sections .sstf-section-card small{font-size:11px!important;line-height:1.3!important}
 .sstf-store .sstf-store-sections .sstf-section-card:not(:has(.sstf-section-card__icon))::before{content:""!important;display:block!important;width:100%!important;max-width:88px!important;aspect-ratio:1/1!important;border-radius:14px!important;background:rgba(var(--sstf-domain-rgb,23,74,135),.06)!important}
 .sstf-store .sstf-store-sections{border:0!important;padding-bottom:0!important;margin-bottom:0!important}
 @media (min-width:900px){.sstf-store .sstf-store-sections .sstf-section-card strong{font-size:var(--sstf-t-body)!important}.sstf-store .sstf-store-sections .sstf-section-card small{font-size:var(--sstf-t-small)!important}.sstf-store .sstf-store-sections .sstf-section-card:not(:has(.sstf-section-card__icon))::before{max-width:120px!important}}
 .sstf-store .sstf-store-sections .sstf-section-card__go{display:none!important}
 .sstf-store .sstf-store-tiles{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
 .sstf-store .sstf-store-tiles .sstf-fact{flex-direction:column!important;align-items:center!important;text-align:center!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-2)!important}
 .sstf-store .sstf-store-tiles .sstf-fact__icon img{width:40px!important;height:40px!important;object-fit:contain!important}
 .sstf-store .sstf-store-tiles .sstf-fact__label:empty{display:none!important}
 .sstf-store .sstf-store-tiles .sstf-fact__text{min-width:0!important;width:100%!important}
 .sstf-store .sstf-store-tiles .sstf-fact__value{font-size:11px!important;font-weight:600!important;text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-mask:none!important;mask:none!important;line-height:1.25!important}
 @media (min-width:900px){.sstf-store .sstf-store-tiles .sstf-fact__value{font-size:var(--sstf-t-small)!important}}
 .sstf-store .app-header__account{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;margin-inline-start:auto!important;border-radius:50%!important;color:inherit!important}
 .sstf-store .app-header__account img,.sstf-store .app-header__account svg{width:26px!important;height:26px!important}
 .sstf-store .sstf-store-sections .sstf-section-card small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-mask:none!important;mask:none!important;line-height:1.35!important}
 /* the store's product tile (design screen 2): image on top, then the name / code / chip — the central product card in its tile arrangement */
 .sstf-store .sstf-store-pcard .sstf-pcard__in{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:var(--sstf-space-2)!important}
 .sstf-store .sstf-store-pcard .sstf-pcard__photo{width:100%!important;max-width:none!important;aspect-ratio:1/1!important;height:auto!important;border-radius:14px!important;overflow:hidden!important;background:#f3f5f8!important}
 .sstf-store .sstf-store-pcard .sstf-pcard__img{width:100%!important;height:100%!important;object-fit:cover!important}
 .sstf-store .sstf-store-pcard .sstf-pcard__side{width:100%!important;min-width:0!important}
 .sstf-store .sstf-store-pcard .sstf-pcard__name{display:block!important;white-space:normal!important;font-size:var(--sstf-t-body)!important}
 .sstf-store .sstf-store-row{display:flex!important;gap:var(--sstf-space-3)!important;overflow-x:auto!important;scroll-snap-type:x proximity!important;padding-bottom:var(--sstf-space-2)!important;scrollbar-width:none!important}
 .sstf-store .sstf-store-row>*{flex:0 0 min(46%,220px)!important;scroll-snap-align:start!important}
 .sstf-store .sstf-store-more{font-size:var(--sstf-t-small)!important;color:rgb(var(--sstf-domain-rgb,23,74,135))!important;text-decoration:none!important;white-space:nowrap!important}
 .sstf-store .sstf-store-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin-top:var(--sstf-space-3)!important}
 @media (min-width:900px){.sstf-store .sstf-store-sections .sstf-section-card__icon img{max-width:120px!important}.sstf-store .sstf-store-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sstf-store .sstf-store-row>*{flex-basis:220px!important}.sstf-hero{min-height:260px!important}}
 .sstf-settings-card .sstf-image-preview{display:block!important;margin:var(--sstf-space-1) 0!important;min-height:48px!important}.sstf-settings-card .sstf-image-preview img{max-width:240px!important;max-height:120px!important;border-radius:12px!important;display:block!important}.sstf-settings-card .sstf-image-actions{display:flex!important;gap:var(--sstf-space-2)!important}
}

/* R142: the supplier's product images in «منتجاتي» (central layer: a simple grid of the kept images) */
@layer sstf-glass{
 .sstf-supplier-images{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(110px,1fr))!important;gap:var(--sstf-space-2)!important;grid-column:1/-1!important}
 .sstf-supplier-image{display:block!important;text-align:center!important}
 .sstf-supplier-image img{width:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:12px!important;border:1px solid var(--sstf-line,#dfe5eb)!important}
 .sstf-supplier-image span{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;font-size:var(--sstf-t-small)!important;margin-top:4px!important}
 .sstf-tier-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 @media (max-width:600px){.sstf-tier-row{grid-template-columns:1fr 1fr!important}}
}
@layer sstf-approved{
  /* R142: صف خبر الشريط في الإعدادات — نص الخبر على عرض الصفحة (قرار المالك 2/11)، والإيموجي واللون تحته */
  .sstf-news-rows{display:grid!important;gap:var(--sstf-space-2)!important}
  .sstf-news-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  .sstf-news-row>.sstf-news-text{grid-column:1/-1!important}
  @media(max-width:640px){.sstf-news-row{grid-template-columns:1fr!important}}
}
@layer sstf-approved{
  /* R142: صف قائمة تُضاف بزر + (الأخبار، الهواتف) */
  .sstf-news-row{position:relative!important}
  .sstf-repeat-remove{--control-height:38px!important;min-width:38px!important;padding:0 10px!important;align-self:center!important}
  .sstf-repeat-add{width:100%!important;margin-top:var(--sstf-space-2)!important}
  @media(max-width:640px){.sstf-news-row{grid-template-columns:1fr!important}}
}

/* R148 (أمر المالك 8/11/2026): زرّ اللغة في الهيدر بجانب الحاسبة — «Ar» مع العَلَم داخل إطار يوحي بأنه يُضغط؛ وكرت اللغات الوسط. */
@layer sstf-glass{
 .sstf-lang-button{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:44px!important;width:auto!important;padding:0 10px!important;border:1.5px solid rgba(9,30,57,.18)!important;border-radius:10px!important;background:#fff!important;color:#091e39!important;font-weight:800!important;font-size:14px!important;line-height:1!important;box-shadow:none!important}
 .sstf-lang-button .sstf-lang-menu__flag{display:block;width:18px;height:12px;border-radius:2px}
 .sstf-lang-card__question{display:block;margin:0 0 14px;font-size:19px;font-weight:800;line-height:1.45}
 .sstf-lang-card__mark{font-size:17px;line-height:1}
 .sstf-menu-row.is-selected{outline:2px solid #2f6fed!important;outline-offset:-2px}
 .sstf-lang-card__actions{display:flex;gap:8px;margin-top:18px}
 .sstf-lang-card__actions>button{flex:1}
}

/* R148 (أمر المالك 8/11/2026): بطاقة الرصيد في «فواتيري» — كشف حساب لكل عملة: المتبقي بطلًا، شريط سداد، ثلاثة أعمدة، شريحتان، وسطر الصدق. */
@layer sstf-glass{
 .sstf-balance-card{display:block;margin:0 0 14px;padding:16px;border-radius:14px;background:#f3f7fc;border:1px solid rgba(9,30,57,.08)}
 .sstf-balance-card__head{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:15px}
 .sstf-balance-card__head img{width:26px;height:26px}
 .sstf-balance-card__label{margin:0;font-size:13px;color:#4a5b72}
 .sstf-balance-card__amount{margin:2px 0 10px;font-size:30px;font-weight:800;line-height:1.2;color:#091e39}
 .sstf-balance-card--danger .sstf-balance-card__amount{color:#b4232a}
 .sstf-balance-card--ok .sstf-balance-card__amount{color:#1b7a46}
 .sstf-balance-card__bar{height:8px;border-radius:99px;background:rgba(9,30,57,.1);overflow:hidden}
 .sstf-balance-card__bar>span{display:block;height:100%;border-radius:99px;background:#2f6fed}
 .sstf-balance-card__percent{margin:6px 0 12px;font-size:12px;color:#4a5b72}
 .sstf-balance-card__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 0;border-top:1px solid rgba(9,30,57,.08);border-bottom:1px solid rgba(9,30,57,.08)}
 .sstf-balance-card__grid small{display:block;font-size:12px;color:#4a5b72}
 .sstf-balance-card__grid b{display:block;font-size:15px;font-weight:800;color:#091e39}
 .sstf-balance-card__chips{display:flex;gap:8px;margin-top:12px;overflow-x:auto;scrollbar-width:none}
 .sstf-balance-card__chips::-webkit-scrollbar{display:none}
 .sstf-balance-card__chips>a{flex:0 0 auto;white-space:nowrap}
 .sstf-balance-card__note{margin:12px 0 0;font-size:12px;color:#4a5b72}
}

/* R148 (أمر المالك 9/11/2026): صفّ رابط تسجيل الموردين الموحّد — نصّ الرابط ظاهر، ونسخ ومشاركة بجانبه. */
@layer sstf-glass{
 .sstf-supplier-link{display:block;margin:0 0 14px;padding:14px;border-radius:12px;background:#f3f7fc;border:1px solid rgba(9,30,57,.08)}
 .sstf-supplier-link__title{display:block;margin:0 0 8px;font-size:14px;font-weight:800;color:#091e39}
 .sstf-supplier-link__url{display:block;margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#fff;border:1px solid rgba(9,30,57,.1);font-size:12px;word-break:break-all;color:#2f6fed}
 /* الدستور (المادة النصية): التلميح نصّ لا قيمة — يلتفّ كاملًا ولا يتمرر داخل صندوقه */
 .sstf-supplier-link__hint{display:block;margin:8px 0 0;font-size:12px;color:#4a5b72}
}

/* R149 (أمر المالك 9/11): وميض الإعدادات — الحقول تُرسم خامًا ثم تُحوَّل، فكان الشكل يتبدّل أمام العين.
   تُخفى ريثما تكتمل التهيئة، ومعها احتياط زمني يُظهرها بعد ثانية مهما حدث فلا تختفي شاشة أبدًا. */
@keyframes sstf-fields-show{to{visibility:visible}}
html.sstf-fields-pending :is(.sstf-admin-central,.sstf-settings,form) :is(label.sstf-icon-field,.sstf-fields>label){
  visibility:hidden;animation:sstf-fields-show 0s linear 1s forwards}
/* وحقلٌ يصل بعد التهيئة الأولى (قياس: بين 317 و400 جزء من الثانية) يبقى مخفيًّا حتى يُهيَّأ هو أيضًا.
   مستثنى صراحةً ما لا يُهيَّأ أصلًا: مربعات الاختيار والأزرار الدائرية وما مُنع عنه الأيقنة. */
:is(.sstf-admin-central,.sstf-settings) .sstf-fields>label:not(.sstf-icon-field):not([data-sstf-no-icon]):not(.account-check):not(:has(input[type=checkbox])):not(:has(input[type=radio])){
  visibility:hidden;animation:sstf-fields-show 0s linear 1s forwards}

/* R149 (أمر المالك 9/11): شارة «يلزمه إجراء» — حمراء كشارة الرسائل، على كرت الطلب وكرت المرحلة. */
.sstf-due-badge{display:inline-grid;place-items:center;flex:0 0 auto;min-width:22px;height:22px;padding:0 6px;margin-inline-end:6px;
  border-radius:999px;background:#d92d20;color:#fff;font-size:12px;font-weight:800;line-height:1;box-shadow:0 1px 3px rgba(217,45,32,.35)}
.sstf-section-card .sstf-due-badge,.sstf-stage-card .sstf-due-badge{position:absolute;inset-inline-start:8px;inset-block-start:8px;margin:0}

/* R149 (أمر المالك 9/11): كرت المحادثة على الهاتف — الرسائل وحدها تتمرر، وحقل الكتابة يبقى داخل الكرت فوق الشريط.
   القياس قبل: الحقل يغطيه الشريط بـ165 نقطة وفراغ 285 أسفل الصفحة؛ العلّة أن الشبكات الداخلية بلا min-height:0 فتفيض. */
@media(max-width:700px){
  .sstf-chat-page{margin:8px 0 0!important;padding:0!important;min-height:0!important;overflow:hidden!important}
  /* سطر الحالة («لا رسائل بعد…») كان يسقط تحت حقل الكتابة — مكانه داخل مساحة الرسائل فوقه */
  .sstf-chat .chat-overlay-active>:is(.chat-empty,.chat-status,[data-chat-status]){order:-1!important;margin:0!important;padding:8px 12px!important;color:var(--sstf-muted,#738092)!important;background:transparent!important}
  /* على الهاتف كانت الشبكة تتحوّل إلى تدفّق عادي (block) فيسقط حقل الكتابة خارج الكرت — نعيدها عمودًا واحدًا بارتفاع الكرت */
  .sstf-chat-page>.chat-overlay-layout{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;min-height:0!important;height:100%!important;overflow:hidden!important}
  /* box-sizing: الحشوة كانت تُضاف إلى 100% فيفيض الكرت بمقدارها (536 بدل 504) */
  /* على الهاتف: إمّا قائمة المحادثات وإمّا المحادثة المفتوحة — كانتا تُرسمان معًا في صفٍّ واحد فيفيض الحقل خارج الكرت */
  .sstf-chat.show-threads .chat-overlay-conversation{display:none!important}
  .sstf-chat:not(.show-threads) .chat-overlay-threads{display:none!important}
  /* الارتفاع يضبطه القياس في central-system.js (chatHeight) — لا !important هنا لئلا يغلب القاعدة القياسَ */
  .sstf-chat .chat-overlay-conversation{box-sizing:border-box!important;min-height:0!important;overflow:hidden!important}
  .sstf-chat .chat-overlay-active{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;min-height:0!important;height:100%!important;overflow:hidden!important}
  .sstf-chat .chat-overlay-conversation[style*=height]{height:auto}
  .sstf-chat .chat-overlay-messages{min-height:0!important;overflow:auto!important}
  .sstf-chat .chat-overlay-form{position:sticky;inset-block-end:0;background:#fff}
  .sstf-chat .chat-compose textarea{max-height:76px!important}
  /* الفراغ أعلى الكرت كان 48 نقطة من حشوة التخطيط وهوامش المحادثة — يُزال، فتبدأ المحادثة من أعلى الكرت */
  .sstf-chat-page>.chat-overlay-layout{padding:0!important;gap:0!important}
  .sstf-chat .chat-overlay-conversation{margin:0!important;padding:0!important}
  .sstf-chat .chat-overlay-active{padding:0!important}
  /* رأس المحادثة سطر واحد مضغوط، والاسم يلتفّ ولا يُقصّ */
  .sstf-chat .chat-overlay-titlebar{min-height:48px!important;padding:6px 10px!important}
  /* صفّ السياقات في حقل الكتابة: تمرير أفقي بسطر واحد (قاعدة المالك) لا ارتفاع يأكل الكرت */
  .sstf-chat .chat-overlay-form .chat-context-chips,.sstf-chat .chat-overlay-form .chat-contexts{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}
  .sstf-chat .chat-overlay-form .chat-context-chips>*,.sstf-chat .chat-overlay-form .chat-contexts>*{flex:0 0 auto!important}

}

/* R149: نصوص المحادثة في طبقة sstf-glass لأنها أسبق الطبقات — والمهمّ في طبقة أسبق يتقدّم،
   وطبقة sstf-typography تفرض nowrap+overflow على strong فكان اسم المحادثة يُقصّ («خدمة ا»). */
@layer sstf-glass{
 @media(max-width:700px){
  .sstf-chat .chat-overlay-titlebar strong,.sstf-chat .chat-overlay-thread>strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important}
  .sstf-chat .chat-overlay-titlebar{display:flex!important;align-items:center!important;gap:8px!important}
  .sstf-chat .chat-back-threads{flex:0 0 auto!important;width:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;padding:0!important;display:grid!important;place-items:center!important}
  .sstf-chat .chat-thread-lead{flex:0 0 auto!important}
  .sstf-chat .chat-overlay-titlebar strong{flex:1 1 auto!important;min-width:0!important}
 }
}

/* R149 (أمر المالك 9/11): الفراغ المزعج أسفل الصفحة — كان الشريط السفلي محجوزًا مرتين:
   main بـcalc(--ui-nav-offset + 24) = 106 نقطة، والجسم بـ82 نقطة أخرى، لشريط ارتفاعه 88.
   يكفي حجز الجسم؛ فيُترك لـmain هامش صغير. (قياس قبل: 2054 صفحة لمحتوى ينتهي عند 1972). */
@layer sstf-glass{@media(max-width:700px){
  body.sstf-flow main{padding-bottom:12px!important}
}}/* داخل أسبق الطبقات: المهمّ في طبقة أسبق يتقدّم، وقاعدة main الأصلية مهمّة داخل طبقة */

/* R196 (أمر المالك 20/11): الشريط الجانبي واحدٌ لكل الشاشات بقشرة ComponentRenderer::sideRail — في وسط الشاشة على كل عرض
   (كان ينزل أسفل الهاتف)، بزرّ طيٍّ وفتح بدل مقبض السحب (R180)، وبمقاسات شريط المتجر نفسها: أيقونة 46×46 وفجوة 8. */
@layer sstf-glass{
 /* على يمين الشاشة دائمًا كشريط التواصل في المتجر (right الفيزيائي لا inset-inline-end، فالعربية تقلبه يسارًا) */
 .sstf-side-rail{position:fixed;right:0;left:auto;inset-block-start:50%;bottom:auto;transform:translateY(-50%);z-index:120;
   display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 4px;border-radius:12px 0 0 12px;background:#fff;
   box-shadow:0 6px 22px rgba(7,28,56,.25)}
 .sstf-side-rail__list{display:flex;flex-direction:column;align-items:center;gap:8px}
 .sstf-side-rail:not(.is-open) .sstf-side-rail__list{display:none}
 .sstf-side-rail__toggle{display:grid!important;place-items:center!important;width:30px!important;min-width:30px!important;height:30px!important;
   padding:0!important;flex:none!important;border:1px solid #d8e2f0!important;border-radius:999px!important;background:#f4f8ff!important;
   color:#0b63ce!important;box-shadow:none!important;cursor:pointer}
 .sstf-side-rail__toggle>svg{width:17px!important;height:17px!important;transition:transform .18s ease}
 .sstf-side-rail.is-open .sstf-side-rail__toggle>svg{transform:rotate(180deg)}
 .sstf-side-rail .sstf-support-rail__item{display:grid!important;place-items:center!important;width:46px!important;min-width:46px!important;height:46px!important;
   padding:4px!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important}
 .sstf-side-rail .sstf-support-rail__item :is(img,svg){width:28px!important;height:28px!important;object-fit:contain}
 .sstf-side-rail .sstf-support-rail__item:hover{background:#edf5ff!important}
 .sstf-side-rail .sstf-support-rail__item span:not(.sr-only){display:none!important}
 /* زرّ المساعد يأتي من مضيف المساعد بتنسيقه، فنُلبسه ثوب الشريط نفسه ليظهر كأيقونة مثل أخويه */
 .sstf-side-rail .sstf-assistant-bar-item{width:46px!important;min-width:46px!important;height:46px!important;padding:4px!important;
   border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;display:grid!important;place-items:center!important}
 .sstf-side-rail .sstf-assistant-bar-item :is(img,svg){width:28px!important;height:28px!important}
 .sstf-side-rail .sstf-assistant-bar-item span:not(.sr-only){display:none!important}
 @media print{.sstf-side-rail{display:none}}
}
/* R196: زرّ الإغلاق في الرأس — علامة الإغلاق المركزية بإطارٍ ظاهر ومساحة لمسٍ كاملة (كان حرفًا بإطارٍ أبيض على الزجاج فلم يُرَ) */
@layer sstf-glass{
 html body .app-header--glass .app-close{border:1px solid rgba(11,99,206,.45)!important;background:#fff!important;
   box-shadow:0 2px 8px rgba(7,28,56,.18)!important}
 html body .app-header--glass .app-close>img{width:24px!important;height:24px!important;object-fit:contain!important}
}

/* R149 (أمر المالك 9/11): تصوير بطاقة المورد — إطار بحجم الكرت داخل الكاميرا، وما حوله معتم. */
@layer sstf-glass{
 .sstf-supplier-card-field{display:grid;gap:8px;margin:10px 0;padding:12px;border:1px dashed rgba(9,30,57,.2);border-radius:12px;background:#f8fbff}
 .sstf-supplier-card-field>strong{font-size:14px;color:#17314f}
 .sstf-supplier-card-field>button{width:100%;justify-content:center}
 .sstf-supplier-card-field>img{width:100%;max-width:280px;border-radius:10px;border:1px solid rgba(9,30,57,.12)}
 dialog.sstf-card-shot{width:min(560px,96vw);padding:12px;border:0;border-radius:16px;background:#0b1522;color:#fff}
 dialog.sstf-card-shot::backdrop{background:rgba(5,12,22,.82)}
 .sstf-card-shot__stage{position:relative;display:grid;place-items:center;background:#000;border-radius:12px;overflow:hidden}
 .sstf-card-shot__stage>video{width:100%;max-height:60vh;object-fit:cover;display:block}
 .sstf-card-shot__frame{position:absolute;width:86%;border:2px solid #fff;border-radius:10px;box-shadow:0 0 0 9999px rgba(0,0,0,.45);pointer-events:none}
 .sstf-card-shot__hint{margin:10px 0 6px;text-align:center;font-size:13px;color:#dbe6f5}
 .sstf-card-shot__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
}

@layer sstf-glass{
  /* R149 (أمر المالك 9/11 مساءً): رسالة الرفض داخل النموذج نفسه — حمراء واضحة فوق حقوله */
  .sstf-form-error{margin:0 0 10px!important;padding:10px 12px!important;border-radius:10px!important;
    border:1px solid #f0c2bd!important;background:#fdecea!important;color:#9b241a!important;
    font-size:13px!important;font-weight:700!important;line-height:1.45!important;white-space:normal!important}
}

@layer sstf-glass{
  /* R150 (أمر المالك 9/11 مساءً): صور بلا نوع في شاشة الموظف — صفّ يتمرر أفقيًا، كل صورة بكودها واسم ملفها */
  .sstf-pending-photos{margin:10px 0!important;padding:10px!important;border:1px solid #f0c2bd!important;border-radius:12px!important;background:#fff6f5!important}
  .sstf-pending-photos h3{margin:0 0 8px!important;font-size:14px!important;font-weight:800!important;color:#9b241a!important}
  .sstf-pending-photos__row{display:flex!important;gap:10px!important;overflow-x:auto!important;scrollbar-width:none!important;padding-bottom:4px!important}
  .sstf-pending-photos figure{flex:0 0 auto!important;margin:0!important;width:110px!important;text-align:center!important}
  .sstf-pending-photos img{width:96px!important;height:96px!important;object-fit:cover!important;border-radius:10px!important;background:#fff!important}
  .sstf-pending-photos figcaption{font-size:12px!important;line-height:1.35!important;color:#6b3b36!important;word-break:break-all!important}
}

@layer sstf-glass{
  /* R150 (تصحيح أمر المالك): سطر الرفض داخل النموذج/الكرت نفسه — يقرأه المستخدم ويغلقه بنفسه */
  .sstf-form-error{display:flex!important;align-items:flex-start!important;gap:8px!important;
    margin:0 0 10px!important;padding:10px 12px!important;border-radius:10px!important;
    border:1px solid #f0c2bd!important;background:#fdecea!important;color:#9b241a!important;
    font-size:13px!important;font-weight:700!important;line-height:1.45!important;white-space:normal!important}
  .sstf-form-error>span{flex:1 1 auto!important}
  .sstf-form-error__close{flex:0 0 auto!important;min-width:28px!important;min-height:28px!important;padding:0!important;
    border:0!important;border-radius:8px!important;background:transparent!important;color:#9b241a!important;font-weight:800!important}
}


@layer sstf-glass{
  /* R152 (تقرير الفاحص 10/11): حقل السعر كان ينسحق إلى 24 بكسل وتغطيه الكمية 100% فلا يُضغط —
     كل عنصر في الصف ثابت العرض لا ينكمش، والصف يتمرر أفقيًا. */
  .ss-supplier-inline{display:flex!important;align-items:flex-end!important;gap:8px!important;margin-top:8px!important;
    flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;padding-bottom:2px!important}
  .ss-supplier-inline::-webkit-scrollbar{display:none!important}
  .ss-supplier-inline>label{flex:0 0 auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:3px!important;margin:0!important;min-width:0!important;font-size:11px!important;font-weight:800!important;color:#51607a!important;white-space:nowrap!important}
  html body .ss-supplier-inline input.ss-supplier-inline__price{flex:0 0 auto!important;width:104px!important;min-height:44px!important;padding:6px 10px!important;
    border-radius:10px!important;border:1px solid rgba(9,30,57,.18)!important;background:#fff!important;
    font-size:15px!important;font-weight:700!important;text-align:center!important;direction:ltr!important}
  .ss-supplier-inline__qtywrap{align-items:center!important}
  html body .ss-supplier-inline input.ss-supplier-inline__qty{flex:0 0 auto!important;width:60px!important;min-height:44px!important;padding:4px 6px!important;
    border-radius:10px!important;border:1px solid rgba(9,30,57,.18)!important;background:#fff!important;
    font-size:14px!important;font-weight:700!important;text-align:center!important;direction:ltr!important}
  html body .ss-supplier-inline input:focus{outline:2px solid #2f6fed!important;outline-offset:1px!important}
}

/* R152 (تقرير الفاحص 10/11): قاعدة عرض الحقول 100% المهمّة غير المطبّقة في طبقة تغلب المطبّق في الطبقات،
   فحقل السعر كان يملأ الصف وتغطيه الكمية. هذه القواعد خارج الطبقات عمدًا ليعمل عرض الحقلين. */
html body .ss-supplier-inline{display:flex!important;align-items:flex-end!important;gap:8px!important;
  flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
html body .ss-supplier-inline>label{flex:0 0 auto!important;width:auto!important;display:flex!important;
  flex-direction:column!important;align-items:flex-start!important;gap:3px!important;margin:0!important}
html body .ss-supplier-inline input.ss-supplier-inline__price{width:104px!important;max-width:104px!important;flex:0 0 auto!important}
html body .ss-supplier-inline input.ss-supplier-inline__qty{width:62px!important;max-width:62px!important;flex:0 0 auto!important}

/* R152: القائمة كانت تعمل أصلًا (قياس الفاحص 224×152) وقاعدتي السابقة كسرتها لأن العنصر position:fixed
   و«bottom:100%» عليه يعني ارتفاع الشاشة لا ارتفاع الزر. أُزيلت، وبقي منع القصّ وحده. */
html body .sstf-card-actions,html body .sstf-card-actions__row,html body .order-actions.task-bar{overflow:visible!important}
@layer sstf-glass{
  /* R152 (تقرير الفاحص 10/11): صفّ أرقام كرت المنتج كان يفيض 32 بكسل (scrollWidth 235 مقابل 203)
     لأن أعمدته في طبقة sstf-approved هي minmax(max-content,1fr) مع overflow-x:auto، فيبدو الكرت
     مضغوطًا ومقتطَعًا على الهاتف. والمهمّ في الطبقة الأسبق يغلب — فهنا لا خارج الطبقات. */
  /* R164 (قرار المالك 11/11): فيض R152 كان عَرَضًا لا سببًا — الصفّ كان محبوسًا في العمود (158 بكسل) بينما الكرت 268.
     صار الصفّ ابن الكرت (ss-product-components.js)، والأربع تحتاج 248 بكسل بأسوأ الأرقام، فتتسع من 360 بكسل فصاعدًا.
     وتحت 340 بكسل (هواتف صغيرة قديمة) يتمرّر الصفّ أفقيًا — قاعدة صفوف الشرائح — فلا يلتفّ ولا يُقصّ حرف. */
  @media(max-width:480px){
    .sstf-pcard__facts{grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;
      grid-template-columns:none!important;overflow-x:auto!important;overflow-y:visible!important;
      scrollbar-width:none!important;-webkit-overflow-scrolling:touch;row-gap:6px!important;column-gap:6px!important}
    .sstf-pcard__facts::-webkit-scrollbar{display:none!important}
    .sstf-pcard__facts>*{min-width:0!important}
    .sstf-pcard__facts :is(strong,small,span,b,bdi,div){white-space:normal!important;overflow:visible!important;
      overflow-wrap:anywhere!important;text-overflow:clip!important}
    /* R164: اسم اللوحة سطر واحد — «سعر المورد» يحتاج 51 بكسل عند 11px والمتاح 54 على هاتف 360.
       وتحت 340 بكسل لا يكفيه أي حجم مقروء (المتاح 44)، فيُسمح له وحده هناك بسطرين بدل القصّ. */
    .sstf-pcard__fact>small{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
    .sstf-pcard__in{overflow-x:hidden!important}
    .sstf-pcard__side{min-width:0!important;overflow:hidden!important}
    /* زرّا «i» و«⋮» يحملان نصًّا أطول من مربّعهما فيفيض الكرت 50 بكسل — يُقصّ بصريًا والنصّ يبقى لقارئ الشاشة */
    .sstf-pcard__info,.sstf-pcard__menu{overflow:hidden!important}
  }
  @media(max-width:339px){.sstf-pcard__fact>small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}
}
@layer sstf-glass{
  /* R152 (بلاغ المالك «الثلاث نقاط لا تعمل»): القائمة position:fixed بلا إرساء، فتُرسم عند 1115 بكسل
     والشاشة 844 — أي خارج المرئي تمامًا. تُرسى الآن فوق شريط الإجراء داخل الشاشة. */
  details.row-actions[open]>.ss-row-action-menu[role=menu]{position:fixed!important;
    top:auto!important;bottom:calc(var(--sstf-card-actions-h,72px) + 24px)!important;
    inset-inline-start:12px!important;inset-inline-end:12px!important;left:12px!important;right:12px!important;
    width:auto!important;max-width:min(340px,92vw)!important;margin-inline:auto!important;
    max-height:60vh!important;overflow-y:auto!important;
    box-shadow:0 16px 36px rgba(9,30,57,.26)!important}
}
@layer sstf-glass{
  /* R152 (بلاغ المالك 10/11 بالصورة): كرت «إجمالي التكلفة» يظهر عنده في عمود يسار والمنتجات في عمود يمين.
     لم يتولّد المشهد عندي على ستة عروض، فأفرض العمود الواحد فرضًا على كل حاويات مراجعة المورد
     حتى 1024 بكسل — فلا يبقى احتمال لعمودين على أي جهاز. */
  @media(max-width:1024px){
    .supplier-review-primary,#supplier-review-form,.review-form,.ss-staff-supplier-grid,
    .supplier-summary,.work-panel-supplier,#work-content.work-panel-supplier{
      grid-template-columns:1fr!important;display:block!important}
    .ss-staff-supplier-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
    .sstf-cost-card,.sstf-notes-card{width:auto!important;max-width:none!important;margin-inline:0!important;float:none!important}
  }
}
@layer sstf-glass{
  /* R152: مربّع «إعادة هذا المنتج للمورد» على كرت المنتج — صفّ واضح أسفل الكرت */
  .ss-pcard-return{display:flex!important;align-items:center!important;gap:8px!important;
    margin:8px 10px 10px!important;padding:8px 10px!important;border-radius:10px!important;
    border:1px solid rgba(217,45,32,.22)!important;background:#fff6f5!important;
    font-size:13px!important;font-weight:800!important;color:#9b241a!important;cursor:pointer!important}
  .ss-pcard-return input{width:20px!important;height:20px!important;accent-color:#d92d20!important;flex:0 0 auto!important}
}

/* R165 (قرار المالك 12/11): مكوّن تحويل العملة في طبقة المكوّنات المركزية (sstf-glass) — الطبقة الأولى، فيعلو على قواعد الأزرار القديمة */
@layer sstf-glass{
  /* R165 (قرار المالك 12/11): تحويل العملة بشكل «من ← إلى» وزرّ عكس بينهما، وتحته سعر اليوم بزرّ يملأه؛ والسعر يبقى يدويًا متى كتبه الموظف */
  .sstf-fxrate{display:grid!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  .sstf-fxrate__row{display:flex!important;align-items:end!important;gap:var(--sstf-space-2)!important;min-width:0!important}
  .sstf-fxrate__side{flex:1 1 0!important;display:grid!important;gap:var(--sstf-space-1)!important;min-width:0!important}
  .sstf-fxrate__side>small{color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  .sstf-fxrate__side>strong{display:flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-choice)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface-segmented)!important}
  .sstf-fxrate__side>.sstf-icon-field{min-width:0!important}
  .sstf-fxrate__cur{align-self:center!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  .sstf-fxrate__swap{flex:0 0 auto!important;display:grid!important;place-items:center!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;padding:0!important;border-radius:var(--sstf-radius-pill)!important}
  .sstf-fxrate__swap-icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .sstf-fxrate__day{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:var(--sstf-space-2)!important;margin:0!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
  .sstf-fxrate__day[hidden]{display:none!important}
  .sstf-fxrate__day>span{flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
  .sstf-fxrate__use{flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important}
  .sstf-fxtable{min-width:0!important;margin-block-start:var(--sstf-space-2)!important}
  .sstf-fxtable[hidden]{display:none!important}
  .sstf-fxtable table{width:100%!important;border-collapse:collapse!important;font-size:var(--sstf-t-small)!important}
  .sstf-fxtable :is(th,td){padding:var(--sstf-space-1) var(--sstf-space-2)!important;border-block-end:1px solid var(--sstf-line-card)!important;text-align:start!important;font-weight:600!important;white-space:nowrap!important}
  .sstf-fxtable td{color:var(--sstf-ink)!important;font-weight:800!important}
  .sstf-fxtable__src{display:block!important;margin-block-start:var(--sstf-space-1)!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
}

/* R169 (قرار المالك 14/11): حافظ المسوّدة — سطر الاستعادة، وشارة «غير محفوظ» على الكرت، وعدّاد زرّ الحفظ.
   الشارة والعدّاد نصّهما من data-* فيترجمان مع الشاشة، كما في علامة «تم الحفظ ✓» (R165). */
@layer sstf-glass{
  .sstf-draft-note{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:wrap!important;
    margin:0 0 var(--sstf-space-2)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;
    border:1px solid var(--sstf-tone-waiting-line,#e6c98a)!important;border-radius:var(--sstf-r-m)!important;
    background:var(--sstf-tone-waiting-bg,#fff8e8)!important;color:var(--sstf-tone-waiting-strong,#8a6400)!important;
    font-size:var(--sstf-t-small)!important;font-weight:700!important}
  .sstf-draft-note>span{flex:1 1 auto!important;min-width:0!important}
  .sstf-draft-note>button{flex:0 0 auto!important;width:auto!important;max-width:none!important}
  [data-sstf-unsaved]{position:relative!important}
  [data-sstf-unsaved]::after{content:attr(data-sstf-unsaved);position:absolute;inset-block-start:var(--sstf-space-1);inset-inline-start:var(--sstf-space-1);
    z-index:3;padding:1px var(--sstf-space-1);border-radius:var(--sstf-r-s);
    background:var(--sstf-tone-waiting-strong,#8a6400);color:#fff;font-size:var(--sstf-t-micro,11px);font-weight:800;line-height:1.5;pointer-events:none}
  [data-sstf-dirty-count]::after{content:attr(data-sstf-dirty-count)}
}

/* R169 (قرار المالك 14/11): شارة رقم المستلم في زاوية صورة كرت المنتج — بلا أي أثر على تخطيط الكرت (مطلقة
   داخل إطار الصورة)، ومجموعة كل مستلم يقدّمها شريط القسم المركزي «مستلم N · X منتجات». */
@layer sstf-glass{
  .sstf-pcard__photo{position:relative!important}
  /* R171 (لقطة المالك 15/11: «علامة المعلومات مشوّهة وخلفها شيء أسود»): الشارة كانت في زاوية الصورة نفسها
   التي يجلس فيها زرّ (i) — قياس: كلاهما عند 4,4 — فظهرت تحته كقرص داكن. فنزلت إلى أسفل الصورة حيث لا شيء. */
.sstf-pcard__rec{position:absolute!important;inset-block-end:var(--sstf-space-1)!important;inset-block-start:auto!important;inset-inline-start:var(--sstf-space-1)!important;
    z-index:2!important;min-width:calc(var(--sstf-space-5))!important;padding:0 var(--sstf-space-1)!important;
    border-radius:var(--sstf-radius-pill,999px)!important;background:var(--sstf-ink-900,#102a43)!important;color:#fff!important;
    font-size:var(--sstf-t-micro,11px)!important;font-weight:800!important;line-height:1.7!important;text-align:center!important;
    letter-spacing:0!important;pointer-events:none!important;box-shadow:0 1px 3px rgba(0,0,0,.25)!important}
  .sstf-banner.pricing-recipient-group{margin-block:var(--sstf-space-3) var(--sstf-space-1)!important}
}

/* R169 (لقطة المالك 15/11: «اسم المنتج داخل تحت الصورة» على شاشة 360 بكسل): صورة الكرت كانت تتجاوز عمودها.
   القياس: عمود الصورة 83.75 بكسل على 360، والصورة 120 — لأن أدنى ارتفاع لها (مساحة اللمس ×2.5 = 110) يدفع
   ضلعها المربّع فوق عرض العمود، فتزحف 28 بكسل فوق عمود الاسم. فصار أدنى ارتفاعها لا يتجاوز عرض عمودها،
   وعرضها لا يتجاوز العمود أبدًا: الشاشات العريضة كما هي، والضيّقة ينصلح فيها الاسم. */
@layer sstf-glass{
  .sstf-pcard__photo{min-height:min(calc(var(--sstf-touch) * 2.5),33.5cqw)!important;max-width:100%!important;overflow:hidden!important}
}

/* R171 (لقطة المالك 15/11: «ليش هيك الثلاث نقاط مشوّهة»): قياس داخل الزرّ (40 بكسل): النقاط على بُعد 1 بكسل
   من بدايته و26 من نهايته — ملتصقة بالحافّة. السبب أن محاذاة محتواه محسوبة «start» رغم قواعد التوسيط،
   لأن أسبقية !important في هذا المشروع للطبقة الأسبق (sstf-glass)؛ فوُضع التوسيط فيها صراحةً وفي آخرها. */
@layer sstf-glass{
  .sstf-pcard__in>.sstf-pcard__side>:is(.sstf-pcard__menu,.ss-card-menu,.inventory-quick-actions),
  .sstf-pcard__photo>:is(.ss-product-info,.sstf-pcard__info){
    justify-content:center!important;justify-items:center!important;align-content:center!important;align-items:center!important;
    text-align:center!important;text-indent:0!important;line-height:1!important}
}

/* R179: عناصر داخل المعالج المركزي — ملخّص المراجعة، معاينة «ما يراه العميل»، صور المنتج */
@layer sstf-glass{
 .sstf-fsteps__need{margin:var(--sstf-space-2) 0 0!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-bad-bg,rgba(255,59,48,.12))!important;color:var(--sstf-tone-bad-fg,#b3261e)!important;font-size:var(--sstf-t-small)!important}
 .sstf-fsteps__need[hidden]{display:none!important}
 .sstf-wizard-hidden-submit{display:none!important}
 /* شاشة المراجعة: ملخّص صفّ لكل بيان مع «تعديل» يعود لخطوته */
 .sstf-fsum{display:grid!important;gap:var(--sstf-space-1)!important;margin:0!important;padding:0!important;list-style:none!important}
 .sstf-fsum__row{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;padding:var(--sstf-space-2) var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
 .sstf-fsum__label{flex:0 0 auto!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
 .sstf-fsum__value{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 .sstf-fsum__edit{flex:0 0 auto!important;border:0!important;background:transparent!important;color:var(--sstf-accent,#0a84ff)!important;font:inherit!important;cursor:pointer!important;padding:var(--sstf-space-1) var(--sstf-space-2)!important}
 /* معاينة ما يراه العميل (الخصائص وشرائح الأسعار) */
 .sstf-eye{display:grid!important;gap:var(--sstf-space-1)!important;margin:var(--sstf-space-2) 0 0!important;padding:var(--sstf-space-3)!important;border:1px dashed var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-neutral-stage-bg)!important;font-size:var(--sstf-t-small)!important}
 .sstf-eye__head{margin:0!important;color:var(--sstf-ink-muted)!important}
 /* R179 (دستور 15/11): عنوان الكتلة — المالك أمر بتوضيح «الخصائص» و«الشرائح» بعنوانهما وشرحهما */
 .sstf-eye__title{margin:0!important;font-weight:800!important;color:var(--sstf-ink)!important}
 .sstf-eye__row{margin:0!important}
 /* صور المنتج: معاينة مربّعة، والأولى هي الرئيسية */
 .sstf-pimg{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(92px,1fr))!important;gap:var(--sstf-space-2)!important;margin:var(--sstf-space-2) 0 0!important}
 .sstf-pimg__cell{position:relative!important;aspect-ratio:1/1!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;overflow:hidden!important;background:var(--sstf-surface)!important}
 .sstf-pimg__cell>img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
 .sstf-pimg__main{position:absolute!important;inset-inline-start:4px!important;top:4px!important;padding:2px 6px!important;border-radius:var(--sstf-radius-pill)!important;background:#34c759!important;color:#fff!important;font-size:11px!important}
 .sstf-pimg__pick{position:absolute!important;inset-inline-end:4px!important;bottom:4px!important;display:flex!important;align-items:center!important;gap:4px!important;padding:2px 6px!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;font-size:11px!important}
}

@layer sstf-glass{
 /* R179: معرض صور المنتج تحت الصورة الكبيرة — والمختارة رئيسيةً لها إطارها */
 .sstf-pimg__cell.is-main{outline:2px solid #34c759!important;outline-offset:-2px!important}
 .sstf-pimg__cell>img{cursor:pointer!important}
 /* R180 (بلاغ المالك 15/11): الإطار الفارغ «+ صورة» في آخر المعرض، وزرّ حذف على كل صورة أضافها */
 .sstf-pimg__add{display:grid!important;place-items:center!important;gap:2px!important;padding:0!important;border-style:dashed!important;
   color:var(--sstf-ink-soft,#637286)!important;background:var(--sstf-surface-soft,#f8fbff)!important;cursor:pointer!important}
 .sstf-pimg__add>span{font-size:26px!important;line-height:1!important;font-weight:700!important}
 .sstf-pimg__add>small{font-size:11px!important}
 .sstf-pimg__del{position:absolute!important;inset-inline-end:4px!important;top:4px!important;z-index:2!important;display:grid!important;place-items:center!important;
   width:24px!important;height:24px!important;min-width:24px!important;padding:0!important;border:0!important;border-radius:50%!important;
   background:rgba(9,30,57,.62)!important;color:#fff!important;font-size:16px!important;line-height:1!important;cursor:pointer!important}
 .sstf-pimg__pick--main{inset-inline-end:auto!important;inset-inline-start:4px!important}
 .upload-box .image-preview[hidden]{display:none!important}
}
@layer sstf-glass{
 /* R179: شبكة خيارات من عمودين — المجموعات وأبناؤها في معالج منتج المتجر (c3 القائمة ثلاثة أعمدة) */
 .sstf-flow .choices.c2,:where(.sstf-flow,.sstf-admin) .choices.c2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sstf-store-wizard .choice{min-height:92px!important;padding:var(--sstf-space-3) var(--sstf-space-2)!important}
 .sstf-store-wizard .choice .ic{width:34px!important;height:34px!important}
 .sstf-store-wizard .choice .ic img,.sstf-store-wizard .choice .ic .sstf-icon{width:28px!important;height:28px!important}
}
@layer sstf-glass{
 .sstf-store-wizard .choice b{white-space:normal!important;line-height:1.25!important;overflow-wrap:anywhere!important}
}

/* R179 (أمر المالك 15/11): خانة الصورة المركزية — بنر وأفاتار، وقلم في الزاوية للتغيير والحذف */
@layer sstf-glass{
 .sstf-imgslot{position:relative!important;display:block!important;margin:0 0 var(--sstf-space-3)!important}
 .sstf-imgslot__file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
 .sstf-imgslot__face{display:grid!important;place-items:center!important;overflow:hidden!important;cursor:pointer!important;border:1.5px dashed var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-tone-neutral-stage-bg)!important}
 .sstf-imgslot--banner .sstf-imgslot__face{aspect-ratio:3/1!important;width:100%!important}
 .sstf-imgslot--avatar .sstf-imgslot__face{width:108px!important;height:108px!important;border-radius:50%!important}
 .sstf-imgslot--square .sstf-imgslot__face{aspect-ratio:1/1!important;width:100%!important}
 /* R180 (أمر المالك 15/11): إطار بحجم كرت العمل — وجه الكرت الأول فوق والثاني تحته، كلٌّ في إطاره */
 .sstf-imgslot--card .sstf-imgslot__face{aspect-ratio:85.6/53.98!important;width:100%!important;max-width:340px!important}
 .sstf-card-faces{display:grid!important;gap:var(--sstf-space-3)!important;justify-items:center!important;margin:var(--sstf-space-2) 0!important}
 /* R180 (بلاغ المالك 15/11): الموظف يراجع المنتج بمعاينة المتجر نفسها — إطارها بعرض الشاشة وتمريرها داخلها */
 .sstf-store-preview-frame{display:block!important;width:100%!important;height:min(72vh,760px)!important;margin:var(--sstf-space-2) 0!important;
   border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:#fff!important}
 .sstf-imgslot__img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
 .sstf-imgslot__img[hidden]{display:none!important}
 .sstf-imgslot__empty{display:grid!important;place-items:center!important;gap:var(--sstf-space-1)!important;padding:var(--sstf-space-3)!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important;text-align:center!important}
 .sstf-imgslot__empty[hidden]{display:none!important}
 .sstf-imgslot__icon{width:30px!important;height:30px!important}
 .sstf-imgslot__tools{position:absolute!important;inset-inline-end:8px!important;top:8px!important;z-index:2!important}
 .sstf-imgslot--avatar .sstf-imgslot__tools{inset-inline-end:-4px!important;top:auto!important;bottom:-4px!important}
 .sstf-imgslot__tools[hidden]{display:none!important}
 .sstf-imgslot__pen{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;padding:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:50%!important;background:var(--sstf-surface)!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important;cursor:pointer!important}
 .sstf-imgslot__pen-icon{width:20px!important;height:20px!important}
 .sstf-imgslot__menu{position:absolute!important;inset-inline-end:0!important;top:42px!important;display:grid!important;min-width:150px!important;padding:var(--sstf-space-1)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;box-shadow:0 8px 24px rgba(0,0,0,.18)!important;z-index:3!important}
 .sstf-imgslot__menu[hidden]{display:none!important}
 .sstf-imgslot__menu>button{min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:0!important;background:transparent!important;color:var(--sstf-ink)!important;font:inherit!important;text-align:start!important;cursor:pointer!important;border-radius:var(--sstf-radius-field)!important}
 .sstf-imgslot__menu>button.is-danger{color:#b3261e!important}
 .sstf-imgslot__hint{margin:var(--sstf-space-1) 0 0!important;font-size:var(--sstf-t-small)!important;color:var(--sstf-ink-muted)!important}
}

@layer sstf-glass{
 /* R179: كرت مراجعة المتجر عند الموظف — البنر والأفاتار بالشكل نفسه الذي يراه العميل */
 .sstf-front-review .sstf-front__banner{display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/1!important;object-fit:cover!important;border-radius:var(--sstf-radius-field)!important}
 .sstf-front-review .sstf-front__head{position:relative!important;display:block!important;margin:0!important}
 .sstf-front-review .sstf-front__avatar{position:absolute!important;inset-inline-start:16px!important;top:-44px!important;width:88px!important;height:88px!important;border-radius:50%!important;object-fit:cover!important;border:4px solid var(--sstf-surface)!important;background:var(--sstf-surface)!important;box-shadow:0 4px 14px rgba(0,0,0,.14)!important;z-index:2!important}
 .sstf-front-review .sstf-front__id{padding-top:52px!important}
 .sstf-front-review .sstf-front__about{margin:var(--sstf-space-2) 0!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
 .sstf-front-review{display:block!important;margin:0 0 var(--sstf-space-4)!important;padding:var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important}
 .sstf-front-review .sstf-front__id>small{display:block!important;color:var(--sstf-ink-muted)!important;font-size:var(--sstf-t-small)!important}
}
@layer sstf-glass{
 /* R179: رأس «متجري» عند المورد — الأفاتار يركب حافة البنر، واسم المتجر بجانبه بلا تداخل */
 /* البنر والأفاتار كتلة واحدة: الأفاتار نصفه فوق البنر ونصفه تحته، في الزاوية السفلية من جهة البداية */
 .sstf-storefront__media{position:relative!important;display:block!important;margin:0 0 64px!important}
 .sstf-storefront__media>.sstf-imgslot--banner{margin:0!important}
 .sstf-storefront__media>.sstf-imgslot--avatar{position:absolute!important;inset-inline-start:16px!important;bottom:-62px!important;margin:0!important;z-index:2!important}
 .sstf-storefront__media>.sstf-imgslot--avatar .sstf-imgslot__face{border:4px solid var(--sstf-surface)!important;box-shadow:0 4px 14px rgba(0,0,0,.14)!important;background:var(--sstf-surface)!important}
 .sstf-storefront__head{display:block!important;margin:0 0 var(--sstf-space-3)!important}
 .sstf-storefront__id{min-width:0!important;display:grid!important;gap:var(--sstf-space-1)!important}
 .sstf-storefront__id .account-fields{margin:0!important}
}
@layer sstf-glass{
}
@layer sstf-glass{
 /* R179: زرّ «إكمال المنتج» ظاهرًا على الكرت غير المكتمل — لا مخبوءًا في الثلاث نقاط */
 .ss-intake-finish-row{display:block!important;grid-column:1/-1!important;order:7!important;padding:var(--sstf-space-2) var(--sstf-space-1) var(--sstf-space-1)!important}
 .ss-intake-finish{width:100%!important;min-height:var(--sstf-touch)!important}
 /* R188 (أمر المالك 17/11): «تكرار» على كرت منتج الطلب — صفّ مضغوط يبدأ من أوّل الكرت، لا يملأ عرضه ولا يزاحم «إكمال المنتج» */
 /* R188 (بلاغ المالك 17/11: «ليش الأزرار صغيرة ومش واضحة، ولازم تكون داخل الكرت») — صفّ الأزرار داخل
    صندوق الكرت بعرضه، وكل زرّ بمساحة لمس كاملة وخطٍّ مقروء، والزرّان يقتسمان العرض. */
 .ss-intake-duplicate-row{grid-column:1/-1!important;order:8!important;padding:0 var(--sstf-space-1) var(--sstf-space-1)!important;display:flex!important;gap:var(--sstf-space-2)!important;flex-wrap:nowrap!important}
 .ss-intake-duplicate,.ss-intake-draft-edit{flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:var(--sstf-touch)!important;font-size:var(--sstf-t-body)!important;font-weight:700!important;justify-content:center!important}
}

/* R179 (دستور 15/11): هذه القواعد كانت خارج الطبقة، و!important داخل الطبقة يسبق !important خارجها —
   فكان قياس الملصق الكبير لا يُطبَّق أصلًا (الفاحصة قاست 378×227 بدل 227×302). فهي داخل الطبقة كبقية الملف. */
@layer sstf-glass{
 /* R179 (بلاغ المالك 15/11): ملصق الطابعة الحرارية — الرمز يملأ عرض الملصق، والنصّ تحته.
    المقاسات عند 96 نقطة/بوصة (7.56 بكسل/ملم): 30×40 ⇒ 227×302، و100×100 ⇒ 378×378، و100×150 ⇒ 378×567 بكسل. */
 .label-item--big{flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;padding:16px!important;text-align:center!important}
 .label-item--big.is-100{width:378px!important;height:378px!important}
 .label-item--big.is-150{width:378px!important;height:567px!important}
 .label-item--big.is-3040{width:227px!important;height:302px!important;padding:8px!important;gap:5px!important}
 .label-item--big .label-item__qr{flex:0 0 auto!important;width:330px!important;height:330px!important}
 .label-item--big.is-3040 .label-item__qr{width:188px!important;height:188px!important}
 .label-item--big .label-item__text{align-items:center!important;text-align:center!important;width:100%!important}
 .label-item--big .label-item__code{font-size:34px!important;letter-spacing:1px!important}
 .label-item--big .label-item__title{font-size:20px!important}
 .label-item--big.is-3040 .label-item__code{font-size:23px!important;letter-spacing:.5px!important}
 .label-item--big.is-3040 .label-item__title{font-size:13px!important}
 .label-item--big.is-3040 .label-item__sub{font-size:11px!important}
 /* R180 (بلاغ المالك 16/11): «زر × شكله مشوّه في إضافة المنتج عند المورد» — قاعدة .sstf-send-button تأتي
    بعد قاعدة المعالج فتعطي الزرّ عرضًا كاملًا وارتفاع 50 ونصف قطر الحقل، فيخرج 48×50 بزاوية مربّعة فوق شارة
    بيضاء ثانية. هنا يعود زرّ الإغلاق إلى شكله المركزي: دائرة واحدة 44×44 وأيقونة × في وسطها. */
 #wizard .wizard-close.ss-dialog-close{box-sizing:border-box!important;width:var(--sstf-touch)!important;height:var(--sstf-touch)!important;min-width:var(--sstf-touch)!important;min-height:var(--sstf-touch)!important;max-width:var(--sstf-touch)!important;flex:0 0 auto!important;padding:0!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;background-image:none!important;box-shadow:none!important}
 #wizard .wizard-close.ss-dialog-close::before{display:none!important}
 #wizard .wizard-close.ss-dialog-close::after{width:var(--sstf-t-card)!important;height:var(--sstf-t-card)!important}
 /* R182 (أمر المالك 16/11): كرت مراجعة المنتج — صورة كبيرة واحدة وتحتها شريط المصغّرات يمرّ أفقيًا. */
 .sstf-photoview{display:grid!important;gap:var(--sstf-space-2)!important;margin:0 0 var(--sstf-space-3)!important}
 .sstf-photoview__stage{display:grid!important;place-items:center!important;overflow:hidden!important;aspect-ratio:1/1!important;max-height:52vh!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-tone-neutral-stage-bg)!important}
 .sstf-photoview__img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
 .sstf-photoview__strip{display:flex!important;gap:var(--sstf-space-2)!important;overflow-x:auto!important;scrollbar-width:none!important;padding:2px!important}
 .sstf-photoview__strip::-webkit-scrollbar{display:none!important}
 .sstf-photoview__thumb{flex:0 0 auto!important;width:64px!important;height:64px!important;min-height:0!important;padding:0!important;overflow:hidden!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-field)!important;background:var(--sstf-surface)!important;background-image:none!important;box-shadow:none!important;cursor:pointer!important}
 .sstf-photoview__thumb>img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
 .sstf-photoview__thumb.is-current{border-color:var(--sstf-primary-strong,var(--sstf-ink))!important;box-shadow:0 0 0 2px var(--sstf-primary-strong,var(--sstf-ink))!important}
 /* R182: الكاميرا المركزية بإطار منقّط — البثّ يملأ الكرت، والإطار في وسطه بنسبة الخانة. */
 .sstf-capture{position:relative!important;display:grid!important;place-items:center!important;width:100%!important;aspect-ratio:3/4!important;max-height:62vh!important;overflow:hidden!important;border-radius:var(--sstf-radius-card)!important;background:#000!important}
 .sstf-capture>video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
 .sstf-capture__frame{position:relative!important;width:86%!important;border:2px dashed #fff!important;border-radius:var(--sstf-radius-field)!important;box-shadow:0 0 0 9999px rgba(0,0,0,.45)!important;pointer-events:none!important}
 .sstf-capture__shot{margin-top:var(--sstf-space-3)!important}
 .sstf-imgslot__cam{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;margin-top:var(--sstf-space-2)!important;min-height:var(--sstf-touch)!important;padding:0 var(--sstf-space-3)!important;border:1px solid var(--sstf-line-card)!important;border-radius:var(--sstf-radius-pill)!important;background:var(--sstf-surface)!important;background-image:none!important;color:var(--sstf-ink)!important;box-shadow:none!important;font:inherit!important;cursor:pointer!important}
 .sstf-imgslot__cam-icon{width:22px!important;height:22px!important}
}

/* R193 (أمر المالك 19/11): حقل البحث في شاشة الإعدادات — يبدو حقلًا ويفتح كرت البحث المركزي. */
.sstf-settings-search{display:flex;align-items:center;gap:10px;width:100%;margin:0 0 14px;padding:12px 14px;border:1px solid var(--sstf-line,#d8e2f0);border-radius:var(--sstf-r-m,14px);background:var(--sstf-surface,#fff);color:var(--sstf-ink-muted,#5b6b7f);font:inherit;font-size:var(--sstf-t-body,15px);text-align:start;cursor:pointer}
.sstf-settings-search:hover{border-color:var(--sstf-tone-progress-strong,#0b63ce)}
.sstf-settings-search svg,.sstf-settings-search img{width:20px;height:20px;flex:none}
.sstf-settings-search span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* R193 (أمر المالك 19/11): سطور «تكاليف الطلب» — لونٌ لكل حال: لم يُطلب · عند المحاسب · مدفوع · تجاوز · غير مخطَّط. */
.sstf-order-cost{border-inline-start:3px solid var(--sstf-ink-muted,#8b9bb0)!important}
.sstf-order-cost--pending{border-inline-start-color:var(--sstf-tone-progress-strong,#0b63ce)!important}
.sstf-order-cost--paid{border-inline-start-color:var(--sstf-tone-done-strong,#2e9a57)!important}
.sstf-order-cost--over{border-inline-start-color:var(--sstf-tone-danger-strong,#d1463b)!important}
.sstf-order-cost--extra{border-inline-start-color:var(--sstf-tone-warn-strong,#c98a12)!important}
.sstf-order-costs-extra{margin-top:var(--sstf-space-3,12px)}

/* R193 (أمر المالك 19/11): كروت الطلبات المحفوظة بانتظار الإرسال — مربّع تحديد وسطرٌ ومبلغ وزرّ فتح. */
.sstf-cost-draft{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;cursor:pointer}
.sstf-cost-draft__body{min-width:0;display:flex;flex-direction:column;gap:2px}
.sstf-cost-draft__body small{color:var(--sstf-ink-muted,#5b6b7f)}
.sstf-cost-draft__amount{font-weight:800;white-space:nowrap}
.sstf-cost-draft__open{display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--sstf-surface-2,#f4f8ff)}
.sstf-cost-drafts__sum{margin:var(--sstf-space-3,12px) 0;padding:10px 12px;border-radius:var(--sstf-r-m,14px);background:var(--sstf-surface-2,#f4f8ff);font-weight:700;line-height:1.8}

/* R193 (أمر المالك 19/11): كرت دفعة طلبات التكاليف في شاشة الموافقات — ملخّصها وبنودها وزرّها الجماعي. */
.sstf-batch-card{border:1px solid var(--sstf-line,#d8e2f0);border-inline-start:3px solid var(--sstf-tone-progress-strong,#0b63ce);border-radius:var(--sstf-r-m,14px);padding:var(--sstf-space-3,12px);margin:0 0 var(--sstf-space-3,12px);background:var(--sstf-surface,#fff)}
.sstf-batch-card__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:var(--sstf-t-body,15px)}
.sstf-batch-card__lines{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:4px}
.sstf-batch-card__lines a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;border-radius:10px;background:var(--sstf-surface-2,#f4f8ff);color:inherit;text-decoration:none}

/* R193 (بلاغ المالك 19/11): «أزرار إظهار البوليصة وغيرها ليش هيك مصفوفة، بدي طريقة منظمة» —
   أدوات المستلم صفٌّ أفقي يتمرّر (قاعدة المالك: الصفوف تمرير أفقي لا التفاف)، لا عمودًا مكدّسًا. */
.ds-recipient-tools{display:flex;align-items:center;gap:var(--sstf-space-2,8px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-block:var(--sstf-space-1,4px);-webkit-overflow-scrolling:touch}
.ds-recipient-tools::-webkit-scrollbar{height:0}
.ds-recipient-tools>*{flex:0 0 auto!important;scroll-snap-align:start;width:auto!important;margin:0!important}
.ds-recipient-tools .sstf-icon-actions{display:flex!important;flex-wrap:nowrap!important;gap:var(--sstf-space-2,8px)!important}
.ds-awb-old-open{margin-block:var(--sstf-space-2,8px)}

/* R193 (أمر المالك 19/11): شريط تنزيل التطبيق داخل كرت «نزّل التطبيق». */
.sstf-install-card__bar{width:100%;height:8px;margin-top:6px;border-radius:999px;overflow:hidden;appearance:none;-webkit-appearance:none;border:0;background:var(--sstf-surface-2,#e8f0fb)}
.sstf-install-card__bar::-webkit-progress-bar{background:var(--sstf-surface-2,#e8f0fb);border-radius:999px}
.sstf-install-card__bar::-webkit-progress-value{background:var(--sstf-tone-progress-strong,#0b63ce);border-radius:999px;transition:inline-size .25s ease}
.sstf-install-card__bar::-moz-progress-bar{background:var(--sstf-tone-progress-strong,#0b63ce);border-radius:999px}

/* R193 (بلاغ المالك 19/11): كرت الدفعة الذي جاء منه الإشعار — يُبرَز لحظةَ الوصول فلا يُبحث عنه. */
.sstf-flow .sstf-batch-card.is-wanted{outline:2px solid var(--sstf-tone-progress-strong,#0b63ce)!important;outline-offset:2px!important;scroll-margin-block-start:96px!important}

/* الطبقة نفسها التي تحمل قواعد .sstf-record — المهمّ داخل الطبقة يغلب المهمّ خارجها. */
@layer sstf-approved{
/* R193 (أمر المالك 19/11): صفّ المستند **سطرٌ ونصف** — القياس أثبت أن خمسة أجزاء لا تدخل في سطر
   على هاتف 430 (461px مطلوبة في 394px) فخرج المبلغ من الكرت. الأعلى: الاسم والمبلغ و⋯ بلا قصّ،
   والأسفل: الحالة والمستفيد بخطٍّ أصغر، والمستفيد وحده يُقصّ. */
.sstf-record--line,.account-documents>.sstf-record--line,.accounting-ui .account-documents>.sstf-record--line{display:flex!important;flex-direction:column!important;gap:2px!important;padding:8px 12px!important;min-height:0!important}
.sstf-record--line>.sstf-record__lead{display:flex!important;align-items:center!important;gap:var(--sstf-space-2)!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important}
.sstf-record--line .sstf-record__title{flex:1 1 auto!important;min-width:0!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:.95rem!important}
.sstf-record--line .sstf-record__amount{flex:0 0 auto!important;font-weight:800!important;white-space:nowrap!important}
.sstf-record--line>.sstf-record__meta{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;font-size:.82rem!important}
.sstf-record--line .sstf-record__line{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--sstf-ink-soft,#5b6b7f)!important}
.sstf-record--line .sstf-central-status,.sstf-record--line [class*="status"]{flex:0 0 auto!important;white-space:nowrap!important}
/* زرّ ⋯: كان دائرةً بيضاء فارغة (لا نقاط ولا أيقونة) — نقاطه في المكوّن نفسه فتظهر أينما استُعمل. */
.sstf-record--line>.sstf-record__lead>.ss-card-menu{position:static!important;flex:0 0 auto!important;width:38px!important;height:38px!important;min-width:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;border:1px solid var(--sstf-line-card,#d8e2f0)!important;background:#fff!important;color:var(--sstf-ink,#17212b)!important;font-size:1.1rem!important;line-height:1!important;padding:0!important}
.sstf-record--line>.sstf-record__lead>.ss-card-menu>span{display:block!important;transform:translateY(-2px)!important;letter-spacing:1px!important}
.sstf-record--line>.sstf-record__lead>.ss-card-menu,.accounting-ui .sstf-record--line>.sstf-record__lead>.ss-card-menu{min-height:38px!important;max-height:38px!important}
}

/* R194 (أمر المالك 20/11): كرت معلومات البوابة/الحساب — «كبير جدًا وغير منظم». سطران × عمودان ثابتان:
   «البوابة · العميل» ثم «العملة · الدولة»، بلا خلية تبتلع السطر مهما طال اسم العميل؛ وعلم الدولة علمٌ مستطيل. */
@layer sstf-approved{
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;margin:0!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts>.sstf-fact{flex:none!important;min-width:0!important;max-width:100%!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:start!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:0!important;border-radius:0!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts>.sstf-fact:nth-child(-n+2){border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts>.sstf-fact:nth-child(odd){border-inline-end:1px solid var(--sstf-line-card)!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts .sstf-fact__icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;flex:none!important;padding:0!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts .sstf-fact__text{min-width:0!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts .sstf-fact__label{font-size:var(--sstf-t-small)!important;line-height:1.2!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts .sstf-fact__value,.sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts .sstf-fact__value bdi{font-size:var(--sstf-t-small)!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .sstf-facts.ss-order-identity.ss-identity-portal.sstf-facts .sstf-fact__value .ss-account-number{font-size:var(--sstf-t-card)!important}
  .sstf-fact__icon--html>.sstf-fact__flag{width:100%!important;height:auto!important;max-height:100%!important;object-fit:contain!important;border-radius:2px!important;box-shadow:0 0 0 1px var(--sstf-line-card)!important}
}

/* R194 — تتمّة: في كرت معلومات البوابة/الحساب «القيمة كاملة لا تُقصّ ولا تُمرَّر» (ثابت المشية R134 Q2 لهذا الكرت وحده):
   اسم العميل الطويل ينزل سطرًا ثانيًا داخل خليته بدل أن يُخفى طرفه. في طبقة الخطوط نفسها لتسبق قاعدة السطر الواحد العامة. */
@layer sstf-typography{
  .sstf-facts.ss-order-identity.ss-identity-portal .sstf-fact__value,
  .sstf-facts.ss-order-identity.ss-identity-portal .sstf-fact__value bdi,
  .sstf-facts.ss-order-identity.ss-identity-portal .sstf-fact__value span{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important}
}

/* R195 (أمر المالك 20/11): كرت معلومات طلب فلاي — سطر «الطلب · العميل»، ثم الشيبنج مارك في سطره (كان بين الدولة والعملة
   فأبعدهما)، ثم «الدولة · العملة · نوع الشحن» على سطر واحد بأعمدة متساوية. شبكة ستة أعمدة، وكل خلية بصنفها لا بترتيبها. */
@layer sstf-approved{
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;margin:0!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts>.sstf-fact{flex:none!important;min-width:0!important;max-width:100%!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:start!important;gap:var(--sstf-space-2)!important;padding:var(--sstf-space-2)!important;border:0!important;border-radius:0!important;grid-column:span 2!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts>:is(.order-meta-order,.order-meta-customer){grid-column:span 3!important;border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts>.order-meta-order{border-inline-end:1px solid var(--sstf-line-card)!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts>.order-meta-shipping-mark{grid-column:1/-1!important;border-bottom:1px solid var(--sstf-line-card)!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts>:is(.order-meta-country,.order-meta-currency){border-inline-end:1px solid var(--sstf-line-card)!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts .sstf-fact__icon{width:var(--sstf-chip-h)!important;height:var(--sstf-chip-h)!important;flex:none!important;padding:0!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts .sstf-fact__text{min-width:0!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts .sstf-fact__label{font-size:var(--sstf-t-small)!important;line-height:1.2!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts :is(.sstf-fact__value,.sstf-fact__value bdi){font-size:var(--sstf-t-small)!important;line-height:1.3!important}
  .sstf-facts.ss-order-identity.ss-identity-fly.sstf-facts .sstf-fact__value .ss-order-number{font-size:var(--sstf-t-card)!important}
}
@layer sstf-typography{
  /* القيمة كاملة في خليتها، كما في كرت البوابة (ثابت المشية لكرت المعلومات) */
  .sstf-facts.ss-order-identity.ss-identity-fly :is(.sstf-fact__value,.sstf-fact__value bdi,.sstf-fact__value span){white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important}
}

/* R196: جملة «لن يتم استلام أي بضائع ليس عليها شيبنج مارك» سطرٌ تحت حقل الشيبنج مارك — أحمر أسمك، لا صندوقًا كبيرًا */
@layer sstf-approved{
  .sstf-mark-warn{display:block!important;margin:var(--sstf-space-1) 0 var(--sstf-space-2)!important;color:#c62828!important;font-weight:800!important;
    font-size:var(--sstf-t-small)!important;line-height:1.5!important}
}

/* R198 (أمر المالك 20/11): معالج فلاي — «كرتان بجانب بعض» للسؤال، و«خياراته أفقيّة ٣ في السطر إن اتّسع وإلا ٢،
   لكي لا تطول الخطوة إذا كانت عمودية». الكرت المختار يُعلَّم بلونه، والضغطة تختار وتحفظ. */
@layer sstf-approved{
  .fly-wizard-choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin:0 0 var(--sstf-space-3)!important}
  .fly-wizard-choice{display:grid!important;place-items:center!important;gap:var(--sstf-space-2)!important;min-height:calc(var(--sstf-touch) * 2)!important;padding:var(--sstf-space-3)!important;
    border:var(--sstf-ring-2,2px) solid var(--sstf-line-card,#dbe4f0)!important;border-radius:var(--sstf-radius-card)!important;background:var(--sstf-surface,#fff)!important;cursor:pointer;text-align:center!important}
  .fly-wizard-choice>strong{font-size:var(--sstf-t-card)!important;font-weight:700!important;line-height:1.3!important}
  .fly-wizard-choice__icon{width:calc(var(--sstf-touch) * 1.1)!important;height:calc(var(--sstf-touch) * 1.1)!important;object-fit:contain!important}
  .fly-wizard-choice.is-selected{border-color:rgb(var(--sstf-domain-rgb,11,99,206))!important;background:var(--sstf-surface-status,#eef4ff)!important;box-shadow:0 2px 10px rgba(11,99,206,.18)!important}
  .fly-wizard-choice--small{min-height:var(--sstf-touch)!important;grid-auto-flow:column!important;place-content:center!important;padding:var(--sstf-space-2)!important}
  .fly-wizard-choice--small .fly-wizard-choice__icon{width:var(--sstf-icon-md)!important;height:var(--sstf-icon-md)!important}
  .fly-question-ask{display:block!important;margin-bottom:var(--sstf-space-2)!important;font-size:var(--sstf-t-card)!important;font-weight:700!important;line-height:1.4!important}
  .fly-question-choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important}
  .fly-question-card .fly-question{display:block!important}
  /* الخيارات أفقيّة: ثلاثة في السطر إن اتّسعت، وإلا اثنان (auto-fit مع حدٍّ أدنى) */
  .fly-question-card .fly-question>label.checkbox{display:inline-flex!important;align-items:center!important;gap:var(--sstf-space-1)!important;margin:0!important}
  .fly-question-card .fly-question{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(104px,1fr))!important;gap:var(--sstf-space-2)!important;align-items:center!important}
  .fly-question-card .fly-question>legend{grid-column:1/-1!important}
  .fly-wizard-foot{display:grid!important;grid-auto-flow:column!important;gap:var(--sstf-space-2)!important;margin-top:var(--sstf-space-3)!important}
  .fly-wizard-foot>button{width:100%!important}
}

/* R198: حاوية حقول الأوردر داخل محرّره تأخذ عرض الشبكة كاملًا وتحمل شبكتها نفسها — وإلا صارت عمودًا واحدًا
   (162 بكسل) فظهرت خيارات الأسئلة عمودية رغم أنها أفقيّة التصميم. */
@layer sstf-approved{
  .recipient-editor .recipient-schema-fields{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;align-items:end!important}
  .recipient-editor .recipient-schema-fields>.recipient-wide{grid-column:1/-1!important}
}

/* R198: نصّ الخيار يلتفّ في مكانه فلا يُقصّ (الخيارات أفقيّة والسطر يكبر بقدر أطولها) */
@layer sstf-typography{
  .fly-question-card .fly-question>label.checkbox{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;align-items:flex-start!important;line-height:1.4!important}
}

/* R198 (أمر المالك 20/11): «حفظ وإضافة منتج آخر… يكون لون الزرّ بلون مميّز» — نبرةٌ ثالثة في زرّ الإرسال المركزي:
   ليست الزرقاء (حفظ وإنهاء) ولا الرمادية (ثانوي)، فيُميّزها الإصبع من أول نظرة. */
@layer sstf-glass{
  html body .sstf-send-button.sstf-send-button--accent,html body .sstf-send-button.secondary.sstf-send-button--accent{
    background:linear-gradient(135deg,#f59e0b,#ea7a00)!important;background-image:linear-gradient(135deg,#f59e0b,#ea7a00)!important;background-color:#ea7a00!important;
    border-color:#d97706!important;color:#fff!important;box-shadow:0 4px 14px rgba(234,122,0,.35)!important}
  html body .sstf-send-button.sstf-send-button--accent:hover{filter:brightness(1.05)!important}
}

/* R198: سؤال المعالج يلتفّ في مكانه بخطٍّ واضح — لا يُقصّ طرفه («بخط واضح» بأمر المالك) */
@layer sstf-typography{
  .fly-question-ask.fly-question-ask.fly-question-ask,.fly-wizard-ask.fly-wizard-ask.fly-wizard-ask,.fly-wizard-choice.fly-wizard-choice>strong.fly-wizard-choice__label.fly-wizard-choice__label,.fly-question-card .fly-question>label.checkbox.checkbox{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;text-overflow:clip!important;max-width:100%!important}
}
@layer sstf-approved{
  .fly-wizard-ask{font-size:var(--sstf-t-card)!important;line-height:1.6!important;margin-bottom:var(--sstf-space-3)!important;text-align:center!important}
}

@layer sstf-glass{
/* R203 (أمر المالك 21/11): شريط تقدّم خطوتَي فلاي الأوليين — نفس شريط رأس المعالج، في أعلى جسم الكرت. */
.fly-wizard-progress{display:grid;grid-template-columns:1fr 46px;align-items:center;gap:10px;margin:0 0 var(--sstf-space-4)}
.fly-wizard-progress .pct{font-size:var(--sstf-t-small);font-weight:700;color:var(--flow-blue,#1565c0);text-align:end;direction:ltr}
.fly-wizard-progress .track{height:5px;border-radius:999px;overflow:hidden;background:#e7ecf4}
.fly-wizard-progress .fill{height:100%;border-radius:999px;background:var(--flow-blue,#1565c0);transition:width .2s ease}
}

@layer sstf-glass{
 /* R203 (أمر المالك 21/11): زرّ «ابدأ إضافة أوردر» بلونٍ آخر غير زرّ الإرسال البنفسجي —
    لون العمل (action) المركزي، فيُميَّز بالنظرة ولا يُخلط بزرّ «حفظ وإرسال الطلب». */
 .ss-recipient-add--start{
  background:linear-gradient(135deg,var(--sstf-tone-action-strong),#f0a13c)!important;
  border-color:var(--sstf-tone-action-border)!important;color:#fff!important;
 }
 /* «والحقل أو النقص يكون محدَّدًا بالأحمر» — الحقل الناقص حين يُفتح المعالج لإكماله. */
 [data-sstf-missing]{
  border-color:var(--sstf-tone-danger-strong)!important;
  background:var(--sstf-tone-danger-bg)!important;
  box-shadow:0 0 0 2px var(--sstf-tone-danger-border)!important;
 }
 [data-sstf-missing] :is(input,select,textarea){border-color:var(--sstf-tone-danger-strong)!important}
 [data-sstf-missing] :is(small,legend,strong){color:var(--sstf-tone-danger-fg)!important}
}

@layer sstf-glass{
 /* R203 (قاعدة المالك الثابتة 21/11): «سطر أو سطر ونصف، والأولوية لسطر» — كرت الأوردر صفٌّ واحد:
    الاسم وبيانه في عمود يُقصّ بالنقاط، والشارات بجانبه لا تحته، والأزرار آخره. */
 .ss-recipient-card.order-line{align-items:center!important}
 /* R203 (تصحيح المالك 21/11): «خلّيه سطر ونصف لأنه لم يتّسع» — الاسم سطرٌ، وبيانه وشاراته
    السطر النصف تحته. ولا التفاف داخل أيٍّ منهما: ما زاد يُقصّ بالنقاط. */
 .ss-recipient-card>.order-line-main{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;
  gap:2px var(--sstf-space-2)!important;min-width:0!important;
 }
 .ss-recipient-card>.order-line-main>span{
  flex:1 1 100%!important;min-width:0!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
 }
 .ss-recipient-card>.order-line-main>small{
  flex:1 1 0!important;min-width:0!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
 }
 .ss-recipient-card>.order-line-main>.ss-order-badges{
  display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;
  gap:var(--sstf-space-1)!important;min-width:0!important;overflow:hidden!important;
 }
 .ss-recipient-card .ds-readiness-foot{display:none!important}
 /* والارتفاع يتبع السطر: حشوةٌ مضغوطة، وزرّ «⋯» بقياس اللمس الأدنى لا أكبر منه. */
 .ss-recipient-card.order-line{padding:var(--sstf-space-2) var(--sstf-space-3)!important;min-height:0!important}
 .ss-recipient-card>.order-line-actions{align-self:center!important;height:auto!important}
 .ss-recipient-card>.order-line-actions>.ss-card-menu{
  width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
 }
}

@layer sstf-glass{
 /* R203 (أمر المالك 21/11): «شراء جديد برقم تتبّع مختلف» سطرٌ أصغر تحت العنوان، فلا يكبر الكرت. */
 .fly-wizard-choice__sub{
  display:block!important;margin-top:2px!important;
  font-size:var(--sstf-t-small)!important;font-weight:500!important;
  color:var(--sstf-list-muted)!important;line-height:1.3!important;
  white-space:normal!important;
 }
}

/* R208 (أمر المالك 22/11): كرت التهنئة عند اكتمال الطلب — واحد مركزي يراه الموظف والعميل والمورد. */
@layer sstf-glass{
 .sstf-congrats{position:relative;overflow:hidden;display:flex;align-items:center;gap:16px;
  padding:22px 20px;border-radius:26px;margin:0 0 14px;
  background:
   radial-gradient(120% 140% at 88% 0%,#fde68a4d 0%,transparent 55%),
   radial-gradient(110% 130% at 4% 100%,#5eead44d 0%,transparent 58%),
   linear-gradient(135deg,#ecfdf5 0%,#d1fae5 45%,#fef9c3 100%);
  border:1px solid #34d39973;box-shadow:0 18px 42px -22px #15803dc7,inset 0 1px 0 #ffffffb3;
  animation:sstf-congrats-pop .45s cubic-bezier(.2,.9,.3,1.2) both;}
 @keyframes sstf-congrats-pop{from{opacity:0;transform:translateY(8px) scale(.985);}to{opacity:1;transform:none;}}
 .sstf-congrats__icon{position:relative;flex:0 0 auto;display:grid;place-items:center;width:66px;height:66px;border-radius:50%;
  background:#fff;box-shadow:0 10px 24px -12px #15803d,0 0 0 6px #34d39926,0 0 0 12px #34d39914;}
 .sstf-congrats__icon img{width:42px;height:42px;object-fit:contain;}
 .sstf-congrats__text{display:flex;flex-direction:column;gap:5px;min-width:0;}
 .sstf-congrats__text>strong{font-size:1.24rem;font-weight:800;line-height:1.28;color:#14532d;letter-spacing:-.01em;}
 .sstf-congrats__text>span{font-size:.94rem;color:#166534d9;}
 .sstf-congrats__no{align-self:flex-start;margin-top:4px;padding:3px 12px;border-radius:999px;
  background:#ffffffb8;border:1px solid #14532d2e;font-size:.85rem;font-weight:800;color:#14532d;
  box-shadow:0 4px 10px -8px #14532d;}
 /* بريقٌ يمرّ مرّة واحدة — ويسكن لمن طلب تقليل الحركة */
 .sstf-congrats__spark{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,transparent 42%,#ffffff8c 50%,transparent 58%);
  transform:translateX(-120%);animation:sstf-congrats-sweep 1.5s ease-out .25s 1 both;}
 @keyframes sstf-congrats-sweep{to{transform:translateX(120%);}}
 @media (prefers-reduced-motion:reduce){.sstf-congrats__spark{animation:none;opacity:0;}.sstf-congrats{animation:none;}}
 @media (max-width:480px){
  .sstf-congrats{padding:17px 15px;gap:12px;border-radius:21px;}
  .sstf-congrats__icon{width:54px;height:54px;box-shadow:0 8px 18px -12px #15803d,0 0 0 5px #34d39926;}
  .sstf-congrats__icon img{width:35px;height:35px;}
  .sstf-congrats__text>strong{font-size:1.08rem;}
  .sstf-congrats__text>span{font-size:.88rem;}
 }
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sstf-congrats{background:linear-gradient(135deg,#064e3b66 0%,#065f4680 45%,#78350f4d 100%);border-color:#34d39959;}
 :root:not([data-theme="light"]) .sstf-congrats__icon{background:#0b1f17cc;}
 :root:not([data-theme="light"]) .sstf-congrats__text>strong{color:#bbf7d0;}
 :root:not([data-theme="light"]) .sstf-congrats__text>span{color:#86efacc7;}
 :root:not([data-theme="light"]) .sstf-congrats__no{background:#bbf7d01a;border-color:#bbf7d033;color:#bbf7d0;}}
:root[data-theme="dark"] .sstf-congrats{background:linear-gradient(135deg,#064e3b66 0%,#065f4680 45%,#78350f4d 100%);border-color:#34d39959;}
:root[data-theme="dark"] .sstf-congrats__icon{background:#0b1f17cc;}
:root[data-theme="dark"] .sstf-congrats__text>strong{color:#bbf7d0;}
:root[data-theme="dark"] .sstf-congrats__text>span{color:#86efacc7;}
:root[data-theme="dark"] .sstf-congrats__no{background:#bbf7d01a;border-color:#bbf7d033;color:#bbf7d0;}

/* R209 (أمر المالك 22/11): زرّ «إقفال الطلب الآن» — عريضٌ أفقيّ بلونٍ مميّز فوق كرت الإقفال، لا صفًّا بين الصفوف. */
@layer sstf-glass{
 .sstf-close-order-row{margin:2px 0 14px;}
 /* طبقة الزجاج أسبق الطبقات، وقواعد الأزرار العامة في طبقةٍ بعدها — فالمهمّ هنا يُثبَّت بـ!important */
 .sstf-close-order{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%!important;
  padding:15px 18px!important;border:0!important;border-radius:18px!important;cursor:pointer;
  font-size:1.06rem!important;font-weight:800!important;color:#fff!important;letter-spacing:-.01em;
  background:linear-gradient(135deg,#15803d 0%,#16a34a 48%,#0d9488 100%)!important;
  box-shadow:0 14px 30px -16px #15803de6!important;transition:transform .12s ease,box-shadow .12s ease;}
 .sstf-close-order:hover{transform:translateY(-1px);box-shadow:0 18px 34px -16px #15803d;}
 .sstf-close-order:active{transform:translateY(0);}
 .sstf-close-order__icon img{width:26px;height:26px;object-fit:contain;}
 .sstf-close-order.is-blocked{background:linear-gradient(135deg,#64748b 0%,#94a3b8 100%)!important;box-shadow:0 10px 24px -18px #334155!important;}
 .sstf-close-order__why{margin:7px 2px 0;font-size:.86rem;color:#b45309;}
 .sstf-close-form .task-bar{margin-top:12px;}
 .sstf-close-order__submit[disabled]{opacity:.55;cursor:not-allowed;}
 @media (max-width:480px){.sstf-close-order{padding:13px 14px;font-size:1rem;border-radius:15px;}}
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sstf-close-order__why{color:#fbbf24;}}
:root[data-theme="dark"] .sstf-close-order__why{color:#fbbf24;}

/* R299 (أمر المالك 26/11، صورة شاشة الآيفون): «أيقونة وتحتها اسم، بنفس طريقة الآيفون».
 * شبكة أيقونات: بلا إطار ولا خلفية ولا سهم ولا سطر وصف — أيقونة والاسم تحتها كاملًا بسطرين بلا بتر.
 * حجمان بأمره: الرئيسية ثلاثة في الصف (أكبر قليلًا)، وداخل الأبواب أربعة بحجم الآيفون. */
@layer sstf-approved{
  .sstf-section-cards--apps:has(>.sstf-section-card),
  .sstf-section-cards--apps{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--sstf-space-2)!important;margin-bottom:var(--sstf-space-4)!important}
  .sstf-section-cards--apps3:has(>.sstf-section-card),
  .sstf-section-cards--apps3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--sstf-space-3)!important;margin-bottom:var(--sstf-space-4)!important}
  /* R300 (أمر المالك 26/11): «ما بدي ألوان بكرت الأيقونة اللي هو لون القسم — بدون لون، كرت أبيض».
     وكان كرت الشبكة يحمل طبقةً مائلة بلون القسم (tile::before radial-gradient) تظهر مربّعًا ورديًّا. */
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
    min-height:0!important;padding:var(--sstf-space-2) var(--sstf-space-1)!important;gap:var(--sstf-space-1)!important;
    border:0!important;background:#fff!important;box-shadow:none!important;text-align:center!important}
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card::before,
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card::after{
    display:none!important;background:none!important;content:none!important}
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card>.sstf-section-card__icon{
    height:auto!important;margin:0 0 var(--sstf-space-1)!important}
  .sstf-section-cards--apps>.sstf-section-card>.sstf-section-card__icon>:is(.sstf-icon,img){width:56px!important;height:56px!important}
  .sstf-section-cards--apps3>.sstf-section-card>.sstf-section-card__icon>:is(.sstf-icon,img){width:64px!important;height:64px!important}
  /* الاسم كاملًا: سطران، بلا بتر ولا نقاط — لأن تكبيره عند قرب الإصبع غير ممكن في المتصفح */
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card>strong{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
    font-weight:700!important;line-height:1.3!important;text-align:center!important;overflow-wrap:anywhere!important;word-break:break-word!important;hyphens:auto!important}
  .sstf-section-cards--apps>.sstf-section-card>strong{font-size:var(--sstf-t-micro,11px)!important}
  .sstf-section-cards--apps3>.sstf-section-card>strong{font-size:var(--sstf-t-small)!important}
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card>small,
  :is(.sstf-section-cards--apps,.sstf-section-cards--apps3)>.sstf-section-card>.sstf-section-card__go{display:none!important}
  @media(min-width:961px){
    .sstf-section-cards--apps:has(>.sstf-section-card--tile){grid-template-columns:repeat(6,minmax(0,1fr))!important}
    .sstf-section-cards--apps3:has(>.sstf-section-card--tile){grid-template-columns:repeat(5,minmax(0,1fr))!important}}
  /* قاعدة الكرت الفرد (يمتدّ على الصفّ كلّه) تخصّ شبكة الكرتين، ولا تُطبَّق على شبكة الأيقونات */
  @media(max-width:960px){
    :is(.sstf-section-cards--apps,.sstf-section-cards--apps3):has(>.sstf-section-card)>.sstf-section-card--tile:last-child:nth-child(odd){grid-column:auto!important}}


}
/* R362 (أمر المالك 6/12): «ما في داعي لكل هذا الزرّ الكبير، فقط اضغط على الكرت ويفتح» —
   فالكرت الحامل لرابطٍ يبدو بابًا ويعمل كالكرت نفسه، بلا ذيلٍ ولا زرّ. */
a.sstf-record--door{display:block;text-decoration:none;color:inherit;cursor:pointer;position:relative}
a.sstf-record--door:hover{background:var(--sstf-pale,#f1f5ff)}
a.sstf-record--door:after{content:'‹';position:absolute;inset-inline-start:12px;top:50%;
 transform:translateY(-50%);opacity:.45;font-size:1.15rem}
