/* Fluff System — workspace (مملوك لوكيل workspace)
   وضع المكالمات (.fx-calls) + صفحة الأوردر (.fx-od) + مكونات مشتركة (.fx-ws-*).
   بيستخدم توكنز base.css (--fx-glass-*, --fx-radius*, --fx-ease, --fx-muted…) وألوان Filament (--primary-500…).
   الأنيميشن fill-mode backwards بس (مفيش transform بيفضل على أب فيه مودال)، و prefers-reduced-motion بيقفلها. */

/* ---------- 0. توكنز محلية ---------- */
.fx-ws {
    --ws-gap: 16px;
    --ws-card: var(--fx-glass-bg);
    --ws-card-solid: var(--fx-card);
    --ws-line: var(--fx-divider);
    --ws-soft: color-mix(in oklab, var(--gray-500) 7%, transparent);
    --ws-ink: var(--fx-heading);
    --ws-ok: var(--success-600);
    --ws-bad: var(--danger-600);
    --ws-warn: var(--warning-600);
    --ws-info: var(--info-600);
    --ws-pri: var(--primary-600);
    color: var(--ws-ink);
}
.dark .fx-ws {
    --ws-soft: rgb(255 255 255 / .045);
    --ws-ok: var(--success-400);
    --ws-bad: var(--danger-400);
    --ws-warn: var(--warning-400);
    --ws-info: var(--info-400);
    --ws-pri: var(--primary-400);
}
:where(.fx-ws) svg { width: 1em; height: 1em; flex: none; }
.fx-ws [x-cloak] { display: none !important; }

.fx-ws-tone--success { --tone: var(--ws-ok); }
.fx-ws-tone--danger { --tone: var(--ws-bad); }
.fx-ws-tone--warning { --tone: var(--ws-warn); }
.fx-ws-tone--info { --tone: var(--ws-info); }
.fx-ws-tone--primary { --tone: var(--ws-pri); }
.fx-ws-tone--gray { --tone: var(--fx-muted); }

.fx-ws-strong { font-weight: 700; }
.fx-ws-muted { color: var(--fx-muted); }
.fx-ws-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-ws-text--success { color: var(--ws-ok); }
.fx-ws-text--danger { color: var(--ws-bad); }
.fx-ws-link { color: var(--ws-pri); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fx-ws kbd, .fx-calls-keys kbd {
    display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 .3em;
    font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr;
    border-radius: 4px; border: 1px solid var(--fx-ring-strong); border-bottom-width: 2px;
    background: color-mix(in oklab, var(--fx-card) 80%, transparent); color: var(--fx-muted);
}

/* ---------- 1. كارت ---------- */
.fx-ws-card {
    background: var(--ws-card);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-glass-highlight), 0 0 0 1px var(--fx-ring), var(--fx-glass-shadow);
    padding: 18px;
    min-width: 0;
}
.fx-ws-card--flush { padding: 0; overflow: hidden; }
.fx-ws-card--flush > .fx-ws-card__head { padding: 16px 18px 12px; margin: 0; }
.fx-ws-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-width: 0; }
.fx-ws-card__icon {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--fx-radius);
    color: var(--ws-pri); background: color-mix(in oklab, var(--primary-500) 12%, transparent); font-size: 18px;
}
.fx-ws-card__title { margin: 0; font-size: .975rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.fx-ws-card__end { margin-inline-start: auto; color: var(--fx-muted); font-size: .8rem; white-space: nowrap; }
.fx-ws-foot { margin: 12px 0 0; font-size: .82rem; color: var(--fx-muted); }
.fx-ws-card--flush > .fx-ws-foot { padding: 0 18px 14px; }
.fx-ws-empty-line { margin: 0; font-size: .85rem; color: var(--fx-muted); }

/* ---------- 2. شيبس وبادجات ---------- */
.fx-ws-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
    color: var(--tone, var(--fx-muted)); background: color-mix(in oklab, var(--tone, var(--gray-500)) 11%, transparent);
}
.fx-ws-chip svg { font-size: 14px; }
.fx-ws-chip--xs { font-size: .7rem; padding: 1px 7px; }
.fx-ws-chip--plain { background: none; padding: 0; }
.fx-ws-chip--danger { --tone: var(--ws-bad); }
.fx-ws-chip--warning { --tone: var(--ws-warn); }
.fx-ws-chip--success, .fx-ws-chip--ok { --tone: var(--ws-ok); }
.fx-ws-chip--info { --tone: var(--ws-info); }
.fx-ws-chip--primary { --tone: var(--ws-pri); }
a.fx-ws-chip:hover { background: color-mix(in oklab, var(--tone, var(--gray-500)) 18%, transparent); }

.fx-ws-risk {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
    font-size: .74rem; font-weight: 700; color: var(--tone); background: color-mix(in oklab, var(--tone) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 25%, transparent);
}
.fx-ws-risk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-ws-risk--danger { --tone: var(--ws-bad); }
.fx-ws-risk--warning { --tone: var(--ws-warn); }
.fx-ws-risk--success { --tone: var(--ws-ok); }
.fx-ws-risk--gray { --tone: var(--fx-muted); }
.fx-ws-card__head .fx-ws-risk { margin-inline-start: auto; }

/* تاريخ العميل جنب الاسم + نسبة الاستلام */
.fx-ws-cust { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: .82rem; }
.fx-ws-cust__line { color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fx-ws-rate {
    --tone: var(--fx-muted);
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
    font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums;
    color: var(--tone); background: color-mix(in oklab, var(--tone) 13%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 28%, transparent);
}
.fx-ws-rate::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fx-ws-rate--success { --tone: var(--ws-ok); }
.fx-ws-rate--warning { --tone: var(--ws-warn); }
.fx-ws-rate--danger { --tone: var(--ws-bad); }
.fx-ws-card__head .fx-ws-rate { margin-inline-start: auto; }
.fx-ws-rate--gray { --tone: var(--fx-muted); }
.fx-ws-deposit { font-weight: 700; }
.fx-ws-deposit--warning { color: var(--ws-warn); border-color: color-mix(in srgb, var(--ws-warn) 45%, transparent); }
.fx-ws-deposit--danger { color: var(--ws-bad); border-color: color-mix(in srgb, var(--ws-bad) 55%, transparent); background: color-mix(in srgb, var(--ws-bad) 12%, transparent); }

/* بادج المخزون جنب المنتج */
.fx-ws-stock {
    --tone: var(--fx-muted);
    display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; vertical-align: 1px;
    font-size: .7rem; font-weight: 700; line-height: 1.7; white-space: nowrap; font-variant-numeric: tabular-nums;
    color: var(--tone); background: color-mix(in oklab, var(--tone) 11%, transparent);
}
.fx-ws-stock--warning { --tone: var(--ws-warn); }
.fx-ws-stock--danger { --tone: var(--ws-bad); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 35%, transparent); }
.fx-ws-stock--danger::before { content: "!"; font-weight: 900; }

/* واتساب برسالة جاهزة */
.fx-ws-wabar { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-ws-wabtn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    font-size: .8rem; font-weight: 700; color: #0b7a3b; background: color-mix(in oklab, #25d366 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, #25d366 38%, transparent);
    transition: background var(--fx-dur-fast) var(--fx-ease), transform var(--fx-dur-fast) var(--fx-ease);
}
.dark .fx-ws-wabtn { color: #5ee69a; }
.fx-ws-wabtn:hover { background: color-mix(in oklab, #25d366 22%, transparent); }
.fx-ws-wabtn:active { transform: scale(.97); }
.fx-ws-wabtn:focus-visible { outline: 2px solid #25d366; outline-offset: 2px; }
.fx-ws-wabtn svg { font-size: 16px; }
.fx-ws-wabtn kbd { margin-inline-start: 2px; }
.fx-ws-wabar--sm .fx-ws-wabtn { padding: 4px 10px; font-size: .76rem; }


/* اختيار منتج بالقسم (أبسيل / تعديل) */
.fx-pick { display: grid; gap: 10px; }
.fx-pick__bar { display: grid; gap: 8px; }
.fx-pick__cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px; margin: -2px; scrollbar-width: thin; }
.fx-pick__cat {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: .8rem; font-weight: 700; color: var(--ws-ink); background: var(--fx-card);
    box-shadow: inset 0 0 0 1px var(--fx-ring); transition: background var(--fx-dur-fast) var(--fx-ease), color var(--fx-dur-fast) var(--fx-ease);
}
.fx-pick__cat small { font-size: .68rem; font-weight: 700; color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fx-pick__cat:hover { background: var(--fx-hover); }
.fx-pick__cat:focus-visible { outline: 2px solid var(--fx-focus); outline-offset: 2px; }
.fx-pick__cat[aria-pressed="true"] { color: #fff; background: var(--success-600); box-shadow: none; }
.fx-pick__cat[aria-pressed="true"] small { color: rgb(255 255 255 / .8); }
.fx-pick__search { position: relative; display: block; }
.fx-pick__search svg { position: absolute; inset-inline-start: 10px; top: 50%; translate: 0 -50%; color: var(--fx-muted); font-size: 16px; pointer-events: none; }
.fx-pick__search .fx-ws-input { padding-inline-start: 32px; }
.fx-pick__grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); max-height: 340px; overflow-y: auto; padding: 2px; margin: -2px; }
.fx-pick__card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 11px; border: 0; border-radius: var(--fx-radius); cursor: pointer;
    font: inherit; text-align: start; color: var(--ws-ink); background: var(--fx-card); box-shadow: 0 0 0 1px var(--fx-ring), var(--fx-shadow-sm);
    transition: transform var(--fx-dur-fast) var(--fx-ease), box-shadow var(--fx-dur-fast) var(--fx-ease);
}
.fx-pick__card:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in oklab, var(--success-500) 45%, transparent), var(--fx-shadow); }
.fx-pick__card:focus-visible { outline: 2px solid var(--fx-focus); outline-offset: 2px; }
.fx-pick__card:active { transform: scale(.98); }
.fx-pick__card:disabled { opacity: .6; cursor: progress; }
.fx-pick__card--out, .fx-pick__card--negative { box-shadow: 0 0 0 1px color-mix(in oklab, var(--danger-500) 30%, transparent), var(--fx-shadow-sm); }
.fx-pick__name { font-weight: 700; font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.fx-pick__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .76rem; color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fx-pick__fee { color: var(--ws-ok); }
.fx-pick-field .fx-pick__grid { max-height: 300px; }

/* ---------- 3. التنبيهات ---------- */
.fx-ws-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-ws-alert {
    --tone: var(--ws-info);
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--fx-radius);
    font-size: .875rem; line-height: 1.6;
    background: color-mix(in oklab, var(--tone) 9%, var(--fx-card));
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 22%, transparent);
    border-inline-start: 3px solid var(--tone);
}
.fx-ws-alert--danger { --tone: var(--ws-bad); }
.fx-ws-alert--warning { --tone: var(--ws-warn); }
.fx-ws-alert__icon { color: var(--tone); font-size: 18px; display: flex; padding-top: 2px; }
.fx-ws-alert--danger .fx-ws-alert__text { font-weight: 600; }
.fx-ws-alerts--compact { gap: 6px; }
.fx-ws-alerts--compact .fx-ws-alert { padding: 7px 10px; font-size: .82rem; }

/* عمود "⚠ 2" في جدول الأوردرات */
.fx-ws-warn-col .fi-badge { cursor: help; font-variant-numeric: tabular-nums; }

/* ---------- 4. الاتصال والعنوان ---------- */
.fx-ws-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fx-ws-call {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--fx-radius);
    font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em;
    color: var(--primary-700); background: color-mix(in oklab, var(--primary-500) 11%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary-500) 24%, transparent);
    transition: background var(--fx-dur-fast) var(--fx-ease), transform var(--fx-dur-fast) var(--fx-ease);
}
.dark .fx-ws-call { color: var(--primary-300); }
.fx-ws-call:hover { background: color-mix(in oklab, var(--primary-500) 18%, transparent); }
.fx-ws-call:active { transform: scale(.97); }
.fx-ws-call__icon { font-size: 16px; }
.fx-ws-call__tag { font-size: .7rem; font-weight: 600; opacity: .75; }
.fx-ws-call--masked { color: var(--fx-muted); background: var(--ws-soft); box-shadow: none; }
.fx-ws-wa {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--fx-radius);
    color: #fff; background: #25a35a; font-size: 20px; transition: filter var(--fx-dur-fast) var(--fx-ease), transform var(--fx-dur-fast) var(--fx-ease);
}
.fx-ws-wa:hover { filter: brightness(1.08); }
.fx-ws-wa:active { transform: scale(.95); }
.fx-ws-contact--big .fx-ws-call { padding: 10px 16px; font-size: 1.15rem; }
.fx-ws-contact--big .fx-ws-call__icon { font-size: 20px; }
.fx-ws-contact--big .fx-ws-wa { width: 46px; height: 46px; font-size: 24px; }

.fx-ws-address {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: var(--fx-radius);
    background: var(--ws-soft); font-size: .9rem; line-height: 1.6;
}
.fx-ws-address__icon { font-size: 18px; color: var(--ws-pri); margin-top: 3px; }
.fx-ws-address > div:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fx-ws-address__action:empty { display: none; }
.fx-ws-note {
    display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 12px; font-size: .85rem; line-height: 1.6;
    border-radius: var(--fx-radius); background: color-mix(in oklab, var(--warning-400) 12%, transparent);
}
.fx-ws-note svg { font-size: 16px; margin-top: 3px; color: var(--ws-warn); }

/* ---------- 5. سجل المكالمات ---------- */
.fx-ws-log { list-style: none; margin: 0; padding: 0; position: relative; }
.fx-ws-log__item { --tone: var(--ws-pri); position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.fx-ws-log__item:last-child { padding-bottom: 0; }
.fx-ws-log__item:not(:last-child)::after {
    content: ""; position: absolute; inset-inline-start: 5px; top: 16px; bottom: 0; width: 2px; background: var(--ws-line);
}
.fx-ws-log__dot {
    flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%;
    background: var(--tone); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tone) 18%, transparent);
}
.fx-ws-log__body { min-width: 0; flex: 1; }
.fx-ws-log__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .86rem; }
.fx-ws-log__outcome { font-weight: 700; color: var(--tone); }
.fx-ws-log__stage { font-size: .72rem; color: var(--fx-muted); background: var(--ws-soft); padding: 0 6px; border-radius: 4px; }
.fx-ws-log__who { color: var(--fx-muted); }
.fx-ws-log__time { margin-inline-start: auto; color: var(--fx-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.fx-ws-log__note { margin: 3px 0 0; font-size: .84rem; line-height: 1.6; color: var(--ws-ink); overflow-wrap: anywhere; opacity: .9; }

/* ---------- 6. جداول وصفوف ---------- */
.fx-ws-table-wrap { overflow-x: auto; }
.fx-ws-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.fx-ws-table th {
    text-align: start; font-size: .75rem; font-weight: 700; color: var(--fx-thead-fg); background: var(--fx-thead-bg);
    padding: 9px 14px; white-space: nowrap;
}
.fx-ws-table td { padding: 11px 14px; border-top: 1px solid var(--ws-line); vertical-align: top; }
.fx-ws-table td .fx-ws-chip { margin-top: 3px; }
.fx-ws-dates { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--fx-muted); }
.fx-ws-rows { list-style: none; margin: 0; padding: 0; }
.fx-ws-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 0; border-top: 1px solid var(--ws-line); font-size: .86rem; }
.fx-ws-row:first-child { border-top: 0; padding-top: 0; }
.fx-ws-row__end { margin-inline-start: auto; }

.fx-ws-sum { margin: 0; display: grid; gap: 7px; font-size: .9rem; }
.fx-ws-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.fx-ws-sum dt { color: var(--fx-muted); }
.fx-ws-sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-ws-sum__total { padding-top: 8px; border-top: 1px dashed var(--ws-line); }
.fx-ws-sum__total dd { font-weight: 800; }
.fx-ws-sum__cod { margin-top: 2px; padding: 9px 11px; border-radius: var(--fx-radius); background: color-mix(in oklab, var(--primary-500) 10%, transparent); }
.fx-ws-sum__cod dt { color: var(--ws-pri); font-weight: 700; }
.fx-ws-sum__cod dd { font-size: 1.1rem; font-weight: 800; color: var(--ws-pri); }

.fx-ws-history { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fx-ws-history__cell {
    --tone: var(--ws-ink);
    display: flex; flex-direction: column; gap: 2px; padding: 9px 8px; border-radius: var(--fx-radius); background: var(--ws-soft); text-align: center;
}
.fx-ws-history__cell b { font-size: 1rem; color: var(--tone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-ws-history__cell span { font-size: .7rem; color: var(--fx-muted); }

/* ---------- 7. فورم وأزرار ---------- */
.fx-ws-input {
    width: 100%; min-width: 0; padding: 8px 11px; border-radius: var(--fx-radius); border: 0; font: inherit; font-size: .9rem;
    color: inherit; background: var(--fx-input-bg); box-shadow: inset 0 0 0 1px var(--fx-input-ring);
    transition: box-shadow var(--fx-dur-fast) var(--fx-ease);
}
.dark .fx-ws-input { background: rgb(255 255 255 / .04); color-scheme: dark; }
.fx-ws-input:hover { box-shadow: inset 0 0 0 1px var(--fx-input-ring-hover); }
.fx-ws-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--fx-focus), 0 0 0 4px var(--fx-focus-glow); }
.fx-ws-input--xs { width: 64px; flex: none; }
.fx-ws-input--sm { width: 130px; flex: none; }
select.fx-ws-input { padding-inline-end: 28px; }

.fx-ws-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: 0; border-radius: var(--fx-radius);
    font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; color: #fff; background: var(--primary-600);
    transition: background var(--fx-dur-fast) var(--fx-ease), transform var(--fx-dur-fast) var(--fx-ease);
}
.fx-ws-btn:hover { background: var(--primary-700); }
.fx-ws-btn:active { transform: scale(.97); }
.fx-ws-btn--ghost { color: var(--ws-pri); background: color-mix(in oklab, var(--primary-500) 10%, transparent); }
.fx-ws-btn--ghost:hover { background: color-mix(in oklab, var(--primary-500) 17%, transparent); }
.fx-ws-btn:disabled { opacity: .6; cursor: progress; }
.fx-ws-btn--danger { background: var(--danger-600); }
.fx-ws-btn--danger:hover { background: var(--danger-700); }
.fx-ws-btn kbd { color: inherit; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .35); }
.fx-ws-linkbtn {
    display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; cursor: pointer;
    font: inherit; font-size: .85rem; font-weight: 600; color: var(--fx-muted);
}
.fx-ws-linkbtn:hover { color: var(--ws-pri); }
.fx-ws-linkbtn svg { font-size: 16px; }
.fx-ws-iconbtn {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--fx-radius); color: var(--fx-muted);
    font-size: 18px; transition: background var(--fx-dur-fast) var(--fx-ease), color var(--fx-dur-fast) var(--fx-ease);
}
.fx-ws-iconbtn:hover { background: var(--fx-hover); color: var(--ws-pri); }
.fx-ws-error {
    display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 12px; border-radius: var(--fx-radius);
    font-size: .86rem; font-weight: 600; color: var(--ws-bad); background: color-mix(in oklab, var(--danger-500) 10%, transparent);
}
.fx-ws-error svg { font-size: 18px; }

.fx-ws-preview {
    display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 11px 14px; border-radius: var(--fx-radius); font-size: .86rem;
    background: color-mix(in oklab, var(--primary-500) 8%, transparent); color: var(--fx-muted);
}
.fx-ws-preview b { color: var(--fx-heading); font-variant-numeric: tabular-nums; }
.fx-ws-preview__total { margin-inline-start: auto; color: var(--primary-700); }
.dark .fx-ws-preview__total { color: var(--primary-300); }
.fx-ws-preview__total b { font-size: 1.05rem; color: inherit; }

/* ============================================================
   وضع المكالمات
   ============================================================ */
.fx-calls__grid { display: grid; gap: var(--ws-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) {
    .fx-calls__grid { grid-template-columns: minmax(0, 1fr) 340px; }
    .fx-calls__side { position: sticky; top: 80px; }
}
.fx-calls__main, .fx-calls__side { display: grid; gap: var(--ws-gap); min-width: 0; }

/* الكارت الكبير */
.fx-calls-card { padding: 20px; animation: fx-ws-in var(--fx-dur-slow) var(--fx-ease) backwards; }
.fx-calls-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fx-calls-card__eyebrow { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-calls-card__tools { display: flex; align-items: center; gap: 4px; }
.fx-calls-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.fx-calls-who__name { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.fx-calls-who__reach { display: grid; gap: 8px; justify-items: end; }
.fx-calls-who__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: .84rem; color: var(--fx-muted); }
.fx-calls-card > .fx-ws-alerts { margin-top: 12px; }

.fx-calls-items { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .fx-calls-items { grid-template-columns: minmax(0, 1fr) 250px; } }
.fx-calls-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.fx-calls-line { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ws-line); }
.fx-calls-line:last-child { border-bottom: 0; }
.fx-calls-line__qty { flex: none; min-width: 2.2em; font-weight: 800; color: var(--ws-pri); font-variant-numeric: tabular-nums; }
.fx-calls-line__name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.fx-calls-line__price { flex: none; font-variant-numeric: tabular-nums; color: var(--fx-muted); white-space: nowrap; }
.fx-calls-money { margin: 0; display: grid; gap: 5px; padding: 12px; border-radius: var(--fx-radius); background: var(--ws-soft); font-size: .86rem; align-content: start; }
.fx-calls-money > div { display: flex; justify-content: space-between; gap: 8px; }
.fx-calls-money dt { color: var(--fx-muted); }
.fx-calls-money dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-calls-money__cod { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--ws-line); align-items: baseline; }
.fx-calls-money__cod dt { color: var(--ws-pri); font-weight: 700; }
.fx-calls-money__cod dd { font-size: 1.3rem; font-weight: 800; color: var(--ws-pri); }

/* أبسيل */
.fx-calls-upsell {
    margin-top: 14px; border-radius: var(--fx-radius);
    background: color-mix(in oklab, var(--success-500) 6%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--success-500) 20%, transparent);
}
.fx-calls-upsell__toggle {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; background: none; cursor: pointer;
    font: inherit; font-weight: 700; font-size: .9rem; color: var(--ws-ok); text-align: start;
}
.fx-calls-upsell__toggle svg { font-size: 18px; }
.fx-calls-upsell__chev { margin-inline-start: auto; transition: transform var(--fx-dur) var(--fx-ease); }
.fx-calls-upsell.is-open .fx-calls-upsell__chev { transform: rotate(180deg); }
.fx-calls-upsell__body { padding: 0 12px 12px; }
.fx-calls-custom { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fx-calls-custom select { flex: 1 1 180px; width: auto; }

/* الفورم */
.fx-calls-form { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fx-calls-field { display: grid; gap: 5px; align-content: start; font-size: .8rem; font-weight: 600; color: var(--fx-muted); }
.fx-calls-field small { font-weight: 500; }
.fx-calls-field--wide { grid-column: 1 / -1; }
.fx-calls-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-calls-pick {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: .82rem; font-weight: 600; color: var(--ws-ink); background: var(--ws-soft);
    box-shadow: inset 0 0 0 1px var(--fx-ring); transition: background var(--fx-dur-fast) var(--fx-ease), color var(--fx-dur-fast) var(--fx-ease);
}
.fx-calls-pick:hover { background: var(--fx-hover); }
.fx-calls-pick[aria-checked="true"] { color: #fff; background: var(--primary-600); box-shadow: none; }

/* النتيجة بضغطة */
.fx-calls-outcomes {
    display: grid; gap: 8px; margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 900px) { .fx-calls-outcomes { grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); } }
.fx-calls-outcome {
    --tone: var(--gray-500);
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 64px; padding: 10px 6px; border: 0; border-radius: var(--fx-radius); cursor: pointer;
    font: inherit; font-weight: 700; font-size: .86rem; line-height: 1.3; text-align: center;
    color: var(--tone); background: color-mix(in oklab, var(--tone) 10%, var(--fx-card));
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 28%, transparent);
    transition: transform var(--fx-dur-fast) var(--fx-ease), background var(--fx-dur-fast) var(--fx-ease), box-shadow var(--fx-dur-fast) var(--fx-ease);
}
.fx-calls-outcome:hover { background: color-mix(in oklab, var(--tone) 17%, var(--fx-card)); }
.fx-calls-outcome:active { transform: scale(.96); }
.fx-calls-outcome:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.fx-calls-outcome:disabled { opacity: .55; cursor: progress; }
.fx-calls-outcome__icon { font-size: 22px; }
.fx-calls-outcome kbd { position: absolute; top: 6px; inset-inline-end: 6px; }
.fx-calls-outcome--success { --tone: var(--ws-ok); }
.fx-calls-outcome--warning { --tone: var(--ws-warn); }
.fx-calls-outcome--info { --tone: var(--ws-info); }
.fx-calls-outcome--danger { --tone: var(--ws-bad); }
.fx-calls-outcome--gray { --tone: var(--fx-muted); }
/* "أكد" هو الزرار الأهم: مليان */
.fx-calls-outcome--success { color: #fff; background: var(--success-600); box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--success-600) 80%, transparent); }
.fx-calls-outcome--success:hover { background: var(--success-700); }
.fx-calls-outcome--success kbd { color: #fff; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .35); }
@media (max-width: 899px) { .fx-calls-outcome--success { grid-column: 1 / -1; min-height: 56px; flex-direction: row; font-size: 1rem; } }

/* أسباب الإلغاء */
.fx-calls-cancel {
    display: grid; gap: 10px; margin-top: 14px; padding: 12px; border-radius: var(--fx-radius);
    background: color-mix(in oklab, var(--danger-500) 6%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--danger-500) 22%, transparent);
    animation: fx-ws-pop 260ms var(--fx-ease) backwards;
}
.fx-calls-cancel__head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--ws-bad); }
.fx-calls-cancel__head svg { font-size: 18px; }
.fx-calls-cancel__head .fx-ws-muted { font-size: .78rem; }
.fx-calls-cancel__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-calls-pick--danger[aria-checked="true"] { background: var(--danger-600); }
.fx-calls-pick[aria-checked="true"] kbd { color: #fff; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .35); }
.fx-calls-cancel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fx-calls-cancel__row .fx-ws-input { flex: 1 1 200px; width: auto; }
.fx-ws-done__wa { margin-inline-start: auto; }

.fx-calls-skip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fx-calls-skip__reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.fx-calls-past { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ws-line); }
.fx-calls-past > summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--fx-muted); margin-bottom: 10px; }

/* "تم ✔" */
.fx-ws-done {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--fx-radius-lg); font-size: .9rem;
    color: var(--ws-ok); background: color-mix(in oklab, var(--success-500) 11%, var(--fx-card));
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--success-500) 26%, transparent);
    animation: fx-ws-pop 420ms var(--fx-ease-spring) backwards;
}
.fx-ws-done--skip, .fx-ws-done--no_answer, .fx-ws-done--busy, .fx-ws-done--postponed { color: var(--ws-info); background: color-mix(in oklab, var(--info-500) 10%, var(--fx-card)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--info-500) 24%, transparent); }
.fx-ws-done--cancelled, .fx-ws-done--wrong_number { color: var(--fx-muted); background: var(--ws-soft); box-shadow: inset 0 0 0 1px var(--fx-ring); }
.fx-ws-done__check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: currentColor; flex: none; }
.fx-ws-done__check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: fx-ws-draw 420ms 120ms var(--fx-ease) backwards; }
.fx-ws-done__text { color: var(--ws-ink); }
.fx-ws-done__text b { color: inherit; }

/* فاضي */
.fx-calls-empty { text-align: center; padding: 44px 20px; display: grid; justify-items: center; gap: 8px; }
.fx-calls-empty h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.fx-calls-empty p { margin: 0; }
.fx-calls-empty__icon { font-size: 52px; color: var(--ws-ok); }
.fx-calls-empty__icon svg { width: 52px; height: 52px; }

/* التحفيز */
.fx-calls-me { position: relative; overflow: hidden; }
.fx-calls-me::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 90px; pointer-events: none;
    background: linear-gradient(180deg, color-mix(in oklab, var(--primary-500) 12%, transparent), transparent);
}
.fx-calls-me > * { position: relative; }
.fx-calls-me__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fx-calls-me__hello { margin: 0; font-size: 1.05rem; font-weight: 800; }
.fx-calls-me__msg { margin: 2px 0 0; font-size: .84rem; color: var(--fx-muted); line-height: 1.6; }
.fx-calls-rank {
    flex: none; display: grid; justify-items: center; padding: 6px 12px; border-radius: var(--fx-radius);
    background: var(--fx-card); box-shadow: 0 0 0 1px var(--fx-ring), var(--fx-shadow-sm);
}
.fx-calls-rank b { font-size: 1.25rem; font-weight: 800; color: var(--ws-pri); line-height: 1.2; font-variant-numeric: tabular-nums; }
.fx-calls-rank small { font-size: .7rem; color: var(--fx-muted); }
.fx-calls-goal { margin-top: 16px; }
.fx-calls-goal__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .84rem; flex-wrap: wrap; }
.fx-calls-goal__top b { font-size: 1.3rem; font-weight: 800; }
.fx-calls-goal__track { margin-top: 8px; height: 10px; border-radius: 999px; background: var(--fxd-track, var(--ws-soft)); overflow: hidden; }
.fx-calls-goal__fill {
    display: block; height: 100%; border-radius: inherit; min-width: 4px;
    background: linear-gradient(90deg, var(--primary-400), var(--success-500));
    transition: width 900ms var(--fx-ease);
    animation: fx-ws-grow 1100ms var(--fx-ease) backwards;
    transform-origin: right;
}
[dir="ltr"] .fx-calls-goal__fill { transform-origin: left; }
.fx-calls-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fx-calls-kpi { display: grid; gap: 2px; padding: 10px; border-radius: var(--fx-radius); background: var(--ws-soft); align-content: center; }
.fx-calls-kpi__val { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-calls-kpi__label { font-size: .72rem; color: var(--fx-muted); }
.fx-calls-kpi--ring { grid-template-columns: auto 1fr; column-gap: 10px; color: var(--ws-pri); }
.fx-calls-kpi--ring .fx-ring { grid-row: span 2; width: 40px; height: 40px; }
.fx-calls-kpi--ring .fx-calls-kpi__val { color: var(--ws-ink); }
.fx-calls-kpi--money { background: color-mix(in oklab, var(--success-500) 10%, transparent); }
.fx-calls-kpi--money .fx-calls-kpi__val { color: var(--ws-ok); }
.fx-calls-streak { margin: 12px 0 0; padding: 7px 12px; border-radius: var(--fx-radius); font-size: .85rem; background: color-mix(in oklab, var(--warning-400) 14%, transparent); }

/* الطابور */
.fx-calls-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fx-calls-count { padding: 4px 10px; border-radius: 999px; font-size: .78rem; background: var(--ws-soft); }
.fx-calls-count b { font-variant-numeric: tabular-nums; }
.fx-calls-count--danger { color: var(--ws-bad); background: color-mix(in oklab, var(--danger-500) 11%, transparent); }
.fx-calls-count--muted { color: var(--fx-muted); }
.fx-calls-next { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.fx-calls-next__item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--fx-radius); background: none;
    cursor: pointer; font: inherit; text-align: start; transition: background var(--fx-dur-fast) var(--fx-ease);
}
.fx-calls-next__item:hover { background: var(--fx-hover); }
.fx-calls-next__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--info-500); }
.fx-calls-next__dot.is-due { background: var(--danger-500); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger-500) 20%, transparent); }
.fx-calls-next__main { flex: 1; min-width: 0; display: grid; font-size: .84rem; }
.fx-calls-next__main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-calls-next__main .fx-ws-muted { font-size: .74rem; }
.fx-calls-next__total { flex: none; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-calls-keys { margin: 0; font-size: .72rem; color: var(--fx-muted); line-height: 2.2; text-align: center; }
.fx-calls-keys kbd { margin-inline-start: 8px; }
@media (hover: none) { .fx-calls-keys, .fx-calls-outcome kbd, .fx-calls-upsell__toggle kbd, .fx-calls-skip kbd, .fx-calls-cancel kbd, .fx-ws-wabtn kbd { display: none; } }

/* احتفال */
.fx-ws-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.fx-ws-cheer {
    position: fixed; z-index: 61; top: 84px; left: 50%; translate: -50% 0; max-width: calc(100vw - 32px);
    padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem; color: #fff; text-align: center;
    background: linear-gradient(90deg, var(--primary-600), var(--success-600));
    box-shadow: 0 16px 40px -14px color-mix(in oklab, var(--primary-700) 70%, transparent);
    animation: fx-ws-cheer 3.4s var(--fx-ease) both; pointer-events: none;
}
.fx-ws-cheer--big { font-size: 1.15rem; padding: 14px 26px; }

/* ============================================================
   صفحة الأوردر
   ============================================================ */
.fx-od { display: grid; gap: var(--ws-gap); }
.fx-od-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.fx-od-hero__main { display: grid; gap: 10px; min-width: 0; }
.fx-od-hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-od-hero__number { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; }
.fx-od-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-od-hero__meta .fx-pg-agent__sub { font-size: .7rem; }
.fx-od-hero__money { display: grid; justify-items: end; gap: 2px; text-align: end; }
.fx-od-hero__label { font-size: .78rem; color: var(--fx-muted); }
.fx-od-hero__total { font-size: 1.7rem; font-weight: 800; color: var(--ws-pri); font-variant-numeric: tabular-nums; line-height: 1.2; }

/* تايم لاين الحالة */
.fx-od-steps { list-style: none; margin: 0; display: flex; padding: 18px 12px; overflow-x: auto; }
.fx-od-step {
    --tone: var(--gray-400);
    position: relative; flex: 1 0 110px; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 6px;
}
.fx-od-step:not(:last-child)::after {
    content: ""; position: absolute; top: 15px; inset-inline-start: calc(50% + 20px); width: calc(100% - 40px); height: 2px;
    background: var(--ws-line);
}
.fx-od-step--done:not(:last-child)::after { background: color-mix(in oklab, var(--primary-500) 55%, transparent); }
.fx-od-step__dot {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 16px;
    color: var(--tone); background: var(--fx-card); box-shadow: inset 0 0 0 2px var(--tone);
}
.fx-od-step--done { --tone: var(--primary-600); }
.fx-od-step--done .fx-od-step__dot { color: #fff; background: var(--primary-600); box-shadow: none; }
.fx-od-step--current { --tone: var(--warning-500); }
.fx-od-step--current .fx-od-step__dot { box-shadow: inset 0 0 0 2px var(--tone), 0 0 0 5px color-mix(in oklab, var(--tone) 22%, transparent); animation: fx-ws-pulse 2s var(--fx-ease) infinite; }
.fx-od-step--good { --tone: var(--success-600); }
.fx-od-step--good .fx-od-step__dot { color: #fff; background: var(--success-600); box-shadow: none; }
.fx-od-step--bad { --tone: var(--danger-600); }
.fx-od-step--bad .fx-od-step__dot { color: #fff; background: var(--danger-600); box-shadow: none; }
.fx-od-step--todo .fx-od-step__dot { opacity: .55; }
.dark .fx-od-step--done { --tone: var(--primary-400); }
.fx-od-step__label { font-size: .85rem; font-weight: 700; }
.fx-od-step--todo .fx-od-step__label { color: var(--fx-muted); font-weight: 600; }
.fx-od-step__time { font-size: .74rem; color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fx-od-step__sub { font-size: .72rem; color: var(--tone); max-width: 150px; overflow-wrap: anywhere; }
.fx-od-step--done .fx-od-step__sub { color: var(--fx-muted); }

.fx-od-grid { display: grid; gap: var(--ws-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .fx-od-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.fx-od-cust { margin: -6px 0 12px; font-size: .82rem; }
.fx-od-wa { margin-top: 10px; }
.fx-od-col { display: grid; gap: var(--ws-gap); min-width: 0; }
@media (max-width: 1099px) { .fx-od-col--side { order: -1; } }

/* ---------- الموبايل ---------- */
@media (max-width: 640px) {
    .fx-ws { --ws-gap: 12px; }
    .fx-ws-card { padding: 14px; }
    .fx-calls-card { padding: 14px; }
    .fx-calls-who__name { font-size: 1.3rem; }
    .fx-calls-who { align-items: flex-start; }
    .fx-calls-who__reach { justify-items: start; }
    .fx-ws-done { flex-wrap: wrap; }
    .fx-pick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
    .fx-pick__card { padding: 8px 9px; }
    .fx-pick__name { font-size: .8rem; }
    .fx-calls-outcomes {
        position: sticky; bottom: 8px; z-index: 5; margin-inline: -6px; padding: 8px; border-radius: var(--fx-radius-lg);
        background: var(--fx-glass-bg-strong); box-shadow: 0 0 0 1px var(--fx-ring), var(--fx-shadow-lg);
        -webkit-backdrop-filter: var(--fx-glass-blur); backdrop-filter: var(--fx-glass-blur);
    }
    .fx-calls-outcomes { gap: 6px; }
    .fx-calls-outcome { min-height: 42px; padding: 6px 4px; flex-direction: row; gap: 5px; font-size: .78rem; }
    .fx-calls-outcome--success { min-height: 48px; }
    .fx-calls-outcome__icon { font-size: 16px; }
    .fx-calls-outcome kbd { display: none; }
    .fx-calls__side { order: -1; }
    .fx-calls-queue, .fx-calls-keys { display: none; }
    .fx-calls-me .fx-calls-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .fx-calls-kpi { padding: 8px 6px; text-align: center; justify-items: center; }
    .fx-calls-kpi--ring { grid-template-columns: 1fr; }
    .fx-calls-kpi--ring .fx-ring { display: none; }
    .fx-calls-kpi__val { font-size: 1rem; }
    .fx-ws-history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-ws-table--stack thead, .fx-ws-table thead { display: none; }
    .fx-ws-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--ws-line); }
    .fx-ws-table td { padding: 0; border: 0; }
    .fx-ws-table td:first-child { grid-column: 1 / -1; }
    .fx-ws-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--fx-muted); }
    .fx-ws-table td:first-child::before { display: none; }
    .fx-od-hero__money { justify-items: start; text-align: start; }
    .fx-od-step { flex-basis: 84px; }
    .fx-od-step__sub { display: none; }
}

/* ---------- الحركة ---------- */
@keyframes fx-ws-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fx-ws-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes fx-ws-draw { from { stroke-dashoffset: 24; } }
@keyframes fx-ws-grow { from { transform: scaleX(0); } }
@keyframes fx-ws-pulse { 50% { box-shadow: inset 0 0 0 2px var(--tone), 0 0 0 9px color-mix(in oklab, var(--tone) 0%, transparent); } }
@keyframes fx-ws-cheer {
    0% { opacity: 0; transform: translateY(-14px) scale(.9); }
    10%, 82% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .fx-ws *, .fx-ws-cheer { animation: none !important; transition: none !important; }
    .fx-ws-cheer { opacity: 1; }
}

.fx-ws-district { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.fx-ws-district__hint { font-size: .72rem; color: var(--ws-warn); }
.fx-calls-deposit__row { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
