/* ─────────────────────────────────────────────────────────────────────
   HOMEi «مركز التواصل» on the house design system (COMM-DS-1, Kamal
   2026-10-13: «راجع صفحات مركز التواصل كلها وعدل التصميم للديزاين سيستم
   بتاعنا ماعدا صفحه المحادثات»).

   Every screen of the group except the inbox (already on the house system,
   CONV-DS-2): هويات التواصل، الإشعارات، إشعارات المناسبات، تقرير المحادثات،
   الردود الجاهزة، تاجات المحادثات، التوزيع بالدور، الرسائل الآلية، أوقات
   العمل، إعدادات الهاتف، قوالب واتساب، Webhooks، أحداث الإشعارات، سياسات
   الإرسال، سجل الإرسال، قوالب البريد، ربط واتساب بيزنس — lists, record
   pages and the custom screens: the light blue-grey page, navy ink, the
   table / the first section as ONE card with the blue rule, dense rows,
   navy pills, figures that read as figures, the orange decision with a
   white label. A list row is a small card on a phone.

   Colours: the design system's own tokens (--lm-d-* in tokens.css, with
   their dark mirror); no colour literal here — the ratchet holds this sheet
   at zero. Text never under 12px. RTL-safe: logical properties only.
   Scoped by the page classes `.cc-page` (+ `.cc-list-page` / `.cc-doc-page`).

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

/* ── the ground and the head ── */
body:has(.cc-page) { background: var(--lm-d-page); }
body:has(.cc-page) .fi-main-ctn { background: transparent; }
.cc-page { color: var(--lm-d-ink); }
.cc-page .fi-page-content { row-gap: 12px; }
.cc-page .fi-header { gap: 10px 16px; }
.cc-page .fi-header-heading { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--lm-d-ink); }
.cc-page .fi-header-subheading { margin-block-start: 2px; font-size: 13.5px; color: var(--lm-d-muted); }

/* ── the decisions: outline buttons, the main one is the design's orange with a white label ── */
.cc-page .fi-header-actions-ctn .fi-btn {
    min-block-size: 38px;
    border-radius: 12px;
    padding-inline: 14px;
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    box-shadow: inset 0 0 0 1px var(--lm-d-control-edge);
    font-weight: 700;
}
.cc-page .fi-header-actions-ctn .fi-btn .fi-icon { color: currentColor; }
.cc-page .fi-btn.fi-color-primary:not(.fi-outlined),
.cc-page .fi-header-actions-ctn .fi-btn.fi-color-success {
    background: var(--lm-d-accent);
    color: var(--lm-d-on-accent);
    box-shadow: 0 4px 12px var(--lm-d-accent-soft);
    font-weight: 700;
    --tw-ring-shadow: 0 0 transparent;
}
.cc-page .fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon { color: currentColor; }
.cc-page .fi-btn.fi-color-primary:not(.fi-outlined):hover { filter: brightness(.96); }
.cc-page .fi-header-actions-ctn .fi-btn.fi-color-danger { background: var(--lm-d-surface); color: var(--lm-d-danger); box-shadow: inset 0 0 0 1px var(--lm-d-gap-edge); }
.cc-page .fi-header-actions-ctn .fi-dropdown-trigger .fi-btn { padding-inline: 12px; }
.cc-page .fi-btn:not(.fi-size-xs, .fi-size-sm) { border-radius: 12px; }
.cc-page .fi-btn.fi-color-gray:not(.fi-outlined) { color: var(--lm-d-ink); }
.cc-page .fi-btn:focus-visible { outline: 2px solid var(--lm-d-info); outline-offset: 2px; }

/* the form's own save row (sticky at the foot on the long forms) */
.cc-doc-page :is(.fi-sc-actions, .fi-form-actions) .fi-btn { min-block-size: 38px; border-radius: 12px; font-weight: 700; }
.cc-doc-page :is(.fi-sc-actions, .fi-form-actions) .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); }
.cc-doc-page .fi-form-actions.fi-sticky { background: var(--lm-d-surface); border-block-start: 1px solid var(--lm-d-border); box-shadow: 0 -4px 12px var(--lm-d-shadow); }

/* ── a list's tabs: navy pills with counts that wrap — never a sideways scroll ── */
.cc-list-page .fi-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-inline: 0;
    gap: 6px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    --tw-ring-shadow: 0 0 transparent;
}
.cc-list-page .fi-tabs .fi-tabs-item {
    flex: 0 0 auto;
    min-block-size: 34px;
    padding-inline: 14px;
    border-radius: 17px;
    border: 1px solid var(--lm-d-border);
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    font-size: 13px;
    font-weight: 700;
}
.cc-list-page .fi-tabs .fi-tabs-item .fi-tabs-item-label { color: inherit; }
.cc-list-page .fi-tabs .fi-tabs-item:hover { border-color: var(--lm-d-control-edge); background: var(--lm-d-surface); }
.cc-list-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); }
.cc-list-page .fi-tabs .fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--lm-d-tab-on-ink); }
.cc-list-page .fi-tabs .fi-tabs-item .fi-badge { min-inline-size: 22px; justify-content: center; background: var(--lm-d-chip-bg); color: var(--lm-d-ink); box-shadow: none; font-variant-numeric: tabular-nums; font-size: 12px; }
.cc-list-page .fi-tabs .fi-tabs-item.fi-active .fi-badge { background: var(--lm-d-tab-on-count); color: var(--lm-d-tab-on-ink); }
.cc-list-page .fi-tabs .fi-tabs-item:focus-visible { outline: 2px solid var(--lm-d-info); outline-offset: 2px; }

/* ── the figures above a list (الإشعارات): one strip of tiles, the figure in its colour ── */
.cc-page .fi-wi-stats-overview-stats-ctn { gap: 10px; }
.cc-page .fi-wi-stats-overview-stat {
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    box-shadow: 0 1px 2px var(--lm-d-shadow);
    --tw-ring-shadow: 0 0 transparent;
}
.cc-page a.fi-wi-stats-overview-stat:hover { border-color: var(--lm-d-control-edge); }
.cc-page a.fi-wi-stats-overview-stat:focus-visible { outline: 2px solid var(--lm-d-info); outline-offset: 2px; }
.cc-page .fi-wi-stats-overview-stat-content { row-gap: 2px; }
.cc-page .fi-wi-stats-overview-stat-label { font-size: 13px; font-weight: 600; color: var(--lm-d-muted); }
.cc-page .fi-wi-stats-overview-stat-value { font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--lm-d-ink); font-variant-numeric: tabular-nums; }
.cc-page .fi-wi-stats-overview-stat-description { font-size: 12.5px; line-height: 1.45; }
.cc-page .fi-wi-stats-overview-stat-description.fi-color-gray { color: var(--lm-d-muted); }
.cc-page .fi-wi-stats-overview-stat-description.fi-color-success { color: var(--lm-d-ok); }
.cc-page .fi-wi-stats-overview-stat-description.fi-color-danger { color: var(--lm-d-danger); }
.cc-page .fi-wi-stats-overview-stat-description.fi-color-warning { color: var(--lm-d-warn); }
.cc-page .fi-wi-stats-overview-stat-description.fi-color-primary { color: var(--lm-d-info); }
.cc-page .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-description.fi-color-success) .fi-wi-stats-overview-stat-value { color: var(--lm-d-ok); }
.cc-page .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-description.fi-color-danger) .fi-wi-stats-overview-stat-value { color: var(--lm-d-danger); }
.cc-page .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-description.fi-color-warning) .fi-wi-stats-overview-stat-value { color: var(--lm-d-warn); }
.cc-page .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-description.fi-color-primary) .fi-wi-stats-overview-stat-value { color: var(--lm-d-info); }

/* ── the table: one card with the blue rule, dense rows ── */
.cc-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);
    --tw-ring-shadow: 0 0 transparent;
    overflow: hidden;
}
.cc-page .fi-ta-header { padding-block: 10px; padding-inline: 16px; gap: 8px 16px; }
.cc-page .fi-ta-header-heading { font-size: 15px; font-weight: 700; color: var(--lm-d-ink); }
.cc-page .fi-ta-header-description { font-size: 12.5px; line-height: 1.5; color: var(--lm-d-muted); }
.cc-page .fi-ta-header-toolbar { padding-block: 8px; padding-inline: 14px; gap: 8px; border-color: var(--lm-d-divider); }
.cc-page .fi-ta-search-field { max-inline-size: 280px; }
.cc-page .fi-ta-header-cell { background: var(--lm-d-chip-bg); color: var(--lm-d-ink); font-size: 13px; font-weight: 700; padding-block: 9px; padding-inline: 8px; white-space: nowrap; }
.cc-page .fi-ta-header-cell .fi-ta-header-cell-label { color: var(--lm-d-ink); }
.cc-page .fi-ta-header-cell:first-of-type { padding-inline-start: 16px; }
.cc-page .fi-ta-cell { color: var(--lm-d-ink); }
.cc-page .fi-ta-text:not(.fi-inline) { padding-block: 7px; padding-inline: 8px; }
.cc-page .fi-ta-text-item, .cc-page .fi-ta-text-item-label { font-size: 13.5px; color: var(--lm-d-ink); }
.cc-page .fi-ta-text-description { font-size: 12px; color: var(--lm-d-muted); }
.cc-page .fi-ta-icon:not(.fi-inline) { padding-block: 7px; padding-inline: 8px; }
.cc-page .fi-ta-cell .fi-ta-col, .cc-page .fi-ta-selection-cell, .cc-page .fi-ta-actions-cell { padding-block: 0; }
.cc-page .fi-ta-selection-cell { padding-inline: 14px 6px; }
.cc-page .fi-ta-actions-cell { padding-inline: 6px 12px; }
.cc-page .fi-ta-row:hover > td { background: var(--lm-d-hover); }
.cc-page .fi-ta-row > td { border-color: var(--lm-d-divider); }
.cc-page .fi-ta-row > td.fi-ta-cell:nth-child(1 of .fi-ta-cell) .fi-ta-text-item { font-weight: 700; }
.cc-page .fi-pagination { padding-block: 8px; padding-inline: 14px; }
.cc-page .fi-badge { font-weight: 700; }
.cc-page .fi-ta-actions .fi-link { font-weight: 700; }
.cc-page .fi-ta-actions .fi-link.fi-color-primary { color: var(--lm-d-info); }

/* the empty table: a quiet line, not a hole */
.cc-page .fi-ta-empty-state { padding-block: 28px; }
.cc-page .fi-ta-empty-state-icon-bg { background: var(--lm-d-quiet-bg); }
.cc-page .fi-ta-empty-state-icon-bg .fi-icon { color: var(--lm-d-subtle); }
.cc-page .fi-ta-empty-state-heading { font-size: 15px; font-weight: 700; color: var(--lm-d-ink); }
.cc-page .fi-ta-empty-state-description { font-size: 12.5px; color: var(--lm-d-muted); }

/* ── a record / settings page: dense sections, the first one carries the blue rule ── */
.cc-doc-page .fi-sc-has-gap { gap: 12px; }
.cc-page .fi-section:not(.fi-section-not-contained) {
    border-radius: 16px;
    background: var(--lm-d-surface);
    box-shadow: 0 1px 2px var(--lm-d-shadow);
    --tw-ring-color: var(--lm-d-border);
}
.cc-page .fi-section-header { padding-block: 10px; padding-inline: 16px; }
.cc-page .fi-section-header-heading { color: var(--lm-d-ink); font-size: 15px; font-weight: 700; }
.cc-page .fi-section-header-description { font-size: 12.5px; color: var(--lm-d-muted); }
.cc-page .fi-section-content { padding: 12px 16px; }
.cc-doc-page .fi-section-content .fi-sc-has-gap { gap: 10px 14px; }
.cc-doc-page .fi-section .fi-section { box-shadow: none; }
.cc-doc-page .fi-sc-flex { gap: 12px; }
.cc-doc-page .fi-fo-field { row-gap: 5px; }
.cc-doc-page .fi-fo-field-label-content { color: var(--lm-d-ink); font-weight: 600; font-size: 13px; }
.cc-doc-page .fi-sc-text { font-size: 12px; color: var(--lm-d-muted); }
.cc-doc-page .fi-fo-field-wrp-hint { font-size: 12px; }
.cc-doc-page :is(.fi-fo-field-wrp-helper-text, .fi-fo-field-helper-text, .fi-sc-text) { color: var(--lm-d-muted); }
.cc-doc-page .fi-input-wrp { border-radius: 10px; }
.cc-doc-page .fi-page-content > .fi-sc-form > .fi-sc > :first-child .fi-section:first-of-type,
.cc-doc-page .fi-page-content > .fi-sc > :first-child .fi-section:first-of-type,
.cc-doc-page .cc-ruled { border-block-start: 3px solid var(--lm-d-info); }
/* a form with no section of its own (a quick reply, an occasion, a template): the form is the card */
.cc-doc-page .fi-page-content > .fi-sc-form > .fi-sc:not(:has(.fi-section)) {
    padding: 14px 16px;
    border: 1px solid var(--lm-d-border);
    border-block-start: 3px solid var(--lm-d-info);
    border-radius: 16px;
    background: var(--lm-d-surface);
    box-shadow: 0 1px 2px var(--lm-d-shadow);
}
.cc-doc-page .fi-fo-repeater-item { border-radius: 12px; }
.cc-doc-page .fi-fo-repeater-item-header { padding-block: 6px; padding-inline: 12px; }
.cc-doc-page .fi-fo-repeater-item-content { padding: 10px 12px; }
.cc-doc-page .fi-fo-repeater-items { gap: 8px; }
.cc-doc-page .fi-sc-tabs.fi-contained { border-radius: 16px; }
.cc-doc-page .fi-sc-tabs .fi-tabs-item.fi-active { color: var(--lm-d-ink); }
.cc-doc-page .fi-sc-tabs .fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--lm-d-ink); }

/* ── the custom screens' own parts ── */
/* the line that explains a settings page */
.cc-intro { margin: 0; max-inline-size: 80ch; font-size: 13.5px; line-height: 1.6; color: var(--lm-d-muted); }
.cc-stack { display: flex; flex-direction: column; gap: 12px; }
.cc-save { display: flex; justify-content: flex-start; gap: 8px; }
.cc-save .fi-btn { min-block-size: 40px; padding-inline: 22px; }
.cc-mono { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--lm-d-muted); overflow-wrap: anywhere; }

/* a card with the blue rule and its head */
.cc-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);
    min-inline-size: 0;
    overflow: hidden;
}
.cc-card.is-plain { border-block-start-width: 1px; }
.cc-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 16px; border-block-end: 1px solid var(--lm-d-divider); }
.cc-card-t { margin: 0; font-size: 15px; font-weight: 700; color: var(--lm-d-ink); }
.cc-card-b { padding: 12px 16px; }
.cc-empty { margin: 0; font-size: 13px; color: var(--lm-d-muted); }

/* the period pills: navy when on */
.cc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cc-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-block-size: 36px;
    padding-inline: 16px;
    border-radius: 18px;
    border: 1px solid var(--lm-d-border);
    background: var(--lm-d-surface);
    color: var(--lm-d-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.cc-pill:hover { border-color: var(--lm-d-control-edge); }
.cc-pill:focus-visible, .cc-select:focus-visible { outline: 2px solid var(--lm-d-info); outline-offset: 2px; }
.cc-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); }
.cc-select {
    min-block-size: 36px;
    padding-block: 0;
    padding-inline: 12px 32px;
    border: 1px solid var(--lm-d-control-edge);
    border-radius: 10px;
    background-color: var(--lm-d-surface);
    color: var(--lm-d-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
}

/* the numbers strip: one card, the cells split by hairlines */
.cc-strip {
    display: grid;
    grid-template-columns: repeat(var(--cc-cols, 4), minmax(0, 1fr));
    background: var(--lm-d-surface);
    border: 1px solid var(--lm-d-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--lm-d-shadow);
}
.cc-strip-c { padding: 12px 18px; border-inline-start: 1px solid var(--lm-d-divider); min-inline-size: 0; }
.cc-strip-c:first-child { border-inline-start: 0; }
.cc-k-l { font-size: 13px; color: var(--lm-d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-k-v { font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--lm-d-ink); }
.cc-k-v.is-none { font-size: 18px; font-weight: 600; color: var(--lm-d-subtle); }
.cc-k-s { font-size: 12.5px; line-height: 1.5; color: var(--lm-d-muted); }
.cc-page .is-ok { color: var(--lm-d-ok); }
.cc-page .is-danger { color: var(--lm-d-danger); }
.cc-page .is-info { color: var(--lm-d-info); }
.cc-page .is-warn { color: var(--lm-d-warn); }
.cc-page .is-accent { color: var(--lm-d-accent-ink); }

.cc-grid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cc-cols, 2), minmax(0, 1fr)); align-items: start; }
.cc-grid > .cc-card { block-size: 100%; }

/* a rating's spread */
.cc-dist { display: flex; flex-direction: column; gap: 4px; margin-block-start: 8px; }
.cc-dist-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 12px; color: var(--lm-d-muted); font-variant-numeric: tabular-nums; }
.cc-dist-row > :last-child { text-align: end; }
.cc-bar-track { block-size: 8px; border-radius: 4px; background: var(--lm-d-quiet-bg); overflow: hidden; }
.cc-bar-fill { block-size: 100%; border-radius: 4px; background: var(--lm-d-accent); }

/* a plain table inside a card */
.cc-scroll { overflow-x: auto; }
.cc-table { inline-size: 100%; border-collapse: collapse; font-size: 13.5px; }
.cc-table th { background: var(--lm-d-chip-bg); color: var(--lm-d-ink); font-size: 13px; font-weight: 700; text-align: start; padding: 9px 12px; white-space: nowrap; }
.cc-table td { padding: 8px 12px; border-block-start: 1px solid var(--lm-d-divider); color: var(--lm-d-ink); }
.cc-table tr:hover > td { background: var(--lm-d-hover); }
.cc-table td:first-child { font-weight: 700; }
.cc-table .cc-num { text-align: end; font-variant-numeric: tabular-nums; }
.cc-card > .cc-scroll > .cc-table th:first-child, .cc-card > .cc-scroll > .cc-table td:first-child,
.cc-card > .cc-table th:first-child, .cc-card > .cc-table td:first-child { padding-inline-start: 16px; }
.cc-kv { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; font-size: 13.5px; }
.cc-kv > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 2px; border-block-end: 1px dashed var(--lm-d-divider); }
.cc-kv dt { color: var(--lm-d-muted); }
.cc-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-foot { margin: 0; font-size: 12px; line-height: 1.6; color: var(--lm-d-muted); }

/* the inbox report: four figures, three measures, then the tables */
.cc-report .cc-metric-v { font-size: 24px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--lm-d-ink); }
.cc-report .cc-metric-v.is-none { font-size: 17px; font-weight: 600; color: var(--lm-d-subtle); }

/* the voice accounts */
.cc-rows { display: flex; flex-direction: column; }
.cc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 8px; border-block-start: 1px solid var(--lm-d-divider); }
.cc-row:first-child { border-block-start: 0; padding-block-start: 0; }
.cc-row-t { font-weight: 700; color: var(--lm-d-ink); }
.cc-tag { display: inline-flex; align-items: center; min-block-size: 24px; padding-inline: 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.cc-tag.is-ok { background: var(--lm-d-ok-soft); color: var(--lm-d-ok); }
.cc-tag.is-off { background: var(--lm-d-quiet-bg); color: var(--lm-d-muted); }
.cc-tag.is-warn { background: var(--lm-d-warn-soft); color: var(--lm-d-warn); }

/* the events catalogue: two cards a line instead of one long column */
.cc-events { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.cc-event { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border: 1px solid var(--lm-d-border); border-radius: 14px; background: var(--lm-d-surface); box-shadow: 0 1px 2px var(--lm-d-shadow); min-inline-size: 0; }
.cc-event-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-event-t { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--lm-d-ink); }
.cc-event-code { display: block; margin-block-start: 2px; }
.cc-event-d { margin: 0; font-size: 13px; line-height: 1.6; color: var(--lm-d-muted); }
.cc-vars { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: auto; padding-block-start: 4px; }
.cc-var { display: inline-flex; align-items: center; min-block-size: 24px; padding-inline: 8px; border-radius: 8px; background: var(--lm-d-info-soft); color: var(--lm-d-info); font-size: 12px; font-weight: 600; direction: ltr; unicode-bidi: isolate; }

/* a settings form of its own (أوقات العمل، إعدادات الهاتف): every top card carries the blue rule,
   the seven days are small quiet blocks inside the week's card */
.cc-doc-page form.cc-stack .fi-section:not(.fi-section .fi-section) { border-block-start: 3px solid var(--lm-d-info); }
.cc-doc-page .fi-section .fi-section.cc-day { border-radius: 12px; background: var(--lm-d-chip-bg); --tw-ring-color: var(--lm-d-divider); }
.cc-doc-page .fi-section.cc-day .fi-section-header { padding-block: 6px; padding-inline: 12px; }
.cc-doc-page .fi-section.cc-day .fi-section-header-heading { font-size: 13.5px; }
.cc-doc-page .fi-section.cc-day .fi-section-content { padding: 6px 12px 10px; }

/* ── «سياسات الإرسال» (its own board, NOTIF-POL-1): the older brand tokens map onto the house ones ── */
.cc-page .npb {
    --ho-brand-ink: var(--lm-d-ink);
    --ho-brand-ink-muted: var(--lm-d-muted);
    --ho-brand-soft: var(--lm-d-chip-bg);
    --ho-brand-line: var(--lm-d-border);
    --ho-brand-page: var(--lm-d-page);
    --ho-brand-card: var(--lm-d-surface);
    --ho-brand-inset: var(--lm-d-surface);
    --ho-brand-accent: var(--lm-d-accent);
    --ho-brand-accent-soft: var(--lm-d-accent-soft);
    --ho-brand-on-accent: var(--lm-d-on-accent);
    --ho-brand-danger: var(--lm-d-danger);
    --ho-brand-success: var(--lm-d-ok);
}

/* ── under 1024px: the page scrolls, the cards stack ── */
@media (max-width: 1023.98px) {
    .cc-page .fi-header-heading { font-size: 21px; }
    .cc-page .fi-ta-search-field { max-inline-size: none; }
    .cc-grid { grid-template-columns: minmax(0, 1fr); }
    .cc-events { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .cc-strip { --cc-cols: 2; }
    .cc-strip-c:nth-child(odd) { border-inline-start: 0; }
    .cc-strip-c:nth-child(n + 3) { border-block-start: 1px solid var(--lm-d-divider); }
}

/* ── a phone: a list row is a card — its first column on top, «label · value» two to a line ── */
@media (max-width: 639.98px) {
    .cc-page .fi-header { gap: 8px; }
    .cc-page .fi-header-heading { font-size: 20px; }
    .cc-page .fi-header-actions-ctn .fi-btn { min-block-size: 44px; }
    .cc-page .fi-section-content { padding: 10px 12px; }
    .cc-page .fi-section-header { padding-inline: 12px; }
    .cc-page .fi-wi-stats-overview-stat { padding: 10px 12px; }
    .cc-page .fi-wi-stats-overview-stat-value { font-size: 22px; }
    .cc-k-v { font-size: 22px; }
    .cc-strip-c { padding: 10px 12px; }
    .cc-pill { min-block-size: 40px; padding-inline: 14px; }
    .cc-card-b, .cc-card-h { padding-inline: 12px; }

    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr:not(.fi-ta-group-header-row) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 12px;
        padding: 10px 14px;
        padding-inline-end: 48px; /* room for the row's checkbox at the end */
    }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td { padding-inline: 0; min-inline-size: 0; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding-block: 2px;
    }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell > .fi-ta-cell-label { padding-block: 0; font-size: 12px; font-weight: 600; color: var(--lm-d-muted); white-space: nowrap; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell > .fi-ta-cell-content { min-inline-size: 0; text-align: end; }
    .cc-list-page .fi-ta-table-stacked-on-mobile .fi-ta-cell :is(.fi-ta-text, .fi-ta-icon) { padding: 0; }
    /* the row's first column (its name / title / message) reads as its title: full width, no label */
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell:nth-child(1 of .fi-ta-cell) { grid-column: 1 / -1; display: block; padding-block-end: 4px; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell:nth-child(1 of .fi-ta-cell) > .fi-ta-cell-label { display: none; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell:nth-child(1 of .fi-ta-cell) > .fi-ta-cell-content { text-align: start; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell:nth-child(1 of .fi-ta-cell) .fi-ta-text-item { font-size: 15px; }
    /* a long text (a message body, a URL) takes the whole line */
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-cell:has(.fi-ta-text-description, .fi-ta-text-has-line-breaks) { grid-column: 1 / -1; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-actions-cell { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-block: 2px 0; }
    .cc-list-page .fi-ta-table-stacked-on-mobile > tbody > tr > td.fi-ta-selection-cell { inset-block-start: 12px; inset-inline-end: 14px; }
    .cc-list-page .fi-ta-table-stacked-header-cell { padding-block: 8px; padding-inline: 14px; background: var(--lm-d-chip-bg); }
    .cc-list-page .fi-pagination { padding-inline: 10px; }

    .cc-table { font-size: 13px; }
    .cc-table :is(th, td) { padding-inline: 8px; }
}
