/* ============================================================================
   CallForge AI — dark enterprise theme over Vuexy v10.11.1
   Design spec: OpenAI, 2026-08-12 (round 2 — the light build was rejected as
   "bland, clinical"). Surface ladder is the locked company-wide standard.
   Vuexy's purchased core.css is NOT modified; this is variable overrides plus
   composition classes only.
   ========================================================================== */

[data-bs-theme='dark'] {
  /* --- locked surface ladder. The GAP between them is the whole point. --- */
  --bs-body-bg: #0a0a0a;
  --bs-body-bg-rgb: 10, 10, 10;
  --cf-s0: #0a0a0a;   /* canvas + deepest chrome */
  --cf-s1: #141414;   /* cards, containers */
  --cf-s2: #1e1e1e;   /* inputs, nested panels, icon tiles, table headers */
  --bs-card-bg: #141414;
  --bs-border-color: rgba(237, 239, 238, 0.075);
  --bs-border-color-translucent: rgba(237, 239, 238, 0.075);
  --cf-hairline: rgba(237, 239, 238, 0.075);
  --cf-hairline-strong: rgba(237, 239, 238, 0.15);
  --cf-top-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 18px;

  /* --- royal blue: brand + data accent --- */
  --bs-primary: #2961d7;
  --bs-primary-rgb: 41, 97, 215;
  --bs-primary-contrast: #ffffff;
  --bs-primary-bg-subtle: #16233c;
  --bs-primary-border-subtle: #2a3f66;
  --bs-primary-text-emphasis: #8fb2f2;
  --cf-blue-tile: #1b2c4a;

  /* --- green is STATE ONLY. Never a quantity, never decoration. --- */
  --bs-success: #2e9e6a;
  --bs-success-rgb: 46, 158, 106;
  --bs-success-bg-subtle: #12261d;
  --bs-success-border-subtle: #1f4a35;
  --bs-success-text-emphasis: #5fd39b;

  --bs-warning: #ffd600;
  --bs-warning-rgb: 255, 214, 0;
  --bs-warning-bg-subtle: #2b2405;
  --bs-warning-border-subtle: #574a10;
  --bs-warning-text-emphasis: #ffe066;

  --bs-danger: #ff5050;
  --bs-danger-rgb: 255, 80, 80;
  --bs-danger-bg-subtle: #2d1414;
  --bs-danger-border-subtle: #5c2626;
  --bs-danger-text-emphasis: #ff8f8f;

  --bs-info: #33b7ff;
  --bs-info-rgb: 51, 183, 255;
  --bs-info-bg-subtle: #0d2635;
  --bs-info-border-subtle: #1a4a66;
  --bs-info-text-emphasis: #7dd2ff;

  /* --- text tiers --- */
  --bs-body-color: #f5f5f5;
  --bs-body-color-rgb: 245, 245, 245;
  --bs-heading-color: #f5f5f5;
  --bs-secondary-color: #d1d1d1;
  --cf-muted: #707070;
  --cf-disabled: #3a3a3a;
  --cf-mono-c: #989a99;

  --bs-link-color: #8fb2f2;
  --bs-link-color-rgb: 143, 178, 242;
  --bs-link-hover-color: #b3ccf7;

  --bs-emphasis-color: #f5f5f5;
  --bs-secondary-bg: #1e1e1e;
  --bs-tertiary-bg: #1e1e1e;
}

body {
  background: var(--cf-s0);
  color: var(--bs-body-color);
}

/* Chrome sits at the deepest level so cards read as raised objects. */
[data-bs-theme='dark'] .layout-menu,
[data-bs-theme='dark'] .bg-menu-theme,
[data-bs-theme='dark'] .layout-navbar,
[data-bs-theme='dark'] .bg-navbar-theme,
[data-bs-theme='dark'] .content-footer {
  background: var(--cf-s0) !important;
  border-color: var(--cf-hairline) !important;
  box-shadow: none !important;
}
[data-bs-theme='dark'] .layout-menu { border-right: 1px solid var(--cf-hairline); }
[data-bs-theme='dark'] .layout-navbar { border-bottom: 1px solid var(--cf-hairline); }

/* ---------------------------------------------------------------------------
   B. ELEVATION. Depth on a dark UI is never shadow alone: a lighter surface,
   a 1px top-edge highlight, and a seating shadow — all three, or it reads flat.
   ------------------------------------------------------------------------ */
[data-bs-theme='dark'] .card {
  background: var(--cf-s1);
  border: 1px solid var(--cf-hairline);
  border-radius: 14px;
  box-shadow: var(--cf-top-highlight), 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
[data-bs-theme='dark'] .card.cf-hoverable:hover {
  background: var(--cf-s2);
  border-color: var(--cf-hairline-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.085), 0 8px 32px rgba(0, 0, 0, 0.55);
}
[data-bs-theme='dark'] .card-header {
  background: transparent;
  border-bottom: 1px solid var(--cf-hairline);
}
[data-bs-theme='dark'] .modal-content,
[data-bs-theme='dark'] .dropdown-menu,
[data-bs-theme='dark'] .offcanvas {
  background: var(--cf-s2);
  border: 1px solid var(--cf-hairline-strong);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.085), 0 12px 40px rgba(0, 0, 0, 0.6);
}
[data-bs-theme='dark'] .list-group-item {
  background: transparent;
  border-color: var(--cf-hairline);
  color: var(--bs-body-color);
}

/* Inputs sit BELOW the card, not level with it — that is what makes them
   read as wells you type into rather than painted rectangles. */
[data-bs-theme='dark'] .form-control,
[data-bs-theme='dark'] .form-select,
[data-bs-theme='dark'] .input-group-text {
  background: var(--cf-s2);
  border-color: var(--cf-hairline-strong);
  color: var(--bs-body-color);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
[data-bs-theme='dark'] .form-control:focus,
[data-bs-theme='dark'] .form-select:focus {
  background: var(--cf-s2);
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(41, 97, 215, 0.25);
  color: #fff;
}
[data-bs-theme='dark'] .form-control::placeholder { color: var(--cf-disabled); }

[data-bs-theme='dark'] .table { --bs-table-color: var(--bs-body-color); --bs-table-bg: transparent; }
[data-bs-theme='dark'] .table > :not(caption) > * > * { border-bottom-color: var(--cf-hairline); }
[data-bs-theme='dark'] .table thead th {
  background: var(--cf-s2);
  color: var(--cf-muted);
  font-size: .6875rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--cf-hairline);
}
[data-bs-theme='dark'] .table-hover > tbody > tr:hover > * {
  background: rgba(255, 255, 255, 0.028);
  color: var(--bs-body-color);
}

/* Buttons push in on press — a mechanism, not an animation. */
.btn { transition: transform 40ms ease, box-shadow 40ms ease, background .18s ease; }
.btn:active { transform: translateY(2px) scale(.982); }
[data-bs-theme='dark'] .btn-primary { box-shadow: var(--cf-top-highlight); }
[data-bs-theme='dark'] .btn-primary:active { box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5); }
[data-bs-theme='dark'] .btn-outline-secondary { color: var(--bs-secondary-color); border-color: var(--cf-hairline-strong); }
[data-bs-theme='dark'] .btn-outline-secondary:hover { background: var(--cf-s2); color: #fff; border-color: var(--cf-hairline-strong); }

/* ---------------------------------------------------------------------------
   C. TYPE. Numbers carry the product, so they get the mono face and tabular
   figures — a column of rands must align on the decimal.
   ------------------------------------------------------------------------ */
.cf-num, .cf-money-lg, .cf-money-xl, .cf-hero {
  font-family: 'Source Code Pro', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.cf-hero { font-size: 2.4rem; font-weight: 700; color: #f5f5f5; line-height: 1.05; letter-spacing: -.02em; }
.cf-money-xl { font-size: 2rem; font-weight: 700; color: #f5f5f5; line-height: 1.1; }
.cf-money-lg { font-size: 1.4rem; font-weight: 700; color: #f5f5f5; line-height: 1.15; }
.cf-mono { font-family: 'Source Code Pro', ui-monospace, Consolas, monospace; color: var(--cf-mono-c); font-variant-numeric: tabular-nums; }

/* D5 — textured micro labels: uppercase, letterspaced, quiet. */
.cf-eyebrow {
  font-size: .6875rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cf-muted);
}
.cf-eyebrow-b { color: var(--bs-primary-text-emphasis); }
.text-body-secondary { color: var(--cf-muted) !important; }

/* A debit is never green; a credit is never red. */
.cf-debit { color: var(--bs-danger); }
.cf-credit { color: var(--bs-success-text-emphasis); }

/* D1 — hero metric sits on an inset tile one step DOWN, so the number reads
   as stamped into the card rather than floating on it. */
.cf-tile {
  background: var(--cf-s2);
  border: 1px solid var(--cf-hairline);
  border-radius: 10px;
  padding: .85rem 1rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* D2 — accent edge. State is carried on the EDGE of a card, never as a fill:
   a fully tinted card shouts, an edge informs. */
.cf-edge { position: relative; overflow: hidden; }
.cf-edge::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bs-primary);
}
.cf-edge-ok::before { background: var(--bs-success); }
.cf-edge-warn::before { background: var(--bs-warning); }
.cf-edge-bad::before { background: var(--bs-danger); }
.cf-edge-info::before { background: var(--bs-info); }
.cf-edge-mut::before { background: #3a3a3a; }

/* D4 — quantity bars are blue-to-white gradients. Green would claim a budget
   at 70% spent is "good", which is a judgement a bar has no business making. */
[data-bs-theme='dark'] .progress { background: var(--cf-s2); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.cf-bar-q { background: linear-gradient(90deg, #2961d7 0%, #8fb2f2 100%) !important; }
.cf-bar-ok { background: var(--bs-success) !important; }
.cf-bar-warn { background: var(--bs-warning) !important; }
.cf-bar-bad { background: var(--bs-danger) !important; }

/* Badges: state colour on a dark tint, never a saturated fill. */
[data-bs-theme='dark'] .bg-label-primary { background: var(--bs-primary-bg-subtle) !important; color: var(--bs-primary-text-emphasis) !important; }
[data-bs-theme='dark'] .bg-label-success { background: var(--bs-success-bg-subtle) !important; color: var(--bs-success-text-emphasis) !important; }
[data-bs-theme='dark'] .bg-label-warning { background: var(--bs-warning-bg-subtle) !important; color: var(--bs-warning-text-emphasis) !important; }
[data-bs-theme='dark'] .bg-label-danger  { background: var(--bs-danger-bg-subtle)  !important; color: var(--bs-danger-text-emphasis)  !important; }
[data-bs-theme='dark'] .bg-label-info    { background: var(--bs-info-bg-subtle)    !important; color: var(--bs-info-text-emphasis)    !important; }
[data-bs-theme='dark'] .bg-label-secondary { background: var(--cf-s2) !important; color: var(--cf-muted) !important; }
.badge { font-weight: 600; letter-spacing: .01em; }

/* Menu */
[data-bs-theme='dark'] .menu-item .menu-link { color: #9a9a9a; }
[data-bs-theme='dark'] .menu-item .menu-link:hover { color: #f5f5f5; background: rgba(255,255,255,.03); }
[data-bs-theme='dark'] .menu-item.active > .menu-link {
  background: var(--bs-primary-bg-subtle) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--bs-primary);
}
[data-bs-theme='dark'] .menu-header-text { color: var(--cf-disabled); letter-spacing: .1em; font-size: .625rem; text-transform: uppercase; font-weight: 700; }

/* ---------------------------------------------------------------------------
   The step-guided strip. A hurried broker gets one instruction, never a menu.
   ------------------------------------------------------------------------ */
.cf-nextup { background: linear-gradient(90deg, var(--bs-primary-bg-subtle) 0%, var(--cf-s1) 62%) !important; }
.cf-nextup.cf-urgent { background: linear-gradient(90deg, var(--bs-danger-bg-subtle) 0%, var(--cf-s1) 62%) !important; }
.cf-nextup.cf-clear { background: linear-gradient(90deg, var(--bs-success-bg-subtle) 0%, var(--cf-s1) 62%) !important; }
.cf-step-n {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 700; flex-shrink: 0;
  box-shadow: var(--cf-top-highlight);
}

/* D — the desk briefing: the dashboard answers in sentences before numbers. */
.cf-brief-read { font-size: 1.5rem; line-height: 1.55; color: #e8e8e8; letter-spacing: -.01em; }
.cf-brief-read strong {
  color: #fff; font-weight: 700;
  font-family: 'Source Code Pro', ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 1px;
}
@media (max-width: 767.98px) { .cf-brief-read { font-size: 1.0625rem; } }

/* Structured pre-meeting brief */
.cf-brief dt { font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: var(--cf-muted); font-weight: 700; padding-top: 3px; }
.cf-brief dd { margin-bottom: .9rem; color: #e2e2e2; }
.cf-brief .cf-expect { color: var(--bs-warning-text-emphasis); }
.cf-pullquote { border-left: 3px solid var(--bs-primary); padding-left: .9rem; font-style: italic; color: #e8e8e8; }

/* D6 — waveform + chapter chips */
.cf-wave { display: flex; align-items: flex-end; gap: 2px; height: 44px; flex-grow: 1; }
.cf-wave i { flex: 1; background: #333; border-radius: 1px; display: block; }
.cf-wave i.on { background: var(--bs-primary); }
.cf-chapter {
  font-size: .75rem; border: 1px solid var(--cf-hairline-strong); background: var(--cf-s2);
  color: var(--bs-secondary-color); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.cf-chapter b { font-family: 'Source Code Pro', ui-monospace, monospace; color: var(--bs-primary-text-emphasis); margin-right: 5px; }
.cf-chapter:hover { border-color: var(--bs-primary); color: #fff; }

/* QA judge score band */
.cf-band { position: relative; height: 28px; border-radius: 7px; overflow: hidden; display: flex; font-size: .625rem; font-weight: 700; letter-spacing: .06em; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.cf-band span { display: flex; align-items: center; justify-content: center; }
.cf-band .b-rej { width: 70%; background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.cf-band .b-rev { width: 20%; background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.cf-band .b-app { width: 10%; background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.cf-band-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); }

/* Calendar week grid, 60px/hour */
.cf-cal { display: grid; grid-template-columns: 56px repeat(5, 1fr); border: 1px solid var(--cf-hairline); border-radius: 12px; background: var(--cf-s1); overflow: hidden; }
.cf-cal-h { background: var(--cf-s2); color: var(--bs-secondary-color); font-weight: 600; font-size: .8125rem; text-align: center; padding: 9px 4px; border-bottom: 1px solid var(--cf-hairline); }
.cf-cal-axis { position: relative; height: 540px; border-right: 1px solid var(--cf-hairline); }
.cf-cal-axis span { position: absolute; right: 6px; font-size: .6875rem; color: var(--cf-muted); font-family: 'Source Code Pro', monospace; }
.cf-cal-col { position: relative; height: 540px; border-right: 1px solid var(--cf-hairline); background: repeating-linear-gradient(var(--cf-s1) 0 59px, rgba(255,255,255,.045) 59px 60px); }
.cf-ev { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 3px 8px; font-size: .75rem; font-weight: 600; border-left: 3px solid; overflow: hidden; }
.cf-ev-ok { background: var(--bs-success-bg-subtle); border-color: var(--bs-success); color: var(--bs-success-text-emphasis); }
.cf-ev-pend { background: var(--bs-warning-bg-subtle); border: 1.5px dashed var(--bs-warning); border-left-width: 3px; color: var(--bs-warning-text-emphasis); width: 55%; }
.cf-ev-past { background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary); color: var(--bs-primary-text-emphasis); }
.cf-ev-busy { background: var(--cf-s2); border-color: #4a4a4a; color: var(--cf-muted); }
.cf-nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--bs-danger); z-index: 5; box-shadow: 0 0 8px rgba(255,80,80,.7); }
.cf-nowline::before { content: 'now'; position: absolute; left: -42px; top: -8px; color: var(--bs-danger); font-size: .625rem; font-weight: 700; letter-spacing: .08em; }

/* Funnel */
.cf-funnel-bar { background: linear-gradient(90deg, #2961d7, #8fb2f2); color: #08122a; font-size: .75rem; font-weight: 700; padding: 7px 11px; border-radius: 5px; margin-bottom: 5px; white-space: nowrap; min-width: fit-content; box-shadow: var(--cf-top-highlight); }
.cf-funnel-bar.cf-fb-ok { background: linear-gradient(90deg, #2e9e6a, #5fd39b); color: #06170f; }

/* Script blocks */
.cf-block-lock { background: var(--cf-s2); border-left: 3px solid #3a3a3a; border-radius: 8px; }
.cf-block-edit { border-left: 3px solid var(--bs-primary); border-radius: 8px; background: rgba(41,97,215,.05); }
.cf-flag { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); border-bottom: 2px solid var(--bs-danger); font-weight: 700; padding: 0 3px; border-radius: 2px; }

/* Diary heatmap */
.cf-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cf-day { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--cf-hairline); background: var(--cf-s2); padding: 4px; font-size: .625rem; position: relative; color: var(--cf-muted); font-family: 'Source Code Pro', monospace; }
.cf-day.v1 { background: #16233c; color: #8ea6cc; }
.cf-day.v2 { background: #1d3560; color: #a9c0e6; }
.cf-day.v3 { background: #24478a; color: #d5e2f7; }
.cf-day.v4 { background: #2961d7; color: #fff; border-color: #3c74e6; }
.cf-day.v5 { background: linear-gradient(135deg, #2961d7, #6f9df0); color: #fff; border-color: #6f9df0; }
.cf-day.today { outline: 2px solid #fff; outline-offset: 1px; }
.cf-day.off { background: transparent; border-style: dashed; color: var(--cf-disabled); }
.cf-dots { position: absolute; bottom: 4px; left: 4px; display: flex; gap: 2px; }
.cf-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: block; }
.cf-swatch { width: 16px; height: 12px; border-radius: 3px; border: 1px solid var(--cf-hairline); display: inline-block; vertical-align: -1px; }

/* Screen router */
.cf-screen { display: none; }
.cf-screen.active { display: block; }

/* Staff screens run compact — density is throughput for someone who lives here. */
.cf-dense .card-body { padding: 1.25rem; }
.cf-dense .table > :not(caption) > * > * { padding-top: .5rem; padding-bottom: .5rem; }
.cf-dense .list-group-item { padding-top: .55rem; padding-bottom: .55rem; }

kbd { background: var(--cf-s2); border: 1px solid var(--cf-hairline-strong); color: var(--bs-secondary-color); border-radius: 4px; padding: 1px 5px; font-size: .6875rem; }

@media (max-width: 991.98px) {
  .cf-cal { display: none; }
  .cf-agenda { display: block !important; }
}
.cf-agenda { display: none; }

/* ==========================================================================
   DIALIFY — corporate identity + compact admin density
   Logo: vivid green wordmark on charcoal, "no appointments, no problem".
   Surfaces stay on the EVRA lock; only the accent and the density change.
   ========================================================================== */
:root, [data-bs-theme='dark'] {
  --df-green: #3fb24a;         /* logo wordmark + swoosh */
  --df-green-hi: #4ecb5a;      /* hover / emphasis */
  --df-green-dim: #2e8a38;     /* pressed */
  --df-charcoal: #1e242b;      /* logo plate */
  --evra-primary: var(--df-green);
  --bs-primary: var(--df-green);
  --bs-primary-rgb: 63, 178, 74;
  --bs-primary-text-emphasis: #7fd98a;
  --bs-primary-bg-subtle: #14261a;
  --bs-primary-border-subtle: #23482c;
  --bs-link-color: #7fd98a;
  --bs-link-hover-color: #a3e6ab;
}

/* --- COMPACT: an admin tool is read at a glance, not browsed. Every value
   below is one step down from the comfortable scale, not a redesign. --- */
[data-bs-theme='dark'] .card { border-radius: 14px; box-shadow: var(--cf-top-highlight), 0 2px 10px rgba(0,0,0,.38); }
.card-body { padding: 1rem 1.15rem; }
.card-header { padding: .8rem 1.15rem; }
.card-header .card-title, .sb-title { font-size: .9375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.01em; }
.container-p-y { padding-top: 1.15rem !important; padding-bottom: 1.15rem !important; }
.row.g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.mb-4 { margin-bottom: 1rem !important; }

/* tables: tighter rows, quieter headers */
[data-bs-theme='dark'] .table > :not(caption) > * > * { padding: .5rem .75rem; }
[data-bs-theme='dark'] .table thead th { padding: .5rem .75rem; font-size: .625rem; }
.table { font-size: .8125rem; }

/* list rows */
.list-group-item { padding: .6rem 1.15rem; font-size: .8125rem; }

/* metrics: smaller, denser, still the hero of the card */
.cf-hero { font-size: 1.7rem; }
.cf-money-xl { font-size: 1.5rem; }
.cf-money-lg { font-size: 1.15rem; }
.df-count-xl { font-size: 2rem; }
.cf-brief-read { font-size: 1.1875rem; line-height: 1.5; }
.cf-eyebrow { font-size: .625rem; letter-spacing: .085em; }
.badge { font-size: .6875rem; padding: .22em .5em; }
.btn { font-size: .8125rem; }
.btn-sm, .btn-xs { font-size: .75rem; }

/* menu: sleeker, tighter, no heavy fills */
[data-bs-theme='dark'] .menu-item .menu-link { padding: .42rem .9rem; font-size: .8125rem; }
[data-bs-theme='dark'] .menu-item.active > .menu-link {
  background: rgba(63,178,74,.12) !important;
  box-shadow: inset 2px 0 0 var(--df-green);
}
[data-bs-theme='dark'] .menu-header-text { font-size: .5625rem; }
.app-brand { padding: .9rem 1rem; }

/* the step-guided strip gets a hairline, not a wash — minimalist reads calmer */
.cf-nextup { background: var(--cf-s1) !important; border-left: 2px solid var(--df-green); }
.cf-nextup.cf-urgent { background: var(--cf-s1) !important; border-left-color: var(--bs-danger); }
.cf-nextup.cf-clear { background: var(--cf-s1) !important; border-left-color: var(--df-green); }
.cf-step-n { width: 26px; height: 26px; font-size: .75rem; }
.cf-brief-read strong { border-bottom-color: var(--df-green); }

/* chips + quantity bars follow the logo green */
.df-chip.on { background: rgba(63,178,74,.16); border-color: var(--df-green); }
.df-chip:hover { border-color: var(--df-green); }
.df-bar i { background: linear-gradient(90deg, var(--df-green-dim), var(--df-green-hi)); }
.cf-bar-q { background: linear-gradient(90deg, var(--df-green-dim), var(--df-green-hi)) !important; }
.cf-funnel-bar { background: linear-gradient(90deg, var(--df-green-dim), var(--df-green)); color: #06170a; padding: 5px 10px; }
.cf-funnel-bar.cf-fb-ok { background: linear-gradient(90deg, var(--df-green), var(--df-green-hi)); }
.df-lime { color: var(--df-green-hi); }
.cf-day.v4 { background: #2e8a38; border-color: #3fb24a; }
.cf-day.v5 { background: linear-gradient(135deg, #3fb24a, #6fd97a); border-color: #6fd97a; }
.cf-tile { padding: .7rem .85rem; }

/* keyboard reachability for the row-links we made focusable */
tr[role='link']:focus-visible { outline: 2px solid var(--df-green); outline-offset: -2px; }

/* ==========================================================================
   ROUND 1 FIXES — GPT-4.1 + Grok, 2026-08-12
   ========================================================================== */

/* Weight must rise WITH size, never against it. Three selectors inverted it. */
.cf-eyebrow { font-weight: 600; }
.menu-header-text, [data-bs-theme='dark'] .menu-header-text { font-weight: 600; }
.cf-brief dt { font-weight: 600; }

/* The briefing switched sans -> mono mid-sentence on every bolded phrase.
   Numerals still line up via tabular-nums on the parent; the family stays put. */
.cf-brief-read { font-variant-numeric: tabular-nums; }
.cf-brief-read strong { font-family: inherit; font-weight: 700; }

/* Real bug: .cf-band-mark is absolutely positioned against a parent that was
   never a containing block, so the score marker was placed off the page box. */
.cf-band { position: relative; }
.cf-band span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Calendar: pending events were 55% wide AND 1.5px-bordered, so their left
   edge sat 1.5px off every solid event beside them. Same width, same edge —
   the dash alone carries "not confirmed". */
.cf-ev { padding: .35rem .6rem; }
.cf-ev-pend { width: auto; border: 0; border-left: 3px dashed var(--bs-warning); }
.cf-cal-axis { padding-right: 6px; }
.cf-day.today { outline-offset: 0; }
.cf-day.off { border-style: solid; border-color: rgba(255,255,255,.06); }

/* Off-bars were #333 against a #141414 card — louder than the signal. */
.cf-wave i { background: var(--cf-s2); }
.cf-chapter:hover { background: var(--cf-s1); }

/* One padding for both funnel states, so the bars stack on a single rhythm. */
.cf-funnel-bar, .cf-funnel-bar.cf-fb-ok { padding: 5px 10px; }

/* Compact went one step too far and killed the elevation with it. This is the
   smallest gradient that still reads as a raised strip rather than a rule. */
.cf-nextup { background: linear-gradient(90deg, #171717 0%, var(--cf-s1) 55%) !important; }
.cf-nextup .card-body { align-items: center; }

/* Meeting platform chip — a broker must know Teams vs Meet before they stand up. */
.df-plat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .625rem; font-weight: 600; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.df-plat-teams { background: rgba(91,95,199,.16); color: #9ea2ee; border: 1px solid rgba(91,95,199,.32); }
.df-plat-meet  { background: rgba(0,166,80,.14);  color: #66c78f; border: 1px solid rgba(0,166,80,.30); }

/* ==========================================================================
   ROUND 2 FIXES. Not everything was taken — notes on what was rejected and why.
   ========================================================================== */
.cf-band span { padding: 0 .5rem; }
.cf-cal-axis span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48px; }
.cf-chapter b { font-weight: 700; }
.cf-brief dd { margin-bottom: 1rem; }
.df-chip.on { background: rgba(63,178,74,.22); }
.df-plat-teams { border-color: #5b5fc7; }
.df-plat-meet { border-color: #00a650; }

/* The base strip regained a gradient in round 1 but the two state variants were
   left flat, so an urgent strip read as LESS raised than a normal one. */
.cf-nextup.cf-urgent { background: linear-gradient(90deg, #221414 0%, var(--cf-s1) 55%) !important; }
.cf-nextup.cf-clear  { background: linear-gradient(90deg, #14211a 0%, var(--cf-s1) 55%) !important; }

/* REJECTED, with reasons:
   - ".cf-ev padding to .5rem .75rem" — .cf-ev has an inline height of 28px on the
     week grid; .5rem vertical padding plus a 12px line box overflows and clips the
     client name. Density here is bounded by the hour row, not by the card scale.
   - ".cf-band-mark to top:0/bottom:0" — the 4px overhang is deliberate; the marker
     is meant to break the band's edge so the score reads as a point ON a scale
     rather than a segment of it.
   - ".cf-funnel-bar needs lighter text" — quoted #08122a, which is the old blue
     value. It is #06170a on a light-green gradient and already exceeds 4.5:1.
   - "add POPIA + Audit sidebar items" — both already exist (data-nav dsr, audit).
   - ".cf-nextup needs the card shadow" — it IS a .card and already inherits it. */

/* Bulk QA — throughput is the constraint on the business model, so the reviewer
   must be able to clear the obvious ones without opening each. */
.df-bulk {
  display: none; align-items: center; gap: .5rem;
  background: var(--cf-s2); border: 1px solid var(--cf-hairline-strong);
  border-radius: 10px; padding: .5rem .75rem; margin-bottom: .75rem;
}
.df-bulk.on { display: flex; }

/* ==========================================================================
   ROUND 3 — the last concrete items. The rest of round 3 was conditional
   ("if labels are inserted", "if rounding errors occur") rather than a defect
   present in the build, so it was not applied.
   ========================================================================== */
.cf-brief-read { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.cf-day { padding: 4px 4px 11px; }          /* dots no longer crowd a 2-digit date */
.cf-day.today { outline-width: 1px; }        /* parity with the 1px grid borders */
.cf-ev { min-width: 62px; }
.df-bulk .form-check-input, .df-bulk .btn { vertical-align: middle; }

/* ==========================================================================
   REFERENCE PASS — matched to the operator's supplied Dialify mockup.
   Brighter green, boxed sidebar active state, icon-tile KPIs, blue for
   chart DATA while green stays reserved for STATE.
   ========================================================================== */
:root, [data-bs-theme='dark'] {
  --df-green: #45d67c;
  --df-green-hi: #6ee79a;
  --df-green-dim: #2fa85e;
  --df-data: #5b8def;          /* chart bars — data is never green */
  --bs-primary: #45d67c;
  --bs-primary-rgb: 69, 214, 124;
  --bs-primary-text-emphasis: #8febb0;
  --bs-primary-bg-subtle: #10251a;
  --bs-primary-border-subtle: rgba(69,214,124,.28);
  --bs-link-color: #8febb0;
  --evra-primary: #45d67c;
  --cf-s1: #111213;
  --bs-card-bg: #111213;
}
[data-bs-theme='dark'] .btn-primary { --bs-btn-color: #06210f; --bs-btn-hover-color: #06210f; font-weight: 600; }

/* --- shell --- */
[data-bs-theme='dark'] .layout-menu { width: 200px; }
.layout-menu-fixed .layout-page { padding-left: 200px; }
@media (max-width: 1199.98px) { .layout-menu-fixed .layout-page { padding-left: 0; } }
.app-brand { padding: 1.1rem .9rem 1rem; }
.app-brand-text { font-size: 1.2rem !important; letter-spacing: -.03em; }

/* Active nav is a BOX, not a bar — it reads as a selected object. */
[data-bs-theme='dark'] .menu-inner { padding: 0 .6rem; }
[data-bs-theme='dark'] .menu-item { margin-bottom: 2px; }
[data-bs-theme='dark'] .menu-item .menu-link {
  padding: .5rem .65rem; font-size: .8125rem; border-radius: 9px; color: #8b8f8d;
}
[data-bs-theme='dark'] .menu-item .menu-link .menu-icon { font-size: 1.05rem; margin-right: .6rem; }
[data-bs-theme='dark'] .menu-item.active > .menu-link {
  background: rgba(69,214,124,.07) !important;
  border: 1px solid rgba(69,214,124,.30);
  box-shadow: none;
  color: #fff !important; font-weight: 600;
  padding: calc(.5rem - 1px) calc(.65rem - 1px);
}
[data-bs-theme='dark'] .menu-item.active > .menu-link .menu-icon { color: var(--df-green); }
[data-bs-theme='dark'] .menu-header { padding: .9rem .65rem .35rem; }

/* --- page header --- */
h4 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.cf-screen > .mb-4 > p, .cf-screen p.text-body-secondary { font-size: .875rem; }

/* --- cards --- */
[data-bs-theme='dark'] .card {
  background: var(--cf-s1);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 14px;
  box-shadow: none;
}
.card-body { padding: 1.15rem 1.25rem; }
.card-header { padding: 1rem 1.25rem .75rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.card-header .card-title, .sb-title { font-size: 1rem; font-weight: 600; color: #fff; }

/* icon tile — the reference puts one on every card head and KPI */
.df-tile {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(69,214,124,.10); color: var(--df-green); font-size: 1rem; flex-shrink: 0;
}
.df-tile-lg { width: 46px; height: 46px; border-radius: 12px; font-size: 1.25rem; }

/* --- KPI --- */
.cf-hero, .kpi-v { font-size: 1.85rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.cf-money-xl { font-size: 1.6rem; }
.cf-money-lg { font-size: 1.2rem; }
h4.mb-1.cf-num, .card-body > h4 { font-size: 1.85rem; font-weight: 700; color: #fff; }
.df-delta { font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.df-delta-up { color: var(--df-green); }
.df-delta-down { color: #ff6b6b; }

/* --- tables --- */
[data-bs-theme='dark'] .table thead th {
  background: transparent; font-size: .6875rem; letter-spacing: .08em;
  color: #6b706d; font-weight: 600; padding: .6rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
[data-bs-theme='dark'] .table > tbody > tr > td { padding: .8rem 1.25rem; font-size: .8125rem; border-bottom: 1px solid rgba(255,255,255,.04); }
[data-bs-theme='dark'] .table-hover > tbody > tr:hover > * { background: rgba(255,255,255,.022); }
.table { font-size: .8125rem; }

/* --- list rows: accent bar sits flush on the card edge --- */
.list-group-item { padding: .85rem 1.25rem; font-size: .8125rem; border-color: rgba(255,255,255,.04); }

/* --- badges / chips --- */
.badge { font-size: .6875rem; font-weight: 600; padding: .3em .6em; border-radius: 6px; }
[data-bs-theme='dark'] .bg-label-success { background: rgba(69,214,124,.12) !important; color: var(--df-green) !important; }
[data-bs-theme='dark'] .bg-label-primary { background: rgba(69,214,124,.12) !important; color: var(--df-green) !important; }

/* --- the up-next strip matches the reference: tile + eyebrow + actions --- */
.cf-nextup { background: var(--cf-s1) !important; border-left: 0; border: 1px solid rgba(255,255,255,.055); }
.cf-nextup.cf-urgent { background: var(--cf-s1) !important; }
.cf-nextup.cf-clear { background: var(--cf-s1) !important; }
.cf-step-n { width: 46px; height: 46px; border-radius: 12px; background: rgba(69,214,124,.10); color: var(--df-green); box-shadow: none; font-size: 1.1rem; }
.cf-nextup.cf-urgent .cf-step-n { background: rgba(255,107,107,.10); color: #ff6b6b; }

/* --- charts: DATA is blue, STATE is green --- */
.cf-funnel-bar, .cf-funnel-bar.cf-fb-ok { background: linear-gradient(90deg, #2fa85e, #45d67c); color: #06210f; border-radius: 5px; }
.cf-bar-q { background: linear-gradient(90deg, #2fa85e, #45d67c) !important; }
.df-bar i { background: linear-gradient(90deg, #2fa85e, #45d67c); }

/* --- buttons --- */
.btn { border-radius: 9px; font-size: .8125rem; font-weight: 500; }
[data-bs-theme='dark'] .btn-outline-secondary,
[data-bs-theme='dark'] .btn-ev-ghost {
  border-color: rgba(255,255,255,.12); color: #c9cbca; background: transparent;
}
[data-bs-theme='dark'] .btn-outline-secondary:hover { background: rgba(255,255,255,.045); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-xs { padding: .25rem .6rem; font-size: .75rem; }

/* --- sidebar footer: upgrade card + user chip, as in the reference --- */
.df-side-foot { padding: .6rem; margin-top: auto; }
.df-upgrade {
  background: var(--cf-s1); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: .85rem; margin-bottom: .6rem;
}
.df-upgrade h6 { font-size: .8125rem; font-weight: 600; color: #fff; margin-bottom: .25rem; }
.df-upgrade p { font-size: .6875rem; color: #6b706d; margin-bottom: .65rem; line-height: 1.4; }
.df-user {
  display: flex; align-items: center; gap: .55rem;
  background: var(--cf-s1); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: .55rem .65rem;
}
[data-bs-theme='dark'] .layout-menu { display: flex; flex-direction: column; }
[data-bs-theme='dark'] .menu-inner { flex: 1 1 auto; }

/* ==========================================================================
   GPT-4.1 VISION PASS — critiqued from screenshots against the reference.
   These were the defects it found on every screen, not just one.
   ========================================================================== */

/* Primary buttons were rendering white-on-green. The reference is DARK ink on
   green — it is what makes the button read as a solid object rather than a tint. */
[data-bs-theme='dark'] .btn-primary,
[data-bs-theme='dark'] .btn-primary:hover,
[data-bs-theme='dark'] .btn-primary:focus {
  background: var(--df-green) !important;
  border-color: var(--df-green) !important;
  color: #06210f !important;
  font-weight: 600;
}
[data-bs-theme='dark'] .btn-primary:hover { background: var(--df-green-hi) !important; }
[data-bs-theme='dark'] .btn-success { background: var(--df-green) !important; border-color: var(--df-green) !important; color: #06210f !important; }

/* Table headers were losing the uppercase/letterspacing to Vuexy's own rule. */
[data-bs-theme='dark'] .table thead th,
[data-bs-theme='dark'] .tbl thead th {
  text-transform: uppercase !important;
  letter-spacing: .075em !important;
  font-size: .6875rem !important;
  color: #6b706d !important;
  font-weight: 600 !important;
}
.chev, .table .tabler-chevron-right { color: #9aa09d !important; }

/* Delta chips: a bare green number reads as body text, not a movement. */
.df-delta, .text-success.small, small.text-success {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(69,214,124,.10); color: var(--df-green);
  font-size: .6875rem; font-weight: 600;
  border-radius: 7px; padding: 1px 6px;
}

/* Accent bars: 3px, flush to the card edge, squared off against the radius. */
.list-group-item[style*="border-left"] { border-left-width: 3px !important; padding-left: calc(1.25rem - 3px); }

/* Status chips outlined rather than filled — the reference never fills a chip. */
[data-bs-theme='dark'] .bg-label-success { border: 1px solid rgba(69,214,124,.28); }
[data-bs-theme='dark'] .bg-label-warning { border: 1px solid rgba(255,214,0,.24); }
[data-bs-theme='dark'] .bg-label-danger  { border: 1px solid rgba(255,107,107,.26); }
[data-bs-theme='dark'] .bg-label-secondary { border: 1px solid rgba(255,255,255,.09); }

/* DEAD SPACE — the repeated complaint. Tighten the gutter between the main
   column and the right rail, and stop the content column short of the edge. */
.container-fluid.container-p-y { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.row.g-4 { --bs-gutter-x: .9rem; --bs-gutter-y: .9rem; }
.cf-screen .card { margin-bottom: .9rem; }
.cf-screen .mb-4 { margin-bottom: .9rem !important; }
.card-body > .row:last-child, .card-body > *:last-child { margin-bottom: 0; }
/* cards in a rail stretch to the column, never leave a right-hand gap */
.col-12 > .card, .col-xl-8 > .card, .col-xxl-9 > .card, .col-xl-4 > .card, .col-xxl-3 > .card { width: 100%; }

/* The eyebrow above a strip title was too faint to read as a label. */
.cf-nextup .text-uppercase { color: #8b8f8d !important; font-size: .625rem !important; letter-spacing: .09em !important; font-weight: 600 !important; }

/* ==========================================================================
   THE DEAD SPACE, MEASURED AND KILLED.
   .layout-page had margin-left:232px (correct, clears the fixed sidebar) AND
   padding-left:260px (Vuexy's own, on top of it), and .content-wrapper added a
   further 90px. 350px of the viewport was empty gutter. Measured in the browser,
   not guessed.
   ========================================================================== */
.layout-menu-fixed .layout-page,
[data-bs-theme='dark'] .layout-page { padding-left: 0 !important; padding-right: 0 !important; }
.content-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
.container-fluid.container-p-y { padding-left: 1.25rem !important; padding-right: 1.25rem !important; max-width: 100% !important; }
.layout-navbar.container-fluid { padding-left: 1.25rem !important; padding-right: 1.25rem !important; margin: 0 !important; width: auto !important; }
@media (max-width: 1199.98px) { [data-bs-theme='dark'] .layout-page { margin-left: 0 !important; } }

/* ==========================================================================
   ROLE SWITCH — one product, two audiences.
   OWNER: every company on Dialify, all brokers, platform revenue and margin.
   BROKER: only their own diary, calls, wallet and reports.
   ========================================================================== */
body[data-role='broker'] .r-owner { display: none !important; }
body[data-role='owner'] .r-broker { display: none !important; }

.df-roles { display: inline-flex; background: var(--cf-s1); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 2px; }
.df-roles button {
  border: 0; background: transparent; color: #8b8f8d;
  font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 7px;
  display: inline-flex; align-items: center; gap: .35rem;
}
.df-roles button.on { background: rgba(69,214,124,.12); color: var(--df-green); box-shadow: inset 0 0 0 1px rgba(69,214,124,.3); }

/* the last 90px: .content-wrapper padding survived on specificity */
.layout-wrapper .layout-container .layout-page .content-wrapper,
.layout-wrapper .content-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
.layout-page > .content-wrapper > .container-fluid { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

/* --- real logo lockup, sized to the sidebar --- */
.app-brand { padding: 1.15rem 1rem .95rem; display: block; }
.app-brand-link { text-decoration: none; }
.df-logo { width: 100%; max-width: 168px; height: auto; display: block; }
.df-tagline {
  font-size: .625rem; color: #8b8f8d; margin-top: .3rem;
  letter-spacing: .005em; white-space: nowrap;
}
.df-tagline span { color: #45d67c; }
.menu-collapsed .df-logo, .menu-collapsed .df-tagline { display: none; }

/* ==========================================================================
   SYSTEM-WIDE CONTAINER GUTTER — 90px both sides, operator instruction.
   Applies to every screen and to the navbar, so the header controls line up
   with the content beneath them rather than sitting proud of it.
   ========================================================================== */
.layout-page > .content-wrapper > .container-fluid,
.container-fluid.flex-grow-1.container-p-y {
  padding-left: 90px !important;
  padding-right: 90px !important;
}
.layout-navbar.container-fluid {
  padding-left: 90px !important;
  padding-right: 90px !important;
}
@media (max-width: 1399.98px) {
  .layout-page > .content-wrapper > .container-fluid,
  .container-fluid.flex-grow-1.container-p-y,
  .layout-navbar.container-fluid { padding-left: 40px !important; padding-right: 40px !important; }
}
@media (max-width: 767.98px) {
  .layout-page > .content-wrapper > .container-fluid,
  .container-fluid.flex-grow-1.container-p-y,
  .layout-navbar.container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ==========================================================================
   THE DESK BRIEFING AS A STICKY NOTE.
   Was: 1.5rem prose with every figure bolded AND green-underlined — the
   underlines turned a sentence into a ransom note. Now it is a note pinned to
   the board: quieter paper, smaller text, figures carried by colour alone.
   ========================================================================== */
.df-note {
  position: relative;
  background: linear-gradient(160deg, #17211b 0%, #141b17 100%);
  border: 1px solid rgba(69,214,124,.14);
  border-radius: 4px 4px 4px 18px;               /* the peeled corner */
  padding: 1.15rem 1.35rem 1.25rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.045);
  max-width: 780px;
}
/* the folded corner, bottom-left, as a shadowed triangle */
.df-note::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  border-width: 0 0 18px 18px;
  border-style: solid;
  border-color: transparent transparent var(--cf-s0) transparent;
  filter: drop-shadow(-1px -1px 1px rgba(0,0,0,.5));
}
/* the pin */
.df-note::before {
  content: '';
  position: absolute; top: -5px; right: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--df-green);
  box-shadow: 0 0 0 3px rgba(69,214,124,.16), 0 2px 4px rgba(0,0,0,.6);
}
.df-note .cf-eyebrow { color: rgba(69,214,124,.75); margin-bottom: .45rem; display: block; }

/* Body: readable prose, not a headline. */
.cf-brief-read {
  font-size: .9375rem;
  line-height: 1.72;
  font-weight: 400;
  color: #cfd4d1;
  letter-spacing: 0;
}
/* Figures read by COLOUR and a small weight step. No underline, no heavy bold —
   an underline on every number makes the eye stop six times in one sentence. */
.cf-brief-read strong {
  font-weight: 600;
  color: var(--df-green);
  border-bottom: 0;
  padding: 0;
  font-family: inherit;
}
@media (max-width: 767.98px) { .cf-brief-read { font-size: .875rem; } }

/* --- tab strips: hub style, no container, hairline baseline --- */
.df-tabs {
  display: flex; list-style: none; padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: .15rem; flex-wrap: wrap; margin: 0 0 1rem 0;
}
.df-tabs .nav-link {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: #8b8f8d; font-size: .8125rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: 0; margin-bottom: -1px;
}
.df-tabs .nav-link:hover { color: #d8dbd9; }
.df-tabs .nav-link.active { color: var(--df-green); border-bottom-color: var(--df-green); font-weight: 600; }

/* ==========================================================================
   FULL VISION PASS — 23 screens, GPT-4.1, four batches.
   The complaints repeated across almost every screen, which meant they were
   never per-screen bugs: they were two selectors that the theme never reached.
   ========================================================================== */

/* 1. The EVRA component layer uses .sb-card, not .card, so every screen built
   on it (audience, map, saved, and the strips) missed the entire card
   treatment — hence "backgrounds too light, borders missing, radius wrong"
   on four separate screens. */
[data-bs-theme='dark'] .sb-card,
[data-bs-theme='dark'] .sb-card--flush {
  background: var(--cf-s1) !important;
  border: 1px solid rgba(255,255,255,.055) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
[data-bs-theme='dark'] .sb-card-hdr,
[data-bs-theme='dark'] .sb-card-hdr--ruled {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
[data-bs-theme='dark'] .sb-card .card-body { padding: 1.15rem 1.25rem; }
[data-bs-theme='dark'] .sb-title { font-size: 1rem; font-weight: 600; color: #fff; }
[data-bs-theme='dark'] .sb-subtitle { font-size: .75rem; color: #6b706d; }

/* 2. The EVRA strip table has its own header rule, so the uppercase treatment
   applied to .table never reached .tbl. */
[data-bs-theme='dark'] .tbl thead th {
  text-transform: uppercase !important;
  letter-spacing: .075em !important;
  font-size: .6875rem !important;
  color: #6b706d !important;
  font-weight: 600 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  padding: .6rem 1.25rem !important;
}
[data-bs-theme='dark'] .tbl td { padding: .8rem 1.25rem !important; border-bottom: 1px solid rgba(255,255,255,.04) !important; font-size: .8125rem; }
[data-bs-theme='dark'] .tbl tr:hover td { background: rgba(255,255,255,.022); }

/* 3. Every page gets the same header block: title, one grey line, controls
   right. It was only on the dashboard, so 20 screens read as unfinished. */
.df-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
.df-pagehead h4 { margin-bottom: .15rem; }
.df-pagehead p { margin-bottom: 0; font-size: .875rem; color: #6b706d; }
.df-pagectl { display: flex; gap: .5rem; flex-shrink: 0; }

/* 4. Inputs were heavier than the reference — minimal well, not an outlined box. */
[data-bs-theme='dark'] .form-control,
[data-bs-theme='dark'] .form-select {
  background: #17191a; border-color: rgba(255,255,255,.07);
  font-size: .8125rem; border-radius: 9px; box-shadow: none;
}
[data-bs-theme='dark'] .form-control:focus,
[data-bs-theme='dark'] .form-select:focus {
  border-color: rgba(69,214,124,.5); box-shadow: 0 0 0 3px rgba(69,214,124,.12);
}

/* --- tab strips: hub style, no container, hairline baseline --- */
.df-tabs {
  display: flex; list-style: none; padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: .15rem; flex-wrap: wrap; margin: 0 0 1rem 0;
}
.df-tabs .nav-link {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: #8b8f8d; font-size: .8125rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: 0; margin-bottom: -1px;
}
.df-tabs .nav-link:hover { color: #d8dbd9; }
.df-tabs .nav-link.active { color: var(--df-green); border-bottom-color: var(--df-green); font-weight: 600; }

/* screens whose header is a plain block get the same rhythm as .df-pagehead */
.cf-screen > .mb-4:first-child h4, .cf-screen > .df-pagehead h4 { margin-bottom: .15rem; }
.cf-screen > .mb-4:first-child p { font-size: .875rem; color: #6b706d; margin-bottom: 0; }
.cf-screen > .mb-4:first-child { margin-bottom: 1rem !important; }


/* ==========================================================================
   BRAND CORRECTION — the green is OLIVE, per the supplied logo sheet.
   Everything that was #45D67C bright green moves to the olive family.
   ========================================================================== */
:root, [data-bs-theme='dark'] {
  --df-green: #6F9C38;
  --df-green-hi: #8ABF4A;
  --df-green-dim: #55772A;
  --bs-primary: #6F9C38;
  --bs-primary-rgb: 111, 156, 56;
  --bs-primary-text-emphasis: #a8cf6b;
  --bs-primary-bg-subtle: #1a2110;
  --bs-primary-border-subtle: rgba(111,156,56,.30);
  --bs-link-color: #a8cf6b;
  --bs-link-hover-color: #c2e08d;
  --evra-primary: #6F9C38;
  --bs-success: #6F9C38;
  --bs-success-rgb: 111, 156, 56;
  --bs-success-text-emphasis: #a8cf6b;
  --bs-success-bg-subtle: #1a2110;
}
[data-bs-theme='dark'] .btn-primary,
[data-bs-theme='dark'] .btn-primary:focus { background: #6F9C38 !important; border-color: #6F9C38 !important; color: #0d1206 !important; }
[data-bs-theme='dark'] .btn-primary:hover { background: #8ABF4A !important; border-color: #8ABF4A !important; }
[data-bs-theme='dark'] .btn-success { background: #6F9C38 !important; border-color: #6F9C38 !important; color: #0d1206 !important; }
[data-bs-theme='dark'] .bg-label-success,
[data-bs-theme='dark'] .bg-label-primary { background: rgba(111,156,56,.14) !important; color: #a8cf6b !important; border: 1px solid rgba(111,156,56,.28); }
[data-bs-theme='dark'] .menu-item.active > .menu-link {
  background: rgba(111,156,56,.09) !important; border-color: rgba(111,156,56,.34);
}
[data-bs-theme='dark'] .menu-item.active > .menu-link .menu-icon { color: #8ABF4A; }
.df-tabs .nav-link.active { color: #a8cf6b; border-bottom-color: #6F9C38; }
.cf-funnel-bar, .cf-funnel-bar.cf-fb-ok { background: linear-gradient(90deg, #55772A, #8ABF4A); color: #0d1206; }
.cf-bar-q, .df-bar i { background: linear-gradient(90deg, #55772A, #8ABF4A) !important; }
.df-chip.on { background: rgba(111,156,56,.20); border-color: #6F9C38; }
.df-tile { background: rgba(111,156,56,.12); color: #8ABF4A; }
.cf-step-n { background: rgba(111,156,56,.12); color: #8ABF4A; }
.df-delta-up, .text-success { color: #8ABF4A !important; }
.df-delta { background: rgba(111,156,56,.12); color: #8ABF4A; }
.cf-brief-read strong { color: #a8cf6b; }
.df-note { background: linear-gradient(160deg, #1b2113 0%, #171c11 100%); border-color: rgba(111,156,56,.16); }
.df-note::before { background: #6F9C38; box-shadow: 0 0 0 3px rgba(111,156,56,.16), 0 2px 4px rgba(0,0,0,.6); }
.df-note .cf-eyebrow { color: rgba(168,207,107,.8); }
.df-upgrade button { border-color: rgba(111,156,56,.45) !important; color: #a8cf6b !important; }
.df-user .avatar-initial { background: rgba(111,156,56,.14) !important; color: #8ABF4A !important; }
.df-roles button.on { background: rgba(111,156,56,.14); color: #a8cf6b; box-shadow: inset 0 0 0 1px rgba(111,156,56,.32); }

/* logo lockup */
.df-logo { width: 100%; max-width: 176px; height: auto; display: block; }
.df-tagline { font-size: .625rem; color: #cfd4d1; margin-top: .35rem; white-space: nowrap; }
.df-tagline span { color: #8ABF4A; }


/* ==========================================================================
   GLOBAL FIT PASS — zero dead space, compact density, full-surface fill.
   Measured gaps before this pass: wallet 698px, qa 399px, pricing 344px,
   welcome 152px of unused row width, and broker screens running 180px
   narrower than owner screens.
   ========================================================================== */

/* 1 — every screen uses the same full surface. Nothing is centred into a
   narrower column than its neighbours. */
.cf-screen { width: 100%; }
.cf-screen > .row { width: 100%; margin-left: 0; margin-right: 0; }
.cf-screen .mx-auto { margin-left: 0 !important; margin-right: 0 !important; }
.cf-screen .col-xl-9.mx-auto,
.cf-screen .col-12.col-xl-9,
.cf-screen .col-12.col-xl-9.mx-auto { flex: 0 0 100% !important; max-width: 100% !important; }
.cf-screen .row.justify-content-center { justify-content: flex-start !important; }

/* 2 — a column left alone by a tab filter takes the whole row instead of
   holding its old span and leaving the right side empty. */
.cf-screen [class*="col-"].df-fill { flex: 0 0 100% !important; max-width: 100% !important; }

/* 3 — KPI and stat rows fill the surface at any width: no fixed 4-up that
   leaves a tail, no 3-up that leaves a quarter empty. */
.cf-screen > .row.g-3:has(> [class*="col-6"]),
.cf-screen > .row.g-4:has(> [class*="col-6"]),
.cf-screen [data-otab] > .row.g-3:has(> [class*="col-6"]) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .75rem;
}
.cf-screen > .row.g-3:has(> [class*="col-6"]) > [class*="col-"],
.cf-screen > .row.g-4:has(> [class*="col-6"]) > [class*="col-"],
.cf-screen [data-otab] > .row.g-3:has(> [class*="col-6"]) > [class*="col-"] {
  max-width: none !important; flex: initial !important; width: auto !important; padding: 0 !important;
}

/* 4 — cards stretch to their column and to each other in a row. */
.cf-screen [class*="col-"] > .card,
.cf-screen [class*="col-"] > .sb-card { width: 100% !important; height: 100%; margin-bottom: 0; }
.cf-screen .row > [class*="col-"] { display: flex; flex-direction: column; }
.cf-screen .row > [class*="col-"] > .card:not(:last-child),
.cf-screen .row > [class*="col-"] > .sb-card:not(:last-child) { height: auto; margin-bottom: .75rem; }

/* 5 — compact. Density over air. */
.card-body { padding: .7rem .85rem !important; }
.card-header { padding: .65rem .85rem .5rem !important; }
.sb-card-hdr, .sb-card-hdr--ruled { padding: .65rem .85rem .5rem !important; }
.list-group-item { padding: .55rem .85rem !important; }
[data-bs-theme='dark'] .table > tbody > tr > td,
[data-bs-theme='dark'] .tbl td { padding: .5rem .85rem !important; }
[data-bs-theme='dark'] .table thead th,
[data-bs-theme='dark'] .tbl thead th { padding: .45rem .85rem !important; }
.container-p-y { padding-top: .85rem !important; padding-bottom: .85rem !important; }
.row.g-3, .row.g-4 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
.cf-screen .card, .cf-screen .sb-card { margin-bottom: .75rem; }
.cf-screen .mb-4, .cf-screen .mb-3 { margin-bottom: .75rem !important; }
.df-pagehead { margin-bottom: .75rem; }
.df-tabs { margin-bottom: .75rem !important; }
.cf-hero { font-size: 1.6rem; }
.df-count-xl { font-size: 1.75rem; }
.df-note { padding: .8rem 1rem .9rem; max-width: none; }

/* 6 — inner content expands rather than sitting at a default width. */
.cf-screen .form-control,
.cf-screen .form-select,
.cf-screen textarea { width: 100%; }
.cf-screen .table { width: 100%; table-layout: auto; }
.cf-screen .table-responsive { width: 100%; }
.cf-screen .progress { width: 100%; }
.cf-screen .cf-cal { width: 100%; }
.cf-screen #df-map { width: 100%; }
.cf-screen .apexcharts-canvas { width: 100% !important; }
.cf-screen .df-heat, .cf-screen .cf-heat { width: 100%; }

/* 7 — two-column screens stop being 8/4 on very wide surfaces, where a 4 rail
   leaves the main column over-wide and the rail starved. */
@media (min-width: 1600px) {
  .cf-screen .col-xxl-9 { flex: 0 0 74% !important; max-width: 74% !important; }
  .cf-screen .col-xxl-3 { flex: 0 0 26% !important; max-width: 26% !important; }
}

/* padding: raise specificity above the theme's own .card-body rules, and
   collapse any row a tab filter has emptied so it cannot leave a hole */
[data-bs-theme='dark'] .card > .card-body,
[data-bs-theme='dark'] .sb-card > .card-body { padding: .7rem .85rem !important; }
[data-bs-theme='dark'] .card > .card-header,
[data-bs-theme='dark'] .sb-card > .sb-card-hdr { padding: .6rem .85rem .45rem !important; }
.cf-screen .row.df-empty { display: none !important; }


/* ==========================================================================
   RETURN PATHS. Every audit flagged the same defect: a deep screen ends and
   the only way out is the sidebar. A breadcrumb in, a next step out.
   ========================================================================== */
.df-crumb { margin-bottom: .35rem; }
.df-crumb a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; color: #6b706d; text-decoration: none;
}
.df-crumb a:hover { color: var(--df-green-hi, #8ABF4A); }
.df-crumb i { font-size: .8rem; }

.df-nextstep {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: .75rem; padding-top: .75rem;
}
.df-nextstep-note { font-size: .75rem; color: #6b706d; }

/* role context: the audits flagged twice that the active view was not legible
   at a glance. The label plus a tinted body edge make it unambiguous. */
.df-rolectx { font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: #6b706d; font-weight: 600; }
body[data-role='owner'] .layout-page { box-shadow: inset 0 3px 0 rgba(111,156,56,.55); }
body[data-role='owner'] .df-rolectx::after { content: ' · platform'; color: #8ABF4A; }
body[data-role='broker'] .df-rolectx::after { content: ' · brokerage'; color: #8b8f8d; }

/* ==========================================================================
   BRAND OLIVE, SAMPLED FROM THE SUPPLIED LOGO FILE — #788C28.
   Earlier passes used #6F9C38, which was read off a screenshot and sat too
   green. These values come from the artwork itself.
   ========================================================================== */
:root, [data-bs-theme='dark'] {
  --df-green: #788C28;
  --df-green-hi: #9AB23A;
  --df-green-dim: #5A6B1E;
  --bs-primary: #788C28;
  --bs-primary-rgb: 120, 140, 40;
  --bs-primary-text-emphasis: #B5CC63;
  --bs-primary-bg-subtle: #1b1f0d;
  --bs-primary-border-subtle: rgba(120,140,40,.32);
  --bs-link-color: #B5CC63;
  --bs-link-hover-color: #cfe08c;
  --evra-primary: #788C28;
  --bs-success: #788C28;
  --bs-success-rgb: 120, 140, 40;
  --bs-success-text-emphasis: #B5CC63;
  --bs-success-bg-subtle: #1b1f0d;
}
[data-bs-theme='dark'] .btn-primary,
[data-bs-theme='dark'] .btn-primary:focus { background: #788C28 !important; border-color: #788C28 !important; color: #0d0f06 !important; }
[data-bs-theme='dark'] .btn-primary:hover { background: #9AB23A !important; border-color: #9AB23A !important; }
[data-bs-theme='dark'] .btn-success { background: #788C28 !important; border-color: #788C28 !important; color: #0d0f06 !important; }
[data-bs-theme='dark'] .bg-label-success,
[data-bs-theme='dark'] .bg-label-primary { background: rgba(120,140,40,.16) !important; color: #B5CC63 !important; border: 1px solid rgba(120,140,40,.30); }
[data-bs-theme='dark'] .menu-item.active > .menu-link { background: rgba(120,140,40,.10) !important; border-color: rgba(120,140,40,.36); }
[data-bs-theme='dark'] .menu-item.active > .menu-link .menu-icon { color: #9AB23A; }
.df-tabs .nav-link.active { color: #B5CC63; border-bottom-color: #788C28; }
.cf-funnel-bar, .cf-funnel-bar.cf-fb-ok { background: linear-gradient(90deg, #5A6B1E, #9AB23A); color: #0d0f06; }
.cf-bar-q, .df-bar i { background: linear-gradient(90deg, #5A6B1E, #9AB23A) !important; }
.df-chip.on { background: rgba(120,140,40,.22); border-color: #788C28; }
.df-tile, .cf-step-n { background: rgba(120,140,40,.12); color: #9AB23A; }
.df-delta-up, .text-success { color: #9AB23A !important; }
.df-delta { background: rgba(120,140,40,.12); color: #9AB23A; }
.cf-brief-read strong { color: #B5CC63; }
.df-note { background: linear-gradient(160deg, #1c1f12 0%, #181a10 100%); border-color: rgba(120,140,40,.18); }
.df-note::before { background: #788C28; box-shadow: 0 0 0 3px rgba(120,140,40,.18), 0 2px 4px rgba(0,0,0,.6); }
.df-note .cf-eyebrow { color: rgba(181,204,99,.8); }
.df-upgrade button { border-color: rgba(120,140,40,.48) !important; color: #B5CC63 !important; }
.df-user .avatar-initial { background: rgba(120,140,40,.16) !important; color: #9AB23A !important; }
.df-roles button.on { background: rgba(120,140,40,.16); color: #B5CC63; box-shadow: inset 0 0 0 1px rgba(120,140,40,.34); }
.df-crumb a:hover { color: #9AB23A; }
body[data-role='owner'] .layout-page { box-shadow: inset 0 3px 0 rgba(120,140,40,.6); }
body[data-role='owner'] .df-rolectx::after { color: #9AB23A; }
tr[role='link']:focus-visible { outline-color: #788C28; }
[data-bs-theme='dark'] .form-control:focus,
[data-bs-theme='dark'] .form-select:focus { border-color: rgba(120,140,40,.55); box-shadow: 0 0 0 3px rgba(120,140,40,.14); }

/* the artwork includes the wordmark and tagline, so it needs room to breathe */
.df-logo { width: 100%; max-width: 168px; height: auto; display: block; }
.app-brand { padding: 1rem .85rem .9rem; }

/* navbar was running its labels together at 1600px */
.layout-navbar .navbar-nav-right { gap: .35rem; }
.df-rolectx { margin-left: .75rem; white-space: nowrap; }
.layout-navbar .nav-item.d-sm-flex { gap: .4rem !important; white-space: nowrap; }
