/* ─────────────────────────────────────────────────────────────────────────────
   HOMEi Offers & incentives — «العروض والحوافز» on the house design system
   (OFFERS-UI-10, the canvas «العروض والحوافز — الإعدادات» v2 08/11/2026:
   boards Main · Dark · Ladder · Ledger · Try · Pane360 · Phone · Broker ·
   Catalog). This sheet is the canvas's own `of.css`, kept class for class
   (prefix `of-`) so a board and its screen read the same, minus the token
   block: the colours are the house tokens (--lm-d-* in resources/css/
   tokens.css, light :root / dark .dark) — no colour literal here, the ratchet
   holds this sheet at zero. Text never under 12px (--ho-text-xs). Logical
   properties only (RTL/LTR). Font inherited (IBM Plex Sans Arabic).

   Two scopes:
     .of-page  — the Filament page class (OnCanvasLook): paints the ground and
                 restyles Filament's own pieces as the canvas draws them — the
                 stats widget as the numbers strip, the list tabs as navy pills,
                 the table as the one ruled card, sections as quiet cards, the
                 slide-over and modals as the side panel.
     .of       — a hand-written view's root (the sheet, «جرّب», the ledger's
                 panel, the caps row, the ladders, the picker): the canvas's
                 components below apply inside it, teleported or not.

   Registered as a Filament asset (`offers-stylesheet`): a change here ships
   NOTHING until `php artisan filament:assets` is run and public/css/app/ is
   committed in the same change.
   ───────────────────────────────────────────────────────────────────────── */

/* ── 1. the ground and the page head ── */
body:has(.of-page) { background: var(--lm-d-page); }
body:has(.of-page) .fi-main-ctn { background: transparent; }
.of-page .fi-header-heading { font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--lm-d-ink); }
.of-page .fi-header-subheading { margin-block-start: 4px; font-size: 14px; color: var(--lm-d-muted); max-inline-size: 72ch; }
.of-page .fi-breadcrumbs-item-label, .of-page .fi-breadcrumbs-item-separator { font-size: 13px; color: var(--lm-d-muted); }

/* the page's header actions (Filament): outline buttons, the main decision is the one orange */
.of-page .fi-header-actions-ctn .fi-btn {
    min-block-size: 42px;
    border-radius: 10px;
    padding-inline: 16px;
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    box-shadow: inset 0 0 0 1px var(--lm-d-control-edge);
    font-weight: 600;
}
.of-page .fi-header-actions-ctn .fi-btn .fi-icon { color: currentColor; }
.of-page .fi-header-actions-ctn .fi-btn:is(.fi-color-primary, .fi-color-success) { background: var(--lm-d-accent); color: var(--lm-d-on-accent); box-shadow: 0 4px 12px var(--lm-d-accent-soft); }
.of-page .fi-header-actions-ctn .fi-btn.fi-color-danger { color: var(--lm-d-danger); box-shadow: inset 0 0 0 1px var(--lm-d-gap-edge); }

/* ── 2. the numbers strip — Filament's stats widget drawn as the canvas's strip ──
   Filament 4.11 renders the stats as: .fi-wi-stats-overview > .fi-sc (one column) > .fi-grid-col > .fi-sc-component >
   .fi-section (not contained) > .fi-section-content-ctn > .fi-section-content.fi-grid (--cols-lg from getColumns) >
   .fi-grid-col > .fi-sc-component > .fi-wi-stats-overview-stat. The strip is that section: the inner grid's own columns
   are kept, a 1px gap over the divider colour draws the lines, the cells sit on the surface. */
.of-page .fi-wi-stats-overview .fi-section { background: var(--lm-d-divider); border: 1px solid var(--lm-d-border); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); overflow: hidden; }
.of-page .fi-wi-stats-overview .fi-section-content-ctn { background: transparent; }
.of-page .fi-wi-stats-overview .fi-section-content.fi-grid { gap: 1px; padding: 0; }
.of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col { min-inline-size: 0; background: var(--lm-d-surface); }
/* the strip is four columns (the ledger's 4×2): the last cell takes what is left of its row, so no empty slot shows */
.of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col:last-child:nth-child(4n+3) { grid-column: span 2 / span 2; }
.of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col:last-child:nth-child(4n+2) { grid-column: span 3 / span 3; }
.of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col:last-child:nth-child(4n+1) { grid-column: span 4 / span 4; }
.of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col > .fi-sc-component, .of-page .fi-wi-stats-overview-stat { block-size: 100%; }
.of-page .fi-wi-stats-overview-stat {
    background: var(--lm-d-surface);
    border-radius: 0;
    box-shadow: none;
    padding: 12px 18px;
    min-inline-size: 0;
}
.of-page .fi-wi-stats-overview-stat-label { font-size: 13px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-page .fi-wi-stats-overview-stat-value { font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--lm-d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-page .fi-wi-stats-overview-stat-description { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-page .fi-wi-stats-overview-stat-description .fi-icon { inline-size: 16px; block-size: 16px; }
.of-page .fi-page-header-widgets, .of-page .fi-page-footer-widgets { gap: 12px; }

/* ── 3. the list tabs as the canvas's view pills — navy when on ── */
.of-page .fi-tabs { gap: 8px; padding: 0; background: transparent; box-shadow: none; border-radius: 0; justify-content: flex-start; flex-wrap: wrap; }
.of-page .fi-tabs .fi-tabs-item { min-block-size: 40px; padding-inline: 16px; border-radius: 20px; border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); color: var(--lm-d-ink); font-weight: 600; font-size: 14px; }
.of-page .fi-tabs .fi-tabs-item:hover { border-color: var(--lm-d-control-edge); background: var(--lm-d-surface); }
.of-page .fi-tabs .fi-tabs-item .fi-tabs-item-label { color: inherit; }
.of-page .fi-tabs .fi-tabs-item .fi-badge { background: transparent; box-shadow: none; color: var(--lm-d-muted); font-variant-numeric: tabular-nums; padding-inline: 0; }
.of-page .fi-tabs .fi-tabs-item.fi-active { background: var(--lm-d-tab-on-bg); border-color: var(--lm-d-tab-on-bg); color: var(--lm-d-tab-on-ink); }
.of-page .fi-tabs .fi-tabs-item.fi-active :is(.fi-tabs-item-label, .fi-icon) { color: var(--lm-d-tab-on-ink); }
.of-page .fi-tabs .fi-tabs-item.fi-active .fi-badge { color: var(--lm-d-tab-on-count); }

/* ── 4. the table as the one ruled card (3px info rule) ── */
.of-page .fi-ta-ctn { background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-block-start: 3px solid var(--lm-d-info); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); overflow: hidden; }
.of-page .fi-ta-header-toolbar { padding: 10px 18px; border-block-end: 1px solid var(--lm-d-divider); }
.of-page .fi-ta-header-cell { font-size: 13.5px; font-weight: 700; color: var(--lm-d-ink); white-space: nowrap; }
.of-page .fi-ta-header-cell-sort-btn { color: inherit; font-weight: inherit; }
.of-page .fi-ta-table thead tr { border-block-end: 1px solid var(--lm-d-border); }
.of-page .fi-ta-cell { font-size: 14px; color: var(--lm-d-ink); }
.of-page .fi-ta-row { border-block-end: 1px solid var(--lm-d-divider); }
.of-page .fi-ta-row:hover > .fi-ta-cell { background: var(--lm-d-hover); }
.of-page .fi-ta-row.fi-selected > .fi-ta-cell { background: var(--lm-d-row-hl); }
.of-page .fi-ta-text-item-label { color: inherit; }
.of-page .fi-ta-actions .fi-link { font-weight: 600; }
.of-page .fi-ta-empty-state-heading { color: var(--lm-d-ink); }
.of-page .fi-ta-empty-state-description { color: var(--lm-d-muted); }
.of-page .fi-pagination { padding: 10px 18px; }

/* ── 5. sections as quiet cards; the slide-over and the modal as the side panel ── */
.of-page .fi-section { background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); }
.of-page .fi-section.of-ruled { border-block-start: 3px solid var(--lm-d-info); }
.of-page .fi-section-header { padding: 12px 18px; border-block-end: 1px solid var(--lm-d-divider); }
.of-page .fi-section-header-heading { font-size: 20px; font-weight: 700; color: var(--lm-d-ink); }
.of-page .fi-section-header-description { font-size: 14px; color: var(--lm-d-muted); }
.of-page .fi-section-content { padding: 14px 18px; }
.of-page .fi-section-content-ctn { background: transparent; }
.fi-modal-window:has(.of) { border-radius: 16px; box-shadow: 0 12px 40px var(--lm-d-sheet-shadow); }
.fi-modal-window:has(.of) .fi-modal-header { padding: 14px 18px 12px; border-block-end: 1px solid var(--lm-d-divider); }
.fi-modal-window:has(.of) .fi-modal-heading { font-size: 18px; font-weight: 700; color: var(--lm-d-ink); }
.fi-modal-window:has(.of) .fi-modal-description { margin-block-start: 2px; font-size: 13px; color: var(--lm-d-muted); }
.fi-modal-window:has(.of) .fi-modal-content { padding: 14px 18px; }
.fi-modal-window:has(.of) .fi-modal-footer { padding: 12px 18px; border-block-start: 1px solid var(--lm-d-divider); background: var(--lm-d-surface); }
.fi-modal-window.fi-modal-slide-over:has(.of) { border-radius: 0; border-start-start-radius: 20px; border-end-start-radius: 20px; }
.fi-modal-window:has(.of) .fi-modal-footer .fi-btn:is(.fi-color-primary, .fi-color-success) { background: var(--lm-d-accent); color: var(--lm-d-on-accent); }

/* ── 6. the canvas's own components — inside any `.of` root ── */
.of { color: var(--lm-d-ink); font-size: 14px; line-height: 1.5; max-inline-size: 100%; overflow-x: clip; }
.of, .of * { box-sizing: border-box; }
.of bdi { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.of a { color: inherit; text-decoration: none; }
.of :focus-visible { outline: 2px solid var(--lm-d-accent); outline-offset: 2px; }
.of button, .of input, .of select { font: inherit; color: inherit; }
.of .is-muted { color: var(--lm-d-muted); }
.of .is-ok { color: var(--lm-d-ok); }
.of .is-warn { color: var(--lm-d-warn); }
.of .is-danger { color: var(--lm-d-danger); }
.of .is-accent { color: var(--lm-d-accent-ink); }
.of .is-info { color: var(--lm-d-info); }
.of .is-ai { color: var(--lm-d-ai); }
.of .is-sm { font-size: 12.5px; }
.of .is-b { font-weight: 700; }
.of-stack { display: flex; flex-direction: column; gap: 14px; }
.of-lead { margin: 0; color: var(--lm-d-muted); }

/* page wrap + head (hand-written pages) */
.of-wrap { max-inline-size: 1440px; margin-inline: auto; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.of-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.of-h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; }
.of-sub { margin: 4px 0 0; font-size: 14px; color: var(--lm-d-muted); }
.of-head-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-inline-start: auto; }
.of-ver { font-size: 13px; color: var(--lm-d-muted); }
.of-ver b { color: var(--lm-d-ink); }
.of-crumb { font-size: 13px; color: var(--lm-d-muted); display: flex; gap: 6px; align-items: center; }

/* buttons */
.of-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 42px; padding-inline: 16px; border-radius: 10px; border: 1px solid var(--lm-d-control-edge); background: var(--lm-d-surface); color: var(--lm-d-ink); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.of-btn:hover { background: var(--lm-d-hover); }
.of-btn.is-primary { background: var(--lm-d-accent); border-color: var(--lm-d-accent); color: var(--lm-d-on-accent); }
.of-btn.is-primary:hover { background: var(--lm-d-accent); opacity: .92; }
.of-btn.is-danger { color: var(--lm-d-danger); border-color: var(--lm-d-gap-edge); }
.of-btn.is-sm { min-block-size: 36px; padding-inline: 14px; font-size: 13.5px; }
.of-btn.is-ghost { border-color: transparent; background: transparent; }
.of-btn:disabled { opacity: .6; cursor: default; }
.of-ic { inline-size: 18px; block-size: 18px; flex: none; }

/* numbers strip (hand-written) */
.of-strip { display: grid; grid-template-columns: repeat(var(--of-cols, 6), minmax(0, 1fr)); gap: 1px; background: var(--lm-d-divider); border: 1px solid var(--lm-d-border); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); overflow: hidden; }
.of-sc { padding: 12px 18px; background: var(--lm-d-surface); min-inline-size: 0; }
.of-kl { font-size: 13px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-kv { font-size: 26px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-kv .u { font-size: 14px; font-weight: 500; }
.of-kv.is-text { font-size: 16px; font-weight: 600; }
/* a narrow aside (the ladders' impact) lets a mini card's words wrap instead of clipping them */
.of-aside .of-mini :is(.of-kl, .of-ks) { white-space: normal; }
.of-ks { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the one ruled card */
.of-card { background: var(--lm-d-surface); border: 1px solid var(--lm-d-border); border-block-start: 3px solid var(--lm-d-info); border-radius: 16px; box-shadow: 0 1px 2px var(--lm-d-shadow); display: flex; flex-direction: column; overflow: hidden; }
.of-card.is-plain { border-block-start: 1px solid var(--lm-d-border); }
.of-card.is-accent { border-color: var(--lm-d-accent-line); border-block-start-color: var(--lm-d-accent); }
.of-ch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; border-block-end: 1px solid var(--lm-d-divider); }
.of-ct { font-size: 20px; font-weight: 700; margin: 0; }
.of-ct span { font-size: 14px; font-weight: 500; color: var(--lm-d-muted); }
.of-ct.is-sm { font-size: 16px; }
.of-cb { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }

/* view pills (tabs): navy when on */
.of-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.of-pill { display: inline-flex; align-items: center; gap: 8px; min-block-size: 40px; padding-inline: 16px; border-radius: 20px; border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); color: var(--lm-d-ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.of-pill:hover { border-color: var(--lm-d-control-edge); }
.of-pill.is-on { background: var(--lm-d-tab-on-bg); border-color: var(--lm-d-tab-on-bg); color: var(--lm-d-tab-on-ink); }
.of-pill .n { font-variant-numeric: tabular-nums; color: var(--lm-d-muted); }
.of-pill.is-on .n { color: var(--lm-d-tab-on-count); }
.of-dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--lm-d-info); flex: none; }
.of-pill.is-on .of-dot { background: var(--lm-d-accent); }

/* chips + tags */
.of-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.of-chip { display: inline-flex; align-items: center; gap: 6px; min-block-size: 34px; padding-inline: 12px; border: 1px solid var(--lm-d-border); border-radius: 17px; background: var(--lm-d-surface); color: var(--lm-d-muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.of-chip b { color: var(--lm-d-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.of-chip.is-on { background: var(--lm-d-info-soft); border-color: var(--lm-d-info-soft); color: var(--lm-d-info); }
.of-chip.is-on b { color: var(--lm-d-info); }
.of-chip.is-lock { color: var(--lm-d-muted); background: var(--lm-d-quiet-bg); border-color: var(--lm-d-quiet-bg); cursor: default; }
.of-tag { display: inline-flex; align-items: center; gap: 6px; min-block-size: 26px; padding-inline: 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.of-tag.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }
.of-tag.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }
.of-tag.is-danger { background: var(--lm-d-danger-soft); color: var(--lm-d-danger); }
.of-tag.is-info { background: var(--lm-d-info-soft); color: var(--lm-d-info); }
.of-tag.is-quiet { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
.of-tag.is-ai { background: var(--lm-d-ai-bg); color: var(--lm-d-ai); border: 1px solid var(--lm-d-border); }
.of-tag.is-accent { background: var(--lm-d-accent-soft); color: var(--lm-d-accent-ink); }

/* toolbar + search */
.of-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 18px; border-block-end: 1px solid var(--lm-d-divider); }
.of-search { margin-inline-start: auto; inline-size: min(320px, 100%); block-size: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); color: var(--lm-d-muted); }
.of-search input { flex: 1; min-inline-size: 0; block-size: 34px; border: 0; outline: 0; background: transparent; color: var(--lm-d-ink); font-size: 13.5px; box-shadow: none; }
.of-search input::placeholder { color: var(--lm-d-muted); }

/* split: list + 360 panel */
.of-split { display: flex; flex-wrap: wrap; align-items: flex-start; }
.of-list { flex: 999 1 560px; min-inline-size: 0; }
.of-panel { flex: 1 1 360px; max-inline-size: 100%; inline-size: 360px; border-inline-start: 1px solid var(--lm-d-divider); display: flex; flex-direction: column; background: var(--lm-d-surface); position: sticky; inset-block-start: 12px; max-block-size: calc(100dvh - 120px); min-block-size: 420px; }
.of-ph { padding: 14px 18px 12px; border-block-end: 1px solid var(--lm-d-divider); }
.of-pt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.of-px { margin-inline-start: auto; inline-size: 32px; block-size: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--lm-d-border); background: var(--lm-d-surface); color: var(--lm-d-muted); font-size: 13px; cursor: pointer; }
.of-ps { margin-block-start: 2px; font-size: 13px; color: var(--lm-d-muted); }
.of-pb { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.of-pf { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-block-start: 1px solid var(--lm-d-divider); background: var(--lm-d-surface); }
.of-pf .of-btn { flex: 1 1 auto; }
.of-pf.is-bare { padding-inline: 0; }

/* table (hand-written) */
.of-table { inline-size: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.of-table th { text-align: start; padding: 10px 12px; color: var(--lm-d-ink); font-weight: 700; font-size: 13.5px; border-block-end: 1px solid var(--lm-d-border); white-space: nowrap; }
.of-table td { padding: 10px 12px; border-block-end: 1px solid var(--lm-d-divider); vertical-align: middle; }
.of-table tbody tr:hover > td { background: var(--lm-d-hover); }
.of-table tbody tr.is-open > td { background: var(--lm-d-row-hl); }
.of-table tbody tr.is-open > td:first-child { box-shadow: inset -3px 0 0 var(--lm-d-accent); }
.of-table td.is-name { font-weight: 700; }
.of-table tfoot td { background: var(--lm-d-info-soft); font-weight: 700; border: 0; }
.of-table.is-compact th, .of-table.is-compact td { padding: 6px 10px; }
.of-table thead.is-sticky th { position: sticky; inset-block-start: 0; background: var(--lm-d-surface); z-index: 1; }
.of-dim { color: var(--lm-d-muted); font-size: 12.5px; }
.of-scroll { overflow-x: auto; min-inline-size: 0; max-inline-size: 100%; }

/* fields */
.of-sec { display: flex; flex-direction: column; gap: 8px; }
.of-sec-t { font-size: 13px; font-weight: 700; color: var(--lm-d-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.of-row { display: flex; align-items: center; gap: 10px; min-block-size: 40px; }
.of-row.is-tight { min-block-size: 0; }
.of-row .l { flex: 1 1 auto; font-size: 13.5px; display: flex; align-items: center; gap: 6px; min-inline-size: 0; flex-wrap: wrap; }
.of-row .v { font-weight: 600; text-align: end; }
.of-i { display: inline-flex; align-items: center; justify-content: center; inline-size: 16px; block-size: 16px; border-radius: 50%; border: 1px solid var(--lm-d-control-edge); color: var(--lm-d-subtle); font-size: var(--ho-text-xs); font-weight: 700; flex: none; }
.of-in { display: inline-flex; align-items: center; gap: 6px; block-size: 38px; padding-inline: 10px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); min-inline-size: 0; }
.of-in input { inline-size: 64px; border: 0; outline: 0; background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: none; padding: 0; }
.of-in input:focus { box-shadow: none; }
.of-in .u { font-size: 12.5px; color: var(--lm-d-muted); white-space: nowrap; }
.of-in.is-wide input { inline-size: 120px; }
.of-sel { display: inline-flex; align-items: center; gap: 8px; block-size: 38px; padding-inline: 12px; border: 1px solid var(--lm-d-control-edge); border-radius: 10px; background: var(--lm-d-surface); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.of-sel.is-sm { block-size: 32px; }
.of-sel .car { inline-size: 12px; block-size: 12px; color: var(--lm-d-subtle); }
.of-in.is-lock, .of-sel.is-lock { background: var(--lm-d-quiet-bg); border-color: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
/* toggle — a state drawn, never a fake control: the press is the Filament action beside it */
.of-tg { position: relative; display: inline-block; inline-size: 44px; block-size: 24px; border-radius: 12px; background: var(--lm-d-control-edge); border: 0; flex: none; padding: 0; }
.of-tg::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--lm-d-surface); box-shadow: 0 1px 2px var(--lm-d-sheet-shadow); transition: transform .15s; }
.of-tg.is-on { background: var(--lm-d-accent); }
.of-tg.is-on::after { transform: translateX(-20px); }
[dir="ltr"] .of-tg.is-on::after { transform: translateX(20px); }
.of-tg.is-quiet.is-on { background: var(--lm-d-tab-on-bg); }
.of-tg.is-lock { opacity: .55; }

/* ai box */
.of-ai { border: 1px solid var(--lm-d-border); background: var(--lm-d-ai-bg); color: var(--lm-d-ai-ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.of-ai .t { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lm-d-ai); }

/* note */
.of-note { font-size: 13px; padding: 10px 14px; border-radius: 12px; background: var(--lm-d-info-soft); color: var(--lm-d-info); }
.of-note.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }
.of-note.is-quiet { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }

/* timeline */
.of-tl { display: flex; flex-direction: column; gap: 0; position: relative; padding-inline-start: 22px; }
.of-tl::before { content: ""; position: absolute; inset-inline-start: 7px; inset-block: 6px; border-inline-start: 2px solid var(--lm-d-divider); }
.of-tli { position: relative; padding: 6px 0 14px; }
.of-tli:last-child { padding-block-end: 2px; }
.of-tli::before { content: ""; position: absolute; inset-inline-start: -19px; inset-block-start: 10px; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--lm-d-dot); border: 2px solid var(--lm-d-surface); }
.of-tli.is-done::before { background: var(--lm-d-ok); }
.of-tli.is-now::before { background: var(--lm-d-accent); }
.of-tli.is-money::before { background: var(--lm-d-warn); }
.of-tli.is-end::before { background: var(--lm-d-divider); }
.of-tli .d { font-size: 12.5px; color: var(--lm-d-muted); }
.of-tli .w { font-weight: 600; }
.of-tli .w a { color: var(--lm-d-info); font-weight: 600; }

/* bar */
.of-bar { block-size: 8px; border-radius: 4px; background: var(--lm-d-quiet-bg); overflow: hidden; }
.of-bar i { display: block; block-size: 100%; background: var(--lm-d-info); border-radius: 4px; }
.of-bar.is-warn i { background: var(--lm-d-warn); }
.of-bar.is-danger i { background: var(--lm-d-danger); }
.of-bar.is-accent i { background: var(--lm-d-accent); }

/* mini cards grid */
.of-grid { display: grid; grid-template-columns: repeat(var(--g, 2), minmax(0, 1fr)); gap: 12px; }
.of-mini { border: 1px solid var(--lm-d-border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--lm-d-surface); min-inline-size: 0; }
.of-mini .t { font-weight: 700; display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.of-mini.is-accent { border-color: var(--lm-d-accent-line); background: var(--lm-d-row-hl); }
.of-mini.is-quiet { background: var(--lm-d-quiet-bg); border-color: var(--lm-d-quiet-bg); }
.of-mini.is-scenario { border-color: var(--lm-d-info-soft); background: var(--lm-d-info-soft); }

/* trigger chips: day vs event */
.of-trig { display: inline-flex; align-items: center; gap: 6px; min-block-size: 28px; padding-inline: 10px; border-radius: 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--lm-d-quiet-bg); color: var(--lm-d-ink); }
.of-trig.is-event { background: var(--lm-d-info-soft); color: var(--lm-d-info); }
.of-trig .k { font-weight: 500; color: var(--lm-d-muted); }

/* step rows (ladder) */
.of-step { display: grid; grid-template-columns: 44px 170px 1.2fr 1.6fr 110px 170px 44px; gap: 10px; align-items: center; padding: 10px 12px; border-block-end: 1px solid var(--lm-d-divider); }
.of-step.is-5 { grid-template-columns: 44px 170px 1.2fr 1.6fr 170px; }
.of-step.is-branch { background: var(--lm-d-hover); padding-inline-start: 28px; }
.of-step.is-branch .num { background: var(--lm-d-info-soft); color: var(--lm-d-info); font-size: 14px; }
.of-step .if { font-size: 12.5px; color: var(--lm-d-info); font-weight: 600; }
.of-step.is-h { font-size: 13px; font-weight: 700; color: var(--lm-d-muted); border-block-end: 1px solid var(--lm-d-border); }
.of-step .num { inline-size: 30px; block-size: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lm-d-quiet-bg); font-weight: 700; font-size: 13px; }
.of-step.is-money .num { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }
.of-step.is-end .num { background: var(--lm-d-divider); color: var(--lm-d-muted); }
.of-step .pol { font-size: 12.5px; color: var(--lm-d-muted); }
.of-step .pol b { color: var(--lm-d-ink); }
.of-step .sw { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.of-handle { color: var(--lm-d-handle); cursor: grab; }

/* the caps row under the ledger strip */
.of-caps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.of-cap { display: inline-flex; align-items: center; gap: 8px; }
.of-cap .of-bar { inline-size: 64px; }

/* «جرّب» */
.of-try-total { font-size: 20px; font-weight: 700; }
.of-try-col { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
.of-try-col.is-scenario { border: 1px solid var(--lm-d-info-soft); border-radius: 12px; padding: 12px 14px; background: var(--lm-d-info-soft); }
.of-try-col.is-scenario .of-mini { background: var(--lm-d-surface); }

/* the ladder pages: the reading beside its impact (the canvas's Ladder and Broker boards) */
.of-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.of-main { flex: 999 1 560px; min-inline-size: 0; display: flex; flex-direction: column; gap: 16px; }
.of-aside { flex: 1 1 340px; max-inline-size: 420px; position: sticky; inset-block-start: 12px; }
.of-picker-list { max-block-size: 60vh; overflow-y: auto; }

/* ── 7. the board and the ledger (OFFERS-UI-12): one ruled card, the list, the item opened beside it ── */
.of-board-split { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.of-board-split.has-open { grid-template-columns: minmax(0, 1fr) 380px; }
.of-board-split:not(.has-open) .of-board-panel { display: none; }
.of-board-list { min-inline-size: 0; }
.of-board-split.has-open .of-board-list { border-inline-end: 1px solid var(--lm-d-divider); }
.of-board-panel { position: sticky; inset-block-start: 12px; display: flex; flex-direction: column; background: var(--lm-d-surface); max-block-size: calc(100dvh - 120px); min-block-size: 420px; }
.of-board-panel .of-sheet-h { display: none; }
.of-board-panel .of-pf .of-btn { flex: 1 1 0; }
/* the Filament table flattened into the card */
.of-page .of-board-list .fi-ta-ctn { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.of-board-list .fi-ta-header-ctn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-inline: 18px; border-block-end: 1px solid var(--lm-d-divider); }
.of-board-list .fi-ta-header-ctn > * { border: 0; }
.of-board-list .fi-ta-header-toolbar { padding: 8px 0; flex: 0 1 auto; border: 0; margin-inline-start: auto; }
.of-board-list .fi-ta-search-field .fi-input-wrp { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--lm-d-control-edge); background: var(--lm-d-surface); }
.of-board-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; flex: 1 1 auto; min-inline-size: 0; }
.of-board-list .fi-ta-row { cursor: pointer; }
.of-board-list .fi-ta-row.of-row-open > td { background: var(--lm-d-row-hl); }
.of-board-list .fi-ta-row.of-row-open > td:first-child { box-shadow: inset -3px 0 0 var(--lm-d-accent); }
[dir='ltr'] .of-board-list .fi-ta-row.of-row-open > td:first-child { box-shadow: inset 3px 0 0 var(--lm-d-accent); }
.of-board-list .fi-pagination { padding-inline: 18px; }
.of-board-list .fi-ta-cell .of-dim { margin-block-start: 2px; }
/* with the offer open beside the list, the columns the panel already shows step aside so the names keep their line */
.of-board-split.has-open :is(.fi-ta-header-cell-scope, .fi-ta-cell-scope, .fi-ta-header-cell-impact30d, .fi-ta-cell-impact30d, .fi-ta-header-cell-catalog-no, .fi-ta-cell-catalog-no) { display: none; }
.of-board-list :is(.fi-ta-cell-key, .fi-ta-header-cell-key) { min-inline-size: 200px; }
.of-ledger-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 18px; background: var(--lm-d-info-soft); color: var(--lm-d-info); font-weight: 700; font-size: 13.5px; }
.of-ledger-foot .of-dim { font-weight: 500; }
/* the strip's switch cell, its bar, the line under it */
.of-kv-row { display: flex; align-items: center; gap: 10px; }
.of-kv-row .u { font-size: 16px; font-weight: 700; }
.of-strip .of-bar { margin-block: 6px 2px; }
.of-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--lm-d-muted); }
.of-line b { color: var(--lm-d-ink); }
/* the catalogue: a banned proposal stays visible, quiet — nobody proposes it again */
.of-table tr.is-banned td { color: var(--lm-d-muted); }
/* a Filament press inside a canvas root keeps the house shape: outline, the one orange for the decision */
.of .fi-btn { border-radius: 10px; font-weight: 600; }
.of .fi-btn.fi-color-gray { background: var(--lm-d-surface); color: var(--lm-d-ink); box-shadow: inset 0 0 0 1px var(--lm-d-control-edge); }
.of .fi-btn:is(.fi-color-primary, .fi-color-success) { background: var(--lm-d-accent); color: var(--lm-d-on-accent); }
.of .fi-btn :is(.fi-icon, svg) { color: currentColor; }
/* the ledger's strip cell with a bar inside Filament's stat description */
.of-page .fi-wi-stats-overview-stat-description .of-bar { display: block; inline-size: 100%; margin-block: 4px; }

/* step rows with a long message (the ladders, OFFERS-UI-13): three lines, the rest on hover in the title */
.of-step .is-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.of-step.is-brokers { grid-template-columns: 44px 120px minmax(0, 2fr) minmax(0, 1.4fr) 80px 128px 64px; }

/* the «عروضه» pane inside a Person 360 (OFFERS-UI-13): it lives in its host's card, so no second frame */
.of-pane { border: 0; box-shadow: none; background: transparent; }
.of-pane > .of-ph, .of-pane > .of-pb, .of-pane > .of-pf { padding-inline: 0; }
.of-pane > .of-pb { overflow: visible; }
.of-excl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; min-inline-size: 0; }
.of-excl .of-note { flex: 1 1 100%; }

/* ── 8. widths ── */
@media (max-width: 1023.98px) {
    .of-panel { position: static; max-block-size: none; border-inline-start: 0; border-block-start: 1px solid var(--lm-d-divider); inline-size: 100%; }
    .of-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    /* the opened item becomes a bottom sheet with its handle */
    .of-board-split, .of-board-split.has-open { grid-template-columns: minmax(0, 1fr); }
    .of-board-split.has-open .of-board-list { border-inline-end: 0; }
    .of-board-split.has-open .of-board-panel {
        display: flex;
        position: fixed;
        inset-inline: 0;
        inset-block: auto 0;
        z-index: 45;
        min-block-size: 0;
        max-block-size: 82dvh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px var(--lm-d-sheet-shadow);
    }
    .of-board-panel .of-sheet-h { display: grid; }
    .of-card .of-ch .of-pills { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 2px; scrollbar-width: none; }
    /* below Filament's lg the inner grid falls to one column; the strip keeps two */
    .of-page .fi-wi-stats-overview .fi-section-content.fi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col:last-child:nth-child(n) { grid-column: auto; }
    .of-page .fi-wi-stats-overview .fi-section-content > .fi-grid-col:last-child:nth-child(odd) { grid-column: span 2 / span 2; }
}
@media (max-width: 640px) {
    .of-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .of-h1, .of-page .fi-header-heading { font-size: 22px; }
    .of-btn, .of-pill, .of-page .fi-tabs .fi-tabs-item { min-block-size: 44px; }
    .of-px { inline-size: 44px; block-size: 44px; }
    .of-grid { grid-template-columns: repeat(min(var(--g, 2), 2), minmax(0, 1fr)); }
    .of-aside { position: static; max-inline-size: none; }
    .of-step, .of-step.is-5, .of-step.is-brokers { grid-template-columns: 36px 110px 1fr; }
    .of-step > :nth-child(n + 4) { display: none; }
    .of-step.is-h > :nth-child(n + 4) { display: none; }
}
