/* ═══════════════════════════════════════════════════════════
   Month Performance — drill-down dashboard
   Data-dense layout: tight spacing, tabular numbers, one section
   at a time. Palette slots: 1 blue (this month) · 2 orange
   (comparison) · 3 aqua (secondary) · grey (everything else).
   ═══════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --surface:   #ffffff;
  --page:      #f7f9fc;
  --raise:     #ffffff;
  --ink:       #0f1f3d;
  --ink-2:     #475569;
  --ink-3:     #1e293b;
  --grid:      #e7eaf7;
  --base:      #c7cce6;
  --line:      #dce5ef;
  --line-2:    rgba(28, 39, 71, .05);
  --surface-border: color-mix(in srgb, var(--ink) 34%, var(--line));

  --mtd:       #2563eb;
  --lmtd:      #ea6a2c;
  --aqua:      #0e9f76;
  --indigo:    #5138ce;

  /* Data-viz slots. These three are Anmol's APPROVED reference-design
     colours -- do not remap them onto --mtd/--good/--warn. They live here
     as tokens only so there is a single place to change them. */
  --chart-target:   #2878E8;
  --chart-achieved: #2CBF73;
  --chart-rate:     #F58220;
  --chart-sel:      rgba(40, 120, 232, .08);

  --mtd-soft:      color-mix(in srgb, var(--mtd) 6%, var(--surface));
  --mtd-border:    color-mix(in srgb, var(--mtd) 32%, var(--line));
  --good-soft:     color-mix(in srgb, var(--good) 6%, var(--surface));
  --good-border:   color-mix(in srgb, var(--good) 30%, var(--line));
  --bad-soft:      color-mix(in srgb, var(--critical) 5%, var(--surface));
  --bad-border:    color-mix(in srgb, var(--critical) 28%, var(--line));
  --indigo-soft:   color-mix(in srgb, var(--indigo) 6%, var(--surface));
  --indigo-border: color-mix(in srgb, var(--indigo) 30%, var(--line));
  --warn-soft:     color-mix(in srgb, var(--warn) 7%, var(--surface));
  --warn-border:   color-mix(in srgb, var(--warn) 32%, var(--line));

  --good:      #15803d;
  --good-ink:  #15803d;
  --warn:      #d97706;
  --serious:   #ea6a2c;
  --critical:  #b91c28;

  --shadow:      0 1px 1px rgba(15, 31, 61, .07), 0 4px 10px rgba(15, 31, 61, .09), 0 22px 44px -18px rgba(15, 31, 61, .34);
  --shadow-lift: 0 2px 4px rgba(13,17,23,.06), 0 14px 36px -16px rgba(13,17,23,.24);

  --r:     12px;
  --r-sm:  8px;
  --pad:   16px;
  --max:   1460px;
  --ease:  cubic-bezier(.22, 1, .36, 1);
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
@media (hover: hover) and (pointer: fine) {
  .card, .kpis-hero .kpi-combo, .grid-tdks .tdp-group, .grid-tdks .key-signal, .rate {
    transition: box-shadow 180ms ease;
  }
  .card:hover {
    box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--indigo) 65%, transparent);
  }
  .kpis-hero .kpi-combo:hover,
  .grid-tdks .tdp-group:hover,
  .grid-tdks .key-signal:hover,
  .rate:hover {
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--indigo) 65%, transparent);
  }
  .wow-chart-panel:hover, .wow-summary:hover {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 65%, transparent);
  }
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -.015em; }
p { margin: 0; }
.mono, .num, td.num, th.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--mtd);
              color: #fff; padding: 8px 14px; border-radius: 0 0 8px 8px; }
:focus-visible { outline: 2px solid var(--mtd); outline-offset: 2px; border-radius: 4px; }

/* ── topbar stack ─────────────────────────────────────────── */
.topbar {
  /* Anmol: the filter panels got tall (2 grouped cards) and freezing
     them at the top ate too much of the viewport on scroll -- not
     sticky any more, scrolls away with the rest of the page. */
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--max); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--mtd), var(--indigo));
  display: grid; place-items: center;
}
.brand-mark svg {
  width: 14px; height: 14px; fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14px; font-weight: 650; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--ink-3);
                 letter-spacing: .06em; text-transform: uppercase; font-weight: 560; }
.topbar .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.topbar .brand-mark svg { width: 19px; height: 19px; }
.topbar .brand-text strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.topbar .brand-text em { font-size: 13.5px; text-transform: none; letter-spacing: 0;
                          font-weight: 500; color: var(--ink-2); }
.topbar-meta { display: flex; align-items: center; gap: 8px; }
.pill { font-size: 12px; font-weight: 620; color: var(--ink-2); padding: 5px 12px;
        border: 1px solid var(--line); border-radius: 100px; white-space: nowrap; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--base); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* controls */
.control-bar { border-top: 1px solid var(--line-2); }
.control-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.ctl { display: flex; flex-direction: column; gap: 3px; min-width: 150px; position: relative; }
.ctl[hidden] { display: none; }
.ctl.grow { flex: 1; min-width: 200px; }
.ctl label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
             color: var(--ink-3); font-weight: 620; }
.ctl select, .ctl input {
  font: inherit; font-size: 12.5px; font-weight: 500; color: #17243d; background: var(--surface);
  border: 1px solid #cfdae8; border-radius: 6px; padding: 0 11px; width: 100%;
  height: 37px;
}
.ctl select:hover, .ctl input:hover { border-color: #9db8db; }
.ctl select:focus, .ctl input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,.10); }
.ctl select:disabled { opacity: .5; cursor: not-allowed; }

/* Grouped filter panels ("Time Filters" / "Employee Hierarchy Filters") */
.filter-group { background: var(--page); border: 1.5px solid var(--surface-border);
                 border-radius: var(--r); padding: 12px 16px; }
.filter-group.tint-blue {
  background: color-mix(in srgb, var(--mtd) 5%, var(--page));
  border-color: color-mix(in srgb, var(--mtd) 22%, var(--line));
}
.filter-group.tint-green {
  background: color-mix(in srgb, var(--good) 5%, var(--page));
  border-color: color-mix(in srgb, var(--good) 22%, var(--line));
}
.filter-group.tint-blue  { background: #f5f9ff; border-color: var(--mtd-border); }
.filter-group.tint-green { background: #f5fbf8; border-color: var(--good-border); }
.filter-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.filter-group-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.filter-group-head p { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }

.filter-master-row {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(560px, 2.1fr);
  gap: 12px; align-items: stretch;
}
@media (max-width: 1150px) { .filter-master-row { grid-template-columns: 1fr; } }

.time-filter-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,.9fr); gap: 8px; }
/* Target vs Achievement always shows its own till-date figures, so the generic Basis filter does nothing there -- hidden on that page/section, Month+Compare reflow to fill the row. */
.time-filter-grid:has(#fBasisCtl[hidden]) { grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); }
@media (max-width: 560px) { .time-filter-grid { grid-template-columns: 1fr 1fr; } }

.employee-filter-grid {
  display: grid;
  grid-template-columns:
    minmax(130px, 1.15fr) auto minmax(105px, 1fr) auto
    minmax(120px, 1.2fr);
  gap: 6px; align-items: end;
}
.employee-filter-grid .chev {
  align-self: center; margin-bottom: 9px; font-size: 15px; font-weight: 700;
  color: #4f6b8a; line-height: 1;
}
.time-filter-grid .ctl, .employee-filter-grid .ctl { min-width: 0; }
@media (max-width: 760px) {
  .employee-filter-grid { grid-template-columns: repeat(2, 1fr); }
  .employee-filter-grid .chev { display: none; }
}
.control-extra { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.ach-ctl { flex: none; width: 230px; }
.ach-level-ctl { flex: none; width: 210px; }
.ach-level-toggle {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.ach-level-toggle button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ach-level-toggle button:last-child { border-right: 0; }
.ach-level-toggle button.on { background: var(--mtd); color: #fff; }
.ach-level-toggle button:disabled { background: var(--page); color: var(--ink-2); cursor: not-allowed; }
.ach-level-toggle button:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: -3px; }
.language-ctl { flex: none; width: 150px; }
.language-ctl select { font-family: "Nirmala UI", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada", "Segoe UI", sans-serif; font-size: 13px; }
.jump-ctl { max-width: 420px; }

.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60; margin-top: 4px;
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lift); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.suggest button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; text-align: left; font: inherit; font-size: 13px; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 8px 11px; cursor: pointer;
}
.suggest button > span { color: #111 !important; font-weight: 800; }
.suggest button.suggest-sm { background: #e4f1ff; }
.suggest button.suggest-executive { background: #fff3dc; }
.suggest button.suggest-sm > em { color: #075da8; font-weight: 800; }
.suggest button.suggest-executive > em { color: #9a5700; font-weight: 800; }
.suggest button.suggest-sm:hover { background: #cfe7fb; }
.suggest button.suggest-executive:hover { background: #ffe6bd; }
.suggest button:hover { background: var(--line-2); }
.suggest em { font-style: normal; font-size: 10.5px; color: var(--ink-3);
              text-transform: uppercase; letter-spacing: .05em; }

/* breadcrumb */
.crumbs {
  max-width: var(--max); margin: 0 auto; padding: 0 20px 8px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.crumb, .pd-crumb {
  font: inherit; font-size: 12.5px; font-weight: 610; color: var(--mtd);
  background: color-mix(in srgb, var(--mtd) 10%, transparent);
  border: 0; padding: 5px 12px; border-radius: 100px; cursor: pointer;
  transition: color .18s, background .18s;
}
.crumb:hover, .pd-crumb:hover { background: color-mix(in srgb, var(--mtd) 18%, transparent); }
.crumb.on, .pd-crumb.on { color: #fff; font-weight: 700; background: var(--mtd); }
.crumb-sep { color: var(--ink-3); font-size: 13px; }

/* ── shell + sidebar (section nav) ───────────────────────────
   Persistent left sidebar at desktop widths; collapses to today's
   original horizontal-bar look below 860px (same breakpoint this file
   already uses for .rate-grid/.tgt-grid) so the overflow-free behaviour
   already verified at 390/320px keeps holding. */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex: none; background: var(--surface);
  border-right: 1px solid var(--line); padding: 16px 10px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  padding: 10px 12px; margin-bottom: 12px;
  background: var(--page); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.sidebar-brand .brand-text em { text-transform: none; letter-spacing: 0; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar button, .sidebar .sidebar-link {
  font: inherit; text-align: left; background: none; border: 0;
  border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer;
  color: var(--ink-2); display: flex; align-items: center; gap: 10px;
  transition: background .18s, color .18s; text-decoration: none;
}
.sidebar button .nav-ic, .sidebar .sidebar-link .nav-ic {
  flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.sidebar button[hidden] { display: none; }
.nav-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar button span, .sidebar .sidebar-link span { font-size: 13.5px; font-weight: 620; color: inherit; }
.sidebar button small, .sidebar .sidebar-link small { font-size: 11px; color: var(--ink-3); }
.sidebar button:hover, .sidebar .sidebar-link:hover { background: var(--page); }
.sidebar button.on { background: color-mix(in srgb, var(--mtd) 14%, transparent); color: var(--mtd); }
.sidebar button.on span { color: var(--mtd); }
.app-content { flex: 1; min-width: 0; }
.sidebar .mtd-nav-group, .sidebar .hourly-nav-group {
  padding: 0;
}
.sidebar .mtd-nav-group { gap: 8px; }
.sidebar .mtd-nav-group > button { border: 1.5px solid #111827; }
.sidebar .hourly-nav-group { margin-top: auto; padding-top: 16px; border-top: 1.5px solid #111827; }
.sidebar .hourly-nav-group .sidebar-link {
  background: #fff3e3; border: 1.5px solid #c87508; color: #000; padding: 10px 8px;
}
.sidebar .hourly-nav-group { display: flex; flex-direction: column; gap: 8px; }
.sidebar .hourly-nav-group .sidebar-link[hidden] { display: none; }
.sidebar .hourly-nav-group .sidebar-link span { color: #000; font-weight: 750; }
.sidebar .hourly-nav-group .sidebar-link small { color: #000; font-weight: 600; }
.sidebar .hourly-nav-group .sidebar-link:is(:hover, :focus-visible, .on) {
  background: #ffdfb3; color: #000;
}
.sidebar .hourly-nav-group #hourlyInsightsNav { background: #f2efff; border-color: #7c5cd6; }
.sidebar .hourly-nav-group #hourlyInsightsNav:is(:hover, :focus-visible, .on) { background: #e0d8fb; }
.sidebar .hourly-nav-group #hourlyInsightsNav:focus-visible { outline-color: #7c5cd6; }
.hourly-panel { flex: 1; min-width: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--page); }
.hourly-panel[hidden] { display: none; }
.hourly-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 8px; padding: 10px 14px; background: #fff; border: 2px solid #111827; border-radius: 12px; color: #000; }
.hourly-toolbar > div { display: flex; align-items: center; gap: 12px; }
.hourly-toolbar strong { font-size: 16px; font-weight: 800; color: #000; }
.hourly-toolbar small { color: #000; font-weight: 600; }
.hourly-actions { flex-wrap: wrap; }
.hourly-actions label { font-size: 12px; font-weight: 800; color: #000; }
.hourly-actions select { max-width: 190px; font: inherit; font-size: 13px; font-weight: 750; padding: 6px 8px; border: 1.5px solid #111827; border-radius: var(--r-sm); background: #fff; color: #000; }
.hourly-actions button { font: inherit; font-size: 13px; font-weight: 750; padding: 6px 12px; border: 1.5px solid #111827; border-radius: var(--r-sm); background: #111827; color: #fff; cursor: pointer; }
.hourly-actions button:disabled { opacity: .6; cursor: wait; }
.hourly-toolbar button:focus-visible, .hourly-toolbar select:focus-visible, .sidebar .hourly-nav-group .sidebar-link:focus-visible { outline: 3px solid #e99a30; outline-offset: 3px; }
.sidebar .hourly-nav-group .sidebar-link { transition: transform 160ms var(--ease-out-strong, cubic-bezier(.23, 1, .32, 1)); }
.sidebar .hourly-nav-group .sidebar-link:active:not(:focus-visible) { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .sidebar .hourly-nav-group .sidebar-link:hover:not(:active):not(:focus-visible) { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar .hourly-nav-group .sidebar-link { transform: none !important; transition: opacity 120ms ease; }
}
.hourly-panel iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }

@media (max-width: 860px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .shell:has(> .hourly-panel:not([hidden])) { height: 100dvh; min-height: 0; }
  .hourly-panel { height: auto; min-height: 0; }
  .hourly-toolbar small { display: none; }
}

/* Hide toggle lives inside .sidebar (#sidebarToggle) so it collapses along
   with it. A separate edge-tab (#sidebarShow) is fixed to the screen edge
   and only shown while the sidebar is hidden, so it stays reachable. */
.sidebar-hide {
  font: inherit; text-align: left; background: none; border: 0;
  border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 6px;
  cursor: pointer; color: var(--ink-3); display: flex; align-items: center;
  gap: 6px; font-size: 12px; flex: none; transition: background .18s, color .18s;
}
.sidebar-hide:hover { background: var(--page); color: var(--ink); }
.sidebar-hide svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.sidebar-edge {
  display: none; position: fixed; left: 0; top: 14px; z-index: 60;
  width: 24px; height: 40px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); cursor: pointer;
  transition: background .18s, color .18s;
}
.sidebar-edge:hover { background: var(--page); color: var(--ink); }
.sidebar-edge svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.shell.sidebar-hidden .sidebar { display: none; }
.shell.sidebar-hidden .sidebar-edge { display: flex; }

@media (max-width: 860px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .shell { flex-direction: column; overflow-x: hidden; }
  .sidebar {
    width: auto; min-width: 0; position: static; height: auto; flex-direction: row;
    overflow-x: auto; overflow-y: visible; border-right: 0;
    border-bottom: 1px solid var(--line); padding: 4px 8px;
  }
  .sidebar-brand { display: none; }
  .sidebar nav { flex-direction: row; }
  .sidebar button, .sidebar .sidebar-link { flex-direction: row; white-space: nowrap; gap: 6px; flex: none; }
  .sidebar button small, .sidebar .sidebar-link small { display: none; }
  .sidebar .hourly-nav-group { order: -1; margin-top: 0; flex: none; flex-direction: row; }
  .sidebar .mtd-nav-group { flex: none; }
  .sidebar-hide { margin-bottom: 0; }
  .sidebar-hide span { display: none; }
}

/* ── Hover-reveal sidebar (desktop mouse only) ────────────────
   Fully hidden at rest: the panel sits translated off-screen, the dashboard
   keeps its full width. A 10px invisible strip (::after, poking out of the
   panel's right edge onto the screen's left edge) is the hover handle --
   hovering a pseudo-element counts as hovering the sidebar. Open/close
   animate ONLY transform and opacity, which the GPU composites without
   repainting, so the slide stays smooth; the old clip-path + box-shadow
   version repainted the whole panel every frame and stuttered on close.
   z-index stays below every modal/drawer backdrop (lowest is 60).
   Touch devices and narrow screens keep the original static sidebar. */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  :root {
    --edge: 10px;
    --rail-open: 252px;
    --ease-drawer: cubic-bezier(.32, .72, 0, 1);
    --ease-out-strong: cubic-bezier(.23, 1, .32, 1);
  }

  .sidebar, .shell.sidebar-hidden .sidebar {
    display: flex; position: fixed; left: 0; top: 0; z-index: 55;
    width: var(--rail-open); height: 100vh; padding: 16px 10px 16px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    border-right: 1px solid rgba(15, 23, 42, .08);
    overflow: visible; /* ponytail: no inner scroll; fine for 5 nav items, add an inner scroller if the nav outgrows 100vh */
    transform: translateX(-100%);
    will-change: transform;
    /* Close: tiny 60ms grace, then slide out on the same drawer curve. */
    transition: transform 280ms var(--ease-drawer) 60ms;
  }
  .sidebar:is(:hover, :has(:focus-visible)) {
    transform: translateX(0);
    transition: transform 340ms var(--ease-drawer) 40ms;
  }
  .sidebar::after {
    content: ""; position: absolute; top: 0; left: 100%; width: var(--edge); height: 100%;
  }
  .sidebar::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    box-shadow: 22px 0 48px -22px rgba(15, 23, 42, .42);
    opacity: 0; transition: opacity 200ms ease 60ms;
  }
  .sidebar:is(:hover, :has(:focus-visible))::before { opacity: 1; transition-delay: 40ms; }
  .sidebar .sidebar-hide, .sidebar-edge, .shell.sidebar-hidden .sidebar-edge { display: none; }

  /* Brand: the mark does one 3D flip as the panel opens. */
  .sidebar-brand { perspective: 600px; }
  .sidebar .brand-mark { box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .55); }
  .sidebar:is(:hover, :has(:focus-visible)) .brand-mark { animation: mp-brand-flip 520ms var(--ease-out-strong) 80ms both; }
  @keyframes mp-brand-flip {
    from { transform: rotateY(-180deg) scale(.9); }
    to   { transform: rotateY(0) scale(1); }
  }

  /* Labels swing in like pages turning, one after another. */
  .sidebar .nav-label, .sidebar .brand-text {
    opacity: 0; transform: translateX(-12px) rotateY(-40deg);
    transform-origin: left center;
    transition: opacity 0ms linear 340ms, transform 0ms linear 340ms;
  }
  .sidebar:is(:hover, :has(:focus-visible)) .nav-label,
  .sidebar:is(:hover, :has(:focus-visible)) .brand-text {
    opacity: 1; transform: none;
    transition: opacity 260ms ease, transform 420ms var(--ease-out-strong);
    transition-delay: calc(var(--i, 0) * 38ms + 120ms);
  }
  #sectionNav button:nth-child(1) { --i: 1; }
  #sectionNav button:nth-child(2) { --i: 2; }
  #sectionNav button:nth-child(3) { --i: 3; }
  #sectionNav button:nth-child(4) { --i: 4; }
  #sectionNav button:nth-child(5) { --i: 5; }
  #sectionNav button:nth-child(6) { --i: 6; }

  /* Items: black text, raised 3D pill on hover, tilting icon, press feedback. */
  .sidebar nav { gap: 4px; }
  .sidebar button {
    position: relative; color: #0b0f19; perspective: 600px;
    transition: background 180ms ease, box-shadow 200ms ease,
                transform 160ms var(--ease-out-strong);
  }
  .sidebar button span { color: #000000; font-weight: 720; }
  .sidebar button small { color: #1f2937; font-weight: 560; }
  .sidebar button .nav-ic { transition: transform 280ms var(--ease-out-strong), color 180ms ease; }
  .sidebar button:hover {
    background: #ffffff; transform: translateY(-1px);
    box-shadow: inset 0 1px 0 #ffffff, 0 10px 20px -12px rgba(15, 23, 42, .45),
                0 0 0 1px rgba(15, 23, 42, .07);
  }
  .sidebar button[data-section="overview"]:hover { background: #bae6fd; }
  .sidebar button[data-section="target"]:hover { background: #9f1239; }
  .sidebar button[data-section="quality"]:hover { background: #fed7aa; }
  .sidebar button[data-section="people"]:hover { background: #f8bfdc; }
  .sidebar button[data-section="classic"]:hover { background: #fde68a; }
  .sidebar button[data-section="sourcing"]:hover { background: #a7dfd0; }
  .sidebar button[data-section="tata"]:hover { background: #e2e8f0; }
  .sidebar button:hover .nav-ic { transform: rotateX(14deg) rotateY(-22deg) scale(1.14); }
  .sidebar button:active { transform: scale(.97); transition-duration: 90ms; }

  .sidebar button.on,
  .sourcing-mode .sidebar button.on {
    color: #000000;
    background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--mtd) 13%, #ffffff));
    box-shadow: inset 0 1px 0 #ffffff,
                0 12px 22px -14px color-mix(in srgb, var(--mtd) 70%, transparent),
                0 0 0 1px color-mix(in srgb, var(--mtd) 30%, transparent);
  }
  .sidebar button.on span, .sourcing-mode .sidebar button.on span { color: #000000; }
  .sidebar button.on .nav-ic { color: var(--mtd); }
  .sidebar button.on::before {
    content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--mtd);
    box-shadow: 0 0 10px color-mix(in srgb, var(--mtd) 55%, transparent);
  }
}
.sidebar #sectionNav button[data-section="overview"] { background: #e0f2fe; border-color: #38bdf8; --nav-theme-glow: rgba(2, 132, 199, .46); }
.sidebar #sectionNav button[data-section="target"] { background: #fff1f2; border-color: #be123c; isolation: isolate; }
.sidebar #sectionNav button[data-section="quality"] { background: #fff3e0; border-color: #fb923c; --nav-theme-glow: rgba(234, 88, 12, .42); }
.sidebar #sectionNav button[data-section="classic"] { background: #fef9c3; border-color: #eab308; --nav-theme-glow: rgba(202, 138, 4, .42); }
.sidebar #sectionNav button[data-section="tata"] { background: #f1f5f9; border-color: #64748b; --nav-theme-glow: rgba(71, 85, 105, .38); }
.sidebar #sectionNav button[data-section="overview"] .nav-ic { color: #0284c7; }
.sidebar #sectionNav button[data-section="quality"] .nav-ic { color: #c2410c; }
.sidebar #sectionNav button[data-section="classic"] .nav-ic { color: #a16207; }
.sidebar #sectionNav button[data-section="tata"] .nav-ic { color: #475569; }
.sidebar #sectionNav button[data-section="overview"]:is(:hover, :focus-visible) { background: #bae6fd; border-color: #0284c7; }
.sidebar #sectionNav button[data-section="people"]:is(:hover, :focus-visible) { background: #f8bfdc; border-color: #be185d; }
.sidebar #sectionNav button[data-section="classic"]:is(:hover, :focus-visible) { background: #fde68a; border-color: #ca8a04; }
.sidebar #sectionNav button[data-section="sourcing"]:is(:hover, :focus-visible) { background: #a7dfd0; border-color: #0f766e; }
.sidebar #sectionNav button[data-section="tata"]:is(:hover, :focus-visible) { background: #e2e8f0; border-color: #475569; }
.sidebar #sectionNav button[data-section="overview"]:is(:hover, :focus-visible) .nav-ic { color: #0369a1; }
.sidebar #sectionNav button[data-section="people"]:is(:hover, :focus-visible) .nav-ic { color: #be185d; }
.sidebar #sectionNav button[data-section="classic"]:is(:hover, :focus-visible) .nav-ic { color: #854d0e; }
.sidebar #sectionNav button[data-section="sourcing"]:is(:hover, :focus-visible) .nav-ic { color: #0f766e; }
.sidebar #sectionNav button[data-section="tata"]:is(:hover, :focus-visible) .nav-ic { color: #334155; }
.sidebar #sectionNav button[data-section="target"].on .nav-ic { color: #be123c; }
.sidebar #sectionNav button[data-section="target"].on::before { background: #be123c; box-shadow: 0 0 10px #be123c88; }
.sidebar #sectionNav button[data-section="target"]:is(:hover, :focus-visible) { background: #9f1239; z-index: 1; }
.sidebar #sectionNav button[data-section="quality"]:is(:hover, :focus-visible) { background: #fed7aa; border-color: #ea580c; }
.sidebar #sectionNav button[data-section="target"]::after { content: ""; position: absolute; inset: -16px -1px 0; z-index: 0; pointer-events: none; background: url("target-fire.png") center bottom / 100% 100% no-repeat; opacity: 0; transform-origin: center bottom; transform: translateY(4px) scaleY(.94); transition: opacity 180ms ease, transform 180ms ease; }
.sidebar #sectionNav button[data-section="target"]:is(:hover, :focus-visible)::after { opacity: .96; transform: translateY(0) scaleY(1); }
.sidebar #sectionNav button[data-section="target"] .nav-ic { position: relative; z-index: 1; }
.sidebar #sectionNav button[data-section="target"]:is(:hover, :focus-visible) .nav-ic { color: #fff; }
.sidebar #sectionNav button[data-section="target"] .nav-label { position: relative; z-index: 1; padding: 3px 5px; margin: -3px -5px; border-radius: 5px; transition: background 180ms ease; }
.sidebar #sectionNav button[data-section="target"]:is(:hover, :focus-visible) .nav-label { background: rgba(255, 255, 255, .94); }
@keyframes nav-fire-flicker { from { transform: translateY(1px) scaleY(.98); opacity: .84; } to { transform: translateY(-2px) scaleY(1.05); opacity: 1; } }
@keyframes nav-theme-pop {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 transparent; }
  55% { transform: translateY(-4px) scale(1.025); box-shadow: 0 12px 22px -9px var(--nav-theme-glow); }
  100% { transform: translateY(-2px) scale(1.01); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 20px -10px var(--nav-theme-glow); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sidebar #sectionNav button[data-section="target"]:hover::after { animation: nav-fire-flicker 250ms cubic-bezier(.77, 0, .175, 1) infinite alternate; }
  .sidebar #sectionNav button:is([data-section="overview"], [data-section="quality"], [data-section="classic"], [data-section="tata"]):hover {
    animation: nav-theme-pop 380ms cubic-bezier(.22, 1, .36, 1) both;
  }
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar:is(:hover, :has(:focus-visible)), .sidebar .nav-label, .sidebar .brand-text,
  .sidebar button, .sidebar button .nav-ic { transition-duration: 0ms !important; }
  .sidebar .brand-mark { animation: none !important; }
  .sidebar .nav-label, .sidebar .brand-text, .sidebar button:hover .nav-ic { transform: none; }
}

/* Fit-to-screen for the hover-reveal sidebar: --ui-zoom / --ui-vh are set by the small script in
   HTML/index.html (local file and published site; unset = 1). Height and hover strip are corrected for the zoom. */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .sidebar, .shell.sidebar-hidden .sidebar { zoom: var(--ui-zoom, 1); height: var(--ui-vh, 100vh); }
  .sidebar::after { width: calc(var(--edge) / var(--ui-zoom, 1)); }
}

/* ── layout ───────────────────────────────────────────────── */
main {
  max-width: var(--max); margin: 0 auto;
  padding: 18px 20px 48px;
  display: flex; flex-direction: column; gap: 10px;
}
#sectionBody > * + * {
  margin-top: 6px;
  border-top: 0;
}
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }   /* minmax(0,..): a 360px chart no longer widens the track past a phone screen */
@media (max-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
/* Till Date Progress (wide) + Key Signal (narrow) -- Key Signal was
   taking half the row for a 3-line insight box; give it a fixed lane
   instead of an even split. */
.grid-2.grid-tdks {
  grid-template-columns: minmax(0, 3.2fr) minmax(270px, 1fr); gap: 0;
  background: linear-gradient(180deg, #ffffff, #fafbfd);
  border: 2px solid #111827 !important; border-radius: var(--r); box-shadow: none; overflow: hidden;
}
.grid-tdks .tdp-group { padding: 10px 12px; }
.grid-tdks .key-signal { border-left: 1px solid var(--surface-border); }
@media (max-width: 1100px) {
  .grid-2.grid-tdks { grid-template-columns: 1fr; }
  .grid-tdks .key-signal { border-left: none; border-top: 1px solid var(--surface-border); }
}

.card {
  background: linear-gradient(180deg, #ffffff, #fafbfd); border: 1.5px solid var(--surface-border);
  border-radius: var(--r); padding: var(--pad); box-shadow: none;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.card-head h2 { font-size: 15px; }
.kpi-group-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
                    color: var(--ink-3); font-weight: 650; margin: 18px 0 8px; }
.kpi-group-label:first-of-type { margin-top: 0; }
.card-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* focus header */
.focus { display: flex; align-items: flex-end; justify-content: space-between;
         gap: 16px; flex-wrap: wrap; padding: 2px 2px 0; }
.focus h1 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.028em; }
.focus-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.focus-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  background: color-mix(in srgb, var(--mtd) 13%, transparent); color: var(--mtd);
  font-size: 11px; font-weight: 620;
}

.kpi-banner {
  font-size: 12px; color: var(--ink-2); background: color-mix(in srgb, var(--mtd) 8%, var(--page));
  border: 1px solid color-mix(in srgb, var(--mtd) 30%, var(--line));
  border-radius: var(--r-sm); padding: 9px 13px; margin: -4px 0 2px;
}

/* ── KPI strip ────────────────────────────────────────────── */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis[hidden] { display: none; }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis.overview-number-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .kpis.overview-number-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.overview-number-kpis .ov-zero-trigger, .kpis.overview-number-kpis .ov-zero-shell { grid-column: auto; }
}
.kpi {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--r-sm);
  padding: 12px 14px; position: relative; overflow: hidden;
}
.kpi.flag { border-color: color-mix(in srgb, var(--critical) 45%, var(--line)); }
.kpi.flag::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
                    background: var(--critical); }
.kpi.td { border-color: color-mix(in srgb, var(--mtd) 40%, var(--line)); }
.kpi.td::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
                   background: var(--mtd); }
.kpi-top { display: flex; align-items: center; justify-content: space-between;
           gap: 8px; margin-bottom: 6px; }
.kpi-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
             color: var(--ink-3); font-weight: 640; }
.kpi-note { font-size: 10px; padding: 1px 6px; border-radius: 100px;
            background: var(--line-2); color: var(--ink-3); flex: none; }
.kpi-val { font-size: 24px; font-weight: 650; letter-spacing: -.022em;
           font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between;
            gap: 6px; margin-top: 7px; font-size: 11.5px; color: var(--ink-3);
            font-variant-numeric: tabular-nums; }

/* Small colored icon badge for a .kpi card — reuses the same semantic
   tokens as everything else (--mtd/--aqua/--good/--warn/--critical),
   no new palette. */
.kpi-ic { width: 26px; height: 26px; border-radius: 8px; flex: none;
          display: grid; place-items: center; }
.kpi-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor;
              stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kpi-ic.c-mtd,  .filter-group-ic.c-mtd,  .signal-ic.c-mtd  { background: color-mix(in srgb, var(--mtd) 16%, transparent);      color: var(--mtd); }
.kpi-ic.c-aqua, .filter-group-ic.c-aqua, .signal-ic.c-aqua { background: color-mix(in srgb, var(--aqua) 16%, transparent);     color: var(--aqua); }
.kpi-ic.c-good, .filter-group-ic.c-good, .signal-ic.c-good { background: color-mix(in srgb, var(--good) 16%, transparent);     color: var(--good-ink); }
.kpi-ic.c-warn, .filter-group-ic.c-warn, .signal-ic.c-warn { background: color-mix(in srgb, var(--warn) 16%, transparent);     color: var(--warn); }
.kpi-ic.c-bad,  .filter-group-ic.c-bad,  .signal-ic.c-bad  { background: color-mix(in srgb, var(--critical) 16%, transparent); color: var(--critical); }
.kpi-ic.c-indigo, .filter-group-ic.c-indigo, .signal-ic.c-indigo { background: color-mix(in srgb, var(--indigo) 16%, transparent); color: var(--indigo); }
.filter-group-ic, .signal-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
}
.filter-group-ic svg, .signal-ic svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Achievement-% badge, same good/warn/bad thresholds as the progress
   bars (.prog i) elsewhere in this section. */
.pct-pill { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 100px;
            font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.pct-pill.good { color: var(--good-ink); background: color-mix(in srgb, var(--good) 14%, transparent); }
.pct-pill.warn { color: var(--warn);     background: color-mix(in srgb, var(--warn) 15%, transparent); }
.pct-pill.bad  { color: var(--critical); background: color-mix(in srgb, var(--critical) 13%, transparent); }

/* Combined Count+Value hero cards (Target / Achieved / Gap / Pace) --
   reuses .kpi/.kpi-top/.kpi-head/.kpi-ic/.kpi-label, adds a 2-column
   mini-stat body instead of one big number. */
.kpis-hero {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border: 1.5px solid var(--surface-border); border-radius: var(--r); overflow: hidden; box-shadow: none;
}
@media (max-width: 1180px) { .kpis-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .kpis-hero { grid-template-columns: 1fr; } }
.kpis-hero .kpi-combo {
  padding: 9px 12px; border-radius: 0; min-height: 108px; border: none; box-shadow: none;
}
.kpis-hero .kpi-combo:not(:first-child) { border-left: 1px solid var(--surface-border); }
@media (max-width: 1180px) {
  .kpis-hero .kpi-combo:nth-child(odd) { border-left: none; }
  .kpis-hero .kpi-combo:nth-child(n+3) { border-top: 1px solid var(--surface-border); }
}
@media (max-width: 620px) {
  .kpis-hero .kpi-combo { border-left: none !important; border-top: 1px solid var(--surface-border); }
  .kpis-hero .kpi-combo:first-child { border-top: none; }
}
.kpis-hero .kpi-combo:nth-child(1) { background: var(--mtd-soft);    border-color: var(--mtd-border); }
.kpis-hero .kpi-combo:nth-child(2) { background: var(--good-soft);   border-color: var(--good-border); }
.kpis-hero .kpi-combo:nth-child(3):has(.kpi-ic.c-bad)  { background: var(--bad-soft);  border-color: var(--bad-border); }
.kpis-hero .kpi-combo:nth-child(3):has(.kpi-ic.c-good) { background: var(--good-soft); border-color: var(--good-border); }
.kpis-hero .kpi-combo:nth-child(4) { background: var(--indigo-soft); border-color: var(--indigo-border); }
.kpi-combo .kpi-ic { width: 28px; height: 28px; border-radius: 8px; }
.kpi-combo .kpi-ic svg { width: 15px; height: 15px; }
.kpi-combo .kpi-label { font-size: 14px; font-weight: 700; text-transform: none;
                         letter-spacing: -.01em; color: var(--ink); }
.kpi-combo .pct-pill { font-size: 9.5px; font-weight: 700; padding: 2px 6px; }
.kpi-combo .kpi-top { align-items: center; margin-bottom: 3px; }
.kpi-sub { font-size: 11.5px; color: var(--ink-3); margin: 0 0 12px; }
.kpi-combo .kpi-sub { font-size: 10.5px; color: var(--ink-2); margin: 0 0 7px; }
.kpi-combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.kpi-combo-grid > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 8px; }
.kpi-combo-grid > div:first-child { padding-left: 0; }
.kpi-combo-grid > div:last-child { border-left: 1px solid color-mix(in srgb, var(--ink) 18%, var(--line)); }
.kpi-combo-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.kpi-combo-grid b { font-size: 23px; font-weight: 750; letter-spacing: -.03em;
                     font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.12; }
.kpi-combo-grid b.money { font-size: 17px; letter-spacing: -.02em; }
.kpi-combo-grid b.closed { font-size: 15px; letter-spacing: -.01em; white-space: normal; }
.kpi-combo-grid em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* Target KPI table: centred black type with clear cell boundaries. */
.kpis-hero { border: 2px solid #111827; }
.kpis-hero .kpi-combo { border: 1px solid #111827 !important; text-align: center; }
.kpis-hero .kpi-top, .kpis-hero .kpi-head { justify-content: center; }
.kpi-combo-grid > div { align-items: center; }
.kpi-combo-grid > div:last-child { border-left-color: #111827; }
.kpi-combo .kpi-label, .kpi-combo .kpi-sub, .kpi-combo .kpi-combo-label,
.kpi-combo .kpi-combo-grid b, .kpi-combo .kpi-combo-grid em { color: #111827; }

/* Till Date Progress -- reuses the .filter-group card shell */
.tdp-group { flex: 1; border: none; box-shadow: none; }
.td-row { display: grid; grid-template-columns: .65fr 1.15fr 1.15fr; gap: 0; }
.td-row > .td-stat { padding: 0 10px; }
.td-row > .td-stat:first-child { padding-left: 0; }
.td-row > .td-stat:not(:first-child) { border-left: 1px solid var(--surface-border); }
@media (max-width: 900px) {
  .td-row { grid-template-columns: repeat(2, 1fr); }
  .td-row > .td-stat { padding-left: 0; border-left: none; }
}
@media (max-width: 520px) {
  .td-row { grid-template-columns: 1fr; }
}
.td-stat { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-stat.td-split { min-width: 0; }
.td-stat .kpi-head { gap: 6px; }
.td-stat .kpi-ic { width: 22px; height: 22px; }
.td-stat .kpi-ic svg { width: 12px; height: 12px; }
.td-stat .kpi-label { font-size: 9px; }
.td-stat b { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-stat em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--ink-2); }
.td-split-grid { display: flex; gap: 0; margin-top: 2px; }
.td-split-grid > div { flex: 1; min-width: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 1px; }
.td-split-grid > div:first-child { padding-left: 0; }
.td-split-grid > div:last-child { border-left: 1px solid color-mix(in srgb, var(--ink) 18%, var(--line)); }
.td-split-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.td-split-grid b { font-size: 14px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-split-grid b.money { font-size: 13px; }

/* Till-date cells follow the same table treatment. */
.td-row > .td-stat { min-height: 64px; padding: 7px 9px; border: 1px solid #111827 !important; text-align: center; align-items: center; justify-content: center; }
.td-row > .td-stat:first-child { padding-left: 9px; }
.td-stat .kpi-head { justify-content: center; }
.td-split-grid { width: 100%; }
.td-split-grid > div { align-items: center; }
.td-split-grid > div:last-child { border-left-color: #111827; }
.td-stat .kpi-label, .td-stat .td-split-label, .td-stat b, .td-stat em { color: #111827; }

/* Closed month: compact final KPI row with clear status colours. */
.grid-tdks .tdp-group.is-closed .td-row { grid-template-columns: .72fr .95fr 1.35fr; }
.grid-tdks .tdp-group.is-closed .td-row > .td-stat { min-height: 72px; padding: 8px 10px; }
.grid-tdks .tdp-group.is-closed .td-row > .td-stat:nth-child(1) { background: #eef2ff; }
.grid-tdks .tdp-group.is-closed .td-row > .td-stat:nth-child(2) { background: #fff1f2; }
.grid-tdks .tdp-group.is-closed .td-row > .td-stat:nth-child(3) { background: #fff7ed; }
.grid-tdks .tdp-group.is-closed .td-stat b { font-size: 18px; line-height: 1.1; }
.grid-tdks .tdp-group.is-closed .td-split-grid { margin-top: 0; }
@media (max-width: 520px) {
  .grid-tdks .tdp-group.is-closed .td-row { grid-template-columns: 1fr; }
}

/* Forecast is a separate decision surface: estimate, reliability, then daily evidence. */
.forecast-panel { margin: 10px 0 14px; overflow: hidden; border-radius: 14px;
  border: 3px solid #111827 !important; background: #fff; color: #111827; box-shadow: 0 8px 24px -18px rgba(15,31,61,.35); }
.forecast-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border-bottom: 3px solid #67d7f8; background: linear-gradient(112deg, #08355f 0%, #0b5480 62%, #078991 100%); }
.forecast-head-icon { display: grid; flex: none; place-items: center; width: 54px; height: 54px;
  border: 1px solid #39aef0; border-radius: 14px; background: #075185; color: #7cddff; }
.forecast-head-icon svg { width: 30px; height: 30px; }
.forecast-head-copy { min-width: 0; flex: 1; }
.forecast-head h3 { color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.forecast-head p { margin-top: 3px; color: #e3f5ff; font-size: 13px; font-weight: 600; }
.forecast-month-remaining { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; border: 1px solid #b9cdec; border-radius: 100px; padding: 6px 10px; background: rgba(255,255,255,.13); color: #fff; font-size: 12px; font-weight: 800; }
.forecast-month-remaining.is-closed { border-color: #60eac3; background: #086a65; }
.forecast-month-remaining svg { width: 15px; height: 15px; }
.forecast-day { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid #b9cdec; border-radius: 100px; padding: 7px 11px;
  background: rgba(255,255,255,.13); color: #fff; font-size: 12px; font-weight: 700; }
.forecast-day.is-closed { border-color: #60eac3; background: #086a65; }
.forecast-day svg { width: 15px; height: 15px; }
.forecast-main { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 10px; padding: 12px 16px 14px; }
.forecast-main.forecast-closed { grid-template-columns: 1.45fr 1fr; }
.forecast-main > div { min-width: 0; padding: 12px 15px; border: 2px solid #111827; border-radius: 9px; background: #f2f7fd; }
.forecast-main > .forecast-target { border-color: #111827; background: #fff6e6; }
.forecast-main > .forecast-confidence { border-color: #111827; background: #edf8f1; }
.forecast-main > [data-forecast-summary-open] { cursor: pointer; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease); }
.forecast-main > [data-forecast-summary-open]:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .forecast-main > [data-forecast-summary-open]:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(15, 23, 42, .14); }
}
.forecast-main span { display: block; margin-bottom: 8px; color: #111827; font-size: 11px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.forecast-pair { display: flex; gap: 22px; }
.forecast-pair > div + div { border-left: 1px solid #d3deed; padding-left: 22px; }
.forecast-main small { display: block; color: #1f2937; font-size: 11px; font-weight: 650; }
.forecast-main strong { display: block; color: #101827; font-size: 27px; font-weight: 800; letter-spacing: -.025em;
  line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-pair strong { margin-top: 3px; }
.forecast-target small { margin-top: 5px; }
.forecast-confidence small { margin-top: 6px; }
.forecast-ftip { position: relative; cursor: help; }
.forecast-ftip .forecast-ftip-box { display: none !important; position: absolute; z-index: 80; bottom: calc(100% - 6px); left: 0; width: 330px; padding: 0 0 10px; border-radius: 12px; background: #fff; color: #111827; text-align: left; box-shadow: 0 12px 30px rgba(15, 23, 42, .3); border: 1px solid #cbd5e1; overflow: hidden; font-weight: 600; }
.forecast-ftip.ft-right .forecast-ftip-box { left: auto; right: 0; }
.forecast-ftip-box, .forecast-ftip-box * { white-space: normal; }
.forecast-ftip-box .ft-row > span { white-space: nowrap; }
.forecast-ftip-box .ft-row > span:first-child { white-space: normal; }
.forecast-growth-cell b { display: block; width: fit-content; margin: 3px auto; padding: 3px 9px; border-radius: 8px; background: #e3f6e9; color: #166534; }
.forecast-growth-cell b.is-below { background: #fde8e8; color: #b42318; }

.forecast-ftip:hover > .forecast-ftip-box, .forecast-ftip:focus > .forecast-ftip-box { display: block !important; }
.forecast-ftip-box > b { display: block; padding: 11px 14px; background: #111827; color: #fff; font-size: 14px; font-weight: 800; }
.forecast-ftip-box .ft-row { display: grid !important; grid-template-columns: 1.7fr .5fr .6fr .8fr; gap: 6px; padding: 7px 14px; border-bottom: 1px solid #e5e7eb; font-size: 13px; color: #111827; background: none; }
.forecast-ftip-box.ft-three .ft-row { grid-template-columns: 2fr 1.2fr .6fr; }
.forecast-ftip-box .ft-row > span { display: block; padding: 0; border: 0; background: none; text-align: right; font-size: 13px; }
.forecast-ftip-box .ft-row > span:first-child { text-align: left; }
.forecast-ftip-box .ft-head > span { font-size: 11px; text-transform: uppercase; color: #475569; }
.forecast-ftip-box .ft-growth { border-bottom: 0; font-weight: 800; color: #166534; }
.forecast-ftip-box small { display: block; margin: 6px 14px 0; color: #475569; font-size: 11px; font-weight: 600; }
.forecast-primary .forecast-dayone { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px dashed #111827; }
.forecast-primary .forecast-dayone strong { font-size: 19px; }
.forecast-primary .forecast-dayone small:last-child { margin-top: 6px; font-size: 10px; font-weight: 700; }
.forecast-primary .forecast-month-range { margin-top: 10px; padding-top: 8px; border-top: 1px solid #111827; font-size: 10px; font-weight: 800; }
.forecast-meter { height: 9px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #d5e1ec; }
.forecast-meter i { display: block; width: var(--forecast-fill); height: 100%; border-radius: inherit;
  background: #139c75; transform-origin: left; animation: forecast-meter-fill 750ms cubic-bezier(.16,1,.3,1) both; }
@keyframes forecast-meter-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.forecast-feedback { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 16px; border-top: 2px solid #a9bfd9; background: #edf4fc; color: #111827; }
.forecast-feedback h4 { margin: 0 0 1px; color: #101827; font-size: 14px; font-weight: 800; }
.forecast-feedback p { color: #243750; font-size: 12px; font-weight: 600; }
.forecast-feedback-numbers { display: flex; gap: 20px; }
.forecast-feedback-numbers > div { min-width: 0; padding: 7px 11px; border: 1px solid #b6c9df; border-radius: 8px; background: #fff; }
.forecast-feedback-numbers > div + div { border-left: 1px solid #b6c9df; }
.forecast-feedback-numbers small, .forecast-feedback-numbers em { display: block; color: #253750; font-size: 11px; font-style: normal; font-weight: 600; }
.forecast-feedback-numbers strong { display: block; margin-top: 1px; color: #101827; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-feedback-numbers .forecast-under strong, .forecast-under { color: #a52b36; }
.forecast-feedback-numbers .forecast-over strong, .forecast-over { color: #087349; }
.forecast-unavailable { color: #425575; font-size: 12px; }
.forecast-detail { border-top: 2px solid #a9bfd9; background: #fff; }
.forecast-detail summary { min-height: 44px; padding: 11px 20px; cursor: pointer;
  background: #e9f2fc; color: #101827; font-size: 13px; font-weight: 800; }
.forecast-detail summary:hover { background: #e7f0fc; color: #103d72; }
.forecast-detail > p { max-width: 110ch; margin: 14px 20px 8px; color: #111827; font-size: 13px; font-weight: 600; line-height: 1.55; }
.forecast-table-wrap { margin: 14px 20px 20px; overflow-x: auto; }
.forecast-detail table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.forecast-detail th, .forecast-detail td { padding: 10px 12px; text-align: right; border: 1px solid #c6d5e6; white-space: nowrap; }
.forecast-detail th:first-child { text-align: left; }
.forecast-detail thead { background: #dbeafb; }
.forecast-detail thead th { color: #101827; font-weight: 800; }
.forecast-detail tbody tr:nth-child(even) { background: #f6f9fd; }
.forecast-detail tbody tr:first-child { background: #ecf6ff; font-weight: 700; }
.forecast-detail tbody tr:hover { background: #eaf3ff; }
.forecast-panel :focus-visible { outline-color: #2563eb; }
@media (max-width: 1050px) {
  .forecast-main { grid-template-columns: 1.3fr .7fr; }
  .forecast-confidence { grid-column: 1 / -1; }
  .forecast-feedback { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .forecast-head { padding: 16px 18px 12px; }
  .forecast-head h3 { font-size: 19px; }
  .forecast-head p { max-width: 28ch; }
  .forecast-main { display: grid; grid-template-columns: 1fr; padding: 10px 16px 14px; }
  .forecast-main.forecast-closed { grid-template-columns: 1fr; }
  .forecast-main > div { padding: 12px; }
  .forecast-confidence { grid-column: auto; }
  .forecast-main strong { font-size: 26px; }
  .forecast-pair { gap: 16px; }
  .forecast-pair > div + div { padding-left: 16px; }
  .forecast-feedback { padding: 15px 18px; }
  .forecast-feedback-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px; }
  .forecast-feedback-numbers > div:last-child { grid-column: 1 / -1; }
  .forecast-feedback-numbers strong { font-size: 15px; }
  .forecast-detail summary { padding: 11px 18px; }
  .forecast-detail > p { margin: 12px 18px; }
  .forecast-table-wrap { margin: 12px 18px 18px; }
  .forecast-detail table, .forecast-detail tbody, .forecast-detail tbody tr { display: block; width: 100%; }
  .forecast-detail thead { display: none; }
  .forecast-detail tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 8px; border-bottom: 1px solid #d9e3ee; }
  .forecast-detail tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 14px; }
  .forecast-detail tbody td { padding: 0; border: 0; text-align: left; font-size: 14px; font-weight: 650; }
  .forecast-detail tbody td::before { display: block; content: attr(data-label); color: #415674; font-size: 11px; font-weight: 500; }
}
@media (prefers-reduced-motion: reduce) { .forecast-meter i { animation: none; } }

/* The first row answers yesterday's gap and today's retained day-end estimate. */
.forecast-daily-kpis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; gap: 16px; margin: 18px 18px 20px; }
.forecast-daily-card { min-width: 0; padding: 18px; border: 2px solid #111827; border-radius: 14px;
  height: 100%; background: #fff; box-shadow: none; font-family: "Segoe UI Variable", var(--sans); }
.forecast-daily-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid #b8cfe3; text-align: left; }
.forecast-daily-card header > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; min-width: 0; }
.forecast-daily-card h4 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.forecast-daily-card header span:not(.forecast-card-icon) { display: block; margin-top: 0; color: #526b91; font-size: 13px; white-space: nowrap; }
.forecast-card-icon, .forecast-metric-icon { display: grid; flex: none; place-items: center; border-radius: 50%; }
.forecast-card-icon { width: 44px; height: 44px; background: #e4f1ff; color: #1165cb; }
.forecast-card-icon svg { width: 24px; height: 24px; }
.forecast-daily-card--today { border-color: #111827; }
.forecast-daily-card--today { border-color: #312e81; }
.forecast-daily-card--today header { border-bottom-color: #cfc8f2; }
.forecast-daily-card--today .forecast-card-icon { background: #ede9fe; color: #6d28d9; }
.forecast-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.forecast-daily-card--yesterday { padding: 16px; }
.forecast-daily-card--yesterday header { margin-bottom: 8px; padding-bottom: 8px; gap: 8px; }
.forecast-daily-card--yesterday h4 { font-size: 16px; }
.forecast-daily-card--yesterday .forecast-card-icon { width: 32px; height: 32px; }
.forecast-daily-card--yesterday .forecast-compare-metric { padding: 8px; }
.forecast-daily-card--yesterday .forecast-compare-title { margin-bottom: 4px; }
.forecast-daily-card--yesterday .forecast-metric-icon { width: 24px; height: 24px; }
.forecast-daily-card--yesterday .forecast-compare-columns strong { font-size: 18px; }
.forecast-compare-percent { display: block; margin-top: 4px; text-align: right; color: #38547b; font-size: 11px; font-weight: 700; }
.forecast-today-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.forecast-today-projected { padding: 12px; border: 1.5px solid #6d5bd0; border-radius: 12px; background: #f0efff; }
.forecast-today-label { display: block; margin-bottom: 8px; color: #34216e; font-size: 12px; font-weight: 800; }
.forecast-today-projected .forecast-daily-values { grid-template-columns: 1fr; gap: 8px; }
.forecast-today-projected .forecast-daily-value { padding: 0; border: 0; border-radius: 0; background: transparent; }
.forecast-today-projected .forecast-daily-value--value { border-top: 1px solid #cfc8f2; padding-top: 8px; }
.forecast-today-projected .forecast-day-range { display: block; margin-top: 8px; color: #5d5585; font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center; font-variant-numeric: tabular-nums; }
.forecast-today-body .forecast-hourly-live { display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 12px; gap: 6px; }
.forecast-today-body .forecast-hourly-live b { font-size: 20px; }
.forecast-today-body .forecast-hourly-live small { font-size: 11px; line-height: 1.4; }
.forecast-required-rate { display: grid; gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid #cfc8f2; color: #34216e; font-size: 12px; }
.forecast-required-rate small { font-size: 11px; }
.forecast-compare-metric { min-width: 0; padding: 12px; border: 1.5px solid #111827; border-radius: 12px; background: #eef7ff; }
.forecast-compare-metric--value { border-color: #111827; background: #ecfbf5; }
.forecast-compare-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.forecast-metric-icon { width: 34px; height: 34px; background: #cde7ff; color: #1165cb; }
.forecast-metric-icon svg { width: 21px; height: 21px; }
.forecast-compare-metric--value .forecast-metric-icon, .forecast-daily-value--value .forecast-metric-icon { background: #bff5de; color: #07854d; }
.forecast-compare-label { font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.forecast-compare-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.forecast-compare-columns > div { min-width: 0; padding: 2px 6px; text-align: center; }
.forecast-compare-columns > div + div { border-left: 1px solid #c4dcee; }
.forecast-compare-metric--value .forecast-compare-columns > div + div { border-color: #c1e3d7; }
.forecast-compare-columns small { display: block; margin-bottom: 6px; color: #38547b; font-size: 11px; font-weight: 650; }
.forecast-compare-columns strong { display: block; font-size: clamp(16px, 1.55vw, 26px); line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-panel .forecast-daily-card .forecast-compare-actual strong { color: #0c2347 !important; }
.forecast-panel .forecast-daily-card .forecast-compare-projected strong { color: #075ad4 !important; }
.forecast-gap-badge { display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 5px 4px;
  border-radius: 7px; background: #e8edf2; font-size: .77em; }
.forecast-gap-badge svg { width: 15px; height: 15px; }
.forecast-compare-gap.is-below .forecast-gap-badge { background: #ffe5e9; }
.forecast-compare-gap.is-above .forecast-gap-badge { background: #d9f6e5; }
.forecast-panel .forecast-daily-card .forecast-compare-gap.is-below strong { color: #b31628 !important; }
.forecast-panel .forecast-daily-card .forecast-compare-gap.is-above strong { color: #087349 !important; }
.forecast-daily-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.forecast-daily-values[data-forecast-history-open] { cursor: pointer; }
.forecast-daily-values[data-forecast-history-open]:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 3px; }
.forecast-daily-value { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 10px; border: 1.5px solid #111827;
  border-radius: 11px; background: #eef7ff; }
.forecast-daily-value--value { border-color: #111827; background: #ecfbf5; }
.forecast-daily-value .forecast-metric-icon { width: 40px; height: 40px; }
.forecast-daily-value dt { color: #233e63; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.forecast-daily-value dd { margin: 0; }
.forecast-daily-value strong { display: block; font-size: 26px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-daily-card--today .forecast-daily-value strong { font-size: 22px; }
.forecast-daily-card--today .forecast-daily-value--value strong { font-size: 23px; }
.forecast-daily-card--today .forecast-daily-value { border-color: #6d5bd0; background: #f0efff; }
.forecast-daily-card--today .forecast-daily-value--value { border-color: #bd7a18; background: #fff5df; }
.forecast-daily-card--today .forecast-daily-value .forecast-metric-icon { background: #ddd6fe; color: #6d28d9; }
.forecast-daily-card--today .forecast-daily-value--value .forecast-metric-icon { background: #fde6b4; color: #a45d00; }
.forecast-panel .forecast-daily-card--today .forecast-daily-values strong { color: #34216e !important; }
.forecast-panel .forecast-daily-card--today .forecast-daily-value--value strong { color: #7a4500 !important; }
.forecast-hourly-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin-top: 10px; padding: 7px 9px; border: 1.5px solid #d97706; border-radius: 9px; background: #fff7e8; color: #111827; font-size: 11px; font-weight: 700; }
.forecast-hourly-live b { color: #111827; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-hourly-live strong { color: #9a5200; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-hourly-live strong.is-ahead { color: #087349; }
.forecast-panel .forecast-daily-card p.forecast-card-note { display: flex; align-items: center; justify-content: center; gap: 5px;
  margin: 12px 0 0; color: #526b91 !important; font-size: 11px; line-height: 1.35; text-align: center; }
.forecast-daily-card--yesterday .forecast-card-note.is-rebuilt { display: none !important; }
.forecast-card-note svg { flex: none; width: 14px; height: 14px; }
.forecast-daily-confidence { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; margin: 12px 0 0;
  padding-top: 10px; border-top: 1px solid #cfc8f2; color: #4c3d83; }
.forecast-daily-confidence span { font-size: 11px; font-weight: 700; }
.forecast-daily-confidence strong { color: #5b31b3 !important; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.forecast-daily-confidence small { grid-column: 1 / -1; color: #5d5585; font-size: 10px; font-weight: 700; }
.forecast-daily-confidence-meter { grid-column: 1 / -1; height: 6px; overflow: hidden; border: 1px solid #bcb2ee;
  border-radius: 99px; background: #eeeaff; }
.forecast-daily-confidence-meter i { display: block; width: var(--forecast-confidence-fill); height: 100%; background: #7045c4; }
.forecast-daily-card--today:hover { background: #faf9ff; }
.forecast-daily-card--today:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 3px; }
.forecast-history-backdrop { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 20px;
  background: rgba(15, 23, 42, .54); overscroll-behavior: contain; }
html:has(.forecast-history-backdrop), body:has(.forecast-history-backdrop) { overflow: hidden; }
.forecast-history-modal { width: min(640px, 96vw); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 18px;
  border: 2px solid #000; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .32); color: #000; }
.forecast-summary-modal { width: min(980px, 96vw); }
.forecast-summary-modal > header { padding-right: 38px; padding-left: 38px; }
.forecast-summary-modal h3 { text-wrap: balance; }
.forecast-panel.is-festival .forecast-daily-card--today { background: #fffaf0; }
.forecast-panel.is-festival .forecast-head { background: linear-gradient(112deg, #3b1d5b 0%, #63338c 62%, #7b3aa6 100%); border-bottom-color: #d8b4fe; }
.forecast-panel.is-festival .forecast-head-icon { background: #4c1d95; border-color: #c4b5fd; color: #e9d5ff; }
.forecast-head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex-shrink: 0; max-width: 560px; }
.forecast-festival-status { display: grid; gap: 5px; width: min(340px, 100%); box-sizing: border-box; padding: 11px 14px; border: 1px solid #f3d69c; border-radius: 12px; background: #fff8e9; color: #3f2a13; text-align: left; }
.forecast-festival-label { color: #835013; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.forecast-festival-status strong { font-size: 16px; line-height: 1.25; }
.forecast-festival-status > time { font-size: 12px; font-weight: 750; }
.forecast-festival-progress { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.forecast-festival-progress span { border-radius: 6px; padding: 3px 8px; background: #e7f4e9; color: #17653c; font-size: 12px; font-weight: 800; }
.forecast-festival-next { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px; margin-top: 5px; padding-top: 7px; border-top: 1px solid #e9d7b5; font-size: 11px; }
.forecast-festival-next span { color: #835013; font-weight: 750; }
.forecast-festival-next b { font-weight: 800; }
.forecast-festival-next time { white-space: nowrap; font-weight: 750; }
.forecast-head-actions button { border: 2px solid #111827; border-radius: 9px; padding: 8px 12px; background: #fff; color: #17324e; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.forecast-head-actions button:hover { background: #fff0d1; }
.forecast-head-actions button:focus-visible, .forecast-festival-date-range input:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.forecast-festival-date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.forecast-festival-date-range input { min-width: 0; width: 100%; padding: 8px 6px; box-sizing: border-box; border: 1.5px solid #111827; border-radius: 8px; color: #17324e; background: #fff; font: inherit; }
.forecast-festival-sm table { min-width: 1400px; }
.forecast-festival-sm tfoot { border-top: 3px solid #111827; font-weight: 800; }
@media (max-width: 650px) {
  .forecast-panel .forecast-head { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: start; }
  .forecast-head-actions { grid-column: 1 / -1; max-width: none; justify-content: space-between; gap: 8px; }
  .forecast-festival-status { flex: 1 0 100%; width: 100%; }
  .forecast-festival-next { grid-template-columns: auto 1fr; }
  .forecast-festival-next time { grid-column: 2; }
}
.forecast-panel.is-festival .forecast-daily-card--today header { border-bottom-color: #d8ad5e; }
.forecast-panel.is-festival .forecast-daily-card--today .forecast-card-icon { background: #ffedc5; color: #92400e; }
.forecast-festival-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: -3px 0 14px; }
.forecast-festival-context > span { color: #78350f; font-size: 13px; font-weight: 800; }
.forecast-festival-compare { flex: none; margin-left: auto; padding: 7px 11px; border: 1.5px solid #111827; border-radius: 9px; background: #fff; color: #17324e; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.forecast-festival-compare:hover { background: #fff0d1; }
.forecast-festival-compare:focus-visible, .forecast-festival-filters select:focus-visible { outline: 3px solid #92400e; outline-offset: 3px; }
.forecast-festival-result { display: block; margin: 8px 0 0; padding: 7px 6px; background: #fff0d1; color: #78350f; font-size: 12px; line-height: 1.4; text-align: center; font-weight: 750; }
.forecast-festival-month-effect { display: block; margin-top: 7px; color: #78350f; font-size: 12px; font-weight: 750; }
.forecast-festival-modal { width: min(1080px, 96vw); overscroll-behavior: contain; }
.forecast-festival-modal--compact { width: min(860px, 96vw); }
.forecast-festival-body { display: grid; gap: 16px; color: #17324e; font-size: 14px; line-height: 1.5; }
.forecast-festival-modal--compact .forecast-festival-body { gap: 12px; }
.forecast-festival-key-table table { min-width: 0; }
.forecast-festival-key-table th, .forecast-festival-key-table td { white-space: normal; text-align: center; }
.forecast-festival-key-table th:first-child { text-align: left; }
.forecast-festival-key-table small { display: block; margin-top: 2px; color: #526b91; font-size: 10px; font-weight: 650; }
.forecast-festival-summary-note { margin: 0; color: #526b91; font-size: 12px; font-weight: 650; }
.forecast-festival-chart { border: 1px solid #b8cfe3; border-radius: 10px; background: #f8fbff; }
.forecast-festival-chart > summary { padding: 9px 12px; color: #17324e; font-weight: 800; cursor: pointer; }
.forecast-festival-chart-body { padding: 0 12px 12px; }
.forecast-festival-chart-body p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; color: #38547b; font-size: 11px; font-weight: 750; }
.forecast-festival-chart-body p span { width: 16px; height: 3px; border-radius: 3px; }
.forecast-festival-chart-body p .is-current { background: #2563eb; }
.forecast-festival-chart-body p .is-current-projected { height: 0; border-top: 3px dashed #2563eb; border-radius: 0; }
.forecast-festival-chart-body p .is-prior { background: #c2410c; }
.forecast-festival-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.forecast-festival-chart-grid line { stroke: #d7e2ef; stroke-dasharray: 3 4; }
.forecast-festival-chart-grid text, .forecast-festival-chart-days text { fill: #526b91; font-size: 11px; font-weight: 650; }
.forecast-festival-chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.forecast-festival-chart-line.is-current { stroke: #2563eb; filter: drop-shadow(0 2px 2px rgb(37 99 235 / .24)); }
.forecast-festival-chart-line.is-current-projected { stroke: #2563eb; stroke-dasharray: 5 6; opacity: .78; filter: drop-shadow(0 2px 2px rgb(37 99 235 / .20)); }
.forecast-festival-chart-line.is-prior { stroke: #c2410c; filter: drop-shadow(0 2px 2px rgb(194 65 12 / .22)); }
.forecast-festival-chart-dot.is-current { fill: #fff; stroke: #2563eb; stroke-width: 2; filter: drop-shadow(0 1px 2px rgb(37 99 235 / .25)); }
.forecast-festival-chart-dot.is-current-projected { fill: #fff; stroke: #2563eb; stroke-width: 2; filter: drop-shadow(0 1px 2px rgb(37 99 235 / .20)); }
.forecast-festival-chart-dot.is-prior { fill: #fff; stroke: #c2410c; stroke-width: 2; filter: drop-shadow(0 1px 2px rgb(194 65 12 / .22)); }
.forecast-festival-chart-data-label { font-size: 11px; font-weight: 800; paint-order: stroke; stroke: #f8fbff; stroke-width: 4px; stroke-linejoin: round; }
.forecast-festival-chart-data-label.is-current, .forecast-festival-chart-data-label.is-current-projected { fill: #1d4ed8; }
.forecast-festival-chart-data-label.is-prior { fill: #9a3412; }
.forecast-festival-body h4 { margin: 10px 0 -8px; font-size: 17px; color: #111827; }
.forecast-festival-body p { margin: 0; max-width: 75ch; }
.forecast-festival-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.forecast-festival-filters label { display: grid; gap: 6px; font-weight: 750; }
.forecast-festival-filters select { min-width: 0; width: 100%; padding: 10px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; color: #17324e; font: inherit; }
.forecast-festival-picker { display: grid; gap: 8px; }
.forecast-festival-year { width: 112px; }
.forecast-festival-year select { padding: 7px 9px; }
.forecast-festival-selection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.forecast-festival-selection-date { padding-bottom: 10px; color: #526b91; font-size: 12px; font-weight: 800; white-space: nowrap; text-align: right; }
.forecast-festival-peak { padding: 12px 14px; border: 1px solid #c4a46c; border-radius: 10px; background: #fff5df; color: #78350f; }
.forecast-festival-calculation { display: grid; gap: 12px; padding: 16px; border: 2px solid #111827; border-radius: 12px; background: #f7fbff; }
.forecast-festival-calculation h4 { margin: 0; }
.forecast-festival-equation { font-size: 16px; font-variant-numeric: tabular-nums; }
.forecast-festival-calculation dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.forecast-festival-calculation dt { color: #38547b; font-size: 12px; font-weight: 650; }
.forecast-festival-calculation dd { margin: 3px 0 0; font-size: 16px; font-weight: 800; }
.forecast-festival-body .forecast-history-table { margin: 0; }
.forecast-festival-body table { min-width: 640px; font-size: 13px; font-variant-numeric: tabular-nums; }
.forecast-festival-body th, .forecast-festival-body td { text-align: center; }
.forecast-festival-body td small { display: block; margin-top: 3px; color: #38547b; font-size: 11px; font-weight: 600; }
.forecast-festival-body td b.is-above { padding: 2px 6px; border-radius: 4px; background: #dcfce7; color: #166534; }
.forecast-festival-body td b.is-below { padding: 2px 6px; border-radius: 4px; background: #fee2e2; color: #991b1b; }
.forecast-festival-body .forecast-pattern-guide dd { max-width: 65ch; }
.forecast-festival-peaks { font-weight: 750; }
@media (max-width: 650px) {
  .forecast-festival-filters { grid-template-columns: 1fr; }
  .forecast-festival-selection { grid-template-columns: minmax(0, 1fr) auto; }
  .forecast-festival-selection-date { font-size: 11px; }
  .forecast-festival-calculation dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-festival-modal { padding: 16px; }
  .forecast-festival-key-table th, .forecast-festival-key-table td { padding: 8px 6px; font-size: 11px; }
  .forecast-festival-chart-body { padding: 0 8px 10px; }
  .forecast-festival-chart-grid text, .forecast-festival-chart-days text { font-size: 9px; }
  .forecast-festival-modal > header { padding-left: 0; padding-right: 36px; }
  .forecast-festival-context button { min-height: 40px; }
}
.forecast-history-modal > header { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 16px;
  padding-bottom: 12px; border-bottom: 2px solid #000; text-align: center; }
.forecast-history-modal h3 { margin: 0; color: #000; font-size: 19px; font-weight: 800; }
.forecast-history-modal header p, .forecast-history-note { margin: 4px 0 0; color: #000; font-size: 12px; line-height: 1.45; }
.forecast-history-modal header button { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border: 1px solid #000; border-radius: 8px;
  background: #e5f5ff; color: #000; font-size: 22px; line-height: 1; cursor: pointer; }
.forecast-history-filter { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: #000; }
.forecast-history-filter label { font-size: 12px; font-weight: 800; }
.forecast-history-filter select { min-width: 112px; padding: 6px 8px; border: 1px solid #000; border-radius: 6px; background: #e5f5ff; color: #000; font: inherit; font-size: 12px; font-weight: 700; }
.forecast-history-filter select:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.forecast-history-note { margin: 12px 0; text-align: center; }
.forecast-history-table { overflow-x: auto; }
.forecast-history-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.forecast-history-table th, .forecast-history-table td { padding: 9px 10px; border: 1px solid #000; color: #000; text-align: center; white-space: nowrap; }
.forecast-history-table thead { background: #cfeeff; }
.forecast-history-table tbody tr:nth-child(even) { background: #f2fbff; }
.forecast-summary-modal .forecast-achievement { font-weight: 800; }
.forecast-summary-modal .forecast-achievement.is-great { color: #15803d; }
.forecast-summary-modal .forecast-achievement.is-warn { color: #c2410c; }
.forecast-summary-modal .forecast-achievement.is-risk { color: #b91c1c; }
.forecast-summary-modal .forecast-achievement.is-critical { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #dc2626; color: #fff; }
.forecast-summary-modal .forecast-average-row th, .forecast-summary-modal .forecast-average-row td { border-top: 3px solid #000; }
.forecast-pattern-modal { width: min(1080px, 96vw); max-height: min(850px, calc(100vh - 40px)); }
.forecast-pattern { display: grid; gap: 12px; margin-top: 15px; color: #172033; }
.forecast-pattern-intro { margin: 0 0 2px; font-size: 13px; line-height: 1.5; }
.forecast-pattern abbr[title] { text-decoration: underline dotted #718ba0; text-underline-offset: 3px; cursor: help; }
.forecast-pattern-average { display: grid; grid-template-columns: minmax(175px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 16px;
  padding: 12px 16px; border: 1px solid #86aec8; border-radius: 12px; background: #e9f5fc; }
.forecast-pattern-average span, .forecast-pattern-average small { display: block; color: #334e63; font-size: 12px; font-weight: 700; }
.forecast-pattern-average strong { display: block; margin: 3px 0; color: #075985; font-size: 30px; line-height: 1.1; font-weight: 850; }
.forecast-pattern-average p { margin: 0; color: #17324a; font-size: 13px; line-height: 1.45; font-weight: 650; }
.forecast-pattern-average p small { margin-top: 5px; font-size: 12px; font-weight: 600; }
.forecast-pattern-guide { border: 1px solid #c7d7e4; border-radius: 9px; background: #f7fbfe; }
.forecast-pattern-guide summary { padding: 9px 12px; color: #075985; font-size: 13px; font-weight: 800; cursor: pointer; }
.forecast-pattern-guide summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.forecast-pattern-guide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; margin: 0; padding: 0 12px 12px; }
.forecast-pattern-guide dt { color: #142c40; font-size: 12px; font-weight: 800; }
.forecast-pattern-guide dd { margin: 2px 0 0; color: #405568; font-size: 12px; line-height: 1.4; }
.forecast-pattern-rank { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #111827; border-radius: 9px; background: #fff; }
.forecast-pattern-rank > span { margin-right: 2px; color: #172033; font-size: 12px; font-weight: 850; }
.forecast-pattern-rank button { min-height: 30px; padding: 5px 11px; border: 1.5px solid #111827; border-radius: 6px; background: #fff; color: #172033; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.forecast-pattern-rank button[aria-pressed="true"] { background: #102f49; color: #fff; }
.forecast-pattern-rank button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.forecast-pattern-rank small { margin-left: auto; color: #405568; font-size: 11px; font-weight: 700; }
.forecast-pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.forecast-pattern-month { position: relative; min-width: 0; padding: 12px 13px; border: 2px solid #111827; border-radius: 11px; background: #fff; text-align: center; }
.forecast-pattern-month.is-highest { border-color: #15803d; border-width: 3px; background: #f0fdf4; }
.forecast-pattern-month.is-lowest { border-color: #dc2626; border-width: 3px; background: #fef2f2; }
.forecast-pattern-month header > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.forecast-pattern-rank-badge { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 850; }
.forecast-pattern-rank-badge.is-highest { background: #dcfce7; color: #166534; }
.forecast-pattern-rank-badge.is-lowest { background: #fee2e2; color: #b91c1c; }
.forecast-pattern-current-badge { padding: 2px 6px; border-radius: 4px; background: #dbeafe; color: #1d4ed8; font-size: 10px; font-weight: 850; }
.forecast-pattern-month header { display: grid; justify-items: center; gap: 5px; }
.forecast-pattern-month h4 { margin: 0; color: #102f49; font-size: 16px; font-weight: 850; }
.forecast-pattern-month header > div > span { padding: 3px 7px; border-radius: 5px; background: #edf5fb; color: #075985; font-size: 11px; font-weight: 800; white-space: nowrap; }
.forecast-pattern-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 9px; padding-bottom: 10px; border-bottom: 1px solid #d7e3eb; }
.forecast-pattern-counts > div, .forecast-pattern-meta > div { min-width: 0; }
.forecast-pattern-counts span, .forecast-pattern-progress span, .forecast-pattern-meta span { display: block; color: #405568; font-size: 12px; font-weight: 700; }
.forecast-pattern-counts strong { display: block; margin-top: 3px; color: #123b5d; font-size: 21px; line-height: 1.2; font-weight: 850; font-variant-numeric: tabular-nums; }
.forecast-pattern-progress { padding: 10px 0; }
.forecast-pattern-progress > div:first-child { display: grid; justify-items: center; gap: 2px; }
.forecast-pattern-progress strong { color: #06735f; font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; }
.forecast-pattern-meter { display: block; height: 7px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #dfece9; }
.forecast-pattern-meter i { display: block; height: 100%; border-radius: inherit; background: #0c8c73; }
.forecast-pattern-difference { display: block; margin-top: 5px; font-size: 11px; font-weight: 800; }
.forecast-pattern-difference.is-above { color: #06735f; }
.forecast-pattern-difference.is-below { color: #a04a0b; }
.forecast-pattern-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 9px; border-top: 1px solid #d7e3eb; }
.forecast-pattern-meta b { display: block; margin-top: 2px; color: #192c3e; font-size: 14px; font-weight: 800; white-space: normal; }
.forecast-pattern-empty { margin: 0; padding: 18px; border: 1px solid #c7d7e4; border-radius: 9px; color: #405568; text-align: center; }
@media (max-width: 900px) { .forecast-pattern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .forecast-pattern-grid, .forecast-pattern-guide dl, .forecast-pattern-average { grid-template-columns: 1fr; }
  .forecast-pattern-rank small { flex-basis: 100%; margin-left: 0; }
  .forecast-pattern-modal { width: 96vw; }
}
@media (max-width: 620px) {
  .forecast-history-backdrop { padding: 10px; }
  .forecast-history-modal { max-height: calc(100vh - 20px); padding: 14px; }
}
@media (max-width: 620px) {
  .forecast-head { gap: 9px; padding: 13px 12px; }
  .forecast-head-icon { width: 37px; height: 37px; border-radius: 10px; }
  .forecast-head-icon svg { width: 23px; height: 23px; }
  .forecast-head h3 { font-size: 17px; }
  .forecast-head p { max-width: none; font-size: 10px; line-height: 1.35; }
  .forecast-month-remaining { margin-top: 7px; padding: 5px 7px; font-size: 10px; }
  .forecast-month-remaining svg { display: none; }
  .forecast-day { padding: 5px 7px; font-size: 10px; }
  .forecast-day svg { display: none; }
  .forecast-daily-kpis { gap: 10px; margin: 12px; }
  .forecast-daily-card { padding: 12px; }
  .forecast-daily-card header { margin-bottom: 10px; padding-bottom: 10px; }
  .forecast-daily-card h4 { font-size: 16px; }
  .forecast-daily-card header > div { gap: 2px 7px; }
  .forecast-daily-card header span:not(.forecast-card-icon) { font-size: 11px; }
  .forecast-compare-grid { grid-template-columns: 1fr; gap: 8px; }
  .forecast-compare-metric { padding: 9px; }
  .forecast-compare-title { margin-bottom: 7px; }
  .forecast-compare-columns strong { font-size: 19px; }
  .forecast-daily-card--yesterday .forecast-compare-metric--value .forecast-compare-columns strong { font-size: 15px; }
  .forecast-today-body { gap: 8px; }
  .forecast-today-projected, .forecast-today-body .forecast-hourly-live { padding: 8px; }
  .forecast-today-body .forecast-hourly-live b { font-size: 18px; white-space: normal; }
  .forecast-today-body .forecast-hourly-live strong { white-space: normal; }
  .forecast-daily-values { gap: 7px; }
  .forecast-daily-value { gap: 6px; padding: 9px 7px; }
  .forecast-daily-value .forecast-metric-icon { width: 32px; height: 32px; }
  .forecast-daily-value strong, .forecast-daily-card--today .forecast-daily-value strong,
  .forecast-daily-card--today .forecast-daily-value--value strong { font-size: 19px; }
  .forecast-hourly-live { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .forecast-daily-confidence { margin-top: 10px; padding-top: 8px; }
}
/* Paired KPIs: every column keeps its count, value and supporting percentages together. */
.forecast-daily-card { padding: 16px; }
.forecast-daily-card header, .forecast-daily-card--yesterday header { margin-bottom: 12px; padding-bottom: 10px; }
.forecast-daily-card .forecast-card-icon { width: 32px; height: 32px; }
.forecast-daily-card h4 { font-size: 16px; }
.forecast-compare-grid > div, .forecast-today-body > div { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; min-width: 0; border: 1px solid #b8cfe3; border-radius: 12px; background: #f5f9fd; margin: 0; }
.forecast-compare-grid .forecast-compare-projected, .forecast-today-body .forecast-today-projected { border-color: #bdb2e5; background: #f6f3ff; }
.forecast-today-body .forecast-hourly-live { border-color: #e3b26b; background: #fff8ee; }
.forecast-today-body .forecast-required-rate { border-color: #b8cfe3; background: #f5f9fd; }
.forecast-compare-grid .forecast-today-label, .forecast-today-body .forecast-today-label, .forecast-today-body .forecast-hourly-live > span { margin: 0 0 4px; min-height: 28px; color: #111827; font-size: 12px; line-height: 1.2; font-weight: 800; }
.forecast-compare-grid small, .forecast-today-body small { color: #38547b; font-size: 11px; line-height: 1.4; font-weight: 650; }
.forecast-compare-grid strong, .forecast-today-body .forecast-required-rate strong, .forecast-today-body .forecast-hourly-live b:first-of-type { font-size: 30px; line-height: 1.15; font-weight: 800; white-space: normal; font-variant-numeric: tabular-nums; }
.forecast-compare-grid strong.forecast-paired-value, .forecast-today-body .forecast-required-rate strong.forecast-paired-value, .forecast-today-body .forecast-hourly-live b:nth-of-type(2) { font-size: 18px; line-height: 1.3; margin-bottom: 8px; white-space: normal; }
.forecast-compare-grid .forecast-compare-percent { text-align: left; margin-top: auto; padding-top: 8px; border-top: 1px solid #d5e0eb; }
.forecast-panel .forecast-compare-gap.is-above strong { color: #087349 !important; }
.forecast-panel .forecast-compare-gap.is-below strong { color: #b31628 !important; }
.forecast-panel .forecast-compare-gap strong.is-above { color: #087349 !important; }
.forecast-panel .forecast-compare-gap strong.is-below { color: #b31628 !important; }
.forecast-today-projected .forecast-daily-value { background: transparent; border: 0; padding: 0; }
.forecast-today-projected .forecast-metric-icon { display: none; }
.forecast-today-projected .forecast-daily-value strong { font-size: 30px; }
.forecast-today-projected .forecast-daily-value--value strong { font-size: 18px; }
.forecast-today-projected .forecast-daily-value dt { font-size: 11px; text-transform: none; font-weight: 650; color: #38547b; }
.forecast-today-projected .forecast-daily-values { gap: 4px; }
.forecast-projected-rate { display: block; margin-top: auto; padding-top: 8px; border-top: 1px solid #d5e0eb; }
.forecast-today-body .forecast-hourly-live strong { font-size: 11px; line-height: 1.35; white-space: normal; }
.forecast-daily-confidence { margin-top: 10px; padding-top: 8px; }
.forecast-daily-card--yesterday .forecast-card-note.is-rebuilt { display: flex !important; }
@media (max-width: 620px) {
  .forecast-daily-card { padding: 10px; }
  .forecast-compare-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .forecast-compare-grid > div, .forecast-today-body > div { padding: 8px; }
  .forecast-compare-grid strong { font-size: 25px; }
  .forecast-compare-grid strong.forecast-paired-value { font-size: 12px; }
  .forecast-compare-grid small { font-size: 10px; }
  .forecast-today-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-today-body .forecast-required-rate { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-required-rate .forecast-today-label, .forecast-required-rate small:last-child { grid-column: 1 / -1; min-height: 0; }
  .forecast-required-rate > small:nth-child(2) { grid-column: 1; grid-row: 2; }
  .forecast-required-rate > strong:nth-child(3) { grid-column: 1; grid-row: 3; }
  .forecast-required-rate > small:nth-child(4) { grid-column: 2; grid-row: 2; }
  .forecast-required-rate > strong:nth-child(5) { grid-column: 2; grid-row: 3; align-self: center; }
}
/* Forecast daily-review cards: centred figures and data-driven status only. */
.forecast-panel { container: forecast-cards / inline-size; }
.forecast-panel .forecast-daily-card { padding: 14px; border: 2px solid #111827; }
.forecast-panel .forecast-daily-card--yesterday { align-self: stretch; }
.forecast-panel .forecast-daily-card--today header { flex-wrap: wrap; }
@media (max-width: 700px) { .forecast-panel .forecast-festival-compare { width: 100%; margin-left: 0; text-align: center; } }
.forecast-panel .forecast-daily-card header { margin-bottom: 12px; padding-bottom: 10px; }
.forecast-panel .forecast-compare-grid, .forecast-panel .forecast-today-body { gap: 9px; }
.forecast-panel .forecast-compare-grid > div, .forecast-panel .forecast-today-body > div {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  min-width: 0; height: 100%; padding: 10px; border: 1.5px solid #111827; border-radius: 13px;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.forecast-panel .forecast-compare-actual { background: #eff7ff; }
.forecast-panel .forecast-compare-projected { background: #f4f1ff; }
.forecast-panel .forecast-compare-gap.is-above { background: #ecfff3; border-color: #15803d; }
.forecast-panel .forecast-compare-gap.is-below { background: #fff0f1; border-color: #dc2626; }
.forecast-panel .forecast-compare-gap.is-mixed { background: #fff7df; border-color: #d97706; }
.forecast-panel .forecast-compare-gap.is-even, .forecast-panel .forecast-compare-gap.is-neutral { background: #f3f5f8; }
.forecast-panel .forecast-today-projected { background: #edf6ff; }
.forecast-panel .forecast-hourly-live { background: #fffae8; }
.forecast-panel .forecast-required-rate.is-good { background: #e8f8ee; border-color: #15803d; color: #166534; }
.forecast-panel .forecast-required-rate.is-warn { background: #fff7df; border-color: #d97706; color: #92400e; }
.forecast-panel .forecast-required-rate.is-bad { background: #fff0f1; border-color: #dc2626; color: #991b1b; }
.forecast-panel .forecast-required-rate.is-neutral { background: #f3f5f8; border-color: #94a3b8; color: #334155; }
.forecast-panel .forecast-compare-grid .forecast-today-label, .forecast-panel .forecast-today-body .forecast-today-label,
.forecast-panel .forecast-today-body .forecast-hourly-live > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 29px;
  margin: 0 0 4px; color: #101828; font-size: 14px; line-height: 1.25; font-weight: 800;
}
.forecast-card-mini-icon { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex: none; }
.forecast-card-mini-icon svg { width: 21px; height: 21px; }
.forecast-panel .forecast-compare-actual .forecast-card-mini-icon, .forecast-panel .forecast-today-projected .forecast-card-mini-icon { color: #1165cb; }
.forecast-panel .forecast-compare-projected .forecast-card-mini-icon { color: #6d28d9; }
.forecast-panel .forecast-compare-gap.is-above .forecast-card-mini-icon { color: #15803d; }
.forecast-panel .forecast-compare-gap.is-below .forecast-card-mini-icon { color: #dc2626; }
.forecast-panel .forecast-hourly-live .forecast-card-mini-icon { color: #b45309; }
.forecast-panel .forecast-compare-grid small, .forecast-panel .forecast-today-body small { text-align: center; font-size: 12px; line-height: 1.4; }
.forecast-panel .forecast-compare-grid strong, .forecast-panel .forecast-today-body .forecast-required-rate strong,
.forecast-panel .forecast-today-body .forecast-hourly-live b:first-of-type,
.forecast-panel .forecast-today-projected .forecast-daily-value strong {
  display: block; width: 100%; text-align: center; font-size: clamp(24px, 2vw, 34px); line-height: 1.15; font-weight: 800;
}
.forecast-panel .forecast-compare-grid strong.forecast-paired-value, .forecast-panel .forecast-today-body .forecast-required-rate strong.forecast-paired-value,
.forecast-panel .forecast-today-body .forecast-hourly-live b:nth-of-type(2),
.forecast-panel .forecast-today-projected .forecast-daily-value--value strong { font-size: clamp(17px, 1.5vw, 25px); line-height: 1.25; }
.forecast-panel .forecast-compare-metric > small:nth-of-type(2), .forecast-panel .forecast-required-rate > small:nth-of-type(2),
.forecast-panel .forecast-hourly-live > b:nth-of-type(2), .forecast-panel .forecast-today-projected .forecast-daily-value--value {
  width: 100%; padding-top: 8px; margin-top: 4px; border-top: 1px solid #cad4e1;
}
.forecast-panel .forecast-today-projected .forecast-daily-values { width: 100%; gap: 4px; }
.forecast-panel .forecast-today-projected .forecast-daily-value { display: block; width: 100%; text-align: center; }
.forecast-panel .forecast-today-projected .forecast-daily-value dt { font-size: 12px; }
.forecast-panel .forecast-today-projected .forecast-daily-value dd { margin: 5px 0 0; }
.forecast-panel .forecast-compare-grid .forecast-compare-percent, .forecast-panel .forecast-today-projected .forecast-projected-rate,
.forecast-panel .forecast-required-rate .forecast-rrr-footer {
  display: block; width: calc(100% + 20px); margin: auto -10px -10px; padding: 7px 10px;
  border-top: 1px solid #cad4e1; border-radius: 0 0 11px 11px; background: rgba(255,255,255,.44);
  color: #334155; text-align: center; font-size: 12px; line-height: 1.4;
}
.forecast-panel .forecast-hourly-live .forecast-hourly-remaining {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: calc(100% + 20px); margin: auto -10px -10px; padding: 7px 10px;
  border-top: 1px solid #e5c88a; border-radius: 0 0 11px 11px; background: #fff3d7; text-align: center;
}
.forecast-panel .forecast-hourly-live.is-complete .forecast-hourly-remaining { background: #e8f8ee; border-color: #15803d; }
.forecast-panel .forecast-today-body .forecast-hourly-live strong { font-size: 12px; }
.forecast-panel .forecast-rrr-status { margin-top: auto; color: inherit; font-weight: 750; }
.forecast-panel .forecast-daily-confidence { display: none; }
@container forecast-cards (max-width: 1100px) {
  .forecast-daily-kpis { grid-template-columns: 1fr; }
}
@container forecast-cards (min-width: 1101px) and (max-width: 1450px) {
  .forecast-daily-kpis { gap: 10px; margin: 14px 12px 16px; }
  .forecast-daily-card { padding: 12px; }
  .forecast-compare-grid, .forecast-today-body { gap: 8px; }
  .forecast-compare-grid > div, .forecast-today-body > div { padding: 9px; }
  .forecast-compare-grid .forecast-today-label, .forecast-today-body .forecast-today-label,
  .forecast-today-body .forecast-hourly-live > span { font-size: 12px; }
  .forecast-compare-grid .forecast-compare-percent, .forecast-today-projected .forecast-projected-rate,
  .forecast-required-rate .forecast-rrr-footer, .forecast-hourly-live .forecast-hourly-remaining {
    width: calc(100% + 18px); margin: auto -9px -9px;
  }
}
@media (max-width: 700px) {
  .forecast-panel .forecast-compare-grid, .forecast-panel .forecast-today-body { grid-template-columns: 1fr; }
  .forecast-panel .forecast-compare-grid > div, .forecast-panel .forecast-today-body > div { padding: 12px; }
  .forecast-panel .forecast-compare-grid .forecast-compare-percent, .forecast-panel .forecast-today-projected .forecast-projected-rate,
  .forecast-panel .forecast-required-rate .forecast-rrr-footer, .forecast-panel .forecast-hourly-live .forecast-hourly-remaining {
    width: calc(100% + 24px); margin: auto -12px -12px;
  }
  .forecast-panel .forecast-today-body .forecast-required-rate { display: flex; grid-column: auto; }
}
/* Day-end stays dense; yesterday keeps its original comparison-card hierarchy. */
.forecast-panel .forecast-daily-card--yesterday { padding: 18px; }
.forecast-panel .forecast-daily-card--yesterday header { margin-bottom: 16px; padding-bottom: 14px; gap: 12px; }
.forecast-panel .forecast-daily-card--yesterday h4 { font-size: 19px; }
.forecast-panel .forecast-daily-card--yesterday .forecast-card-icon { width: 40px; height: 40px; }
.forecast-panel .forecast-daily-card--today { padding: 14px; }
.forecast-panel .forecast-daily-card--today header { margin-bottom: 8px; padding-bottom: 8px; }
.forecast-panel .forecast-today-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.forecast-panel .forecast-today-body > div {
  display: grid; grid-template-columns: 1fr; align-content: start; gap: 7px;
  min-height: 0; height: auto; padding: 10px 12px;
}
.forecast-panel .forecast-today-body .forecast-today-label,
.forecast-panel .forecast-today-body .forecast-hourly-live > span { grid-column: 1 / -1; min-height: 0; margin: 0; }
.forecast-panel .forecast-today-projected .forecast-daily-values {
  display: grid; grid-column: 1 / -1; grid-template-columns: 1fr; gap: 7px; margin: 0;
}
.forecast-panel .forecast-today-projected .forecast-daily-value {
  display: block; width: auto; padding: 0; border: 0; background: transparent; text-align: center;
}
.forecast-panel .forecast-today-projected .forecast-daily-value .forecast-metric-icon { display: none; }
.forecast-panel .forecast-today-projected .forecast-daily-value dt { font-size: 11px; }
.forecast-panel .forecast-today-projected .forecast-daily-value dd { margin: 2px 0 0; }
.forecast-panel .forecast-today-projected .forecast-daily-value strong { font-size: 24px; }
.forecast-panel .forecast-today-projected .forecast-daily-value--value { padding-top: 7px; border-top: 1px solid #cad4e1; }
.forecast-panel .forecast-today-projected .forecast-daily-value--value strong { font-size: 20px; }
.forecast-panel .forecast-card-metric { display: grid; gap: 2px; min-width: 0; text-align: center; }
.forecast-panel .forecast-card-metric small { font-size: 11px; }
.forecast-panel .forecast-card-metric strong,
.forecast-panel .forecast-card-metric b { display: block; width: 100%; font-size: 24px; line-height: 1.15; }
.forecast-panel .forecast-card-metric .forecast-paired-value,
.forecast-panel .forecast-card-metric b:nth-child(2) { font-size: 20px; }
.forecast-panel .forecast-card-open { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.forecast-panel .forecast-card-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.forecast-panel .forecast-card-open:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; border-radius: 5px; }
.forecast-panel .forecast-hourly-progress,
.forecast-panel .forecast-rrr-status { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.35; }
.forecast-panel .forecast-card-details { grid-column: 1 / -1; margin: 0; font-size: 11px; }
.forecast-panel .forecast-card-details summary { width: max-content; margin: 0 auto; color: #17324e; font-weight: 800; cursor: pointer; }
.forecast-panel .forecast-card-details[open] summary { margin-bottom: 6px; }
.forecast-panel .forecast-card-details .forecast-hourly-remaining,
.forecast-panel .forecast-card-details .forecast-rrr-footer,
.forecast-panel .forecast-card-details .forecast-projected-rate {
  display: block; width: auto; margin: 0; padding: 6px 8px; border: 1px solid #cad4e1; border-radius: 8px;
  background: rgba(255,255,255,.54); text-align: center; font-size: 11px; line-height: 1.35;
}
.forecast-panel .forecast-card-details .forecast-hourly-remaining { display: grid; gap: 3px; border-color: #e5c88a; background: #fff3d7; }
.forecast-panel .forecast-card-details .forecast-hourly-remaining strong { font-size: 11px; }
.forecast-panel .forecast-card-details .forecast-rrr-footer { color: inherit; }
.forecast-panel .forecast-today-projected .forecast-projected-rate,
.forecast-panel .forecast-today-projected .forecast-festival-result,
.forecast-panel .forecast-today-projected .forecast-festival-month-effect { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .forecast-panel .forecast-daily-card--yesterday { padding: 12px; }
  .forecast-panel .forecast-daily-card--yesterday header { margin-bottom: 10px; padding-bottom: 10px; gap: 8px; }
  .forecast-panel .forecast-daily-card--yesterday h4 { font-size: 16px; }
  .forecast-panel .forecast-daily-card--yesterday .forecast-card-icon { width: 32px; height: 32px; }
  .forecast-panel .forecast-today-body { grid-template-columns: 1fr; }
}
.forecast-review { padding: 16px; border-top: 1px solid #111827; border-bottom: 3px solid #111827; color: #000; background: #fff; }
.forecast-trend { margin: 0; padding: 16px; border: 1.5px solid #111827; border-radius: 14px; background: #f8fbff; }
.forecast-trend-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.forecast-trend h5 { margin: 0; color: #000; font-size: 18px; font-weight: 800; }
.forecast-trend-head p { margin: 4px 0 0; color: #000; font-weight: 700; }
.forecast-trend-switch { display: inline-flex; flex: none; gap: 4px; padding: 4px; border: 1px solid #b8cfe3; border-radius: 10px; background: #edf4fb; }
.forecast-trend-switch button { min-width: 76px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: #000; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.forecast-trend-switch button[aria-pressed="true"] { background: #0b4f88; color: #fff; }
.forecast-trend-switch button:focus-visible { outline: 3px solid #6d28d9; outline-offset: 2px; }
.forecast-trend-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 4px; color: #000; font-size: 12px; font-weight: 800; }
.forecast-trend-legend span { display: inline-flex; align-items: center; gap: 7px; border-radius: 4px; outline: none; transition: color 160ms var(--ease), filter 160ms var(--ease); }
.forecast-trend-legend span::before { content: ""; width: 20px; border-top: 3px solid #1165cb; }
.forecast-trend-legend .is-actual-above { --forecast-legend-color: #166534; --forecast-legend-glow: #15803d; }
.forecast-trend-legend .is-actual-below { --forecast-legend-color: #b91c1c; --forecast-legend-glow: #dc2626; }
.forecast-trend-legend .is-projected { --forecast-legend-color: #9a4b00; --forecast-legend-glow: var(--chart-rate); }
.forecast-trend-legend .is-actual-above::before { border-color: #15803d; }
.forecast-trend-legend .is-actual-below::before { border-color: #dc2626; }
.forecast-trend-legend .is-projected::before { border-color: var(--chart-rate); }
.forecast-trend-legend span:focus-visible { outline: 2px solid var(--forecast-legend-color); outline-offset: 3px; }
.forecast-trend[data-forecast-focus="above"] .forecast-trend-legend [data-forecast-legend="above"],
.forecast-trend[data-forecast-focus="below"] .forecast-trend-legend [data-forecast-legend="below"],
.forecast-trend[data-forecast-focus="projected"] .forecast-trend-legend [data-forecast-legend="projected"] { color: var(--forecast-legend-color); filter: drop-shadow(0 0 4px var(--forecast-legend-glow)); }
.forecast-trend-viewport { overflow-x: auto; }
.forecast-trend-chart { display: block; width: 100%; min-width: 1000px; height: auto; }
.forecast-trend-grid text { fill: #000; font-size: 12px; font-weight: 800; }
.forecast-trend-grid .forecast-trend-weekday { fill: #000; font-size: 11px; font-weight: 800; }
.forecast-trend-grid .forecast-trend-difference { font-size: 11px; font-weight: 900; }
.forecast-trend-grid .forecast-trend-difference.is-positive { fill: #15803d; }
.forecast-trend-grid .forecast-trend-difference.is-negative { fill: #b91c1c; }
.forecast-trend-grid .forecast-trend-difference.is-even, .forecast-trend-grid .forecast-trend-difference.is-unknown { fill: #475569; }
.forecast-trend-series { outline: none; }
.forecast-trend-line-hit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; }
.forecast-trend-actual-line, .forecast-trend-projected-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.forecast-trend-actual-line { stroke: #1165cb; }
.forecast-trend-actual-line.is-above { stroke: #15803d; }
.forecast-trend-actual-line.is-below { stroke: #dc2626; }
.forecast-trend-projected-line { stroke: var(--chart-rate); }
.forecast-trend-actual-dot { fill: #fff; stroke: #1165cb; stroke-width: 2.5; }
.forecast-trend-actual-dot.is-above { stroke: #15803d; }
.forecast-trend-actual-dot.is-below { stroke: #dc2626; }
.forecast-trend-projected-dot { fill: var(--chart-rate); stroke: #fff; stroke-width: 1.5; }
.forecast-trend-projected-dot.is-rebuilt { fill: #fff; stroke: var(--chart-rate); stroke-width: 2; }
.forecast-trend-data-label { fill: #000; font-size: 16px; font-weight: 900; paint-order: stroke; stroke: #f8fbff; stroke-width: 3px; stroke-linejoin: round; }
.forecast-trend-labels { pointer-events: none; }
.forecast-trend-number-badge rect { stroke-width: 1; }
.forecast-trend-number-badge.is-above rect { fill: #dcfce7; stroke: #15803d; }
.forecast-trend-number-badge.is-below rect { fill: #fee2e2; stroke: #dc2626; }
.forecast-trend-number-badge.is-even rect, .forecast-trend-number-badge.is-unknown rect { fill: #f1f5f9; stroke: #64748b; }
.forecast-trend-data-label.is-actual.is-above { fill: #166534; }
.forecast-trend-data-label.is-actual.is-below { fill: #b91c1c; }
.forecast-trend-data-label.is-projected { fill: #9a4b00; }
.forecast-trend-note { margin: 8px 0 0; color: #000; font-size: 12px; font-weight: 700; }
.forecast-trend .forecast-mtd-summary { margin: 0; border-top: 1px solid #cbd5e1; }
.forecast-trend .forecast-mtd-summary summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 8px 0; color: #000; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.forecast-trend .forecast-mtd-summary summary::-webkit-details-marker { display: none; }
.forecast-mtd-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 28px; padding: 0 10px; border: 1px solid #0b4f88; border-radius: 7px; background: #fff; color: #0b4f88; font-size: 12px; font-weight: 800; }
.forecast-mtd-toggle::before { content: "Show"; }
.forecast-mtd-summary[open] .forecast-mtd-toggle { background: #0b4f88; color: #fff; }
.forecast-mtd-summary[open] .forecast-mtd-toggle::before { content: "Hide"; }
.forecast-trend .forecast-mtd-summary .forecast-review-scroll { margin: 0 0 10px; }
.forecast-trend[data-forecast-focus] .forecast-trend-series.is-projected,
.forecast-trend[data-forecast-focus] .forecast-trend-series.is-actual :is(.forecast-trend-actual-line, .forecast-trend-actual-dot),
.forecast-trend[data-forecast-focus] .forecast-trend-labels .forecast-trend-data-label { opacity: .2; }
.forecast-trend[data-forecast-focus="above"] .forecast-trend-series.is-actual .is-above { opacity: 1; filter: drop-shadow(0 2px 4px #15803d); }
.forecast-trend[data-forecast-focus="below"] .forecast-trend-series.is-actual .is-below { opacity: 1; filter: drop-shadow(0 2px 4px #dc2626); }
.forecast-trend[data-forecast-focus="projected"] .forecast-trend-series.is-projected { opacity: 1; filter: drop-shadow(0 2px 4px var(--chart-rate)); }
.forecast-trend[data-forecast-focus="above"] .forecast-trend-labels .is-above,
.forecast-trend[data-forecast-focus="below"] .forecast-trend-labels .is-below,
.forecast-trend[data-forecast-focus="projected"] .forecast-trend-labels .is-projected,
.forecast-trend[data-forecast-focus="today"] .forecast-trend-labels .is-today { opacity: 1; }
.forecast-trend[data-forecast-focus="above"] .forecast-trend-actual-line.is-above,
.forecast-trend[data-forecast-focus="below"] .forecast-trend-actual-line.is-below,
.forecast-trend[data-forecast-focus="projected"] .forecast-trend-projected-line { stroke-width: 5; }
.forecast-trend-series:focus-visible :is(.forecast-trend-actual-line, .forecast-trend-projected-line) { stroke-width: 5; filter: drop-shadow(0 2px 4px #64748b); }
.forecast-trend-series:focus-visible :is(.forecast-trend-actual-dot, .forecast-trend-projected-dot) { filter: drop-shadow(0 2px 3px #64748b); }
@media (hover: hover) and (pointer: fine) {
  .forecast-trend-series { cursor: pointer; }
  .forecast-trend-legend span { cursor: pointer; }
  .forecast-trend-series :is(.forecast-trend-actual-line, .forecast-trend-projected-line, .forecast-trend-actual-dot, .forecast-trend-projected-dot) { transition: stroke-width 160ms var(--ease), filter 160ms var(--ease), opacity 160ms var(--ease); }
  .forecast-trend-series.is-projected { transition: opacity 160ms var(--ease), filter 160ms var(--ease); }
  .forecast-trend-series:hover :is(.forecast-trend-actual-line, .forecast-trend-projected-line) { stroke-width: 5; filter: drop-shadow(0 2px 4px #64748b); }
  .forecast-trend-series:hover :is(.forecast-trend-actual-dot, .forecast-trend-projected-dot) { filter: drop-shadow(0 2px 3px #64748b); }
  .forecast-trend-series.is-projected:hover :is(.forecast-trend-projected-line, .forecast-trend-projected-dot) { filter: drop-shadow(0 2px 4px var(--chart-rate)); }
}
@media (prefers-reduced-motion: reduce) {
  .forecast-trend-series :is(.forecast-trend-actual-line, .forecast-trend-projected-line, .forecast-trend-actual-dot, .forecast-trend-projected-dot) { transition: none; }
  .forecast-trend-series.is-projected, .forecast-trend-legend span { transition: none; }
  .forecast-main > [data-forecast-summary-open] { transition: none; }
}
@media (max-width: 360px) {
  .forecast-daily-card--yesterday .forecast-compare-columns > div { padding: 2px; }
  .forecast-daily-card--yesterday .forecast-compare-metric--value .forecast-compare-columns strong { font-size: 12px; }
  .forecast-daily-card--yesterday .forecast-gap-badge { padding: 4px 2px; }
  .forecast-daily-card--yesterday .forecast-gap-badge svg { width: 12px; height: 12px; }
  .forecast-today-projected .forecast-metric-icon { display: none; }
  .forecast-today-body .forecast-hourly-live b { font-size: 16px; }
  .forecast-today-body .forecast-hourly-live small { font-size: 10px; }
}
.forecast-review p, .forecast-audit-note { font-size: 12px; line-height: 1.5; color: #000; }
.forecast-review-scroll { overflow-x: auto; margin: 12px 0; }
.forecast-review table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.forecast-review th, .forecast-review td { padding: 10px 12px; border: 1px solid #111827; text-align: right; white-space: nowrap; }
.forecast-review th:first-child { text-align: left; }
.forecast-review thead { background: #dcecf3; }
.forecast-review tbody tr:nth-child(even) { background: #f5f8fb; }
.forecast-audit-note { margin: 0; padding: 8px 16px 14px; }
.forecast-formula { margin: 12px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; line-height: 1.6; color: #000; }
@media (max-width: 620px) {
  .forecast-review { padding: 12px; }
  .forecast-review th, .forecast-review td { padding: 8px; font-size: 12px; }
  .forecast-trend { padding: 12px; }
  .forecast-trend-head { flex-wrap: wrap; }
  .forecast-trend-switch { width: 100%; }
  .forecast-trend-switch button { flex: 1; }
}

/* Key Signal -- auto-generated pace insight, colored by severity */
.key-signal { display: flex; gap: 8px; padding: 10px 12px;
              border-radius: 0; border: none; background: var(--page); }
.key-signal .signal-ic { width: 28px; height: 28px; }
.key-signal.bad  { background: color-mix(in srgb, var(--critical) 6%, var(--page)); }
.key-signal.warn { background: color-mix(in srgb, var(--warn) 6%, var(--page)); }
.key-signal.good { background: color-mix(in srgb, var(--good) 6%, var(--page)); }
.key-signal h3 { font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.key-signal-sub { font-size: 10px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.key-signal-body strong { display: block; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.key-signal-body p { font-size: 11px; font-weight: 500; color: var(--ink-2); margin: 2px 0; }
.key-signal-body b { font-variant-numeric: tabular-nums; }

/* Report body uses clear black text; coloured report headers keep their own contrast. */
.tgt-main .kpis-hero :is(.kpi-label, .kpi-sub, .kpi-combo-label, b, em),
.grid-tdks :is(.td-stat .kpi-label, .td-split-label, .td-stat b, .td-stat em, .key-signal h3, .key-signal-sub, .key-signal-body strong, .key-signal-body p, .key-signal-body b),
.forecast-panel > :not(.forecast-head):not(.forecast-daily-kpis) :is(span, small, strong, p, h4, em, summary, th, td) { color: #000 !important; }
.tgt-main .kpi-combo-grid b, .td-row .td-stat b, .key-signal-body strong,
.forecast-main strong, .forecast-feedback h4, .forecast-feedback-numbers strong,
.forecast-detail th, .forecast-detail summary { font-weight: 800 !important; }

/* delta badge */
.delta {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 620;
  padding: 2px 7px; border-radius: 100px; font-variant-numeric: tabular-nums;
  white-space: nowrap; border: 1px solid transparent;
}
.delta.up   { color: var(--good-ink); background: color-mix(in srgb, var(--good) 13%, transparent);
              border-color: color-mix(in srgb, var(--good) 24%, transparent); }
.delta.down { color: var(--critical); background: color-mix(in srgb, var(--critical) 12%, transparent);
              border-color: color-mix(in srgb, var(--critical) 24%, transparent); }
.delta.flat { color: var(--ink-3); background: var(--line-2); border-color: var(--line); }

.pd-rank-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  font-size: 11px; font-weight: 900; line-height: 1; color: #fff;
  vertical-align: -3px;
}
.pd-rank-arrow.up   { background: var(--good); }
.pd-rank-arrow.down { background: var(--critical); }
.pd-rank-arrow.flat { background: var(--ink-3); }

/* ── target section ───────────────────────────────────────── */
.tgt-main .card-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.tgt-main .card-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }

/* Target vs Achievement uses the dashboard's established report-banner
   treatment: navy decision header, amber divider, then a calm metric area. */
.tgt-main { padding: 0; overflow: hidden; border: 3px solid #111827; background: #fff; box-shadow: 0 12px 28px -22px rgba(11,46,89,.7); }
.tgt-main:hover { box-shadow: 0 14px 32px -22px rgba(11,46,89,.8); }
.tgt-main .card-head { margin: 0; padding: 12px 16px; background: #0b2e59; border: 0; border-bottom: 4px solid #f59e0b; border-radius: 0; }
.tgt-main .card-head h2 { color: #fff; font-size: 20px; font-weight: 800; }
.tgt-main .card-head .card-sub { color: rgba(255,255,255,.84); font-size: 11.5px; font-weight: 600; }
.tgt-main .kpis-hero { margin: 10px; }
.grid-tdks .tdp-group .filter-group-head { padding: 7px 9px; background: #f0edff; border: 1px solid #cfc5f3; border-radius: 8px; }
.grid-tdks .tdp-group:hover { box-shadow: none; }
.grid-tdks .tdp-group .filter-group-head h3 { font-size: 14px; }
.grid-tdks .tdp-group .filter-group-head p { font-size: 10.5px; }
.grid-tdks .tdp-group .filter-group-ic { width: 26px; height: 26px; }
.wow-card .card-head { background: #ebf8f2; border: 1px solid #b7dfc8; border-radius: 8px; }
.pd-card .card-head { background: #fff5e6; border: 1px solid #edd39e; border-radius: 8px; }
.trend-insights-card .card-head { background: #f2efff; border: 1px solid #d2c7f5; border-radius: 8px; }
.grid-tdks .tdp-group .filter-group-head h3, .grid-tdks .tdp-group .filter-group-head p,
.wow-card .card-head h2, .wow-card .card-head .card-sub,
.pd-card .card-head h2, .pd-card .card-head .card-sub,
.trend-insights-card .card-head h2 { color: #111827; }
@media (max-width: 620px) {
  .tgt-main .card-head { padding: 16px 18px; }
  .tgt-main .card-head h2 { font-size: 21px; }
  .tgt-main .kpis-hero { margin: 12px; }
}

/* Legacy MIS intentionally follows the former Excel report exactly: dense
   rows, black grid, yellow/orange/blue grouped headers and zone subtotal bars. */
.legacy-mis-card { margin-top: 18px; border: 2px solid #000 !important; border-radius: 0; background: #fff; overflow: hidden; }
.legacy-mis-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; background: #fff2cc; border-bottom: 2px solid #000; color: #000; }
.legacy-mis-head-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.legacy-mis-head h2 { margin: 0; font-size: 15px; line-height: 1.05; font-weight: 900; color: #000; }
.legacy-mis-head p { margin: 1px 0 0; font-size: 9px; line-height: 1.05; font-weight: 750; color: #000; }
.legacy-mis-badge { padding: 3px 7px; border: 1px solid #000; border-radius: 2px; background: #ffc000; color: #000; font-size: 9px; font-weight: 900; white-space: nowrap; }
.legacy-mis-filters { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.legacy-mis-filters label { display: inline-flex; align-items: center; gap: 3px; color: #000; font-size: 8px; font-weight: 900; white-space: nowrap; }
.legacy-mis-filters select { width: 86px; height: 22px; max-width: 125px; padding: 1px 17px 1px 4px; border: 1px solid #000; border-radius: 2px; background: #fff; color: #000; font-size: 8px; font-weight: 800; }
.legacy-mis-filters label:nth-child(4) select { width: 124px; }
.legacy-mis-scroll { position: relative; width: 100%; max-height: 500px; overflow: auto; border-bottom: 1px solid #000; scrollbar-color: #7f8c9f #eef2f7; }
.legacy-mis-table { width: max-content; min-width: 2220px; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: #000; background: #fff; font-size: 12px; font-weight: 650; line-height: 1.2; }
.legacy-mis-table th, .legacy-mis-table td { box-sizing: border-box; height: 26px; padding: 3px 5px; border-right: 1px solid #000; border-bottom: 1px solid #000; text-align: center; vertical-align: middle; white-space: nowrap; }
.legacy-mis-table th { text-align: center; font-weight: 850; }
.legacy-mis-table thead th { position: sticky; z-index: 5; }
.legacy-mis-table .legacy-mis-head-one th { top: 0; height: 28px; }
.legacy-mis-table .legacy-mis-head-two th { top: 28px; height: 28px; }
.legacy-mis-table th.h-sm, .legacy-mis-table td:first-child { width: 195px; min-width: 195px; text-align: center; position: sticky; left: 0; z-index: 3; }
.legacy-mis-table th.h-sm { z-index: 8; }
.legacy-mis-table .legacy-mis-name { background: #fff; font-weight: 750; }
.legacy-mis-table .h-sm, .legacy-mis-table .h-login, .legacy-mis-table .h-ach, .legacy-mis-table .h-drr, .legacy-mis-table .h-rrr { background: #ffc000; }
.legacy-mis-table .h-target, .legacy-mis-table .h-golm { background: #00b0f0; }
.legacy-mis-table .h-disb, .legacy-mis-table .h-irr,
.legacy-mis-table .h-pf, .legacy-mis-table .h-fac,
.legacy-mis-table .h-cli, .legacy-mis-table .h-abnd,
.legacy-mis-table .h-twelve { color: #fff; }
.legacy-mis-table .h-disb, .legacy-mis-table .h-irr { background: #ed7d31; }
.legacy-mis-table .h-pf, .legacy-mis-table .h-fac { background: #70ad47; }
.legacy-mis-table .h-cli, .legacy-mis-table .h-abnd { background: #31859c; }
.legacy-mis-table .h-twelve { background: #7030a0; }
.legacy-mis-table .legacy-mis-head-two th.mc-blue { background: #ade8f4; }
.legacy-mis-table .legacy-mis-head-two th.mc-yellow { background: #ffff00; }
.legacy-mis-table .legacy-mis-head-two th.mc-orange { background: #f8cbad; }
.legacy-mis-table .legacy-mis-head-two th.mc-green { background: #c6e0b4; }
.legacy-mis-table .legacy-mis-head-two th.mc-teal { background: #b7dee8; }
.legacy-mis-table .legacy-mis-head-two th.mc-purple { background: #e0d0f0; }
.legacy-mis-table .legacy-mis-head-two th.mc-gold { background: #ffc000; }
.legacy-mis-table .legacy-mis-head-two th.mc-dl { background: #9dc3e6; }
.legacy-mis-table .legacy-mis-head-two th.mc-df { background: #a9d08e; }
.legacy-mis-table .legacy-mis-head-two th.mc-dm { background: #ffe699; }
.legacy-mis-table th.mis-ge, .legacy-mis-table td.mis-ge { border-right: 1.5px solid #000; }
.legacy-mis-table th.h-sm,.legacy-mis-table th.h-target,.legacy-mis-table th.h-login,.legacy-mis-table th.h-disb,.legacy-mis-table th.h-pf,.legacy-mis-table th.h-cli,.legacy-mis-table th.h-twelve,.legacy-mis-table th.h-irr,.legacy-mis-table th.h-fac,.legacy-mis-table th.h-ach,.legacy-mis-table th.h-golm,.legacy-mis-table th.h-abnd,.legacy-mis-table th.h-drr,.legacy-mis-table th.h-rrr { border-right: 1.5px solid #000; }
/* Anmol, 22-09-2026: "which box I place my mouse that cell up down left
   right should highlight" -- a spreadsheet-style row/column crosshair.
   inset box-shadow layers a tint on top of each cell's own background
   (CLI good/bad, growth pos/neg, zone/grand-total rows) instead of
   fighting their !important background-color. */
.legacy-mis-table tbody tr:hover td, .legacy-mis-table tbody tr:hover th,
.legacy-mis-table td.mis-col-hover, .legacy-mis-table th.mis-col-hover {
  /* No position/transform here on purpose: this rule also matches sticky
     header cells and the sticky first column, and position:relative or a
     transform on a position:sticky element breaks its sticky pinning --
     that's exactly what caused the header to detach and double-render in
     the wrong place. The glow comes from box-shadow alone, which works
     fine on sticky elements without touching their positioning. */
  box-shadow: inset 0 0 0 9999px rgba(59, 130, 246, .22),
              0 0 0 1px rgba(37, 99, 235, .55),
              0 3px 10px 1px rgba(37, 99, 235, .55);
  transition: box-shadow 80ms ease-out;
}
.legacy-mis-table tbody tr:hover td.mis-col-hover, .legacy-mis-table tbody tr:hover th.mis-col-hover {
  box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .34),
              0 0 0 1px rgba(29, 78, 216, .8),
              0 4px 14px 2px rgba(37, 99, 235, .7);
}
.legacy-mis-table tbody tr.legacy-mis-detail td { background: #fff; }
.legacy-mis-table tbody tr.legacy-mis-executive td { background: #f7f7f7; color: #222; font-size: 12px; }
.legacy-mis-table tbody tr.legacy-mis-executive td:first-child { padding-left: 12px; text-align: left; }
.legacy-mis-table tbody tr.legacy-mis-zone-karnataka td { background: #ffc000; font-weight: 900; }
.legacy-mis-table tbody tr.legacy-mis-zone td { background: #ed7d31; font-weight: 900; }
.legacy-mis-table tbody tr.legacy-mis-state-total td { background: #ed7d31; font-weight: 900; border-top: 2px solid #000; }
.legacy-mis-table tbody tr.legacy-mis-grand-total td { background: #ffff00; font-weight: 950; border-top: 2px solid #000; }
.legacy-mis-table td.legacy-mis-cli-good { background: #e2f0d9 !important; font-weight: 900; }
.legacy-mis-table td.legacy-mis-cli-bad { background: #f4cccc !important; color: #9c0006; font-weight: 900; }
.legacy-mis-table td.legacy-mis-growth-pos { background: #00b050 !important; color: #fff; font-weight: 900; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.legacy-mis-table td.legacy-mis-growth-neg { background: #ff0000 !important; color: #fff; font-weight: 900; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.legacy-mis-note { margin: 0; padding: 4px 8px 5px; color: #000; background: #fff; font-size: 8.5px; line-height: 1.05; font-weight: 700; }
@media (max-width: 800px) { .legacy-mis-head { align-items: flex-start; flex-direction: column; } .legacy-mis-head-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; } .legacy-mis-filters { flex-wrap: wrap; } .legacy-mis-filters select { max-width: 112px; } }

.tgt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .tgt-grid { grid-template-columns: 1fr; } }
.tgt-block { background: var(--page); border: 1px solid var(--line);
             border-radius: var(--r-sm); padding: 14px 16px; }
.tgt-label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
             color: var(--ink-3); font-weight: 640; }
.tgt-num { font-size: 26px; font-weight: 660; letter-spacing: -.025em; margin: 6px 0 10px;
           font-variant-numeric: tabular-nums; }
.tgt-num em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink-3); }
.tgt-foot { font-size: 12px; color: var(--ink-3); margin-top: 8px;
            font-variant-numeric: tabular-nums; }
.prog { height: 8px; border-radius: 100px; background: var(--line-2); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 100px; background: var(--mtd);
          transition: width .7s var(--ease); }
.prog i.good { background: var(--good); }
.prog i.warn { background: var(--warn); }
.prog i.bad  { background: var(--critical); }

.rate-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: var(--page); border: 1.5px solid var(--surface-border); border-radius: var(--r-sm); overflow: hidden;
}
.rate:not(:nth-child(4n+1)) { border-left: 1px solid var(--surface-border); }
@media (max-width: 860px) {
  .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate:not(:nth-child(4n+1)) { border-left: none; }
  .rate:nth-child(2n) { border-left: 1px solid var(--surface-border); }
}
.rate { background: transparent; border: none; border-radius: 0;
        padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rate span { font-size: 11px; color: var(--ink-3); }
.rate b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rate b.bad { color: var(--critical); }
.rate b.good { color: var(--good-ink); }

/* ── quality section ──────────────────────────────────────── */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .q-grid { grid-template-columns: 1fr; } }
.q-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px;
          background: var(--page); }
.q-card.ok  { border-color: color-mix(in srgb, var(--good) 38%, var(--line)); }
.q-card.bad { border-color: color-mix(in srgb, var(--critical) 42%, var(--line)); }
.q-label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
           color: var(--ink-3); font-weight: 640; }
.q-val { font-size: 34px; font-weight: 670; letter-spacing: -.03em; margin: 4px 0 2px;
         font-variant-numeric: tabular-nums; }
.q-card.bad .q-val { color: var(--critical); }
.q-card.ok .q-val  { color: var(--good-ink); }
.q-min { font-size: 11.5px; color: var(--ink-3); }
.q-foot { font-size: 12px; color: var(--ink-2); margin-top: 10px;
          display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── charts ───────────────────────────────────────────────── */
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: 250px; display: block; overflow: visible; }
.chart-wrap.tall svg { height: 300px; }
#trendChart { cursor: pointer; }
.axis text { font-size: 10.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.baseline { stroke: var(--base); stroke-width: 1; }
.ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ln-mtd  { stroke: var(--mtd); }
.ln-lmtd { stroke: var(--lmtd); stroke-dasharray: 5 4; }
.area-mtd { fill: var(--mtd); opacity: .09; }
.bar { transition: opacity .16s; }
.bar-mtd { fill: var(--mtd); }
.bar-lmtd { fill: var(--lmtd); }
.bar-base { fill: var(--base); }
.chart-wrap:hover .bar { opacity: .4; }
.chart-wrap:hover .bar.hot { opacity: 1; }
.grow-y { transform-box: fill-box; transform-origin: bottom;
          animation: growY .6s var(--ease) backwards; }
@keyframes growY { from { transform: scaleY(0); } }

.tip {
  position: absolute; pointer-events: none; z-index: 20;
  background: var(--raise); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; font-size: 12px; box-shadow: var(--shadow-lift); min-width: 150px;
}
.tip b { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 620;
         letter-spacing: .05em; text-transform: uppercase; margin-bottom: 5px; }
.tip-row { display: flex; justify-content: space-between; gap: 10px;
           font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--ink-2); }
.tip-hint { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line-2);
            font-size: 10.5px; color: var(--ink-3); }
.sw { width: 10px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.sw-mtd { background: var(--mtd); }
.sw-lmtd { background: var(--lmtd); }

/* ── movers ───────────────────────────────────────────────── */
#moversBox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.mv-col h3 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
             color: var(--ink-3); margin-bottom: 6px; }
.mv-list { list-style: none; margin: 0; padding: 0; display: flex;
           flex-direction: column; gap: 2px; }
.mover {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font: inherit; font-size: 13px; color: var(--ink); background: none; border: 0;
  padding: 7px 9px; border-radius: 6px; cursor: pointer; text-align: left;
}
.mover:hover { background: var(--line-2); }
.mv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-num { font-weight: 650; font-variant-numeric: tabular-nums; }
.mv-num.pos { color: var(--good-ink); }
.mv-num.neg { color: var(--critical); }

/* ── tables ───────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1);
                padding: 0 var(--pad) 2px; }
table.perf { width: 100%; border-collapse: collapse; font-size: 13px; }
table.perf th, table.perf td { padding: 8px 10px; white-space: nowrap; }
table.perf th {
  position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: right;
  font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 640; border-bottom: 1px solid var(--line);
}
table.perf th:nth-child(2), table.perf td:nth-child(2) { text-align: left; }
table.perf td { border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums;
                text-align: right; color: var(--ink-2); }
table.perf td.name { color: var(--ink); font-weight: 560; }
table.perf td.idx { color: var(--ink-3); font-size: 12px; width: 34px; }
table.perf td.go { color: var(--ink-3); font-size: 15px; width: 26px; }
table.perf tbody tr { transition: background .14s; }
table.perf tbody tr.drill { cursor: pointer; transition: background-color 120ms ease; }
table.perf tbody tr.drill:hover { background: color-mix(in srgb, var(--mtd) 7%, transparent); }
table.perf tbody tr.drill:hover td.go { color: var(--mtd); }
table.perf tfoot td { border-top: 1px solid var(--line); border-bottom: 0;
                      font-weight: 650; color: var(--ink); padding-top: 10px; }

.mini-tag {
  font-size: 9.5px; font-weight: 640; padding: 1px 6px; border-radius: 100px;
  margin-left: 5px; color: var(--mtd);
  background: color-mix(in srgb, var(--mtd) 13%, transparent); white-space: nowrap;
}
.mini-tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); cursor: help; }
.contrib { font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 100px; }
.contrib.pos { color: var(--good-ink); background: color-mix(in srgb, var(--good) 13%, transparent); }
.contrib.neg { color: var(--critical); background: color-mix(in srgb, var(--critical) 12%, transparent); }

/* Target Miss report (targetMissReportCard / targetMissModel) --
   this is a second, independently-written implementation of Anmol's own
   detailed spec that already existed complete in this file except for
   its CSS and click wiring (both added here). Colors use the app's
   existing tokens (--critical/--warn/--good/--mtd/--ink*) instead of the
   spec's raw hex values, so dark mode keeps working automatically. */
.target-miss-report { border: 1px solid #6987ad; border-radius: var(--r); background: #f5f8ff; overflow: hidden; box-shadow: 0 10px 26px rgba(12, 46, 89, .12); }
.tm-unavailable { padding: 16px 18px; }
.tm-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: #0b2e59; border-bottom: 4px solid #f59e0b; color: #fff; }
.tm-header h2 { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: #fff; }
.tm-header p { margin: 0; font-size: 12px; color: rgba(255,255,255,.8); }
.tm-heading-icon { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; margin-right: 8px; border-radius: 50%; background: #f59e0b; color: #1f2937; vertical-align: -4px; }
.tm-heading-icon .attention-icon { width: 16px; height: 16px; }
.tm-alert-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: #fbbf24; color: #261700; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: 3px; }
.tm-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tm-controls label { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: rgba(255,255,255,.78); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tm-controls select { font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.45); border-radius: var(--r-sm); background: #fff; color: #0f1f3d; }
.tm-export { display: flex; align-items: center; gap: 6px; align-self: flex-end; padding: 7px 14px; border: 0; border-radius: var(--r-sm); background: #2563eb; color: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.tm-export:hover { background: color-mix(in srgb, var(--mtd) 85%, black); }
.tm-export .attention-icon { width: 14px; height: 14px; }

.tm-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.tm-card { border: 1px solid #96acc8; border-radius: var(--r-sm); background: #f8fbff; padding: 14px; }
.tm-summary { border: 2px solid #31577f; }
.tm-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: #071b35; }
.tm-section-icon { width: 17px; height: 17px; margin-right: 7px; color: #b45309; vertical-align: -3px; }
.tm-card > p { margin: 0 0 8px; font-size: 11.5px; color: var(--ink-3); }

.tm-chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.tm-chart-axis text { font-size: 9.5px; fill: var(--ink-3); }
.tm-chart-line { fill: none; stroke: var(--critical); stroke-width: 2; }
.tm-chart-marks circle { fill: var(--critical); }
.tm-chart-marks text { font-size: 10px; fill: var(--ink-3); }
.tm-chart-value { font-weight: 700; fill: var(--critical) !important; }

.tm-table-scroll { overflow-x: auto; border: 3px solid #000; border-radius: var(--r-sm); background: #fff; }
.tm-state-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tm-detail-table, .tm-month-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tm-state-table th, .tm-detail-table th, .tm-month-table th { text-align: left; padding: 7px 10px; background: #dfeeff; color: #061a33; font-size: 10.5px; font-weight: 800; border-bottom: 1px solid #8ba6c8; white-space: nowrap; }
.tm-state-table th { font-size: 13px; padding: 10px !important; }
.tm-state-table td, .tm-detail-table td, .tm-month-table td { padding: 7px 10px; border-bottom: 1px solid #b7c8dc; color: #050505; font-weight: 700; }
.tm-state-table td { font-weight: 800; }
.tm-state-table th:nth-child(n+2), .tm-state-table td:nth-child(n+2),
.tm-detail-table th:nth-child(n+2), .tm-detail-table td:nth-child(n+2),
.tm-month-table th:nth-child(n+2), .tm-month-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.tm-state-table th:last-child, .tm-state-table td:last-child,
.tm-detail-table th:last-child, .tm-detail-table td:last-child { text-align: left; }
.tm-state-table th, .tm-state-table td { text-align: center !important; }
.tm-state-table th:first-child, .tm-state-table td:first-child { text-align: left !important; }
.tm-state-table td:nth-child(1) { background: #fff; }
.tm-state-table td:nth-child(2) { background: #fff; }
.tm-state-table td:nth-child(3) { background: #fff; }
.tm-state-table td:nth-child(4) { background: #fff; }
.tm-state-table td:nth-child(5) { background: #fff; }
.tm-state-table td:nth-child(6) { background: #fff; }
.tm-state-table th { background: #fff; color: #061a33; }
.tm-state-table th, .tm-state-table td { border-right: 1.5px solid #000 !important; }
.tm-state-table th:last-child, .tm-state-table td:last-child { border-right: 0; }
.tm-state-table th, .tm-state-table td, .tm-performance-table th, .tm-performance-table td { border-bottom: 1.5px solid #000 !important; }
.tm-performance-table th, .tm-performance-table td { border-right: 1.5px solid #000 !important; }
.tm-performance-table th:last-child, .tm-performance-table td:last-child { border-right: 0; }
.tm-detail-table tbody th, .tm-detail-table tbody td { background: #fff !important; }
.tm-state-row.tm-rsm-karnataka .tm-state-toggle { color: #050505; }
.tm-state-row.tm-rsm-kirubaharan .tm-state-toggle { color: #050505; }
.tm-state-row.tm-rsm-perla .tm-state-toggle { color: #050505; }
.tm-sm-details.tm-rsm-karnataka .tm-detail-table tbody th:first-child { background: #fff !important; color: #050505; }
.tm-sm-details.tm-rsm-kirubaharan .tm-detail-table tbody th:first-child { background: #fff !important; color: #050505; }
.tm-sm-details.tm-rsm-perla .tm-detail-table tbody th:first-child { background: #fff !important; color: #050505; }
.tm-performance-drill.tm-rsm-karnataka .pd-table tbody .pd-name { background: #fff !important; color: #050505; }
.tm-performance-drill.tm-rsm-kirubaharan .pd-table tbody .pd-name { background: #fff !important; color: #050505; }
.tm-performance-drill.tm-rsm-perla .pd-table tbody .pd-name { background: #fff !important; color: #050505; }
.tm-performance-drill { padding: 14px; }
.tm-performance-drill > h3 { margin-bottom: 12px; }
.tm-drill-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; color: #526177; font-size: 12.5px; font-weight: 800; }
.tm-drill-crumbs button, .tm-drill-crumbs strong { border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; }
.tm-drill-crumbs button { background: #e8f0ff; color: #1d5fd2; cursor: pointer; }
.tm-drill-crumbs button:hover { background: #d8e6ff; }
.tm-drill-crumbs strong { background: #2563eb; color: #fff; }
.tm-performance-scroll { border: 3px solid #000; border-radius: var(--r-sm); }
.tm-performance-scroll { max-height: none !important; overflow-y: visible !important; }
.tm-performance-table { width: 100%; min-width: 980px; table-layout: auto; }
.tm-performance-table th, .tm-performance-table td { text-align: center; vertical-align: middle; }
table.tm-performance-table tbody th { text-align: left !important; font-weight: 800 !important; color: #050505; }
.tm-performance-table thead th { background: #fff !important; color: #071b35; font-size: 10.5px !important; padding: 7px 10px !important; }
.tm-performance-table tbody th, .tm-performance-table tbody td { font-size: 11.5px !important; padding: 7px 10px !important; }
.tm-performance-table td { font-weight: 800; color: #050505; }
.tm-performance-table [data-tm-drill-rsm], .tm-performance-table [data-tm-drill-state] { cursor: pointer; }
.tm-performance-table [data-tm-drill-rsm]:hover > *, .tm-performance-table [data-tm-drill-state]:hover > * { filter: brightness(.97); }
.tm-drill-arrow { display: inline-block; margin-right: 10px; color: #1d5fd2; font-size: 18px; line-height: 1; }
.tm-drill-total > * { background: #dcecff !important; border-top: 2px solid #75a7e8 !important; font-weight: 900; }
/* Anmol, 21-09-2026: "MAKE TEXT SIZE BIG" -- the Company total row specifically. */
.tm-company-row > * { font-size: 13px !important; padding: 10px !important; }

.tm-view-btn { border: 1px solid #2563eb; border-radius: var(--r-sm); background: #fff; color: #2563eb; padding: 3px 10px; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.tm-view-btn:hover { background: color-mix(in srgb, #2563eb 10%, transparent); }
.tm-view-btn.high { border-color: #b91c2d; color: #b91c2d; }
.tm-view-btn.watch { border-color: #c05d00; color: #c05d00; }
.tm-rate, .tm-reason { padding: 0; background: transparent !important; }
.tm-rate.high, .tm-reason.high, .tm-rate.watch, .tm-reason.watch, .tm-rate.good, .tm-reason.good { color: #050505; }
.tm-gap { font-weight: 700; }
.tm-cur-proj { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font-weight: 800; }
td.tm-cur-proj-cell.alert { background: #ffebce !important; }
.tm-proj { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 800; color: var(--ink-3); }
.tm-proj.high { color: #b91c2d; }
.tm-proj.watch { color: #c05d00; }
.tm-proj.good { color: #0a7b38; }
.tm-cell-icon { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }
.tm-icon-high { color: #b91c2d; }
.tm-icon-watch { color: #c05d00; }
.tm-icon-action { color: #1d5fd2; }

.tm-state-toggle { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; font-weight: 800; color: #050505; cursor: pointer; padding: 0; }
.tm-state-row.high > * { background: #ffd9df !important; }
.tm-state-row.watch > * { background: #ffebce !important; }
.tm-state-row.good > * { background: #d9f4df !important; }
.tm-drill-row.high > * { background: #ffd9df !important; }
.tm-drill-row.watch > * { background: #ffebce !important; }
.tm-drill-row.good > * { background: #d9f4df !important; }
.tm-sm-risk-row.high > * { background: #ffd9df !important; }
.tm-sm-risk-row.watch > * { background: #ffebce !important; }
.tm-sm-risk-row.good > * { background: #d9f4df !important; }
.tm-sm-risk-row.high.tm-new-row > *, .tm-sm-risk-row.watch.tm-new-row > *, .tm-sm-risk-row.good.tm-new-row > * { background: #fff !important; color: #050505 !important; }
/* Anmol, 21-09-2026: "NOT THIS GLOW" -- replaced with the same subtle dim
   the RSM/State drill rows already used, applied everywhere for consistency. */
.tm-state-row:hover > *, .tm-drill-row:hover > *, .tm-sm-risk-row:hover > * { filter: brightness(.96) !important; }
.tm-state-row, .tm-drill-row, .tm-sm-risk-row { cursor: pointer; }
.tm-chevron { display: inline-block; width: 14px; }
.tm-chevron.collapsed { transform: rotate(-90deg); }
.tm-rate { display: inline-block; padding: 3px 10px; border-radius: 100px; font-weight: 800; font-size: 12.5px; }
.tm-rate.high { color: #c81e32; background: #ffd9df; }
.tm-rate.watch { color: #c05d00; background: #ffebce; font-weight: 800; }
.tm-rate.good { color: #0a7b38; background: #d9f4df; }
.tm-reason { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.tm-reason.high { color: #b91c2d; background: #ffdce2; }
.tm-reason.watch { color: #c05d00; background: #ffedd1; }
.tm-reason.good { color: #087236; background: #d9f4df; }
.tm-state-row.high .tm-rate, .tm-state-row.watch .tm-rate, .tm-state-row.good .tm-rate { }
.tm-action { padding: 5px 11px; border: 1px solid #155eef; border-radius: var(--r-sm); background: #155eef; color: #fff; font-weight: 800; font-size: 11px; cursor: pointer; }
.tm-action:hover { background: #0b4aca; border-color: #0b4aca; }
.tm-action.small { padding: 3px 8px; font-size: 10.5px; }
.tm-action:focus-visible, .tm-state-toggle:focus-visible, .tm-controls select:focus-visible, .tm-export:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tm-summary .tm-action:focus-visible, .tm-summary .tm-state-toggle:focus-visible { outline-color: var(--mtd); }

.tm-details-row > td { padding: 0; border-bottom: 1px solid var(--surface-border); background: var(--surface); }
.tm-sm-details { margin: 10px 12px 12px 30px; padding: 10px 12px; background: var(--page); border: 1px solid var(--surface-border); border-radius: var(--r-sm); }
.tm-sm-details h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--critical); }
.tm-empty { text-align: center; color: var(--ink-3); font-size: 12px; padding: 14px !important; }

.tm-inspector { display: flex; flex-direction: column; gap: 12px; }
.tm-inspector > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-inspector > header h3 { margin: 0; font-size: 15px; font-weight: 800; }
.tm-inspector > header p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); }
.tm-risk { padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.tm-risk.high { background: #b45309; }
.tm-risk.watch { background: var(--warn); }
.tm-risk.good { background: #1e4f82; }
.tm-inspector h4 { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
.tm-reasons { margin: 0; padding-left: 16px; }
.tm-reasons li { color: var(--critical); font-size: 12px; line-height: 1.5; margin-bottom: 3px; }
.tm-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-bottom: 8px; }
.tm-team > div { padding: 8px 4px; background: var(--page); border: 1px solid var(--surface-border); border-radius: var(--r-sm); }
.tm-team > div span { display: block; font-size: 10.5px; color: var(--ink-3); margin-bottom: 3px; }
.tm-team > div b { font-size: 17px; font-weight: 800; }
.tm-team b.bad { color: var(--critical); }
.tm-warning { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; background: color-mix(in srgb, var(--critical) 8%, transparent); border: 1px solid color-mix(in srgb, var(--critical) 30%, transparent); border-radius: var(--r-sm); font-size: 11.5px; color: var(--critical); font-weight: 600; }
.tm-warning.neutral { background: var(--page); border-color: var(--surface-border); color: var(--ink-3); font-weight: 500; }
.tm-warning .attention-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--critical); }
.tm-modal-backdrop { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .44); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tm-modal { width: min(620px, 94vw); max-height: min(760px, calc(100vh - 40px)); overflow: auto; background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.34); }
.tm-modal-actions { display: flex; align-items: center; gap: 8px; }
.tm-modal-close { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--page); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.tm-modal-close:hover { background: var(--line-2); }
.tm-modal-close:focus-visible { outline: 2px solid var(--mtd); outline-offset: 2px; }
@media (max-width: 600px) { .tm-modal-backdrop { padding: 12px; } .tm-modal { width: 100%; max-height: calc(100vh - 24px); } }

/* Target Miss View: one insight-led modal for Company, State, RSM/ASM and SM. */
.tm-insight-backdrop { padding: 28px; background: rgba(15, 23, 42, .46); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.tm-insight-modal {
  width: min(1220px, 96vw); max-height: min(920px, calc(100vh - 40px)); overflow: auto;
  box-sizing: border-box; padding: 26px; color: #0f172a; background: #fff;
  border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  animation: tm-insight-in 180ms cubic-bezier(.22, 1, .36, 1) both;
  scrollbar-color: #94a3b8 #f1f5f9; scrollbar-width: thin;
}
@keyframes tm-insight-in {
  from { opacity: .72; transform: translateY(14px) scale(.985); filter: blur(3px); box-shadow: 0 8px 24px rgba(15, 23, 42, .16); }
}
.tm-insight-modal::-webkit-scrollbar { width: 10px; }
.tm-insight-modal::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.tm-insight-modal::-webkit-scrollbar-thumb { background: #94a3b8; border: 2px solid #f1f5f9; border-radius: 10px; }
.tm-insight-head { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 22px; }
.tm-insight-avatar {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  color: #0f3d91; background: #fee2e7; font-size: 28px; font-weight: 900; letter-spacing: -.03em;
}
.tm-insight-identity { min-width: 0; }
.tm-insight-identity h3 { margin: 0 0 5px; color: #0f172a; font-size: 30px; line-height: 1.12; font-weight: 850; letter-spacing: -.025em; }
.tm-insight-identity p { margin: 0 0 8px; color: #475569; font-size: 14px; line-height: 1.45; }
.tm-insight-identity p i, .tm-insight-identity > span i { display: inline-block; height: 16px; margin: 0 10px; border-left: 1px solid #94a3b8; vertical-align: -3px; }
.tm-insight-identity > span { display: flex; align-items: center; flex-wrap: wrap; color: #475569; font-size: 13px; }
.tm-insight-identity > span .attention-icon { width: 18px; height: 18px; margin-right: 7px; color: #4169a1; }
.tm-insight-identity > span b { color: #0f172a; }
.tm-insight-head-actions { display: flex; align-items: center; align-self: start; gap: 14px; }
.tm-insight-risk {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px;
  font-size: 14px; font-weight: 850; white-space: nowrap;
}
.tm-insight-risk .attention-icon { width: 21px; height: 21px; }
.tm-insight-risk.high { color: #b91c1c; background: #fee2e2; }
.tm-insight-risk.watch { color: #a84c00; background: #fff3d6; }
.tm-insight-risk.good { color: #13703b; background: #dcfce7; }
.tm-insight-close.tm-modal-close {
  width: 42px; height: 42px; color: #0f3d91; background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 27px; font-weight: 400;
}
.tm-insight-close.tm-modal-close:hover { color: #fff; background: #0f3d91; border-color: #0f3d91; }
.tm-insight-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tm-insight-kpis article {
  position: relative; min-height: 132px; padding: 18px 18px 16px 58px; overflow: hidden;
  border: 1px solid #dbeafe; border-radius: 14px; background: #f8fbff;
}
.tm-insight-kpis article.achievement { background: #fff5f6; border-color: #fecaca; }
.tm-insight-kpis article.rank { background: #f0fdf8; border-color: #bbf7d0; }
.tm-insight-kpis article.gap { background: #eff6ff; border-color: #bfdbfe; }
.tm-insight-kpis article.top { background: #fffbeb; border-color: #fde68a; }
.tm-insight-kpis article > .attention-icon { position: absolute; left: 18px; top: 20px; width: 28px; height: 28px; color: #2563eb; }
.tm-insight-kpis article.achievement > .attention-icon { color: #dc2626; }
.tm-insight-kpis article.rank > .attention-icon { color: #16a34a; }
.tm-insight-kpis article.top > .attention-icon { color: #d97706; }
.tm-insight-kpis article > span { display: block; margin-bottom: 10px; color: #0f172a; font-size: 13px; font-weight: 800; }
.tm-insight-kpis article > b { display: block; color: #0f172a; font-size: 27px; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tm-insight-kpis article.achievement > b, .tm-insight-kpis article.gap > b { color: #c91d2e; }
.tm-insight-kpis article > small { display: block; margin-top: 7px; color: #475569; font-size: 11.5px; line-height: 1.35; }
.tm-insight-kpis article > em { position: absolute; right: 14px; bottom: 14px; padding: 5px 8px; border-radius: 8px; font-size: 11px; font-style: normal; font-weight: 850; }
.tm-insight-kpis article > em.bad { color: #b91c1c; background: #fee2e2; }
.tm-insight-kpis article > em.good { color: #13703b; background: #dcfce7; }
.tm-insight-kpis article.top > strong { display: inline-block; max-width: calc(100% - 64px); margin-right: 8px; color: #0f172a; font-size: 16px; line-height: 1.25; }
.tm-insight-kpis article.top > b { display: inline; color: #15803d; font-size: 18px; }
.tm-insight-kpis article.top > b.watch { color: #c05d00; }
.tm-insight-kpis article.top > b.high { color: #c81e32; }
.tm-insight-top-list { display: grid; gap: 4px; }
.tm-insight-top-list span { display: flex; justify-content: space-between; gap: 8px; color: #64748b; font-size: 10.5px; }
.tm-insight-top-list b { color: #0f172a; font-size: 11px; text-align: right; }
.tm-insight-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.tm-insight-panel { min-width: 0; overflow: hidden; border: 1px solid #dbeafe; border-radius: 14px; background: #fff; }
.tm-insight-panel h4, .tm-insight-insights > h4 {
  display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px 16px;
  color: #0f172a; background: #f4f8ff; border-bottom: 1px solid #dbeafe; font-size: 15px; font-weight: 850;
}
.tm-insight-panel h4 .attention-icon, .tm-insight-insights > h4 .attention-icon { width: 22px; height: 22px; color: #2563eb; }
.tm-insight-panel h4 span { margin-left: auto; color: #64748b; font-size: 11px; font-weight: 650; }
.tm-insight-chart { display: block; width: 100%; height: 224px; padding: 8px 12px 0; overflow: visible; }
.tm-insight-chart text { fill: #475569; font: 11px Inter, "Segoe UI", system-ui, sans-serif; }
.tm-insight-chart .tm-insight-chart-value { fill: #0f172a; font-size: 13px; font-weight: 850; }
.tm-insight-chart-grid line { stroke: #e2e8f0; stroke-width: 1; }
.tm-insight-chart > path { fill: none; stroke: #6884ad; stroke-width: 2; stroke-dasharray: 6 5; }
.tm-insight-chart rect { fill: #cbd5e1; }
.tm-insight-chart rect.current { fill: #ef4444; }
.tm-insight-chart circle { fill: #fff; stroke: #536f9a; stroke-width: 2.5; }
.tm-insight-bars { display: grid; gap: 17px; padding: 24px 20px 16px; }
.tm-insight-bar-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(150px, 1.7fr) 58px; align-items: center; gap: 10px; }
.tm-insight-bar-row > span { overflow: hidden; color: #0f172a; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.tm-insight-bar-row > div { height: 18px; overflow: hidden; background: #e8edf5; border-radius: 5px; }
.tm-insight-bar-row i { display: block; height: 100%; background: #2563eb; border-radius: 5px 0 0 5px; }
.tm-insight-bar-row i.good { background: #22c55e; }
.tm-insight-bar-row i.high { background: #ef4444; }
.tm-insight-bar-row i.watch { background: #f59e0b; }
.tm-insight-bar-row > b { color: #0f172a; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.tm-insight-interpretation { display: flex; align-items: flex-start; gap: 10px; margin: 4px 20px 18px; padding: 12px 14px; color: #244466; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.tm-insight-interpretation .attention-icon { width: 22px; height: 22px; flex: none; color: #2563eb; }
.tm-insight-insights { margin-bottom: 18px; overflow: hidden; border: 1px solid #dbeafe; border-radius: 14px; }
.tm-insight-insights > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.tm-insight-insights article { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 10px; padding: 17px; }
.tm-insight-insights article + article { border-left: 1px solid #e2e8f0; }
.tm-insight-insights article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.tm-insight-insights article > span .attention-icon { width: 24px; height: 24px; }
.tm-insight-insights .strength > span { color: #15803d; background: #dcfce7; }
.tm-insight-insights .concern > span { color: #dc2626; background: #fee2e2; }
.tm-insight-insights .opportunity > span { color: #1d4ed8; background: #dbeafe; }
.tm-insight-insights p { margin: 0; color: #475569; font-size: 12px; line-height: 1.45; }
.tm-insight-insights p b { display: block; margin-bottom: 4px; color: #0f172a; font-size: 13px; }
.tm-insight-insights .strength p b { color: #15803d; }
.tm-insight-insights .concern p b { color: #c91d2e; }
.tm-insight-insights .opportunity p b { color: #1d4ed8; }
.tm-insight-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 16px; }
.tm-insight-footer > div { display: flex; align-items: center; gap: 13px; padding: 14px 17px; color: #7c4a03; background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; }
.tm-insight-footer > div > .attention-icon { width: 28px; height: 28px; flex: none; color: #d97706; }
.tm-insight-footer p { margin: 0; max-width: 75ch; font-size: 12px; line-height: 1.45; }
.tm-insight-footer p b { display: block; margin-bottom: 3px; color: #0f172a; font-size: 13px; }
.tm-insight-footer > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 230px; padding: 0 22px;
  color: #fff; background: #0f3d91; border: 0; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer;
}
.tm-insight-footer > button:hover { background: #0b2e71; }
.tm-insight-footer > button .attention-icon { width: 18px; height: 18px; }
.tm-insight-empty { margin: 0; padding: 28px; color: #64748b; text-align: center; }
@media (max-width: 980px) {
  .tm-insight-modal { padding: 20px; }
  .tm-insight-kpis { grid-template-columns: repeat(2, 1fr); }
  .tm-insight-main { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tm-insight-backdrop { padding: 10px; }
  .tm-insight-modal { width: 100%; max-height: calc(100vh - 20px); padding: 16px; border-radius: 16px; }
  .tm-insight-head { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; }
  .tm-insight-avatar { width: 58px; height: 58px; font-size: 20px; }
  .tm-insight-identity h3 { font-size: 21px; }
  .tm-insight-identity p, .tm-insight-identity > span { font-size: 11px; }
  .tm-insight-head-actions { gap: 6px; }
  .tm-insight-risk { padding: 7px 9px; font-size: 11px; }
  .tm-insight-risk .attention-icon { display: none; }
  .tm-insight-close.tm-modal-close { width: 36px; height: 36px; }
  .tm-insight-kpis { grid-template-columns: 1fr; }
  .tm-insight-kpis article { min-height: 108px; }
  .tm-insight-insights > div { grid-template-columns: 1fr; }
  .tm-insight-insights article + article { border-left: 0; border-top: 1px solid #e2e8f0; }
  .tm-insight-footer { grid-template-columns: 1fr; }
  .tm-insight-footer > button { min-height: 48px; }
  .tm-insight-bar-row { grid-template-columns: minmax(92px, .8fr) minmax(100px, 1.4fr) 48px; }
}
@media (prefers-reduced-motion: reduce) { .tm-insight-modal { animation: none; } }

/* Compact desktop treatment: keep the complete insight card inside one viewport. */
@media (min-width: 981px) {
  .tm-insight-backdrop { padding: 12px; }
  .tm-insight-modal { width: min(1120px, 94vw); max-height: calc(100vh - 24px); padding: 18px; border-radius: 16px; }
  .tm-insight-head { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; margin-bottom: 12px; }
  .tm-insight-avatar { width: 64px; height: 64px; font-size: 22px; }
  .tm-insight-identity h3 { margin-bottom: 3px; font-size: 24px; }
  .tm-insight-identity p { margin-bottom: 5px; font-size: 12px; }
  .tm-insight-identity > span { font-size: 11px; }
  .tm-insight-risk { padding: 8px 11px; font-size: 12px; }
  .tm-insight-close.tm-modal-close { width: 36px; height: 36px; font-size: 23px; }
  .tm-insight-kpis { gap: 10px; margin-bottom: 12px; }
  .tm-insight-kpis article { min-height: 100px; padding: 13px 13px 11px 48px; }
  .tm-insight-kpis article > .attention-icon { left: 14px; top: 15px; width: 24px; height: 24px; }
  .tm-insight-kpis article > span { margin-bottom: 6px; font-size: 11px; }
  .tm-insight-kpis article > b { font-size: 23px; }
  .tm-insight-kpis article > small { margin-top: 5px; font-size: 10px; }
  .tm-insight-kpis article > em { right: 10px; bottom: 10px; padding: 4px 6px; font-size: 9.5px; }
  .tm-insight-kpis article.top > strong { font-size: 13px; }
  .tm-insight-kpis article.top > b { font-size: 15px; }
  .tm-insight-main { gap: 12px; margin-bottom: 12px; }
  .tm-insight-panel h4, .tm-insight-insights > h4 { padding: 9px 12px; font-size: 13px; }
  .tm-insight-panel h4 .attention-icon, .tm-insight-insights > h4 .attention-icon { width: 18px; height: 18px; }
  .tm-insight-chart { box-sizing: border-box; height: 154px; padding: 4px 10px 0; }
  .tm-insight-bars { gap: 10px; padding: 12px 14px 8px; }
  .tm-insight-bar-row { grid-template-columns: minmax(100px, .8fr) minmax(130px, 1.7fr) 50px; gap: 8px; }
  .tm-insight-bar-row > div { height: 14px; }
  .tm-insight-bar-row > span, .tm-insight-bar-row > b { font-size: 10.5px; }
  .tm-insight-interpretation { gap: 8px; margin: 2px 14px 11px; padding: 8px 10px; font-size: 10.5px; }
  .tm-insight-interpretation .attention-icon { width: 18px; height: 18px; }
  .tm-insight-insights { margin-bottom: 12px; }
  .tm-insight-insights article { grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 12px; }
  .tm-insight-insights article > span { width: 34px; height: 34px; border-radius: 10px; }
  .tm-insight-insights article > span .attention-icon { width: 20px; height: 20px; }
  .tm-insight-insights p { font-size: 10.5px; line-height: 1.35; }
  .tm-insight-insights p b { margin-bottom: 2px; font-size: 11.5px; }
  .tm-insight-footer { gap: 12px; }
  .tm-insight-footer > div { gap: 10px; padding: 9px 12px; }
  .tm-insight-footer > div > .attention-icon { width: 22px; height: 22px; }
  .tm-insight-footer p { font-size: 10.5px; line-height: 1.35; }
  .tm-insight-footer p b { margin-bottom: 2px; font-size: 11.5px; }
  .tm-insight-footer > button { min-width: 205px; min-height: 48px; padding: 0 16px; font-size: 11px; }
}
@media (min-width: 981px) and (min-height: 560px) {
  .tm-insight-modal { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
  /* An individual SM card has a taller peer panel. Let its trend chart use
     that matched panel height instead of leaving an empty lower half. */
  .tm-insight-modal.tm-insight-sm .tm-insight-main > .tm-insight-panel {
    display: flex; flex-direction: column;
  }
  .tm-insight-modal.tm-insight-sm .tm-insight-chart {
    flex: 1 1 auto; min-height: 154px; height: auto;
  }
  /* Long peer lists remain readable; the card itself can scroll vertically. */
  .tm-insight-modal.tm-insight-many-peers { padding: 12px; }
  .tm-insight-many-peers .tm-insight-head { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; margin-bottom: 8px; }
  .tm-insight-many-peers .tm-insight-avatar { width: 52px; height: 52px; font-size: 18px; }
  .tm-insight-many-peers .tm-insight-identity h3 { font-size: 20px; }
  .tm-insight-many-peers .tm-insight-kpis { gap: 8px; margin-bottom: 8px; }
  .tm-insight-many-peers .tm-insight-kpis article { min-height: 84px; padding: 10px 10px 8px 42px; }
  .tm-insight-many-peers .tm-insight-kpis article > .attention-icon { left: 12px; top: 11px; width: 21px; height: 21px; }
  .tm-insight-many-peers .tm-insight-kpis article > span { margin-bottom: 4px; font-size: 10px; }
  .tm-insight-many-peers .tm-insight-kpis article > b { font-size: 21px; }
  .tm-insight-many-peers .tm-insight-kpis article > small { margin-top: 3px; font-size: 9.5px; }
  .tm-insight-many-peers .tm-insight-main { gap: 10px; margin-bottom: 8px; }
  .tm-insight-many-peers .tm-insight-chart { min-height: 154px; }
  .tm-insight-many-peers .tm-insight-bars { gap: 5px; padding: 8px 12px 6px; }
  .tm-insight-many-peers .tm-insight-bar-row { gap: 7px; }
  .tm-insight-many-peers .tm-insight-bar-row > div { height: 12px; }
  .tm-insight-many-peers .tm-insight-bar-row > span,
  .tm-insight-many-peers .tm-insight-bar-row > b { font-size: 10px; }
  .tm-insight-many-peers .tm-insight-interpretation { margin: 2px 12px 7px; padding: 7px 9px; font-size: 10px; }
  .tm-insight-many-peers .tm-insight-insights { margin-bottom: 8px; }
  .tm-insight-many-peers .tm-insight-insights article { padding: 7px 9px; }
}
@media (min-width: 981px) and (max-height: 820px) {
  .tm-insight-modal { padding: 12px; }
  .tm-insight-head { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; margin-bottom: 8px; }
  .tm-insight-avatar { width: 50px; height: 50px; font-size: 18px; }
  .tm-insight-identity h3 { font-size: 20px; }
  .tm-insight-kpis { margin-bottom: 8px; }
  .tm-insight-kpis article { min-height: 84px; padding-top: 10px; padding-bottom: 8px; }
  .tm-insight-kpis article > .attention-icon { top: 11px; }
  .tm-insight-main { margin-bottom: 8px; }
  .tm-insight-chart { height: 128px; }
  .tm-insight-bars { gap: 7px; padding-top: 9px; }
  .tm-insight-insights { margin-bottom: 8px; }
  .tm-insight-insights article { padding-top: 7px; padding-bottom: 7px; }
  .tm-insight-footer > div { padding-top: 7px; padding-bottom: 7px; }
  .tm-insight-footer > button { min-height: 42px; }
}

/* Stronger Target Miss card contrast and rank semantics. */
.tm-insight-modal {
  color: #050b18; border: 2px solid #334e78; box-shadow: 0 18px 48px rgba(15, 23, 42, .26);
}
.tm-insight-modal p, .tm-insight-modal small, .tm-insight-modal span { color: #111827; }
.tm-insight-identity p, .tm-insight-identity > span, .tm-insight-kpis article > small,
.tm-insight-insights p, .tm-insight-footer p, .tm-insight-interpretation { font-weight: 650; }
.tm-insight-kpis article, .tm-insight-panel, .tm-insight-insights, .tm-insight-footer > div {
  border-color: #9fb1c9;
}
.tm-insight-kpis article { border-width: 2px; }
.tm-insight-panel, .tm-insight-insights { border-width: 2px; }
.tm-insight-panel h4, .tm-insight-insights > h4 { color: #050b18; background: #eaf1fb; border-color: #9fb1c9; }
.tm-insight-chart text { fill: #111827; font-size: 13px; font-weight: 650; }
.tm-insight-chart .tm-insight-chart-value { fill: #050b18; font-size: 15px; font-weight: 900; }
.tm-insight-chart-grid line { stroke: #b8c5d6; }
.tm-insight-bar-row > span, .tm-insight-bar-row > b { color: #050b18; font-weight: 850; }
.tm-insight-bar-row.selected { padding: 3px 5px; background: #e8f0fb; border: 1px solid #9fb1c9; border-radius: 7px; }
.tm-insight-interpretation { color: #071a33; background: #e5effc; border-color: #91acd0; }
.tm-insight-interpretation::first-line { font-weight: 900; }
.tm-insight-peer-facts { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; margin: auto 14px 12px; }
.tm-insight-peer-facts > span { display: grid; gap: 2px; padding: 7px 9px; border: 1px solid #b7c6da; border-radius: 8px; }
.tm-insight-peer-facts .danger { color: #9f1239; background: #fff1f2; }
.tm-insight-peer-facts .team-best { color: #08783f; background: #ecfdf3; }
.tm-insight-peer-facts .projection { color: #075da8; background: #eef6ff; }
.tm-insight-peer-facts b { color: inherit; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.tm-insight-peer-facts strong { color: #050b18; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tm-insight-insights strong { display: block; color: #050b18; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tm-rank-good, .tm-insight-kpis article.rank.tm-rank-good > b { color: #08783f !important; }
.tm-rank-watch, .tm-insight-kpis article.rank.tm-rank-watch > b { color: #b45309 !important; }
.tm-rank-high, .tm-insight-kpis article.rank.tm-rank-high > b { color: #c91d2e !important; }
.tm-insight-kpis article.rank.tm-rank-good { background: #e8f8ef; border-color: #50b985; }
.tm-insight-kpis article.rank.tm-rank-watch { background: #fff4df; border-color: #e9a23b; }
.tm-insight-kpis article.rank.tm-rank-high { background: #fff0f2; border-color: #e77a86; }
@media (min-width: 981px) {
  .tm-insight-modal { width: min(1040px, 92vw); }
  .tm-insight-identity p, .tm-insight-identity > span { font-size: 12px; }
  .tm-insight-kpis article > span { font-size: 12px; }
  .tm-insight-kpis article > small { font-size: 11px; }
  .tm-insight-bar-row > span, .tm-insight-bar-row > b { font-size: 11.5px; }
  .tm-insight-interpretation, .tm-insight-insights p, .tm-insight-footer p { font-size: 11.5px; }
  .tm-insight-insights p b, .tm-insight-footer p b { font-size: 12.5px; }
  .tm-insight-chart { height: 180px; }
  .tm-insight-peer-facts { margin: auto 14px 11px; }
}
@media (min-width: 981px) and (max-height: 700px) {
  .tm-insight-backdrop { padding: 7px; }
  .tm-insight-modal { max-height: calc(100vh - 14px); padding: 8px; }
  .tm-insight-head { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 5px; }
  .tm-insight-avatar { width: 44px; height: 44px; font-size: 16px; }
  .tm-insight-identity h3 { margin-bottom: 1px; font-size: 18px; }
  .tm-insight-identity p { margin-bottom: 2px; }
  .tm-insight-risk { padding: 6px 9px; }
  .tm-insight-close.tm-modal-close { width: 32px; height: 32px; }
  .tm-insight-kpis { gap: 7px; margin-bottom: 5px; }
  .tm-insight-kpis article { min-height: 72px; padding: 8px 9px 7px 42px; }
  .tm-insight-kpis article > .attention-icon { left: 11px; top: 10px; width: 21px; height: 21px; }
  .tm-insight-kpis article > span { margin-bottom: 3px; font-size: 11px; }
  .tm-insight-kpis article > b { font-size: 20px; }
  .tm-insight-kpis article > small { margin-top: 2px; font-size: 10px; }
  .tm-insight-kpis article > em { right: 7px; bottom: 7px; }
  .tm-insight-main { gap: 7px; margin-bottom: 5px; }
  .tm-insight-panel h4, .tm-insight-insights > h4 { padding: 6px 9px; }
  .tm-insight-chart { height: 174px; }
  .tm-insight-bars { gap: 6px; padding: 8px 10px 5px; }
  .tm-insight-bar-row > div { height: 12px; }
  .tm-insight-bar-row.selected { padding-top: 2px; padding-bottom: 2px; }
  .tm-insight-interpretation { margin: 1px 10px 7px; padding: 6px 8px; font-size: 10.5px; line-height: 1.28; }
  .tm-insight-peer-facts { grid-template-columns: minmax(0, 1fr) 112px; gap: 6px; margin: auto 10px 7px; }
  .tm-insight-peer-facts > span { padding: 5px 7px; }
  .tm-insight-peer-facts strong { font-size: 10.5px; }
  .tm-insight-insights { margin-bottom: 5px; }
  .tm-insight-insights article { grid-template-columns: 30px 1fr; gap: 6px; padding: 6px 9px; }
  .tm-insight-insights article > span { width: 30px; height: 30px; }
  .tm-insight-insights p { font-size: 10.5px; line-height: 1.25; }
  .tm-insight-footer { gap: 7px; }
  .tm-insight-footer > div { padding: 6px 9px; }
  .tm-insight-footer p { font-size: 10.5px; line-height: 1.25; }
  .tm-insight-footer > button { min-width: 190px; min-height: 38px; }
}

/* ── risk list ────────────────────────────────────────────── */
.attention-section {
  --att-navy: #0b1f3a; --att-blue: #1677ff; --att-red: #dc2626; --att-red-soft: #fff1f2;
  --att-amber: #d97706; --att-amber-soft: #fffbeb; --att-border: #a8b9cf;
  position: relative; padding: 0; overflow: visible; border: 1.5px solid #7f96b2; border-radius: 16px;
  color: var(--att-navy); background: #f8fbff; box-shadow: 0 10px 28px rgba(11,31,58,.12);
}
.attention-section .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.attention-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.attention-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); align-items: center; gap: 18px;
  min-height: 86px; padding: 14px 18px; color: #fff; background: var(--att-navy);
  border: 0; border-radius: 14px 14px 0 0;
}
.attention-head-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.attention-head-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #ff6b74; background: rgba(239,68,68,.15); border: 1px solid rgba(255,120,128,.28); border-radius: 10px; }
.attention-head-icon .attention-icon { width: 29px; height: 29px; stroke-width: 2.1; }
.attention-head h2 { margin: 0; color: #fff; font-size: 21px; font-weight: 780; letter-spacing: -.018em; }
.attention-head p { margin: 3px 0 0; color: #cbd8e8; font-size: 12px; line-height: 1.35; }
.attention-history-note { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; color: #dcecff; background: #123f6d; border: 1px solid #2d6598; border-radius: 9px; }
.attention-history-note > .attention-icon { width: 21px; height: 21px; margin-top: 1px; color: #45b8ff; }
.attention-history-note div { display: grid; gap: 1px; }
.attention-history-note b { color: #fff; font-size: 11.5px; }
.attention-history-note span, .attention-history-note small { color: #dcecff; font-size: 10.5px; line-height: 1.3; }
.attention-module-body { padding: 13px 14px 12px; }
.attention-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 11px; }
.attention-kpi {
  display: flex; align-items: center; gap: 10px; min-height: 86px; padding: 11px 12px;
  border: 1px solid; border-radius: 11px; box-shadow: 0 3px 10px rgba(11,31,58,.05);
}
.attention-kpi-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; }
.attention-kpi-icon .attention-icon { width: 23px; height: 23px; stroke-width: 2.1; }
.attention-kpi > div { display: grid; min-width: 0; }
.attention-kpi b { font-size: 25px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.attention-kpi strong { margin-top: 4px; color: var(--att-navy); font-size: 11.5px; line-height: 1.2; }
.attention-kpi small { margin-top: 3px; color: #52657d; font-size: 9.5px; line-height: 1.25; }
.attention-kpi.critical { color: var(--att-red); background: #fff4f5; border-color: #f4b9bf; }
.attention-kpi.critical .attention-kpi-icon { background: #ffe2e5; }
.attention-kpi.watch { color: #e89300; background: #fffae9; border-color: #f2d58c; }
.attention-kpi.watch .attention-kpi-icon { background: #fff0bd; }
.attention-kpi.total { color: #3e628f; background: #f2f7fd; border-color: #bfd0e5; }
.attention-kpi.total .attention-kpi-icon { background: #dfeaf7; }
.attention-kpi.monitored { color: #1296db; background: #eff8ff; border-color: #b7d8ed; }
.attention-kpi.monitored .attention-kpi-icon { background: #d9f0ff; }
.attention-insight {
  display: flex; align-items: center; gap: 10px; margin: 0 0 11px; padding: 9px 11px;
  color: #263e5b; background: #eef7ff; border: 1px solid #b7d8ed; border-radius: 9px;
}
.attention-insight > .attention-icon { width: 22px; height: 22px; color: #1597e5; }
.attention-insight div { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.attention-insight b { color: var(--att-navy); font-size: 11.5px; white-space: nowrap; }
.attention-insight p { color: #506782; font-size: 11px; line-height: 1.3; }
.attention-insight strong { color: #075cae; }
.attention-insight > span { margin-left: auto; color: #075cae; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.attention-insight.attention-insight-danger { color: #111827; background: #fff0f1; border-color: #e59aa3; }
.attention-insight.attention-insight-danger > .attention-icon { color: #c52232; }
.attention-insight.attention-insight-danger b, .attention-insight.attention-insight-danger p { color: #111827; }
.attention-insight.attention-insight-danger strong, .attention-insight.attention-insight-danger > span { color: #b42332; }
.attention-drill-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 8px 0; }
.attention-drill-controls > span { margin-right: 2px; color: #111827; font-size: 10.5px; font-weight: 780; }
.attention-drill-controls button { min-height: 29px; padding: 4px 10px; color: #111827; background: #fff; border: 1px solid #7f95ae; border-radius: 6px; font: inherit; font-size: 10.5px; font-weight: 760; cursor: pointer; transition: background-color 160ms cubic-bezier(.23,1,.32,1), border-color 160ms cubic-bezier(.23,1,.32,1), transform 120ms cubic-bezier(.23,1,.32,1); }
.attention-drill-controls button:hover:not(:disabled) { background: #eaf2fb; border-color: #345d87; }
.attention-drill-controls button:active:not(:disabled) { transform: scale(.97); }
.attention-drill-controls button:focus-visible { outline: 3px solid rgba(22,119,255,.28); outline-offset: 2px; }
.attention-drill-controls button:disabled { color: #6b7280; background: #f4f6f8; border-color: #c8d1dc; cursor: default; }
.attention-table-scroll { overflow-x: auto; border: 1px solid #728ba7; border-radius: 9px; background: #fff; }
.attention-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.attention-table th, .attention-table td { padding: 8px 9px; text-align: left; border-bottom: 1px solid #c4d0de; vertical-align: middle; }
.attention-table th + th, .attention-table td + td { border-left: 1px solid #c4d0de; }
.attention-table thead th { color: #111827; font-size: 10.5px; font-weight: 800; line-height: 1.25; text-align: center; background: #dce9f8; border-bottom: 2px solid #7898bf; white-space: nowrap; }
.attention-table thead th:nth-child(2), .attention-table thead th:nth-child(3), .attention-table thead th:nth-child(7), .attention-table thead th:nth-child(8) { text-align: left; }
.attention-table tbody tr.attention-data-row > * { font-weight: 650; transition: background-color 160ms cubic-bezier(.23,1,.32,1), box-shadow 160ms cubic-bezier(.23,1,.32,1); }
.attention-table tbody tr.attention-data-row.is-critical > * { background: #fff9f9; }
.attention-table tbody tr.attention-data-row.is-watch > * { background: #fffdf7; }
.attention-table tbody tr.attention-data-row.is-critical:hover > * { background: #fff0f2; }
.attention-table tbody tr.attention-data-row.is-watch:hover > * { background: #fff4d8; }
.attention-table tbody tr.attention-data-row.is-selected > * { background: #e8f3ff; box-shadow: inset 0 1px #85b8eb, inset 0 -1px #85b8eb; }
.attention-table tbody tr.attention-data-row.zone-ka2 > * { background: #e6f1ff; }
.attention-table tbody tr.attention-data-row.zone-ka2:hover > * { background: #d5e9ff; }
.attention-table tbody tr.attention-data-row.zone-kerala > * { background: #e4f6eb; }
.attention-table tbody tr.attention-data-row.zone-kerala:hover > * { background: #d1eddb; }
.attention-table tbody tr.attention-data-row.zone-tamil-nadu > * { background: #eee8ff; }
.attention-table tbody tr.attention-data-row.zone-tamil-nadu:hover > * { background: #e1d7ff; }
.attention-table tbody tr.attention-data-row.zone-other > * { background: #e9eff5; }
.attention-table tbody tr.attention-data-row.zone-other:hover > * { background: #dce6ef; }
.attention-table tbody tr.attention-data-row.is-critical.zone-ka2 > * { background: #fff0f1; }
.attention-table tbody tr.attention-data-row.is-critical.zone-ka2:hover > * { background: #ffdee1; }
.attention-table tbody tr.attention-data-row.is-critical.zone-tamil-nadu > * { background: #fff1f6; }
.attention-table tbody tr.attention-data-row.is-critical.zone-tamil-nadu:hover > * { background: #fce0ea; }
.attention-table tbody tr.attention-data-row.is-critical.zone-kerala > * { background: #fff2f2; }
.attention-table tbody tr.attention-data-row.is-critical.zone-kerala:hover > * { background: #ffdfdf; }
.attention-table tbody tr.attention-data-row.is-critical.zone-other > * { background: #fbefef; }
.attention-table tbody tr.attention-data-row.is-critical.zone-other:hover > * { background: #f3dddd; }
.attention-table tbody tr.attention-data-row.is-selected > * { background: #d9ebff; box-shadow: inset 0 1px #5795d0, inset 0 -1px #5795d0; }
.attention-table tbody tr.attention-data-row td { color: #111827; }
.attention-table tbody tr:last-child > * { border-bottom: 0; }
.attention-table tbody th { color: #111827; font-weight: 800; }
.attention-table .num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.attention-data-row.is-critical td:nth-child(5), .attention-data-row.is-watch td:nth-child(5) { color: #b91c1c; font-weight: 780; background-image: linear-gradient(rgba(254,226,226,.58),rgba(254,226,226,.58)); }
.attention-rank { width: 38px; text-align: center !important; color: #111827; font-variant-numeric: tabular-nums; }
.attention-change { font-weight: 780; white-space: nowrap; }
.attention-change.bad, .attention-trend-grid .bad, .attention-trigger .bad { color: #dc2626; }
.attention-change.good, .attention-trend-grid .good, .attention-trigger .good { color: #16813f; }
.attention-change.neutral, .attention-trend-grid .neutral, .attention-trigger .neutral { color: #52657d; }
.attention-table .attention-reason, .attention-table .attention-action { min-width: 155px; max-width: 205px; white-space: normal; color: #111827; line-height: 1.3; }
.attention-table .attention-reason small { display: block; margin-top: 3px; color: #4b5563; font-size: 9.5px; font-weight: 620; }
.attention-table .attention-action { min-width: 140px; font-weight: 760; }
.attention-view { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 62px; padding: 5px 8px; color: #0866cc; background: #fff; border: 1px solid #5aa7eb; border-radius: 6px; font: inherit; font-size: 10.5px; font-weight: 760; white-space: nowrap; cursor: pointer; }
.attention-view .attention-icon { width: 13px; height: 13px; }
.attention-view:hover, .attention-view:focus-visible { color: #034c9a; background: #e8f4ff; border-color: #1677ff; outline: none; }
.attention-table .attention-group th { padding: 0; border-left: 0; border-bottom: 0; }
.attention-group button { display: grid; grid-template-columns: minmax(250px, .8fr) 1fr; align-items: center; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.attention-group-main { display: flex; align-items: center; gap: 8px; }
.attention-group-main b { font-size: 12.5px; font-weight: 800; }
.attention-group-main em { font-size: 10.5px; font-style: normal; font-weight: 750; }
.attention-chevron { display: grid; place-items: center; width: 22px; height: 22px; color: inherit; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.attention-chevron .attention-icon { width: 14px; height: 14px; transition: transform 150ms ease; }
.attention-chevron.is-collapsed .attention-icon { transform: rotate(-90deg); }
.attention-group small { color: inherit; font-size: 10.5px; font-weight: 650; text-align: left; }
.attention-group.critical th { color: #fff; background: #d91f2c; border-top: 5px solid #fff; }
.attention-group.warn th { color: #603500; background: #f8cf70; border-top: 6px solid #fff; }
.attention-group.warn .attention-chevron { background: rgba(255,255,255,.58); border-color: rgba(116,69,0,.15); }
.attention-zone-group th { padding: 0 !important; border-top: 1px solid #9db0c4 !important; border-bottom: 1px solid #9db0c4 !important; }
.attention-zone-group button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; padding: 5px 12px 5px 38px; border: 0; color: #111827; background: #dde8f3; font: inherit; text-align: left; cursor: pointer; transition: background-color 160ms cubic-bezier(.23,1,.32,1); }
.attention-zone-group.zone-ka2 th { border-color: #699fd1 !important; }
.attention-zone-group.zone-ka2 button { background: #bedcff; }
.attention-zone-group.zone-ka2 button:hover { background: #a9d0fa; }
.attention-zone-group.zone-kerala th { border-color: #6eac87 !important; }
.attention-zone-group.zone-kerala button { background: #bee5ce; }
.attention-zone-group.zone-kerala button:hover { background: #a6d9b9; }
.attention-zone-group.zone-tamil-nadu th { border-color: #9680cb !important; }
.attention-zone-group.zone-tamil-nadu button { background: #d8c7ff; }
.attention-zone-group.zone-tamil-nadu button:hover { background: #c9b4f5; }
.attention-zone-group.zone-other th { border-color: #98aabd !important; }
.attention-zone-group.zone-other button { background: #d8e1eb; }
.attention-zone-group.zone-other button:hover { background: #c9d5e0; }
.attention-zone-group.critical.zone-ka2 th { border-color: #d96874 !important; }
.attention-zone-group.critical.zone-ka2 button { background: #ffb9c1; }
.attention-zone-group.critical.zone-ka2 button:hover { background: #fca4ae; }
.attention-zone-group.critical.zone-tamil-nadu th { border-color: #c86a8a !important; }
.attention-zone-group.critical.zone-tamil-nadu button { background: #f5bed2; }
.attention-zone-group.critical.zone-tamil-nadu button:hover { background: #edabc4; }
.attention-zone-group.critical.zone-kerala th { border-color: #d77979 !important; }
.attention-zone-group.critical.zone-kerala button { background: #ffcaca; }
.attention-zone-group.critical.zone-kerala button:hover { background: #ffb4b4; }
.attention-zone-group.critical.zone-other th { border-color: #c98585 !important; }
.attention-zone-group.critical.zone-other button { background: #f5d1d1; }
.attention-zone-group.critical.zone-other button:hover { background: #ecc0c0; }
.attention-zone-group button > span { display: flex; align-items: center; gap: 7px; }
.attention-zone-group b { color: inherit; font-size: 11.5px; font-weight: 820; }
.attention-zone-group em { color: inherit; font-size: 10.5px; font-style: normal; font-weight: 760; opacity: .78; }
.attention-zone-group small { color: inherit; font-size: 10px; font-weight: 700; opacity: .78; }
.attention-zone-chevron { display: grid; place-items: center; width: 17px; height: 17px; color: currentColor; border-radius: 50%; }
.attention-zone-chevron .attention-icon { width: 13px; height: 13px; transition: transform 150ms ease; }
.attention-zone-chevron.is-collapsed .attention-icon { transform: rotate(-90deg); }
/* Risk list: warm warning colors for every flagged person, independent of geography. */
#attentionSection .attention-zone-group button { background: #f7c0c5; color: #111; }
#attentionSection .attention-zone-group button:hover { background: #efa5ad; }
#attentionSection .attention-zone-group.warn button { background: #f7d0c5; }
#attentionSection .attention-zone-group.warn button:hover { background: #efbaac; }
#attentionSection .attention-zone-group th { border-color: #b86e76 !important; }
#attentionSection .attention-data-row > * { background: #fce5e8; color: #111; font-size: 14px; font-weight: 700; }
#attentionSection .attention-data-row.is-watch > * { background: #fff0e9; }
#attentionSection .attention-data-row:hover > * { background: #f8d2d7; }
#attentionSection .attention-data-row.is-selected > * { background: #f4c3ca; box-shadow: inset 0 1px #aa3344, inset 0 -1px #aa3344; }
#attentionSection .attention-table th, #attentionSection .attention-table td { text-align: center; padding: 12px 10px; border-color: #bf9c9f; }
#attentionSection .attention-table thead th { background: #f2d6d9; color: #111; font-size: 15px; font-weight: 800; white-space: normal; }
#attentionSection .attention-table-scroll { border: 2px solid #a85460; }
#attentionSection .attention-table .attention-reason, #attentionSection .attention-table .attention-action { color: #111; line-height: 1.45; }
#attentionSection .attention-reason small { font-size: 12px; color: #59393e; }
#attentionSection .attention-data-row td:nth-child(5), #attentionSection .attention-change.bad { color: #b51224; font-weight: 800; }
#attentionSection .attention-zone-group button { padding: 10px 16px; justify-content: center; gap: 24px; flex-wrap: wrap; }
#attentionSection .attention-zone-group b { font-size: 16px; }
#attentionSection .attention-zone-group em, #attentionSection .attention-zone-group small { font-size: 13px; opacity: 1; }
#attentionSection .attention-group button { min-height: 48px; text-align: center; }
#attentionSection .attention-group-main { justify-content: center; }
#attentionSection .attention-group b { font-size: 17px; }
#attentionSection .attention-group small, #attentionSection .attention-group em { font-size: 13px; }
#attentionSection .attention-head h2 { font-size: 26px; font-weight: 800; }
#attentionSection .attention-view, #attentionSection .attention-drill-controls button { font-size: 13px; min-height: 36px; }
#attentionSection .attention-insight { padding: 18px; gap: 16px; border: 2px solid #c53346; background: #ffe2e6; flex-wrap: wrap; }
#attentionSection .attention-insight div { display: grid; gap: 7px; flex: 1 1 260px; }
#attentionSection .attention-insight b { font-size: 20px; color: #991426; }
#attentionSection .attention-insight p { font-size: 15px; line-height: 1.45; font-weight: 700; }
#attentionSection .attention-insight > span { font-size: 32px; color: #ae1428; }
#attentionSection .attention-insight > .attention-icon { width: 32px; height: 32px; }
/* Keep the red risk language, with the original compact table rhythm. */
#attentionSection .attention-table-tools { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 8px 0; }
#attentionSection .attention-filter-actions { display: flex; align-items: end; gap: 8px; }
#attentionSection .attention-state-filter { display: grid; gap: 3px; color: #111; font-size: 10px; font-weight: 750; }
#attentionSection .attention-state-filter select { min-width: 138px; height: 30px; padding: 4px 25px 4px 8px; color: #111; background: #fff; border: 1px solid #a85460; border-radius: 6px; font: inherit; font-size: 11px; font-weight: 650; outline: none; }
#attentionSection .attention-state-filter select:focus { border-color: #b51224; box-shadow: 0 0 0 3px rgba(181,18,36,.14); }
#attentionSection .attention-guide-open { min-height: 38px; padding: 8px 13px; color: #fff; background: #0b5ea8; border: 1px solid #064b88; border-radius: 7px; box-shadow: 0 2px 5px rgba(11,94,168,.22); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
#attentionSection .attention-guide-open:hover { color: #fff; background: #084b88; border-color: #073e72; }
#attentionSection .attention-guide-open:focus-visible { outline: 3px solid rgba(11,94,168,.3); outline-offset: 2px; }
#attentionSection .attention-drill-controls { margin: 0; }
#attentionSection .attention-drill-controls button { min-height: 30px; padding: 4px 9px; font-size: 11px; }
#attentionSection .attention-data-row > * { font-size: 11.5px; font-weight: 650; }
#attentionSection .attention-table th, #attentionSection .attention-table td { padding: 8px 9px; text-align: left; }
#attentionSection .attention-table thead th { font-size: 11px; font-weight: 780; text-align: center; }
#attentionSection .attention-table .num, #attentionSection .attention-rank { text-align: center !important; }
#attentionSection .attention-table .attention-reason, #attentionSection .attention-table .attention-action { line-height: 1.3; }
#attentionSection .attention-reason small { font-size: 9.5px; }
#attentionSection .attention-zone-group button { min-height: 32px; padding: 5px 12px 5px 38px; justify-content: space-between; gap: 0; flex-wrap: nowrap; }
#attentionSection .attention-zone-group b { font-size: 11.5px; }
#attentionSection .attention-zone-group em, #attentionSection .attention-zone-group small { font-size: 10px; }
#attentionSection .attention-group button { min-height: 36px; text-align: left; }
#attentionSection .attention-group-main { justify-content: flex-start; }
#attentionSection .attention-group b { font-size: 12px; }
#attentionSection .attention-group small, #attentionSection .attention-group em { font-size: 10px; }
#attentionSection .attention-head h2 { font-size: 21px; }
#attentionSection .attention-view { min-height: auto; padding: 5px 8px; font-size: 10.5px; }
#attentionSection .attention-insight { padding: 9px 11px; gap: 10px; border-width: 1px; flex-wrap: nowrap; }
#attentionSection .attention-insight div { display: flex; align-items: baseline; gap: 7px; flex: 1; }
#attentionSection .attention-insight b { font-size: 11.5px; }
#attentionSection .attention-insight p { font-size: 11px; line-height: 1.3; font-weight: 500; }
#attentionSection .attention-insight > span { font-size: 18px; }
#attentionSection .attention-insight > .attention-icon { width: 22px; height: 22px; }
/* Risk color is based on priority and August achievement, never geography. */
#attentionSection .attention-zone-group.critical button { background: #f5bcc2; color: #111; }
#attentionSection .attention-zone-group.critical button:hover { background: #efabb3; }
#attentionSection .attention-zone-group.critical th { border-color: #b74a58 !important; }
#attentionSection .attention-zone-group.warn button { background: #ffd99a; color: #111; }
#attentionSection .attention-zone-group.warn button:hover { background: #ffca75; }
#attentionSection .attention-zone-group.warn th { border-color: #d38b28 !important; }
#attentionSection .attention-data-row.is-critical.risk-critical-high > * { background: #f7b8bf; }
#attentionSection .attention-data-row.is-critical.risk-critical-medium > * { background: #fbd2d6; }
#attentionSection .attention-data-row.is-critical.risk-critical-low > * { background: #fee8ea; }
#attentionSection .attention-data-row.is-watch.risk-watch-high > * { background: #ffe1a6; }
#attentionSection .attention-data-row.is-watch.risk-watch-medium > * { background: #ffedc7; }
#attentionSection .attention-data-row.is-watch.risk-watch-low > * { background: #fff7df; }
#attentionSection .attention-data-row.is-critical:hover > * { background: #f5c0c5; }
#attentionSection .attention-data-row.is-watch:hover > * { background: #ffe5ae; }
#attentionSection .attention-data-row.is-watch td:nth-child(5),
#attentionSection .attention-data-row.is-watch .attention-change.bad { color: #9a5b00; font-weight: 800; }
#attentionSection .attention-data-row.is-selected > * { background: #f2bbc2; box-shadow: inset 0 1px #aa3344, inset 0 -1px #aa3344; }
/* A state is a complete block: labelled start, then a clear closing rule. */
#attentionSection .attention-zone-group.critical th { border-top: 3px solid #8f1d2c !important; border-bottom: 2px solid #b74a58 !important; }
#attentionSection .attention-zone-group.warn th { border-top: 3px solid #9a5b00 !important; border-bottom: 2px solid #d38b28 !important; }
#attentionSection .attention-zone-group b::before { content: "STATE"; display: inline-block; margin-right: 7px; padding: 1px 4px; color: #111; background: rgba(255,255,255,.48); border: 1px solid rgba(17,17,17,.18); border-radius: 3px; font-size: 8px; font-weight: 800; letter-spacing: .06em; vertical-align: 1px; }
#attentionSection .attention-data-row.is-state-start > * { border-top: 1px solid rgba(17,17,17,.18); }
#attentionSection .attention-data-row.is-critical.is-state-end > * { border-bottom: 4px solid #b74a58 !important; }
#attentionSection .attention-data-row.is-watch.is-state-end > * { border-bottom: 4px solid #d38b28 !important; }
/* State identity lives only in the full-width State header; risk stays on the SM rows. */
#attentionSection .attention-zone-group.zone-ka2 th { border-color: #6482a3 !important; }
#attentionSection .attention-zone-group.zone-ka2 button { color: #1e3a5f; background: #d9e7f7; }
#attentionSection .attention-zone-group.zone-ka2 button:hover { background: #cbdcf0; }
#attentionSection .attention-zone-group.zone-ka2 b { color: #1e3a5f; }
#attentionSection .attention-zone-group.zone-kerala th { border-color: #896fa2 !important; }
#attentionSection .attention-zone-group.zone-kerala button { color: #523463; background: #e8e1f0; }
#attentionSection .attention-zone-group.zone-kerala button:hover { background: #ddd3e9; }
#attentionSection .attention-zone-group.zone-kerala b { color: #523463; }
#attentionSection .attention-zone-group.zone-tamil-nadu th { border-color: #4c8b86 !important; }
#attentionSection .attention-zone-group.zone-tamil-nadu button { color: #174d49; background: #d7ece9; }
#attentionSection .attention-zone-group.zone-tamil-nadu button:hover { background: #c9e1dd; }
#attentionSection .attention-zone-group.zone-tamil-nadu b { color: #174d49; }
#attentionSection .attention-zone-group.zone-other th { border-color: #64748b !important; }
#attentionSection .attention-zone-group.zone-other button { color: #334155; background: #e2e8f0; }
#attentionSection .attention-zone-group.zone-other button:hover { background: #d5dee9; }
@media (max-width: 640px) { #attentionSection .attention-table-tools, #attentionSection .attention-filter-actions { align-items: stretch; flex-direction: column; } #attentionSection .attention-state-filter select { width: 100%; } }
.attention-empty { padding: 24px !important; color: #52657d; text-align: center !important; }
.attention-rules { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding: 9px 10px; color: #263e5b; background: #f4f8fd; border: 1px solid #bdccdd; border-radius: 8px; }
.attention-rules > .attention-icon { width: 22px; height: 22px; color: #1597e5; }
.attention-rules > div { display: grid; gap: 6px; min-width: 0; }
.attention-rules > div > b { font-size: 10.5px; }
.attention-rules > div > b span { color: #687b92; font-weight: 600; }
.attention-rules > div > div { display: flex; gap: 8px; flex-wrap: wrap; }
.attention-rules div div > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; background: #fff; border: 1px solid #c5d2e1; border-radius: 6px; color: #415872; font-size: 9.5px; }
.attention-rules i { display: grid; place-items: center; width: 15px; height: 15px; color: #fff; border-radius: 50%; font-style: normal; font-weight: 800; }
.attention-rules .critical i { background: #ef4444; }
.attention-rules .watch i { background: #f59e0b; }
.attention-rules .critical strong { color: #c5222d; }
.attention-rules .watch strong { color: #b66600; }
.attention-guide-drawer .attention-drawer-body { gap: 10px; }
.attention-guide-drawer .attention-drawer-body section { padding: 12px; }
.attention-guide-intro { background: #edf6ff !important; border-color: #a9cbed !important; }
.attention-guide-intro h4 .attention-icon { color: #1677cc; }
.attention-guide-watch { background: #fff8e6 !important; border-color: #efd38b !important; }
.attention-guide-watch h4 .attention-icon { color: #ad7100; }
.attention-guide-other { background: #f6f8fb !important; border-color: #c5d1df !important; }
.attention-guide-list { display: grid; gap: 7px; margin: 9px 0 0; padding-left: 20px; }
.attention-guide-list li { color: #263e5b; font-size: 11px; line-height: 1.35; }
.attention-guide-list b { display: block; color: #152d4c; }
.attention-guide-list span { color: #536b86; font-variant-numeric: tabular-nums; }
.attention-guide-other ul { display: grid; gap: 4px; margin: 8px 0; padding-left: 18px; color: #405875; font-size: 11px; line-height: 1.35; }
.attention-drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(4,18,36,.42); backdrop-filter: blur(1.5px); }
/* A guide or View drawer owns the scroll until it is closed. Its own
   overflow-y rule below remains active, so only the background is frozen. */
html.attention-modal-open,
body.attention-modal-open { overflow: hidden; overscroll-behavior: none; }
html.attention-modal-open { scrollbar-gutter: stable; }
.attention-drawer {
  position: fixed; z-index: 91; top: 0; right: 0; width: min(430px, 94vw); height: 100vh; overflow-y: auto;
  color: var(--att-navy); background: #f7faff; border-left: 1px solid #8ea6c2; box-shadow: -18px 0 50px rgba(4,18,36,.28);
  animation: attention-drawer-in 190ms cubic-bezier(.2,.9,.25,1) both;
  scrollbar-color: #9ab0c7 #edf3f9; scrollbar-width: thin;
}
@keyframes attention-drawer-in { from { transform: translateX(32px); opacity: .7; box-shadow: 0 0 0 rgba(4,18,36,0); } to { transform: translateX(0); opacity: 1; box-shadow: -18px 0 50px rgba(4,18,36,.28); } }
.attention-drawer > header { display: flex; justify-content: space-between; gap: 12px; padding: 17px 18px; border-bottom: 1px solid #b9c8d9; background: #fff; }
.attention-drawer header h3 { margin: 0 0 6px; color: var(--att-navy); font-size: 21px; font-weight: 800; letter-spacing: -.015em; }
.attention-drawer header p { display: flex; align-items: center; gap: 8px; margin: 0; color: #4b6079; font-size: 11.5px; }
.attention-drawer header p b { color: var(--att-navy); }
.attention-drawer header .tag { margin-left: 4px; }
.attention-drawer header button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border: 0; border-radius: 7px; color: #263e5b; background: transparent; cursor: pointer; }
.attention-drawer header button:hover { color: #fff; background: var(--att-red); }
.attention-drawer header button .attention-icon { width: 21px; height: 21px; }
.attention-drawer-body { display: grid; gap: 11px; padding: 13px; }
.attention-drawer-body section { padding: 13px; border: 1px solid #b9c9db; border-radius: 9px; background: #fff; }
.attention-drawer-body h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; color: var(--att-navy); font-size: 12.5px; font-weight: 800; }
.attention-drawer-body h4 .attention-icon { width: 18px; height: 18px; color: #1597e5; }
.attention-drawer-body p { color: #2e4662; font-size: 11.5px; line-height: 1.48; }
.attention-why-card { display: flex; align-items: flex-start; gap: 11px; background: #fff1f2 !important; border-color: #f2b5bb !important; }
.attention-drawer-card-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #fff; background: #ef4444; border-radius: 50%; }
.attention-drawer-card-icon .attention-icon { width: 25px; height: 25px; }
.attention-why-card h4 { margin-bottom: 4px; color: #b91c1c; }
.attention-why-card p { color: #3d2b35; }
.attention-history { display: grid; gap: 11px; }
.attention-history-row { display: grid; grid-template-columns: 72px minmax(0,1fr) 48px; align-items: center; gap: 8px; color: #354d69; font-size: 11px; }
.attention-history-row b { text-align: right; color: var(--att-navy); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.attention-bar { height: 14px; overflow: hidden; border-radius: 5px; background: #e7eef6; box-shadow: inset 0 0 0 1px #d8e2ed; }
.attention-bar span { display: block; height: 100%; min-width: 3px; border-radius: inherit; }
.attention-bar .previous { background: #1697e8; }
.attention-bar .latest { background: #fb5965; }
.attention-trend-grid { display: grid; grid-template-columns: 1.25fr 1fr; margin-top: 12px; border: 1px solid #f0d7da; border-radius: 7px; overflow: hidden; }
.attention-trend-grid > div { display: grid; gap: 3px; padding: 9px; background: #fff7f7; }
.attention-trend-grid > div + div { border-left: 1px solid #f0d7da; }
.attention-trend-grid span { color: #697a90; font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.attention-trend-grid b { font-size: 10.5px; font-variant-numeric: tabular-nums; }
.attention-flag-card h4 .attention-icon { color: #ef3340; }
.attention-trigger { margin: 0; border: 1px solid #c9d5e2; border-radius: 6px; overflow: hidden; }
.attention-trigger div { display: grid; grid-template-columns: 112px 1fr; border-bottom: 1px solid #d8e1eb; }
.attention-trigger div:last-child { border-bottom: 0; }
.attention-trigger dt, .attention-trigger dd { padding: 8px 9px; font-size: 10.5px; line-height: 1.35; }
.attention-trigger dt { color: #263e5b; background: #eff5fb; font-weight: 750; }
.attention-trigger dd { margin: 0; color: #344b66; border-left: 1px solid #d8e1eb; font-weight: 600; font-variant-numeric: tabular-nums; }
.attention-action-card { background: #fff9e8 !important; border-color: #efd79a !important; }
.attention-action-card h4 .attention-icon { color: #f59e0b; }
.attention-action-card p { margin: 0; color: #4e3a16; font-weight: 650; }
@media (max-width: 900px) {
  .attention-head { grid-template-columns: 1fr; }
  .attention-history-note { max-width: 430px; }
  .attention-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .attention-summary { grid-template-columns: 1fr; }
  .attention-group button { grid-template-columns: 1fr; gap: 4px; }
  .attention-group small { padding-left: 30px; }
  .attention-insight div { display: grid; gap: 2px; }
  .attention-zone-group button { padding-left: 12px; }
  .attention-zone-group small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .attention-drawer { animation: none; } }
.risk-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  background: var(--surface-border);
}
@media (max-width: 1100px) {
  .sm-risk-trend-card .sm-risk-rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sm-risk-trend-card .sm-risk-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .sm-risk-trend-card .sm-risk-rates { grid-template-columns: minmax(0, 1fr); }
}
.risk-item {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--page);
}
.rk-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rk-name b { font-size: 13px; font-weight: 580; white-space: nowrap;
             overflow: hidden; text-overflow: ellipsis; }
.rk-name span { font-size: 11px; color: var(--ink-3); }
.risk-msg { flex-basis: 100%; font-size: 11.5px; color: var(--ink-3); }
/* Anmol: Team activity / Executive contribution text was reading too
   faint -- scoped to the attention drawer only (People & Risk's own
   .risk-item usage elsewhere is untouched). */
.attention-drawer-body .risk-msg, .attention-drawer-body .rk-name b {
  color: var(--ink); font-weight: 700;
}
/* Executive action plan -- collapsible toggle button inside the drawer.
   Reuses .attention-chevron's rotate behavior but re-colors it for a
   white card background instead of the table header's dark/colored one. */
.attention-team-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; text-align: left; color: var(--ink); font-weight: 700;
}
.attention-team-toggle .attention-chevron {
  background: color-mix(in srgb, var(--att-navy) 12%, transparent);
  border-color: color-mix(in srgb, var(--att-navy) 25%, transparent);
  color: var(--att-navy);
}
.attention-team-toggle em { font-weight: 500; color: var(--ink-3); margin-left: auto; }
.attention-team-plan .risk-grid { margin-top: 11px; }
/* When the Executive plan is open, the drawer becomes a focused reading
   surface: supporting context recedes while the employee-level evidence
   remains sharp and visibly selected. */
.attention-drawer.attention-team-is-open .attention-drawer-body > section:not(.attention-team-plan) {
  filter: blur(2px); opacity: .34; pointer-events: none; user-select: none;
  transition: filter 160ms ease, opacity 160ms ease;
}
.attention-drawer.attention-team-is-open .attention-team-plan {
  position: relative; z-index: 1; border-color: #1677c8; background: #f7fbff;
  box-shadow: 0 10px 26px rgba(21, 119, 229, .22), 0 2px 7px rgba(4, 35, 72, .12);
}
.attention-drawer.attention-team-is-open .attention-team-toggle {
  color: #063f78;
}
.attention-drawer.attention-team-is-open .attention-team-plan .risk-item {
  border-color: #9dc9f0; background: #fff;
}
/* Expand motion. The drawer re-renders its whole section on every toggle,
   so these are mount animations, not transitions -- the same technique
   .attention-drawer already uses for its own slide-in. Collapse stays
   instant by design: on that render the markup is already gone, so there
   is nothing left to animate out. */
.attention-team-plan .risk-grid {
  animation: team-plan-open 160ms cubic-bezier(.23, 1, .32, 1) both;
}
.attention-team-plan .risk-item {
  animation: team-plan-item 240ms cubic-bezier(.23, 1, .32, 1) both;
}
.attention-team-plan .risk-item:nth-child(1) { animation-delay: 40ms; }
.attention-team-plan .risk-item:nth-child(2) { animation-delay: 70ms; }
.attention-team-plan .risk-item:nth-child(3) { animation-delay: 100ms; }
.attention-team-plan .risk-item:nth-child(4) { animation-delay: 130ms; }
.attention-team-plan .risk-item:nth-child(5) { animation-delay: 160ms; }
/* Cap the cascade so a large team's last card never feels late. */
.attention-team-plan .risk-item:nth-child(n + 6) { animation-delay: 185ms; }
.attention-team-toggle[aria-expanded="true"] .attention-chevron .attention-icon {
  animation: team-chevron-open 220ms cubic-bezier(.23, 1, .32, 1) both;
}
@keyframes team-plan-open { from { opacity: 0; transform: translateY(-4px); } }
@keyframes team-plan-item { from { opacity: 0; transform: translateY(6px); } }
@keyframes team-chevron-open { from { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) {
  .attention-team-plan .risk-grid,
  .attention-team-plan .risk-item,
  .attention-team-toggle[aria-expanded="true"] .attention-chevron .attention-icon {
    animation: none;
  }
}
.tag { font-size: 9.5px; font-weight: 660; letter-spacing: .04em; padding: 3px 8px;
       border-radius: 100px; white-space: nowrap; }
.tag.critical { color: var(--critical); background: color-mix(in srgb, var(--critical) 13%, transparent); }
.tag.serious  { color: var(--serious);  background: color-mix(in srgb, var(--serious) 15%, transparent); }
.tag.warn     { color: var(--warn);     background: color-mix(in srgb, var(--warn) 16%, transparent); }
.tag.good     { color: var(--good-ink); background: color-mix(in srgb, var(--good) 15%, transparent); }
.ghost-btn {
  font: inherit; font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; transition: color .18s, border-color .18s;
}
.ghost-btn:hover { color: var(--ink); border-color: var(--base); }
.ghost-btn.sm { padding: 3px 9px; font-size: 12.5px; }

.seg { display: inline-flex; background: var(--page); border: 1px solid var(--line);
       border-radius: 100px; padding: 2px; gap: 2px; }
.seg button {
  font: inherit; font-size: 12px; font-weight: 560; color: var(--ink-3);
  background: none; border: 0; padding: 5px 12px; border-radius: 100px;
  cursor: pointer; white-space: nowrap; transition: color .18s, background .22s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button.on { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.15); }

.empty { color: var(--ink-3); font-size: 13px; padding: 18px 0; text-align: center; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 18px 20px 34px;
  font-size: 11.5px; color: var(--ink-3); display: flex; gap: 7px; flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .topbar, .seg, .ghost-btn, .icon-btn { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* ── Performance Details drill-down table ────────────────────
   Isolated component (.pd- prefix) below the Target KPI/Till-Date/Key
   Signal cards. Light-pastel MIS palette per Anmol's reference mockup --
   deliberately not theme-aware (no dark-mode variant) since the whole
   point of this table is to match that specific light design; every
   other card on the page keeps following the normal --token system. */
.pd-head { flex-wrap: wrap; gap: 10px; }
.pd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-tools .ctl { min-width: 0; }
.pd-tools .ctl input { width: 200px; }

.pd-crumbrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.pd-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pd-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--mtd); background: color-mix(in srgb, var(--mtd) 12%, transparent);
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
.pd-showing {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: auto;
  background: var(--page); border: 1px solid var(--line); padding: 3px 9px; border-radius: 100px;
  white-space: nowrap;
}
.pd-note { font-size: 11.5px; color: var(--ink-3); margin: 0 0 8px; }
.pd-foot { font-size: 11px; color: var(--ink-3); margin: 8px 0 0; }

.pd-scroll {
  overflow-x: auto; overflow-y: visible; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, var(--line)); border-radius: 10px;
  margin: 0; padding: 0; max-height: 70vh; overflow-y: auto;
}
table.pd-table {
  width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px;
}
table.pd-table th {
  padding: 7px 8px; text-align: center; white-space: nowrap; line-height: 1.25;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, var(--line)); border-right: 1px solid color-mix(in srgb, var(--ink) 15%, var(--line)); box-sizing: border-box;
  font-size: 10.5px; font-weight: 700; color: #15254A; text-transform: none;
  position: sticky; z-index: 3; background: #F4F7FB;
}
/* Row 2's sticky offset must exactly equal row 1's real rendered height,
   or the two sticky rows either leave a gap (body peeks through) or
   overlap -- forcing row 1 to a fixed single-line height (nowrap, no
   <br> in its labels) makes that height deterministic instead of a
   guess. 7px padding * 2 + 10.5px font * 1.25 line-height ~= 27px. */
table.pd-table thead tr:first-child th { top: 0; height: 28px; }
table.pd-table thead tr:last-child th { top: 28px; font-size: 10px; font-weight: 650; }
table.pd-table td {
  padding: 7px 8px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: #17243D;
}
/* Week-mode details: keep cell lines subtle, with a slightly clearer
   divider between metric groups. Avoid a boxed-in look on this wide table. */
.pd-week-scroll { border: 1.5px solid color-mix(in srgb, var(--ink) 40%, var(--line)); }
.pd-week-scroll table.pd-table th,
.pd-week-scroll table.pd-table td { border-color: var(--line); }
.pd-week-scroll table.pd-table th.pd-gend,
.pd-week-scroll table.pd-table td.pd-gend { border-right: 1px solid color-mix(in srgb, var(--ink) 35%, var(--line)) !important; }
table.pd-week-table { width: 100%; min-width: 1006px; table-layout: fixed; }
table.pd-week-table th, table.pd-week-table td { padding: 4px 5px; font-size: 9.8px; }
table.pd-week-table thead tr:last-child th { white-space: normal; line-height: 1.15; padding: 5px 4px; }
table.pd-week-table th.pd-wg-gapproj { background: var(--indigo-soft); }
table.pd-week-table th.pd-wg-perf-gap { background: var(--bad-soft); }
table.pd-table tbody tr:nth-child(even) td { background: #FBFCFE; }
table.pd-table tbody tr.drill { cursor: pointer; }
table.pd-table tbody tr.drill td, table.pd-table tbody tr.drill .pd-sticky { transition: background-color 120ms ease; }
table.pd-table tbody tr.drill:hover td { background: #F1F7FF; }
table.pd-table .empty { text-align: center; color: var(--ink-3); padding: 18px 8px; }

/* sticky hierarchy column(s) */
table.pd-table .pd-sticky {
  position: sticky; left: 0; z-index: 2; text-align: center; background: #fff;
  min-width: 170px; max-width: 220px; white-space: normal;
}
table.pd-table th.pd-sticky { z-index: 4; background: #F4F7FB; }
table.pd-table tbody tr:nth-child(even) .pd-sticky { background: #FBFCFE; }
table.pd-table tbody tr.drill:hover .pd-sticky { background: #F1F7FF; }
table.pd-table .pd-name { font-weight: 560; color: var(--ink); }

/* parent/group + total rows */
table.pd-table tr.pd-parent td { font-weight: 700; }
/* Anmol: Executive-level rows (no drill, so no .pd-parent class at all)
   read too light next to the bold SM/RSM parent rows above them --
   bigger, darker, bold, same as those. */
table.pd-table tbody tr:not(.pd-parent):not(.pd-total) td { font-weight: 650; color: #0B1526; font-size: 1.05em; }
table.pd-table tr.pd-total td, table.pd-table tr.pd-total .pd-sticky {
  background: #DCEEFF !important; font-weight: 700; border-top: 2px solid color-mix(in srgb, var(--mtd) 35%, var(--line));
}
table.pd-table .pd-go { color: var(--ink-3); font-size: 13px; width: 20px; }
table.pd-table tr.drill:hover .pd-go { color: var(--mtd); }

/* header group pastels */
table.pd-table th.pd-g-live   { background: #EEF2F7; }
table.pd-table th.pd-g-target { background: #DCEEFF; }
table.pd-table th.pd-g-login  { background: #E8F8EE; }
table.pd-table th.pd-g-disb   { background: #FFF6DA; }
table.pd-table th.pd-g-ach    { background: #EAF3FF; }
table.pd-table th.pd-g-golm   { background: #E5F8EC; }
table.pd-table th.pd-g-td     { background: #EEEAFB; }
table.pd-table th.pd-g-gap    { background: #FDEBEE; }
table.pd-table th.pd-g-proj   { background: #F1ECFF; }
table.pd-table th.pd-g-lastmo { background: #EEF2F7; }
table.pd-table th.pd-g-conf   { background: #F3F5F8; }

/* conditional heatmap on body cells (Target Achievement / GOLM) */
table.pd-table td.pd-good { background: var(--good-soft); color: var(--good-ink); font-weight: 650; }
/* Anmol: negative numbers (e.g. Ticket Size Growth %) stand out red + bold. */
table.pd-table td.pd-neg { color: var(--critical); font-weight: 700; }
/* the shared table.perf styling force-left-aligns each table's own
   2nd column (table.perf th:nth-child(2)/td:nth-child(2)) -- harmless
   there (that's the name column), but it also matches this table's
   2nd column (Live Execs, a number). Anmol wants every cell centered,
   so this settles it regardless of column position. */
table.pd-table th, table.pd-table td { text-align: center !important; }
/* Anmol: full row red (not just one cell) when GOLM% de-grows or
   Projection% is under 70% -- left to right, whole line. */
table.pd-table tr.pd-row-bad td, table.pd-table tr.pd-row-bad .pd-sticky {
  background: color-mix(in srgb, var(--critical) 11%, var(--surface)) !important;
}
table.pd-table tr.pd-row-bad.drill:hover td, table.pd-table tr.pd-row-bad.drill:hover .pd-sticky {
  background: color-mix(in srgb, var(--critical) 18%, var(--surface)) !important;
}

/* stronger divider at the boundary between metric groups (Live Executives |
   Disbursement Target | Login | Disbursement | Achieved % | GOLM %) -- the
   uniform 1px grid between every cell wasn't enough to separate the groups
   at a glance, this is a visibly darker/thicker line on top of it. */
table.pd-table th.pd-gend, table.pd-table td.pd-gend {
  border-right: 2px solid color-mix(in srgb, var(--ink) 35%, var(--line)) !important;
}

/* Week-mode table: no box around each individual cell. Keep only the
   table outline, row separators, and the marked metric-group boundaries. */
.pd-week-scroll table.pd-table th,
.pd-week-scroll table.pd-table td { border-right: 0 !important; }
.pd-week-scroll table.pd-table th.pd-gend,
.pd-week-scroll table.pd-table td.pd-gend { border-right: 1px solid color-mix(in srgb, var(--ink) 35%, var(--line)) !important; }


table.pd-table td.pd-warn { background: var(--warn-soft); color: var(--warn); font-weight: 650; }
table.pd-table td.pd-bad  { background: var(--bad-soft); color: var(--critical); font-weight: 650; }

@media (max-width: 860px) {
  .pd-showing { margin-left: 0; }
  .pd-tools .ctl input { width: 150px; }
}

/* ── Week on Week target vs achievement ───────────────────── */
/* Approved reference palette (Anmol): target blue #2878E8, achieved
   green #2CBF73, achievement line orange #F58220 -- now held in the
   --chart-* tokens at the top of this file. Same colours, one place to
   change them; still NOT remapped onto --mtd/--good/--warn. */
.wow-head { align-items: flex-start; gap: 14px; }
.wow-head > div:first-child { min-width: 250px; }
.wow-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.wow-guide-open { min-height: 36px; padding: 7px 12px; border: 1px solid #145c9e; border-radius: 7px; color: #fff; background: #0b5ea8; box-shadow: 0 2px 5px rgba(11,94,168,.22); font: inherit; font-size: 12px; font-weight: 760; cursor: pointer; }
.wow-guide-open:hover { background: #084b88; border-color: #073e72; }
.wow-guide-open:focus-visible { outline: 3px solid rgba(11,94,168,.3); outline-offset: 2px; }
.wow-weeks { flex-wrap: wrap; }
.wow-weeks button { padding: 5px 9px; font-size: 11.5px; }
.wow-weeks button.on { color: #fff; background: var(--chart-target); box-shadow: none; }
/* Anmol: mark completed weeks fully green, the in-progress week half
   green -- a plain literal half-fill, not scaled to elapsed days. */
.wow-weeks button.complete:not(.on) {
  background: color-mix(in srgb, var(--good) 20%, var(--surface)); color: var(--good-ink); font-weight: 650;
}
.wow-weeks button.in-progress:not(.on) {
  background: linear-gradient(to right, color-mix(in srgb, var(--good) 20%, var(--surface)) 50%, transparent 50%);
  color: var(--ink); font-weight: 650;
}
.wow-metric button { padding: 5px 9px; font-size: 11.5px; }
.wow-metric button:disabled { cursor: not-allowed; opacity: .56; }
.wow-metric button.on:disabled { color: var(--ink); opacity: 1; }
.wow-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 14px; align-items: stretch;
}
.wow-card { border: 1.5px solid var(--surface-border); box-shadow: none; }
.wow-chart-panel, .wow-summary {
  min-width: 0; padding: 14px; border: 1.5px solid var(--surface-border); border-radius: var(--r-sm);
  background: var(--page); box-shadow: none; transition: box-shadow 180ms ease;
}
.wow-chart-panel {
  display: flex; flex-direction: column;
}
.wow-chart-panel .wow-chart {
  margin-block: 0;
}
.wow-chart-panel:hover, .wow-summary:hover {
  box-shadow: none;
  border-color: var(--surface-border);
}
.wow-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 4px; }
.wow-panel-head h3, .wow-summary h3 { font-size: 14px; font-weight: 750; color: var(--ink); }
.wow-summary h3 { margin: 0 2px 8px; }
.wow-legend { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; }
.wow-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.wow-legend-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.wow-legend-target { background: var(--chart-target); }
.wow-legend-achieved { background: var(--chart-achieved); }
.wow-legend-line { display: inline-block; width: 14px; height: 0 !important; border-top: 2.5px dashed var(--chart-rate); border-radius: 0 !important; }
.wow-chart { display: block; width: 100%; height: auto; overflow: visible; background: transparent; }
.wow-gridline { stroke: var(--grid); stroke-width: 1; }
.wow-axis-label { fill: var(--ink-3); font: 11.5px var(--sans); }
.wow-axis-right { fill: var(--chart-rate); }
.wow-chart-week { cursor: pointer; outline: none; }
.wow-chart-hit { fill: transparent; pointer-events: all; }
.wow-chart-week:focus .wow-chart-hit { stroke: var(--chart-target); stroke-width: 2; }
.wow-chart-highlight { fill: var(--chart-sel); pointer-events: none; }
.wow-target-bar { fill: var(--chart-target); pointer-events: none; }
.wow-chart-week:hover .wow-target-bar, .wow-chart-week:hover .wow-achieved-bar { filter: brightness(1.08); }
.wow-target-bar, .wow-achieved-bar { transition: filter 140ms ease; }
.wow-achieved-bar { fill: var(--chart-achieved); pointer-events: none; }
.wow-bar-label { fill: var(--ink); font: 800 14px var(--sans); pointer-events: none; }
.wow-ach-line { fill: none; stroke: var(--chart-rate); stroke-width: 2.5; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.wow-ach-dot { fill: var(--surface); stroke: var(--chart-rate); stroke-width: 2.5; pointer-events: none; }
.wow-ach-label {
  fill: var(--chart-rate); font: 800 15px var(--sans); pointer-events: none;
  paint-order: stroke; stroke: var(--page); stroke-width: 3.5px; stroke-linejoin: round;
}
.wow-week-label { fill: var(--ink); font: 800 12.5px var(--sans); pointer-events: none; }
.wow-week-sub { fill: var(--ink-3); font: 11px var(--sans); pointer-events: none; }
.wow-table-scroll { overflow-x: auto; }
.wow-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: auto; }
.wow-table th, .wow-table td { padding: 12px 8px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.wow-table thead th {
  color: var(--mtd); font-size: 11.5px; font-weight: 700; text-transform: none; letter-spacing: normal;
  background: color-mix(in srgb, var(--mtd) 9%, var(--page)); border-bottom: 2px solid color-mix(in srgb, var(--mtd) 30%, var(--line));
}
.wow-table tbody tr { cursor: pointer; }
.wow-table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--mtd) 3%, var(--surface)); }
.wow-table tbody tr:hover > * { background: color-mix(in srgb, var(--mtd) 6%, var(--surface)); }
.wow-table tbody tr.selected > * { background: color-mix(in srgb, var(--mtd) 11%, var(--surface)); }
.wow-table tbody tr:focus-visible { outline: 2px solid var(--mtd); outline-offset: -2px; }
.wow-table tbody th, .wow-table tfoot th { text-align: left; font-weight: 650; }
.wow-table thead th:first-child, .wow-table tbody th { text-align: left; }
.wow-table tbody th { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; }
.wow-week-date { font-weight: 500; color: var(--ink-3); font-size: 10.5px; white-space: nowrap; }
.wow-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.wow-table td.wow-performance-num.good, .wow-table td.wow-gap-num.good { color: var(--good-ink); }
.wow-table td.wow-performance-num.warn { color: var(--warn); }
.wow-table td.wow-performance-num.bad, .wow-table td.wow-gap-num.bad { color: var(--critical); }
.wow-table td.wow-outlook { min-width: 132px; text-align: left; white-space: normal; }
.wow-outlook strong, .wow-outlook span { display: block; }
.wow-outlook strong { font-size: 11px; font-weight: 700; line-height: 1.2; }
.wow-outlook span { margin-top: 2px; color: var(--ink-3); font-size: 10.5px; line-height: 1.2; }
.wow-outlook strong.good { color: var(--good-ink); }
.wow-outlook strong.warn { color: var(--warn); }
.wow-outlook strong.bad { color: var(--critical); }
.wow-outlook strong.neutral { color: var(--ink-2); }
.wow-table tfoot > tr > * {
  padding-top: 9px; background: #DCEEFF !important; border-top: 1px solid #B8D2F0;
  border-bottom: 0; font-weight: 700;
}
.wow-pct, .wow-vs {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 100px;
  padding: 2px 7px; font-size: 11px; font-weight: 750; white-space: nowrap;
}
.wow-pct.neutral { color: var(--ink-2); background: var(--page); }
.wow-pct.good { color: var(--good-ink); background: var(--good-soft); }
.wow-pct.warn { color: var(--warn); background: var(--warn-soft); }
.wow-pct.bad { color: var(--critical); background: var(--bad-soft); }
.wow-vs.pd-good { color: var(--good-ink); background: var(--good-soft); }
.wow-vs.pd-bad { color: var(--critical); background: var(--bad-soft); }
.wow-info {
  margin: 10px 0 0; padding: 7px 10px; border-left: 3px solid var(--mtd); border-radius: 0 6px 6px 0;
  color: var(--ink-2); background: var(--mtd-soft); font-size: 10.5px;
}
.wow-empty { padding: 4px 0 0; color: var(--ink-3); font-size: 11px; }
table.pd-table thead tr:only-child th { top: 0; height: 28px; }

/* week-mode Performance Details: confidence meter + its color states */
.wow-conf {
  display: inline-grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label pct" "meter meter";
  align-items: center; column-gap: 7px; row-gap: 4px; width: min(100%, 132px); line-height: 1.15;
}
.wow-conf-label { grid-area: label; justify-self: start; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.wow-conf-meter {
  grid-area: meter; display: block; width: 100%; height: 5px; background: var(--line-2); border-radius: 999px; overflow: hidden;
}
.wow-conf-fill { display: block; height: 100%; border-radius: 999px; }
.wow-conf-pct { grid-area: pct; justify-self: end; font-size: 10px; color: var(--ink-3); font-weight: 600; }
.wow-conf.pd-good .wow-conf-label { color: var(--good-ink); }
.wow-conf.pd-good .wow-conf-fill { background: var(--good); }
.wow-conf.pd-warn .wow-conf-label { color: var(--warn); }
.wow-conf.pd-warn .wow-conf-fill { background: var(--warn); }
.wow-conf.pd-bad .wow-conf-label { color: var(--critical); }
.wow-conf.pd-bad .wow-conf-fill { background: var(--critical); }

/* Completed-week insight -- what went wrong this week and what to do
   next week (see pdWeekInsightText() in target.js). Anmol, 19-09-2026:
   the cell is just a small, centred View button; clicking it opens a
   centred dialog over a blurred backdrop (pdWeekInsightModalHtml() in
   target.js) instead of expanding text in the row. */
.pd-week-insight-cell { text-align: center; vertical-align: middle; }
.pd-week-insight-view { font: inherit; font-size: 9.5px; font-weight: 700; padding: 3px 10px;
  border: 1px solid var(--mtd); border-radius: var(--r-sm); background: var(--surface); color: var(--mtd); cursor: pointer; }
.pd-week-insight-view:hover { background: color-mix(in srgb, var(--mtd) 10%, transparent); }
.pd-week-insight-view.pd-danger { border-color: var(--critical); color: var(--critical); }
.pd-week-insight-wrap-inline { display: flex; align-items: center; gap: 8px; justify-content: center; }

.pd-week-modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center;
  justify-content: center; background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pd-week-modal { width: min(460px, 92vw); max-height: 82vh; overflow: auto; background: var(--surface);
  border-radius: var(--r); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); padding: 18px 20px; }
.pd-week-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pd-week-modal-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.pd-week-modal-head h3 span { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.pd-week-modal-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--page);
  color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.pd-week-modal-x:hover { background: var(--line-2); }

.pd-week-modal-line { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.pd-week-modal-line.pd-good { color: var(--good-ink); }
.pd-week-modal-line.pd-warn { color: var(--warn); }
.pd-week-modal-line.pd-bad, .pd-week-modal-line.pd-danger { color: var(--critical); }
.pd-week-modal-sub { margin: 0 0 10px; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.pd-week-modal-block { margin: 10px 0; padding: 9px 11px; background: var(--page);
  border-left: 3px solid var(--line); border-radius: var(--r-sm); }
.pd-week-modal-block .pd-week-modal-line, .pd-week-modal-block .pd-week-modal-sub { margin-bottom: 0; }
.pd-week-modal-block.pd-danger { background: color-mix(in srgb, var(--critical) 7%, transparent); border-left-color: var(--critical); }
.pd-week-modal-next { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--surface-border);
  color: var(--mtd); }

/* week-mode Performance Details grouped header -- new pd-wg-* classes
   only, so the monthly table's pd-g-* colors stay untouched. */
table.pd-table th.pd-wg-identity { background: var(--page); }
table.pd-table th.pd-wg-perf     { background: var(--mtd-soft); }
table.pd-table th.pd-wg-perf-ach { background: var(--good-soft); }
table.pd-table th.pd-wg-perf-gap { background: var(--bad-soft); }
table.pd-table th.pd-wg-ach      { background: var(--indigo-soft); }
table.pd-table th.pd-wg-proj     { background: var(--indigo-soft); }
table.pd-table th.pd-wg-lastmo   { background: color-mix(in srgb, var(--ink-3) 6%, var(--surface)); }
table.pd-table th.pd-wg-outlook  { background: var(--warn-soft); }

@media (max-width: 1100px) {
  .wow-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wow-head > div:first-child { width: 100%; }
  .wow-controls { width: 100%; justify-content: flex-start; }
  .wow-weeks { border-radius: 10px; }
  .wow-info { line-height: 1.45; }
}

/* Trend Reports (rebuilt 21-09-2026 to Anmol's detailed spec): summary
   cards on top, a wide chart (left) and a Trend Insights panel (right)
   below, all reacting live to the RSM/State-ASM/SM filters. Exact
   status colors per spec -- not the app's usual --good/--warn/--critical
   tokens, so this section defines its own. */
:root {
  --trend-green:  #16A34A;
  --trend-strong: #5138CE;
  --trend-orange: #F97316;
  --trend-red:    #DC2626;
  --trend-blue:   #2563EB;
}
.trend-report-outer {
  border: 2px solid #111 !important; border-radius: 12px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.trend-header {
  padding: 16px 18px; background: #0b2e59; border-bottom: 4px solid #f59e0b; color: #fff;
}
.trend-header h2 { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.trend-header h2 .attention-icon { width: 20px; height: 20px; color: #fff; }
.trend-header p { margin: 0; font-size: 12px; color: rgba(255,255,255,.8); }
.trend-report-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.trend-scope-label { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-3); }

.spcc-company-health { padding: 14px 16px; border: 1px solid #b7d9d3; border-radius: 12px; background: #ffffff; }
.spcc-company-health-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.spcc-company-health-kicker { margin: 0 0 2px; color: #0f766e; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.spcc-company-health h2 { margin: 0; color: #102d2b; font-size: 18px; line-height: 1.1; }
.spcc-company-health-head p:last-child { margin: 4px 0 0; color: #64748b; font-size: 11px; font-weight: 700; }
.spcc-company-health-source { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 9px; font-weight: 900; white-space: nowrap; }
.spcc-company-health-bar { display: flex; min-height: 28px; margin-top: 12px; overflow: hidden; border-radius: 8px; background: #e2e8f0; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
.spcc-company-health-segment { display: flex; min-width: 0; align-items: center; justify-content: center; padding: 0 5px; color: #ffffff; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spcc-company-health-dead { background: #dc2626; }
.spcc-company-health-live { background: #f97316; }
.spcc-company-health-active { background: #16a34a; }
.spcc-company-health-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; color: #475569; font-size: 10px; font-weight: 800; }
.spcc-company-health-legend span { display: inline-flex; align-items: center; gap: 4px; }
.spcc-company-health-legend i { width: 8px; height: 8px; border-radius: 50%; }
.spcc-company-health-legend i.dead { background: #dc2626; }
.spcc-company-health-legend i.live { background: #f97316; }
.spcc-company-health-legend i.active { background: #16a34a; }
.spcc-company-health-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.spcc-company-health-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 6px; padding: 7px 9px; border-radius: 8px; background: #f8fafc; }
.spcc-company-health-stats span { color: #475569; font-size: 10px; font-weight: 800; }
.spcc-company-health-stats b { color: #102d2b; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.spcc-company-health-stats b em { color: #64748b; font-size: 10px; font-style: normal; }
.spcc-company-health-stats small { grid-column: 1 / -1; color: #64748b; font-size: 10px; font-weight: 900; }
.spcc-company-health-change { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #dbe4ee; color: #475569; font-size: 10px; font-weight: 800; }
.spcc-company-health-result { padding: 3px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 900; }
.spcc-company-health-result-good { background: #dcfce7; color: #15803d; }
.spcc-company-health-result-bad { background: #fee2e2; color: #b91c1c; }
.spcc-company-health-result-same { background: #e2e8f0; color: #475569; }
.spcc-company-health-change em { color: #64748b; font-style: normal; font-weight: 700; }

.trend-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.trend-card {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px;
  border: 1px solid #D7E3F1; background: var(--surface);
}
.trend-card[data-trend-cat-filter] { cursor: pointer; }
.trend-card[data-trend-cat-filter]:hover { border-color: var(--mtd); }
.trend-card[data-trend-cat-filter].on { border: 2px solid var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 12%, transparent); }
.trend-card-left { display: flex; gap: 8px; align-items: center; min-width: 0; }
.trend-card-right { text-align: right; flex: 0 0 auto; }
.trend-card-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.trend-card-ic .attention-icon { width: 14px; height: 14px; }
.trend-card.green  { background: color-mix(in srgb, var(--trend-green) 8%, var(--surface)); }
.trend-card.strong { background: color-mix(in srgb, var(--trend-strong) 8%, var(--surface)); }
.trend-card.orange { background: color-mix(in srgb, var(--trend-orange) 8%, var(--surface)); }
.trend-card.red    { background: color-mix(in srgb, var(--trend-red) 8%, var(--surface)); }
.trend-card.selected { background: color-mix(in srgb, var(--trend-blue) 8%, var(--surface)); }
.trend-card.green  .trend-card-ic { background: color-mix(in srgb, var(--trend-green) 18%, var(--surface)); color: var(--trend-green); }
.trend-card.strong .trend-card-ic { background: color-mix(in srgb, var(--trend-strong) 18%, var(--surface)); color: var(--trend-strong); }
.trend-card.orange .trend-card-ic { background: color-mix(in srgb, var(--trend-orange) 18%, var(--surface)); color: var(--trend-orange); }
.trend-card.red    .trend-card-ic { background: color-mix(in srgb, var(--trend-red) 18%, var(--surface)); color: var(--trend-red); }
.trend-card.selected .trend-card-ic { background: color-mix(in srgb, var(--trend-blue) 18%, var(--surface)); color: var(--trend-blue); }
.trend-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.trend-card.green  .trend-card-cat, .trend-card.green  h3 { color: var(--trend-green); }
.trend-card.strong .trend-card-cat, .trend-card.strong h3 { color: var(--trend-strong); }
.trend-card.orange .trend-card-cat, .trend-card.orange h3 { color: var(--trend-orange); }
.trend-card.red    .trend-card-cat, .trend-card.red    h3 { color: var(--trend-red); }
.trend-card.selected .trend-card-cat, .trend-card.selected h3 { color: var(--trend-blue); }
.trend-card h3 { margin: 0; font-size: 13px; white-space: nowrap; }
.trend-card-val { font-size: 17px; font-weight: 800; color: var(--ink); }
.trend-card-val em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.trend-card-delta { display: block; margin-top: 1px; font-size: 11px; font-weight: 700; }
.trend-card-delta.up { color: var(--trend-green); }
.trend-card-delta.down { color: var(--trend-red); }

.trend-main-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr); gap: 14px; align-items: start; }
.trend-main-grid.trend-single { grid-template-columns: 1fr; }
.trend-chart-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.trend-chart-topbar .trend-scope-label { margin: 0; }
.trend-insight-toggle {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--warn); background: var(--warn-soft);
  color: var(--warn); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; flex: 0 0 auto;
}
.trend-insight-toggle .attention-icon { width: 14px; height: 14px; }
.trend-insight-toggle:hover { background: var(--warn); color: #fff; }
.trend-insight-toggle.on { background: var(--warn); color: #fff; }
.trend-insights-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.trend-insights-card .card-head .attention-icon { width: 20px; height: 20px; color: var(--warn); }

.trend-level-tabs { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; }
.trend-reset-btn {
  display: flex; align-items: center; gap: 5px; margin-left: auto; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.trend-reset-btn .attention-icon { width: 13px; height: 13px; }
.trend-reset-btn:hover { border-color: var(--critical); color: var(--critical); }
.trend-custom-panel { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: color-mix(in srgb, var(--mtd) 4%, var(--surface)); }
.trend-custom-hint { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.trend-custom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 140px; overflow-y: auto; }
.trend-month-check {
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; cursor: pointer; background: var(--surface);
}
.trend-month-check:has(input:checked) { background: color-mix(in srgb, var(--mtd) 12%, var(--surface)); border-color: var(--mtd); color: var(--mtd); }
.trend-month-check input { margin: 0; }
.trend-level-tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 8px; cursor: pointer;
}
.trend-level-tab:hover { border-color: var(--mtd); color: var(--mtd); }
.trend-level-tab.on { background: var(--mtd); border-color: var(--mtd); color: #fff; }
.trend-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.trend-help-text { margin: 0 0 10px; font-size: 12px; color: var(--ink-3); font-style: italic; }
.sourcing-mode .trend-chart-topbar { position: relative; z-index: 5; }
.sourcing-mode .spcc-kpi-tip.trend-help-tip { z-index: 6; margin-left: 4px; vertical-align: -2px; }
.sourcing-mode .spcc-kpi-tip.trend-help-tip::after {
  top: calc(100% + 8px); bottom: auto; left: 50%; right: auto; width: min(460px, 72vw); max-width: 460px;
  white-space: normal; transform: translate(-50%, -3px);
}
.sourcing-mode .spcc-kpi-tip.trend-help-tip:hover::after,
.sourcing-mode .spcc-kpi-tip.trend-help-tip:focus-visible::after { transform: translate(-50%, 0); }
.trend-filter-sel {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px;
  font-weight: 600; color: var(--ink); background: var(--surface); min-width: 140px;
}
.trend-showall {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
.trend-showall input { cursor: pointer; }
.trend-filter-sel:disabled { color: var(--ink-3); background: color-mix(in srgb, var(--ink-3) 6%, var(--surface)); }
.trend-range-group { display: flex; gap: 4px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.trend-range-btn {
  border: none; background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
}
.trend-range-btn:hover { background: color-mix(in srgb, var(--mtd) 8%, var(--surface)); }
.trend-range-btn.on { background: var(--mtd); color: #fff; }

.trend-chart { width: 100%; height: auto; display: block; }
.trend-gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.trend-line-solid { fill: none; stroke: var(--mtd); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.trend-line-dashed { fill: none; stroke: var(--indigo); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 9; }
.trend-dot { fill: var(--mtd); stroke: #fff; stroke-width: 2; }
.trend-dot.proj { opacity: .95; }
.trend-val-label { font-size: 19px; font-weight: 800; }
.trend-month-label { font-size: 17px; font-weight: 650; fill: var(--ink-3); }
.trend-chart .sp-trend-series { cursor: pointer; outline: none; }
.trend-chart .trend-line-hit { fill: none; stroke: transparent; stroke-width: 22; pointer-events: stroke; }
.trend-chart .sp-trend-series .trend-line-solid,
.trend-chart .sp-trend-series .trend-line-dashed,
.trend-chart .sp-trend-series .trend-dot,
.trend-chart .sp-trend-series .trend-val-label { transition: stroke-width .16s ease, filter .16s ease, opacity .16s ease, font-weight .16s ease; }
.trend-chart .sp-trend-series:hover .trend-line-solid,
.trend-chart .sp-trend-series:focus-visible .trend-line-solid,
.trend-chart .sp-trend-series:hover .trend-line-dashed,
.trend-chart .sp-trend-series:focus-visible .trend-line-dashed { stroke-width: 7; filter: drop-shadow(0 2px 4px var(--trend-series-color)); }
.trend-chart .sp-trend-series:hover .trend-dot,
.trend-chart .sp-trend-series:focus-visible .trend-dot { stroke-width: 3; filter: drop-shadow(0 2px 3px var(--trend-series-color)); }
.trend-chart .sp-trend-series:hover .trend-val-label,
.trend-chart .sp-trend-series:focus-visible .trend-val-label { font-weight: 900; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--trend-series-color) 40%, transparent)); }
.trend-chart .sp-trend-series.trend-team-hover .trend-line-solid,
.trend-chart .sp-trend-series.trend-team-hover .trend-line-dashed { stroke-width: 7; filter: drop-shadow(0 2px 4px var(--trend-series-color)); }
.trend-chart .sp-trend-series.trend-team-hover .trend-dot { stroke-width: 3; filter: drop-shadow(0 2px 3px var(--trend-series-color)); }
.trend-chart .sp-trend-series.trend-team-hover .trend-val-label { font-weight: 900; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--trend-series-color) 40%, transparent)); }
/* Anmol, 25-09-2026: "other should be little blur... other line number also
   not show... only when at bottom name hover" -- legend hover only (see
   wireTrendHover's isLegend check); hovering a line directly is untouched. */
.trend-chart.trend-legend-focus .sp-trend-series { transition: opacity .16s ease, filter .16s ease; }
.trend-chart.trend-legend-focus .sp-trend-series:not(.trend-team-hover) { opacity: .32; filter: blur(1px); }
.trend-chart.trend-legend-focus .sp-trend-series:not(.trend-team-hover) .trend-val-label { display: none; }
.trend-leg-item { border-radius: 6px; padding: 2px 4px; cursor: pointer; }
.trend-leg-item:hover, .trend-leg-item:focus-visible, .trend-leg-item.trend-team-hover {
  font-weight: 900; color: var(--trend-series-color);
  background: color-mix(in srgb, var(--trend-series-color) 12%, transparent);
  outline: none;
}
.trend-line-solid.green   { stroke: var(--trend-green); }
.trend-line-solid.strong  { stroke: var(--trend-strong); }
.trend-line-solid.orange  { stroke: var(--trend-orange); }
.trend-line-solid.red     { stroke: var(--trend-red); }
.trend-line-solid.selected{ stroke: var(--trend-blue); }
.trend-line-dashed.green   { stroke: var(--trend-green); }
.trend-line-dashed.strong  { stroke: var(--trend-strong); }
.trend-line-dashed.orange  { stroke: var(--trend-orange); }
.trend-line-dashed.red     { stroke: var(--trend-red); }
.trend-line-dashed.selected{ stroke: var(--trend-blue); }
.trend-dot.green   { fill: var(--trend-green); }
.trend-dot.strong  { fill: var(--trend-strong); }
.trend-dot.orange  { fill: var(--trend-orange); }
.trend-dot.red     { fill: var(--trend-red); }
.trend-dot.selected{ fill: var(--trend-blue); }
.trend-val-label.green    { fill: var(--trend-green); }
.trend-val-label.strong   { fill: var(--trend-strong); }
.trend-val-label.orange   { fill: var(--trend-orange); }
.trend-val-label.red      { fill: var(--trend-red); }
.trend-val-label.selected { fill: var(--trend-blue); }

.trend-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
/* Anmol, 25-09-2026: "max 4 names in one row" -- scoped to Sourcing Trend
   only (.spcc-trend); Target page's .trend-legend keeps its own flex-wrap. */
.spcc-trend .trend-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trend-leg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.trend-leg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.trend-leg-dot.green   { background: var(--trend-green); }
.trend-leg-dot.strong  { background: var(--trend-strong); }
.trend-leg-dot.orange  { background: var(--trend-orange); }
.trend-leg-dot.red     { background: var(--trend-red); }
.trend-leg-dot.selected{ background: var(--trend-blue); }

.trend-insights-card { display: flex; flex-direction: column; }
.trend-insight-list { display: flex; flex-direction: column; gap: 12px; }
.trend-insight-row { display: flex; gap: 10px; align-items: flex-start; }
.trend-insight-num {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.trend-insight-num.green   { background: var(--trend-green); }
.trend-insight-num.strong  { background: var(--trend-strong); }
.trend-insight-num.orange  { background: var(--trend-orange); }
.trend-insight-num.red     { background: var(--trend-red); }
.trend-insight-num.selected{ background: var(--trend-blue); }
.trend-insight-row strong { font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.trend-insight-row strong.green   { color: var(--trend-green); }
.trend-insight-row strong.strong  { color: var(--trend-strong); }
.trend-insight-row strong.orange  { color: var(--trend-orange); }
.trend-insight-row strong.red     { color: var(--trend-red); }
.trend-insight-row strong.selected{ color: var(--trend-blue); }
.trend-insight-row b { display: block; font-size: 13.5px; color: var(--ink); margin: 1px 0 2px; }
.trend-insight-state { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.trend-insight-row p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.trend-insight-proj {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start;
}
.trend-insight-proj .attention-icon { width: 16px; height: 16px; color: var(--mtd); flex: 0 0 auto; margin-top: 1px; }
.trend-insight-proj p { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.spcc-trend-pick { width: 100%; border: 1px solid transparent; background: transparent; text-align: left; font: inherit; color: inherit; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.spcc-trend-pick:hover { border-color: var(--line); background: color-mix(in srgb, var(--mtd) 5%, var(--surface)); }
.spcc-trend-pick.on { border-color: var(--mtd); background: color-mix(in srgb, var(--mtd) 9%, var(--surface)); }
.spcc-trend .trend-insights-card .card-sub { margin: 2px 0 0; }
.spcc-trend .trend-chart-topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.spcc-trend .trend-insights-card { max-height: 600px; }
.spcc-trend .trend-insight-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; }
.spcc-trend .trend-insight-row { display: block; width: 100%; padding: 9px 10px; color: #172033; }
.spcc-trend .spcc-trend-insight-copy { display: grid; gap: 7px; min-width: 0; }
.spcc-trend .spcc-trend-insight-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.spcc-trend .spcc-trend-insight-head > b { flex: 1 1 auto; min-width: 0; margin: 0; color: #172033; font-size: 14px; line-height: 1.2; }
.spcc-trend .spcc-trend-rank { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 850; font-variant-numeric: tabular-nums; }
.spcc-trend .spcc-trend-rank.dead { background: #b91c1c; }
.spcc-trend .spcc-trend-rank.live { background: #c2410c; }
.spcc-trend .spcc-trend-rank.active { background: #15803d; }
.spcc-trend .spcc-trend-insight-head > em { flex: 0 0 auto; padding: 3px 6px; border: 1px solid currentColor; border-radius: 5px; font-size: 9px; font-style: normal; font-weight: 850; line-height: 1; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.spcc-trend .spcc-trend-insight-head > em.dead { color: #b91c1c; background: #fef2f2; }
.spcc-trend .spcc-trend-insight-head > em.live { color: #c2410c; background: #fff7ed; }
.spcc-trend .spcc-trend-insight-head > em.active { color: #15803d; background: #f0fdf4; }
.spcc-trend .spcc-trend-insight-summary { display: flex; flex-wrap: wrap; gap: 4px 8px; color: #334155; font-size: 11px; font-weight: 750; line-height: 1.25; font-variant-numeric: tabular-nums; }
.spcc-trend .spcc-trend-insight-summary > span:first-child { color: #172033; font-weight: 850; }
.spcc-trend .spcc-trend-insight-takeaway { color: #334155; font-size: 11px; font-weight: 700; line-height: 1.3; }
.spcc-trend .spcc-trend-insight-takeaway.good { color: #15803d; }
.spcc-trend .spcc-trend-insight-takeaway.bad { color: #b91c1c; }
.spcc-trend .spcc-trend-insight-takeaway.neutral { color: #334155; }
.spcc-trend .spcc-trend-insight-metrics { display: grid; gap: 6px; }
.spcc-trend .spcc-trend-insight-metric { display: inline-flex; align-items: center; gap: 5px; color: #172033; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.spcc-trend .spcc-trend-insight-metric i { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.spcc-trend .spcc-trend-insight-metric i.red { background: #dc2626; }
.spcc-trend .spcc-trend-insight-metric i.orange { background: #f97316; }
.spcc-trend .spcc-trend-insight-metric i.green { background: #16a34a; }
.spcc-trend .spcc-trend-insight-metric strong { color: #172033; font-size: inherit; font-weight: 850; letter-spacing: 0; }
.spcc-trend .spcc-trend-insight-metric strong.good { color: #15803d; }
.spcc-trend .spcc-trend-insight-metric strong.bad { color: #b91c1c; }
.spcc-trend .spcc-trend-insight-metric strong.neutral { color: #172033; }
.spcc-trend .trend-cards-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spcc-trend .spcc-trend-kpi { appearance: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; justify-content: stretch; gap: 0; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 2px solid #172033; border-radius: 12px; background: #ffffff; color: #172033; font: inherit; text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.spcc-trend .spcc-trend-kpi:hover { transform: translateY(-2px); }
.spcc-trend .spcc-trend-kpi:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.spcc-trend .spcc-trend-card-total.is-selected { box-shadow: 0 0 0 3px #93c5fd; }
.spcc-trend .spcc-trend-card-status.red.is-selected { box-shadow: 0 0 0 3px #fca5a5; }
.spcc-trend .spcc-trend-card-status.orange.is-selected { box-shadow: 0 0 0 3px #fdba74; }
.spcc-trend .spcc-trend-card-status.green.is-selected { box-shadow: 0 0 0 3px #86efac; }
.spcc-trend .spcc-trend-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 9px 14px; color: #ffffff; font-size: 12px; font-weight: 800; }
.spcc-trend .spcc-trend-kpi-head > span:first-child { min-width: 0; }
.spcc-trend .spcc-trend-kpi-head > span:last-child { flex: 0 0 auto; white-space: nowrap; font-size: 11px; font-weight: 750; }
.spcc-trend .spcc-trend-kpi-head small { font-size: 11px; font-weight: 650; }
.spcc-trend .spcc-trend-card-total .spcc-trend-kpi-head { background: #1d4ed8; }
.spcc-trend .spcc-trend-card-status.red .spcc-trend-kpi-head { background: #b91c1c; }
.spcc-trend .spcc-trend-card-status.orange .spcc-trend-kpi-head { background: #c2410c; }
.spcc-trend .spcc-trend-card-status.green .spcc-trend-kpi-head { background: #15803d; }
.spcc-trend .spcc-trend-kpi-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 14px; }
.spcc-trend .spcc-trend-kpi-value { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.spcc-trend .spcc-trend-kpi .trend-card-val { flex: 0 0 auto; color: #172033; font-size: 32px; line-height: 1; font-weight: 850; font-variant-numeric: tabular-nums; }
.spcc-trend .spcc-trend-kpi .trend-card-share { color: #475569; font-size: 12px; font-weight: 700; white-space: nowrap; }
.spcc-trend .spcc-trend-kpi .trend-card-delta { flex: 0 0 auto; margin: 0; padding: 3px 6px; border: 1px solid #94a3b8; border-radius: 5px; color: #334155; font-size: 11px; font-weight: 800; white-space: nowrap; }
.spcc-trend .spcc-trend-kpi .trend-card-delta.up { border-color: #15803d; background: #f0fdf4; color: #166534; }
.spcc-trend .spcc-trend-kpi .trend-card-delta.down { border-color: #b91c1c; background: #fef2f2; color: #991b1b; }
.spcc-trend .spcc-trend-kpi .trend-card-delta.flat { border-color: #64748b; background: #f8fafc; color: #334155; }
.spcc-trend #spTrendRangeSel { margin-left: auto; }

@media (max-width: 1100px) {
  .trend-main-grid { grid-template-columns: 1fr; }
  .spcc-trend .trend-cards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .spcc-trend .trend-cards-row { grid-template-columns: 1fr; }
  .spcc-company-health { padding: 12px; }
  .spcc-company-health-head { display: block; }
  .spcc-company-health-source { display: inline-block; margin-top: 7px; }
  .spcc-company-health-segment { font-size: 9px; }
  .spcc-company-health-stats { gap: 5px; }
  .spcc-company-health-stats > div { padding: 6px; }
  .spcc-company-health-stats b { font-size: 12px; }
}

/* Sourcing Points detail modal (added 22-09-2026): the click-to-open
   "all data + why the number doesn't match Excel's raw row count" panel. */
.sp-info-btn {
  border: none; background: transparent; color: inherit; cursor: pointer; padding: 0 0 0 3px;
  font-size: 12px; vertical-align: middle; opacity: .8;
}
.sp-info-btn:hover { opacity: 1; text-decoration: underline; }
.sp-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 200; }
.sp-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 201;
  width: min(760px, 92vw); max-height: 84vh; background: var(--surface); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15,23,42,.35); display: flex; flex-direction: column; overflow: hidden;
}
.sp-modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: #0b2e59; color: #fff; border-bottom: 4px solid #f59e0b; flex: 0 0 auto;
}
.sp-modal-head h2 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sp-modal-head h2 .attention-icon { width: 18px; height: 18px; color: #fff; }
.sp-modal-x { border: none; background: transparent; color: #fff; cursor: pointer; padding: 4px; }
.sp-modal-x .attention-icon { width: 16px; height: 16px; }
.sp-modal-body { padding: 16px 18px; overflow-y: auto; font-size: 13px; color: var(--ink); line-height: 1.5; }
.sp-modal-body p { margin: 0 0 10px; }
.sp-modal-body code { background: color-mix(in srgb, var(--ink-3) 10%, var(--surface)); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.sp-modal-body h3 { margin: 16px 0 8px; font-size: 13px; color: var(--ink); }
.sp-calc {
  background: color-mix(in srgb, var(--mtd) 6%, var(--surface)); border: 1px solid var(--indigo-border);
  border-radius: 8px; padding: 10px 12px; font-size: 12.5px; margin: 0 0 10px;
}
.sp-table-wrap { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sp-table th {
  position: sticky; top: 0; background: #F4F7FB; text-align: left; padding: 7px 10px;
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.sp-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-table tr:last-child td { border-bottom: none; }
.sp-table td.sp-num { text-align: center; font-weight: 700; white-space: nowrap; }
.sp-fls { color: var(--ink-3); font-size: 10.5px; }
/* Sourcing Point Command Center — standalone page only. */
.spcc-filter-row { grid-template-columns: minmax(210px, .45fr) minmax(520px, 1.55fr); }
.spcc-filter-grid { grid-template-columns: minmax(145px, 1fr) auto minmax(120px, .8fr) auto minmax(130px, 1fr) auto minmax(190px, 1.35fr); }
.spcc-rule { margin: 0; color: var(--ink-2); font-size: .82rem; line-height: 1.45; }
.spcc-note { display: block; margin: 0 0 18px; }
.spcc-note.warn { background: #fff8e7; border-color: #e8bd5e; color: #75500a; }
.spcc-kpis { grid-template-columns: repeat(6, minmax(145px, 1fr)); margin-top: 28px; }
.spcc-kpis .kpi p { min-height: 2.3em; }
.spcc-table tbody tr[data-key] { cursor: pointer; }
.spcc-table tbody tr[data-key]:hover th, .spcc-table tbody tr[data-key]:hover td { background: #eef5ff; }
.spcc-dead { color: #bb2638; font-weight: 800; }
.spcc-live { color: #a36a00; font-weight: 800; }
.spcc-active { color: #137a44; font-weight: 800; }
@media (max-width: 1150px) { .spcc-filter-row { grid-template-columns: 1fr; } .spcc-kpis { grid-template-columns: repeat(3, minmax(145px, 1fr)); } }
@media (max-width: 700px) { .spcc-filter-grid { grid-template-columns: 1fr; } .spcc-filter-grid .chev { display: none; } .spcc-kpis { grid-template-columns: repeat(2, minmax(130px, 1fr)); } }

/* Sourcing Point Command Center: a distinct, calm operations surface.
   Scoped to the active section so the approved dashboard theme stays intact. */
body.sourcing-mode { background: #edf7f4; }
.sourcing-mode .app-content { background: #edf7f4; }
.sourcing-mode .topbar {
  background: rgba(245, 252, 250, .92);
  border-bottom-color: #b8d9d1;
  backdrop-filter: blur(16px) saturate(145%);
}
.sourcing-mode .brand-mark { background: #0f766e; box-shadow: 0 8px 18px -12px rgba(7, 77, 72, .8); }
.sourcing-mode .sidebar button.on { background: #d9f0e9; color: #000000; }
.sourcing-mode .sidebar button.on span { color: #000000; }
.sourcing-mode .topbar,
.sourcing-mode .topbar h1,
.sourcing-mode .topbar h2,
.sourcing-mode .topbar h3,
.sourcing-mode .topbar label,
.sourcing-mode .topbar select,
.sourcing-mode .topbar input,
.sourcing-mode .topbar .crumb,
.sourcing-mode .topbar .pill { color: #111827; font-weight: 750; }
.sourcing-mode .topbar .filter-group-head p,
.sourcing-mode .topbar .ctl input::placeholder { color: #334155; font-weight: 650; opacity: 1; }
.sourcing-mode .crumb.on {
  background: #ffffff;
  border: 1px solid #111827;
  color: #000000;
  font-weight: 850;
}
.sourcing-mode #sectionBody .kpi-label,
.sourcing-mode #sectionBody .kpi-foot,
.sourcing-mode #sectionBody .card-sub,
.sourcing-mode #sectionBody .perf th,
.sourcing-mode #sectionBody .perf td { color: #111827; font-weight: 700; }
.sourcing-mode #sectionBody .kpi-val { color: #0b3f3b; font-weight: 850; }
.sourcing-mode #sectionBody > .focus {
  margin-top: 12px; padding: 14px 20px; border-radius: 12px;
  color: #f6fffc; background: #0d5c57;
  box-shadow: 0 16px 32px -22px rgba(5, 70, 64, .72);
}
.sourcing-mode #sectionBody > .focus + .spcc-kpis { margin-top: 28px; }
.sourcing-mode #sectionBody > .focus h1 { color: #ffffff; letter-spacing: -.025em; }
.sourcing-mode #sectionBody > .focus .focus-sub { color: #d8f0e9; }
.sourcing-mode #sectionBody > .focus .eyebrow { display: none; }
.sourcing-mode .spcc-note { background: #fff9ec; border-color: #e8c467; color: #725006; }
.sourcing-mode .spcc-kpis .kpi {
  padding: 9px 12px; background: #ffffff; border-color: #b8d9d1; border-left-width: 1px;
  box-shadow: 0 10px 24px -22px rgba(8, 82, 76, .72);
}
.sourcing-mode .spcc-kpis .kpi.flag { background: #fff8f8; border-left-width: 1px; }
.sourcing-mode .spcc-kpis .kpi:nth-child(4) { background: #f0fbf6; border-color: #a9d9be; }
.sourcing-mode .spcc-kpis .kpi:nth-child(6) { background: #fff8f8; border-color: #e6bdc2; }
.sourcing-mode #sectionBody .card { padding: 10px; border: 2px solid #111827; overflow: hidden; box-shadow: 0 18px 34px -26px rgba(8, 82, 76, .7); }
.sourcing-mode #sectionBody .card-head { padding: 10px 14px; background: #f4fbf8; border-bottom: 1px solid #111827; }
.sourcing-mode #sectionBody .card-head h2 { color: #000000; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.sourcing-mode #sectionBody .card-head .card-sub { color: #111827; font-size: 13px; font-weight: 750; }
.sourcing-mode .spcc-card-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.sourcing-mode .spcc-reset { padding: 5px 10px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; color: #000000; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.sourcing-mode .spcc-card-actions .pill { padding: 5px 10px; font-size: 12px; }
.sourcing-mode .spcc-reset:hover { background: #dff1eb; }
.sourcing-mode .spcc-reset:active { transform: scale(.98); }
.sourcing-mode .spcc-notes-btn { padding: 4px 8px; border: 1px solid #075f57; border-radius: 8px; background: #dff1eb; color: #075f57; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.sourcing-mode .spcc-notes-btn:hover { background: #c9e9df; }
.sourcing-mode .spcc-shared-filter { padding: 4px 9px; border: 1px solid #1e3a8a; border-radius: 8px; background: #eef4ff; color: #1e3a8a; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.sourcing-mode .spcc-shared-filter:hover { background: #dbeafe; }
.sourcing-mode .spcc-shared-filter[aria-pressed="true"] { background: #1e3a8a; color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.sourcing-mode .spcc-shared-filter:disabled { border-color: #cbd5e1; background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.sourcing-mode .spcc-kpis .kpi-top { margin-bottom: 4px; }
.sourcing-mode .spcc-kpis .kpi-foot { margin-top: 5px; }
.sourcing-mode .spcc-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 2px 10px; }
.sourcing-mode .spcc-crumb { padding: 4px 9px; border: 0; border-radius: 999px; background: #e7f1fb; color: #2563eb; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.sourcing-mode .spcc-crumb:hover { background: #d9eadf; color: #075f57; }
.sourcing-mode .spcc-crumb.on { background: #0f766e; color: #ffffff; }
.sourcing-mode .spcc-crumb-sep { color: #4b5563; font-size: 17px; font-weight: 850; }
.sourcing-mode .spcc-crumb-level { padding: 4px 8px; border-radius: 999px; background: #dff1eb; color: #075f57; font-size: 12px; font-weight: 850; letter-spacing: .02em; }
.sourcing-mode #sectionBody .card-head { padding: 7px 10px; }
.sourcing-mode #sectionBody .card-head h2 { font-size: 16px !important; }
.sourcing-mode #sectionBody .card-head .card-sub { font-size: 12px !important; }
.sourcing-mode .spcc-reset { padding: 4px 8px; font-size: 11px !important; }
.sourcing-mode .spcc-shared-filter { padding: 4px 8px; font-size: 11px !important; }
.sourcing-mode .spcc-card-actions .pill { padding: 4px 8px; font-size: 11px !important; }
.sourcing-mode .spcc-crumb { padding: 3px 8px; font-size: 11px !important; }
.sourcing-mode .spcc-crumb-level { padding: 3px 7px; font-size: 11px !important; }
.sourcing-mode .spcc-scroll { width: 100%; max-width: 100%; min-width: 0; max-height: none; overflow-x: auto; overflow-y: visible; box-sizing: border-box; border: 1px solid #111827; border-radius: 8px; margin: 0; }
.sourcing-mode table.pd-table.spcc-table { width: 100%; min-width: 0; table-layout: fixed; }
.sourcing-mode table.pd-table.spcc-table th { color: #000000; font-size: 13px; font-weight: 850; letter-spacing: .02em; }
.sourcing-mode table.pd-table.spcc-table th,
.sourcing-mode table.pd-table.spcc-table td { border-right: 1px solid #111827; border-bottom: 1px solid #111827; padding: 6px 9px; }
.sourcing-mode table.pd-table.spcc-table th:last-child,
.sourcing-mode table.pd-table.spcc-table td:last-child { border-right: 0; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-id { width: 3%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-name { width: 20%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-team { width: 14%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-allocation { width: 14%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-perexec { width: 13%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-dead,
.sourcing-mode table.pd-table.spcc-table th.spcc-h-live,
.sourcing-mode table.pd-table.spcc-table th.spcc-h-active { width: 7%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-coverage { width: 14%; min-width: 150px; white-space: normal; line-height: 1.15; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-go { width: 3%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-id,
.sourcing-mode table.pd-table.spcc-table th.spcc-h-name { background: #eef7f4; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-name,
.sourcing-mode table.pd-table.spcc-table td.name { text-align: left !important; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-allocation { background: #d9f0e9; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-points { background: #d9f0e9; color: #000000; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-points { width: 21%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-pointtotal { width: 7%; background: #e8f0fb; color: #000000; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-perexec { background: #e8f0fb; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-dead { background: #b91c1c; color: #ffffff; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-coverage { background: #fcecef; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-live { background: #c2410c; color: #ffffff; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-active { background: #15803d; color: #ffffff; }
.sourcing-mode #sectionBody table.pd-table.spcc-table th.spcc-h-dead,
.sourcing-mode #sectionBody table.pd-table.spcc-table th.spcc-h-live,
.sourcing-mode #sectionBody table.pd-table.spcc-table th.spcc-h-active { color: #ffffff; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-team { background: #e8f0fb; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-go { background: #eef7f4; }
.sourcing-mode table.pd-table.spcc-table tbody tr:nth-child(even) td { background: #f8fcfa; }
.sourcing-mode table.pd-table.spcc-table tbody tr.drill:hover td { background: #e1f2ec; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-total td { background: #dbeafe; color: #111827; font-weight: 850; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-total td { position: sticky; bottom: 0; z-index: 3; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-risk td { background: #fff0f1; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-watch td { background: #fff7e5; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-good td { background: #edf9f1; }
.sourcing-mode .spcc-point-cell { padding: 0 !important; }
.sourcing-mode .spcc-point-list { display: block; width: 100%; min-width: 0; padding: 6px 9px; border: 0; background: transparent; color: #111827; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.sourcing-mode .spcc-point-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sourcing-mode .spcc-point-list:hover { background: rgba(13, 148, 136, .10); }
.sourcing-mode .spcc-point-list:focus-visible { outline: 2px solid #0f766e; outline-offset: -2px; }
.sourcing-mode .spcc-point-empty, .sourcing-mode .spcc-point-total { color: #475569; font-weight: 750; white-space: nowrap; }
.sourcing-mode table.pd-table.spcc-table .spcc-cell-pointtotal { color: #1d4ed8; font-weight: 850; }
.spcc-notes-overlay > .spcc-points-modal { margin: 0; }
.spcc-points-modal { width: min(640px, calc(100vw - 32px)) !important; max-height: min(560px, calc(100vh - 32px)) !important; display: flex; flex-direction: column; overflow: hidden; padding: 12px 14px; }
.spcc-points-modal > header { position: relative; top: auto; flex: 0 0 auto; z-index: 2; padding: 12px 0 9px; background: #f7fcfa; }
.spcc-points-modal > header button { flex: none; }
.spcc-points-history { min-height: 0; margin-top: 10px; overflow: auto; border: 1px solid #1f2937; border-radius: 7px; }
.spcc-points-history table { width: 100%; min-width: 590px; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.spcc-points-history th, .spcc-points-history td { padding: 6px 8px; border-right: 1px solid #64748b; border-bottom: 1px solid #64748b; color: #111827; font-weight: 700; text-align: left; }
.spcc-points-history th { background: #dff1eb; font-weight: 850; white-space: nowrap; }
.spcc-points-history th.num, .spcc-points-history td.num { text-align: center; }
.spcc-points-history td.spcc-disb-zero { background: #fee2e2; color: #000000; font-weight: 900; }
.spcc-points-history td.spcc-disb-live { background: #f6b26b; color: #000000; font-weight: 900; }
.spcc-points-history td.spcc-disb-active { background: #b7e8c0; color: #000000; font-weight: 900; border: 2px solid #15803d; }
.spcc-points-history tr:last-child td { border-bottom: 0; }
.spcc-points-history th:last-child, .spcc-points-history td:last-child { border-right: 0; }
.spcc-points-history tbody tr.spcc-shared-row > td:first-child { background: #1e3a8a; color: #ffffff; }
.spcc-shared-point { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #ffffff; font-weight: 900; cursor: help; }
.spcc-shared-point small { padding: 2px 5px; border: 1px solid #ffffff; border-radius: 999px; background: #dbeafe; color: #1e3a8a; font-size: 8px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.spcc-shared-point::after { content: attr(data-tooltip); position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(420px, 72vw); padding: 8px 10px; border-radius: 7px; background: #172554; color: #ffffff; box-shadow: 0 8px 20px rgba(15, 23, 42, .24); font-size: 10px; font-weight: 700; line-height: 1.45; text-align: left; white-space: pre-line; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms ease; }
.spcc-shared-point:hover::after, .spcc-shared-point:focus-visible::after { opacity: 1; transform: translateY(0); }
.spcc-shared-point:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 3px; }
.sourcing-mode .spcc-health { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; font-size: 16px; font-weight: 900; vertical-align: middle; }
.sourcing-mode .spcc-health.risk { background: #c91d35; color: #ffffff; }
.sourcing-mode .spcc-health.watch { background: #df8200; color: #ffffff; }
.sourcing-mode .spcc-health.good { background: #078a4b; color: #ffffff; }
.sourcing-mode .spcc-health.neutral { background: #64748b; color: #ffffff; }
html.spcc-modal-open { overflow: hidden; overscroll-behavior: none; }
body.spcc-modal-open { overflow: hidden; overscroll-behavior: none; touch-action: none; }
.spcc-notes-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; box-sizing: border-box; padding: 24px; overflow: hidden; overscroll-behavior: contain; background: rgba(15, 23, 42, .42); backdrop-filter: blur(3px); }
.spcc-notes-modal { width: min(1120px, 96vw); max-height: min(760px, 90vh); overflow: auto; overscroll-behavior: contain; padding: 18px; border: 2px solid #111827; border-radius: 14px; background: #f7fcfa; box-shadow: 0 28px 72px rgba(15, 23, 42, .32); }
.spcc-notes-modal > header { position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #111827; background: #f7fcfa; }
.spcc-data-notes-modal { width: min(1520px, calc(100vw - 32px)) !important; height: min(820px, calc(100vh - 32px)); max-height: min(820px, calc(100vh - 32px)) !important; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
.spcc-data-notes-modal > header { position: relative; top: auto; flex: 0 0 auto; z-index: 6; }
.spcc-data-notes-modal > header button { flex: 0 0 auto; }
.spcc-notes-content { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.spcc-notes-modal h2 { margin: 0; color: #000000; font-size: 18px; font-weight: 850; }
.spcc-notes-modal header p { margin: 3px 0 0; color: #334155; font-size: 12px; font-weight: 650; }
.spcc-notes-modal header button { width: 30px; height: 30px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; color: #111827; font-size: 22px; line-height: 1; cursor: pointer; }
.spcc-notes-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.spcc-notes-summary span { padding: 6px 9px; border: 1px solid var(--note-border, #94a3b8); border-radius: 7px; background: var(--note-bg, #f8fafc); color: var(--note-text, #111827); font-size: 12px; font-weight: 750; }
.spcc-note-block { --note-border: #94a3b8; --note-bg: #f8fafc; --note-text: #334155; --note-table-bg: #e2e8f0; margin-top: 12px; padding: 12px; border: 2px solid var(--note-border); border-radius: 10px; background: var(--note-bg); }
.spcc-note-activity { --note-border: #3b82f6; --note-bg: #eff6ff; --note-text: #1d4ed8; --note-table-bg: #dbeafe; }
.spcc-note-missing-point { --note-border: #e11d48; --note-bg: #fff1f2; --note-text: #be123c; --note-table-bg: #ffe4e6; }
.spcc-note-placeholder { --note-border: #b91c1c; --note-bg: #fff5f5; --note-text: #7f1d1d; --note-table-bg: #fee2e2; }
/* Sourcing Data Notes: step-by-step total and data checks (Anmol 28-09-2026: "total points... why other are not seen on kpi... easy to understand"). */
.spcc-recon { margin-top: 14px; }
.spcc-recon h3, .spcc-recon-details { margin: 0 0 6px; color: #000; font-size: 17px; font-weight: 850; }
.spcc-recon-details { margin: 20px 0 0; }
.spcc-recon-sub { margin: 0 0 8px; color: #1f2937; font-size: 13px; font-weight: 600; }
.spcc-recon .spcc-note-table table { min-width: 620px; font-size: 13px; }
.spcc-recon .spcc-note-table th, .spcc-recon .spcc-note-table td { padding: 8px 10px; vertical-align: top; }
.spcc-recon .spcc-note-table th { background: #e2e8f0; }
.spcc-recon .spcc-note-table th:nth-child(1) { width: 34%; }
.spcc-recon .spcc-note-table th:nth-child(2) { width: 11%; }
.spcc-recon .spcc-note-table th:nth-child(3) { width: auto; }
.spcc-checks .spcc-note-table th:nth-child(1) { width: 22%; }
.spcc-checks .spcc-note-table th:nth-child(2) { width: 8%; }
.spcc-checks .spcc-note-table th:nth-child(3) { width: 28%; }
.spcc-checks .spcc-note-table th:nth-child(4) { width: auto; }
.spcc-recon .num { text-align: right; font-variant-numeric: tabular-nums; }
.spcc-recon code { font-size: 12px; }
.spcc-recon-total td { background: #eff6ff; }
.spcc-recon-total td:nth-child(2) { color: #1d4ed8; font-size: 15px; font-weight: 850; }
.spcc-recon-minus { color: #b91c1c; font-weight: 850; }
.spcc-recon-zero { color: #475569; }
.spcc-recon-final td { border-top: 2px solid #111827; background: #dcfce7; font-weight: 850; }
.spcc-recon-final td:nth-child(2) { color: #15803d; font-size: 17px; }
.spcc-check-in, .spcc-check-out, .spcc-check-na { display: inline-block; margin-right: 4px; padding: 1px 8px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 850; }
.spcc-check-in { border-color: #15803d; background: #dcfce7; color: #14532d; }
.spcc-check-out { border-color: #b91c1c; background: #fee2e2; color: #7f1d1d; }
.spcc-check-na { border-color: #64748b; background: #f1f5f9; color: #1f2937; }
.spcc-recon-rule { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #111827; border-radius: 8px; background: #f8fafc; color: #111827; font-size: 13px; }
.spcc-note-missing-fls { --note-border: #db2777; --note-bg: #fdf2f8; --note-text: #be185d; --note-table-bg: #fce7f3; }
.spcc-note-fls-format { --note-border: #d97706; --note-bg: #fffbeb; --note-text: #a16207; --note-table-bg: #fef3c7; }
.spcc-note-roster-mismatch { --note-border: #7c3aed; --note-bg: #f5f3ff; --note-text: #6d28d9; --note-table-bg: #ede9fe; }
.spcc-note-sm-mismatch { --note-border: #ea580c; --note-bg: #fff7ed; --note-text: #c2410c; --note-table-bg: #ffedd5; }
.spcc-note-no-allocation { --note-border: #0f766e; --note-bg: #f0fdfa; --note-text: #0f766e; --note-table-bg: #ccfbf1; }
.spcc-note-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; color: #111827; font: inherit; text-align: left; cursor: pointer; }
.spcc-note-toggle span { font-size: 14px; font-weight: 850; }
.spcc-note-toggle b { margin-left: 6px; color: var(--note-text); }
.spcc-note-toggle i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--note-border); border-radius: 50%; background: #ffffff; color: var(--note-text); font-size: 18px; font-style: normal; line-height: 1; }
.spcc-note-body { padding-top: 8px; }
.spcc-note-block h3 { margin: 0; color: #111827; font-size: 14px; font-weight: 850; }
.spcc-note-block h3 span { margin-left: 6px; color: #b91c1c; }
.spcc-note-block p { margin: 3px 0 9px; color: #475569; font-size: 12px; font-weight: 600; }
.spcc-note-table { overflow: auto; border: 1px solid #1f2937; border-radius: 7px; }
.spcc-note-table table { width: 100%; min-width: 660px; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.spcc-note-table th, .spcc-note-table td { padding: 5px 7px; border-right: 1px solid #64748b; border-bottom: 1px solid #64748b; color: #111827; text-align: left; font-weight: 700; }
.spcc-note-table th { background: var(--note-table-bg, #dff1eb); color: #0f172a; font-weight: 850; }
.spcc-note-table th:nth-child(1) { width: 21%; }
.spcc-note-table th:nth-child(2) { width: 18%; }
.spcc-note-table th:nth-child(3) { width: 25%; }
.spcc-note-table th:nth-child(4) { width: 13%; }
.spcc-note-table th:nth-child(5) { width: 23%; }
.spcc-note-table tr:last-child td { border-bottom: 0; }
.spcc-note-table th:last-child, .spcc-note-table td:last-child { border-right: 0; }
.spcc-note-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spcc-rsm-name { display: block; overflow: hidden; padding: 3px 6px; border: 1px solid currentColor; border-radius: 5px; text-overflow: ellipsis; white-space: nowrap; font-weight: 850; }
.spcc-rsm-0 { background: #e0f2fe; color: #075985; }
.spcc-rsm-1 { background: #f3e8ff; color: #6b21a8; }
.spcc-rsm-2 { background: #dcfce7; color: #166534; }
.spcc-rsm-3 { background: #ffedd5; color: #9a3412; }
.spcc-rsm-4 { background: #ffe4e6; color: #9f1239; }
.spcc-rsm-5 { background: #fef9c3; color: #854d0e; }
.sourcing-mode table.pd-table.spcc-table .spcc-cell-assigned,
.sourcing-mode table.pd-table.spcc-table .spcc-cell-active { color: #075f57; font-weight: 850; }
.sourcing-mode table.pd-table.spcc-table .spcc-cell-dead,
.sourcing-mode table.pd-table.spcc-table .spcc-cell-coverage { color: #a32235; font-weight: 850; }
.sourcing-mode table.pd-table.spcc-table .spcc-cell-live { color: #9a6200; font-weight: 850; }
.sourcing-mode table.pd-table.spcc-table .spcc-cell-perexec { color: #1d4ed8; font-weight: 850; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-total td { color: #111827 !important; }
@media (max-width: 1050px) {
  .sourcing-mode table.pd-table.spcc-table { min-width: 940px; table-layout: auto; }
}
.sourcing-mode .spcc-table tbody tr.drill { transition: background-color 150ms ease, box-shadow 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .sourcing-mode .spcc-table tbody tr.drill:hover td { background: #e7f5f0; }
  .sourcing-mode .spcc-table tbody tr.drill:hover .go { color: #0b7469; }
  .sourcing-mode .spcc-table tbody tr.spcc-risk:hover td { background: #f9dadd !important; }
  .sourcing-mode .spcc-table tbody tr.spcc-watch:hover td { background: #ffedcc !important; }
  .sourcing-mode .spcc-table tbody tr.spcc-good:hover td { background: #d7f0df !important; }
}
.sourcing-mode .spcc-table tbody tr.drill:active td { background: #d7eee6; }
.sourcing-mode .spcc-kpis .spcc-kpi-pct { margin-left: 7px; font-size: .62em; font-weight: 900; letter-spacing: -.02em; vertical-align: middle; white-space: nowrap; }
.sourcing-mode .spcc-kpis .spcc-kpi-pct-red { color: #c91d35; }
.sourcing-mode .spcc-kpis .spcc-kpi-pct-orange { color: #c2410c; }
.sourcing-mode .spcc-kpis .spcc-kpi-pct-green { color: #078a4b; }
.sourcing-mode .spcc-kpis .spcc-kpi { min-height: 0; padding: 9px 12px; overflow: visible; }
.sourcing-mode .spcc-kpis .spcc-kpi-blue { border-color: #93c5fd; background: #f5f9ff; }
.sourcing-mode .spcc-kpis .spcc-kpi-orange { border-color: #fdba74; background: #fff8f0; }
.sourcing-mode .spcc-kpis .spcc-kpi-green { border-color: #86d6a5; background: #f0fbf6; }
.sourcing-mode .spcc-kpis .spcc-kpi-yellow { border-color: #facc15; background: #fffdf0; }
.sourcing-mode .spcc-kpis .spcc-kpi-blue::before,
.sourcing-mode .spcc-kpis .spcc-kpi-orange::before,
.sourcing-mode .spcc-kpis .spcc-kpi-green::before,
.sourcing-mode .spcc-kpis .spcc-kpi-yellow::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.sourcing-mode .spcc-kpis .spcc-kpi-blue::before { background: #2563eb; }
.sourcing-mode .spcc-kpis .spcc-kpi-orange::before { background: #c2410c; }
.sourcing-mode .spcc-kpis .spcc-kpi-green::before { background: #15803d; }
.sourcing-mode .spcc-kpis .spcc-kpi-yellow::before { background: #ca8a04; }
.sourcing-mode .spcc-kpis .kpi-top { margin-bottom: 4px; }
.sourcing-mode .spcc-kpis .kpi-label { font-size: 10px; }
.sourcing-mode .spcc-kpis .kpi-val { font-size: 23px; }
.sourcing-mode .spcc-kpis .spcc-kpi-detail { overflow: hidden; margin-top: 4px; color: #334155; font-size: 10.5px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
/* Anmol, 25-09-2026: "add here a arrow, from last report its increased or
   decrease... dead increase red decrease green, active opposite" */
.spcc-kpi-delta { display: inline-flex; align-items: center; gap: 3px; margin-left: 7px; padding: 3px 9px; border: 1.5px solid; border-radius: 999px; font-size: 13px; font-weight: 800; vertical-align: middle; }
.spcc-kpi-delta.good { color: #166534; background: #f0fdf4; border-color: #15803d; }
.spcc-kpi-delta.bad { color: #991b1b; background: #fef2f2; border-color: #b91c1c; }
.spcc-kpi-delta.flat { color: #334155; background: #f8fafc; border-color: #64748b; }
.spcc-kpi-delta-ic { flex: 0 0 auto; fill: currentColor; }
.spcc-kpi-delta-ic-down { transform: rotate(180deg); }
.spcc-kpi-delta-ic-flat { transform: rotate(90deg); }
.sourcing-mode .spcc-kpi-tip { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 1px solid #0f766e; border-radius: 50%; background: #ffffff; color: #0f766e; font: 800 11px/1 var(--sans); cursor: help; }
.sourcing-mode .spcc-kpi-tip::after { content: attr(data-tooltip); position: absolute; z-index: 90; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; padding: 7px 9px; border: 1px solid #111827; border-radius: 6px; background: #111827; color: #ffffff; font: 700 11px/1.35 var(--sans); text-align: left; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 150ms ease, transform 150ms ease; }
.sourcing-mode .spcc-kpi-tip:hover::after, .sourcing-mode .spcc-kpi-tip:focus-visible::after { opacity: 1; transform: translateY(0); }
.sourcing-mode .spcc-kpi-tip:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Sourcing Point: View card -- next-level-only quality breakdown for one
   row (RSM/ASM shows Zone/State, Zone shows SM, SM shows Executive). */
/* View pill: same red/orange/green rule as every other risk signal on
   this page (Anmol, 24-09-2026): danger red, watch orange, and green when
   over 80% of a row's points are Active OR it has zero Dead points.
   Rounded-pill shape matches the Target page's own View buttons. */
.spcc-view-btn { padding: 4px 14px; border: 1.5px solid; border-radius: 999px; background: #ffffff; font: 800 11px/1.2 var(--sans); cursor: pointer; }
.spcc-view-btn-risk { border-color: #dc2626; color: #b91c1c; }
.spcc-view-btn-risk:hover { background: #fef2f2; }
.spcc-view-btn-watch { border-color: #ea580c; color: #c2410c; }
.spcc-view-btn-watch:hover { background: #fff7ed; }
.spcc-view-btn-good { border-color: #16a34a; color: #15803d; }
.spcc-view-btn-good:hover { background: #f0fdf4; }
.spcc-view-btn-neutral { border-color: #94a3b8; color: #475569; }
.spcc-view-btn-neutral:hover { background: #f8fafc; }
.spcc-h-view, .spcc-cell-view { width: 72px; max-width: 72px; text-align: center; padding-left: 4px; padding-right: 4px; }
.spcc-view-modal { width: min(820px, 96vw); max-height: calc(100vh - 32px); overflow: hidden; border: 3px solid #0f766e; background: #f8fffd; box-shadow: 0 24px 56px rgba(8, 60, 56, .32); }
.spcc-view-modal:has(.spcc-view-badge-risk) { border-color: #dc2626; }
.spcc-view-modal:has(.spcc-view-badge-watch) { border-color: #ea580c; }
.spcc-view-modal:has(.spcc-view-badge-good) { border-color: #16a34a; }
.spcc-view-modal > header { position: relative; padding-bottom: 10px; }
.spcc-view-modal h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.spcc-view-badge { padding: 3px 10px; border: 1.5px solid; border-radius: 999px; font-size: 11px; font-weight: 800; }
.spcc-view-badge-risk { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.spcc-view-badge-watch { background: #ffedd5; border-color: #ea580c; color: #c2410c; }
.spcc-view-badge-good { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.spcc-view-badge-neutral { background: #f1f5f9; border-color: #94a3b8; color: #475569; }
.spcc-view-body { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.spcc-view-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.spcc-view-tile { position: relative; min-height: 72px; overflow: visible; padding: 8px 9px; border: 1.5px solid #8fd1c5; border-radius: 10px; background: #ffffff; box-shadow: 0 7px 15px -15px rgba(6, 78, 73, .7); }
.spcc-view-tile:nth-child(2) { border-color: #93c5fd; background: #f5f9ff; }
.spcc-view-tile:nth-child(4) { border-color: #fdba74; background: #fff8ef; }
.spcc-view-tile-danger { border-color: #ef4444; background: #fff1f2; box-shadow: 0 9px 18px -15px rgba(185, 28, 28, .85); }
.spcc-view-tile-status-dead { border-color: #ef4444; background: #fff1f2; }
.spcc-view-tile-status-live { border-color: #fb923c; background: #fff7ed; }
.spcc-view-tile-status-active { border-color: #22c55e; background: #f0fdf4; }
.spcc-view-tile-status-mixed { border-color: #94a3b8; background: #f8fafc; }
.spcc-view-tile-status-dead .spcc-view-tile-val { color: #b91c1c; }
.spcc-view-tile-status-live .spcc-view-tile-val { color: #c2410c; }
.spcc-view-tile-status-active .spcc-view-tile-val { color: #15803d; }
.spcc-view-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.spcc-view-tile-head span { font-size: 10.5px; font-weight: 750; color: #33544d; letter-spacing: .01em; }
.spcc-view-tile-val { font-size: 21px; font-weight: 900; letter-spacing: -.025em; color: #0b3f3b; }
.spcc-view-tile-danger .spcc-view-tile-val { color: #b91c1c; }
.spcc-view-tile-sub { margin-top: 2px; font-size: 10.5px; font-weight: 650; color: #5b6f6a; }
.spcc-view-tip { width: 15px; height: 15px; font-size: 10px; }
.sourcing-mode .spcc-view-tip::after { top: calc(100% + 7px); bottom: auto; left: 0; right: auto; width: min(280px, 70vw); z-index: 30; }
.sourcing-mode .spcc-view-tile:nth-child(n+3) .spcc-view-tip::after { left: auto; right: 0; }
.sourcing-mode .spcc-view-info::after { top: calc(100% + 7px); bottom: auto; left: 0; right: auto; width: min(300px, 72vw); z-index: 40; }
.spcc-view-modal > header p { display: flex; align-items: center; gap: 5px; }
.spcc-view-info { flex: 0 0 auto; margin-left: 2px; }
.spcc-view-split { padding: 7px 9px; border: 1px solid #fed7aa; border-radius: 10px; background: #fffaf5; }
.spcc-view-bar { height: 8px; border-radius: 999px; background: #fb923c; overflow: hidden; border: 1px solid #c2410c; }
.spcc-view-bar-fill { height: 100%; background: #dc2626; }
.spcc-view-bar-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 10px; font-weight: 750; }
.spcc-view-bar-labels span:first-child { color: #b91c1c; }
.spcc-view-bar-labels span:last-child { color: #9a3412; text-align: right; }
.spcc-view-bar-labels b { font-weight: 900; }
.spcc-view-main { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 8px; }
.spcc-view-panel { min-width: 0; padding: 9px; border: 1px solid #b8d9d3; border-radius: 10px; background: #ffffff; }
.spcc-view-next-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; color: #0b3f3b; }
.spcc-view-next-head span { font-size: 10px; font-weight: 650; color: #5b6f6a; text-transform: uppercase; letter-spacing: .04em; }
.spcc-view-next-head > div { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.spcc-view-peer { display: grid; grid-template-columns: minmax(105px, .9fr) minmax(90px, 1fr) auto; align-items: center; gap: 7px; min-height: 30px; padding: 4px 6px; border-radius: 7px; color: #142f2c; font-size: 11px; font-weight: 750; }
.spcc-view-peer.selected { background: #e0f2fe; outline: 1px solid #60a5fa; }
.spcc-view-peer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spcc-view-peer-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.spcc-view-peer-track i { display: block; height: 100%; border-radius: inherit; }
.spcc-view-peer-risk { background: #ef4444; }
.spcc-view-peer-watch { background: #f59e0b; }
.spcc-view-peer-good { background: #22c55e; }
.spcc-view-peer b { min-width: 68px; text-align: right; font-weight: 900; }
.spcc-view-peer em { color: #5b6f6a; font-style: normal; font-weight: 650; }
.spcc-view-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px; border: 1.5px solid; border-radius: 8px; margin-bottom: 5px; font-size: 11.5px; font-weight: 750; }
.spcc-view-child-name { display: inline-flex; align-items: center; min-width: 0; gap: 7px; }
.spcc-view-child-name i { display: inline-grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #475569; color: #ffffff; font-size: 10px; font-style: normal; font-weight: 900; }
.spcc-view-child b { font-weight: 800; }
.spcc-view-child em { font-style: normal; font-weight: 600; opacity: .75; }
.spcc-view-child-risk { background: #fef2f2; border-color: #dc2626; color: #b91c1c; }
.spcc-view-child-watch { background: #fff7ed; border-color: #ea580c; color: #c2410c; }
.spcc-view-child-good { background: #f0fdf4; border-color: #16a34a; color: #15803d; }
.spcc-view-child-neutral { background: #f8fafc; border-color: #94a3b8; color: #475569; }
.spcc-view-child-risk .spcc-view-child-name i { background: #dc2626; }
.spcc-view-child-watch .spcc-view-child-name i { background: #ea580c; }
.spcc-view-child-good .spcc-view-child-name i { background: #16a34a; }
.spcc-view-more { margin: 2px 2px 0; color: #5b6f6a; font-size: 10.5px; font-weight: 700; }
.spcc-view-empty { margin: 0; font-size: 12px; color: #5b6f6a; }
.spcc-sales-action { margin-bottom: 6px; padding: 7px 8px; border: 1.5px solid; border-radius: 9px; }
.spcc-sales-action-improving { background: #f0fdf4; border-color: #22c55e; color: #15803d; }
.spcc-sales-action-worse { background: #fff1f2; border-color: #ef4444; color: #b91c1c; }
.spcc-sales-action-same { background: #f8fafc; border-color: #94a3b8; color: #475569; }
.spcc-sales-action-risk { background: #fff1f2; border-color: #ef4444; color: #b91c1c; }
.spcc-sales-action-watch { background: #fff7ed; border-color: #f97316; color: #c2410c; }
.spcc-sales-action header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.spcc-sales-action header > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; }
.spcc-sales-action header i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: currentColor; color: #fff; font-size: 10px; font-style: normal; }
.spcc-sales-action header > b { font-size: 10px; white-space: nowrap; }
.spcc-sales-action-metrics { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; padding-top: 5px; border-top: 1px solid currentColor; font-size: 10px; }
.spcc-sales-action-metrics span:last-child { text-align: right; font-weight: 800; }
.spcc-sales-action-metrics em { font-style: normal; opacity: .75; }
.spcc-sales-action p { margin: 4px 0 0; font-size: 10px; font-weight: 750; }
.spcc-overall-performance { color: #334155; }
.spcc-view-next { align-self: start; }
.spcc-performance-compact { padding: 8px 1px 2px; color: #334155; font-variant-numeric: tabular-nums; }
.spcc-performance-compact-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.spcc-performance-compact-head strong { font-size: 18px; line-height: 1.1; }
.spcc-performance-compact-head span { color: #475569; font-size: 10px; font-weight: 800; white-space: nowrap; }
.spcc-performance-compact-worse .spcc-performance-compact-head strong { color: #b91c1c; }
.spcc-performance-compact-improving .spcc-performance-compact-head strong { color: #15803d; }
.spcc-performance-compact-same .spcc-performance-compact-head strong { color: #475569; }
.spcc-performance-compact-metrics { display: grid; gap: 0; }
.spcc-performance-compact-metrics > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; align-items: center; gap: 7px; min-height: 29px; border-top: 1px solid #e2e8f0; font-size: 11px; }
.spcc-performance-compact-metrics span { font-weight: 750; }
.spcc-performance-compact-metrics b { white-space: nowrap; }
.spcc-performance-compact-metrics em { font-style: normal; font-weight: 900; text-align: right; }
.spcc-compact-delta-bad { color: #b91c1c; }
.spcc-compact-delta-good { color: #15803d; }
.spcc-compact-delta-same { color: #475569; }
.spcc-performance-compact p { margin: 3px 0; font-size: 11px; }
.spcc-performance-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 11px; }
.spcc-performance-summary span { display: grid; gap: 1px; }
.spcc-performance-summary b { font-size: 13px; }
.spcc-performance-summary em { font-style: normal; font-weight: 700; }
.spcc-performance-summary small { color: #64748b; font-size: 10px; font-weight: 800; white-space: nowrap; }
.spcc-overall-performance-improving .spcc-performance-summary b { color: #15803d; }
.spcc-overall-performance-worse .spcc-performance-summary b { color: #b91c1c; }
.spcc-overall-performance-same .spcc-performance-summary b { color: #475569; }
.spcc-performance-chart { position: relative; height: 112px; overflow: hidden; border-bottom: 1px solid #cbd5e1; font-variant-numeric: tabular-nums; }
.spcc-performance-axis { position: absolute; inset: 4px auto 20px 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; color: #64748b; font-size: 8px; font-weight: 800; }
.spcc-performance-grid { position: absolute; inset: 8px 0 20px 28px; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.spcc-performance-grid i { border-top: 1px dashed #dbe4ee; }
.spcc-performance-grid i:last-child { border-bottom: 1px dashed #dbe4ee; }
.spcc-performance-bars { position: absolute; inset: 8px 14px 20px 28px; display: flex; align-items: end; justify-content: space-around; }
.spcc-performance-bars > div { position: relative; display: flex; align-items: end; justify-content: center; width: 42px; height: 100%; }
.spcc-performance-bars > div > strong { position: absolute; z-index: 4; transform: translateY(-2px); color: #b91c1c; font-size: 10px; font-weight: 900; white-space: nowrap; }
.spcc-performance-bars > div > strong em { font-size: 8.5px; font-style: normal; font-weight: 800; }
.spcc-performance-bars b { width: 24px; min-height: 2px; border-radius: 7px 7px 2px 2px; box-shadow: 0 5px 10px -7px rgba(15, 23, 42, .55); }
.spcc-performance-bars span { position: absolute; top: calc(100% + 5px); color: #475569; font-size: 9px; font-weight: 900; white-space: nowrap; }
.spcc-performance-chart svg { position: absolute; z-index: 3; inset: 8px 14px 20px 28px; width: calc(100% - 42px); height: calc(100% - 28px); overflow: visible; pointer-events: none; }
.spcc-performance-chart polyline { fill: none; stroke: #16a34a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.spcc-performance-chart circle { fill: #ffffff; stroke: #16a34a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.spcc-performance-line-label { position: absolute; z-index: 5; transform: translate(-50%, -115%); padding: 1px 4px; border: 1px solid #86efac; border-radius: 5px; background: #f0fdf4; color: #15803d; font-size: 9px; font-weight: 900; white-space: nowrap; }
.spcc-performance-line-label em { font-size: 8px; font-style: normal; }
.spcc-performance-line-label-left { left: calc(28px + (100% - 42px) * .25); }
.spcc-performance-line-label-right { left: calc(28px + (100% - 42px) * .75); }
.spcc-active-down .spcc-performance-chart polyline, .spcc-active-down .spcc-performance-chart circle { stroke: #dc2626; }
.spcc-active-down .spcc-performance-line-label { border-color: #fca5a5; background: #fff1f2; color: #b91c1c; }
.spcc-active-same .spcc-performance-chart polyline, .spcc-active-same .spcc-performance-chart circle { stroke: #f97316; }
.spcc-active-same .spcc-performance-line-label { border-color: #fdba74; background: #fff7ed; color: #c2410c; }
.spcc-dead-up .spcc-performance-bars b { background: #dc2626; }
.spcc-dead-up .spcc-performance-bars .spcc-dead-bar-previous { background: #f87171; }
.spcc-dead-down .spcc-performance-bars b { background: #f97316; }
.spcc-dead-down .spcc-performance-bars .spcc-dead-bar-previous { background: #fdba74; }
.spcc-dead-same .spcc-performance-bars b { background: #64748b; }
.spcc-dead-down .spcc-performance-bars > div > strong { color: #c2410c; }
.spcc-dead-same .spcc-performance-bars > div > strong { color: #475569; }
.spcc-performance-values { display: grid; gap: 2px; margin-top: 7px; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.spcc-performance-values-head, .spcc-performance-value-row { display: grid; grid-template-columns: .72fr 1.15fr 1.15fr .55fr; align-items: center; gap: 5px; }
.spcc-performance-values-head { color: #64748b; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.spcc-performance-value-row { min-height: 20px; padding: 2px 4px; border-radius: 5px; background: #f8fafc; }
.spcc-performance-value-row span, .spcc-performance-value-row em { text-align: right; white-space: nowrap; }
.spcc-performance-value-row em { padding: 1px 4px; border-radius: 4px; font-style: normal; font-weight: 900; }
.spcc-performance-value-dead b { color: #b91c1c; }
.spcc-performance-value-live b { color: #0369a1; }
.spcc-performance-value-active b { color: #15803d; }
.spcc-delta-bad { background: #fee2e2; color: #b91c1c; }
.spcc-delta-good { background: #dcfce7; color: #15803d; }
.spcc-delta-watch { background: #ffedd5; color: #c2410c; }
.spcc-delta-same { background: #e2e8f0; color: #475569; }
.spcc-simple-trend { padding-top: 5px; border-top: 1px solid #dbe4ee; }
.spcc-simple-trend + .spcc-simple-trend { margin-top: 6px; }
.spcc-simple-trend-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.spcc-simple-trend-head > b { color: #334155; }
.spcc-simple-trend-head > em, .spcc-live-summary > em { min-width: 28px; padding: 1px 5px; border-radius: 5px; font-style: normal; font-weight: 900; text-align: center; }
.spcc-active-line-chart { position: relative; height: 62px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.spcc-active-line-chart svg { position: absolute; inset: 12px 0 13px; width: 100%; height: 42px; overflow: visible; }
.spcc-active-line-chart line { stroke: #cbd5e1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.spcc-active-line-chart polyline { fill: none; stroke: #16a34a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.spcc-active-line-chart circle { fill: #ffffff; stroke: #16a34a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.spcc-active-down .spcc-active-line-chart polyline, .spcc-active-down .spcc-active-line-chart circle { stroke: #dc2626; }
.spcc-active-same .spcc-active-line-chart polyline, .spcc-active-same .spcc-active-line-chart circle { stroke: #f97316; }
.spcc-simple-label { position: absolute; top: 0; transform: translateX(-50%); color: #15803d; font-size: 10px; font-weight: 900; white-space: nowrap; }
.spcc-simple-label em, .spcc-dead-bar-chart strong em { font-size: 8.5px; font-style: normal; }
.spcc-simple-label-left, .spcc-simple-month-left { left: 18%; }
.spcc-simple-label-right, .spcc-simple-month-right { left: 82%; }
.spcc-active-down .spcc-simple-label { color: #b91c1c; }
.spcc-active-same .spcc-simple-label { color: #c2410c; }
.spcc-simple-month { position: absolute; bottom: 0; transform: translateX(-50%); color: #64748b; font-size: 8.5px; font-weight: 850; white-space: nowrap; }
.spcc-dead-bar-chart { display: flex; align-items: end; justify-content: space-around; height: 66px; margin-top: 2px; padding: 0 28px; border-bottom: 1px solid #cbd5e1; font-variant-numeric: tabular-nums; }
.spcc-dead-bar-chart > div { position: relative; display: flex; align-items: end; justify-content: center; width: 46px; height: 46px; }
.spcc-dead-bar-chart strong { position: absolute; bottom: calc(100% + 2px); color: #b91c1c; font-size: 10px; font-weight: 900; white-space: nowrap; }
.spcc-dead-bar-chart i { display: block; width: 26px; min-height: 2px; border-radius: 6px 6px 1px 1px; background: #dc2626; }
.spcc-dead-bar-chart span { position: absolute; top: calc(100% + 4px); color: #64748b; font-size: 8.5px; font-weight: 850; white-space: nowrap; }
.spcc-dead-up .spcc-dead-bar-chart .spcc-dead-bar-previous { background: #f87171; }
.spcc-dead-down .spcc-dead-bar-chart i { background: #f97316; }
.spcc-dead-down .spcc-dead-bar-chart .spcc-dead-bar-previous { background: #fdba74; }
.spcc-dead-down .spcc-dead-bar-chart strong { color: #c2410c; }
.spcc-dead-same .spcc-dead-bar-chart i { background: #64748b; }
.spcc-dead-same .spcc-dead-bar-chart strong { color: #475569; }
.spcc-live-summary { display: grid; grid-template-columns: .8fr 1.8fr auto; align-items: center; gap: 6px; margin-top: 7px; padding: 5px 7px; border-radius: 6px; background: #eff6ff; color: #334155; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.spcc-live-summary b { color: #0369a1; }
.spcc-live-summary span { text-align: center; white-space: nowrap; }
.spcc-live-summary em { background: #dbeafe; color: #1e40af; }
.spcc-view-insight { padding: 9px 11px; border: 0; border-radius: 10px; background: #0f766e; color: #ffffff; box-shadow: 0 12px 24px -18px rgba(6, 78, 73, .9); font-size: 11.5px; font-weight: 700; line-height: 1.42; }
.spcc-view-insight span { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; color: #bff4e7; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.spcc-view-insight .spcc-view-info { border-color: #bff4e7; background: transparent; color: #ffffff; }
.spcc-view-insight p { margin: 0; }
@media (max-width: 760px) {
  .spcc-view-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); overflow: auto; }
  .spcc-view-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spcc-view-main { grid-template-columns: 1fr; }
  .sourcing-mode .spcc-view-tile:nth-child(odd) .spcc-view-tip::after { left: 0; right: auto; }
  .sourcing-mode .spcc-view-tile:nth-child(even) .spcc-view-tip::after { left: auto; right: 0; }
}

.sourcing-mode #sectionNav button[data-section="sourcing"]:active,
.sourcing-mode .crumb:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .sourcing-mode .spcc-table tbody tr.drill,
  .sourcing-mode #sectionNav button[data-section="sourcing"],
  .sourcing-mode .crumb { transition-duration: 0ms; }
}

/* Shared dashboard control language: high-contrast, bold, and consistent
   across Overview, Target, Quality, People & Risk, and Sourcing Point. */
.filter-group-head h3,
.filter-group-head p,
.ctl label,
.ctl select,
.ctl input,
.ctl input::placeholder,
.crumb { color: #111827; font-weight: 750; }
.ctl input::placeholder { opacity: 1; }
.crumb.on {
  background: #ffffff;
  border: 1px solid #111827;
  color: #000000;
  font-weight: 850;
}

/* Sourcing appearance: independent from report/export styles and Target. */
.sourcing-mode { --ease-out-strong: cubic-bezier(.23, 1, .32, 1); }

.sourcing-mode .spcc-visual-controls label { font-weight: 800; margin-right: 4px; }
.sourcing-mode .spcc-visual-controls :is(button, select) {
  min-height: 36px; padding: 6px 12px; border: 1px solid #466c65;
  border-radius: 7px; background: #f0f9f6; color: #102d2b; font: inherit;
  font-weight: 700; cursor: pointer;
}
.sourcing-mode .spcc-visual-controls button:disabled { opacity: .5; cursor: not-allowed; }
.sourcing-mode .spcc-motion-hint { margin-left: auto; color: #415b57; font-size: 12px; }
.sourcing-mode[data-sp-style] #sectionBody > .focus {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid #3b9e90;
  box-shadow: 0 8px 0 #084d47, 0 22px 30px -20px #0c514d;
}
.sourcing-mode[data-sp-style] #sectionBody > .focus::after {
  content: ""; position: absolute; z-index: -1; width: 210px; height: 210px;
  right: -35px; top: -100px; border: 24px solid #ffffff1c; border-radius: 40px;
  transform: rotate(30deg); pointer-events: none;
}
.sourcing-mode[data-sp-style] .spcc-kpis .spcc-kpi {
  position: relative; border-radius: 12px; border-bottom-width: 3px;
  box-shadow: 0 5px 0 #c6dcd7, 0 12px 16px -12px #24564e;
}
.sourcing-mode[data-sp-style="midnight"] { background: #e9edf5; }
.sourcing-mode[data-sp-style="midnight"] #sectionBody > .focus {
  background: #14233d; border-color: #637ba5;
  box-shadow: 0 8px 0 #090f1c, 0 22px 30px -20px #14233d;
}
.sourcing-mode[data-sp-style="midnight"] .spcc-visual-controls { border-color: #94a3bf; background: #f7f9ff; }
.sourcing-mode[data-sp-style="midnight"] .spcc-kpis .spcc-kpi { box-shadow: 0 5px 0 #afbdd4, 0 12px 16px -12px #14233d; }
.sourcing-mode[data-sp-style="paper"] { background: #f4efe4; }
.sourcing-mode[data-sp-style="paper"] #sectionBody > .focus {
  background: #fff9ec; border: 2px solid #352e23; border-radius: 4px;
  box-shadow: 6px 6px 0 #b8a786;
}
.sourcing-mode[data-sp-style="paper"] #sectionBody > .focus :is(h1,p) { color: #352e23; }
.sourcing-mode[data-sp-style="paper"] #sectionBody > .focus::after { border-color: #b8a78640; border-radius: 0; }
.sourcing-mode[data-sp-style="paper"] .spcc-visual-controls { background: #fff9ec; border-color: #b8a786; border-radius: 4px; }
.sourcing-mode[data-sp-style="paper"] .spcc-kpis .spcc-kpi { border-radius: 4px; box-shadow: 4px 4px 0 #c8baa0; }
@keyframes spcc-detail-enter {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes spcc-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .sourcing-mode[data-sp-motion="on"] .spcc-notes-overlay { animation: spcc-backdrop-enter 200ms ease; }
  .sourcing-mode[data-sp-motion="on"] .spcc-notes-overlay > .spcc-notes-modal {
    animation: spcc-detail-enter 280ms var(--ease-out-strong); transform-origin: center;
  }
  .sourcing-mode[data-sp-motion="on"] :is(.spcc-card-actions, .spcc-visual-controls, .spcc-notes-modal) button,
  .sourcing-mode[data-sp-motion="on"] .spcc-crumb {
    transition: transform 160ms var(--ease-out-strong);
  }
  .sourcing-mode[data-sp-motion="on"] :is(.spcc-card-actions, .spcc-visual-controls, .spcc-notes-modal) button:active,
  .sourcing-mode[data-sp-motion="on"] .spcc-crumb:active { transform: scale(.96); }
  @media (hover: hover) and (pointer: fine) {
    .sourcing-mode[data-sp-motion="on"] .spcc-kpis .spcc-kpi {
      transition: transform 200ms var(--ease-out-strong);
    }
    .sourcing-mode[data-sp-motion="on"] .spcc-kpis .spcc-kpi:hover {
      transform: perspective(900px) translateY(-7px) rotateX(5deg) rotateY(-3deg);
      z-index: 3;
    }
    .sourcing-mode[data-sp-motion="on"] .spcc-kpis .spcc-kpi:active { transform: perspective(900px) translateY(-2px) scale(.98); }
  }
}
/* Never move keyboard-focused controls, tables, or exported reports. */
.sourcing-mode:has(:focus-visible) .spcc-notes-overlay,
.sourcing-mode:has(:focus-visible) .spcc-notes-modal { animation: none !important; }
.sourcing-mode button:focus-visible,
.sourcing-mode .spcc-kpis .spcc-kpi:has(:focus-visible) { transition: none !important; transform: none !important; }
.sourcing-mode[data-sp-motion="off"] .spcc-notes-overlay,
.sourcing-mode[data-sp-motion="off"] .spcc-notes-modal { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .sourcing-mode .spcc-notes-overlay, .sourcing-mode .spcc-notes-modal,
  .sourcing-mode .spcc-kpis .spcc-kpi { animation: none !important; transform: none !important; transition: none !important; }
}
@media (max-width: 600px) { .sourcing-mode .spcc-motion-hint { width: 100%; margin-left: 0; } }

/* Sourcing Point: clickable health KPI MIS. */
.sourcing-mode .spcc-kpis .spcc-kpi-clickable { cursor: pointer; }
.sourcing-mode .spcc-kpis .spcc-kpi-clickable:hover { box-shadow: inset 0 0 0 2px rgba(15, 118, 110, .35); }
.spcc-health-mis-modal { position: relative; isolation: isolate; display: flex; flex-direction: column; box-sizing: border-box; width: min(920px, 96vw); height: calc(100vh - 48px); max-height: calc(100vh - 48px); overflow: hidden; padding: 12px; border: 2px solid #000000 !important; border-radius: 4px; }
.spcc-health-mis-modal > header { position: relative; top: auto; z-index: 20; display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 0 8px; background: #f7fcfa; }
.spcc-health-mis-modal > header button { flex: 0 0 auto; }
.spcc-health-mis-modal h2 span { margin-left: 6px; color: #b91c1c; }
.spcc-health-insights { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 6px; }
.spcc-health-insight { position: relative; min-width: 0; padding: 7px 9px; border: 2px solid #94a3b8; border-radius: 6px; background: #ffffff; color: #111827; cursor: help; }
.spcc-health-insight b, .spcc-health-insight strong, .spcc-health-insight span { display: block; }
.spcc-health-insight b { margin-bottom: 2px; font-size: 10px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.spcc-health-insight strong { overflow: hidden; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.spcc-health-insight span { margin-top: 2px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.spcc-health-insight em { display: block; margin-top: 4px; color: #475569; font-size: 10px; font-style: normal; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.spcc-health-insight::after { content: attr(data-tooltip); position: absolute; z-index: 25; left: 0; bottom: calc(100% + 7px); width: max-content; max-width: min(420px, 78vw); padding: 8px 10px; border: 1px solid #111827; border-radius: 6px; background: #111827; color: #ffffff; font-size: 11px; font-weight: 750; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 120ms ease, transform 120ms ease; }
.spcc-health-insight:hover::after, .spcc-health-insight:focus-visible::after { opacity: 1; transform: translateY(0); }
.spcc-health-insight:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.spcc-health-mis-dead .spcc-health-insight { border-color: #ef4444; background: #fff7f7; }
.spcc-health-mis-live .spcc-health-insight { border-color: #ea580c; background: #fff7ed; }
.spcc-health-mis-active .spcc-health-insight { border-color: #16a34a; background: #f0fdf4; }
.spcc-health-insight-note { flex: 0 0 auto; margin: 0 0 8px; color: #334155; font-size: 11px; font-weight: 700; }
.spcc-legacy-mis-wrap { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; border: 2px solid #000000; border-radius: 0; }
.spcc-legacy-mis-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #000000; background: #ffffff; }
.spcc-health-mis-modal .spcc-legacy-mis-table thead th, .spcc-health-mis-modal .spcc-legacy-mis-table td:first-child { position: static; z-index: auto; }
.spcc-legacy-mis-table th, .spcc-legacy-mis-table td { padding: 3px 7px; height: 24px; border-right: 1px solid #000000; border-bottom: 1px solid #000000; font-weight: 700; text-align: center; }
.spcc-legacy-mis-table td.legacy-mis-name, .spcc-legacy-mis-table th.legacy-mis-name { text-align: left; }
.spcc-legacy-mis-table td.legacy-mis-name { background: #ffffff; font-weight: 750; }
.spcc-legacy-mis-table thead th { position: sticky; top: 0; z-index: 1; background: #ffc000; font-weight: 900; }
.spcc-health-mis-modal .spcc-legacy-mis-table thead th.spcc-health-tooltip { position: relative; z-index: 3; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.spcc-health-tooltip::after { content: attr(data-tooltip); position: absolute; z-index: 20; top: calc(100% + 5px); left: 50%; width: max-content; max-width: min(330px, 70vw); padding: 7px 9px; border: 1px solid #111827; border-radius: 5px; background: #111827; color: #ffffff; font-size: 11px; font-weight: 750; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, -3px); transition: opacity 120ms ease, transform 120ms ease; }
.spcc-health-tooltip:hover::after, .spcc-health-tooltip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.spcc-health-tooltip:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
.spcc-legacy-mis-table tbody tr.legacy-mis-zone-karnataka td { background: #ffc000; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.legacy-mis-zone td { background: #ed7d31; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.legacy-mis-state-total td { background: #ed7d31; font-weight: 900; border-top: 2px solid #000000; }
.spcc-legacy-mis-table tbody tr.legacy-mis-grand-total td { background: #ffff00; font-weight: 950; border-top: 2px solid #000000; }
.spcc-legacy-mis-table tr:last-child td { border-bottom: 0; }
.spcc-legacy-mis-table th:last-child, .spcc-legacy-mis-table td:last-child { border-right: 0; }
.spcc-legacy-mis-table .spcc-flag-red { color: #c91d35; }
.spcc-legacy-mis-table .spcc-flag-green { color: #078a4b; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row td { color: #000000; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row td.legacy-mis-name { font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-dead.spcc-health-critical td { background: #fecaca; border-top-color: #b91c1c; border-bottom-color: #b91c1c; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-dead.spcc-health-high td { background: #ffe4e6; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-dead.spcc-health-low td { background: #fff7f7; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-live.spcc-health-critical td { background: #fed7aa; border-top-color: #c2410c; border-bottom-color: #c2410c; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-live.spcc-health-high td { background: #ffedd5; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-live.spcc-health-low td { background: #fff7ed; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-active.spcc-health-critical td { background: #bbf7d0; border-top-color: #15803d; border-bottom-color: #15803d; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-active.spcc-health-high td { background: #dcfce7; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-active.spcc-health-low td { background: #f0fdf4; }
.spcc-legacy-mis-table th:not(.legacy-mis-name), .spcc-legacy-mis-table td:not(.legacy-mis-name) { text-align: center; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-dead.spcc-health-critical:not(.legacy-mis-zone-karnataka):not(.legacy-mis-zone):not(.legacy-mis-state-total):not(.legacy-mis-grand-total) td:nth-child(5) { color: #b91c1c; font-weight: 950; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-dead.spcc-health-high:not(.legacy-mis-zone-karnataka):not(.legacy-mis-zone):not(.legacy-mis-state-total):not(.legacy-mis-grand-total) td:nth-child(5) { color: #dc2626; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-live:not(.legacy-mis-zone-karnataka):not(.legacy-mis-zone):not(.legacy-mis-state-total):not(.legacy-mis-grand-total) td:nth-child(5) { color: #c2410c; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-active:not(.legacy-mis-zone-karnataka):not(.legacy-mis-zone):not(.legacy-mis-state-total):not(.legacy-mis-grand-total) td:nth-child(5) { color: #15803d; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-ka-1 td { background: #fcd34d !important; border-top: 3px solid #92400e !important; border-bottom: 2px solid #92400e !important; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-ka-2 td { background: #fdba74 !important; border-top: 3px solid #9a3412 !important; border-bottom: 2px solid #9a3412 !important; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-ap-tg td { background: #5eead4 !important; border-top: 3px solid #0f766e !important; border-bottom: 2px solid #0f766e !important; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-tamil-nadu td { background: #93c5fd !important; border-top: 3px solid #1d4ed8 !important; border-bottom: 2px solid #1d4ed8 !important; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-kerala td { background: #c4b5fd !important; border-top: 3px solid #6d28d9 !important; border-bottom: 2px solid #6d28d9 !important; font-weight: 900; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-total-karnataka td { background: #fb923c !important; border-top: 3px solid #7c2d12 !important; border-bottom: 3px solid #7c2d12 !important; font-weight: 950; }
.spcc-legacy-mis-table tbody tr.spcc-health-summary-row.spcc-health-group-total td { background: #fef08a !important; border-top: 3px solid #854d0e !important; border-bottom: 3px solid #854d0e !important; font-weight: 950; }
.spcc-health-mis-empty { padding: 10px; color: #64748b; font-weight: 700; text-align: center; }
@media (max-width: 720px) { .spcc-health-insights { grid-template-columns: 1fr; } }

/* Sourcing Point MIS: mirrors the supplied operational Excel report while
   keeping the data live from the dashboard payload. */
.spcc-notes-overlay:has(.spcc-full-mis-modal) { padding: 12px; }
.spcc-full-mis-modal { box-sizing: border-box; width: 100%; height: 100%; max-height: none; display: flex; flex-direction: column; overflow: hidden; padding: 10px; border: 2px solid #111827 !important; border-radius: 12px; }
.spcc-full-mis-modal > header { position: relative; top: auto; z-index: 8; flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -10px -10px 5px; padding: 7px 10px 5px; border-bottom: 1px solid #111827; background: #f7fcfa; }
.spcc-full-mis-modal > header h2 { margin: 0; color: #101828; font-size: 16px; }
.spcc-full-mis-modal > header p { display: none; }
.spcc-mis-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.spcc-mis-download { min-height: 30px; padding: 5px 10px; border: 1px solid #075e54; border-radius: 7px; background: #e3f5ee; color: #075e54; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.spcc-full-mis-modal > header .spcc-mis-download { width: auto; height: 30px; padding: 5px 10px; font: 850 12px/1 var(--sans); white-space: nowrap; }
.spcc-mis-download:hover { background: #c9eadf; }
.spcc-mis-download:focus-visible, .spcc-full-mis-modal button:focus-visible { outline: 3px solid #f4b183; outline-offset: 2px; }
.spcc-mis-insights { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0 0 5px; }
.spcc-mis-insights > span { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 3px 8px; border: 1px solid; border-radius: 6px; font-size: 10px; font-weight: 750; }
.spcc-mis-insights > span b { text-transform: uppercase; font-size: 9px; letter-spacing: .03em; }
.spcc-mis-insights .danger { border-color: #dc2626; background: #fee2e2; color: #7f1d1d; }
.spcc-mis-insights .on-track { border-color: #ea580c; background: #ffedd5; color: #7c2d12; }
.spcc-mis-insights .best { border-color: #15803d; background: #dcfce7; color: #14532d; }
.spcc-mis-legend { display: flex; justify-content: flex-end; gap: 0; flex: 0 0 auto; margin-left: auto; font-size: 9px; font-weight: 850; }
.spcc-mis-legend span { padding: 2px 6px; border: 1px solid #111827; }
.spcc-mis-legend .mis-dead { background: #ff0000; color: #ffffff; }
.spcc-mis-legend .mis-live { background: #f4b183; color: #111827; }
.spcc-mis-legend .mis-active { background: #92d050; color: #111827; }
.spcc-full-mis-wrap { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; scrollbar-color: #64748b #e2e8f0; border: 2px solid #111827; background: #ffffff; }
.spcc-full-mis-table { width: max-content; min-width: 100%; height: auto; table-layout: auto; border-collapse: collapse; color: #111827; background: #ffffff; font-size: 11px; }
.spcc-full-mis-table th, .spcc-full-mis-table td { box-sizing: border-box; height: 17px; padding: 1px 3px; border: 1px solid #111827; text-align: center; vertical-align: middle; font-weight: 700; white-space: nowrap; }
.spcc-full-mis-table thead th { position: sticky; top: 0; z-index: 4; height: 40px; background: #1d9bc9; color: #ffffff; font-size: 13px; font-weight: 900; line-height: 1.1; white-space: normal; }
.spcc-full-mis-table thead .mis-disb { background: #6d28d9; color: #ffffff; }
.spcc-full-mis-table thead .mis-dead { background: #ff0000; color: #ffffff; }
.spcc-full-mis-table thead .mis-live { background: #f4b183; color: #111827; }
.spcc-full-mis-table thead .mis-active { background: #92d050; color: #111827; }
.spcc-mis-state { background: #c6e8f7; font-weight: 900 !important; }
.spcc-mis-zone { background: #ffffff; font-weight: 850 !important; }
.spcc-mis-name { overflow: hidden; text-align: center !important; background: #ffffff; font-weight: 800 !important; text-overflow: ellipsis; }
.spcc-mis-detail:hover td { background: #eff8ff; }
.spcc-mis-detail:hover .spcc-mis-state { background: #b6def1; }
.spcc-full-mis-table td.mis-dead { color: #991b1b; font-weight: 900; }
.spcc-full-mis-table td.mis-live { color: #9a3412; font-weight: 900; }
.spcc-full-mis-table td.mis-active { color: #166534; font-weight: 900; }
.spcc-full-mis-table td.spcc-mis-heat.mis-dead { background: color-mix(in srgb, #ef4444 var(--heat), #ffffff); }
.spcc-full-mis-table td.spcc-mis-heat.mis-live { background: color-mix(in srgb, #f59e0b var(--heat), #ffffff); }
.spcc-full-mis-table td.spcc-mis-heat.mis-active { background: color-mix(in srgb, #22c55e var(--heat), #ffffff); }
.spcc-mis-zone-total td { background: #b7e8c0; font-weight: 950; }
.spcc-mis-zone-total td:first-child { text-align: left; }
.spcc-mis-state-total td { background: #f8d9c8; font-weight: 950; border-top-width: 2px; }
.spcc-mis-state-total td:first-child, .spcc-mis-grand-total td:first-child { text-align: left; }
.spcc-mis-grand-total td { background: #fff7b2; font-weight: 950; border-top-width: 2px; }
@media (max-height: 850px) { .spcc-full-mis-table { font-size: 9px; } .spcc-full-mis-table th, .spcc-full-mis-table td { height: 16px; padding: 0 2px; } .spcc-full-mis-table thead th { height: 34px; font-size: 11px; } }
@media (max-width: 900px) { .spcc-mis-insights { align-items: stretch; flex-wrap: wrap; } .spcc-mis-legend { width: 100%; justify-content: flex-start; margin-left: 0; } }
@media (max-width: 760px) { .spcc-full-mis-modal { width: calc(100vw - 10px); height: calc(100vh - 10px); padding: 7px; } .spcc-full-mis-modal > header { margin: -7px -7px 5px; padding: 7px; } .spcc-full-mis-modal > header h2 { font-size: 15px; } .spcc-mis-legend { font-size: 8px; } .spcc-mis-legend span { padding: 2px 4px; } .spcc-mis-download { font-size: 10px; } }

/* Sourcing Point Action Report (Anmol 29-09-2026: "use good color palette, improve KPI cards, filter more strong").
   Palette rule: teal = structure/brand, red / orange / green = point status only,
   slate / blue / violet / teal = the four table zones, sky = "New".
   #sectionBody in the selector beats the global `#sectionBody > * + *` border-top/margin reset, like .card does. */
.sourcing-mode #sectionBody .spcc-action-report {
  --ar-line: #1e293b; --ar-rule: #cbd5e1; --ar-ink: #0b1220; --ar-ink-2: #334155;
  --ar-brand: #0f766e; --ar-brand-dk: #134e4a; --ar-brand-soft: #ccfbf1; --ar-brand-50: #f0fdfa;
  --ar-dead: #dc2626; --ar-dead-ink: #991b1b; --ar-dead-soft: #fee2e2;
  --ar-chronic: #7f1d1d; --ar-chronic-soft: #f5e7e7;
  --ar-live: #ea580c; --ar-live-ink: #9a3412; --ar-live-soft: #ffedd5;
  --ar-active: #16a34a; --ar-active-ink: #166534; --ar-active-soft: #dcfce7;
  --ar-ease: cubic-bezier(.23, 1, .32, 1);
  margin: 18px 0 28px; border: 2px solid var(--ar-line); border-radius: var(--r); overflow: clip; background: #fff; color: var(--ar-ink);
  box-shadow: 0 18px 34px -26px rgba(8, 82, 76, .7);
}
.sourcing-mode .spcc-action-report ::selection { background: var(--ar-brand-soft); color: var(--ar-ink); }

/* Header: title + the whole scope's status mix. */
.sourcing-mode .spcc-action-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(600px, 760px); align-items: end; gap: 14px 28px; padding: 18px 20px; background: var(--ar-brand-dk); color: #fff; }
.sourcing-mode .spcc-action-header h2 { margin: 0; color: #fff; font-size: clamp(21px, 1.9vw, 27px); font-weight: 850; letter-spacing: -.02em; }
.sourcing-mode .spcc-action-header p { margin: 6px 0 0; color: var(--ar-brand-soft); font-size: 13px; font-weight: 700; }
.sourcing-mode .spcc-action-header p b { color: #fff; }
.sourcing-mode .spcc-action-mixbar { display: flex; gap: 2px; height: 6px; overflow: hidden; border-radius: 999px; background: #0b3431; }
.sourcing-mode .spcc-action-mixstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.sourcing-mode .spcc-action-stat { --c: #64748b; --ci: #334155; display: flex; align-items: center; gap: 6px 8px; min-width: 0; padding: 5px 10px; border: 2px solid transparent; border-radius: 9px; background: #fff; color: var(--ar-ink); font: inherit; text-align: left; cursor: pointer; transition: transform 160ms var(--ar-ease), background-color 150ms ease, border-color 150ms ease; }
.sourcing-mode .spcc-action-stat.dead { --c: var(--ar-dead); --ci: var(--ar-dead-ink); --cs: var(--ar-dead-soft); }
.sourcing-mode .spcc-action-stat.live { --c: var(--ar-live); --ci: var(--ar-live-ink); --cs: var(--ar-live-soft); }
.sourcing-mode .spcc-action-stat.active { --c: var(--ar-active); --ci: var(--ar-active-ink); --cs: var(--ar-active-soft); }
.sourcing-mode .spcc-action-stat > span { display: inline-flex; align-items: center; gap: 5px; color: var(--ar-ink-2); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.sourcing-mode .spcc-action-stat > span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sourcing-mode .spcc-action-stat b { color: var(--ci); font-size: 19px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.sourcing-mode .spcc-action-stat b small { margin-left: 4px; color: var(--ar-ink-2); font-size: 12px; font-weight: 700; }
.sourcing-mode .spcc-action-stat em { margin-left: auto; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.sourcing-mode .spcc-action-stat em.bad { background: var(--ar-dead-soft); color: var(--ar-dead-ink); }
.sourcing-mode .spcc-action-stat em.good { background: var(--ar-active-soft); color: var(--ar-active-ink); }
.sourcing-mode .spcc-action-stat em.flat { background: #e2e8f0; color: var(--ar-ink-2); }
.sourcing-mode .spcc-action-stat.on { border-color: var(--c); background: var(--cs); }
.sourcing-mode .spcc-action-stat.on em.flat { background: #fff; }
@media (hover: hover) and (pointer: fine) { .sourcing-mode .spcc-action-stat:not(.on):hover { background: #f1f5f9; } }
.sourcing-mode .spcc-action-stat:active { transform: scale(.97); }
.sourcing-mode .spcc-action-stat:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.sourcing-mode .spcc-action-mixbar .dead { background: var(--ar-dead); }
.sourcing-mode .spcc-action-mixbar .live { background: var(--ar-live); }
.sourcing-mode .spcc-action-mixbar .active { background: var(--ar-active); }
.sourcing-mode .spcc-action-chip { margin: 0; padding: 9px 20px; border-bottom: 1px solid var(--ar-line); background: #fff8e1; color: var(--ar-ink); font-size: 13px; line-height: 1.45; }

/* Filter panel. */

.sourcing-mode .spcc-action-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 20px; border-bottom: 1px solid var(--ar-line); background: var(--ar-brand-50); }
.sourcing-mode .spcc-action-filterhead { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
.sourcing-mode .spcc-action-filterhead svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: var(--ar-brand); fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.sourcing-mode .spcc-action-filterhead b { color: var(--ar-ink); font-size: 15px; font-weight: 850; }
.sourcing-mode .spcc-action-teamfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sourcing-mode .spcc-action-teamfilters > span { color: #64748b; font-size: 18px; font-weight: 800; line-height: 1; }
.sourcing-mode .spcc-action-teamfilters label { display: block; }
.sourcing-mode .spcc-action-teamfilters select { height: 34px; min-width: 170px; padding: 0 30px 0 10px; border: 2px solid #334155; border-radius: 8px; background-color: #fff; color: var(--ar-ink); font: 700 13px var(--sans); cursor: pointer; }
.sourcing-mode .spcc-action-teamfilters label.on select { border-color: var(--ar-brand); box-shadow: inset 0 0 0 1px var(--ar-brand); font-weight: 850; }
.sourcing-mode .spcc-action-teamreset { height: 34px; padding: 0 12px; border: 2px solid var(--ar-dead); border-radius: 8px; background: #fff; color: var(--ar-dead-ink); font: 800 12px var(--sans); cursor: pointer; transition: transform 160ms var(--ar-ease), background-color 150ms ease; }
.sourcing-mode .spcc-action-teamreset:disabled { border-color: #cbd5e1; color: #64748b; cursor: not-allowed; }
.sourcing-mode .spcc-action-switch { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin-left: auto; padding: 0 14px 0 6px; border: 2px solid #334155; border-radius: 999px; background: #fff; color: var(--ar-ink); font: 800 12px var(--sans); cursor: pointer; transition: transform 160ms var(--ar-ease), background-color 150ms ease; }
.sourcing-mode .spcc-action-switch .track { position: relative; width: 32px; height: 20px; border-radius: 999px; background: #94a3b8; transition: background-color 160ms ease; }
.sourcing-mode .spcc-action-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ar-ease); }
.sourcing-mode .spcc-action-switch[aria-pressed="true"] { border-color: var(--ar-brand); background: var(--ar-brand-soft); }
.sourcing-mode .spcc-action-switch[aria-pressed="true"] .track { background: var(--ar-brand); }
.sourcing-mode .spcc-action-switch[aria-pressed="true"] .track::after { transform: translateX(12px); }

/* Sections. */
.sourcing-mode .spcc-action-sec + .spcc-action-sec { border-top: 1px solid var(--ar-line); }
.sourcing-mode .spcc-action-sechead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 20px; border-bottom: 1px solid var(--ar-rule); background: #f8fafc; }
.sourcing-mode .spcc-action-sechead h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ar-ink); font-size: 18px; font-weight: 850; letter-spacing: -.01em; }
.sourcing-mode .spcc-action-sechead h3 small { color: var(--ar-ink-2); font-size: 13px; font-weight: 700; }
.sourcing-mode .spcc-action-sechead p { margin: 3px 0 0; color: var(--ar-ink-2); font-size: 13px; font-weight: 600; }
.sourcing-mode .spcc-action-sechead p b { color: var(--ar-ink); }
.sourcing-mode .spcc-action-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ar-brand); }
.sourcing-mode .spcc-action-dot.dead { background: var(--ar-dead); }
.sourcing-mode .spcc-action-dot.chronic { background: var(--ar-chronic); }
.sourcing-mode .spcc-action-dot.live { background: var(--ar-live); }
.sourcing-mode .spcc-action-dot.active { background: var(--ar-active); }

/* Action group cards. */
.sourcing-mode .spcc-action-sec.buckets .spcc-action-sechead { padding: 8px 20px; }
.sourcing-mode .spcc-action-sec.buckets .spcc-action-sechead h3 { font-size: 15px; }
.sourcing-mode .spcc-action-buckets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 20px 12px; background: #f8fafc; }
.sourcing-mode .spcc-action-bucket { display: grid; align-content: start; gap: 4px; padding: 9px 12px 9px; border: 1px solid var(--ar-rule); border-top: 4px solid var(--b); border-radius: 10px; background: #fff; color: var(--ar-ink); font: inherit; text-align: left; cursor: pointer; transition: transform 160ms var(--ar-ease), box-shadow 160ms ease, background-color 150ms ease; }
.sourcing-mode .spcc-action-bucket-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sourcing-mode .spcc-action-bucket-title { display: flex; align-items: center; gap: 7px; color: var(--ar-ink); font-size: 15px; font-weight: 850; }
.sourcing-mode .spcc-action-bucket-title::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--b); }
.sourcing-mode .spcc-action-bucket b { flex: none; color: var(--bi); font-size: 26px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.sourcing-mode .spcc-action-bucket b small { margin-left: 5px; color: var(--ar-ink-2); font-size: 12px; font-weight: 700; }
.sourcing-mode .spcc-action-bucket-rule { color: var(--ar-ink-2); font-size: 12px; font-weight: 600; line-height: 1.35; }
.sourcing-mode .spcc-action-bucket-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.sourcing-mode .spcc-action-bucket-meter { flex: 1; display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.sourcing-mode .spcc-action-bucket-meter i { display: block; height: 100%; border-radius: 999px; background: var(--b); }
.sourcing-mode .spcc-action-bucket-cta { display: inline-flex; align-items: center; gap: 2px; color: var(--bi); font-size: 12px; font-weight: 850; }
.sourcing-mode .spcc-action-bucket-cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sourcing-mode .spcc-action-bucket.dead { --b: var(--ar-dead); --bi: var(--ar-dead-ink); --bs: #fef2f2; }
.sourcing-mode .spcc-action-bucket.chronic { --b: var(--ar-chronic); --bi: var(--ar-chronic); --bs: #faf1f1; }
.sourcing-mode .spcc-action-bucket.live { --b: var(--ar-live); --bi: var(--ar-live-ink); --bs: #fff7ed; }
.sourcing-mode .spcc-action-bucket.active { --b: var(--ar-active); --bi: var(--ar-active-ink); --bs: #f0fdf4; }
.sourcing-mode .spcc-action-bucket.on { border-color: var(--b); background: var(--bs); box-shadow: inset 0 0 0 1px var(--b); }

/* Trend toolbar: pattern chips (filter) + sort. */
.sourcing-mode .spcc-action-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 10px 20px; border-bottom: 1px solid var(--ar-rule); background: #fff; }
.sourcing-mode .spcc-action-patterns, .sourcing-mode .spcc-action-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sourcing-mode .spcc-action-patterns > b, .sourcing-mode .spcc-action-sort > b { margin-right: 4px; color: var(--ar-ink); font-size: 13px; font-weight: 850; }
.sourcing-mode .p-all { --pt: var(--ar-brand); --pti: var(--ar-brand-dk); --pts: var(--ar-brand-soft); }
.sourcing-mode .p-stopped { --pt: var(--ar-dead); --pti: var(--ar-dead-ink); --pts: var(--ar-dead-soft); }
.sourcing-mode .p-zero { --pt: var(--ar-chronic); --pti: var(--ar-chronic); --pts: var(--ar-chronic-soft); }
.sourcing-mode .p-falling { --pt: var(--ar-live); --pti: var(--ar-live-ink); --pts: var(--ar-live-soft); }
.sourcing-mode .p-steady { --pt: #475569; --pti: #334155; --pts: #e2e8f0; }
.sourcing-mode .p-rising { --pt: var(--ar-active); --pti: var(--ar-active-ink); --pts: var(--ar-active-soft); }
.sourcing-mode .p-new { --pt: #0284c7; --pti: #075985; --pts: #e0f2fe; }
.sourcing-mode .spcc-action-pat { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1.5px solid var(--pt); border-radius: 999px; background: #fff; color: var(--pti); font: 800 13px var(--sans); cursor: pointer; transition: transform 160ms var(--ar-ease), background-color 150ms ease; }
.sourcing-mode .spcc-action-pat small { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--pts); color: var(--pti); font-size: 12px; font-weight: 850; text-align: center; }
.sourcing-mode .spcc-action-pat.on { background: var(--pt); color: #fff; }
.sourcing-mode .spcc-action-pat.on small { background: #fff; color: var(--pti); }
.sourcing-mode .spcc-action-seg { display: inline-flex; overflow: hidden; border: 2px solid #334155; border-radius: 8px; background: #fff; }
.sourcing-mode .spcc-action-seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--ar-ink); font: 800 12px var(--sans); cursor: pointer; transition: background-color 150ms ease; }
.sourcing-mode .spcc-action-seg button + button { border-left: 1px solid #334155; }
.sourcing-mode .spcc-action-seg button[aria-pressed="true"] { background: #1e293b; color: #fff; }
.sourcing-mode .spcc-action-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 8px 20px; border-bottom: 1px solid var(--ar-line); background: #f8fafc; color: var(--ar-ink); font-size: 13px; }
.sourcing-mode .spcc-action-legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.sourcing-mode .spcc-action-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.sourcing-mode .spcc-action-legend .dead::before { background: var(--ar-dead); }
.sourcing-mode .spcc-action-legend .live::before { background: var(--ar-live); }
.sourcing-mode .spcc-action-legend .active::before { background: var(--ar-active); }
.sourcing-mode .spcc-action-legend em { margin-left: auto; color: var(--ar-ink-2); font-style: normal; font-weight: 600; }

/* Queue table. */
.sourcing-mode .spcc-action-scroll { overflow-x: auto; }
.sourcing-mode .spcc-action-report table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--ar-ink); font-size: 13px; }
.sourcing-mode .spcc-action-report th { padding: 9px 10px; border-right: 1px solid var(--ar-line); border-bottom: 2px solid var(--ar-line); color: var(--ar-ink); font-size: 12px; font-weight: 850; letter-spacing: .02em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.sourcing-mode .spcc-action-report td { padding: 10px; border-right: 1px solid var(--ar-rule); border-bottom: 1px solid var(--ar-rule); background: #fff; text-align: left; vertical-align: middle; }
.sourcing-mode .spcc-action-report th:last-child, .sourcing-mode .spcc-action-report td:last-child { border-right: 0; }
.sourcing-mode .spcc-action-report tbody tr:last-child td { border-bottom: 0; }
.sourcing-mode .spcc-action-report .spcc-action-groups th { box-sizing: border-box; height: 32px; padding: 0 10px; border-bottom: 1px solid var(--ar-line); color: #fff; font-size: 12px; letter-spacing: .08em; text-align: center; }
.sourcing-mode .spcc-action-report .spcc-action-groups th.g-point { background: #334155; }
.sourcing-mode .spcc-action-report .spcc-action-groups th.g-who { background: #1d4ed8; }
.sourcing-mode .spcc-action-report .spcc-action-groups th.g-trend { background: #6d28d9; }
.sourcing-mode .spcc-action-report .spcc-action-groups th.g-act { background: var(--ar-brand); }
.sourcing-mode .spcc-action-report th.g-point { background: #f1f5f9; }
.sourcing-mode .spcc-action-report th.g-who { background: #dbeafe; }
.sourcing-mode .spcc-action-report th.g-trend { background: #ede9fe; text-align: center; }
.sourcing-mode .spcc-action-report th.g-act { background: var(--ar-brand-soft); }
.sourcing-mode .spcc-action-report tbody tr td.g-point { background: #fff; }
.sourcing-mode .spcc-action-report tbody tr td.g-who { background: #f8fbff; }
.sourcing-mode .spcc-action-report tbody tr td.g-trend { background: #faf8ff; }
.sourcing-mode .spcc-action-report tbody tr td.g-act { background: #f7fefc; }
.sourcing-mode .spcc-action-report th:first-child, .sourcing-mode .spcc-action-report td.rank { width: 36px; text-align: center; }
.sourcing-mode .spcc-action-report td.rank { font-weight: 850; font-variant-numeric: tabular-nums; }
.sourcing-mode .spcc-action-report td small { display: block; margin-top: 3px; color: var(--ar-ink-2); font-size: 12px; font-weight: 600; line-height: 1.35; }
.sourcing-mode .spcc-action-report td.owner { min-width: 170px; }
.sourcing-mode .spcc-action-report td.owner b, .sourcing-mode .spcc-action-report td.act b { font-weight: 800; }
.sourcing-mode .spcc-action-report td.act { min-width: 230px; }
.sourcing-mode .spcc-action-report td.g-trend { width: 160px; text-align: center; }
.sourcing-mode .spcc-action-report .spcc-action-grouprow td { padding: 8px 12px; border-bottom: 1px solid var(--ar-rule); background: var(--pts); color: var(--pti); font-size: 13px; }
.sourcing-mode .spcc-action-report .spcc-action-grouprow td b { font-weight: 850; }
.sourcing-mode .spcc-action-report .spcc-action-grouprow td span { margin-left: 10px; color: var(--ar-ink-2); font-weight: 600; }
.sourcing-mode .spcc-action-pattern { display: inline-block; margin-top: 6px; padding: 2px 9px; border: 1px solid var(--pt); border-radius: 999px; background: var(--pts); color: var(--pti); font-size: 12px; font-weight: 850; white-space: nowrap; }

.sourcing-mode .spcc-action-link { display: grid; gap: 2px; min-width: 150px; max-width: 280px; padding: 0; border: 0; background: transparent; color: var(--ar-ink); font: 800 13px/1.3 var(--sans); text-align: left; cursor: pointer; transition: transform 160ms var(--ar-ease); }
.sourcing-mode .spcc-action-link span { overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #94a3b8; text-underline-offset: 3px; }
.sourcing-mode .spcc-action-report .spcc-action-link small { display: block; margin: 0; color: var(--ar-ink-2); font-size: 12px; font-weight: 600; }
.sourcing-mode .spcc-action-link small i { margin-left: 4px; padding: 0 6px; border: 1px solid var(--ar-brand); border-radius: 10px; background: var(--ar-brand-soft); color: var(--ar-brand-dk); font-size: 11px; font-style: normal; font-weight: 800; }

.sourcing-mode .spcc-action-trend { display: inline-flex; align-items: flex-end; gap: 10px; }
.sourcing-mode .spcc-action-trend > span { display: grid; justify-items: center; gap: 2px; min-width: 32px; }
.sourcing-mode .spcc-action-trend .bar { display: flex; align-items: flex-end; width: 20px; height: 34px; border: 1px solid #cbd5e1; border-radius: 3px; background: #fff; }
.sourcing-mode .spcc-action-trend .bar i { display: block; width: 100%; border-radius: 2px; background: #94a3b8; }
.sourcing-mode .spcc-action-trend .bar i.dead { background: var(--ar-dead); }
.sourcing-mode .spcc-action-trend .bar i.live { background: var(--ar-live); }
.sourcing-mode .spcc-action-trend .bar i.active { background: var(--ar-active); }
.sourcing-mode .spcc-action-trend b { color: var(--ar-ink); font-size: 13px; font-weight: 850; }
.sourcing-mode .spcc-action-report .spcc-action-trend small { margin: 0; color: var(--ar-ink-2); font-size: 11px; font-weight: 700; }

.sourcing-mode .spcc-action-shares { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sourcing-mode .spcc-action-shares li { --c: #64748b; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; row-gap: 3px; }
.sourcing-mode .spcc-action-shares li.hi { --c: var(--ar-active); --t: var(--ar-active-ink); }
.sourcing-mode .spcc-action-shares li.mid { --c: var(--ar-live); --t: var(--ar-live-ink); }
.sourcing-mode .spcc-action-shares li.lo { --c: var(--ar-dead); --t: var(--ar-dead-ink); }
.sourcing-mode .spcc-action-shares .nm { color: var(--ar-ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.sourcing-mode .spcc-action-shares b { color: var(--ar-ink); font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sourcing-mode .spcc-action-shares li[class] b { color: var(--t); }
.sourcing-mode .spcc-action-shares b em { margin-left: 5px; color: var(--ar-ink-2); font-size: 11px; font-style: normal; font-weight: 700; }
.sourcing-mode .spcc-action-shares i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p), #e2e8f0 0); }
.sourcing-mode .spcc-action-shares .other .nm { color: var(--ar-ink-2); font-style: italic; }
.sourcing-mode .spcc-action-shares li.other b { color: var(--ar-ink); }
.sourcing-mode .spcc-action-shares .other i { background: linear-gradient(90deg, #64748b var(--p), #e2e8f0 0); }

.sourcing-mode .spcc-action-toggle { height: 38px; padding: 0 14px; border: 2px solid #334155; border-radius: 8px; background: #fff; color: var(--ar-ink); font: 800 13px var(--sans); cursor: pointer; transition: transform 160ms var(--ar-ease), background-color 150ms ease; }
.sourcing-mode .spcc-action-toggle.on { border-color: var(--ar-brand); background: var(--ar-brand); color: #fff; }
.sourcing-mode .spcc-action-more { display: block; width: 100%; padding: 11px 20px; border: 0; border-top: 1px solid var(--ar-line); background: #fff; color: var(--ar-brand-dk); font: 850 13px var(--sans); cursor: pointer; transition: background-color 150ms ease; }
.sourcing-mode .spcc-action-note { margin: 0; padding: 10px 20px; border-top: 1px solid var(--ar-rule); background: #f8fafc; color: var(--ar-ink-2); font-size: 13px; }
.sourcing-mode .spcc-action-note b { color: var(--ar-ink); }
.sourcing-mode .spcc-action-empty { margin: 0; padding: 14px 20px; color: var(--ar-ink-2); font-size: 13px; font-weight: 600; }
.sourcing-mode .spcc-action-foot { margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--ar-line); background: #f1f5f9; color: var(--ar-ink-2); font-size: 13px; line-height: 1.5; }
.sourcing-mode .spcc-action-foot b { color: var(--ar-ink); font-weight: 850; }
.sourcing-mode .spcc-action-foot ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; margin: 6px 0 0; padding-left: 18px; }

.sourcing-mode .spcc-action-report :is(button, select):focus-visible { outline: 3px solid var(--ar-brand); outline-offset: 2px; }
.sourcing-mode .spcc-action-report :is(.spcc-action-more, .spcc-action-seg button):focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .sourcing-mode .spcc-action-report .spcc-action-bucket:not(.on):hover { box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .45); transform: translateY(-2px); }
  .sourcing-mode .spcc-action-report :is(.spcc-action-more, .spcc-action-seg button:not([aria-pressed="true"]), .spcc-action-toggle:not(.on), .spcc-action-pat:not(.on)):hover { background: #f1f5f9; }
  .sourcing-mode .spcc-action-report .spcc-action-teamreset:not(:disabled):hover { background: var(--ar-dead-soft); }
  .sourcing-mode .spcc-action-report tbody tr:not(.spcc-action-grouprow):hover td:is(.g-point, .g-who, .g-trend, .g-act) { background: #fefce8; }
  .sourcing-mode .spcc-action-link:hover span { text-decoration-color: var(--ar-ink); }
}
.sourcing-mode .spcc-action-report :is(.spcc-action-bucket, .spcc-action-pat, .spcc-action-toggle, .spcc-action-switch, .spcc-action-link, .spcc-action-teamreset:not(:disabled)):active { transform: scale(.97); }
.sourcing-mode .spcc-action-report :is(.spcc-action-more, .spcc-action-seg button):active { background: var(--ar-brand-soft); }
@media (min-width: 1280px) {
  /* Room for the full table: both header rows stay pinned while "Show all" is scrolled. */
  .sourcing-mode .spcc-action-scroll { overflow: visible; }
  .sourcing-mode .spcc-action-scroll th { position: sticky; top: 0; z-index: 2; }
  .sourcing-mode .spcc-action-scroll thead tr:not(.spcc-action-groups) th { top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sourcing-mode .spcc-action-report * { transition-duration: 0ms !important; }
  .sourcing-mode .spcc-action-report :is(.spcc-action-bucket, .spcc-action-pat, .spcc-action-toggle, .spcc-action-switch, .spcc-action-link, .spcc-action-teamreset):active { transform: none; }
  .sourcing-mode .spcc-action-report .spcc-action-bucket:hover { transform: none; }
}
.spcc-action-modal { width: min(900px, 96vw); color: #172033; }
.spcc-action-modal h3 { margin: 18px 0 8px; color: #123560; font-size: 14px; }
.spcc-action-modal p, .spcc-action-modal li { font-size: 13px; line-height: 1.5; }
.spcc-action-detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.spcc-action-detail-grid ul { padding-left: 20px; }
.spcc-action-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 5px; }
.spcc-action-history span { display: grid; gap: 4px; padding: 9px 5px; border: 1px solid #b7c9d8; border-radius: 6px; background: #f4f9fc; text-align: center; }
.spcc-action-history small { color: #475569; font-size: 9px; }
.spcc-action-history b { font-size: 15px; }
.spcc-action-modal dl { display: grid; grid-template-columns: 1.2fr 1fr; margin: 0; border-top: 1px solid #dbe4ee; }
.spcc-action-modal dt, .spcc-action-modal dd { margin: 0; padding: 8px 4px; border-bottom: 1px solid #dbe4ee; font-size: 12px; }
.spcc-action-modal dd { font-weight: 800; text-align: right; }
.spcc-action-method { padding: 10px; border-radius: 7px; background: #eef4f8; color: #475569; font-size: 11px !important; }
@media (max-width: 1240px) { .sourcing-mode .spcc-action-header { grid-template-columns: 1fr; } .sourcing-mode .spcc-action-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sourcing-mode .spcc-action-switch { margin-left: 0; } }
@media (max-width: 700px) { .sourcing-mode .spcc-action-header, .sourcing-mode .spcc-action-sechead, .sourcing-mode .spcc-action-filters, .sourcing-mode .spcc-action-toolbar, .sourcing-mode .spcc-action-legend, .sourcing-mode .spcc-action-foot, .sourcing-mode .spcc-action-note { padding-left: 12px; padding-right: 12px; } .sourcing-mode .spcc-action-buckets { padding: 10px 12px; gap: 8px; } .sourcing-mode .spcc-action-stat { display: grid; justify-items: start; gap: 2px; padding: 6px 8px; } .sourcing-mode .spcc-action-stat em { margin-left: 0; } .sourcing-mode .spcc-action-teamfilters { width: 100%; flex-direction: column; align-items: stretch; } .sourcing-mode .spcc-action-teamfilters > span { display: none; } .sourcing-mode .spcc-action-teamfilters select, .sourcing-mode .spcc-action-teamreset, .sourcing-mode .spcc-action-switch { width: 100%; min-width: 0; } .sourcing-mode .spcc-action-switch { justify-content: center; } .sourcing-mode .spcc-action-legend em { margin-left: 0; } .sourcing-mode .spcc-action-scroll table { min-width: 820px; } .sourcing-mode .spcc-action-foot ul { grid-template-columns: 1fr; } .spcc-action-detail-grid { grid-template-columns: 1fr; } .spcc-action-history { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sourcing-mode .spcc-action-buckets { grid-template-columns: 1fr; } .sourcing-mode .spcc-action-sec.buckets .spcc-action-sechead h3 { display: block; } .sourcing-mode .spcc-action-sec.buckets .spcc-action-sechead h3 small { display: block; margin: 2px 0 0; } }

/* 01-10-2026: sourcing point = one master row. Notice for business that cannot be linked to a point row. */
.sourcing-mode .spcc-unmatched-note { margin: 10px 0 0; padding: 9px 12px; border: 1px solid #f59e0b; border-left-width: 4px; border-radius: 8px; background: #fffbeb; color: #78350f; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.sourcing-mode .spcc-note-link { margin-left: 6px; padding: 2px 8px; border: 1px solid #b45309; border-radius: 6px; background: #ffffff; color: #92400e; font: inherit; font-weight: 800; cursor: pointer; }
.sourcing-mode .spcc-note-link:hover { background: #fef3c7; }
.spcc-points-history td small { display: block; margin-top: 2px; color: #64748b; font-size: 11px; font-weight: 600; }
/* 01-10-2026: "No ID" = real sourcing points with no usable Point ID (not measured, not Dead). */
.sourcing-mode table.pd-table.spcc-table th.spcc-h-noid { width: 6%; background: #475569; color: #ffffff; }
.sourcing-mode #sectionBody table.pd-table.spcc-table th.spcc-h-noid { color: #ffffff; }
.sourcing-mode table.pd-table.spcc-table .spcc-cell-noid,
.spcc-full-mis-table td.spcc-cell-noid { color: #475569; font-weight: 800; }
.spcc-full-mis-table thead th[title] { background: #cbd5e1; color: #111827; }
/* 01-10-2026: points found in the disburse data but missing in the Google sheet. */
.spcc-recon-plus { color: #1d4ed8; font-weight: 800; }

/* 02-10-2026 (Anmol: "black text in reports, not in headers; bold for main"): Sourcing page reports.
   Body cells and report text are black; header cells (th) keep their own colours; main values are bold.
   Only the Sourcing page (.sourcing-mode) is touched; the Target page and its selectors are not. */
body.sourcing-mode:not([data-sp-style="midnight"]) table.spcc-table td,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-note-table td,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-full-mis-table td,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-legacy-mis-table td,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-points-history td,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-action-scroll td { color: #000000 !important; font-weight: 800; }
body.sourcing-mode:not([data-sp-style="midnight"]) table.spcc-table td small,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-points-history td small,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-action-scroll td small { color: #000000; font-weight: 700; }
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-recon-sub,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-recon-rule,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-unmatched-note,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-action-note,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-action-chip,
body.sourcing-mode:not([data-sp-style="midnight"]) .spcc-health-insight-note { color: #000000; font-weight: 700; }

/* 02-10-2026: "Assigned sourcing points" popup uses the full width (it was a narrow box); the point name stays on one line. */
.spcc-points-modal { width: min(1500px, calc(100vw - 48px)) !important; max-height: min(780px, calc(100vh - 48px)) !important; }
.spcc-points-history table { min-width: 0; font-size: 13px; }
.spcc-points-history th, .spcc-points-history td { padding: 9px 12px; }
.spcc-points-history th:first-child, .spcc-points-history td:first-child { width: 55%; min-width: 420px; }
.spcc-points-history td.num, .spcc-points-history th.num { width: 7.5%; }
.spcc-points-history td small { font-size: 12px; }

/* 08-10-2026 (Sourcing page check): the Time Filters card was too narrow, so dropdown text was cut ("Oct-2026 (cu"), and the
   4-select Employee Hierarchy grid pushed its Executive filter onto a second row with stray chevrons. Sourcing page only. */
@media (min-width: 1280px) {
  body.sourcing-mode .filter-master-row { grid-template-columns: minmax(520px, 1.25fr) minmax(600px, 1.75fr); }
}
@media (min-width: 1151px) and (max-width: 1279px) {
  /* 14-10-2026 (Anmol: browser at 150 % = ~1279 px wide stacked the two filter cards): keep them side by side like the Target page. */
  body.sourcing-mode .filter-master-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); }
  body.sourcing-mode .employee-filter-grid:has(#fExec) { grid-template-columns: minmax(90px, .8fr) auto minmax(90px, 1fr) auto minmax(90px, 1fr) auto minmax(90px, .9fr); }
  body.sourcing-mode .employee-filter-grid .ctl select { padding-left: 5px; padding-right: 2px; font-size: 12px; }
}
@media (max-width: 1150px) {
  body.sourcing-mode .filter-master-row { grid-template-columns: 1fr; }
}
@media (min-width: 561px) {
  body.sourcing-mode .time-filter-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, .8fr); }
  body.sourcing-mode .time-filter-grid .ctl select { padding-left: 7px; padding-right: 7px; }
}
@media (min-width: 761px) {
  body.sourcing-mode .employee-filter-grid:has(#fExec) {
    grid-template-columns: minmax(110px, .85fr) auto minmax(120px, 1.15fr) auto minmax(120px, 1.15fr) auto minmax(100px, .9fr);
  }
  body.sourcing-mode .employee-filter-grid .ctl select { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 560px) {
  /* Phone: Compare takes the full row, the hierarchy filters stack, and the small line under a KPI value may wrap. */
  body.sourcing-mode .time-filter-grid .ctl:has(#fCompare) { grid-column: 1 / -1; order: 3; }
  body.sourcing-mode .employee-filter-grid { grid-template-columns: 1fr; }
  .sourcing-mode .spcc-kpis .spcc-kpi-detail { white-space: normal; text-overflow: clip; }
}
/* Trend Reports > Custom months: the month tick-list. */
.spcc-trend .trend-month-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 4px 2px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.spcc-trend .trend-month-picker b { margin-right: 4px; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.spcc-trend .trend-month-picker label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }

/* Target page, open month: MTD Progress and the Insights link are ONE full-width row of cells (a label cell, Days left, MTD Target,
   MTD Achieved, Insights), in the same black-line language as the Target / Achieved / Gap / Pace row above. */
.grid-2.grid-tdks:has(.tdp-group:not(.is-closed)) { grid-template-columns: minmax(0, 5.6fr) minmax(230px, 1.2fr); background: #fff; }
.grid-tdks .tdp-group:not(.is-closed) { padding: 0; }
.grid-tdks .tdp-group:not(.is-closed) .td-row { grid-template-columns: .95fr .7fr 1.15fr 1.15fr 1.4fr; height: 100%; }
.grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat { min-height: 104px; padding: 10px 12px; gap: 4px; border: 0 !important; border-right: 1.5px solid #111827 !important; justify-content: center; }
.grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:last-child { border-right: 0 !important; }
.grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:nth-child(3) { background: #eef2ff; }
.grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:nth-child(4) { background: #eefaf3; }
.grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:nth-child(5) { background: #e3f4ea; }
.grid-tdks .td-row .td-lead { background: #f0edff; align-items: flex-start; text-align: left; }
.grid-tdks .td-row .td-lead .td-lead-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1.5px solid #cfc5f3; color: #4338ca; }
.grid-tdks .td-row .td-lead .td-lead-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grid-tdks .tdp-group:not(.is-closed) .td-row .td-lead > b { font-size: 17px; line-height: 1.15; white-space: normal; }
.grid-tdks .td-row .td-lead em { font-size: 12px; font-weight: 650; }
.grid-tdks .tdp-group:not(.is-closed) .td-stat .kpi-label { font-size: 11px; letter-spacing: .05em; }
.grid-tdks .tdp-group:not(.is-closed) .td-stat > b { font-size: 24px; line-height: 1.05; }
.grid-tdks .tdp-group:not(.is-closed) .td-split-label { font-size: 11px; }
.grid-tdks .tdp-group:not(.is-closed) .td-split-grid b { font-size: 21px; line-height: 1.1; }
.grid-tdks .tdp-group:not(.is-closed) .td-split-grid b.money { font-size: 19px; }
.grid-tdks .tdp-group:not(.is-closed) .td-stat em { font-size: 11.5px; font-weight: 650; }
.td-bar { display: block; width: 100%; max-width: 150px; height: 7px; margin-top: 8px; border-radius: 4px; background: #d9d2f5; overflow: hidden; }
.td-lead .td-daytxt { margin-top: 1px; }
.td-meter { display: block; width: 88%; max-width: 112px; height: 6px; margin: 4px auto 0; border-radius: 3px; background: #c6e2d1; overflow: hidden; }
.td-meter > i { display: block; height: 100%; border-radius: 3px; background: #15803d; }
.td-bar > i { display: block; height: 100%; border-radius: 4px; background: #4f46e5; }
/* Insights link cell: white, with the number as the only strong colour */
.insights-kpi { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 10px 14px; background: #fff; color: #111827; text-align: center; text-decoration: none; border-left: 1.5px solid #111827; transition: background-color 140ms; }
.insights-kpi[hidden] { display: none; }
.insights-kpi:hover { background: #fff6f6; }
.insights-kpi.ik-good:hover { background: #f1faf4; }
.insights-kpi:focus-visible { outline: 3px solid #5138ce; outline-offset: -3px; }
.insights-kpi .ik-top { display: flex; align-items: center; gap: 7px; }
.insights-kpi .ik-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fdeef0; border: 1px solid #efb3ba; color: #b91c28; }
.insights-kpi.ik-good .ik-ic { background: #e8f6ee; border-color: #a6d9b8; color: #14783a; }
.insights-kpi .ik-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.insights-kpi .ik-label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.insights-kpi .ik-mid { display: flex; align-items: center; justify-content: center; gap: 10px; }
.insights-kpi .ik-num { font-size: 30px; line-height: 1; font-weight: 850; color: #b91c28; font-variant-numeric: tabular-nums; }
.insights-kpi.ik-good .ik-num { color: #14783a; }
.insights-kpi .ik-tag { padding: 2px 10px; border-radius: 999px; background: #fdeef0; border: 1px solid #efb3ba; color: #a3171f; font-size: 11.5px; font-weight: 800; }
.insights-kpi.ik-good .ik-tag { background: #e8f6ee; border-color: #a6d9b8; color: #0f6a31; }
.insights-kpi .ik-meaning { max-width: 28ch; font-size: 11.5px; font-weight: 650; line-height: 1.3; }
.insights-kpi .ik-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 850; color: #3b2a9e; }
.insights-kpi .ik-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease-out; }
.insights-kpi:hover .ik-go svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .insights-kpi, .insights-kpi .ik-go svg { transition: none; } }
.grid-2.grid-tdks:has(.insights-kpi[hidden]), .grid-2.grid-tdks:not(:has(.insights-kpi)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .grid-2.grid-tdks:has(.tdp-group:not(.is-closed)) { grid-template-columns: minmax(0, 1fr); }
  .insights-kpi { border-left: 0; border-top: 1.5px solid #111827; }
}
@media (max-width: 900px) {
  .grid-tdks .tdp-group:not(.is-closed) .td-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-tdks .td-row .td-lead { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; border-bottom: 1.5px solid #111827 !important; border-right: 0 !important; min-height: 0 !important; padding: 10px 12px !important; }
  .grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:nth-child(3) { border-right: 0 !important; }
  .grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:nth-child(n+4) { border-top: 1.5px solid #111827 !important; }
  .grid-tdks .td-row .td-lead { flex-wrap: wrap; }
  .grid-tdks .td-row .td-lead > b { white-space: nowrap !important; }
  .grid-tdks .td-row .td-lead .td-bar { flex: 1 1 100%; max-width: none; margin-top: 2px; }
  .grid-tdks .td-row .td-lead .td-daytxt { display: none; }
  .grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat:nth-child(5) { border-right: 0 !important; }
}

/* Day-end projection: the Hourly card opens "Today · time by time" (a clear tap target, no glow) */
.forecast-hourly-live[data-forecast-summary-open] { cursor: pointer; transition: background-color 140ms; }
.forecast-hourly-live[data-forecast-summary-open]:hover { background: #fff1cf; }
.forecast-hourly-live[data-forecast-summary-open]:focus-visible { outline: 2px solid #111827; outline-offset: 2px; }
.forecast-panel .forecast-today-body .forecast-hourly-live > em.forecast-hourly-more, .forecast-panel .forecast-today-body .forecast-required-rate > em.forecast-hourly-more { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; padding: 3px 12px; border: 1.5px solid #111827; border-radius: 999px; background: #fff; color: #111827; font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.3; min-height: 0; }
.forecast-hourly-bar { display: block; width: 100%; max-width: 130px; height: 8px; margin: 4px auto 0; border-radius: 4px; background: #d9e0ee; overflow: hidden; }
.forecast-hourly-bar > i { display: block; height: 100%; border-radius: 4px; background: #4338ca; }
.forecast-hourly-bar--cmp > i { background: #b45309; }

/* ── Today · time by time (modal): sized to fit at 100 % browser zoom ──────────────────────────────── */
.forecast-hourly-modal { width: min(1200px, 97vw); max-height: min(660px, calc(100vh - 21px)); padding: 0; overflow: auto; }
.forecast-hourly-modal > header { justify-content: flex-start; padding: 10.5px 45px 10.5px 16.5px; border-bottom: 3px solid #f59e0b; border-radius: 9px 9px 0 0; background: #0b2e59; text-align: left; }
.forecast-hourly-modal h3 { color: #fff; font-size: 16.5px; letter-spacing: -.01em; }
.forecast-hourly-modal header p { color: rgba(255, 255, 255, .88); font-size: 9.5px; font-weight: 650; }
.forecast-hourly-modal header button { top: 9px; right: 12px; border: 1.5px solid #fff; background: #fff; }
.hr-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10.5px; padding: 12px 16.5px 16.5px; }
.hr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.hr-controls label { font-size: 10px; font-weight: 850; }
.hr-controls select { min-width: 195px; padding: 6px 7.5px; border: 1.5px solid #111827; border-radius: 7px; background: #fff; color: #111827; font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.hr-controls select:focus-visible, .hr-metric button:focus-visible, .hr-table [data-hr-tip]:focus-visible { outline: 2.5px solid #5138ce; outline-offset: 1.5px; }
.hr-hint { color: #475569; font-size: 9.5px; font-weight: 650; }
.hr-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7.5px; }
.hr-card { padding: 8.5px 10px 10px; border: 1.5px solid #111827; border-radius: 9px; background: #f4f6fa; }
.hr-card--today { background: #eef2ff; }
.hr-card--cmp { background: #fff4dc; }
.hr-card--diff { background: #eefaf3; }
.hr-card h4 { margin: 0; font-size: 11px; font-weight: 850; line-height: 1.25; }
.hr-card > span { display: block; margin: 1px 0 6px; color: #334155; font-size: 8.5px; font-weight: 650; }
.hr-trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 4.5px; margin: 0; }
.hr-trio > div { min-width: 0; padding: 4.5px 3px; border-radius: 6px; background: rgba(255, 255, 255, .72); text-align: center; }
.hr-trio dt { color: #334155; font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hr-trio dd { margin: 1.5px 0 0; font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.hr-trio > div:last-child dd { font-size: 13px; }
.hr-trio .is-up dd { color: #0f6a31; }
.hr-trio .is-down dd { color: #b91c28; }
.hr-muted { margin: 0; color: #64748b; font-size: 9.5px; font-weight: 650; }
/* the KPI numbers are buttons: click one to see RSM wise / SM wise */
.hr-kpi { display: inline-block; margin: 0; padding: 1px 5px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: pointer; }
.hr-kpi:hover { background: rgba(67, 56, 202, .13); text-decoration: underline; }
.hr-kpi:focus-visible { outline: 2.5px solid #5138ce; outline-offset: 1.5px; }
.hr-kpi.is-active, .hr-trio .is-down .hr-kpi.is-active, .hr-trio .is-up .hr-kpi.is-active { background: #4338ca; color: #fff; text-decoration: none; }
.hr-split { padding: 8px 10px; border: 1.5px solid #4338ca; border-radius: 9px; background: #fff; }
.hr-split > header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 5px; }
.hr-split > header b { font-size: 11px; font-weight: 850; }
.hr-split-total { margin-left: auto; font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.hr-split-close { padding: 3px 9px; border: 1.5px solid #111827; border-radius: 6px; background: #fff; color: #111827; font: inherit; font-size: 9.5px; font-weight: 800; cursor: pointer; }
.hr-split-scroll { max-height: 230px; overflow-y: auto; }
.hr-split-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hr-split-table th, .hr-split-table td { padding: 4.5px 7px; border-top: 1px solid #e2e8f0; font-size: 10.5px; }
.hr-split-table tr:first-child th, .hr-split-table tr:first-child td { border-top: 0; }
.hr-split-table th { width: 34%; text-align: left; font-weight: 800; }
.hr-split-table .is-other th { color: #64748b; font-weight: 700; }
.hr-split-num { width: 17%; text-align: right; font-weight: 850; white-space: nowrap; }
.hr-split-num.is-down { color: #b91c28; }
.hr-split-num.is-up { color: #0f6a31; }
.hr-split-bar span { display: block; height: 7px; border-radius: 4px; background: #eef2ff; overflow: hidden; }
.hr-split-bar i { display: block; height: 100%; background: #4338ca; }
.hr-split-bar i.is-down { background: #b91c28; }
.hr-split-bar i.is-up { background: #0f6a31; }
.hr-split-share { width: 8%; color: #64748b; text-align: right; font-size: 9.5px; font-weight: 700; }
.hr-chart-card { padding: 7.5px 10.5px 4.5px; border: 1.5px solid #111827; border-radius: 9px; background: #fff; }
.hr-chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4.5px 10.5px; margin-bottom: 1.5px; }
.hr-chart-head b { font-size: 11px; font-weight: 850; }
.hr-metric { display: inline-flex; border: 1.5px solid #111827; border-radius: 7px; overflow: hidden; background: #fff; }
.hr-metric button { padding: 4px 9px; border: 0; border-left: 1px solid #111827; background: #fff; color: #111827; font: inherit; font-size: 9.5px; font-weight: 800; cursor: pointer; }
.hr-metric button:first-child { border-left: 0; }
.hr-metric button[aria-pressed="true"] { background: #4338ca; color: #fff; }
.hr-legend { display: inline-flex; align-items: center; gap: 4.5px; margin-left: auto; font-size: 9.5px; font-weight: 750; }
.hr-key { display: inline-block; width: 16.5px; height: 0; margin-left: 6px; border-top: 2.5px solid #4338ca; }
.hr-key--cmp { border-top: 2.5px dashed #b45309; }
.hr-chart { display: block; width: 100%; height: auto; }
.hr-scroll { overflow-x: auto; border: 1.5px solid #111827; border-radius: 9px; }
.hr-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hr-table th, .hr-table td { padding: 7.5px 9px; border: 1px solid #111827; color: #111827; text-align: center; white-space: nowrap; }
.hr-table thead th { font-size: 10px; font-weight: 850; background: #e8edf5; }
.hr-table thead th.hr-g-today { background: #d3e5ff; }
.hr-table thead th.hr-g-cmp { background: #ffe5b5; }
.hr-table thead th.hr-g-diff { background: #d8f2e0; }
.hr-table tbody th { font-size: 11.5px; font-weight: 850; background: #f1f4f9; }
.hr-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.hr-table tbody td.hr-cmp { background: #fffaf0; }
.hr-table tbody tr:nth-child(even) td.hr-cmp { background: #fff4de; }
.hr-table tbody tr.is-latest th, .hr-table tbody tr.is-latest td { background: #fff1c2; }
.hr-latest { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid #111827; border-radius: 999px; background: #fff; font-size: 8.5px; font-weight: 850; }
.hr-num { font-size: 13.5px; font-weight: 850; }
.hr-num--main { font-size: 15px; }
.hr-added { text-align: left; }
.hr-chip { display: inline-block; margin: 1.5px 3px 1.5px 0; padding: 1.5px 7px; border: 1px solid #111827; border-radius: 999px; background: #fff; font-size: 9.5px; font-weight: 800; }
.hr-chip.is-up { border-color: #15803d; background: #dff5e6; color: #0f6a31; }
.hr-chip.is-down { border-color: #b91c28; background: #fde4e6; color: #a3171f; }
.hr-chip.is-even { background: #eef1f6; }
.hr-diff .hr-chip { font-size: 10.5px; }
.hr-table tfoot th, .hr-table tfoot td { border-top: 2.5px solid #111827; background: #f1f4f9; }
.hr-table [data-hr-tip] { cursor: help; text-decoration: underline dotted #64748b; text-underline-offset: 4px; }
.hourly-tip { position: fixed; z-index: 400; width: min(306px, 92vw); padding: 8.5px 10px 9.5px; border: 1.5px solid #111827; border-radius: 10px; background: #fff; color: #111827; box-shadow: 0 15.5px 34px 1px rgba(11, 18, 32, .5); pointer-events: none; }
.hourly-tip[hidden] { display: none; }
.hr-tip-head { font-size: 11px; font-weight: 850; }
.hr-tip-sub, .hr-tip-note { margin: 2.5px 0 0; color: #475569; font-size: 10px; font-weight: 650; }
.hr-tip-list { display: grid; gap: 3.5px; margin: 6px 0 0; padding: 0; list-style: none; }
.hr-tip-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1px 8.5px; padding: 4.5px 7px; border-radius: 7px; background: #f1f4f9; font-size: 10.5px; }
.hr-tip-list li:first-child { background: #fff1c2; }
.hr-tip-list strong { font-weight: 850; }
.hr-tip-list small { margin-left: 5px; color: #475569; font-size: 9.5px; font-weight: 650; }
.hr-tip-list em { font-style: normal; font-weight: 650; color: #1f2937; }
.hr-tip-list em b { font-weight: 850; }
@media (max-width: 900px) {
  .hr-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-legend { margin-left: 0; }
  .hr-body { padding: 9px 9px 12px; }
}
@media (max-width: 520px) { .hr-sum { grid-template-columns: 1fr; } .hr-controls select { min-width: 0; width: 100%; } }

/* the chart: no left numbers, every report shows its value; lines are pulled apart where they would overlap; a hovered line glows (same logic as the other line charts) */
.hr-chart { display: block; width: 100%; height: auto; }
.hr-grid line { stroke: #dbe2ec; stroke-width: 1; stroke-dasharray: 3 5; }
.hr-axis text { fill: #475569; font-size: 14px; font-weight: 700; }
.hr-series { outline: none; cursor: pointer; }
.hr-series--today { --hr-color: #4338ca; --hr-ink: #312e81; }
.hr-series--cmp { --hr-color: #b45309; --hr-ink: #92400e; }
.hr-line { fill: none; stroke: var(--hr-color); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hr-series--cmp .hr-line { stroke-width: 3; stroke-dasharray: 9 7; }
.hr-line-hit { fill: none; stroke: transparent; stroke-width: 24; pointer-events: stroke; }
.hr-dot { fill: var(--hr-color); stroke: #fff; stroke-width: 2; }
.hr-val { fill: var(--hr-ink); font-size: 16px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.hr-val.is-last { font-size: 19px; font-weight: 900; }
.hr-series .hr-line, .hr-series .hr-dot, .hr-series .hr-val { transition: stroke-width .16s ease, filter .16s ease, opacity .16s ease; }
.hr-series:hover .hr-line, .hr-series:focus-visible .hr-line,
.hr-chart-card:has([data-hr-legend="today"]:is(:hover, :focus-visible)) .hr-series--today .hr-line,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .hr-series--cmp .hr-line { stroke-width: 6.5; filter: drop-shadow(0 2px 4px var(--hr-color)); }
.hr-series:hover .hr-dot, .hr-series:focus-visible .hr-dot,
.hr-chart-card:has([data-hr-legend="today"]:is(:hover, :focus-visible)) .hr-series--today .hr-dot,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .hr-series--cmp .hr-dot { filter: drop-shadow(0 2px 3px var(--hr-color)); }
.hr-series:hover .hr-val, .hr-series:focus-visible .hr-val,
.hr-chart-card:has([data-hr-legend="today"]:is(:hover, :focus-visible)) .hr-series--today .hr-val,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .hr-series--cmp .hr-val { font-weight: 900; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--hr-color) 40%, transparent)); }
/* pointing at a name under the chart: the other line steps back (blurred, no numbers) */
.hr-chart-card:has([data-hr-legend="today"]:is(:hover, :focus-visible)) .hr-series--cmp,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .hr-series--today { opacity: .32; filter: blur(1px); }
.hr-chart-card:has([data-hr-legend="today"]:is(:hover, :focus-visible)) .hr-series--cmp .hr-val,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .hr-series--today .hr-val { display: none; }
.hr-legend-item { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px; border-radius: 5px; cursor: pointer; }
.hr-legend-item:hover, .hr-legend-item:focus-visible { background: #eef1f6; font-weight: 850; outline: none; }
@media (prefers-reduced-motion: reduce) { .hr-series .hr-line, .hr-series .hr-dot, .hr-series .hr-val { transition: none; } }
.forecast-hourly-modal { width: min(900px, 97vw); max-height: min(660px, calc(100vh - 24px)); border-radius: 10px; }
.forecast-hourly-modal > header { padding-bottom: 8px; }
.forecast-hourly-modal header button { width: 24px; height: 24px; border-radius: 7px; font-size: 17px; }
.hr-legend { gap: 8px; }
.hr-key { margin-left: 0; width: 17px; border-top-width: 2.5px; }
.hr-key--cmp { border-top-style: dashed; }

.hr-table.is-collapsed tbody { display: none; }
.hr-rows-toggle { justify-self: start; padding: 4px 12px; border: 1.5px solid #111827; border-radius: 7px; background: #fff; color: #111827; font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.hr-rows-toggle:hover { background: #eef1f6; }
.hr-table tfoot tr.hr-proj th, .hr-table tfoot tr.hr-proj td { border-top: 1.5px solid #111827; background: #d3e5ff; }

/* Sales achievement (pattern) modal: shown at 75 % so it fits without browser zoom-out (Anmol, 10-10-2026) */
.forecast-pattern-modal { zoom: .75; max-height: calc((100vh - 24px) / .75); }

/* Same black outline as the Forecast & daily review card on Performance Details, Week on Week and Who needs attention (Anmol, 10-10-2026) */
.pd-card, .wow-card, .attention-section { border: 3px solid #111827 !important; box-shadow: 0 8px 24px -18px rgba(15,31,61,.35); }

/* ── Required daily (RRR) · day by day: the card, and the modal parts the Hourly modal does not have ────────────── */
.forecast-required-rate[data-forecast-summary-open] { cursor: pointer; transition: filter 140ms; }
.forecast-required-rate[data-forecast-summary-open]:hover { filter: brightness(.96); }
.forecast-required-rate[data-forecast-summary-open]:focus-visible { outline: 2px solid #111827; outline-offset: 2px; }
.forecast-required-rate > em.forecast-hourly-more { grid-column: 1 / -1; justify-self: center; align-self: center; }
.rr-card--bad { border-color: #b91c28; background: #fdeced; }
.hr-chip.is-mid { border-color: #b45309; background: #fff1d6; color: #92400e; }
.rr-focus { padding: 8.5px 10px 10px; border: 1.5px solid #111827; border-radius: 9px; background: #fffaf0; }
.rr-focus > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; }
.rr-focus h4 { margin: 0; font-size: 12px; font-weight: 850; }
.rr-focus > header span { color: #475569; font-size: 8.5px; font-weight: 650; }
.rr-verdict { display: grid; gap: 2px; margin: 6px 0 0; padding: 6px 9px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; }
.rr-verdict.is-down { border-color: #b91c28; background: #fdeced; }
.rr-verdict.is-ok { border-color: #15803d; background: #e8f8ee; }
.rr-verdict b { font-size: 11.5px; font-weight: 850; }
.rr-verdict span { color: #1f2937; font-size: 9.5px; font-weight: 650; line-height: 1.4; }
.rr-verdict strong { font-weight: 850; }
.rr-need { margin: 6px 0 0; color: #1f2937; font-size: 9.5px; font-weight: 650; line-height: 1.45; }
.rr-lev { width: 100%; margin-top: 6px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rr-lev th, .rr-lev td { padding: 4px 7px; border: 1px solid #111827; background: #fff; color: #111827; font-size: 9.5px; font-weight: 700; text-align: center; }
.rr-lev thead th { background: #e8edf5; font-weight: 850; }
.rr-lev tbody th { background: #f7f9fc; font-weight: 800; text-align: left; }
.rr-lev tr.is-sub th { padding-left: 16px; font-weight: 650; }
.rr-lev tr.is-focus th, .rr-lev tr.is-focus td { background: #fde4e6; }
.rr-tag { margin-left: 6px; padding: 1px 6px; border: 1px solid #b91c28; border-radius: 999px; background: #fff; color: #a3171f; font-size: 8px; font-weight: 850; }
.rr-table th, .rr-table td { padding: 5px 6px; }
.rr-table td { font-size: 11px; font-weight: 700; }
.rr-table tbody th { white-space: nowrap; }
.rr-day.is-sun { color: #b91c28; }
.rr-sub { display: block; margin-top: 1px; color: #475569; font-size: 8px; font-weight: 650; }
.rr-sub.is-up { color: #0f6a31; }
.rr-sub.is-down { color: #b91c28; }
/* the chart: bars = actual per day, dashed line = RRR that morning (the line glows like the other line charts) */
.rr-bar { outline: none; stroke: #fff; stroke-width: 1.5; transition: filter .16s ease, opacity .16s ease; }
.rr-bar.is-met { fill: #15803d; --bar: #15803d; }
.rr-bar.is-below { fill: #dc2626; --bar: #dc2626; }
.rr-bar.is-live { fill: #c7d2fe; stroke: #4338ca; stroke-width: 2; stroke-dasharray: 5 3; --bar: #4338ca; }
.rr-bar:hover, .rr-bar:focus-visible { filter: drop-shadow(0 2px 4px var(--bar)); }
.rr-val { fill: #111827; font-size: 15px; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.rr-val.is-in { fill: #fff; stroke: none; }
.rr-dense .rr-val, .rr-dense .hr-val { font-size: 11px; stroke-width: 3px; }
.hr-axis .rr-wd { fill: #64748b; font-size: 11.5px; font-weight: 700; }
.hr-axis .rr-wd.is-sun { fill: #b91c28; font-weight: 850; }
.rr-sw { display: inline-block; width: 8px; height: 8px; margin: 0 2px 0 6px; border-radius: 2px; }
.rr-sw.is-met { background: #15803d; }
.rr-sw.is-below { background: #dc2626; }
.rr-sw.is-live { border: 1px dashed #4338ca; background: #c7d2fe; }
.hr-chart-card:has([data-hr-legend="bars"]:is(:hover, :focus-visible)) .hr-series--cmp,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .rr-bars { opacity: .32; filter: blur(1px); }
.hr-chart-card:has([data-hr-legend="bars"]:is(:hover, :focus-visible)) .hr-series--cmp .hr-val,
.hr-chart-card:has([data-hr-legend="cmp"]:is(:hover, :focus-visible)) .rr-bars .rr-val { display: none; }
.hr-chart-card:has([data-hr-legend="bars"]:is(:hover, :focus-visible)) .rr-bar { filter: drop-shadow(0 2px 4px var(--bar)); }

/* Target Miss: same black outline as the Forecast card, and thinner borders on its inner tables (Anmol, 10-10-2026) */
.target-miss-report { border: 3px solid #111827; }
.tm-table-scroll, .tm-performance-scroll { border-width: 1.5px; }
.tm-state-table th, .tm-state-table td, .tm-performance-table th, .tm-performance-table td { border-bottom-width: 1px !important; }
.tm-performance-table th, .tm-performance-table td { border-right-width: 1px !important; }
.tm-performance-table th:last-child, .tm-performance-table td:last-child { border-right-width: 0 !important; }
.rr-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); }
.rr-trio dt { white-space: nowrap; }
.hr-trio.rr-trio > div dd { font-size: 14px; }

/* Month Projection cell: cases and projected % side by side, value below (Anmol, 10-10-2026) */
.td-proj-main { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.td-proj-main b { font-size: 22px; }
.td-proj-main .tm-proj { font-size: 15px; font-weight: 800; }
.td-projcell > em { font-size: 13px; font-weight: 750; color: var(--ink); }

/* MTD Ach % card: red / orange / green by the Target Miss rule instead of always green (Anmol, 10-10-2026) */
.td-ach .td-split-grid > .high b { color: #b91c2d; }
.td-ach .td-split-grid > .watch b { color: #c05d00; }
.td-ach .td-split-grid > .good b { color: #0a7b38; }
.td-ach .high .td-meter { background: #f6cdd3; } .td-ach .high .td-meter > i { background: #c81e32; }
.td-ach .watch .td-meter { background: #fbe0bd; } .td-ach .watch .td-meter > i { background: #d97706; }
.grid-tdks .td-row > .td-stat.td-ach.high { background: #ffe9ec !important; }
.grid-tdks .td-row > .td-stat.td-ach.watch { background: #fff3e0 !important; }

/* Day-wise chart: today (day-end projection on the projected line, Hourly actual so far as its own marker) */
.forecast-trend-projected-dot.is-today { fill: #fff; stroke: var(--chart-rate); stroke-width: 3; }
.forecast-trend-today-dot { fill: #4338ca; stroke: #fff; stroke-width: 2; }
.forecast-trend-today-badge rect { fill: #ede9fe; stroke: #4338ca; stroke-width: 1; }
.forecast-trend-today-line { fill: none; stroke: #4338ca; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .9; }
.forecast-trend-data-label.is-today { fill: #312e81; }
.forecast-trend-series.is-today { outline: none; }
.forecast-trend-series.is-today:hover .forecast-trend-today-dot, .forecast-trend-series.is-today:focus-visible .forecast-trend-today-dot { filter: drop-shadow(0 2px 3px #4338ca); }
.forecast-trend-legend .is-today::before { border-color: #4338ca; }
.forecast-trend-legend .is-today::before { border-top-style: dotted; }
.forecast-trend[data-forecast-focus] .forecast-trend-series.is-today { opacity: .2; }

/* Who needs attention: the Critical / Watchlist KPI tiles filter the list (Anmol, 10-10-2026) */
.attention-kpi[data-attention-kpi] { cursor: pointer; transition: box-shadow 140ms, border-color 140ms; }
.attention-kpi[data-attention-kpi]:hover { box-shadow: 0 5px 14px -8px rgba(15, 23, 42, .45); }
.attention-kpi[data-attention-kpi]:focus-visible { outline: 3px solid #5138ce; outline-offset: 2px; }
.attention-kpi.is-active { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }

/* Sourcing Point MIS in Anmol's sheet format (10-10-2026): salmon 3-row header, blue zone totals, yellow Total */
/* Fits the screen at 100% browser zoom: fixed % columns (colgroup) and a font that follows the window width (Anmol, 10-10-2026). */
.spcc-mis2-table { width: 100%; table-layout: fixed; border-collapse: collapse; color: #000; background: #fff; font-size: clamp(8px, .7vw, 13px); line-height: 1.25; }
.spcc-mis2-table th, .spcc-mis2-table td { padding: 1px 3px; overflow: hidden; border: 1px solid #000; text-align: center; vertical-align: middle; white-space: nowrap; text-overflow: ellipsis; }
.spcc-mis2-table thead { position: sticky; top: 0; z-index: 4; }
.spcc-mis2-table thead th { background: #f4b183; color: #000; font-weight: 800; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.spcc-mis2-table tr.mis2-band td { background: #00b0f0; font-weight: 800; }
.spcc-mis2-table tr.mis2-total td { background: #ffc000; font-weight: 900; }
.spcc-mis2-table tr.mis2-sm:hover td { background: #eff8ff; }
.spcc-mis2-note { margin: 4px 0 0; font-size: 11px; color: #334155; }

/* 12-10-2026 (Anmol): Sourcing Data Notes popup. (1) It follows the same fit-to-screen zoom as the sidebar (--ui-zoom is set
   by the small script in HTML/index.html), so at Edge 100% on a 125 % Windows screen it looks like it does at 80 %. (2) Only the
   "How we get to N" table stays open; every other block is a drop-down, closed by default. */
.spcc-data-notes-modal { zoom: var(--ui-zoom, 1); }
.spcc-notes-drop { margin-top: 12px; border: 2px solid #111827; border-radius: 10px; background: #ffffff; }
.spcc-notes-drop > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #000000; font-size: 14px; font-weight: 850; cursor: pointer; list-style: none; }
.spcc-notes-drop > summary::-webkit-details-marker { display: none; }
.spcc-notes-drop > summary::after { content: "+"; flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid #111827; border-radius: 6px; background: #f1f5f9; font-size: 16px; line-height: 20px; text-align: center; }
.spcc-notes-drop[open] > summary { border-bottom: 1px solid #111827; }
.spcc-notes-drop[open] > summary::after { content: "\2212"; }
.spcc-notes-drop > section, .spcc-notes-drop > p, .spcc-notes-drop > .spcc-note-block { margin: 0; padding: 0 14px 12px; }
.spcc-notes-drop > section > h3:first-child { display: none; }
.spcc-notes-drop > .spcc-note-block { margin: 10px 14px 0; padding: 12px; }
.spcc-notes-drop > .spcc-note-block:last-child { margin-bottom: 12px; }

/* 12-10-2026 (Anmol: the View card tooltip is cut at the popup edge): the "Overall performance" panel sits in the right
   half of the popup, so its tooltip opens to the LEFT of the icon (like the right-hand tiles) and stays inside the popup. */
.sourcing-mode .spcc-view-next .spcc-view-info::after { left: auto; right: 0; }

/* 12-10-2026 (Anmol: "make the card simpler"): View card one-line meaning of the words, and the running-month note. */
.spcc-view-define { margin: 0; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #334155; font-size: 11.5px; font-weight: 650; line-height: 1.45; }
.spcc-view-define b { color: #0f172a; }
.spcc-view-running { margin: 8px 0 0; padding: 6px 8px; border-radius: 7px; background: #fff7ed; color: #9a3412; font-size: 11px; font-weight: 700; line-height: 1.4; }

/* 12-10-2026 (Anmol: "make it actionable"): View card "Who to act on first" table. */
.spcc-view-act { margin-top: 10px; }
.spcc-view-act-wrap { overflow-x: auto; }
.spcc-view-act table { width: 100%; border-collapse: collapse; font-size: 12px; }
.spcc-view-act th { padding: 6px 8px; border-bottom: 1px solid #0f766e; color: #334155; font-size: 10.5px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .03em; }
.spcc-view-act td { padding: 7px 8px; border-bottom: 1px solid #e2e8f0; color: #0f172a; font-weight: 600; vertical-align: top; line-height: 1.4; }
.spcc-view-act .num { text-align: right; white-space: nowrap; }
.spcc-view-act tbody tr:last-child td { border-bottom: 0; }
.spcc-view-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.spcc-view-pill-point { background: #fee2e2; color: #991b1b; }
.spcc-view-pill-employee { background: #ffedd5; color: #9a3412; }
.spcc-view-pill-none { background: #e2e8f0; color: #334155; }

/* The card is taller now (action table): let it scroll instead of cutting the bottom, and open the bottom box's tooltip upward. */
.spcc-view-modal { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.sourcing-mode .spcc-view-insight .spcc-view-info::after { top: auto; bottom: calc(100% + 7px); }

/* 12-10-2026 (Anmol: borders, centred, coloured Dead / Live / Active headers): "Who to act on first" table. */
.spcc-view-act table { border: 2px solid #111827; border-collapse: collapse; }
.spcc-view-act th, .spcc-view-act td { border: 1px solid #111827; text-align: center; vertical-align: middle; }
.spcc-view-act th { background: #e2e8f0; color: #0f172a; }
.spcc-view-act .num { text-align: center; }
.spcc-view-act tbody tr:last-child td { border-bottom: 1px solid #111827; }
.spcc-view-act th.spcc-th-dead { background: #c91d35; color: #ffffff; }
.spcc-view-act th.spcc-th-live { background: #df8200; color: #ffffff; }
.spcc-view-act th.spcc-th-active { background: #078a4b; color: #ffffff; }

/* 12-10-2026 (Anmol: add the percentage bars back): improvement-case share bars below the action table. */
.spcc-view-peers { margin-top: 10px; }

/* 12-10-2026 (Anmol: compare full month or till date, default till date): the filter bar of the View card. */
.spcc-view-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 10px; border: 1px solid #111827; border-radius: 10px; background: #f8fafc; color: #0f172a; font-size: 12px; font-weight: 700; }
.spcc-view-cmp button { padding: 4px 12px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; color: #0f172a; font: inherit; font-weight: 800; cursor: pointer; }
.spcc-view-modal[data-cmp="till"] .spcc-view-cmp button[data-sp-view-cmp="till"], .spcc-view-modal[data-cmp="full"] .spcc-view-cmp button[data-sp-view-cmp="full"] { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.spcc-view-cmp > span { color: #475569; font-weight: 650; }
.spcc-view-modal[data-cmp="till"] .spcc-cmp-full, .spcc-view-modal[data-cmp="full"] .spcc-cmp-till { display: none !important; }
.spcc-view-tile-val .spcc-view-trend-worse { color: #b91c1c; }
.spcc-view-tile-val .spcc-view-trend-improving { color: #15803d; }
.spcc-delta { font-weight: 800; }
.spcc-delta-bad { color: #b91c1c; }
.spcc-delta-good { color: #15803d; }
.spcc-delta-same { color: #64748b; }
.spcc-view-act th:not([class]) { text-align: center; }

/* 12-10-2026 (Anmol: "put a View button in What to do, the text inside it, make the box small"): compact action table. */
.spcc-view-act th { padding: 5px 6px; }
.spcc-view-act td { padding: 5px 6px; }
.spcc-view-act td.spcc-todo-cell { width: 1%; white-space: nowrap; }
.spcc-todo > summary { display: inline-block; padding: 3px 14px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; color: #0f172a; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.spcc-todo > summary::-webkit-details-marker { display: none; }
.spcc-todo[open] > summary { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.spcc-todo-text { box-sizing: border-box; width: 260px; margin-top: 6px; padding: 7px 9px; border: 1px solid #111827; border-radius: 8px; background: #f0fdfa; color: #0f172a; font-size: 12px; font-weight: 650; line-height: 1.4; text-align: left; white-space: normal; }

/* 12-10-2026 (Anmol: Trend Reports looks too big at 100 % -> fit-to-screen zoom like the sidebar; line chart till date / full month). */
.sourcing-mode .spcc-trend { zoom: var(--ui-zoom, 1); }
.spcc-trend-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 10px; border: 1px solid #111827; border-radius: 10px; background: #f8fafc; color: #0f172a; font-size: 12px; font-weight: 700; }
.spcc-trend-cmp button { padding: 4px 12px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; color: #0f172a; font: inherit; font-weight: 800; cursor: pointer; }
.spcc-trend-cmp button.on { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.spcc-trend-cmp > span { color: #475569; font-weight: 650; }

/* 12-10-2026 (Anmol: Trend Insights must not go below the chart line, scroll inside): the panel takes exactly the chart's height. */
.spcc-trend .trend-main-grid { align-items: stretch; }
.spcc-trend .trend-main-grid > .trend-insights-card { align-self: stretch; height: 0; min-height: 100%; max-height: none; }

/* 12-10-2026 (Anmol: Insights text big like before): the Trend Insights panel keeps its normal text size (undoes the fit-to-screen zoom inside it); its height still follows the chart. */
.sourcing-mode .spcc-trend .trend-insights-card > * { zoom: calc(1 / var(--ui-zoom, 1)); }

/* 12-10-2026 (Anmol: "open like a popup card"): What to do -> View opens a small card in the middle of the screen. */
.spcc-todo-btn { padding: 3px 14px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; color: #0f172a; font-size: 12px; font-weight: 800; cursor: pointer; }
.spcc-todo-btn:hover { background: #ecfdf5; }
.spcc-todo-pop { position: fixed; left: 50%; top: 50%; z-index: 400; box-sizing: border-box; width: min(380px, 88vw); transform: translate(-50%, -50%); border: 2px solid #111827; border-radius: 14px; background: #ffffff; box-shadow: 0 24px 60px rgba(15, 23, 42, .4); overflow: hidden; }
.spcc-todo-pop-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #111827; background: #0f766e; color: #ffffff; font-size: 13px; }
.spcc-todo-pop-head b { flex: 0 0 auto; font-weight: 850; }
.spcc-todo-pop-head span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; opacity: .9; }
.spcc-todo-pop-x { flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid #ffffff; border-radius: 7px; background: transparent; color: #ffffff; font-size: 18px; line-height: 1; cursor: pointer; }
.spcc-todo-pop-body { padding: 14px 16px; color: #0f172a; font-size: 14px; font-weight: 650; line-height: 1.5; }

/* 12-10-2026 (Anmol: black outline on the improvement-cases bars panel, like the action table; only the top 5 rows in the action table). */
.spcc-view-peers { border: 2px solid #111827; border-radius: 12px; }

/* 12-10-2026 (Anmol: Till date / Full month next to Hide Insight, the explanation in a tooltip). */
.spcc-trend .spcc-trend-cmp { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: transparent; }
.sourcing-mode .spcc-trend-cmp .spcc-trend-cmp-tip::after { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; }

/* 12-10-2026 (Anmol: Action Report looks too big at 100 %): same fit-to-screen zoom as the sidebar, Trend Reports and the popups. */
.sourcing-mode .spcc-action-report { zoom: var(--ui-zoom, 1); }

/* 12-10-2026 (Anmol: centre align the Action Report table, tooltips on the KPI cards). */
.sourcing-mode .spcc-action-report th, .sourcing-mode .spcc-action-report td { text-align: center; }
.sourcing-mode .spcc-action-report td small { text-align: center; }
.sourcing-mode .spcc-action-bucket-title { display: inline-flex; align-items: center; gap: 6px; }
.sourcing-mode .spcc-action-bucket-tip { flex: 0 0 auto; width: 15px; height: 15px; font-size: 10px; }
.sourcing-mode .spcc-action-bucket-tip::after { right: auto; left: 0; max-width: 250px; white-space: normal; text-align: left; font-weight: 600; }

/* 12-10-2026 (Anmol: header KPI chips -> proper KPI cards, organised): Dead / Live / Active cards of the Action Report header. */
.sourcing-mode .spcc-action-mixstats { gap: 10px; margin-top: 10px; }
.sourcing-mode .spcc-action-stat { flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 12px 10px; border: 2px solid transparent; border-top: 4px solid var(--c); border-radius: 12px; text-align: center; }
.sourcing-mode .spcc-action-stat > .spcc-stat-top { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ar-ink-2); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.sourcing-mode .spcc-action-stat > .spcc-stat-top::before { content: none; }
.sourcing-mode .spcc-action-stat .spcc-stat-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--c); }
.sourcing-mode .spcc-action-stat b { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 30px; }
.sourcing-mode .spcc-action-stat b small { margin-left: 0; font-size: 12px; }
.sourcing-mode .spcc-action-stat em { margin: 2px 0 0; padding: 2px 10px; font-size: 11.5px; }
.sourcing-mode .spcc-action-stat-tip { width: 15px; height: 15px; font-size: 10px; text-transform: none; letter-spacing: 0; }
.sourcing-mode .spcc-action-stat-tip::after { top: calc(100% + 8px); bottom: auto; right: 0; max-width: 250px; white-space: normal; text-align: left; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sourcing-mode .spcc-action-stat.on { border-color: var(--c); border-top-width: 4px; }
.sourcing-mode .spcc-action-stat b { flex-wrap: wrap; }
.sourcing-mode .spcc-action-stat b small { white-space: nowrap; }
@media (max-width: 560px) { .sourcing-mode .spcc-action-stat b { font-size: 26px; } .sourcing-mode .spcc-action-mixstats { gap: 6px; } }

/* 12-10-2026 (Anmol: new Action Report layout, saves space): heading -> filters -> 3 KPI cards in one row -> the 4 group cards in a drop-down (closed). */
.sourcing-mode .spcc-action-header { display: block; padding: 12px 18px; }
.sourcing-mode .spcc-action-header p { margin-top: 3px; }
.sourcing-mode .spcc-action-kpirow { padding: 10px 14px 12px; border-bottom: 1px solid var(--ar-rule); background: #f8fafc; }
.sourcing-mode .spcc-action-kpirow .spcc-action-mixbar { margin-bottom: 8px; }
.sourcing-mode .spcc-action-kpirow .spcc-action-mixstats { margin-top: 0; }
.sourcing-mode .spcc-action-kpirow .spcc-action-stat { flex-direction: row; justify-content: space-between; gap: 12px; padding: 7px 14px; border: 2px solid var(--ar-rule); border-top: 4px solid var(--c); border-radius: 12px; background: #ffffff; }
.sourcing-mode .spcc-action-kpirow .spcc-action-stat.on { border-color: var(--c); border-top-width: 4px; background: var(--cs); }
.sourcing-mode .spcc-action-kpirow .spcc-action-stat b { font-size: 26px; flex-wrap: nowrap; }
.sourcing-mode .spcc-action-kpirow .spcc-action-stat em { margin: 0; }
.sourcing-mode .spcc-action-groups-drop { margin: 0; border-bottom: 1px solid var(--ar-rule); background: #ffffff; }
.sourcing-mode .spcc-action-groups-drop > summary { display: flex; align-items: center; gap: 14px; padding: 9px 18px; cursor: pointer; list-style: none; color: var(--ar-ink); font-size: 13px; }
.sourcing-mode .spcc-action-groups-drop > summary::-webkit-details-marker { display: none; }
.sourcing-mode .spcc-gd-title { font-weight: 850; }
.sourcing-mode .spcc-gd-now { flex: 1 1 auto; color: var(--ar-ink-2); font-weight: 650; }
.sourcing-mode .spcc-gd-hint { flex: 0 0 auto; padding: 3px 12px; border: 1px solid #111827; border-radius: 8px; background: #ffffff; font-weight: 800; }
.sourcing-mode .spcc-action-groups-drop[open] > summary { border-bottom: 1px solid var(--ar-rule); }
.sourcing-mode .spcc-action-groups-drop[open] .spcc-gd-hint { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.sourcing-mode .spcc-action-groups-drop > .spcc-action-buckets { padding: 12px 14px; }
@media (max-width: 700px) { .sourcing-mode .spcc-action-kpirow .spcc-action-stat { flex-direction: column; gap: 4px; } .sourcing-mode .spcc-action-groups-drop > summary { flex-wrap: wrap; padding: 9px 12px; } }

/* 12-10-2026 (Anmol: "3 KPI cards vertical on the left, the group cards vertical on the right"): Action Report dashboard block. */
.sourcing-mode .spcc-action-dash { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); align-items: stretch; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--ar-rule); background: #f8fafc; }
.sourcing-mode .spcc-action-kpicol { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.sourcing-mode .spcc-action-kpicol .spcc-action-mixbar { margin: 0; }
.sourcing-mode .spcc-action-kpicol .spcc-action-mixstats { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 8px; margin: 0; }
.sourcing-mode .spcc-action-dash .spcc-action-stat { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top em" "num em"; align-items: center; justify-items: start; gap: 2px 12px; padding: 8px 14px; border: 2px solid var(--ar-rule); border-top: 4px solid var(--c); border-radius: 12px; background: #ffffff; text-align: left; }
.sourcing-mode .spcc-action-dash .spcc-action-stat.on { border-color: var(--c); border-top-width: 4px; background: var(--cs); }
.sourcing-mode .spcc-action-dash .spcc-action-stat > .spcc-stat-top { grid-area: top; justify-content: flex-start; }
.sourcing-mode .spcc-action-dash .spcc-action-stat b { grid-area: num; justify-content: flex-start; font-size: 28px; flex-wrap: nowrap; }
.sourcing-mode .spcc-action-dash .spcc-action-stat em { grid-area: em; align-self: center; margin: 0; }
.sourcing-mode .spcc-action-groupcol { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.sourcing-mode .spcc-action-grouphead { margin: 0; color: var(--ar-ink-2); font-size: 12px; font-weight: 650; }
.sourcing-mode .spcc-action-grouphead b { color: var(--ar-ink); font-size: 13px; font-weight: 850; }
.sourcing-mode .spcc-action-dash .spcc-action-buckets { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 8px; padding: 0; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(0, 1.6fr) minmax(170px, 1fr); align-items: center; gap: 14px; padding: 8px 14px; text-align: left; }
@media (max-width: 1100px) { .sourcing-mode .spcc-action-dash { grid-template-columns: 1fr; } .sourcing-mode .spcc-action-dash .spcc-action-bucket { grid-template-columns: 1fr; gap: 4px; } }

/* 12-10-2026 (Anmol: taller group cards, less empty stretch - the middle holds what the group means and what to do). */
.sourcing-mode .spcc-action-dash .spcc-action-bucket { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(150px, .8fr); padding: 14px 18px; min-height: 84px; }
.sourcing-mode .spcc-action-bucket-mid { display: grid; gap: 4px; min-width: 0; }
.sourcing-mode .spcc-action-bucket-mid .spcc-action-bucket-rule { color: var(--ar-ink-2); font-size: 12px; font-weight: 650; }
.sourcing-mode .spcc-action-bucket-todo { color: var(--ar-ink); font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.sourcing-mode .spcc-action-bucket-todo b { font-weight: 850; }
.sourcing-mode .spcc-action-bucket-todo b { color: inherit; font-size: inherit; line-height: inherit; font-variant-numeric: normal; }
.sourcing-mode .spcc-action-dash .spcc-action-stat { grid-template-rows: auto auto; align-content: center; row-gap: 6px; }

/* 12-10-2026 (Anmol: narrower group boxes, 2 on the top row and 2 below): the 4 group cards as a 2 x 2 grid. */
.sourcing-mode .spcc-action-dash .spcc-action-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; min-width: 0; padding: 12px 16px; min-height: 0; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-top { align-items: baseline; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-foot { margin-top: 2px; }
@media (max-width: 700px) { .sourcing-mode .spcc-action-dash .spcc-action-buckets { grid-template-columns: 1fr; } }

/* 12-10-2026 (Anmol: "make a square, not rectangle, change this layout"): the 3 status cards and the 4 group cards are square tiles in ONE grid (one row on a wide screen, wraps on a narrow one). */
.sourcing-mode .spcc-action-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 12px 14px; }
.sourcing-mode .spcc-action-kpicol, .sourcing-mode .spcc-action-kpicol .spcc-action-mixstats, .sourcing-mode .spcc-action-groupcol, .sourcing-mode .spcc-action-dash .spcc-action-buckets { display: contents; }
.sourcing-mode .spcc-action-dash .spcc-action-mixbar { grid-column: 1 / -1; order: -1; }
.sourcing-mode .spcc-action-dash .spcc-action-grouphead { grid-column: 1 / -1; order: 9; }
.sourcing-mode .spcc-action-dash .spcc-action-stat, .sourcing-mode .spcc-action-dash .spcc-action-bucket { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; aspect-ratio: 1 / 1; min-width: 0; min-height: 0; padding: 12px 14px; overflow: hidden; text-align: left; }
.sourcing-mode .spcc-action-dash .spcc-action-stat b { flex-direction: column; align-items: flex-start; gap: 0; font-size: 40px; }
.sourcing-mode .spcc-action-dash .spcc-action-stat b small { margin-top: 2px; }
.sourcing-mode .spcc-action-dash .spcc-action-stat em { align-self: flex-start; margin: 0; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-top { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-top b { font-size: 34px; line-height: 1.05; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-mid { gap: 3px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-mid .spcc-action-bucket-rule { font-size: 11px; line-height: 1.3; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-todo { font-size: 11.5px; line-height: 1.3; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-foot { width: 100%; margin-top: 0; }
.sourcing-mode .spcc-action-dash { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1279px) { .sourcing-mode .spcc-action-dash { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px) { .sourcing-mode .spcc-action-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-mid .spcc-action-bucket-rule { font-size: 12px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-todo { font-size: 12.5px; }
.sourcing-mode .spcc-action-dash .spcc-action-stat, .sourcing-mode .spcc-action-dash .spcc-action-bucket { min-height: auto; overflow: visible; }
@media (max-width: 699px) { .sourcing-mode .spcc-action-dash .spcc-action-bucket-todo { display: none; } .sourcing-mode .spcc-action-dash .spcc-action-stat b { font-size: 34px; } }
@media (max-width: 1279px) { .sourcing-mode .spcc-action-dash .spcc-action-stat, .sourcing-mode .spcc-action-dash .spcc-action-bucket { aspect-ratio: auto; min-height: 150px; } }

/* 12-10-2026 (Anmol: "put the 3 KPI on the header only, like in the first before changes"): Dead / Live / Active are the compact chips in the header again; the dashboard block under the filters holds only the 4 group tiles. */
.sourcing-mode .spcc-action-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(560px, 760px); align-items: end; gap: 14px 28px; padding: 18px 20px; }
.sourcing-mode .spcc-action-header .spcc-action-mixstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.sourcing-mode .spcc-action-header .spcc-action-stat { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px 8px; padding: 5px 10px; border: 2px solid transparent; border-radius: 9px; background: #ffffff; text-align: left; }
.sourcing-mode .spcc-action-header .spcc-action-stat.on { border-color: var(--c); background: var(--cs); }
.sourcing-mode .spcc-action-header .spcc-action-stat b { flex-direction: row; align-items: baseline; flex-wrap: nowrap; gap: 4px; font-size: 19px; }
.sourcing-mode .spcc-action-header .spcc-action-stat b small { margin-left: 4px; font-size: 12px; }
.sourcing-mode .spcc-action-header .spcc-action-stat em { margin: 0 0 0 auto; padding: 1px 6px; font-size: 11px; }
.sourcing-mode .spcc-action-dash .spcc-action-grouphead { grid-column: span 3; order: 0; align-self: center; font-size: 13px; line-height: 1.5; }
.sourcing-mode .spcc-action-dash .spcc-action-grouphead b { display: block; font-size: 17px; }
@media (max-width: 1279px) { .sourcing-mode .spcc-action-dash .spcc-action-grouphead { grid-column: 1 / -1; order: 9; } }
@media (max-width: 1240px) { .sourcing-mode .spcc-action-header { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sourcing-mode .spcc-action-header .spcc-action-mixstats { grid-template-columns: 1fr; } }
.sourcing-mode .spcc-action-header { grid-template-columns: minmax(0, 1fr) minmax(600px, 800px); }
.sourcing-mode .spcc-action-header .spcc-of { display: none; }
.sourcing-mode .spcc-action-header .spcc-action-stat > .spcc-stat-top { white-space: nowrap; flex-wrap: nowrap; }
.sourcing-mode .spcc-action-header .spcc-action-stat em { white-space: nowrap; }
.sourcing-mode .spcc-action-dash .spcc-action-grouphead { order: 9; }

/* 12-10-2026 (Anmol: "very confused, change as per your knowledge"): the 4 group cards fill the full width as 4 equal cards, same inner order in every card (name + count / meaning / what to do / meter + View), the caption sits above them. */
.sourcing-mode .spcc-action-dash { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 14px 14px; }
.sourcing-mode .spcc-action-dash .spcc-action-grouphead { grid-column: 1 / -1; order: -1; align-self: auto; margin: 0 0 2px; font-size: 12px; line-height: 1.3; }
.sourcing-mode .spcc-action-dash .spcc-action-grouphead b { display: inline; font-size: 14px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket { display: grid; grid-template-rows: auto 1fr auto; align-items: start; justify-content: stretch; gap: 8px; aspect-ratio: auto; min-height: 0; padding: 12px 16px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-top { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-top b { font-size: 32px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-mid { align-self: stretch; gap: 4px; }
.sourcing-mode .spcc-action-dash .spcc-action-bucket-foot { align-self: end; }
@media (max-width: 1099px) { .sourcing-mode .spcc-action-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sourcing-mode .spcc-action-dash { grid-template-columns: 1fr; } .sourcing-mode .spcc-action-dash .spcc-action-bucket-todo { display: block; } }
.sourcing-mode .spcc-action-dash .spcc-action-bucket { grid-template-columns: minmax(0, 1fr); }

/* 12-10-2026 (Anmol: "make this tooltip big"): bigger text and box for the Action Report group-card and Dead/Live/Active tooltips. */
.sourcing-mode .spcc-action-bucket-tip::after, .sourcing-mode .spcc-action-stat-tip::after { width: 340px; max-width: min(340px, 80vw); padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.5; box-shadow: 0 12px 32px rgba(15, 23, 42, .35); }
.sourcing-mode .spcc-action-bucket:nth-child(n+3) .spcc-action-bucket-tip::after { left: auto; right: 0; }

/* 12-10-2026 (Anmol: "just add a black border to the KPI cards, the clicked one stays as it is"): unselected group cards get a black outline. */
.sourcing-mode .spcc-action-bucket:not(.on) { border: 2px solid #111827; border-top: 4px solid var(--b); }

/* 12-10-2026 (Anmol: "use border for box"): black outline on the Action Report table and its cells. */
.sourcing-mode .spcc-action-report .spcc-action-scroll table { border: 2px solid #111827; }
.sourcing-mode .spcc-action-report .spcc-action-scroll th, .sourcing-mode .spcc-action-report .spcc-action-scroll td { border-right: 1px solid #111827; border-bottom: 1px solid #111827; }
.sourcing-mode .spcc-action-report .spcc-action-scroll th:last-child, .sourcing-mode .spcc-action-report .spcc-action-scroll td:last-child { border-right: 0; }
.sourcing-mode .spcc-action-report .spcc-action-scroll tbody tr:last-child td { border-bottom: 0; }

/* 12-10-2026 (Anmol: clear tooltips on all the filters of the Action Report): data-tip tooltips on the trend chips, the All points button and the Sort buttons. */
.sourcing-mode .spcc-action-report [data-tip] { position: relative; }
.sourcing-mode .spcc-action-report [data-tip]::after { content: attr(data-tip); position: absolute; z-index: 95; left: 0; top: calc(100% + 8px); width: max-content; max-width: 320px; padding: 10px 12px; border-radius: 10px; background: #111827; color: #ffffff; box-shadow: 0 12px 32px rgba(15, 23, 42, .35); font: 600 13px/1.5 var(--sans); letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease; }
.sourcing-mode .spcc-action-report [data-tip]:hover::after, .sourcing-mode .spcc-action-report [data-tip]:focus-visible::after { opacity: 1; transform: none; }
.sourcing-mode .spcc-action-sort [data-tip]::after { left: auto; right: 0; }
.sourcing-mode .spcc-action-seg { overflow: visible; }
.sourcing-mode .spcc-action-seg button:first-child { border-radius: 6px 0 0 6px; }
.sourcing-mode .spcc-action-seg button:last-child { border-radius: 0 6px 6px 0; }
.sourcing-mode .spcc-action-seg [data-tip]::after { left: auto; right: 0; }

/* 12-10-2026 (Anmol: "make tooltips bigger, readable"): the Action Report is shown at the fit-to-screen zoom, so its tooltips need a larger size to read like normal text. */
.sourcing-mode .spcc-action-report [data-tip]::after, .sourcing-mode .spcc-action-bucket-tip::after, .sourcing-mode .spcc-action-stat-tip::after { width: 440px; max-width: min(440px, 85vw); padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 600; line-height: 1.5; }

/* 12-10-2026 (Anmol: how long a point has been in the system, next to its ID). */
.sourcing-mode .spcc-action-report .spcc-tenure { padding: 1px 7px; border: 1px solid #111827; border-radius: 999px; background: #ffffff; color: #0f172a; font-size: 11px; font-weight: 800; white-space: nowrap; }

/* 12-10-2026 (Anmol: "make this big and use background colour"): the "Show all N points" button under the Action Report table. */
.sourcing-mode .spcc-action-report .spcc-action-more { display: block; width: 100%; padding: 16px 20px; border: 0; border-top: 2px solid #111827; background: #0f766e; color: #ffffff; font-size: 18px; font-weight: 850; letter-spacing: .01em; text-align: center; cursor: pointer; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .sourcing-mode .spcc-action-report .spcc-action-more:hover { background: #115e59; } }
.sourcing-mode .spcc-action-report .spcc-action-more:active { background: #134e4a; }
.sourcing-mode .spcc-action-report .spcc-action-more:focus-visible { outline: 3px solid #fbbf24; outline-offset: -4px; }

/* 12-10-2026 (Anmol): (1) the "Show all N points" button must stay readable on hover; (2) "How to read this report" + the improvement-case line: big black text, a drop-down closed by default. */
.sourcing-mode .spcc-action-report .spcc-action-more:hover { background: #115e59 !important; color: #ffffff !important; }
.sourcing-mode .spcc-action-report .spcc-action-more:active { background: #134e4a !important; color: #ffffff !important; }
.sourcing-mode .spcc-action-howto { border-top: 2px solid #111827; background: #f8fafc; }
.sourcing-mode .spcc-action-howto > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; color: #000000; font-size: 18px; font-weight: 850; cursor: pointer; list-style: none; }
.sourcing-mode .spcc-action-howto > summary::-webkit-details-marker { display: none; }
.sourcing-mode .spcc-action-howto > summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border: 2px solid #111827; border-radius: 8px; background: #ffffff; font-size: 20px; line-height: 24px; text-align: center; }
.sourcing-mode .spcc-action-howto[open] > summary { border-bottom: 1px solid #111827; }
.sourcing-mode .spcc-action-howto[open] > summary::after { content: "2"; }
.sourcing-mode .spcc-action-howto .spcc-action-note { margin: 0; padding: 14px 20px; border-bottom: 1px solid #cbd5e1; color: #000000; font-size: 16px; line-height: 1.6; }
.sourcing-mode .spcc-action-howto .spcc-action-note b { color: #000000; font-size: 17px; }
.sourcing-mode .spcc-action-howto .spcc-action-foot { padding: 14px 20px 18px; border: 0; background: transparent; }
.sourcing-mode .spcc-action-howto .spcc-action-foot li { color: #000000; font-size: 16px; line-height: 1.6; }
.sourcing-mode .spcc-action-howto[open] > summary::after, .spcc-notes-drop[open] > summary::after { content: "-"; }

/* 12-10-2026 (Anmol: show every filter chip, top 5 sorted by what the filter means). */
.sourcing-mode .spcc-action-pat.is-empty { opacity: .5; cursor: default; }
.sourcing-mode .spcc-action-order { margin: 0; padding: 9px 20px; border-bottom: 1px solid #111827; background: #fffbeb; color: #000000; font-size: 14px; font-weight: 650; line-height: 1.4; }
.sourcing-mode .spcc-action-order b { font-weight: 850; }

/* bug fix: a greyed (empty) trend chip used opacity, which also faded its tooltip. Grey the colours instead so the tooltip stays solid. */
.sourcing-mode .spcc-action-pat.is-empty { opacity: 1; cursor: default; border-color: #cbd5e1; background: #f1f5f9; color: #64748b; }
.sourcing-mode .spcc-action-pat.is-empty small { background: #e2e8f0; color: #64748b; }

/* Festival comparison: year + festival on one row, date under it; equal table columns; one text weight (Anmol, 12-10-2026) */
.forecast-festival-modal--compact .forecast-festival-picker { grid-template-columns: 112px minmax(0, 1fr); align-items: end; }
.forecast-festival-modal--compact .forecast-festival-selection { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.forecast-festival-modal--compact .forecast-festival-selection-date { padding: 0 2px; text-align: left; white-space: normal; }
.forecast-festival-modal--compact .forecast-festival-date-range { grid-column: 1 / -1; }
.forecast-festival-key-table table { table-layout: fixed; width: 100%; }
.forecast-festival-key-table th:first-child { width: 31%; }
.forecast-festival-key-table td, .forecast-festival-key-table td b { font-weight: 700; }
.forecast-festival-key-table thead th small { display: block; margin-top: 2px; color: #38547b; font-size: 11px; font-weight: 650; }

/* Festival comparison: Disburse / Login switch (Anmol, 12-10-2026) */
.forecast-festival-metric { display: inline-flex; justify-self: start; padding: 3px; border: 2px solid #111827; border-radius: 10px; background: #fff; }
.forecast-festival-metric button { min-width: 92px; padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: #17324e; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.forecast-festival-metric button[aria-pressed="true"] { background: #4338ca; color: #fff; }
.forecast-festival-metric button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Festival chart: weekday under each D1, D2 ... in the colour of its line (Anmol, 12-10-2026) */
.forecast-festival-chart-days .is-wd-current { fill: #1d4ed8; font-size: 10px; font-weight: 750; }
.forecast-festival-chart-days .is-wd-prior { fill: #9a3412; font-size: 10px; font-weight: 750; }

/* Festival key table, rebuilt 13-10-2026: fixed columns, wrapped text, one quiet surface, hairlines instead of black grid, 2026 tinted as the current year. */
.forecast-festival-modal .forecast-festival-key-table { border: 1px solid #d5deea; border-radius: 12px; overflow: visible; background: #fff; }
.forecast-festival-key-table table { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.forecast-festival-key-table th, .forecast-festival-key-table td { white-space: normal; overflow-wrap: anywhere; padding: 12px 14px; border: 0; border-bottom: 1px solid #e6ecf4; background: #fff; color: #111827; vertical-align: middle; }
.forecast-festival-key-table tbody tr:nth-child(even) th, .forecast-festival-key-table tbody tr:nth-child(even) td { background: #fff; }
.forecast-festival-key-table tbody tr:last-child th, .forecast-festival-key-table tbody tr:last-child td { border-bottom: 0; }
.forecast-festival-key-table thead th { background: #eef4fb; color: #0f2a4a; border-bottom: 1px solid #cfdbea; font-size: 15px; font-weight: 800; }
.forecast-festival-key-table thead th:first-child { border-top-left-radius: 11px; }
.forecast-festival-key-table thead th:last-child { border-top-right-radius: 11px; }
.forecast-festival-key-table th:first-child { width: 30%; text-align: left; font-weight: 800; }
.forecast-festival-key-table tbody th small { display: block; margin-top: 3px; color: #475569; font-size: 12px; font-weight: 600; }
.forecast-festival-key-table th:nth-child(2), .forecast-festival-key-table td:nth-child(2) { width: 24%; }
.forecast-festival-key-table th:nth-child(3), .forecast-festival-key-table td:nth-child(3) { width: 26%; }
.forecast-festival-key-table tbody td:nth-child(3) { background: #f5f9ff; }
.forecast-festival-key-table thead th:nth-child(3) { background: #dcebfb; }
.forecast-festival-key-table td small { display: block; margin-top: 3px; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.35; }
.forecast-festival-key-table td b { font-weight: 800; }
.forecast-festival-key-table .forecast-ftip:hover, .forecast-festival-key-table .forecast-ftip:focus-visible { background: #eaf3ff; outline: 0; box-shadow: inset 0 0 0 2px #2563eb; }
.forecast-festival-key-table .forecast-growth-cell b { font-size: 14px; }
.forecast-festival-key-table .forecast-ftip .forecast-ftip-box { text-align: left; font-weight: 600; }
.forecast-ftip-box.ft-two .ft-row { grid-template-columns: 1.7fr 1fr; }
.forecast-ftip-box .ft-row > span:last-child { text-align: right; white-space: nowrap; }
.forecast-ftip-box > small { line-height: 1.4; }
.forecast-festival-key-table tbody th.forecast-ftip .forecast-ftip-box { left: 0; right: auto; bottom: auto; top: calc(100% - 6px); width: 300px; }
@media (max-width: 720px) { .forecast-festival-key-table th, .forecast-festival-key-table td { padding: 9px 7px; font-size: 12px; } .forecast-ftip .forecast-ftip-box { width: min(300px, 86vw); } }

/* 13-10-2026 (Anmol): black outline and black inner lines again, popups only where they explain something, popups never clipped. */
.forecast-festival-modal .forecast-festival-key-table { border: 2px solid #000; border-radius: 4px; }
.forecast-festival-key-table th, .forecast-festival-key-table td { border: 1px solid #000; }
.forecast-festival-key-table thead th { border-bottom: 2px solid #000; border-radius: 0 !important; }
.forecast-festival-key-table tbody tr:last-child th, .forecast-festival-key-table tbody tr:last-child td { border-bottom: 1px solid #000; }
.forecast-festival-key-table .forecast-ftip .forecast-ftip-box { position: fixed; right: auto; bottom: auto; width: 320px; max-width: calc(100vw - 16px); border: 2px solid #000; z-index: 2000; }
.forecast-ftip-box .ft-row { border-bottom: 1px solid #000; }
.forecast-ftip-box .ft-growth { border-bottom: 1px solid #000; }
.forecast-ftip-box .ft-row:last-of-type { border-bottom: 0; }
.forecast-ftip-box > b { border-bottom: 2px solid #000; }
/* Zoom-out: the festival popup used the same 720px height cap as the small ones, so it scrolled and hid its title. It now uses the window height. */
.forecast-festival-modal { max-height: calc(100vh - 40px); }

/* 13-10-2026 (Anmol): at normal zoom the festival popup was too tall (title cut, he had to zoom out). Compact version: tighter spacing, smaller type,
   figures and their small line side by side, growth pills side by side, title row stays visible. */
.forecast-festival-modal { padding: 12px 16px 14px; }
.forecast-festival-modal > header { position: sticky; top: -12px; z-index: 8; margin: -12px -16px 0; padding: 12px 16px 8px; background: #fff; }
.forecast-festival-modal > header h3 { font-size: 17px; }
.forecast-festival-modal > header p { margin-top: 2px; font-size: 11px; }
.forecast-festival-modal > header button { top: 10px; right: 14px; width: 28px; height: 28px; }
.forecast-festival-modal .forecast-festival-body { gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.35; }
.forecast-festival-modal .forecast-festival-metric button { min-width: 84px; padding: 4px 12px; font-size: 12px; }
.forecast-festival-modal .forecast-festival-filters { gap: 12px; }
.forecast-festival-modal .forecast-festival-filters label { gap: 2px; font-size: 11px; }
.forecast-festival-modal .forecast-festival-filters select { padding: 5px 8px; font-size: 13px; }
.forecast-festival-modal .forecast-festival-picker { gap: 4px; }
.forecast-festival-modal .forecast-festival-selection-date { padding-bottom: 6px; font-size: 11px; }
.forecast-festival-key-table table { font-size: 13px; }
.forecast-festival-key-table th, .forecast-festival-key-table td { padding: 6px 10px; }
.forecast-festival-key-table thead th { font-size: 14px; }
.forecast-festival-key-table thead th small { margin-top: 0; font-size: 11px; }
.forecast-festival-key-table tbody th small { display: inline; margin: 0 0 0 6px; font-size: 11px; }
.forecast-festival-key-table td small { margin-top: 1px; font-size: 11px; }
.forecast-festival-key-table tr.is-two td > small { display: inline; margin: 0 0 0 6px; }
.forecast-festival-key-table .forecast-growth-cell b { display: inline-block; margin: 1px 2px; padding: 2px 7px; font-size: 13px; }
.forecast-festival-modal .forecast-festival-chart summary { padding: 8px 12px; font-size: 13px; }
.forecast-festival-modal .forecast-festival-summary-note { font-size: 11px; }

/* 13-10-2026: fit the festival popup in one screen: toggle sits in the title row, no 'Festival' caption rows, no dev footnote. */
.ft-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.forecast-festival-modal > header .forecast-festival-metric { position: absolute; left: 16px; top: 10px; }
.forecast-festival-modal .forecast-festival-selection { align-items: center; }
.forecast-festival-modal .forecast-festival-selection-date { padding-bottom: 0; }
.forecast-festival-key-table th, .forecast-festival-key-table td { padding: 5px 10px; }
.forecast-history-modal header .forecast-festival-metric button { position: static; width: auto; height: auto; min-width: 84px; padding: 4px 12px; border: 0; border-radius: 7px; background: transparent; color: #17324e; font-size: 12px; font-weight: 800; line-height: 1.3; }
.forecast-history-modal header .forecast-festival-metric button[aria-pressed="true"] { background: #4338ca; color: #fff; }

/* Month-end card: one block again, with a Latest / Day 1 switch (13-10-2026, Anmol). */
.forecast-primary .forecast-primary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.forecast-primary .forecast-primary-head > span:first-child { display: block; }
.forecast-primary .forecast-basis { display: inline-flex; margin: -3px 0 6px; padding: 2px; border: 2px solid #111827; border-radius: 8px; background: #fff; }
.forecast-primary .forecast-basis button { min-width: 56px; padding: 3px 10px; border: 0; border-radius: 6px; background: transparent; color: #17324e; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.forecast-primary .forecast-basis button[aria-pressed="true"] { background: #4338ca; color: #fff; }
.forecast-primary .forecast-basis button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Why Day 1 and Latest are different (13-10-2026) */
.forecast-primary .forecast-why-btn { display: block; margin-top: 8px; padding: 4px 10px; border: 2px solid #111827; border-radius: 8px; background: #fff; color: #17324e; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.forecast-primary .forecast-why-btn:hover { background: #eef2ff; }
.forecast-primary .forecast-why-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.forecast-why-modal { width: min(920px, 96vw); max-height: calc(100vh - 40px); }
.why-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 12px 0; padding: 12px 16px; border: 2px solid #000; border-radius: 10px; background: #f2f7fd; }
.why-hero small { display: block; color: #334155; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.why-hero > div strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: #0f172a; }
.why-arrow { font-size: 26px; font-weight: 800; color: #475569; }
.why-delta { padding: 6px 14px; border-radius: 10px; background: #fee2e2; color: #991b1b; }
.why-delta.is-up { background: #dcfce7; color: #166534; }
.why-delta strong { font-size: 26px; }
.why-hero > span:last-child { flex-basis: 100%; font-size: 13px; font-weight: 700; color: #1e293b; }
.why-hero em { font-style: normal; font-weight: 800; }
.is-down { color: #b42318; } .is-up { color: #166534; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.why-card { padding: 12px 14px; border: 2px solid #000; border-radius: 10px; background: #fff; }
.why-card.why-wide { grid-column: 1 / -1; }
.why-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #0f172a; }
.why-card h5 { margin: 0 0 4px; font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .04em; }
.why-card > strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; }
.why-card p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #1e293b; }
.why-card .why-soft { color: #475569; }
.why-days { margin: 0; padding: 0; list-style: none; }
.why-days li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid #cbd5e1; font-size: 13px; }
.why-days li:last-child { border-bottom: 0; }
.why-days li small { display: block; color: #64748b; font-size: 11px; font-weight: 600; }
.why-days li b { font-size: 16px; font-weight: 800; }
.why-days li i { font-style: normal; color: #64748b; font-size: 12px; min-width: 78px; text-align: right; }
.why-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .why-grid, .why-teams { grid-template-columns: 1fr; } .why-hero > div strong { font-size: 24px; } }

/* Projection % card: centred both ways, a little larger (13-10-2026, Anmol) */
.forecast-main > .forecast-target { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.forecast-main > .forecast-target span { margin-bottom: 6px; font-size: 13px; }
.forecast-main > .forecast-target strong { font-size: 34px; }
.forecast-main > .forecast-target small { margin-top: 4px; font-size: 13px; }

/* projection record popup: the Disburse / Login switch sits above the note (13-10-2026) */
.forecast-history-note > .forecast-festival-metric { display: inline-flex; margin-bottom: 8px; }

/* projection record popup: compact so it fits at 100% browser zoom (13-10-2026) */
.forecast-summary-modal.forecast-record-modal { width: min(980px, 96vw); max-height: calc(100vh - 24px); padding: 12px 16px 14px; }
.forecast-record-modal > header { padding-bottom: 8px; }
.forecast-record-modal h3 { font-size: 17px; }
.forecast-record-modal .forecast-history-note { margin: 8px 0; font-size: 12px; line-height: 1.4; }
.forecast-record-modal .forecast-history-table table { font-size: 13px; }
.forecast-record-modal .forecast-history-table th, .forecast-record-modal .forecast-history-table td { padding: 5px 10px; }
.forecast-record-modal td small, .forecast-record-modal th small { font-size: 11px; }

/* record popup: all text black (13-10-2026) */
.forecast-record-modal, .forecast-record-modal .forecast-history-note, .forecast-record-modal td, .forecast-record-modal th, .forecast-record-modal small { color: #000; }

/* month cards: the % and the bar follow the Target Miss slab, under 50% red, 50-79.9% orange, 80%+ green (13-10-2026) */
.forecast-pattern-progress.tm-high strong { color: #b42318; }
.forecast-pattern-progress.tm-high .forecast-pattern-meter i { background: #dc2626; }
.forecast-pattern-progress.tm-watch strong { color: #b45309; }
.forecast-pattern-progress.tm-watch .forecast-pattern-meter i { background: #f59e0b; }
.forecast-pattern-progress.tm-good strong { color: #06735f; }
.forecast-pattern-progress.tm-good .forecast-pattern-meter i { background: #0c8c73; }

/* Sales team drawer (team-drawer.js, 13-10-2026): opens like the left menu. It sits on the right edge, off screen at rest, and slides in over the page on its own
   layer (transform + opacity only, so it stays smooth); the page is never moved. Above every popup, so the team can be changed from anywhere. */
.team-edge { position: fixed; right: 0; top: 50%; z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; transform: translateY(-50%);
  border: 2px solid #111827; border-right: 0; border-radius: 12px 0 0 12px; background: #fff; color: #17324e; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: -4px 4px 14px rgba(15, 23, 42, .16); }
.team-edge { opacity: 0; width: 18px; min-width: 18px; padding: 0; border: 0; box-shadow: none; }
.team-edge:focus-visible { opacity: 1; width: auto; padding: 14px 8px; }
@media (hover: hover) and (pointer: fine) {
  .team-edge { top: 0; height: 100dvh; transform: none; }
  .team-edge:focus-visible { top: 50%; height: auto; transform: translateY(-50%); }
  body:has(.team-drawer.is-open) .sidebar { transform: translateX(-100%) !important; pointer-events: none; }
}
.team-edge span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }
.team-edge svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.team-edge.is-filtered { background: #4338ca; color: #fff; border-color: #4338ca; }
.team-edge:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.team-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1210; display: flex; flex-direction: column; gap: 12px; width: min(300px, 88vw); padding: 16px; overflow-y: auto; perspective: 600px;
  border-left: 1px solid rgba(15, 23, 42, .08); background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  transform: translateX(100%); visibility: hidden; will-change: transform;
  box-shadow: none;
  transition: transform 280ms var(--ease-drawer, cubic-bezier(.32, .72, 0, 1)) 60ms, visibility 0s linear 340ms, box-shadow 200ms ease 60ms; }
.team-drawer.is-open { transform: translateX(0); visibility: visible; box-shadow: -22px 0 48px -22px rgba(15, 23, 42, .42);
  transition: transform 340ms var(--ease-drawer, cubic-bezier(.32, .72, 0, 1)) 40ms, visibility 0s, box-shadow 200ms ease 40ms; }
/* the items swing in one after another, like the menu labels */
.team-drawer .team-item { opacity: 0; transform: translateX(12px) rotateY(40deg); transform-origin: right center; transition: opacity 0ms linear 340ms, transform 0ms linear 340ms; }
.team-drawer.is-open .team-item { opacity: 1; transform: none; transition: opacity 260ms ease, transform 420ms var(--ease-out-strong, cubic-bezier(.23, 1, .32, 1)); transition-delay: calc(var(--i, 0) * 38ms + 120ms); }
.team-drawer header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid #000; }
.team-drawer header strong { display: block; color: #0f172a; font-size: 16px; font-weight: 800; }
.team-drawer header small { color: #475569; font-size: 12px; font-weight: 600; }
.team-drawer-close { width: 30px; height: 30px; border: 1px solid #000; border-radius: 8px; background: #e5f5ff; color: #000; font-size: 20px; line-height: 1; cursor: pointer; }
.team-drawer label { display: grid; gap: 4px; color: #0f172a; font-size: 12px; font-weight: 800; }
.team-drawer select { width: 100%; padding: 8px 10px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; color: #17324e; font: inherit; font-size: 13px; font-weight: 700; }
.team-drawer select:disabled { background: #f1f5f9; color: #64748b; }
.team-drawer-reset { padding: 8px 10px; border: 2px solid #111827; border-radius: 8px; background: #fff; color: #17324e; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.team-drawer-reset:hover { background: #eef2ff; }
.team-drawer-now { margin: 0; color: #1e293b; font-size: 12px; font-weight: 700; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .team-drawer, .team-drawer.is-open, .team-drawer .team-item { transition: none !important; } }
@media print { .team-edge, .team-drawer { display: none !important; } }
@media (max-width: 720px) {
  .team-edge { top: auto; bottom: 14px; transform: none; flex-direction: row; padding: 8px 12px; }
  .team-edge span { writing-mode: horizontal-tb; transform: none; }
}
/* narrow screens: the Disburse / Login switch goes under the festival popup title instead of on top of it */
@media (max-width: 720px) {
  .forecast-festival-modal > header { flex-wrap: wrap; justify-content: center; padding-right: 40px; }
  .forecast-festival-modal > header .forecast-festival-metric { position: static; order: 2; margin-top: 6px; }
  .forecast-festival-modal > header > div:not(.forecast-festival-metric) { flex-basis: 100%; }
}
.team-drawer [hidden] { display: none !important; }

/* Why-different popup (13-10-2026): three columns so it fits one screen at normal zoom; all text black and larger */
.forecast-why-modal { width: min(1180px, 96vw); max-height: calc(100vh - 24px); padding: 12px 18px 14px; color: #000; }
.forecast-why-modal > header { padding-bottom: 8px; }
.forecast-why-modal h3 { font-size: 20px; }
.forecast-why-modal, .forecast-why-modal p, .forecast-why-modal li, .forecast-why-modal small, .forecast-why-modal i, .forecast-why-modal h4, .forecast-why-modal h5, .forecast-why-modal span { color: #000; }
.why-hero { margin: 8px 0; padding: 8px 14px; gap: 6px 22px; }
.why-hero small { font-size: 12px; }
.why-hero > div strong { font-size: 32px; }
.why-hero > span:last-child { font-size: 15px; font-weight: 700; }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.why-card { padding: 10px 14px; }
.why-card.why-wide { grid-column: span 2; }
.why-card.why-full { grid-column: 1 / -1; }
.why-card h4 { margin-bottom: 4px; font-size: 16px; }
.why-card h5 { font-size: 13px; }
.why-card > strong { font-size: 30px; }
.why-card p { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.why-card .why-soft { color: #000; }
.why-days li { padding: 4px 0; font-size: 15px; }
.why-days li small { font-size: 13px; color: #000; }
.why-days li b { font-size: 18px; }
.why-days li i { font-size: 14px; color: #000; min-width: 90px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why-card.why-wide { grid-column: 1 / -1; } }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-teams .why-days li small { display: inline; margin-left: 8px; }
.why-teams .why-days li { padding: 3px 0; }
.why-hero { padding: 6px 14px; margin: 6px 0; }
.why-card { padding: 8px 12px; }
.why-grid { gap: 8px; }
.why-days li small { font-size: 13px; }
.forecast-why-modal > header p { margin-top: 2px; }
.why-card > strong { font-size: 28px; line-height: 1.1; }
.team-edge[hidden], .team-drawer[hidden] { display: none !important; }   /* Hourly Insights has its own filters: no tab there */
.drawer-backdrop { position: fixed; inset: 0; z-index: 1185; background: rgba(15, 23, 42, .2); touch-action: none; }
.drawer-backdrop[hidden] { display: none; }
.jump-ctl[hidden] { display: none !important; }   /* Jump to removed from the filter bar (13-10-2026); the element stays hidden because the page scripts still bind to #fSearch */
/* SM / Executive filter level: a small drop-down instead of two big buttons (13-10-2026) */
.ach-level-ctl { width: 150px; }
.ach-level-ctl select { width: 100%; }

/* Scoreboard + moving news line in the filter bar (target.js renderScoreStrip, 13-10-2026) */
.score-strip { flex: 1 1 560px; min-width: 0; display: grid; gap: 6px; }
.score-strip[hidden] { display: none !important; }
.score-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.score-tile { min-width: 0; padding: 6px 10px; border: 1.5px solid #111827; border-radius: 10px; background: #fff; }
.score-tile span { display: block; overflow: hidden; color: #334155; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.score-tile strong { display: block; color: #0f172a; font-size: 20px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-tile strong small { color: #475569; font-size: 11px; font-weight: 700; }
.score-tile em { display: block; overflow: hidden; color: #334155; font-size: 11px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.score-tile.is-up { border-color: #16a34a; background: #f0fdf4; } .score-tile.is-up em { color: #166534; }
.score-tile.is-mid { border-color: #f59e0b; background: #fffbeb; } .score-tile.is-mid em { color: #92400e; }
.score-tile.is-down { border-color: #dc2626; background: #fef2f2; } .score-tile.is-down em { color: #b42318; }
.score-ticker { overflow: hidden; border: 1.5px solid #111827; border-radius: 10px; background: #0f172a; white-space: nowrap; }
.score-track { display: inline-flex; align-items: center; gap: 14px; padding: 6px 0 6px 14px; animation: mp-ticker 60s linear infinite; will-change: transform; }
.score-ticker:hover .score-track, .score-ticker:focus-within .score-track { animation-play-state: paused; }
@keyframes mp-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { color: #e2e8f0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tk b { color: #fff; font-weight: 800; }
.tk i { font-style: normal; }
.tk.is-up i { color: #4ade80; } .tk.is-down i { color: #f87171; }
.tk em { color: #cbd5e1; font-style: normal; font-weight: 600; }
.tk-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #334155; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.tk-tag.top { background: #166534; } .tk-tag.low { background: #991b1b; } .tk-tag.alert { background: #b45309; } .tk-tag.rec { background: #4338ca; }
.tk-sep { color: #64748b; }
@media (prefers-reduced-motion: reduce) { .score-track { animation: none; } .score-ticker { overflow-x: auto; } }
@media (max-width: 900px) { .score-strip { flex-basis: 100%; } .score-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Quality palette: restrained orange and warm paper, scoped to this page. */
body.quality-mode {
  --ql-canvas: #ffffff; --ql-surface: #fffdfa; --ql-ink: #3c2d21; --ql-muted: #6d5b4c;
  --ql-brand: #a94f16; --ql-border: #d4b89e; --ql-selected: #f4dfca;
  --ql-good: #35644a; --ql-good-bg: #edf3eb; --ql-warn: #a65a16; --ql-warn-bg: #fbecd9;
  --ql-bad: #9a382f; --ql-bad-bg: #f9e7e1;
  --page: var(--ql-canvas); --surface: var(--ql-surface); --raise: var(--ql-surface);
  --ink: var(--ql-ink); --ink-2: var(--ql-muted); --ink-3: #7b6654;
  --line: #e2d3c5; --line-2: #f1e8df; --surface-border: var(--ql-border);
  --mtd: #a94f16; --lmtd: #8b6240; --aqua: #8a6b36; --indigo: #825a3b;
  --good: var(--ql-good); --good-ink: var(--ql-good); --warn: var(--ql-warn); --critical: var(--ql-bad);
  --mtd-soft: #f7e8dc; --mtd-border: #d9ad89; --good-soft: var(--ql-good-bg);
  --good-border: #b8ccb8; --bad-soft: var(--ql-bad-bg); --bad-border: #dfb3a8;
  --warn-soft: var(--ql-warn-bg); --warn-border: #e6be94;
  --indigo-soft: #f3e8dd; --indigo-border: #d4baa3;
}
.quality-mode #focusHead[hidden], .quality-mode #kpiGrid[hidden], .quality-mode #kpiNote[hidden], .quality-mode #childCard[hidden],
.quality-mode #crumbs, .quality-mode .ach-ctl, .quality-mode .ach-level-ctl { display: none; }   /* 03-11-2026: the Basis filter shows on every page */
.quality-mode .topbar, .quality-mode .sidebar, .quality-mode .mobile-filter-toggle { background: #ffffff; }
.quality-mode .sidebar { border-color: #dfc9b4; }
.quality-mode .brand-mark { background: #a94f16; }
.quality-mode .filter-group.tint-blue { background: #f8e8dc; border-color: #e1b995; }
.quality-mode .filter-group.tint-green { background: #f6ede2; border-color: #d9c2aa; }
.quality-mode .sidebar button.on { background: #f4dfca; box-shadow: none; }
.quality-mode .sidebar button.on, .quality-mode .sidebar button.on span, .quality-mode .sidebar button.on .nav-ic { color: #91400d; }
.quality-mode .sidebar button.on::before { background: #a94f16; box-shadow: none; }
.quality-mode .sidebar #sectionNav button[data-section="quality"] { border-color: #d99155; background: #f4dfca; box-shadow: none; }
.quality-mode .sidebar #sectionNav button[data-section="quality"]:is(:hover, :focus-visible) { background: #f0d2b4; box-shadow: none; }
.quality-mode .ctl select, .quality-mode .ctl input { color: #3c2d21; background: #fffdfa; border-color: #d4b89e; }
.quality-mode .team-edge { background: #a94f16; color: #fff; border-color: #a94f16; }
.ql-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; color: var(--ql-ink); }
.ql-page > * { min-width: 0; }
.ql-page .card { background: var(--ql-surface); border: 2px solid #171717; }
.ql-page .card:hover { box-shadow: none; }
.ql-trail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 2px solid #171717; border-radius: 8px; background: #f7e8dc; }
.ql-trail button { padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ql-brand); font: 750 12px var(--sans); cursor: pointer; }
.ql-trail button.current { border-color: #d7ad88; background: #fffdfa; color: var(--ql-ink); }
.ql-trail .ql-back { margin-left: auto; border-color: #d7ad88; background: #fffdfa; }
.ql-trail button:disabled { color: #806b5a; cursor: default; background: transparent; border-color: transparent; }
.ql-trail-sep { color: #806b5a; font-size: 12px; }
.ql-summary { padding: 0; }
.ql-header { margin: 0; padding: 12px 14px; border-bottom: 1px solid #8c3f12; border-radius: 8px 8px 0 0; background: var(--ql-brand); }
.ql-header h2 { color: #fcfbed; font-size: 20px; font-weight: 800; }
.ql-header .card-sub { color: #fff0e3; font-size: 12px; font-weight: 600; }
.ql-rule-note { align-self: center; padding: 4px 7px; border: 1px solid #c87840; border-radius: 6px; background: #8c3f12; color: #fff7ef; font-size: 11px; font-weight: 750; }
.ql-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; padding: 8px; }
.ql-kpi { display: flex; min-width: 0; min-height: 96px; box-sizing: border-box; flex-direction: column; justify-content: center; padding: 10px 13px; border: 1px solid #dec7b0; border-left: 5px solid var(--ql-brand); border-radius: 10px; background: #fffdfa; box-shadow: 0 4px 0 rgba(169,79,22,.12); text-align: left; }
.ql-kpi.good { background: #fffdfa; border-color: #b8ccb8; border-left-color: #198647; box-shadow: 0 6px 0 rgba(25,134,71,.15); }
.ql-kpi.bad { background: #fffdfa; border-color: #dfb3a8; border-left-color: #c83e35; box-shadow: 0 6px 0 rgba(200,62,53,.14); }
.ql-kpi.warn { background: #fffdfa; border-color: #e6be94; border-left-color: #d96914; box-shadow: 0 6px 0 rgba(217,105,20,.15); }
.ql-kpi-clickable { cursor: pointer; }
.ql-kpi-clickable:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.ql-kpi-head { position: relative; min-height: 22px; }
.ql-kpi-head h3 { padding: 2px 28px 0 0; color: var(--ql-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.ql-value { display: block; margin: 7px 0 0; color: var(--ql-ink); font-size: 32px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.ql-kpi.bad .ql-value { color: var(--ql-bad); }
.ql-kpi.warn .ql-value { color: var(--ql-warn); }
.ql-kpi.good .ql-value { color: var(--ql-good); }
.ql-help { position: absolute; top: 0; right: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid #d0a27c; border-radius: 50%; background: #fffaf5; color: var(--ql-brand); font: 800 12px/1 var(--sans); cursor: help; }
.ql-tooltip { position: fixed; inset: auto; width: min(350px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; margin: 0; padding: 10px 12px; border: 1px solid #d0a27c; border-radius: 8px; background: #fffaf5; color: var(--ql-ink); box-shadow: 0 12px 28px -12px rgba(86,49,22,.22); font-size: 13px; line-height: 1.5; text-align: left; }
.ql-tooltip b { display: block; margin-bottom: 4px; font-size: 14px; }
.ql-tooltip::backdrop { background: transparent; }
.ql-section-head { align-items: center; padding: 9px 12px; border: 1px solid #e1c09f; border-radius: 8px; background: #f8e8d8; }
.ql-section-head h2 { color: var(--ql-ink); font-size: 20px; font-weight: 800; }
.ql-section-head .card-sub { color: #71513c; font-size: 12px; }
.ql-history .ql-section-head { background: #f8eee3; border-color: #ddc3a8; }
.ql-history-key { color: #8a572e; font-size: 12px; font-weight: 750; }
.ql-filter { display: grid; gap: 3px; color: var(--ql-ink); font-size: 11px; font-weight: 750; }
.ql-filter select { max-width: 100%; padding: 6px 8px; border: 1px solid #cfa47f; border-radius: 6px; background: #fffdfa; color: var(--ql-ink); font: 650 13px var(--sans); }
.ql-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d7b798; border-radius: 8px; scrollbar-color: #c8864e #f4e5d6; }
.ql-table { width: 100%; min-width: 880px; border-collapse: collapse; color: var(--ql-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.ql-table th { padding: 8px 10px; border-bottom: 1px solid #d7b798; background: #f4dfca; color: #503523; font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; }
.ql-table td { padding: 8px 10px; border-right: 1px solid #ead8c7; border-bottom: 1px solid #ead8c7; background: #fffdfa; font-weight: 650; text-align: right; vertical-align: middle; }
.ql-table tbody tr:nth-child(even) td { background: #fbf5ee; }
.ql-table th:first-child, .ql-table td:first-child, .ql-table th:last-child, .ql-table td:last-child { text-align: left; }
.ql-table th:first-child, .ql-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; border-right: 1px solid #d7b798; }
.ql-table th:first-child { z-index: 2; }
.ql-table tr:last-child td { border-bottom: 0; }
.ql-table td:last-child { border-right: 0; }
.ql-table td.good { color: var(--ql-good); background: var(--ql-good-bg); }
.ql-table td.bad { color: var(--ql-bad); background: var(--ql-bad-bg); font-weight: 800; }
.ql-table td.warn { color: var(--ql-warn); background: var(--ql-warn-bg); }
.ql-table td.neutral { color: #7b6654; }
.ql-rate b, .ql-rate small { display: block; white-space: nowrap; }
.ql-score-cell b { display: block; white-space: nowrap; }
.ql-rate small { margin-top: 2px; font-size: 11px; }
.ql-drill, .ql-month { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 32px; padding: 3px 0; border: 0; background: transparent; color: var(--ql-brand); font: 750 13px var(--sans); text-align: left; cursor: pointer; }
.ql-drill svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ql-sample { display: block; color: var(--ql-muted); font-size: 11px; font-weight: 500; }
.ql-action { min-width: 210px; max-width: 300px; font-size: 12px; line-height: 1.45; }
.ql-report-note { margin: 9px 0 0; color: var(--ql-muted); font-size: 11.5px; }
.ql-table .ql-empty { padding: 24px 12px; color: var(--ql-muted); text-align: left; }
.ql-selected-month .ql-month { font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.ql-history .ql-table { min-width: 900px; }
.ql-brands > summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 0; font-size: 18px; font-weight: 800; cursor: pointer; }
.ql-brands > summary::after { content: "+"; margin-left: auto; font-size: 20px; }
.ql-brands[open] > summary::after { content: "−"; }
.ql-brands > summary small { color: var(--ql-muted); font-size: 12px; font-weight: 650; }
.ql-brands > .card-sub { margin: 8px 0 10px; }
.ql-brands .ql-table { min-width: 560px; }
.ql-page .ql-report { padding: 8px; border: 2px solid #171717; }
.ql-report .ql-section-head { margin-bottom: 6px; padding: 7px 10px; }
.ql-report .ql-section-head h2 { font-size: 18px; }
.ql-report-copy { margin-left: auto; min-height: 30px; padding: 5px 12px; border: 1px solid #17324d; border-radius: 999px; background: #fff; color: #17324d; font: 800 12px var(--sans); cursor: pointer; }
.ql-report-copy:hover { background: #17324d; color: #fff; }
.ql-report .ql-table-wrap { border: 2px solid #171717; border-radius: 8px; }
.ql-report .ql-table { min-width: 900px; table-layout: fixed; font-size: 13px; }
.ql-report .ql-table th, .ql-report .ql-table td { padding: 7px 8px; border-right: 1px solid #171717; border-bottom: 1px solid #171717; }
.ql-report .ql-table th { white-space: normal; }
.ql-report .ql-table th:nth-child(n+2) { text-align: center; }
.ql-report .ql-table th:first-child, .ql-report .ql-table td:first-child { width: 22%; min-width: 0; }
.ql-report .ql-table th:nth-child(2), .ql-report .ql-table td:nth-child(2) { width: 8%; }
.ql-report .ql-table th:nth-child(n+3):nth-child(-n+6), .ql-report .ql-table td:nth-child(n+3):nth-child(-n+6) { width: 11%; }
.ql-report .ql-table th:nth-child(n+7):nth-child(-n+8), .ql-report .ql-table td:nth-child(n+7):nth-child(-n+8) { width: 9%; }
.ql-report .ql-table th:last-child, .ql-report .ql-table td:last-child { width: 8%; text-align: center; }
.ql-report .ql-table tbody td:nth-child(n+2):nth-child(-n+8) { text-align: center; }
.ql-report .ql-table td { height: auto; }
.ql-report .ql-rate small { font-size: 10px; }
.ql-report .ql-drill { justify-content: flex-start; gap: 8px; min-height: 0; padding: 0; }
.ql-report .ql-drill-arrow { flex: none; color: var(--ql-brand); font-size: 19px; line-height: 1; }
.ql-report-copy:focus-visible { outline: 3px solid #17324d; outline-offset: 2px; }
.ql-report-total td { background: #f4dfca !important; font-weight: 850 !important; }
.ql-view { min-width: 58px; padding: 5px 12px; border: 1.5px solid #17324d; border-radius: 6px; background: #17324d; color: #fff; font: 800 12px var(--sans); cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.ql-view:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.ql-view-overview { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 10px; margin: 12px 0 10px; }
.ql-view-score { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 16px; border: 2px solid #0e263b; border-radius: 9px; background: #17324d; color: #fff; font-variant-numeric: tabular-nums; transition: background-color 180ms ease, border-color 180ms ease; }
.ql-view-score span { color: #c9dff1; font-size: 12px; font-weight: 750; }
.ql-view-score strong { margin: 8px 0 4px; color: #fff; font-size: 29px; line-height: 1; white-space: nowrap; }
.ql-view-score p { margin: 0; font-size: 13px; font-weight: 800; }
.ql-view-score small { margin-top: 10px; color: #c9dff1; font-size: 11px; }
.ql-view-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ql-view-panel, .ql-view-marks, .ql-view-insights { min-width: 0; overflow: hidden; border: 2px solid #9fb5c9; border-radius: 9px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.ql-view-panel h3, .ql-view-marks h3, .ql-view-insights h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 9px 12px; border-bottom: 1.5px solid #9fb5c9; background: #e9f1f8; color: #17324d; font-size: 14px; font-weight: 800; }
.ql-view-marks h3, .ql-view-insights h3 { font-size: 15px; }
.ql-view-panel h3 span, .ql-view-marks h3 span { color: #506477; font-size: 11px; font-weight: 650; text-align: right; }
.ql-view-marks > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ql-view-mark { min-width: 0; padding: 10px; border-top: 3px solid #b2c3d4; border-right: 1.5px solid #9fb5c9; transition: background-color 180ms ease, box-shadow 180ms ease; }
.ql-view-mark:last-child { border-right: 0; }
.ql-view-mark.good { border-top-color: #15835b; background: #f2faf6; }
.ql-view-mark.bad { border-top-color: #c43d3d; background: #fff5f4; }
.ql-view-mark.neutral { color: #66788a; background: #f8fafc; }
.ql-view-mark > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-height: 32px; }
.ql-view-mark span { font-size: 11px; font-weight: 800; }
.ql-view-mark b { flex: none; color: #17324d; font-size: 11px; }
.ql-view-mark strong, .ql-view-mark small, .ql-view-mark em { display: block; }
.ql-view-mark strong { margin: 3px 0 2px; color: #17324d; font-size: 23px; font-variant-numeric: tabular-nums; }
.ql-view-mark small { color: #506477; font-size: 11px; font-weight: 700; }
.ql-view-mark em { margin-top: 8px; color: #a92f32; font-size: 11px; font-style: normal; font-weight: 800; }
.ql-view-mark.good em { color: #116846; }
.ql-view-mark.neutral em { color: #506477; }
.ql-view-panel-body { max-height: 165px; overflow: auto; padding: 7px 10px; }
.ql-view-panel-body p { margin: 8px 0 0; color: #506477; font-size: 11px; }
.ql-view-bar-row { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr) 55px; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 3px; padding: 3px 6px; border: 1px solid #d4e0eb; border-radius: 5px; background: #fff; font-size: 11px; font-weight: 700; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.ql-view-bar-row.selected { border-color: #8fb6d5; background: #e7f1fa; }
.ql-view-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-view-bar-row b { text-align: right; }
.ql-view-bar-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e3eaf1; }
.ql-view-bar-track i { display: block; height: 100%; border-radius: inherit; background: #6489a8; transition: filter 160ms ease; }
.ql-view-panel:first-child .ql-view-bar-row:last-of-type .ql-view-bar-track i { background: #236b9b; }
.ql-view-bar-row.selected .ql-view-bar-track i { background: #236b9b; }
.ql-view-empty { padding: 12px; color: var(--ql-muted); }
.ql-view-insights { margin: 0 0 10px; }
.ql-view-insights > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ql-view-insights > div > article { min-width: 0; padding: 9px 12px; border-right: 1.5px solid #9fb5c9; color: #17324d; transition: background-color 180ms ease; }
.ql-view-insights > div > article:last-child { border-right: 0; }
.ql-view-insights b, .ql-view-insights strong, .ql-view-insights small { display: block; }
.ql-view-insights b { color: #52718b; font-size: 11px; }
.ql-view-insights strong { margin: 2px 0; color: #17324d; font-size: 16px; }
.ql-view-insights small { color: #506477; font-size: 11px; }
.ql-view-check { margin: 0 0 10px; padding: 9px 12px; border: 2px solid #8fb2ce; border-radius: 7px; background: #eaf4fb; color: #17324d; font-size: 13px; line-height: 1.35; transition: background-color 180ms ease, border-color 180ms ease; }
html.ql-modal-open, body.ql-modal-open { overflow: hidden; overscroll-behavior: none; }
.ql-modal-overlay { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; box-sizing: border-box; padding: 24px; background: rgba(35, 24, 15, .44); backdrop-filter: blur(3px); }
.ql-modal { display: flex; box-sizing: border-box; width: min(880px, 92vw); max-height: min(760px, 90vh); flex-direction: column; overflow: hidden; padding: 16px; border: 2px solid #432d1c; border-radius: 12px; background: #fffdfa; box-shadow: 0 28px 72px rgba(52, 31, 13, .34); }
.ql-modal.ql-view-modal { width: min(1320px, 96vw); overflow-y: auto; border: 2px solid #17324d; background: #f8fafc; color: #17324d; box-shadow: 0 24px 70px rgba(20,35,52,.3); font-variant-numeric: tabular-nums; scrollbar-color: #819bb1 #edf2f7; scrollbar-width: thin; }
.ql-view-modal > .ql-view-overview, .ql-view-modal > .ql-view-panels, .ql-view-modal > .ql-view-insights, .ql-view-modal > .ql-view-check, .ql-view-modal > .ql-report-note { flex-shrink: 0; }
.ql-modal.ql-view-modal > header { border-bottom: 2px solid #9fb5c9; }
.ql-view-modal h2 { color: #17324d; }
.ql-view-modal header p, .ql-view-modal > .ql-report-note { color: #506477; }
.ql-view-modal > .ql-report-note { margin-top: 12px; padding-top: 9px; border-top: 1px solid #b7c8d8; }
.ql-view-modal > header button { border: 1.5px solid #8ca5ba; color: #17324d; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.ql-view-modal > header button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.ql-view-header-actions { display: flex; align-items: center; gap: 10px; }
.ql-view-status { padding: 7px 10px; border: 1px solid currentColor; border-radius: 7px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ql-view-status.bad { color: #9f3031; background: #fae6e4; }
.ql-view-status.warn { color: #8c590e; background: #fff1d8; }
.ql-view-status.good { color: #116846; background: #e1f4e9; }
.ql-view-status.neutral { color: #506477; background: #e9eef3; }
.ql-modal > header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid #d7b798; }
.ql-modal h2 { margin: 0; color: var(--ql-ink); font-size: 20px; font-weight: 850; }
.ql-modal h2 span { margin-left: 7px; color: var(--ql-brand); }
.ql-modal header p { margin: 4px 0 0; color: var(--ql-muted); font-size: 12px; font-weight: 650; }
.ql-modal > header button { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 1px solid #432d1c; border-radius: 8px; background: #fff; color: #432d1c; font: 800 24px/1 var(--sans); cursor: pointer; }
.ql-modal-insights { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px 0 8px; }
.ql-modal-insight { min-width: 0; padding: 9px 10px; border: 2px solid #d4b89e; border-radius: 8px; background: #fff; color: var(--ql-ink); }
.ql-modal-insight.bad { border-color: #dc4a3f; background: #fff5f3; }
.ql-modal-insight.warn { border-color: #d96914; background: #fff8ef; }
.ql-modal-insight.good { border-color: #198647; background: #f1f8f3; }
.ql-modal-insight b, .ql-modal-insight strong, .ql-modal-insight span, .ql-modal-insight small { display: block; }
.ql-modal-insight b { margin-bottom: 6px; font-size: 10px; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.ql-modal-insight strong { overflow: hidden; font-size: 16px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.ql-modal-insight span { margin-top: 3px; color: var(--ql-brand); font-size: 13px; font-weight: 850; }
.ql-modal-insight small { margin-top: 4px; color: var(--ql-muted); font-size: 11px; font-weight: 700; }
.ql-modal-note { flex: 0 0 auto; margin: 0 0 8px; color: var(--ql-muted); font-size: 12px; font-weight: 650; }
.ql-modal-table-wrap { min-height: 0; flex: 1 1 auto; overflow: auto; border: 2px solid #000; }
.ql-modal-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; color: #000; background: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.ql-modal-table-wrap th, .ql-modal-table-wrap td { padding: 5px 8px; border-right: 1px solid #000; border-bottom: 1px solid #000; font-weight: 700; text-align: left; }
.ql-modal-table-wrap th { position: sticky; top: 0; z-index: 1; background: #ffc000; font-size: 11px; font-weight: 900; }
.ql-modal-table-wrap th:nth-child(n+2), .ql-modal-table-wrap td:nth-child(n+2) { text-align: center; }
.ql-modal-table-wrap td.bad { color: var(--ql-bad); background: var(--ql-bad-bg); font-weight: 850; }
.ql-modal-table-wrap td.warn { color: var(--ql-warn); background: var(--ql-warn-bg); font-weight: 850; }
.ql-modal-table-wrap td.good { color: var(--ql-good); background: var(--ql-good-bg); font-weight: 850; }
.ql-modal-table-wrap th:last-child, .ql-modal-table-wrap td:last-child { border-right: 0; }
.ql-modal-table-wrap .ql-modal-summary td { color: #000; font-weight: 900; }
.ql-modal-table-wrap .ql-modal-zone-tn td { background: #cfe3ff; border-top: 2px solid #2563eb; }
.ql-modal-table-wrap .ql-modal-zone-ka1 td { background: #ffe08a; border-top: 2px solid #b45309; }
.ql-modal-table-wrap .ql-modal-zone-ka2 td { background: #fed0a0; border-top: 2px solid #c2410c; }
.ql-modal-table-wrap .ql-modal-karnataka td { background: #f6b36d; border-top: 2px solid #9a3412; }
.ql-modal-table-wrap .ql-modal-zone-ap-tg td { background: #99eee0; border-top: 2px solid #0f766e; }
.ql-modal-table-wrap .ql-modal-zone-kl td { background: #d7c8ff; border-top: 2px solid #6d28d9; }
.ql-modal-table-wrap .ql-modal-total td { background: #fff09a; border-top: 2px solid #854d0e; }
.ql-help, .ql-drill, .ql-month, .ql-trail button { transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .ql-help:hover, .ql-trail button:not(:disabled):hover { background: #f4dfca; color: #843b0e; }
  .ql-drill:hover, .ql-month:hover { color: #843b0e; text-decoration: underline; text-underline-offset: 3px; }
  .ql-table tbody tr:hover td { box-shadow: inset 0 0 0 9999px rgba(169,79,22,.05); }
  .ql-view:hover { background: #28577f; box-shadow: 0 4px 10px rgba(23,50,77,.2); transform: translateY(-1px); }
  .ql-view-modal > header button:hover { border-color: #17324d; background: #e6f0f8; transform: translateY(-1px); }
  .ql-view-score:hover { border-color: #376b96; background: #234462; }
  .ql-view-panel:hover, .ql-view-marks:hover, .ql-view-insights:hover { border-color: #5d85a6; box-shadow: 0 5px 16px rgba(23,50,77,.1); }
  .ql-view-mark.bad:hover { background: #ffebe9; box-shadow: inset 0 0 0 2px #c43d3d; }
  .ql-view-mark.good:hover { background: #e6f5ec; box-shadow: inset 0 0 0 2px #15835b; }
  .ql-view-mark.neutral:hover { background: #edf3f8; box-shadow: inset 0 0 0 2px #8fb2ce; }
  .ql-view-insights > div > article:hover { background: #f1f6fb; }
  .ql-view-bar-row:hover { border-color: #85aac8; background: #edf5fb; box-shadow: 0 2px 7px rgba(23,50,77,.08); }
  .ql-view-bar-row:hover .ql-view-bar-track i { filter: brightness(1.18); }
  .ql-view-check:hover { border-color: #5d85a6; background: #deeffb; }
}
@media (max-width: 900px) { .ql-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .ql-view-overview { grid-template-columns: 1fr; }
  .ql-view-score { min-height: 88px; }
}
@media (max-width: 760px) {
  .ql-view-marks > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ql-header { padding: 12px 14px; }
  .ql-header h2 { font-size: 21px; }
}
@media (max-width: 600px) {
  .ql-section-head { padding: 12px; }
  .ql-kpis { gap: 8px; padding: 8px; }
  .ql-kpi { min-height: 88px; padding: 9px; }
  .ql-kpi-head h3 { font-size: 12px; }
  .ql-value { font-size: 27px; }
  .ql-filter { width: 100%; }
  .ql-filter select { width: 100%; font-size: 16px; }
  .ql-trail .ql-back { margin-left: 0; }
  .ql-table th:first-child, .ql-table td:first-child { min-width: 148px; }
  .ql-modal-overlay { padding: 12px; }
  .ql-modal { width: 100%; max-height: calc(100vh - 24px); padding: 12px; }
  .ql-modal.ql-view-modal { width: 100%; }
  .ql-view-marks > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ql-view-mark { border-bottom: 1px solid #dbe4ed; }
  .ql-view-mark:last-child { border-bottom: 0; }
  .ql-view-panels { grid-template-columns: 1fr; }
  .ql-view-insights > div { grid-template-columns: 1fr; }
  .ql-view-insights > div > article { border-right: 0; border-bottom: 1px solid #dbe4ed; }
  .ql-view-status { display: none; }
  .ql-modal h2 { font-size: 17px; }
  .ql-modal-insights { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ql-help, .ql-drill, .ql-month, .ql-trail button, .ql-view, .ql-view-score, .ql-view-panel, .ql-view-marks,
  .ql-view-insights, .ql-view-mark, .ql-view-bar-row, .ql-view-bar-track i, .ql-view-insights > div > article,
  .ql-view-check, .ql-view-modal > header button { transition: none; }
  .ql-view:hover, .ql-view-modal > header button:hover { transform: none; }
}

/* Anmol, 13-10-2026: scoreboard in its own box. Left = filters + breadcrumb, right = the box,
   which takes the full height of the left column (the empty space below it). */
.control-extra { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.control-extra-left { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; max-width: 390px; }
.control-extra-ctls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.control-extra .crumbs { max-width: none; margin: 0; padding: 0; }
.control-extra:has(> .score-strip[hidden]) { grid-template-columns: minmax(0, 1fr); }
.control-extra:has(> .score-strip[hidden]) .control-extra-left { max-width: none; }
.score-strip { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1.5px solid #111827; border-radius: 12px; background: #fff; }
.score-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.score-head h3 { color: #0f172a; font-size: 15px; font-weight: 800; }
.score-head small { overflow: hidden; color: #334155; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.score-tiles { flex: 1; }
.score-tile { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; }
.score-tile strong { font-size: 24px; }
.score-tile em { font-size: 12px; }
.score-track { padding: 7px 0 7px 14px; }
@media (max-width: 900px) {
  .control-extra { grid-template-columns: minmax(0, 1fr); }
  .control-extra-left { max-width: none; }
}

/* Phone layout: keep navigation visible, filters readable, and wide Quality tables inside their own scroller. */
@media (max-width: 900px) {
  .ql-page { grid-template-columns: minmax(0, 1fr); }
  .ql-page > * { min-width: 0; }
}
@media (max-width: 860px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .sidebar .hourly-nav-group { order: 1; }
}
@media (max-width: 600px) {
  .topbar-in { padding: 10px 12px; }
  .topbar .brand-text strong { font-size: 21px; }
  .control-in { padding: 10px 12px 12px; gap: 10px; }
  main { padding: 12px 12px 36px; }
  .filter-group { padding: 10px 12px; }
  .time-filter-grid:has(#fBasisCtl[hidden]), .employee-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .time-filter-grid .ctl:has(#fCompare) { grid-column: 1 / -1; order: 3; }
  .ctl select, .ctl input, .ql-filter select, .team-drawer select, .hourly-actions select {
    min-height: 44px;
    font-size: 16px;
  }
}
.control-in[hidden] { display: none; }
.mobile-filter-toggle[hidden] { display: none; }
.mobile-filter-toggle { display: none; }
@media (max-width: 860px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .mobile-filter-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: calc(100% - 24px); min-height: 58px; margin: 10px 12px;
    padding: 8px 12px; border: 1.5px solid var(--surface-border);
    border-radius: 10px; background: var(--surface); color: var(--ink);
    font: inherit; text-align: left; cursor: pointer;
  }
  .mobile-filter-toggle span { display: grid; min-width: 0; }
  .mobile-filter-toggle strong { font-size: 14px; }
  .mobile-filter-toggle small { overflow: hidden; color: var(--ink-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-filter-toggle b { flex: none; color: var(--mtd); font-size: 13px; }
  .mobile-filter-toggle:active { background: var(--mtd-soft); }
}

@media (max-width: 760px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .spcc-full-mis-wrap { max-width: 100%; }
  .spcc-mis2-table { width: max-content; min-width: 1200px; table-layout: auto; font-size: 12px; }
  .spcc-mis2-table th, .spcc-mis2-table td { padding: 4px 6px; }
  .spcc-full-mis-modal > header .spcc-mis-download,
  .spcc-full-mis-modal > header [data-sp-mis-close] { min-width: 44px; min-height: 44px; height: auto; font-size: 13px; }
}

/* On phones, both drawers open from edge swipes and hold the page in place. */
@media (max-width: 860px), (pointer: coarse) {
  html.mobile-drawer-open { overflow: hidden; overscroll-behavior: none; }
  body.mobile-drawer-open { position: fixed; width: 100%; overflow: hidden; }
  /* Phone page navigation: left-edge swipe opens this drawer; the page never moves. */
  .sidebar, .shell.sidebar-hidden .sidebar {
    display: flex; position: fixed; left: 0; top: 0; z-index: 1190;
    width: min(280px, 84vw); min-width: 0; height: 100dvh; padding: max(16px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
    flex-direction: column; overflow-x: hidden; overflow-y: auto; border-right: 1px solid rgba(15, 23, 42, .08); border-bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%); transform: translateX(-100%); visibility: hidden; will-change: transform;
    box-shadow: none; transition: transform 280ms cubic-bezier(.32, .72, 0, 1), visibility 0s linear 280ms;
  }
  .shell.sidebar-mobile-open .sidebar { transform: translateX(0); visibility: visible; box-shadow: 22px 0 48px -22px rgba(15, 23, 42, .42); transition: transform 340ms cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  .sidebar-brand { display: flex; }
  .sidebar nav, .sidebar .hourly-nav-group, .sidebar .mtd-nav-group { width: 100%; flex: none; flex-direction: column; order: initial; margin-top: 0; }
  .sidebar button, .sidebar .sidebar-link { width: 100%; min-height: 44px; white-space: normal; gap: 8px; flex: none; }
  .sidebar button small, .sidebar .sidebar-link small { display: block; }
  .sidebar-hide, .shell .sidebar-edge, .team-edge, .team-drawer-close { display: none !important; }
  .sidebar #sectionNav button[data-section="target"]::after { display: none !important; }
  .sidebar, .team-drawer { overscroll-behavior: contain; }
  .team-drawer select, .hourly-actions select, .ctl select, .ctl input { min-height: 44px; font-size: 16px; }
  .team-drawer { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); perspective: none; }
  .team-drawer .team-item, .team-drawer.is-open .team-item { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .shell.sidebar-mobile-open .sidebar { transition: none !important; }
}
@media (max-width: 860px) and (hover: hover) and (pointer: fine) {
  .shell .sidebar-edge {
    display: flex !important; position: fixed; left: 0; top: 0; z-index: 1180;
    width: 18px; height: 100dvh; opacity: 0;
  }
  .team-edge { display: flex !important; top: 0; right: 0; bottom: auto; height: 100dvh; padding: 0; transform: none; flex-direction: column; }
}
@media (max-width: 600px) {
  .trend-main-grid > * { min-width: 0; }
  .trend-chart-topbar, .trend-level-tabs { flex-wrap: wrap; }
  .trend-chart-topbar .trend-scope-label { min-width: 0; overflow-wrap: anywhere; }
  .trend-reset-btn { margin-left: 0; }
}
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .topbar-in { padding: 6px 12px; }
  .topbar .brand-text em { display: none; }
  .ql-page { grid-template-columns: minmax(0, 1fr); }
  .sourcing-mode .spcc-action-header { grid-template-columns: minmax(0, 1fr); }
}

/* Anmol, 14-10-2026: news line on top of the box, then the comparison table; count tiles fill the left column */
.control-extra-left { justify-content: flex-start; }
.score-side { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-content: stretch; }
.score-side:empty, .control-extra:has(> .score-strip[hidden]) .score-side { display: none; }
.score-side .score-tile em { white-space: normal; }
.score-side .score-tile strong { font-size: 22px; }
.score-head { align-items: center; flex-wrap: wrap; }
.score-head > div { min-width: 0; }
.score-head h3 { font-size: 15px; }
.score-head small { display: block; }
.score-levels { display: inline-flex; overflow: hidden; border: 1.5px solid #111827; border-radius: 8px; }
.score-levels button { padding: 5px 10px; border: 0; border-left: 1px solid #111827; background: #fff; color: #0f172a; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.score-levels button:first-child { border-left: 0; }
.score-levels button[aria-pressed="true"] { background: #0f172a; color: #fff; }
.score-levels button:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: -3px; }
.score-table-wrap { max-height: 300px; overflow: auto; border: 1.5px solid #111827; border-radius: 10px; }
.score-table { width: 100%; border-collapse: collapse; color: #0f172a; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: 6px 10px; border-bottom: 1px solid #111827; text-align: right; white-space: nowrap; }
.score-table th[scope="row"], .score-table thead th:nth-child(2) { text-align: left; font-weight: 800; }
.score-table td:first-child { width: 28px; color: #334155; text-align: center; }
.score-table thead th { position: sticky; top: 0; z-index: 1; background: #0f172a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.score-table tbody tr:nth-child(even) { background: #f8fafc; }
.score-table tbody tr:hover { background: #eef4ff; }
.score-table tfoot th, .score-table tfoot td { position: sticky; bottom: 0; border-bottom: 0; background: #e2e8f0; font-weight: 800; }
.score-table small { color: #475569; font-weight: 700; }
.score-table i { font-style: normal; font-weight: 800; }
.score-table i.up { color: #15803d; } .score-table i.down { color: #b42318; }
.score-ach { display: inline-block; min-width: 56px; padding: 2px 8px; border-radius: 999px; text-align: center; }
.score-ach.is-up { background: #dcfce7; color: #166534; }
.score-ach.is-mid { background: #fef3c7; color: #92400e; }
.score-ach.is-down { background: #fee2e2; color: #b42318; }
.score-empty { margin: 0; padding: 14px; border: 1.5px dashed #111827; border-radius: 10px; color: #0f172a; font-weight: 700; text-align: center; }

/* Anmol, 14-10-2026: filters on one line, then the Scoreboard heading and the whole report below it, full width */
.control-extra { grid-template-columns: minmax(0, 1fr); }
.control-extra-left, .control-extra:has(> .score-strip[hidden]) .control-extra-left { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 14px; }
.control-extra-left .crumbs { align-self: flex-end; }
.score-side { display: none !important; }
.score-tiles { flex: none; }
.score-tile { padding: 10px 14px; }
.score-tile strong { font-size: 26px; }
.score-table-wrap { max-height: 420px; }

/* Anmol, 14-10-2026: Scoreboard, Performance Details and Week on Week get the same banner header as
   Target vs Achievement (dark band, white title, thick coloured divider), each in its own colour by what it holds:
   Scoreboard = green (live scores), Performance Details = rust (team rows), Week on Week = indigo (time). */
.score-strip, .pd-card, .wow-card { --ban: #0b2e59; --ban-line: #f59e0b; }
.score-strip { --ban: #064e3b; --ban-line: #a3e635; padding: 0; gap: 0; overflow: hidden; border: 3px solid #111827; border-radius: var(--r); box-shadow: 0 12px 28px -22px rgba(6,78,59,.7); }
.pd-card { --ban: #7c2d12; --ban-line: #38bdf8; }
.wow-card { --ban: #3b2a8c; --ban-line: #22d3ee; }
.pd-card .card-head, .wow-card .card-head {
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 12px; padding: 12px 16px; background: var(--ban); border: 0;
  border-bottom: 4px solid var(--ban-line); border-radius: calc(var(--r) - 3px) calc(var(--r) - 3px) 0 0; }
.pd-card .card-head h2, .wow-card .card-head h2 { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pd-card .card-head .card-sub, .wow-card .card-head .card-sub { color: rgba(255,255,255,.86); font-size: 11.5px; font-weight: 600; }
.score-head { margin: 0; padding: 12px 16px; background: var(--ban); border-bottom: 4px solid var(--ban-line); }
.score-head h3 { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.score-head small { color: rgba(255,255,255,.86); font-size: 11.5px; font-weight: 600; }
.score-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.score-levels { border-color: rgba(255,255,255,.9); }
.score-levels button[aria-pressed="true"] { background: var(--ban-line); color: #052e16; }

/* Scoreboard rows drill down like the other tables (14-10-2026) */
.score-table tr.is-drill { cursor: pointer; }
.score-table tr.is-drill:focus-visible { outline: 3px solid rgba(37,99,235,.45); outline-offset: -3px; }

/* Anmol, 14-10-2026: CEO scoreboard (five outcome tiles, richer table) */
.score-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.score-tile em { white-space: normal; }
.score-tile strong { overflow: hidden; font-size: 24px; text-overflow: ellipsis; }
.score-table-wrap { max-height: 460px; }
.score-table th[scope="row"] small { display: block; margin-top: 1px; color: #475569; font-size: 11px; font-weight: 700; }
.score-table .score-short { color: #b42318; }
.score-table .score-rate.up { color: #15803d; } .score-table .score-rate.down { color: #b42318; }
@media (max-width: 1150px) { .score-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .score-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Anmol, 14-10-2026: question tiles and a plain-language table, everything centred */
.score-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.score-tile { align-items: center; padding: 12px 14px; text-align: center; }
.score-tile span { width: 100%; white-space: normal; font-size: 12px; }
.score-tile strong { width: 100%; font-size: 30px; }
.score-tile strong small { font-size: 12px; }
.score-tile em { width: 100%; font-size: 12.5px; line-height: 1.45; }
.score-tile em b { font-weight: 800; }
.score-dist { display: flex; width: 100%; height: 13px; margin: 6px 0 5px; overflow: hidden; border: 1.5px solid #111827; border-radius: 999px; background: #e2e8f0; }
.score-dist i { min-width: 0; }
.score-dist .d0, .score-legend .d0 { background: #dc2626; } .score-dist .d1, .score-legend .d1 { background: #f59e0b; }
.score-dist .d2, .score-legend .d2 { background: #84cc16; } .score-dist .d3, .score-legend .d3 { background: #16a34a; }
.score-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 16px; margin-bottom: 3px; color: #334155; font-size: 11px; font-weight: 700; }
.score-legend b { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; }
.score-table th, .score-table td, .score-table th[scope="row"], .score-table thead th:nth-child(2) { text-align: center; }
.score-table small { display: block; }
.score-table th[scope="row"] small, .score-table td small { margin-top: 1px; color: #475569; font-size: 11px; font-weight: 700; }
.score-st { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.score-st.st-ok { background: #dcfce7; color: #166534; } .score-st.st-near { background: #fef9c3; color: #854d0e; }
.score-st.st-late { background: #ffedd5; color: #9a3412; } .score-st.st-far { background: #fee2e2; color: #b42318; }
.score-share.up { color: #15803d; } .score-share.mid { color: #b45309; } .score-share.down { color: #b42318; }
.score-ticker { text-align: left; }
@media (max-width: 1000px) { .score-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .score-tiles { grid-template-columns: minmax(0, 1fr); } }
.score-tile .score-legend span { display: inline; width: auto; color: #334155; font-size: 11px; letter-spacing: 0; text-transform: none; }
.score-tile .score-legend { display: flex; margin: 2px 0 4px; font-size: 11px; text-transform: none; letter-spacing: 0; }

/* Anmol, 14-10-2026: compact scoreboard. Six small tiles in one row, details in hover tooltips, one-line table rows. */
.score-head { padding: 8px 14px; }
.score-head h3 { font-size: 17px; }
.score-head small { font-size: 11px; }
.score-body { gap: 6px; padding: 8px 10px 10px; }
.score-ticker { border-radius: 8px; }
.score-track { padding: 4px 0 4px 12px; font-size: 12.5px; }
.score-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.score-tile { position: relative; padding: 6px 8px; border-width: 1.5px; border-radius: 8px; cursor: help; }
.score-tile span { font-size: 10px; line-height: 1.25; letter-spacing: .03em; }
.score-tile strong { overflow: hidden; font-size: 20px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.score-tile em { font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-tile .score-dist { height: 7px; margin: 3px 0 2px; border-width: 1px; }
.score-tile[data-tip]:hover::after, .score-tile[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 30; width: max-content; max-width: 300px; padding: 9px 12px; transform: translateX(-50%);
  border-radius: 8px; background: #0f172a; box-shadow: 0 10px 24px rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: left; white-space: pre-line; pointer-events: none; }
.score-tile:first-child[data-tip]:hover::after, .score-tile:first-child[data-tip]:focus::after { left: 0; transform: none; }
.score-tile:last-child[data-tip]:hover::after, .score-tile:last-child[data-tip]:focus::after { left: auto; right: 0; transform: none; }
.score-table-wrap { max-height: 360px; }
.score-table { font-size: 12.5px; }
.score-table th, .score-table td { padding: 4px 8px; }
.score-table thead th { font-size: 10.5px; }
.score-table th[scope="row"] { white-space: nowrap; }
.score-st { padding: 2px 9px; font-size: 11.5px; white-space: nowrap; }
.score-levels button { padding: 3px 9px; font-size: 11.5px; }
@media (max-width: 1100px) { .score-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .score-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tooltips must not be cut at the bottom of a short scoreboard: no clipping, the header rounds its own corners */
.score-strip { overflow: visible; }
.score-head { border-radius: calc(var(--r) - 3px) calc(var(--r) - 3px) 0 0; }

/* Anmol, 14-10-2026: status tiles work as filters, one fixed tooltip, encouraging words */
button.score-tile { width: 100%; font: inherit; cursor: pointer; appearance: none; }
.score-tile.is-late { border-color: #f97316; background: #fff7ed; } .score-tile.is-late em { color: #9a3412; }
.score-tile.is-zero { opacity: .55; }
.score-tile[aria-pressed="true"] { box-shadow: 0 0 0 3px #0f172a; opacity: 1; }
.score-tile:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: 2px; }
.score-tile[data-stip] { cursor: help; } button.score-tile[data-stip] { cursor: pointer; }
.score-tile .score-dist, .score-tile .score-legend { display: none; }
.score-tile:hover::after, .score-tile:focus::after { content: none !important; }
.score-tip { position: fixed; z-index: 100000; max-width: 320px; padding: 9px 12px; border-radius: 8px; background: #0f172a; box-shadow: 0 10px 24px rgba(0,0,0,.35); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: left; white-space: pre-line; pointer-events: none; }
.score-tip[hidden] { display: none; }
.score-table [data-stip] { cursor: help; }
.score-ach.is-late { background: #ffedd5; color: #9a3412; }
.score-table td { white-space: nowrap; }
@media (max-width: 1100px) { .score-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Anmol, 14-10-2026: key points (answers at one look) and a "do this now" strip above the status filter cards */
.score-kp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.score-kp-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 7px 10px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; text-align: center; cursor: help; }
.score-kp-card span { color: #334155; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.score-kp-card strong { color: #0f172a; font-size: 14px; font-weight: 800; line-height: 1.3; }
.score-kp-card em { color: #334155; font-size: 11.5px; font-style: normal; font-weight: 600; line-height: 1.35; }
.score-kp-card.is-up { border-color: #16a34a; background: #f0fdf4; } .score-kp-card.is-up span { color: #166534; }
.score-kp-card.is-mid { border-color: #f59e0b; background: #fffbeb; } .score-kp-card.is-mid span { color: #92400e; }
.score-kp-card.is-late { border-color: #f97316; background: #fff7ed; } .score-kp-card.is-late span { color: #9a3412; }
.score-kp-card.is-down { border-color: #dc2626; background: #fef2f2; } .score-kp-card.is-down span { color: #b42318; }
.score-kp-card:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: 2px; }
.score-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 12px; border: 1.5px solid #ca8a04; border-radius: 8px; background: #fefce8; color: #422006; font-size: 12.5px; font-weight: 700; }
.score-acts b { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.score-acts ol { display: flex; flex-wrap: wrap; gap: 3px 16px; margin: 0; padding-left: 18px; }
.score-cap { margin: 2px 0 -2px; color: #334155; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.score-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .score-kp { grid-template-columns: repeat(2, minmax(0, 1fr)); } .score-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .score-kp { grid-template-columns: minmax(0, 1fr); } }

.score-acts ol { counter-reset: act; list-style: none; padding: 0; gap: 4px 18px; }
.score-acts li { display: flex; align-items: baseline; gap: 6px; counter-increment: act; }
.score-acts li::before { content: counter(act); display: inline-grid; flex: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #422006; color: #fef9c3; font-size: 11px; font-weight: 800; }

/* Anmol, 14-10-2026: small and powerful. One slim strip of key points, one line of actions, status pills, a short table. */
.score-head { padding: 6px 12px; }
.score-head h3 { font-size: 15px; }
.score-head small { font-size: 10.5px; }
.score-body { gap: 5px; padding: 6px 8px 8px; }
.score-track { padding: 3px 0 3px 10px; font-size: 12px; }
.score-kp { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.score-kp-card { padding: 4px 8px; gap: 0; }
.score-kp-card span { font-size: 9.5px; }
.score-kp-card strong { max-width: 100%; overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.score-acts { padding: 4px 10px; gap: 2px 12px; font-size: 12px; }
.score-acts li::before { width: 16px; height: 16px; font-size: 10px; }
.score-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #334155; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.score-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 1.5px solid #111827; border-radius: 999px; background: #fff; color: #0f172a; font: inherit; font-size: 11.5px; letter-spacing: 0; text-transform: none; cursor: pointer; }
.score-pill i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.score-pill.st-ok i { background: #16a34a; } .score-pill.st-near i { background: #eab308; } .score-pill.st-late i { background: #f97316; } .score-pill.st-far i { background: #dc2626; }
.score-pill[aria-pressed="true"] { background: #0f172a; color: #fff; }
.score-pill.is-zero { opacity: .55; }
.score-pill:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: 2px; }
.score-table-wrap { max-height: 230px; }
.score-table { font-size: 12px; }
.score-table th, .score-table td { padding: 3px 6px; }
.score-table thead th { font-size: 9.5px; }
.score-st { padding: 1px 8px; font-size: 11px; }
@media (max-width: 1000px) { .score-kp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .score-kp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Anmol, 14-10-2026: Sales team filter in the heading; Target vs Achievement key points in two rows of six */
.score-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.score-team { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }
.score-team label { display: flex; flex-direction: column; gap: 1px; color: rgba(255,255,255,.88); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.score-team select { min-width: 118px; max-width: 170px; height: 26px; padding: 0 6px; border: 1.5px solid #fff; border-radius: 6px; background: #fff; color: #0f172a; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.score-team select:disabled { opacity: .55; cursor: not-allowed; }
.score-team select:focus-visible { outline: 3px solid rgba(190,242,100,.8); outline-offset: 1px; }
.score-kp-card em { display: block; max-width: 100%; overflow: hidden; font-size: 10.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.score-kp-card { padding: 3px 8px; }
@media (max-width: 1000px) { .score-kp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .score-kp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 14-10-2026: Notes popup "Download Google-sheet fix list" button. */
.spcc-notes-modal header button.spcc-note-dl { width: auto; height: 30px; margin-left: auto; padding: 0 14px; background: #0f766e; border-color: #0f766e; color: #ffffff; font-size: 12px; font-weight: 800; }

/* 14-10-2026: district and location under the executive name in the Action Report table. */
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place { display: block; margin-top: 4px; color: #334155; font-size: 11.5px; font-weight: 650; line-height: 1.4; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place span { color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place span ~ span { margin-left: 10px; }

/* 14-10-2026 (Anmol: location first, district below, black, readable): overrides the block above. */
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place { margin-top: 5px; color: #000000; font-size: 13px; font-weight: 700; line-height: 1.45; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place i { display: block; font-style: normal; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place span { color: #000000; font-size: 11px; font-weight: 800; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place span ~ span { margin-left: 0; }

/* 14-10-2026 (Anmol: different colour or a separator): a line under the executive name, a coloured tag for Location and for District, with a thin line between the two. */
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place { margin-top: 7px; padding-top: 7px; border-top: 1px solid #94a3b8; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place i + i { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #cbd5e1; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place span { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 6px; color: #ffffff; font-size: 10.5px; letter-spacing: .04em; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place i:first-child span { background: #0f766e; }
.sourcing-mode .spcc-action-report td.owner .spcc-exec-place i + i span { background: #4338ca; }

/* Anmol, 14-10-2026: three views no other report has (realism of the target, what-if, how sure), and a day-by-day bar strip in the table */
.score-table td small { display: inline; color: #475569; font-size: 11px; font-weight: 700; }

/* 14-10-2026 (Anmol): District / Location filters at the end of the Action Report filter row. */
.sourcing-mode .spcc-action-teamfilters .spcc-place-sep { margin: 0 4px; color: #334155; font-size: 22px; font-weight: 400; }

/* Anmol, 14-10-2026: league / call list / live columns */
.score-call { color: #b42318; font-size: 13px; }
.score-table td small { display: inline; }
.score-table td i { font-style: normal; font-weight: 800; }
.score-table td i.up { color: #15803d; } .score-table td i.down { color: #b42318; }

/* 14-10-2026 (Anmol: new District / Location report): a drop-down under the table, closed by default. */
.sourcing-mode .spcc-place-report > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sourcing-mode .spcc-place-now { color: #334155; font-size: 13px; font-weight: 650; }
.sourcing-mode .spcc-place-now b { color: #b91c1c; }
.sourcing-mode .spcc-place-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 18px 8px; }
.sourcing-mode .spcc-place-tools em { color: #334155; font-size: 12.5px; font-style: normal; font-weight: 650; }
.sourcing-mode .spcc-place-table { width: 100%; border-collapse: collapse; color: #000; font-size: 13.5px; }
.sourcing-mode .spcc-place-table th, .sourcing-mode .spcc-place-table td { padding: 8px 12px; border: 1px solid #111827; text-align: center; vertical-align: middle; }
.sourcing-mode .spcc-place-table thead th { background: #e2e8f0; font-weight: 850; }
.sourcing-mode .spcc-place-table th.dead { background: #dc2626; color: #fff; }
.sourcing-mode .spcc-place-table th.live { background: #ea580c; color: #fff; }
.sourcing-mode .spcc-place-table th.active { background: #16a34a; color: #fff; }
.sourcing-mode .spcc-place-table td.pl-name { text-align: left; font-weight: 800; }
.sourcing-mode .spcc-place-table td.pl-name small { display: block; color: #334155; font-size: 11.5px; font-weight: 650; }
.sourcing-mode .spcc-place-table td.num { font-weight: 850; }
.sourcing-mode .spcc-place-table td.dead { color: #b91c1c; }
.sourcing-mode .spcc-place-table td.live { color: #c2410c; }
.sourcing-mode .spcc-place-table td.active { color: #15803d; }
.sourcing-mode .spcc-place-table td.pl-bar { min-width: 200px; text-align: left; }
.sourcing-mode .spcc-place-bar { display: flex; width: 100%; height: 10px; overflow: hidden; border: 1px solid #111827; border-radius: 6px; background: #fff; }
.sourcing-mode .spcc-place-bar i { display: block; height: 100%; }
.sourcing-mode .spcc-place-bar i.dead { background: #dc2626; }
.sourcing-mode .spcc-place-bar i.live { background: #ea580c; }
.sourcing-mode .spcc-place-bar i.active { background: #16a34a; }
.sourcing-mode .spcc-place-table td.pl-bar b { display: block; margin-top: 3px; font-size: 12px; }
.sourcing-mode .spcc-place-table td.pl-name small, .sourcing-mode .spcc-place-table td.pl-name .spcc-action-link { display: block; text-align: left; }

/* Anmol, 14-10-2026: do-now cards (short name + number) and their detail window */
.score-do { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 5px; }
.score-do-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 4px 8px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; font: inherit; text-align: center; cursor: pointer; }
.score-do-card span { color: #334155; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.score-do-card strong { max-width: 100%; overflow: hidden; color: #0f172a; font-size: 17px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.score-do-card em { max-width: 100%; overflow: hidden; color: #334155; font-size: 10.5px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.score-do-card.is-up { border-color: #16a34a; background: #f0fdf4; } .score-do-card.is-late { border-color: #f97316; background: #fff7ed; } .score-do-card.is-down { border-color: #dc2626; background: #fef2f2; }
.score-do-card:hover { box-shadow: 0 0 0 2px #0f172a; }
.score-do-card:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: 2px; }
.score-pop { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.55); }
.score-pop[hidden] { display: none; }
.score-pop-card { display: flex; flex-direction: column; width: min(940px, 100%); max-height: 88vh; overflow: hidden; border: 3px solid #111827; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.score-pop-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 4px solid #a3e635; background: #064e3b; color: #fff; }
.score-pop-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.score-pop-card p { margin: 2px 0 0; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; }
.score-pop-x { flex: none; width: 30px; height: 30px; border: 1.5px solid #fff; border-radius: 8px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.score-pop-x:focus-visible { outline: 3px solid rgba(190,242,100,.9); outline-offset: 2px; }
.score-pop-body { overflow: auto; padding: 10px 12px 14px; }
.score-pop-table { width: 100%; border-collapse: collapse; color: #0f172a; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-pop-table th, .score-pop-table td { padding: 5px 10px; border: 1px solid #111827; text-align: center; }
.score-pop-table thead th { position: sticky; top: -10px; z-index: 1; background: #ffc000; font-weight: 800; }
.score-pop-table td.nm { padding-left: 22px; text-align: left; }
.score-pop-table td i { font-style: normal; font-weight: 800; }
.score-pop-table td i.up { color: #15803d; } .score-pop-table td i.down { color: #b42318; }

/* Anmol, 14-10-2026: SM rows open their executives */
.score-pop-table tr.is-drill { cursor: pointer; }
.score-pop-table tr.is-drill:hover td { background: #eef4ff; }
.score-pop-table tr.is-drill:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: -3px; }
.score-pop-table .caret { display: inline-block; width: 12px; color: #334155; }
.score-pop-table tr.kid[hidden] { display: none; }
.score-pop-table tr.kid td { background: #fafafa; }
.score-pop-table tr.kidnote td { padding: 3px 10px 3px 34px; background: #f8fafc; color: #475569; font-size: 11.5px; font-style: italic; text-align: left; }
.score-pop-table td.nm2 { padding-left: 38px; text-align: left; }

/* Anmol, 14-10-2026: black text in the cards and the detail windows, and a total row at the bottom */
.score-do-card span, .score-do-card strong, .score-do-card em { color: #000; }
.score-pop-table, .score-pop-table th, .score-pop-table td, .score-pop-table td.nm, .score-pop-table td.nm2, .score-pop-table tr.g2 th { color: #000; }
.score-pop-table tfoot th, .score-pop-table tfoot td { position: sticky; bottom: -14px; z-index: 1; border-top: 2px solid #000; background: #ffe699; font-weight: 800; }
.score-pop-table tfoot th { text-align: left; }
.sourcing-mode .spcc-place-report .spcc-action-sechead p b { color: #b91c1c; }

/* 14-10-2026 (Anmol: heading like Trend Reports, another colour, with a gap above): the District / Location report is its own card. */
.sourcing-mode .spcc-place-card { zoom: var(--ui-zoom, 1); margin-top: 24px; }
.sourcing-mode .spcc-place-card .spcc-place-head { background: #4c1d95; border-bottom-color: #14b8a6; }
.sourcing-mode .spcc-place-card .spcc-place-head p { font-size: 13px; }
.sourcing-mode .spcc-place-card .spcc-place-head p b { color: #fde68a; }
.sourcing-mode .spcc-place-card .spcc-place-body { padding: 0; }
.sourcing-mode .spcc-place-card .spcc-action-more { margin: 0; }

/* 14-10-2026 (Anmol: "why is location missing?"): a points with no place on record says why. */
.sourcing-mode .spcc-action-report td.owner .spcc-exec-noplace i { color: #475569; font-size: 11.5px; font-weight: 650; font-style: italic; }

/* 14-10-2026 (Anmol: "didn't understand a single line, can't read"): District / Location report in plain words, bigger text, a Start-here box, a button per row. */
.sourcing-mode .spcc-place-card .spcc-place-head h2 { font-size: 22px; }
.sourcing-mode .spcc-place-card .spcc-place-head p { margin-top: 4px; color: #ffffff; font-size: 15px; font-weight: 600; }
.sourcing-mode .spcc-place-card .spcc-place-head p b { color: #fde68a; }
.sourcing-mode .spcc-place-howto { margin: 0; padding: 14px 20px 14px 42px; border-bottom: 1px solid #cbd5e1; background: #f8fafc; color: #000; font-size: 15px; font-weight: 600; line-height: 1.6; }
.sourcing-mode .spcc-place-start { padding: 16px 20px; border-bottom: 2px solid #111827; background: #fff7ed; }
.sourcing-mode .spcc-place-start-title { margin: 0 0 10px; color: #000; font-size: 17px; font-weight: 850; }
.sourcing-mode .spcc-place-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sourcing-mode .spcc-place-start-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 2px solid #111827; border-left: 8px solid #dc2626; border-radius: 12px; background: #ffffff; color: #000; }
.sourcing-mode .spcc-place-start-card > b { font-size: 20px; font-weight: 850; }
.sourcing-mode .spcc-place-start-card > small { color: #334155; font-size: 13px; font-weight: 700; }
.sourcing-mode .spcc-place-start-card p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.sourcing-mode .spcc-place-start-card p strong { color: #b91c1c; font-weight: 850; }
.sourcing-mode .spcc-place-rank { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 13px; font-weight: 850; }
.sourcing-mode .spcc-place-go { align-self: flex-start; margin-top: 2px; padding: 7px 14px; border: 2px solid #b91c1c; border-radius: 8px; background: #ffffff; color: #b91c1c; font: 800 14px var(--sans); cursor: pointer; }
.sourcing-mode .spcc-place-go:hover { background: #fef2f2; }
.sourcing-mode .spcc-place-go.big { margin-top: auto; background: #dc2626; color: #ffffff; font-size: 15px; }
.sourcing-mode .spcc-place-go.big:hover { background: #b91c1c; }
.sourcing-mode .spcc-place-ok { color: #15803d; font-size: 14px; font-weight: 800; }
.sourcing-mode .spcc-place-tools { padding: 12px 20px; }
.sourcing-mode .spcc-place-tools > b { color: #000; font-size: 15px; }
.sourcing-mode .spcc-place-tools em { color: #000; font-size: 14px; }
.sourcing-mode .spcc-place-tools .spcc-action-seg button { font-size: 14px; padding: 6px 14px; }
.sourcing-mode .spcc-place-table { font-size: 16px; }
.sourcing-mode .spcc-place-table thead th { color: #000; font-size: 14px; font-weight: 850; line-height: 1.25; }
.sourcing-mode .spcc-place-table thead th small { display: block; font-size: 12px; font-weight: 700; opacity: .95; }
.sourcing-mode .spcc-place-table th.dead small, .sourcing-mode .spcc-place-table th.live small, .sourcing-mode .spcc-place-table th.active small { color: #ffffff; }
.sourcing-mode .spcc-place-table td { padding: 10px 12px; }
.sourcing-mode .spcc-place-table td.pl-rank { width: 44px; font-weight: 850; }
.sourcing-mode .spcc-place-table td.pl-name { font-size: 16px; }
.sourcing-mode .spcc-place-table td.pl-name small { font-size: 13px; }
.sourcing-mode .spcc-place-table td.num { font-size: 18px; }
.sourcing-mode .spcc-place-table td.dead small { display: block; color: #000; font-size: 12px; font-weight: 650; }
.sourcing-mode .spcc-place-table tr.is-top td { background: #fff7ed; }
.sourcing-mode .spcc-place-more { display: block; width: 100%; padding: 14px 20px; border: 0; border-top: 2px solid #111827; background: #4c1d95; color: #ffffff; font: 850 17px var(--sans); text-align: center; cursor: pointer; }
.sourcing-mode .spcc-place-more:hover { background: #3b0764; }
@media (max-width: 900px) { .sourcing-mode .spcc-place-start-grid { grid-template-columns: 1fr; } }

/* Anmol, 14-10-2026: the scoreboard starts closed; the heading is a slim bar with a Show / Hide button */
.score-toggle { height: 26px; padding: 0 14px; border: 1.5px solid #fff; border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.score-toggle:hover { background: rgba(255,255,255,.18); }
.score-toggle:focus-visible { outline: 3px solid rgba(190,242,100,.9); outline-offset: 2px; }
.score-strip.is-closed .score-head { border-bottom: 0; border-radius: calc(var(--r) - 3px); }

/* Anmol, 14-10-2026: scoreboard windows look like the Quality popup (light header, three start-here cards, note, black-ruled table, subtotal under its members) */
.score-pop { padding: 24px; background: rgba(35,24,15,.44); backdrop-filter: blur(3px); }
.score-pop-card { width: min(940px, 94vw); max-height: min(780px, 90vh); padding: 16px; border: 2px solid #432d1c; border-radius: 12px; background: #fffdfa; box-shadow: 0 28px 72px rgba(0,0,0,.35); }
.score-pop-card header { align-items: flex-start; gap: 16px; padding: 0 0 10px; border-bottom: 1px solid #d7b798; background: transparent; color: #000; }
.score-pop-card h3 { color: #1c1917; font-size: 20px; font-weight: 850; }
.score-pop-card h3 span { margin-left: 8px; color: #b45309; }
.score-pop-card p { color: #44403c; font-size: 12px; font-weight: 650; }
.score-pop-x { width: 34px; height: 34px; padding: 0; border: 1px solid #432d1c; background: #fff; color: #432d1c; font-size: 24px; }
.score-pop-x:hover { background: #f5f5f4; }
.score-pop-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; }
.score-pop-ins { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px 0 8px; }
.score-pop-ins article { min-width: 0; padding: 9px 10px; border: 2px solid #d4b89e; border-radius: 8px; background: #fff; color: #000; }
.score-pop-ins article.bad { border-color: #dc4a3f; background: #fff5f3; } .score-pop-ins article.warn { border-color: #d96914; background: #fff8ef; } .score-pop-ins article.good { border-color: #198647; background: #f1f8f3; }
.score-pop-ins b, .score-pop-ins strong, .score-pop-ins span, .score-pop-ins small { display: block; }
.score-pop-ins b { margin-bottom: 6px; font-size: 10px; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.score-pop-ins strong { overflow: hidden; font-size: 16px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.score-pop-ins span { margin-top: 3px; color: #b45309; font-size: 13px; font-weight: 850; }
.score-pop-ins small { margin-top: 4px; color: #44403c; font-size: 11px; font-weight: 700; }
.score-pop-note { flex: 0 0 auto; margin: 0 0 8px; color: #44403c; font-size: 12px; font-weight: 650; }
.score-pop-table-wrap { min-height: 0; flex: 1 1 auto; overflow: auto; border: 2px solid #000; }
.score-pop-table { min-width: 720px; background: #fff; color: #000; font-size: 12.5px; }
.score-pop-table th, .score-pop-table td { padding: 5px 8px; border: 0; border-right: 1px solid #000; border-bottom: 1px solid #000; color: #000; font-weight: 700; }
.score-pop-table th:last-child, .score-pop-table td:last-child { border-right: 0; }
.score-pop-table thead th { top: 0; background: #ffc000; font-size: 11.5px; font-weight: 900; }
.score-pop-table td.nm { padding-left: 10px; text-align: left; }
/* Anmol, 26-10-2026: Scoreboard windows in the Classic MIS colours: KA 1 / KA 2 amber, states and Total Karnataka orange, Total yellow, names centred */
.score-pop-table.score-mis td.nm, .score-pop-table.score-mis td.nm2 { padding-left: 8px; text-align: center; }
.score-pop-table.score-mis tr.is-drill[aria-expanded="true"] td { background: #dbeafe; }
.score-pop-table.score-mis tr.kid td { background: #f1f5f9; font-weight: 500; }
.score-pop-table tr.z-ka td { background: #ffc000; font-weight: 900; }
.score-pop-table tr.z-st td, .score-pop-table tr.z-tot td { background: #ed7d31; font-weight: 900; }
.score-pop-table tr.z-tot td { border-top: 2px solid #000; }
.score-pop-table tr.z-ka td i, .score-pop-table tr.z-st td i, .score-pop-table tr.z-tot td i, .score-pop-table tfoot td i { color: #000; }
.score-pop-table tfoot td { position: sticky; bottom: 0; z-index: 1; border-top: 2px solid #000; background: #ffff00; font-weight: 900; }
.score-table td.score-calls { cursor: pointer; }
.score-table td.score-calls:hover .score-call, .score-table td.score-calls:focus-visible .score-call { text-decoration: underline; }
.score-pop-table td.nm2 { padding-left: 34px; font-weight: 600; }
@media (max-width: 700px) { .score-pop-ins { grid-template-columns: minmax(0, 1fr); } }

/* Anmol, 14-10-2026: the scoreboard window keeps one fixed design size and shrinks as a whole to fit the screen (any browser zoom) */
.score-pop-card { width: 940px; max-width: none; max-height: 780px; }

/* Anmol, 14-10-2026: Quality KPI window: fixed design size, shrunk to fit by quality.js */
.ql-modal:not(.ql-view-modal) { width: 880px; max-width: none; max-height: 760px; }

/* Anmol, 14-10-2026: the Quality page shows zoomed out (80%) so more fits on screen; the popups keep their own size */
.ql-page > :not(.ql-modal-overlay) { zoom: .8; }

/* the unmapped executives under the "Not on a live SM roster" row */
.hr-split-table tr.is-other-kid th { padding-left: 18px; font-weight: 700; }
.hr-split-table tr.is-other-kid th small { display: block; color: #57534e; font-size: 11px; font-weight: 600; }
.hr-split-table tr.is-other-kid td { font-weight: 700; }

/* "Not on a live SM roster" opens on a click */
.hr-split-table tr.is-drill { cursor: pointer; }
.hr-split-table tr.is-drill:hover th, .hr-split-table tr.is-drill:hover td { background: #eef2ff; }
.hr-split-table tr.is-drill th small { display: block; color: #57534e; font-size: 11px; font-weight: 600; }
.hr-split-table .caret { display: inline-block; width: 12px; }

/* 14-10-2026 (Anmol: add SM name and state name): two columns in the District / Location report and a line in the Start-here boxes. */
.sourcing-mode .spcc-place-table td.pl-state, .sourcing-mode .spcc-place-table td.pl-sm { text-align: left; font-size: 15px; font-weight: 700; line-height: 1.35; }
.sourcing-mode .spcc-place-table td.pl-sm { min-width: 170px; }
.sourcing-mode .spcc-place-who { color: #000; font-size: 14px; font-weight: 650; line-height: 1.4; }
.sourcing-mode .spcc-place-who b { font-weight: 850; }
.sourcing-mode .spcc-place-table td.pl-do { white-space: nowrap; }
.sourcing-mode .spcc-place-table td.pl-do .spcc-place-go { white-space: nowrap; padding: 7px 12px; }
.sourcing-mode .spcc-place-table td.pl-state { min-width: 150px; }

/* Phone-only layout for dense reports. Wide data tables keep their own sideways scroll. */
@media (max-width: 860px), (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .sourcing-mode .spcc-action-header { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 12px; }
  .sourcing-mode .spcc-action-title, .sourcing-mode .spcc-action-mix { min-width: 0; }
  .sourcing-mode .spcc-action-header .spcc-action-mixstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sourcing-mode .spcc-action-dash .spcc-action-bucket { min-width: 0; max-width: 100%; }
  .sourcing-mode .spcc-action-dash .spcc-action-bucket-top { flex-wrap: wrap; }
  .sourcing-mode .spcc-action-teamfilters select { min-height: 44px; font-size: 16px; }
  .ql-page > :not(.ql-modal-overlay) { zoom: 1; }
  .trend-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .trend-card h3 { white-space: normal; }
  .trend-card-right { min-width: 0; padding-left: 34px; text-align: left; }
  .trend-card-val { overflow-wrap: anywhere; }
  .legacy-mis-head h2 { font-size: 18px; line-height: 1.2; }
  .legacy-mis-head p, .legacy-mis-note { font-size: 12px; line-height: 1.4; }
  .legacy-mis-head-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .legacy-mis-filters { display: grid; grid-column: 1 / -1; width: 100%; gap: 8px; }
  .legacy-mis-filters label { display: grid; min-width: 0; gap: 3px; font-size: 12px; white-space: normal; }
  .legacy-mis-card .legacy-mis-filters label select, .legacy-mis-card .legacy-mis-filters label:nth-child(4) select { width: 100%; max-width: none; height: 44px; min-height: 44px; padding: 4px 22px 4px 8px; font-size: 16px; }
  .legacy-mis-badge { display: grid; place-items: center; min-height: 44px; font-size: 12px; white-space: normal; text-align: center; }
  .legacy-mis-table { font-size: 14px; }
  .pd-crumbrow::after { content: "Swipe table sideways for more columns"; flex-basis: 100%; color: var(--ink-3); font-size: 12px; font-weight: 700; }
  table.pd-table { font-size: 13px; }
  table.pd-table th, table.pd-table thead tr:last-child th { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 600px) {
  .sourcing-mode .spcc-action-header .spcc-action-mixstats { grid-template-columns: minmax(0, 1fr); }
  .sourcing-mode .spcc-action-header .spcc-action-stat { flex-wrap: wrap; }
  .sourcing-mode .spcc-action-dash { grid-template-columns: minmax(0, 1fr); }
  .trend-cards-row { grid-template-columns: minmax(0, 1fr); }
  .legacy-mis-head { align-items: stretch; }
  .legacy-mis-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-mis-table th.h-sm, .legacy-mis-table td:first-child { width: 160px; min-width: 160px; }
  .wow-head > div:first-child { min-width: 0; }
  .wow-controls, .wow-weeks, .wow-panel-head, .wow-legend { max-width: 100%; flex-wrap: wrap; }
  .wow-chart-panel, .wow-summary, .wow-table-scroll { max-width: 100%; }
}
@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .legacy-mis-head { display: block; }
  .legacy-mis-head-right { margin-top: 8px; }
  .legacy-mis-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: none), (pointer: coarse) {
  .sidebar #sectionNav button[data-section="target"]::after { opacity: 0 !important; animation: none !important; }
}

/* Real device-width layouts. Desktop mouse layouts keep their existing rules. */
.touch-tooltip {
  position: fixed; inset: auto; margin: 0; z-index: 100002; box-sizing: border-box;
  max-width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 12px; border: 1px solid #111827; border-radius: 9px; background: #111827; color: #fff;
  font: 600 14px/1.5 var(--sans); white-space: pre-line; box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
}
.touch-tooltip[hidden] { display: none; }
@media (pointer: coarse) {
  .sourcing-mode .spcc-kpi-tip::after, .sourcing-mode .spcc-action-report [data-tip]::after, .ov-zero-tip::after, .overview-mode .ov-zero-report-tip::after, .overview-mode .ov-hero-kpi .delta[data-tooltip]::after { display: none; }
  .spcc-kpi-tip::before, .ql-help::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
}
@media (max-width: 860px), (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; }
  .shell { min-height: 100dvh; }
  .app-content, #sectionBody, #sectionBody > *, .filter-group, .control-extra { min-width: 0; }
  main { width: 100%; }
  .topbar-in, .control-in, main, .foot {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .topbar-in { padding-top: max(10px, env(safe-area-inset-top)); }
  .foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  button, a, [role="button"], summary { touch-action: manipulation; }
  button, [role="button"], summary { -webkit-user-select: none; user-select: none; }
  select, input:not([type="checkbox"]):not([type="radio"]), textarea {
    min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px !important;
  }
  .sidebar, .shell.sidebar-hidden .sidebar {
    width: min(320px, calc(100vw - 40px));
    z-index: 120010;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .sidebar nav, .sidebar .hourly-nav-group { flex-shrink: 0; }
  .sidebar .nav-label { min-width: 0; overflow-wrap: anywhere; }
  .team-drawer {
    width: min(340px, calc(100vw - 40px)); height: 100dvh;
    z-index: 120020;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .team-drawer-reset { min-height: 44px; }
  .drawer-backdrop { z-index: 120000; }
  .hourly-panel { width: 100%; height: 100dvh; }
  .hourly-toolbar > div { min-width: 0; flex-wrap: wrap; }
  .hourly-actions { width: 100%; }
  .hourly-actions select { flex: 1 1 150px; }
  .hourly-actions button { min-height: 44px; }
  .table-scroll, .pd-scroll, .ql-table-wrap { overscroll-behavior-x: contain; }
  .ql-page > :not(.ql-modal-overlay), .hi-page,
  .sourcing-mode .spcc-trend, .sourcing-mode .spcc-action-report,
  .sourcing-mode .spcc-place-card, .spcc-data-notes-modal,
  .sourcing-mode .spcc-trend .trend-insights-card > * { zoom: 1; }
  .spcc-trend .trend-chart-topbar-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; flex-shrink: 1; }

  .forecast-history-backdrop, .ql-modal-overlay, .spcc-notes-overlay, .score-pop, .tm-modal-backdrop {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .forecast-history-modal, .forecast-summary-modal.forecast-record-modal,
  .ql-modal, .ql-modal.ql-view-modal, .ql-modal:not(.ql-view-modal),
  .spcc-notes-modal, .score-pop-card, .tm-modal, .tm-insight-modal {
    min-width: 0; min-height: 0; width: 100%; max-width: 100%;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    zoom: 1 !important; overflow-y: auto; overscroll-behavior: contain;
  }
  .ql-modal, .score-pop-card { padding: 12px; }
  .forecast-history-modal > header, .spcc-notes-modal > header, .ql-modal > header, .score-pop-card > header {
    gap: 10px; flex-wrap: wrap;
  }
  .forecast-history-modal > header > div, .spcc-notes-modal > header > div:first-child,
  .ql-modal > header > div:first-child, .score-pop-card > header > div:first-child {
    flex: 1 1 160px; min-width: 0;
  }
  .forecast-history-modal > header { padding-left: 0; padding-right: 0; justify-content: space-between; }
  .forecast-history-modal > header > button, .spcc-notes-modal > header > button:not(.spcc-note-dl),
  .ql-modal > header button, .score-pop-x, .tm-modal-close, .tm-insight-close {
    position: static; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px;
  }
  .forecast-festival-modal > header .forecast-festival-metric { position: static; order: 2; flex: 1 1 100%; }
  .forecast-festival-modal > header { top: -12px; }
  .spcc-notes-modal header button.spcc-note-dl { order: 2; width: 100%; height: auto; min-height: 44px; margin-left: 0; white-space: normal; }
  .spcc-full-mis-modal { width: 100%; height: 100%; min-width: 0; min-height: 0; }
  .spcc-health-mis-modal { height: calc(100dvh - 24px); }
  .spcc-mis-actions { flex-wrap: wrap; }
  .spcc-mis-insights { flex-wrap: wrap; }
  .spcc-mis-insights > span { min-width: 0; flex-wrap: wrap; }
  .spcc-mis-legend { margin-left: 0; }
  .spcc-full-mis-wrap, .spcc-legacy-mis-wrap { min-width: 0; min-height: 100px; }
  .spcc-view-modal h2, .spcc-view-modal > header p, .spcc-view-next-head { flex-wrap: wrap; }
  .spcc-view-peer { grid-template-columns: minmax(0, 1fr) minmax(35px, .65fr) auto; }
  .spcc-view-child { flex-wrap: wrap; }
  .spcc-view-child-name { overflow-wrap: anywhere; }
  .ql-view-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .ql-view-status { white-space: normal; }
  .ql-modal-table-wrap, .score-pop-table-wrap { flex: 0 0 auto; max-height: 55dvh; min-height: 160px; }
  .score-pop-body { flex-shrink: 0; overflow: visible; }
  .score-head { flex-wrap: wrap; }
  .score-head > div:first-child { flex: 1 1 180px; }
  .score-team { min-width: 0; flex-wrap: wrap; }
  .score-toggle, .score-do-card, .ghost-btn, .forecast-festival-compare,
  .trend-level-tab, .trend-insight-toggle, .spcc-notes-btn, .spcc-reset, .ql-view { min-height: 44px; }
}
@media (max-width: 600px) {
  .topbar-in { flex-wrap: wrap; gap: 6px; }
  .topbar-in .brand { flex: 1 1 100%; }
  .topbar-meta { margin-left: 44px; }
  .topbar .brand-text strong { font-size: 21px; }
  .brand-text { overflow-wrap: anywhere; }
  .score-pop-ins, .ql-modal-insights { grid-template-columns: minmax(0, 1fr); }
  .spcc-view-tiles { grid-template-columns: minmax(0, 1fr); }
  .spcc-view-peer { grid-template-columns: minmax(0, 1fr) 60px; }
  .spcc-view-peer-track { grid-row: 2; grid-column: 1 / -1; }
  .spcc-view-peer b { min-width: 0; white-space: normal; }
  .spcc-view-next-head > span { flex-basis: 100%; }
  .ql-view-header-actions { flex: 1 1 100%; }
}

/* Compact report cards fit the device itself; keep desktop mouse layouts unchanged. */
@media (max-width: 860px), (pointer: coarse) and (max-width: 1366px) {
  main { padding: 10px 8px 28px; }
  .focus { padding: 8px 0; }
  .focus h1 { font-size: 22px; }
  .tgt-main .card-head { padding: 9px 10px; }
  .tgt-main .card-head h2 { font-size: 16px; }
  .tgt-main .card-head .card-sub { font-size: 10px; }
  .tgt-main .kpis-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 6px; }
  .kpis-hero .kpi-combo { min-height: 0; padding: 7px 5px; }
  .kpi-combo .kpi-top, .kpi-combo .kpi-head { gap: 4px; flex-wrap: wrap; }
  .kpi-combo .kpi-label { font-size: 12px; }
  .kpi-combo .kpi-ic { width: 20px; height: 20px; }
  .kpi-combo .kpi-sub { font-size: 9px; margin-bottom: 5px; }
  .kpi-combo .pct-pill { font-size: 8px; padding: 1px 3px; }
  .kpi-combo-grid > div { padding: 0 4px; }
  .kpi-combo-grid b { font-size: 20px; }
  .kpi-combo-grid b.money { font-size: 13px; }
  .kpi-combo-label, .kpi-combo-grid em { font-size: 8px; white-space: normal; }

  .grid-2.grid-tdks:has(.tdp-group:not(.is-closed)) { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .grid-tdks .tdp-group:not(.is-closed) .td-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-tdks .tdp-group:not(.is-closed) .td-row > .td-stat { min-height: 65px; padding: 6px; gap: 3px; }
  .grid-tdks .td-row .td-lead { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 5px; padding: 6px !important; }
  .grid-tdks .tdp-group:not(.is-closed) .td-row .td-lead > b { font-size: 14px; }
  .grid-tdks .tdp-group:not(.is-closed) .td-stat .kpi-label,
  .grid-tdks .tdp-group:not(.is-closed) .td-split-label,
  .grid-tdks .tdp-group:not(.is-closed) .td-stat em { font-size: 9px; }
  .grid-tdks .tdp-group:not(.is-closed) .td-stat > b,
  .grid-tdks .tdp-group:not(.is-closed) .td-split-grid b { font-size: 17px; }
  .grid-tdks .tdp-group:not(.is-closed) .td-split-grid b.money { font-size: 13px; }
  .insights-kpi { padding: 8px; min-height: 0; }

  .forecast-head { padding: 10px; gap: 8px; flex-wrap: wrap; }
  .forecast-head h3 { font-size: 16px; }
  .forecast-head p { font-size: 10px; }
  .forecast-head-icon { width: 28px; height: 28px; }
  .forecast-head-icon svg { width: 18px; height: 18px; }
  .forecast-festival-status { width: 100%; min-width: 0; padding: 7px; gap: 3px; }
  .forecast-festival-status strong { font-size: 13px; }
  .forecast-festival-progress span { font-size: 10px; padding: 2px 5px; }
  .forecast-festival-next { gap: 3px 6px; padding-top: 4px; margin-top: 2px; font-size: 10px; }
  .forecast-festival-next time { grid-column: auto; }
  .forecast-main, .forecast-main.forecast-closed { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 6px; }
  .forecast-main > .forecast-primary { grid-column: 1 / -1; }
  .forecast-main > div { padding: 8px; }
  .forecast-main strong { font-size: 20px; }
  .forecast-main .forecast-confidence { grid-column: auto; }
  .forecast-main small { font-size: 10px; }
  .forecast-daily-kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px; }
  .forecast-panel .forecast-daily-card,
  .forecast-panel .forecast-daily-card--yesterday { padding: 8px; border-radius: 9px; }
  .forecast-panel .forecast-daily-card header,
  .forecast-panel .forecast-daily-card--yesterday header { gap: 6px; margin-bottom: 7px; padding-bottom: 6px; }
  .forecast-panel .forecast-daily-card h4 { font-size: 13px; }
  .forecast-panel .forecast-daily-card .forecast-card-icon { width: 24px; height: 24px; }
  .forecast-panel .forecast-daily-card header span:not(.forecast-card-icon) { font-size: 10px; }
  .forecast-panel .forecast-compare-grid,
  .forecast-panel .forecast-today-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .forecast-panel .forecast-compare-grid > div,
  .forecast-panel .forecast-today-body > div { padding: 6px; gap: 4px; min-height: 0; border-radius: 7px; }
  .forecast-panel .forecast-today-body .forecast-required-rate { display: flex; flex-direction: column; grid-column: auto; }
  .forecast-panel .forecast-compare-grid .forecast-today-label,
  .forecast-panel .forecast-today-body .forecast-today-label,
  .forecast-panel .forecast-today-body .forecast-hourly-live > span { min-height: 26px; gap: 3px; font-size: 10px; flex-wrap: wrap; }
  .forecast-card-mini-icon { width: 16px; height: 16px; }
  .forecast-card-mini-icon svg { width: 14px; height: 14px; }
  .forecast-panel .forecast-compare-grid small,
  .forecast-panel .forecast-today-body small,
  .forecast-panel .forecast-today-projected .forecast-daily-value dt { font-size: 9px; }
  .forecast-panel .forecast-compare-grid strong,
  .forecast-panel .forecast-today-body .forecast-required-rate strong,
  .forecast-panel .forecast-today-body .forecast-hourly-live b:first-of-type,
  .forecast-panel .forecast-today-projected .forecast-daily-value strong { font-size: 20px; }
  .forecast-panel .forecast-compare-grid strong.forecast-paired-value,
  .forecast-panel .forecast-today-body .forecast-required-rate strong.forecast-paired-value,
  .forecast-panel .forecast-today-body .forecast-hourly-live b:nth-of-type(2),
  .forecast-panel .forecast-today-projected .forecast-daily-value--value strong { font-size: 12px; margin-bottom: 2px; }
  .forecast-panel .forecast-compare-grid .forecast-compare-percent,
  .forecast-panel .forecast-today-projected .forecast-projected-rate,
  .forecast-panel .forecast-required-rate .forecast-rrr-footer,
  .forecast-panel .forecast-hourly-live .forecast-hourly-remaining {
    width: calc(100% + 12px); margin: auto -6px -6px; padding: 5px 3px; font-size: 9px;
  }
  .forecast-panel .forecast-card-details .forecast-projected-rate,
  .forecast-panel .forecast-card-details .forecast-rrr-footer,
  .forecast-panel .forecast-card-details .forecast-hourly-remaining { width: 100%; margin: 0; }
  .forecast-panel .forecast-card-details summary { width: auto; overflow-wrap: anywhere; }
  .forecast-panel .forecast-card-metric strong, .forecast-panel .forecast-card-metric b { font-size: 20px; }
  .forecast-panel .forecast-card-metric .forecast-paired-value { font-size: 12px; }
  .forecast-panel .forecast-hourly-live .forecast-card-metric:nth-of-type(2) b { font-size: 12px; }
  .forecast-panel .forecast-hourly-progress, .forecast-panel .forecast-rrr-status,
  .forecast-panel .forecast-card-details { font-size: 10px; }

  .ql-kpis, .kpis.spcc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ql-kpis { padding: 6px; }
  .ql-kpi { min-height: 0; padding: 7px; }
  .ql-kpi-head h3 { font-size: 12px; }
  .ql-value { font-size: 23px; }
  .sourcing-mode .spcc-kpis .kpi { padding: 7px; }
  .sourcing-mode #sectionBody .kpi-val { font-size: 23px; }
  .sourcing-mode .spcc-action-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sourcing-mode .spcc-action-dash .spcc-action-stat,
  .sourcing-mode .spcc-action-dash .spcc-action-bucket { min-height: 0; padding: 8px; }
}

/* Mobile drawers use visible buttons; edge swipes are intentionally disabled. */
/* Classic MIS: indigo-plum report workspace, separate from Sourcing green. */
.classic-mode { --classic-deep: #35205f; --classic-ink: #25153f; --classic-canvas: #f3eff9; }
.classic-mode .control-bar, .classic-mode #focusHead { display: none !important; }
.classic-mode .app-content, .classic-mode #main { background: var(--classic-canvas); }
.classic-mode .topbar { background: #faf8fd; border-bottom-color: #d8cfea; }
.classic-page { display: grid; gap: 16px; }
.classic-head { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; padding: 24px 30px; overflow: hidden; border-radius: 16px; background: var(--classic-deep); color: #fff; box-shadow: 0 14px 30px rgba(53,32,95,.2); }
.classic-head::before, .classic-head::after, .classic-mis-banner::before, .classic-mis-banner::after { content: ""; position: absolute; z-index: -1; width: 110px; height: 190%; border: 24px solid rgba(255,255,255,.1); border-top: 0; border-bottom: 0; transform: rotate(29deg); }
.classic-head::before, .classic-mis-banner::before { right: 92px; top: -45%; }
.classic-head::after, .classic-mis-banner::after { right: -42px; top: -45%; opacity: .55; }
.classic-head h1 { margin: 0; color: #fff; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.05; letter-spacing: -.03em; }
.classic-head p { max-width: 650px; margin: 8px 0 0; color: #e9e2f6; font-size: 15px; line-height: 1.45; }
.classic-status { z-index: 1; flex: none; padding: 7px 12px; border: 1px solid #f0c76b; border-radius: 999px; background: #fff4cf; color: #5b3a00; font-size: 12px; font-weight: 800; }
.classic-filters { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); align-items: end; gap: 20px; padding: 16px 20px; border: 1px solid #d8cfea; border-radius: 14px; background: #fff; box-shadow: 0 7px 18px rgba(53,32,95,.08); }
.classic-filter-head { align-self: center; }
.classic-filter-head h2 { margin: 0; color: var(--classic-ink); font-size: 18px; }
.classic-filter-head p { margin: 4px 0 0; color: #6e6082; font-size: 12px; line-height: 1.4; }
.classic-filter-grid { display: grid; grid-template-columns: minmax(260px, 1.5fr) minmax(180px, .8fr); gap: 12px; }
.classic-filter-grid label { display: grid; align-content: start; gap: 6px; color: #5f5174; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.classic-filter-grid select, .classic-filter-grid input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #cfc4df; border-radius: 8px; background: #fbf9fe; color: var(--classic-ink); font: 650 13px var(--sans); letter-spacing: 0; text-transform: none; }
.classic-filter-grid select:focus, .classic-filter-grid input:focus { border-color: #6b46a3; box-shadow: 0 0 0 3px rgba(107,70,163,.14); outline: 0; }
.classic-filter-grid option:disabled { color: #8d849b; }
.classic-error { padding: 30px; border: 1px solid #d8cfea; border-radius: 14px; background: #fff; color: #8b1e3f; font-weight: 750; }
.classic-mode .legacy-mis-card { margin-top: 0; border: 1px solid #2d1b50 !important; border-radius: 14px; background: #fff; box-shadow: 0 14px 30px rgba(53,32,95,.14); }
.classic-mode .legacy-mis-head.classic-mis-banner { position: relative; isolation: isolate; min-height: 126px; padding: 26px 30px; overflow: hidden; border: 0; background: #4b2a78; color: #fff; }
.classic-mode .classic-mis-banner h2 { margin: 0; max-width: 900px; color: #fff; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.classic-mode .classic-mis-banner p { margin: 9px 0 0; color: #eadff8; font-size: 14px; font-weight: 650; line-height: 1.4; }
.classic-mode .legacy-mis-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 2px solid #2d1b50; background: #f6f0fc; }
.classic-mode .legacy-mis-actions { display: flex; align-items: center; gap: 8px; }
.classic-mode .legacy-mis-badge { min-height: 34px; padding: 7px 10px; border-color: #5b3a00; border-radius: 7px; background: #f2bd45; color: #2f2100; font-size: 11px; cursor: pointer; }
.classic-mode .legacy-mis-filters { flex: 1; flex-wrap: wrap; gap: 8px; }
.classic-mode .legacy-mis-filters label { display: grid; gap: 4px; color: #45345d; font-size: 11px; }
.classic-mode .legacy-mis-filters select, .classic-mode .legacy-mis-filters label:nth-child(4) select { width: 132px; max-width: 170px; height: 34px; padding: 3px 22px 3px 8px; border-color: #8e7aa8; border-radius: 7px; background: #fff; color: #2b1c43; font-size: 12px; }
.classic-mode .legacy-mis-scroll { max-height: calc((100vh - 120px) / .9); overflow: auto; overscroll-behavior: contain; scrollbar-color: #6b46a3 #eee8f5; }
.classic-mode .legacy-mis-table { min-width: 1500px; font-size: 9px; line-height: 1.05; }
.classic-mode .legacy-mis-table th, .classic-mode .legacy-mis-table td { height: 20px; padding: 1px 3px; }
.classic-mode .legacy-mis-table .legacy-mis-head-one th { height: 22px; }
.classic-mode .legacy-mis-table .legacy-mis-head-two th { top: 22px; height: 24px; }
.classic-mode .legacy-mis-table th.h-sm, .classic-mode .legacy-mis-table td:first-child { width: 140px; min-width: 140px; }
.classic-mode .legacy-mis-note { padding: 8px 12px 10px; background: #faf8fd; color: #493b5d; font-size: 11px; line-height: 1.4; }
.classic-mode ::selection { background: #d9c3f2; color: #25153f; }
@media (max-width: 900px) { .classic-filters { grid-template-columns: 1fr; } .classic-mode .legacy-mis-toolbar { align-items: stretch; flex-direction: column; } .classic-mode .legacy-mis-actions { justify-content: flex-end; } }
@media (max-width: 600px) { .classic-page { gap: 12px; } .classic-head { align-items: flex-start; flex-direction: column; min-height: 0; padding: 22px 18px; } .classic-status { align-self: flex-start; } .classic-filters { gap: 12px; padding: 14px; } .classic-filter-grid { grid-template-columns: 1fr; } .classic-filter-grid select, .classic-filter-grid input { height: 44px; font-size: 16px; } .classic-mode .legacy-mis-head.classic-mis-banner { min-height: 112px; padding: 22px 18px; } .classic-mode .legacy-mis-actions { justify-content: stretch; } .classic-mode .legacy-mis-badge { flex: 1; min-height: 44px; font-size: 12px; } .classic-mode .legacy-mis-filters select, .classic-mode .legacy-mis-filters label:nth-child(4) select { width: 100%; max-width: none; height: 44px; min-height: 44px; font-size: 16px; } .classic-mode .legacy-mis-table { min-width: 2220px; font-size: 12px; line-height: 1.2; } .classic-mode .legacy-mis-table th, .classic-mode .legacy-mis-table td { height: 26px; padding: 3px 5px; } .classic-mode .legacy-mis-table .legacy-mis-head-one th { height: 28px; } .classic-mode .legacy-mis-table .legacy-mis-head-two th { top: 28px; height: 28px; } .classic-mode .legacy-mis-table th.h-sm, .classic-mode .legacy-mis-table td:first-child { width: 160px; min-width: 160px; } }

@media (max-width: 860px), (pointer: coarse) {
  .shell .sidebar-edge, .team-edge {
    display: flex !important; position: fixed; top: auto; bottom: max(10px, env(safe-area-inset-bottom));
    width: auto; min-width: 0; height: 44px; padding: 0 14px; transform: none; opacity: 1;
    flex-direction: row; align-items: center; gap: 7px; border: 1.5px solid #111827; border-radius: 999px;
    background: #0b2e59; color: #fff; font: 800 13px var(--sans); box-shadow: 0 6px 18px rgba(15,23,42,.24);
  }
  .shell .sidebar-edge { left: max(10px, env(safe-area-inset-left)); z-index: 1190; }
  .shell .sidebar-edge::after { content: "Page Menu"; }
  .team-edge { right: max(10px, env(safe-area-inset-right)); z-index: 1190; }
  .team-edge span { writing-mode: horizontal-tb; transform: none; }
  .shell .sidebar-edge:active, .team-edge:active { transform: scale(.97); }
  .sidebar-hide, .team-drawer-close { display: flex !important; align-items: center; justify-content: center; }
  .foot { padding-bottom: calc(max(16px, env(safe-area-inset-bottom)) + 54px); }
}

/* Banking Executed MIS (Anmol, 17-10-2026): colours of the Banking_executed sheet in Master MIS Details.xlsx */
.legacy-mis-table.bank-mis-table { width: 100%; min-width: 1040px; table-layout: fixed; font-size: 12px; }
.bank-mis-table th.bk-h-login { background: #8eaadb; }
.bank-mis-table th.bk-h-rej { background: #ff0000; color: #fff; }
.bank-mis-table th.bk-h-bal { background: #ffff00; }
.bank-mis-table th.bk-h-exe { background: #a9d08e; }
.bank-mis-table th.bk-h-pct { background: #ffff00; }
.bank-mis-table th.bk-s-login { background: #d9e1f2; }
.bank-mis-table th.bk-s-rej { background: #ffc7ce; color: #c00000; }
.bank-mis-table th.bk-s-bal { background: #ffff00; }
.bank-mis-table th.bk-s-exe { background: #e2efda; }
.bank-mis-table th.bk-s-pct { background: #fff2cc; }
.legacy-mis-table tbody tr td.bk-pct-ka { background: #1f3864 !important; color: #fff !important; font-weight: 900; }
.legacy-mis-table tbody tr td.bk-pct-st { background: #7030a0 !important; color: #fff !important; font-weight: 900; }
.legacy-mis-table tbody tr td.bk-pct-total { background: #ffff00 !important; color: #000 !important; font-weight: 950; }
.bank-mis-table th.bk-h-login, .bank-mis-table th.bk-h-rej, .bank-mis-table th.bk-h-bal, .bank-mis-table th.bk-h-exe, .bank-mis-table th.bk-h-pct { font-weight: 900; text-transform: none; }
/* Target MIS banner: fire flame red (Anmol, 17-10-2026); Banking Executed keeps the purple banner */
.classic-mode .legacy-mis-head.classic-mis-banner.mis-fire { background: linear-gradient(120deg, #7a0c0c 0%, #d7190f 52%, #ff5a14 100%); }
.classic-mode .classic-mis-banner.mis-fire p { color: #ffe6d9; }
/* Classic MIS: tighter rows so more of the report fits on screen; Banking Executed a little smaller (Anmol, 17-10-2026) */
.classic-mode .legacy-mis-table th, .classic-mode .legacy-mis-table td { height: 24px; padding-top: 2px; padding-bottom: 2px; }
.classic-mode .bank-mis-card .legacy-mis-head.classic-mis-banner { min-height: 84px; padding: 16px 26px; }
.classic-mode .bank-mis-card .classic-mis-banner h2 { font-size: clamp(24px, 2.4vw, 34px); }
.classic-mode .bank-mis-card .classic-mis-banner p { margin-top: 5px; font-size: 12px; }
.classic-mode .bank-mis-card .legacy-mis-table th, .classic-mode .bank-mis-card .legacy-mis-table td { font-size: 12px; height: 22px; }
.classic-mode .bank-mis-card .legacy-mis-note { font-size: 8px; }
/* Classic MIS shows zoomed out (80%) like the Quality page, so the whole report fits on screen without browser zoom-out (Anmol, 17-10-2026) */
.classic-page { zoom: .9; }
@media (max-width: 860px) { .classic-page { zoom: 1; } .classic-mode .legacy-mis-scroll { max-height: calc(100vh - 120px); } }
/* No inner vertical scroll: the report is as tall as its rows and the page scrolls (Anmol, 17-10-2026). Banking fits the width, so its header can stay frozen on the page scroll. */
.classic-mode .bank-mis-card .legacy-mis-scroll { overflow: visible; }
@media (max-width: 860px) { .classic-mode .legacy-mis-scroll, .classic-mode .bank-mis-card .legacy-mis-scroll { max-height: none; overflow: auto; } }
.classic-mode .bank-mis-card .legacy-mis-scroll { max-height: none; }

/* Page menu slides in from the LEFT edge (original hover-reveal), with a small logo tab on the left edge; the Sales team filter still comes down from the top (Anmol, 17-10-2026). Desktop with a mouse only. */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .menu-tab, .team-edge { position: fixed; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; border: 2px solid #111827; background: #fff; color: #17324e; cursor: pointer; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); opacity: 1; transform: none; }
  .sidebar::after { display: none; }   /* no hover strip on the screen edge: only the tab opens the menu */
  .menu-tab { left: 0; top: 50%; margin-top: -26px; z-index: 57; width: 28px; height: 52px; padding: 0; border-left: 0; border-radius: 0 12px 12px 0; font: inherit; }
  .team-edge { top: 0; height: 26px; padding: 0 10px; border-top: 0; border-radius: 0 0 12px 12px; }
  .menu-tab svg, .team-edge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .menu-tab:hover, .team-edge:hover { background: #eef2ff; }
  body:has(.menu-tab:hover) .sidebar { transform: translateX(0); }
  body:has(.menu-tab:hover) .sidebar { transition: transform 340ms var(--ease-drawer) 40ms; }
  body:has(.menu-tab:hover) .sidebar .nav-label, body:has(.menu-tab:hover) .sidebar .brand-text { opacity: 1; transform: none; transition: opacity 260ms ease, transform 420ms var(--ease-out-strong); transition-delay: calc(var(--i, 0) * 38ms + 120ms); }
  body:has(.menu-tab:hover) .sidebar::before { opacity: 1; transition-delay: 40ms; }
  body:has(.sidebar:hover) .menu-tab, body:has(.menu-tab:hover) .menu-tab { opacity: 0; }
  .team-edge, .team-edge:focus-visible { left: auto; right: 24px; top: 0; width: 56px; min-width: 56px; height: 26px; padding: 0 10px; transform: none; }
  .team-edge span { display: none; }
  .team-drawer { top: 0; right: 0; left: auto; bottom: auto; max-height: 100vh; border-left: 0; border-radius: 0 0 14px 14px; transform: translateY(-100%); }
  .team-drawer.is-open { transform: translateY(0); box-shadow: 0 22px 48px -22px rgba(15, 23, 42, .42); }
  .team-drawer .team-item { transform: translateY(-10px); transform-origin: top center; }
  .team-drawer.is-open .team-item { transform: none; }
  body:has(.team-drawer.is-open) .sidebar { transform: translateX(-100%) !important; pointer-events: none; }
}
@media (max-width: 860px), (hover: none), (pointer: coarse) { .menu-tab { display: none !important; } }

/* Critical Parameters MIS (Anmol, 17-10-2026): colours of the Critical Parameters sheet in Master MIS Details.xlsx */
.legacy-mis-table.crit-mis-table { width: 100%; min-width: 1040px; table-layout: fixed; font-size: 12px; }
.crit-mis-table th.cr-h1 { background: #f4b084; color: #000; font-weight: 900; white-space: normal; }
.crit-mis-table th.cr-h3 { background: #f8cbad; color: #000; font-weight: 900; }
.crit-mis-table .cr-row2 th { top: 28px; height: 40px; position: sticky; z-index: 5; }
.crit-mis-table .legacy-mis-head-two th { top: 68px; }
.crit-mis-table tbody tr.cr-sub td { background: #f8cbad; font-weight: 900; }
.crit-mis-table tbody tr td.cr-pen-low { background: #ff0000 !important; color: #fff !important; font-weight: 950; }
.classic-mode .crit-mis-card .legacy-mis-scroll { max-height: none; overflow: visible; }
.classic-mode .crit-mis-card .legacy-mis-table th, .classic-mode .crit-mis-card .legacy-mis-table td { height: 22px; }
.classic-mode .crit-mis-card .legacy-mis-head.classic-mis-banner { min-height: 84px; padding: 16px 26px; }
.classic-mode .crit-mis-card .classic-mis-banner h2 { font-size: clamp(24px, 2.4vw, 34px); }
.classic-mode .crit-mis-card .classic-mis-banner p { margin-top: 5px; font-size: 12px; }
/* Banking Executed and Critical Parameters scroll inside the report with a frozen header, like the Target MIS (Anmol, 17-10-2026) */
.classic-mode .bank-mis-card .legacy-mis-scroll, .classic-mode .crit-mis-card .legacy-mis-scroll { max-height: calc((100vh - 120px) / .9); overflow: auto; }
/* Critical Parameters banner: deep teal (Target = fire red, Banking = purple) */
.classic-mode .crit-mis-card .legacy-mis-head.classic-mis-banner { background: linear-gradient(120deg, #073b4c 0%, #0b6e7a 55%, #12a4a0 100%); }
.classic-mode .crit-mis-card .classic-mis-banner p { color: #d6f5f2; }
/* Critical Parameters header: the three header rows get their real heights (the generic 22px row rule had squeezed the two-line row) and the frozen offsets match */
.classic-mode .crit-mis-card .legacy-mis-table .legacy-mis-head-one th { height: 28px; top: 0; }
.classic-mode .crit-mis-card .legacy-mis-table .cr-row2 th { height: 46px; top: 28px; padding-top: 3px; padding-bottom: 3px; line-height: 1.15; font-size: 11.5px; }
.classic-mode .crit-mis-card .legacy-mis-table .legacy-mis-head-two th { height: 26px; top: 74px; }
/* Critical Parameters banner: orange (Anmol, 17-10-2026) */
.classic-mode .crit-mis-card .legacy-mis-head.classic-mis-banner { background: linear-gradient(120deg, #b34700 0%, #f26b0a 55%, #ffa733 100%); }
.classic-mode .crit-mis-card .classic-mis-banner p { color: #fff0e0; }

/* Executive Vintage and Disbursement MIS (Anmol, 17-10-2026): gold header like the Executive Vintage Wise sheet */
.legacy-mis-table.vint-mis-table { width: 100%; min-width: 1040px; table-layout: fixed; font-size: 12px; }
.vint-mis-table th.vt-h { background: #ffc000; color: #000; font-weight: 900; white-space: normal; line-height: 1.1; }
.vint-mis-table .legacy-mis-head-two th { height: 34px; font-size: 11px; }
.classic-mode .vint-mis-card .legacy-mis-table th, .classic-mode .vint-mis-card .legacy-mis-table td { height: 22px; }
.classic-mode .vint-mis-card .legacy-mis-table .legacy-mis-head-two th { height: 34px; top: 28px; }
.classic-mode .vint-mis-card .legacy-mis-head.classic-mis-banner { min-height: 84px; padding: 16px 26px; background: linear-gradient(120deg, #0b2a66 0%, #1550b8 55%, #2f86e8 100%); }
.classic-mode .vint-mis-card .classic-mis-banner h2 { font-size: clamp(24px, 2.4vw, 34px); }
.classic-mode .vint-mis-card .classic-mis-banner p { margin-top: 5px; font-size: 12px; color: #dbe9ff; }
.classic-mode .vint-mis-card .legacy-mis-scroll { max-height: calc((100vh - 120px) / .9); overflow: auto; }
/* Vintage report: room for the header words (the page scrolls sideways instead of squeezing); Critical too */
.legacy-mis-table.vint-mis-table { min-width: 1760px; }
.legacy-mis-table.crit-mis-table { min-width: 1500px; }
.vint-mis-table th.vt-h { padding-left: 2px; padding-right: 2px; font-size: 11px; }
.vint-mis-table .legacy-mis-head-two th.vt-h { font-size: 10.5px; }
.classic-mode .vint-mis-card .legacy-mis-table th.h-sm, .classic-mode .vint-mis-card .legacy-mis-table td:first-child,
.classic-mode .crit-mis-card .legacy-mis-table th.h-sm, .classic-mode .crit-mis-card .legacy-mis-table td:first-child { width: 180px; min-width: 180px; }
/* every Classic MIS report: a border on the left side of the first column too */
.legacy-mis-table th.h-sm, .legacy-mis-table td:first-child { border-left: 1.5px solid #000; }
/* Frozen header rows: each row has one fixed height and the next row starts exactly below it (no gap where data rows showed through) */
.classic-mode .legacy-mis-card .legacy-mis-table .legacy-mis-head-one th { height: 30px; top: 0; }
.classic-mode .legacy-mis-card .legacy-mis-table .legacy-mis-head-two th { height: 34px; top: 30px; }
.classic-mode .vint-mis-card .legacy-mis-table .legacy-mis-head-two th { height: 36px; top: 30px; }
.classic-mode .crit-mis-card .legacy-mis-table .cr-row2 th { height: 46px; top: 30px; }
.classic-mode .crit-mis-card .legacy-mis-table .legacy-mis-head-two th { height: 26px; top: 76px; }

/* Note button + popup on every Classic MIS report (Anmol, 17-10-2026) */
.classic-mode .legacy-mis-head .mis-note-btn { align-self: flex-start; margin-left: auto; padding: 7px 14px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.classic-mode .legacy-mis-head .mis-note-btn:hover, .classic-mode .legacy-mis-head .mis-note-btn:focus-visible { background: #fff; color: #111827; }
.mis-note-overlay { position: fixed; inset: 0; z-index: 130000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.mis-note-card { position: relative; width: min(760px, 94vw); max-height: 86vh; overflow-y: auto; padding: 22px 26px 24px; border: 2px solid #111827; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 24px 60px rgba(15, 23, 42, .45); }
.mis-note-card h2 { margin: 0 40px 4px 0; font-size: 22px; font-weight: 900; }
.mis-note-now { margin: 0 0 10px; color: #475569; font-size: 13px; font-weight: 700; }
.mis-note-card h3 { margin: 14px 0 4px; padding-bottom: 3px; border-bottom: 2px solid #f4b084; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.mis-note-card ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.mis-note-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; color: #111827; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.mis-note-x:hover { background: #fee2e2; }

/* Executive / Dealer / Resign buttons (Anmol, 17-10-2026) */
.classic-mode .mis-scope { display: flex; align-items: center; gap: 8px; align-self: end; flex-wrap: wrap; }
.classic-mode .mis-scope span { color: #475569; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.classic-mode .mis-scope button { padding: 9px 16px; border: 2px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.classic-mode .mis-scope button.on { background: #111827; color: #fff; }
.classic-mode .mis-scope button:not(.on):hover { background: #eef2ff; }
.classic-mode .classic-filter-grid .mis-scope { grid-column: 1 / -1; }

/* Choose report panel: border, light background, report chips with motion (Anmol, 17-10-2026) */
.classic-mode .classic-filters { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 22px; border: 2px solid #111827; border-radius: 16px; background: linear-gradient(180deg, #f7f3ff 0%, #efe9fb 100%); box-shadow: 0 6px 18px -12px rgba(30, 20, 60, .45); }
.classic-mode .classic-filter-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.classic-mode .classic-filter-head h2 { font-size: 19px; font-weight: 900; }
.classic-mode .classic-filter-head p { margin: 0; }
.classic-report-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.classic-report-chip { --c: #6b46a3; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 2px solid #111827; border-radius: 12px; background: #fff; color: #111827; font: inherit; font-size: 15px; font-weight: 800; text-align: left; cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms cubic-bezier(.23, 1, .32, 1), box-shadow 220ms ease; }
.classic-report-chip .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c); transition: transform 260ms cubic-bezier(.23, 1, .32, 1); }
.classic-report-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px var(--c); }
.classic-report-chip:active { transform: scale(.97); }
.classic-report-chip:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.classic-report-chip.on { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 10px 22px -12px var(--c); }
.classic-report-chip.on .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); transform: scale(1.15); }
.classic-report-chip.c-fire { --c: #c8160e; }
.classic-report-chip.c-purple { --c: #4b2a78; }
.classic-report-chip.c-orange { --c: #e8620a; }
.classic-report-chip.c-blue { --c: #1550b8; }
.classic-filter-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 12px; border-top: 1.5px dashed #b9a9d6; }
.classic-filter-row .classic-date { display: grid; gap: 6px; width: min(320px, 100%); color: #5f5174; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.classic-filter-row .classic-date input { height: 44px; padding: 0 12px; border: 2px solid #111827; border-radius: 10px; background: #fff; color: #111827; font: inherit; font-size: 15px; font-weight: 800; }
.classic-mode .classic-filter-row .mis-scope { align-self: flex-end; }
.mis-enter { animation: mis-enter 420ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes mis-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mis-enter { animation: none; } .classic-report-chip, .classic-report-chip .dot { transition: none; } }
@media (max-width: 900px) { .classic-report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .classic-report-list { grid-template-columns: 1fr; } }

/* Report drop-down (custom, so it can carry colours and motion) -- Anmol, 17-10-2026 */
.classic-filter-row { align-items: flex-end; border-top: 0; padding-top: 0; }
.classic-dd-wrap { display: grid; gap: 6px; width: min(460px, 100%); }
.classic-dd-label { color: #5f5174; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.classic-dd { position: relative; }
.classic-dd-btn { --c: #6b46a3; display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; border: 2px solid #111827; border-radius: 10px; background: #fff; color: #111827; font: inherit; font-size: 15px; font-weight: 800; text-align: left; cursor: pointer; transition: box-shadow 200ms ease, border-color 200ms ease; }
.classic-dd-btn:hover, .classic-dd.open .classic-dd-btn { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.classic-dd-btn .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classic-dd-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms cubic-bezier(.23, 1, .32, 1); }
.classic-dd.open .classic-dd-btn svg { transform: rotate(180deg); }
.classic-dd-btn .dot, .classic-dd-item .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c); }
.classic-dd-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; margin: 0; padding: 6px; list-style: none; border: 2px solid #111827; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top center; transition: opacity 160ms ease, transform 200ms cubic-bezier(.23, 1, .32, 1), visibility 0s linear 200ms; }
.classic-dd.open .classic-dd-list { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 260ms cubic-bezier(.23, 1, .32, 1), visibility 0s; }
.classic-dd-item { --c: #6b46a3; display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: #111827; font: inherit; font-size: 14.5px; font-weight: 750; text-align: left; cursor: pointer;
  opacity: 0; transform: translateY(-4px); transition: background-color 160ms ease, color 160ms ease, opacity 0s, transform 0s; }
.classic-dd.open .classic-dd-item { opacity: 1; transform: none; transition: background-color 160ms ease, color 160ms ease, opacity 220ms ease calc(var(--i) * 40ms + 40ms), transform 260ms cubic-bezier(.23, 1, .32, 1) calc(var(--i) * 40ms + 40ms); }
.classic-dd-item:hover, .classic-dd-item:focus-visible { background: color-mix(in srgb, var(--c) 14%, #fff); outline: 0; }
.classic-dd-item.on { background: var(--c); color: #fff; }
.classic-dd-item.on .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.classic-dd-item .tick { margin-left: auto; font-weight: 900; }
.classic-dd-btn.c-fire, .classic-dd-item.c-fire { --c: #c8160e; }
.classic-dd-btn.c-purple, .classic-dd-item.c-purple { --c: #4b2a78; }
.classic-dd-btn.c-orange, .classic-dd-item.c-orange { --c: #e8620a; }
.classic-dd-btn.c-blue, .classic-dd-item.c-blue { --c: #1550b8; }
@media (prefers-reduced-motion: reduce) { .classic-dd-list, .classic-dd-item, .classic-dd-btn svg { transition: none !important; } }
/* the wide report tables scroll inside their own box; they must not stretch the page sideways (Anmol, 17-10-2026) */
.classic-page { grid-template-columns: minmax(0, 1fr); }
.classic-page > *, .classic-page .mis-enter { min-width: 0; max-width: 100%; }
.classic-mode .legacy-mis-card { min-width: 0; max-width: 100%; }

/* Executive Productivity MIS (Anmol, 17-10-2026): red Zero group, pale yellow headings, light blue subtotals, gold Total */
.legacy-mis-table.prod-mis-table { width: 100%; min-width: 1040px; table-layout: fixed; font-size: 12px; }
.prod-mis-table th.pr-h, .abnd-mis-table th.pr-h { background: #ffffcc; color: #000; font-weight: 900; white-space: normal; line-height: 1.1; }
.prod-mis-table th.pr-z { background: #ff0000; color: #fff; font-weight: 900; white-space: normal; line-height: 1.1; }
.prod-mis-table tbody tr.pr-sub td { background: #9dc3e6; font-weight: 900; }
.prod-mis-table tbody tr.pr-sub td:nth-last-child(-n+2) { background: #8db4e2; }
.prod-mis-table tbody tr.pr-total td { background: #ffc000; font-weight: 950; border-top: 2px solid #000; }
/* ABND MIS (Anmol, 31-10-2026): small 5-column table, teal banner */
.legacy-mis-table.abnd-mis-table { width: 100%; min-width: 760px; table-layout: fixed; font-size: 12px; }
.classic-mode .abnd-mis-card .legacy-mis-table th, .classic-mode .abnd-mis-card .legacy-mis-table td { height: 22px; }
.classic-mode .abnd-mis-card .legacy-mis-head.classic-mis-banner { min-height: 84px; padding: 16px 26px; background: linear-gradient(120deg, #134e4a 0%, #0f766e 55%, #2dd4bf 100%); }
.classic-mode .abnd-mis-card .classic-mis-banner h2 { font-size: clamp(24px, 2.4vw, 34px); }
.classic-mode .abnd-mis-card .classic-mis-banner p { margin-top: 5px; font-size: 12px; color: #ccfbf1; }
.classic-mode .abnd-mis-card .legacy-mis-scroll { max-height: calc((100vh - 120px) / .9); overflow: auto; }
.classic-dd-btn.c-teal, .classic-dd-item.c-teal { --c: #0f766e; }
/* ABND header colours: SM Name slate, the two counts blue, Segment 1 / 2 / Other teal, Total ABND dark teal */
.abnd-mis-table thead th.ab-sm { background: #1f2937; color: #fff; }
.abnd-mis-table thead th.ab-cnt { background: #9dc3e6; color: #000; }
.abnd-mis-table thead th.ab-seg { background: #5eead4; color: #000; }
.abnd-mis-table thead th.ab-tot { background: #0f766e; color: #fff; }
/* ABND names card (Anmol, 31-10-2026): column heads sort high to low, bigger black SM name, column totals in each SM bar and in a Total row at the bottom */
.dq-sum .dq-view { display: inline-flex; padding: 3px; margin-right: 6px; border: 2px solid #111827; border-radius: 999px; background: #fff; }
.dq-view button { padding: 5px 16px; border: 0; border-radius: 999px; background: transparent; color: #111827; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.dq-view button:hover:not(.on) { background: color-mix(in srgb, var(--c) 14%, #fff); }
.dq-view button.on { background: var(--c); color: #fff; }
.dq-view button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.dq-table thead th .dq-sort { display: inline-flex; align-items: center; gap: 5px; margin: -3px -6px; padding: 3px 6px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.dq-sort svg { flex: none; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .35; transition: opacity 160ms ease; }
.dq-sort:hover, .dq-sort:focus-visible { background: color-mix(in srgb, var(--c) 12%, #fff); color: #0f172a; }
.dq-sort:hover svg, .dq-sort:focus-visible svg { opacity: .85; }
.dq-sort:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
.dq-table thead th .dq-sort.on { color: var(--c); }
/* the column the list is sorted on: its head is filled with the card colour */
.dq-table thead th[aria-sort="descending"] { background: var(--c); color: #fff; }
.dq-table thead th[aria-sort="descending"] .dq-sort.on, .dq-table thead th[aria-sort="descending"] .dq-sort.on:hover { color: #fff; }
.dq-table thead th[aria-sort="descending"] .dq-sort.on:hover { background: rgba(255, 255, 255, .18); }
.dq-sort.on svg { opacity: 1; }
.mis-dq-card.dq-teal .dq-table tr.dq-sm th, .mis-dq-card.dq-teal .dq-table tr.dq-sm td, .mis-dq-card.dq-teal .dq-table tfoot th, .mis-dq-card.dq-teal .dq-table tfoot td { font-size: 15.5px; font-weight: 900; color: #000; }
.mis-dq-card.dq-teal .dq-table tr.dq-sm th span, .mis-dq-card.dq-teal .dq-table tfoot th span { font-size: 12.5px; font-weight: 700; color: #334155; }
.mis-dq-card.dq-teal .dq-table tr.dq-sm td { background: color-mix(in srgb, var(--c) 14%, #fff); border-bottom: 1.5px solid #111827; }
.mis-dq-card.dq-teal .dq-table tbody tr.dq-sm:hover th, .mis-dq-card.dq-teal .dq-table tbody tr.dq-sm:hover td { background: color-mix(in srgb, var(--c) 14%, #fff); }
.mis-dq-card.dq-teal .dq-table tbody th small { font-size: 13px; font-weight: 700; color: #000; }
.mis-dq-card.dq-teal .dq-table tfoot th, .mis-dq-card.dq-teal .dq-table tfoot td { position: sticky; bottom: 0; z-index: 2; padding: 9px 12px; background: color-mix(in srgb, var(--c) 22%, #fff); border-top: 2px solid #111827; border-bottom: 0; text-align: center; }
.mis-dq-card.dq-teal .dq-table tfoot th { text-align: left; }
.classic-mode .prod-mis-card .legacy-mis-table th, .classic-mode .prod-mis-card .legacy-mis-table td { height: 22px; }
.classic-mode .prod-mis-card .legacy-mis-table .legacy-mis-head-two th { height: 30px; top: 30px; }
.classic-mode .prod-mis-card .legacy-mis-head.classic-mis-banner { min-height: 84px; padding: 16px 26px; background: linear-gradient(120deg, #064e3b 0%, #0f8a64 55%, #34d399 100%); }
.classic-mode .prod-mis-card .classic-mis-banner h2 { font-size: clamp(24px, 2.4vw, 34px); }
.classic-mode .prod-mis-card .classic-mis-banner p { margin-top: 5px; font-size: 12px; color: #d1fae5; }
.classic-mode .prod-mis-card .legacy-mis-scroll { max-height: calc((100vh - 120px) / .9); overflow: auto; }
.prod-switch { display: inline-flex; padding: 3px; border: 2px solid #111827; border-radius: 999px; background: #fff; margin-right: 10px; }
.prod-switch button { padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: #111827; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.prod-switch button.on { background: #0f8a64; color: #fff; }
.classic-dd-btn.c-green, .classic-dd-item.c-green { --c: #0f8a64; }
.legacy-mis-actions { display: flex; align-items: center; }

/* Click a number -> who is behind it; Insights popup (Anmol, 17-10-2026) */
.legacy-mis-table td.dq { cursor: pointer; transition: background-color 120ms ease, box-shadow 120ms ease; }
.legacy-mis-table td.dq:hover, .legacy-mis-table td.dq:focus-visible { background-color: #fff6c2 !important; box-shadow: inset 0 0 0 2px #111827; outline: 0; text-decoration: underline; text-underline-offset: 3px; }
.mis-dq-card { width: min(980px, 96vw); max-height: 88vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; --c: #4b2a78; }
.mis-dq-card.dq-teal { --c: #0f766e; } .mis-dq-card.dq-green { --c: #0f8a64; } .mis-dq-card.dq-blue { --c: #1550b8; } .mis-dq-card.dq-fire { --c: #c8160e; } .mis-dq-card.dq-orange { --c: #e8620a; } .mis-dq-card.dq-purple { --c: #4b2a78; }
.dq-head { position: relative; padding: 18px 64px 16px 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 70%, #000) 0%, var(--c) 100%); color: #fff; }
.dq-head h2 { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.01em; }
.dq-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 650; }
.dq-head .mis-note-x { top: 14px; right: 16px; border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; }
.dq-head .mis-note-x:hover { background: #fff; color: #111827; }
.dq-sum { display: flex; align-items: center; gap: 6px; padding: 10px 24px; border-bottom: 1.5px solid #111827; background: #f7f3ff; font-size: 14px; font-weight: 650; color: #334155; }
.dq-copy { margin-left: auto; padding: 7px 16px; border: 2px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.dq-copy:hover { background: #ffe9a8; } .dq-copy:active { transform: scale(.96); } .dq-copy:focus-visible, .ins-actions button:focus-visible, .classic-insights:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.dq-scroll { overflow: auto; flex: 1; }
.dq-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.dq-table thead th { position: sticky; top: 0; z-index: 2; padding: 9px 12px; background: #fff; border-bottom: 2px solid #111827; text-align: right; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #334155; white-space: nowrap; }
.dq-table thead th:nth-child(1), .dq-table thead th:nth-child(2) { text-align: left; }
.dq-table td, .dq-table tbody th { padding: 8px 12px; border-bottom: 1px solid #d9dee8; }
.dq-table tbody th { text-align: left; font-weight: 800; color: #0f172a; }
.dq-table tbody th small { display: block; font-size: 12px; font-weight: 600; color: #64748b; }
.dq-table td.dq-n { text-align: right; font-weight: 750; } .dq-table td.dq-t { text-align: right; color: #334155; font-weight: 600; } .dq-table td.dq-r { width: 38px; color: #64748b; font-weight: 700; text-align: left; }
.dq-table tbody tr:hover td, .dq-table tbody tr:hover th { background: #f8f6ff; }
.dq-table tr.dq-sm th { padding: 7px 12px; background: color-mix(in srgb, var(--c) 14%, #fff); border-bottom: 1.5px solid #111827; font-size: 13px; text-transform: none; letter-spacing: 0; color: #0f172a; position: static; }
.dq-table tr.dq-sm th span { margin-left: 8px; font-weight: 700; color: #475569; }
.dq-up { color: #0f7a3d; font-weight: 800; } .dq-down { color: #b91c1c; font-weight: 800; }
.dq-empty { margin: 0; padding: 26px 24px; color: #475569; font-weight: 650; }
.mis-ins-card { width: min(1080px, 96vw); max-height: 90vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ins-head { position: relative; padding: 20px 64px 18px 26px; background: linear-gradient(120deg, #2b1655 0%, #4b2a78 55%, #6d3fc0 100%); color: #fff; }
.ins-head h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.ins-head p { margin: 5px 0 0; color: #e4d9f7; font-size: 13px; font-weight: 650; }
.ins-head .mis-note-x { top: 16px; right: 18px; border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; }
.ins-head .mis-note-x:hover { background: #fff; color: #111827; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 22px; overflow: auto; background: #f4f1fb; }
.ins-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 14px; border: 1.5px solid #111827; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px -12px rgba(15, 23, 42, .5); animation: ins-in 420ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i) * 45ms); }
.ins-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ins-top h3 { margin: 0; font-size: 16px; font-weight: 900; color: #0f172a; }
.ins-tag { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.ins-risk .ins-tag { background: #c8160e; } .ins-watch .ins-tag { background: #c2570a; } .ins-info .ins-tag { background: #1550b8; } .ins-good .ins-tag { background: #0f7a3d; }
.ins-item p { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 550; color: #1e293b; }
.ins-item p strong { font-weight: 850; color: #0f172a; }
.ins-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ins-actions button { padding: 7px 14px; border: 2px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.ins-actions button:hover { background: #ffe9a8; } .ins-actions button:active { transform: scale(.96); }
.ins-foot { margin: 0; padding: 10px 24px 14px; border-top: 1.5px solid #111827; background: #fff; color: #475569; font-size: 12px; font-weight: 600; }
@keyframes ins-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.classic-insights { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; margin-left: auto; padding: 10px 20px; border: 2px solid #111827; border-radius: 999px; background: linear-gradient(120deg, #4b2a78, #6d3fc0); color: #fff; font: inherit; font-size: 15px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 18px -10px #4b2a78; transition: transform 180ms cubic-bezier(.23, 1, .32, 1), box-shadow 180ms ease; }
.classic-insights svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.classic-insights:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px #4b2a78; } .classic-insights:active { transform: scale(.97); }
.classic-mode .classic-filter-row .mis-scope { margin-left: 0; }
@media (max-width: 760px) { .ins-grid { grid-template-columns: 1fr; padding: 12px; } .dq-head, .ins-head { padding-left: 16px; } .classic-insights { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ins-item { animation: none; } .classic-insights, .dq-copy, .ins-actions button { transition: none; } }
.dq-table td.dq-t { white-space: nowrap; }
.dq-table td.dq-t:last-child { white-space: normal; min-width: 190px; max-width: 320px; text-align: left; }
.dq-table thead th:last-child { text-align: left; }

/* 17-10-2026 Insights v2 "Where to focus" + Business answers popup (centred, names first, risk first) */
.mis-ins-card, .mis-ans-card { width: min(920px, 96vw); max-height: 92vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #f4f1fb; }
.t-risk { --t: #c8160e; --tl: #fdecea; } .t-watch { --t: #b45309; --tl: #fff4e0; } .t-info { --t: #1550b8; --tl: #e8f0fd; } .t-good { --t: #0f7a3d; --tl: #e6f6ec; }
.ins-head, .ans-head { position: relative; padding: 20px 64px 18px; text-align: center; color: #fff; }
.ans-head { background: linear-gradient(120deg, #083d2c 0%, #0f7a54 60%, #149467 100%); }
.ins-head h2, .ans-head h2 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.01em; }
.ins-head p, .ans-head p { margin: 6px auto 0; max-width: 640px; color: #eef2f7; font-size: 13px; font-weight: 650; text-wrap: balance; }
.ans-head .mis-note-x { top: 16px; right: 18px; border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; }
.ans-head .mis-note-x:hover { background: #fff; color: #111827; }
.ins-body, .ans-body { overflow: auto; padding: 20px 22px 24px; }
.ins-wrap { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.ins-pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ins-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 12px 12px; border: 1.5px solid #111827; border-radius: 12px; background: #fff; text-align: center; box-shadow: inset 0 5px 0 var(--t), 0 6px 14px -12px rgba(15, 23, 42, .5); }
.ins-tile .k { margin-top: 4px; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #334155; }
.ins-tile .v { font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--t); font-variant-numeric: tabular-nums; }
.ins-tile .s { font-size: 13px; font-weight: 650; line-height: 1.4; color: #334155; }
.ins-tile .w, .ans-w, .risk-lvl { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--t, #64748b); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ins-tile .w { margin-top: 6px; }
.ins-sec { padding: 16px 18px; border: 1.5px solid #111827; border-radius: 12px; background: #fff; }
.ins-sec > h3, .ins-cards-h { margin: 0; text-align: center; font-size: 18px; font-weight: 900; color: #0f172a; }
.ins-sec > .hint { margin: 4px 0 12px; text-align: center; font-size: 13px; font-weight: 600; color: #475569; }
.zone-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #e5e7eb; }
.zone-row b { font-size: 15px; font-weight: 850; color: #0f172a; }
.zone-bar { position: relative; height: 14px; border: 1px solid #cbd2dc; border-radius: 999px; background: #eef0f4; }
.zone-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); border-radius: 999px; background: var(--t); }
.zone-bar u { position: absolute; top: -5px; bottom: -5px; left: var(--g); width: 2px; margin-left: -1px; background: #111827; }
.zone-val { font-size: 13px; font-weight: 750; color: #334155; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zone-val em { font-style: normal; font-size: 15px; font-weight: 900; color: var(--t); }
.zone-w { color: var(--t); font-weight: 900; }
.risk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 2px; border-bottom: 1px solid #e5e7eb; }
.risk-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #111827; color: #fff; font-size: 13px; font-weight: 900; }
.risk-name b { font-size: 16px; font-weight: 900; color: #0f172a; }
.risk-name small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 650; color: #475569; }
.risk-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.risk-why span { padding: 3px 10px; border: 1px solid #f1b5b0; border-radius: 999px; background: #fdecea; color: #8a1410; font-size: 12.5px; font-weight: 750; }
.lvl-high { --t: #c8160e; } .lvl-medium { --t: #b45309; } .lvl-low { --t: #64748b; }
.ins-more { justify-content: center; margin-top: 12px; }
.ins-cards { display: grid; gap: 10px; }
.ins-cards-h { margin: 4px 0 2px; }
.ins-item .ins-lead { font-size: 15px; font-weight: 700; color: #0f172a; }
.ins-item ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.ins-item li { font-size: 14px; line-height: 1.5; font-weight: 550; color: #1e293b; }
.ins-item li strong { font-weight: 850; color: #0f172a; }
.ans-list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.ans-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; border: 1.5px solid #111827; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px -12px rgba(15, 23, 42, .5); animation: ins-in 420ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i) * 30ms); }
.ans-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--t); color: #fff; font-size: 15px; font-weight: 900; }
.ans-item h3 { margin: 0; font-size: 14px; font-weight: 800; color: #475569; }
.ans-a { margin: 3px 0 0; font-size: 18px; font-weight: 900; line-height: 1.35; color: #0f172a; text-wrap: pretty; }
.ans-more { margin: 6px 0 0; font-size: 14px; font-weight: 550; line-height: 1.55; color: #334155; }
.ans-more strong { font-weight: 850; color: #0f172a; }
.ans-item .ins-actions { margin-top: 10px; }
.dq-lead { margin: 0; padding: 12px 24px; border-bottom: 1px solid #d9dee8; background: #fff; font-size: 15px; font-weight: 650; line-height: 1.45; color: #0f172a; }
.dq-lead strong { font-weight: 900; }
.classic-answers { background: linear-gradient(120deg, #0b5c40, #149467); box-shadow: 0 8px 18px -10px #0b5c40; }
.classic-answers:hover { box-shadow: 0 12px 22px -10px #0b5c40; }
.classic-answers + .classic-insights { margin-left: 0; }
@media (max-width: 760px) {
  .ins-head, .ans-head { padding: 16px 52px 14px; }
  .ins-body, .ans-body { padding: 12px; }
  .zone-row { grid-template-columns: minmax(0, 1fr) auto; }
  .zone-bar { grid-column: 1 / -1; grid-row: 2; }
  .zone-val { white-space: normal; }
  .ans-item { grid-template-columns: 30px minmax(0, 1fr); padding: 12px; }
  .ans-w { grid-column: 2; justify-self: start; }
  .risk-row { grid-template-columns: 28px minmax(0, 1fr); }
  .risk-lvl { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .ans-item { animation: none; } }
.ins-sec > h3, .ins-cards-h, .ans-item h3, .ins-item h3 { padding: 0; border: 0; text-transform: none; letter-spacing: 0; }
.ans-item h3 { font-size: 15px; }
@media (max-width: 760px) { .ins-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ins-tile { padding: 12px 8px 10px; } .ins-tile .v { font-size: 26px; } .ins-tile .s { font-size: 12px; } }

/* 17-10-2026 Classic MIS filters: one compact layout on every phone / tablet width (was 1 column at 601-800px, 2 columns below) */
@media (max-width: 800px) {
  .legacy-mis-card .legacy-mis-filters { grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 8px 10px; }
  .legacy-mis-card .legacy-mis-filters label { gap: 3px; font-size: 11px; letter-spacing: .02em; }
  .legacy-mis-card .legacy-mis-filters label select, .legacy-mis-card .legacy-mis-filters label:nth-child(4) select { height: 40px; min-height: 40px; font-size: 14px; font-weight: 800; border-radius: 8px; }
}

/* 17-10-2026 audit round: popups zoomed out, names card easier to read, Back / Reset buttons, source tooltips */
.mis-ins-card, .mis-ans-card, .mis-dq-card { zoom: .55; }   /* 22-10-2026 (Anmol: popups were too close): was .8, then .65 */
.mis-ins-card, .mis-ans-card { width: min(920px, calc(96vw / .55)); max-height: calc(92vh / .55); }
.mis-dq-card { width: min(980px, calc(96vw / .55)); max-height: calc(88vh / .55); }
@media (max-width: 760px) { .mis-ins-card, .mis-ans-card, .mis-dq-card { zoom: 1; width: 100%; max-height: 92vh; } }
.dq-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 14px; border: 2px solid #fff; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.dq-back:hover { background: #fff; color: #111827; } .dq-back:active { transform: scale(.96); } .dq-back:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.dq-table td.dq-t { text-align: left; } .dq-table thead th.dq-th-t { text-align: left; }
.dq-table td.dq-chips { white-space: normal; min-width: 210px; max-width: 360px; }
.dq-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; border: 1px solid #cbd2dc; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.dq-chip.warn { border-color: #f1b5b0; background: #fdecea; color: #8a1410; } .dq-chip.good { border-color: #a7dfbf; background: #e6f6ec; color: #0b5d30; } .dq-chip.info { border-color: #b8cdf5; background: #e8f0fd; color: #153f8f; }
.dq-src { margin: 0; padding: 9px 24px 12px; border-top: 1px solid #d9dee8; background: #f8fafc; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.45; }
.tip-i, .tip-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10.5px; font-style: normal; font-weight: 900; line-height: 1; vertical-align: middle; cursor: help; opacity: .7; }
.tip-i { color: #475569; } .tip-i:hover, .tip-i:focus-visible, [data-src]:hover > .tip-dot { opacity: 1; }
.tip-i:focus-visible, [data-src]:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ins-top .tip-i { margin-left: auto; }
.ins-tile[data-src], .dq-table th[data-src] { cursor: help; }
.mis-tip { position: fixed; z-index: 130100; display: none; max-width: min(340px, 90vw); padding: 9px 12px; border-radius: 9px; background: #111827; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.5; text-transform: none; letter-spacing: 0; text-align: left; pointer-events: none; box-shadow: 0 10px 26px rgba(15, 23, 42, .4); }
.classic-reset { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; padding: 10px 18px; border: 2px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 14px; font-weight: 850; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease; }
.classic-reset svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.classic-reset:hover:not(:disabled) { background: #ffe9a8; } .classic-reset:active:not(:disabled) { transform: scale(.96); }
.classic-reset:disabled { opacity: .45; cursor: default; } .classic-reset:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dq-back, .classic-reset { transition: none; } }
.mis-dq-card { width: min(1100px, calc(96vw / .55)); }
.dq-table td, .dq-table tbody th { padding: 8px 10px; }
.dq-table td.dq-chips { min-width: 180px; }
.dq-sum { flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .mis-dq-card { width: 100%; } }
@media (min-width: 761px) and (max-width: 900px) { .mis-dq-card { zoom: .5; width: min(1100px, calc(96vw / .5)); max-height: calc(88vh / .5); } }
/* names cards: everything centred (horizontally and vertically) except # and the name column */
.mis-dq-card .dq-table thead th, .mis-dq-card .dq-table td, .mis-dq-card .dq-table tbody th { vertical-align: middle; }
.mis-dq-card .dq-table thead th:nth-child(n+3), .mis-dq-card .dq-table td.dq-n, .mis-dq-card .dq-table td.dq-t, .mis-dq-card .dq-table thead th.dq-th-t:nth-child(n+3) { text-align: center; }
.mis-dq-card .dq-table td.dq-chips { text-align: center; }
.mis-dq-card .dq-table thead th:nth-child(-n+2), .mis-dq-card .dq-table td.dq-r, .mis-dq-card .dq-table tbody th[scope="row"] { text-align: left; }
/* red / orange / green on numbers: tinted pill + coloured text (never colour alone: the legend line and the word tags explain it) */
.tn { display: inline-block; padding: 1px 8px; border-radius: 7px; font-weight: 850; font-variant-numeric: tabular-nums; }
.tn-r { background: #fdecea; color: #b31208; } .tn-o { background: #fff1da; color: #94470a; } .tn-g { background: #e3f5ea; color: #0b6b36; }
.dq-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border-top: 0; padding-top: 0; }
.dq-legend .tn { font-size: 11.5px; padding: 0 8px; }
.ans-a .tn, .ins-lead .tn { padding: 0 7px; }
.ans-a .tn { padding: 0; background: none; border-radius: 0; }
/* 17-10-2026 round 3: page behind a popup never moves, vintage filter, case tooltips, going-well lists */
html:has(.mis-note-overlay, .tm-modal-backdrop, .pd-week-modal-backdrop, .sp-modal-backdrop, .score-pop:not([hidden])) { overflow: hidden; scrollbar-gutter: stable; overscroll-behavior: none; }
.mis-note-overlay, .mis-dq-card .dq-scroll, .ins-body, .ans-body { overscroll-behavior: contain; }
.dq-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 24px; border-bottom: 1px solid #d9dee8; background: #fff; }
.dq-filter > span { margin-right: 4px; color: #334155; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dq-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px solid #111827; border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.dq-filter button b { padding: 0 7px; border-radius: 999px; background: #e2e8f0; color: #0f172a; font-size: 12px; font-weight: 900; }
.dq-filter button:hover:not(:disabled):not(.on) { background: #ffe9a8; } .dq-filter button:active:not(:disabled) { transform: scale(.96); }
.dq-filter button.on { background: #111827; color: #fff; } .dq-filter button.on b { background: #fff; color: #111827; }
.dq-filter button:disabled { opacity: .4; cursor: default; } .dq-filter button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.tip-n { border-bottom: 1.5px dotted #475569; cursor: help; } .tip-n:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.dq-table td[data-src] { cursor: help; }
.mis-tip { white-space: pre-line; }
.risk-why.good span { border-color: #a7dfbf; background: #e6f6ec; color: #0b5d30; } .lvl-good { --t: #0f7a3d; }
@media (max-width: 760px) { .dq-filter { padding: 10px 12px; } }

/* 17-10-2026 touch targets: on phones / touch screens every button is at least ~34 px tall; tiny info icons get a bigger invisible tap area */
@media (pointer: coarse), (max-width: 860px) {
  .seg button, .pd-crumb, .tm-export, .trend-reset-btn, .trend-range-btn, .forecast-why-btn, .attention-drill-controls button, .ql-back, .ql-trail button, .spcc-crumb, .spcc-note-link,
  .spcc-view-btn, .spcc-action-seg button, .spcc-trend-cmp button:not(.spcc-kpi-tip), .spcc-action-stat, .spcc-action-teamreset, .spcc-action-pat, .mover, .prod-switch button { min-height: 36px; }
  .tm-view-btn, .tm-state-toggle, .ql-drill, .ql-month { min-height: 32px; }
  .forecast-primary .forecast-basis button { min-height: 36px; }
  .forecast-panel .forecast-card-details summary { display: flex; align-items: center; justify-content: center; width: max-content; min-width: 44px; min-height: 36px; padding: 6px 10px; margin: 0 auto; }
  .sp-info-btn { position: relative; min-width: 32px; min-height: 32px; }
  .sp-info-btn::after, .ql-help::after { content: ""; position: absolute; inset: -11px; }
  .spcc-kpi-tip { min-width: 32px; min-height: 32px; }
}

/* 17-10-2026 filters: nothing is cut any more (Month / Compare / Basis, sourcing team filters, quality filter, Classic MIS filters) */
.time-filter-grid { grid-template-columns: minmax(150px, 1fr) minmax(205px, 1.35fr) minmax(95px, .7fr); }
.time-filter-grid:has(#fBasisCtl[hidden]) { grid-template-columns: minmax(150px, 1fr) minmax(205px, 1.35fr); }
.time-filter-grid:has(#fAsOfDate) { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
.time-filter-grid:has(#fAsOfDate) #fAsOfDate { box-sizing: border-box; min-width: 0; width: 100%; }
@media (min-width: 1151px) {
  .filter-master-row:has(#fBasisCtl:not([hidden])) { grid-template-columns: minmax(500px, 1.15fr) minmax(540px, 1.85fr); }
  .filter-master-row:has(#fBasisCtl[hidden]) { grid-template-columns: minmax(400px, .9fr) minmax(540px, 2.1fr); }
}
@media (max-width: 560px) { .time-filter-grid, .time-filter-grid:has(#fBasisCtl[hidden]), .time-filter-grid:has(#fAsOfDate), .time-filter-grid:has(#fAsOfDate):has(#fBasisCtl[hidden]) { grid-template-columns: 1fr 1fr; } }
#ql-filter { min-width: 145px; }
.spcc-action-teamfilters select { min-width: 150px; }
@media (max-width: 800px) { .legacy-mis-card .legacy-mis-filters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
/* page-menu tab on the left edge: narrow, so it never covers the first letters of the page */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .menu-tab { width: 16px; }
  .menu-tab svg { width: 13px; height: 13px; }
}
@media (max-width: 860px) { .classic-mode .legacy-mis-card .legacy-mis-filters label select, .classic-mode .legacy-mis-card .legacy-mis-filters label:nth-child(4) select { width: 100%; max-width: none; } }
.employee-filter-grid .ctl select:disabled { font-size: 11.5px; }
/* Keep Sales team usable while a report popup is open. */
body .team-edge { z-index: 130110; }
body .team-drawer { z-index: 130120; }
body .drawer-backdrop { z-index: 130080; }
/* 22-10-2026: on phones the Page Menu drawer sat UNDER the backdrop above (120010 < 130080): taps hit the backdrop and closed it, no page could be chosen. */
@media (max-width: 860px), (pointer: coarse) {
  body .sidebar, body .shell.sidebar-hidden .sidebar { z-index: 130090; }
}

/* Quality completion, 21-10-2026: compact measures, actionable review and shared detail views. */
.ql-page { --ql-motion: cubic-bezier(.16,1,.3,1); font-variant-numeric: tabular-nums; }
.ql-page ::selection { background: #f0d2b4; color: #3c2d21; }
.ql-page .ql-kpi { min-height: 116px; border: 1.5px solid #171717; border-radius: 8px; box-shadow: none; transition: background-color 150ms ease, transform 140ms var(--ql-motion); }
.ql-page .ql-kpi.good { background: #f5faf6; }
.ql-page .ql-kpi.bad { background: #fff5f2; }
.ql-page .ql-kpi.warn { background: #fff8ec; }
.ql-page .ql-kpi.ql-kpi-score { background: #17324d; color: #fff; }
.ql-page .ql-kpi-score .ql-value, .ql-page .ql-kpi-score h3 { color: #fff; }
.ql-kpi-link { display: block; margin-top: 10px; color: #71513c; font-size: 11px; font-weight: 650; }
.ql-kpi-score .ql-kpi-link { color: #d5e5f3; }
.ql-kpi-clickable:active, .ql-view:active, .ql-detail-tabs button:active { transform: scale(.985); }
.ql-insights, .ql-trends, .ql-watchlist { padding: 10px; }
.ql-insights .ql-section-head, .ql-trends .ql-section-head, .ql-watchlist .ql-section-head { margin-bottom: 10px; }
.ql-insight-summary { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 24px; align-items: center; padding: 10px 4px 18px; }
.ql-insight-summary strong { display: block; font-size: 25px; font-weight: 850; line-height: 1.15; }
.ql-insight-summary span { color: #6d5b4c; font-size: 12px; }
.ql-insight-summary p { max-width: 95ch; margin: 0; font-size: 13px; line-height: 1.6; }
.ql-category-list { border: 1px solid #171717; border-radius: 7px; overflow: hidden; }
.ql-category-list > button { display: grid; grid-template-columns: minmax(140px,1.4fr) minmax(90px,.7fr) minmax(130px,1fr) 100px; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border: 0; border-bottom: 1px solid #d9ccbf; color: #3c2d21; background: #fffdfa; font: 700 13px var(--sans); text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.ql-category-list > button:last-child { border-bottom: 0; }
.ql-category-list small { display: block; margin-top: 2px; color: #6d5b4c; font-size: 11px; font-weight: 500; }
.ql-category-list strong { font-size: 18px; }
.ql-category-list .bad strong { color: #9a382f; }
.ql-category-list .good strong { color: #35644a; }
.ql-category-action { color: #91400d; font-size: 12px; text-align: right; text-decoration: underline; text-underline-offset: 3px; }
.ql-page :is(.ql-category-list button, .ql-trend-row, .ql-detail-tabs button, .ql-detail-side nav button):focus-visible { outline: 3px solid #236b9b; outline-offset: -3px; }
.ql-source { margin: 0; padding: 3px 2px; color: #6d5b4c; font-size: 12px; line-height: 1.5; }
.ql-metric-trend { min-width: 0; padding: 8px 4px; }
.ql-chart-rule, .ql-chart-note { margin: 0 0 12px; color: #6d5b4c; font-size: 12px; line-height: 1.5; }
.ql-chart-note { margin: 14px 0 0; }
.ql-trend-row { display: grid; grid-template-columns: 95px minmax(30px,1fr) 105px; align-items: center; gap: 14px; width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; font: 650 12px var(--sans); cursor: pointer; text-align: left; transition: background-color 150ms ease; }
.ql-trend-row[aria-current] { background: #f7e8dc; border-color: #cfa47f; }
.ql-trend-row b { text-align: right; white-space: nowrap; }
.ql-trend-track { position: relative; height: 13px; border-radius: 3px; background: #ede5dc; }
.ql-trend-track i { display: block; height: 100%; max-width: 100%; border-radius: 3px; background: #a94f16; transform-origin: left; }
.ql-trend-row.good .ql-trend-track i { background: #35644a; }
.ql-trend-row.bad .ql-trend-track i { background: #9a382f; }
.ql-trend-track em { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed #3c2d21; }
.ql-watch-scroll { max-height: 620px; overflow: auto; }
.ql-watchlist .ql-table { min-width: 1000px; table-layout: fixed; }
.ql-watchlist .ql-table th, .ql-watchlist .ql-table td, .ql-history .ql-table th, .ql-history .ql-table td { border: 1px solid #171717; }
.ql-watchlist .ql-table thead th { position: sticky; top: 0; z-index: 2; }
.ql-watchlist .ql-table th:first-child { z-index: 3; }
.ql-watchlist .ql-table th, .ql-watchlist .ql-table td:nth-child(-n+3), .ql-watchlist .ql-table td:last-child, .ql-history .ql-table th:nth-child(n+2):nth-child(-n+6), .ql-history .ql-table td:nth-child(n+2):nth-child(-n+6) { text-align: center; }
.ql-watchlist .ql-table td:nth-child(n+5) { text-align: left; min-width: 180px; max-width: 280px; white-space: normal; }
.ql-watchlist .ql-table td:last-child { min-width: 70px; }
.ql-modal.ql-detail-modal { width: min(1180px,94vw); max-width: 94vw; max-height: 90vh; padding: 16px; color: #17324d; background: #f8fafc; border: 2px solid #17324d; overflow: auto; }
.ql-detail-modal > header h2, .ql-detail-modal h3 { color: #17324d; }
.ql-detail-modal > header { border-bottom: 1px solid #9fb5c9; }
.ql-detail-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); align-items: start; gap: 16px; margin-top: 14px; }
.ql-detail-side { min-width: 0; padding: 14px; border: 1px solid #17324d; border-radius: 8px; background: #17324d; color: #fff; }
.ql-detail-side h3 { margin: 0; color: #d5e5f3; font-size: 13px; }
.ql-detail-side > strong { display: block; margin-top: 12px; font-size: 28px; white-space: nowrap; line-height: 1.2; }
.ql-detail-side p { margin: 8px 0; color: #fff; font-size: 12px; line-height: 1.4; }
.ql-detail-side small { color: #d5e5f3; font-size: 11px; }
.ql-detail-side nav { display: grid; gap: 4px; margin-top: 20px; }
.ql-detail-side nav button { min-height: 36px; padding: 6px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #d5e5f3; text-align: left; font: 650 12px var(--sans); cursor: pointer; }
.ql-detail-side nav button[aria-pressed=true] { color: #17324d; background: #fff; }
.ql-detail-main { min-width: 0; }
.ql-detail-tabs { display: flex; gap: 5px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #9fb5c9; }
.ql-detail-tabs button { min-height: 36px; padding: 6px 12px; border: 1px solid #9fb5c9; border-radius: 5px; background: #fff; color: #17324d; font: 750 12px var(--sans); cursor: pointer; transition: background-color 150ms ease, transform 140ms var(--ql-motion); }
.ql-detail-tabs button[aria-pressed=true] { background: #17324d; border-color: #17324d; color: #fff; }
.ql-detail-modal .ql-modal-insights { margin: 10px 0; }
.ql-detail-modal .ql-modal-priority { margin: 10px 0; padding: 10px; border: 1px solid #9fb5c9; border-radius: 7px; background: #fff; }
.ql-detail-modal .ql-modal-priority h3 { margin: 0; color: #17324d; font-size: 13px; }
.ql-detail-modal .ql-modal-priority > p { margin: 3px 0 0; color: #506477; font-size: 11px; font-weight: 650; }
.ql-detail-modal .ql-modal-priority .ql-modal-insights { margin: 8px 0 0; padding: 0; }
.ql-detail-modal .ql-modal-insight { padding: 10px; border: 1px solid #9fb5c9; border-radius: 7px; }
.ql-detail-modal .ql-modal-insight b { font-size: 10px; }
.ql-detail-modal .ql-modal-insight strong { font-size: 15px; }
.ql-priority-bars { display: grid; gap: 7px; margin-top: 9px; }
.ql-priority-bar { display: grid; grid-template-columns: 72px minmax(150px, 1fr) minmax(150px, 2fr) 76px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #c4d3e0; border-radius: 6px; background: #fff; }
.ql-priority-rank { color: #506477; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.ql-priority-name strong, .ql-priority-name small { display: block; }
.ql-priority-name strong { color: #17324d; font-size: 13px; }
.ql-priority-name small { margin-top: 2px; color: #506477; font-size: 10px; font-weight: 700; }
.ql-priority-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e3ebf2; }
.ql-priority-track i { display: block; height: 100%; border-radius: inherit; background: #5f89ac; }
.ql-priority-bar.bad .ql-priority-track i { background: #b42318; }
.ql-priority-bar.warn .ql-priority-track i { background: #b54708; }
.ql-priority-bar.good .ql-priority-track i { background: #067647; }
.ql-priority-value { color: #17324d; font-size: 13px; text-align: right; white-space: nowrap; }
@media (max-width: 700px) { .ql-priority-bar { grid-template-columns: 62px minmax(0, 1fr) 62px; } .ql-priority-track { grid-column: 2 / -1; grid-row: 2; } }
.ql-detail-modal .ql-modal-table-wrap { max-height: 350px; overflow: auto; border: 1px solid #17324d; }
.ql-detail-modal .ql-modal-table-wrap table { min-width: 650px; }
.ql-detail-modal .ql-modal-table-wrap th { background: #e9f1f8; color: #17324d; }
.ql-detail-modal .ql-modal-table-wrap th, .ql-detail-modal .ql-modal-table-wrap td { padding: 7px 9px; }
.ql-detail-modal .ql-modal-note, .ql-detail-modal .ql-chart-rule, .ql-detail-modal .ql-chart-note { color: #506477; }
.ql-detail-modal .ql-trend-row[aria-current] { background: #e7f1fa; border-color: #9fb5c9; }
.ql-view-history { margin-top: 12px; padding: 10px; border: 1px solid #9fb5c9; border-radius: 7px; }
.ql-view-history summary { cursor: pointer; font-size: 13px; font-weight: 750; }
/* Quality exploration keeps labels readable; large histories scroll within their chart. */
.ql-modal.ql-view-modal { max-height: calc(100dvh - 40px); }
.ql-range-controls, .ql-view-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; min-width: 0; }
.ql-action-controls, .ql-fuel-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 8px; min-width: 0; }
.ql-action-controls .ql-filter, .ql-fuel-controls .ql-filter { min-width: 150px; }
.ql-fuel-controls .ql-chart-reset { align-self: end; }
.ql-view-controls { justify-content: space-between; margin: 14px 0; }
.ql-range-controls .ql-filter { min-width: 140px; }
.ql-chart-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.ql-bar-chart { display: block; width: 100%; min-width: 240px; height: 325px; max-height: none; overflow: visible; color: #243f54; font: 600 12px var(--sans); }
.ql-chart-reset { min-height: 38px; padding: 8px 12px; border: 1px solid #17324d; border-radius: 6px; background: #fff; color: #17324d; font: 750 12px var(--sans); cursor: pointer; transition: background-color 160ms ease; }
.ql-chart-reset:focus-visible { outline: 3px solid #236b9b; outline-offset: 2px; }
.ql-bar-chart text { fill: currentColor; }
.ql-chart-grid { stroke: #dce3e8; stroke-width: 1; }
.ql-chart-bar { fill: #416e91; transform-origin: center bottom; transform-box: fill-box; transition: fill 160ms ease, filter 180ms ease; }
.ql-chart-point.bad .ql-chart-bar { fill: #ae4037; }
.ql-chart-point.good .ql-chart-bar { fill: #328064; }
.ql-chart-point.warn .ql-chart-bar { fill: #ba701e; }
@keyframes qlValueGlide { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.ql-chart-value { font-weight: 850; font-size: 13px; paint-order: stroke fill; stroke: #ffffff; stroke-width: 5px; stroke-linejoin: round; transform-box: fill-box; animation: qlValueGlide 0.28s cubic-bezier(0.23, 1, 0.32, 1) both; }
.ql-chart-month { font-weight: 750; font-size: 12px; fill: #17324d; }
.ql-chart-growth { font-size: 11px; font-weight: 800; letter-spacing: -0.2px; }
.ql-chart-growth.good { fill: #15803d; }
.ql-chart-growth.bad { fill: #dc2626; }
.ql-chart-growth.neutral { fill: #64748b; }
.ql-chart-bar-track { fill: #f1f5f9; stroke: #cbd5e1; stroke-width: 1.5; transition: width 160ms ease, x 160ms ease; }
@keyframes qlLiquidFillUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ql-liquid-fill { transform-box: view-box; animation: qlLiquidFillUp 0.65s cubic-bezier(0.23, 1, 0.32, 1) both; }
.ql-chart-bar-gloss { pointer-events: none; }
@keyframes qlWaveMove { from { transform: translateX(0); } to { transform: translateX(60px); } }
@keyframes qlWaveMoveRev { from { transform: translateX(0); } to { transform: translateX(-60px); } }
.ql-bar-wave { pointer-events: none; }
.ql-bar-wave-1 { animation: qlWaveMove 2.4s linear infinite; }
.ql-bar-wave-2 { animation: qlWaveMoveRev 3.2s linear infinite; }
.ql-bar-wave-crest { animation: qlWaveMove 2.4s linear infinite; }
.ql-bar-wave-mid { animation: qlWaveMoveRev 3.8s linear infinite; }
.ql-bar-wave-deep { animation: qlWaveMove 4.6s linear infinite; }
.ql-bar-wave-sub { animation: qlWaveMoveRev 5.4s linear infinite; }
.ql-chart-target { stroke: #172c3c; stroke-width: 2; stroke-dasharray: 6 4; pointer-events: none; transition: filter 180ms ease; }
.ql-chart-target-badge { fill: #17324d; }
.ql-bar-chart .ql-chart-target-label { fill: #fff; font-size: 14px; font-weight: 800; stroke: none; }
.ql-chart-point[role=button] { cursor: pointer; }
.ql-chart-point:focus-visible { outline: 2px solid #236b9b; outline-offset: 3px; }
.ql-view-panel .ql-metric-trend { padding: 12px; }
.ql-view-bar-row { grid-template-columns: minmax(110px,1fr) minmax(90px,1.5fr) 82px; }
.ql-view-bar-row > small { grid-column: 1 / -1; color: #506477; font-size: 12px; }
.ql-peer-target { position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed #17324d; transform: translateX(-2px); }
.ql-view-bar-track { position: relative; overflow: visible; }
.ql-view-bar-row > span { white-space: normal; overflow: visible; }
.ql-view-mark { appearance: none; margin: 0; border-left: 0; border-bottom: 0; border-radius: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ql-view-mark[aria-pressed=true] { box-shadow: inset 0 0 0 2px #236b9b; }
.ql-view-mark:focus-visible { outline: 3px solid #236b9b; outline-offset: -3px; }
.ql-problems { margin-top: 14px; padding: 12px; border: 1px solid #9fb5c9; border-radius: 8px; background: #fff; }
.ql-problems h3, .ql-fuel-report h3 { margin: 0 0 7px; font-size: 15px; color: #17324d; }
.ql-problems > p, .ql-fuel-report > p { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: #506477; }
.ql-problems > div, .ql-recognition { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ql-problems h4 { margin: 0 0 6px; font-size: 13px; }
.ql-problems ol { margin: 0; padding-left: 20px; }
.ql-problems li { padding: 4px 0; font-size: 13px; }
.ql-problems li span { display: block; margin-top: 3px; font-size: 12px; color: #506477; }
.ql-problems article p { font-size: 12px; }
.ql-detail-modal > .ql-problems { flex: 0 0 auto; width: 100%; margin: 16px 0 12px; padding: 0 0 12px; overflow: hidden; border: 2px solid #111; color: #111; }
.ql-detail-modal > .ql-problems > h3 { margin: 0; padding: 12px; border-bottom: 2px solid #111; background: #dceaf5; color: #111; text-align: center; font-size: 17px; }
.ql-detail-modal > .ql-problems > p { margin: 0; padding: 10px 16px; color: #111; text-align: center; }
.ql-detail-modal > .ql-problems > div { gap: 12px; padding: 0 16px; }
.ql-detail-modal > .ql-problems article { min-width: 0; overflow: hidden; border: 1px solid #111; background: #fff; text-align: left; }
.ql-detail-modal > .ql-problems h4 { margin: 0; padding: 9px 12px; border: 0; border-bottom: 1px solid #111; background: #e9f1f8; color: #111; text-align: center; }
.ql-detail-modal > .ql-problems ol { margin: 0; padding: 0; list-style: none; }
.ql-detail-modal > .ql-problems li { color: #111; }
.ql-detail-modal > .ql-problems li + li { border-top: 1px solid #dbe4ed; }
.ql-detail-modal > .ql-problems .ql-problem-row, .ql-detail-modal > .ql-problems .ql-problem-sm > button { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; color: #111; font: inherit; }
.ql-detail-modal > .ql-problems .ql-problem-row { box-sizing: border-box; }
.ql-detail-modal > .ql-problems .ql-problem-sm { padding: 0; }
.ql-detail-modal > .ql-problems .ql-problem-sm > button { border: 0; background: #fff; text-align: left; cursor: pointer; transition: background-color 150ms ease, box-shadow 150ms ease; }
.ql-detail-modal > .ql-problems .ql-problem-rank { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #111; border-radius: 50%; background: #e9f1f8; color: #111; font-size: 12px; font-weight: 900; }
.ql-detail-modal > .ql-problems .ql-problem-copy, .ql-detail-modal > .ql-problems .ql-problem-row > div { min-width: 0; }
.ql-detail-modal > .ql-problems .ql-problem-copy b, .ql-detail-modal > .ql-problems .ql-problem-row b { display: block; color: #111; font-size: 14px; }
.ql-detail-modal > .ql-problems .ql-problem-copy small, .ql-detail-modal > .ql-problems .ql-problem-row small { display: block; margin-top: 3px; color: #263746; font-size: 12px; line-height: 1.35; }
.ql-detail-modal > .ql-problems .ql-problem-open { padding: 6px 8px; border: 1px solid #111; background: #17324d; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ql-detail-modal > .ql-problems .ql-problem-sm > button:focus-visible { outline: 3px solid #17324d; outline-offset: -3px; }
.ql-modal.ql-focus-modal { width: min(1220px, 95vw); max-height: min(760px, 90vh); padding: 16px; border: 2px solid #111; background: #f8fafc; color: #111; box-shadow: 0 24px 70px rgba(20,35,52,.3); }
@media (min-width: 861px) and (pointer: fine) { .ql-modal.ql-focus-modal { zoom: .68; width: min(1640px, 140vw); max-width: 140vw; max-height: 135dvh; } }
.ql-focus-modal > header { padding-bottom: 12px; border-bottom: 2px solid #111; }
.ql-focus-modal h2 { color: #111; }
.ql-focus-modal header p, .ql-focus-intro, .ql-focus-note { color: #263746; }
.ql-focus-modal > header button { border: 1px solid #111; color: #111; }
.ql-focus-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ql-focus-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 11px; border: 1px solid #17324d !important; border-radius: 6px; background: #fff; color: #17324d !important; font: 800 12px var(--sans); line-height: 1; white-space: nowrap; cursor: pointer; }
.ql-focus-modal > header .ql-focus-back { flex: 0 0 auto; width: auto; height: 32px; padding: 6px 11px; font-size: 12px; }
.ql-focus-back span { font-size: 16px; line-height: 1; }
.ql-focus-back:hover { background: #17324d; color: #fff !important; }
.ql-case-detail-link { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.ql-case-detail-link:focus-visible, .ql-focus-back:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.ql-case-modal { z-index: 4; }
.ql-case-modal .ql-case-risk-bad { color: #b42318; font-weight: 900; }
.ql-case-modal .ql-case-risk-warn { color: #b54708; font-weight: 900; }
.ql-case-modal .ql-case-risk-good { color: #067647; font-weight: 900; }
.ql-focus-intro { margin: 12px 0 8px; font-size: 13px; font-weight: 650; }
.ql-focus-filters { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 10px; }
.ql-focus-filters label { display: grid; gap: 4px; color: #111; font-size: 11px; font-weight: 850; }
.ql-focus-filters select { min-width: 170px; min-height: 34px; padding: 5px 28px 5px 9px; border: 1px solid #111; border-radius: 4px; background: #fff; color: #111; font: 750 13px var(--sans); }
.ql-focus-modal-table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; border: 2px solid #111; background: #fff; }
.ql-focus-modal-table-wrap table { width: 100%; min-width: 900px; border-collapse: collapse; color: #111; font-size: 13px; font-variant-numeric: tabular-nums; }
.ql-focus-modal-table-wrap th, .ql-focus-modal-table-wrap td { padding: 9px 10px; border-right: 1px solid #111; border-bottom: 1px solid #111; font-weight: 650; text-align: center; vertical-align: middle; }
.ql-focus-modal-table-wrap th { position: sticky; top: 0; z-index: 1; background: #dceaf5; color: #111; font-size: 12px; font-weight: 900; }
.ql-focus-modal-table-wrap th:nth-child(1), .ql-focus-modal-table-wrap th:nth-child(4), .ql-focus-modal-table-wrap th:nth-child(5), .ql-focus-modal-table-wrap td:nth-child(1), .ql-focus-modal-table-wrap td:nth-child(4), .ql-focus-modal-table-wrap td:nth-child(5) { text-align: left; }
.ql-focus-modal-table-wrap th:last-child, .ql-focus-modal-table-wrap td:last-child { border-right: 0; }
.ql-focus-modal-table-wrap td.bad { color: var(--ql-bad); background: var(--ql-bad-bg); font-weight: 850; }
.ql-focus-modal-table-wrap td.warn { color: var(--ql-warn); background: var(--ql-warn-bg); font-weight: 850; }
.ql-focus-modal-table-wrap td.good { color: var(--ql-good); background: var(--ql-good-bg); font-weight: 850; }
.ql-focus-modal-table-wrap .ql-mis-disb-link { padding: 0; border: 0; background: transparent; color: #17324d; font: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ql-focus-modal-table-wrap .ql-mis-disb-link:focus-visible { outline: 2px solid #17324d; outline-offset: 3px; }
.ql-focus-modal-table-wrap .ql-modal-summary td { color: #111; font-weight: 900; }
.ql-focus-modal-table-wrap .ql-modal-zone-ka1 td { background: #ffe08a; border-top: 2px solid #b45309; }
.ql-focus-modal-table-wrap .ql-modal-zone-ka2 td { background: #fed0a0; border-top: 2px solid #c2410c; }
.ql-focus-modal-table-wrap .ql-modal-karnataka td { background: #f6b36d; border-top: 2px solid #9a3412; }
.ql-focus-modal-table-wrap .ql-modal-zone-ap-tg td { background: #99eee0; border-top: 2px solid #0f766e; }
.ql-focus-modal-table-wrap .ql-modal-zone-tn td { background: #cfe3ff; border-top: 2px solid #2563eb; }
.ql-focus-modal-table-wrap .ql-modal-zone-kl td { background: #d7c8ff; border-top: 2px solid #6d28d9; }
.ql-focus-modal-table-wrap .ql-modal-total td { background: #fff09a; border-top: 2px solid #854d0e; }
.ql-focus-modal-table-wrap .ql-focus-group-zone td { padding: 8px 10px; border-top: 2px solid #111; background: #17324d; color: #fff; font-size: 12px; font-weight: 900; text-align: left; }
.ql-focus-modal-table-wrap .ql-focus-group-sm td { padding: 7px 10px; background: #e9f1f8; color: #111; font-size: 12px; font-weight: 850; text-align: left; }
.ql-focus-note { margin: 9px 0 0; font-size: 12px; font-weight: 650; }
.ql-case-parameter-summary { margin: 10px 0; padding: 10px; border: 1px solid #d7b798; border-radius: 7px; background: #fff; }
.ql-case-parameter-summary h3 { margin: 0; color: #17324d; font-size: 14px; }
.ql-case-parameter-summary > p { margin: 3px 0 8px; color: #506477; font-size: 11px; font-weight: 650; }
.ql-case-parameter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; }
.ql-case-parameter { padding: 8px; border: 1px solid #f0b8b0; border-radius: 6px; background: #fff5f3; }
.ql-case-parameter strong, .ql-case-parameter b, .ql-case-parameter small, .ql-case-parameter em { display: block; }
.ql-case-parameter strong { color: #7a271a; font-size: 11px; }
.ql-case-parameter b { margin-top: 3px; color: #b42318; font-size: 17px; }
.ql-case-parameter small { margin-top: 2px; color: #6b4d43; font-size: 10px; font-weight: 700; }
.ql-case-parameter em { margin-top: 4px; color: #b42318; font-size: 10px; font-style: normal; font-weight: 850; }
.ql-fuel-report { padding: 12px; margin: 12px 0; border: 1px solid #17324d; border-radius: 8px; background: #fff; }
.ql-fuel-report .ql-table { min-width: 530px; }
.ql-fuel-report .ql-table th, .ql-fuel-report .ql-table td { text-align: center; padding: 8px; }
.ql-fuel-case-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 900; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.ql-fuel-case-link:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.ql-check-overview { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
.ql-check-overview button { position: relative; display: grid; align-content: center; justify-items: center; gap: 5px; min-height: 100px; padding: 10px 8px; border: 1px solid #9fb5c9; border-radius: 6px; background: #fff; color: #17324d; text-align: center; cursor: pointer; }
.ql-check-title { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ql-check-title i { display: inline-grid; width: 17px; height: 17px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 850 11px/1 var(--sans); }
.ql-check-overview b { font-size: 12px; }
.ql-check-overview strong { font-size: 20px; }
.ql-check-overview small { font-size: 12px; line-height: 1.5; }
.ql-check-tip { position: absolute; top: calc(100% + 7px); left: 0; z-index: 10; display: grid; gap: 5px; width: min(280px,calc(100vw - 64px)); padding: 10px 12px; border: 1px solid #17324d; border-radius: 6px; background: #17324d; color: #fff; box-shadow: 0 10px 24px rgba(23,50,77,.22); font-size: 12px; font-weight: 650; line-height: 1.35; text-align: left; opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none; transition: opacity 140ms ease, transform 140ms var(--ql-motion), visibility 140ms ease; }
.ql-check-tip-title { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.28); font-size: 12px; font-weight: 850; }
.ql-check-tip > span:not(.ql-check-tip-title) { display: flex; justify-content: space-between; gap: 12px; }
.ql-check-tip b { font-weight: 800; }
.ql-check-tip em { font-style: normal; text-align: right; }
.ql-check-tip small { padding-top: 4px; border-top: 1px solid rgba(255,255,255,.2); color: #dceaf6; font-size: 11px; font-weight: 650; line-height: 1.35; }
.ql-check-overview button:nth-child(5n) .ql-check-tip { right: 0; left: auto; }
.ql-check-overview button:hover .ql-check-tip, .ql-check-overview button:focus-visible .ql-check-tip { opacity: 1; visibility: visible; transform: translateY(0); }
.ql-modal-table-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 6px; }
.ql-modal-table-head p { margin: 0; color: #506477; font-size: 12px; font-weight: 750; }
.ql-watchlist .ql-table small { display: block; margin-top: 5px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.ql-watchlist .ql-table td:nth-child(2) { text-align: left; white-space: normal; min-width: 140px; }
.ql-recognition { margin: 12px 0; }
.ql-recognition article { padding: 12px; border: 1px solid #17324d; border-radius: 8px; background: #f6faf8; }
.ql-recognition h3 { font-size: 15px; margin: 0 0 8px; color: #245e47; }
.ql-recognition p { font-size: 13px; line-height: 1.8; margin: 0 0 7px; }
.ql-recognition small { font-size: 12px; color: #506477; }
.ql-fuel-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.ql-fuel-choices button { display: grid; gap: 8px; padding: 16px; border: 1px solid #17324d; border-radius: 8px; background: #fff; color: #17324d; text-align: left; font: 600 13px var(--sans); cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ql-motion); }
.ql-fuel-choices button > b { font-size: 19px; }
.ql-fuel-choices button strong { font-size: 15px; }
.ql-fuel-choices button small { color: #506477; font-size: 12px; }
.ql-fuel-choices button.bad strong { color: #a92f32; }
.ql-fuel-choices button[aria-expanded=true] { background: #e9f1f8; border-width: 2px; padding: 15px; }
.ql-fuel-choices button:focus-visible { outline: 3px solid #236b9b; outline-offset: 2px; }
.ql-fuel-content { margin-top: 16px; padding-top: 12px; border-top: 1px solid #9fb5c9; }
.ql-fuel-content h3 { margin: 0 0 12px; font-size: 16px; }
.ql-team-focus { display: grid; grid-template-columns: minmax(320px,1.35fr) minmax(0,1fr); gap: 16px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #9fb5c9; border-radius: 8px; background: #f4f7fa; color: #17324d; }
.ql-team-focus-lead { padding-right: 16px; border-right: 1px solid #c8d5df; }
.ql-team-focus h4 { margin: 0 0 5px; font-size: 16px; line-height: 1.35; }
.ql-team-focus h4 .ql-team-drill { font-size: inherit; }
.ql-team-focus p { max-width: 70ch; margin: 0; color: #465d72; font-size: 12px; font-weight: 650; line-height: 1.55; }
.ql-team-focus dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; }
.ql-team-focus dl div { align-content: center; min-width: 0; }
.ql-team-focus dt { color: #607184; font-size: 10px; font-weight: 750; line-height: 1.35; }
.ql-team-focus dd { margin: 4px 0 0; color: #17324d; font-size: 16px; font-weight: 850; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ql-team-focus-clean { border-color: #a6c8b5; background: #f2f8f5; }
.ql-fuel-content .ql-table { min-width: 760px; }
.ql-fuel-content .ql-table th, .ql-fuel-content .ql-table td { border: 1px solid #171717; padding: 10px; }
.ql-fuel-content .ql-table td:nth-child(n+2):nth-child(-n+5) { text-align: center; }
.ql-fuel-content .ql-table td:last-child { text-align: left; white-space: normal; }
.ql-focus-strip { margin: 12px 0; border-color: #9fb5c9; background: #eef3f7; }
.ql-focus-strip > h3 { margin-bottom: 0; color: #17324d; font-size: 18px; font-weight: 850; }
.ql-focus-strip > div { gap: 10px; margin-top: 10px; }
.ql-focus-strip article { min-width: 0; padding: 12px 14px; border: 1px solid #b7c8d8; border-radius: 7px; background: #fff; transition: transform 160ms var(--ql-motion), border-color 160ms ease, background-color 160ms ease; }
.ql-focus-strip article:first-child { border-color: #cdaeb5; background: #fff8f8; }
.ql-focus-strip article:last-child { border-color: #9dbdb4; background: #f5fbf8; }
.ql-focus-strip ol { padding-left: 0; list-style: none; }
.ql-focus-strip h4 { font-weight: 800; color: #506477; font-size: 12px; }
.ql-focus-strip article:first-child h4 { color: #70434d; }
.ql-focus-strip article:last-child h4 { color: #246052; }
.ql-focus-strip li b { display: block; color: #17324d; font-size: 20px; font-weight: 850; line-height: 1.2; }
.ql-focus-strip li span { font-weight: 650; }
.ql-page .ql-watchlist .ql-table :is(th,td):first-child { width: 16%; min-width: 180px; text-align: center; }
.ql-page .ql-watchlist .ql-table :is(th,td):nth-child(2) { width: 12%; min-width: 135px; text-align: center; }
.ql-page .ql-watchlist .ql-table :is(th,td):nth-child(3) { width: 9%; min-width: 86px; text-align: center; }
.ql-page .ql-watchlist .ql-table :is(th,td):nth-child(4) { width: 25%; min-width: 230px; }
.ql-page .ql-watchlist .ql-table :is(th,td):nth-child(5) { width: 31%; min-width: 230px; }
.ql-page .ql-watchlist .ql-table td:nth-child(4), .ql-page .ql-watchlist .ql-table td:nth-child(5) { text-align: left; }
.ql-page .ql-watchlist .ql-table :is(th,td):last-child { width: 7%; min-width: 80px; }
.ql-fuel-team-table { min-width: 1160px !important; }
.ql-fuel-content .ql-fuel-team-table td:nth-child(n+2):nth-child(-n+7) { text-align: center; }
.ql-fuel-content .ql-fuel-team-table td:first-child, .ql-fuel-content .ql-fuel-team-table td:last-child { text-align: left; }
.ql-fuel-team-table td:nth-child(3) b, .ql-fuel-team-table td:nth-child(5) b { display: block; color: #17324d; font-size: 14px; font-variant-numeric: tabular-nums; }
.ql-fuel-team-table td:nth-child(4) small { color: #506477; }
.ql-fuel-content .ql-table td small { display: block; margin-top: 3px; }
.ql-team-drill { appearance: none; padding: 0; border: 0; background: transparent; color: #17324d; font: 800 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ql-team-drill::after { content: "  ›"; text-decoration: none; }
.ql-team-drill:focus-visible { outline: 3px solid #236b9b; outline-offset: 3px; }
.ql-fix-list { padding: 0; margin: 0; list-style: none; font-size: 13px; font-weight: 500; line-height: 1.5; }
.ql-fix-list li + li { margin-top: 9px; padding-top: 8px; border-top: 1px solid #e0e4e8; }
.ql-watchlist .ql-fix-list small { margin-top: 2px; }
.ql-priority-label { padding: 4px 6px; border: 1px solid currentColor; border-radius: 4px; }
.ql-priority-label.bad { color: #a92f32; background: #fff5f4; }
.ql-priority-label.good { color: #245e47; background: #f2faf6; }
.ql-priority-label.neutral { color: #506477; }
.ql-report > .ql-section-head { background: #e8eff6; border-color: #9fb5c9; }
.ql-report > .ql-section-head h2 { color: #17324d; }
.ql-trends > .ql-section-head { background: #17324d; border-color: #17324d; }
.ql-history > .ql-section-head { background: #195e61; border-color: #195e61; }
.ql-watchlist > .ql-section-head { background: #70434d; border-color: #70434d; }
.ql-brands > .ql-section-head { background: #4b4973; border-color: #4b4973; }
.ql-page :is(.ql-trends,.ql-history,.ql-watchlist,.ql-brands) > .ql-section-head :is(h2,.ql-filter) { color: #fff; }
.ql-page :is(.ql-trends,.ql-history,.ql-watchlist,.ql-brands) > .ql-section-head .card-sub { color: #edf3f8; }
.ql-page :is(.ql-trends,.ql-history,.ql-watchlist,.ql-brands) > .ql-section-head select { color: #17324d; background: #fff; border-color: #c0ccd6; }
.ql-history .ql-table thead th { color: #fff; }
.ql-history .ql-table thead th:nth-child(1) { background: #183550; }
.ql-history .ql-table thead th:nth-child(2) { background: #244b71; }
.ql-history .ql-table thead th:nth-child(3) { background: #544573; }
.ql-history .ql-table thead th:nth-child(4) { background: #236257; }
.ql-history .ql-table thead th:nth-child(5) { background: #44546d; }
.ql-history .ql-table thead th:nth-child(6) { background: #7b4c18; }
.ql-history .ql-table thead th:nth-child(7) { background: #36434f; }
.ql-mom { display: flex; justify-content: center; align-items: center; gap: 3px; margin-top: 6px; font-size: 11px; font-weight: 650; line-height: 1.3; }
.ql-mom svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ql-mom.good { color: #245e47; }
.ql-mom.bad { color: #a92f32; }
.ql-mom.neutral { color: #506477; }
@media (hover: hover) and (pointer: fine) {
  .ql-chart-point:hover .ql-chart-bar { filter: drop-shadow(0 2px 5px rgba(35,107,155,.45)); }
  .ql-bar-chart:hover .ql-chart-target { filter: drop-shadow(0 1px 4px rgba(35,107,155,.5)); }
  .ql-chart-reset:hover { background: #e9f1f8; }
  .ql-fuel-choices button:hover { background: #e9f1f8; transform: translateY(-1px); }
  .ql-focus-strip article:hover { transform: translateY(-2px); border-color: #6888a3; }
  .ql-team-drill:hover { color: #236b9b; }
  .ql-check-overview button:hover { background: #e9f1f8; border-color: #17324d; }
}
@media (min-width: 861px) and (pointer: fine) {
  .ql-modal.ql-detail-modal { zoom: .84; width: min(1420px,112vw); max-width: 112vw; max-height: 106dvh; }
}
@media (max-width: 860px) {
  .ql-problems > div, .ql-recognition { grid-template-columns: minmax(0,1fr); }
  .ql-fuel-choices { grid-template-columns: minmax(0,1fr); }
  .ql-team-focus { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ql-team-focus-lead { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #c8d5df; }
  .ql-check-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ql-check-overview button:nth-child(even) .ql-check-tip { right: 0; left: auto; }
  .ql-check-overview button:nth-child(odd) .ql-check-tip { right: auto; left: 0; }
  .ql-modal-table-head { align-items: stretch; flex-direction: column; }
  .ql-view-controls { align-items: stretch; }
  .ql-range-controls { width: 100%; }
  .ql-range-controls .ql-filter { flex: 1; min-width: 120px; }
  .ql-action-controls, .ql-fuel-controls { width: 100%; justify-content: stretch; }
  .ql-action-controls .ql-filter, .ql-fuel-controls .ql-filter { flex: 1 1 145px; }
  .ql-action-controls select, .ql-fuel-controls select { width: 100%; min-height: 44px; }
  .ql-range-controls select, .ql-view-controls select { width: 100%; min-height: 44px; }
  .ql-chart-reset { min-height: 44px; }
  .ql-modal.ql-view-modal { max-height: calc(100dvh - 24px); }
  .ql-view-bar-row { grid-template-columns: minmax(90px,1fr) minmax(60px,1fr) 72px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { .ql-chart-bar, .ql-chart-target, .ql-chart-reset, .ql-fuel-choices button, .ql-focus-strip article, .ql-check-tip { transition: none; } .ql-page .ql-chart-bar, .ql-page .ql-chart-target { filter: none !important; } .ql-fuel-choices button:hover, .ql-focus-strip article:hover { transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .ql-page .ql-kpi-clickable:hover { background: #f7e8dc; }
  .ql-page .ql-kpi-score:hover { background: #234b6d; }
  .ql-kpi-clickable:hover .ql-kpi-link { text-decoration: underline; text-underline-offset: 3px; }
  .ql-category-list > button:hover, .ql-trend-row:hover { background: #f7e8dc; }
  .ql-detail-side nav button:hover { border-color: #8fb2ce; }
  .ql-detail-tabs button:not([aria-pressed=true]):hover { background: #e7f1fa; }
}
@media (max-width: 860px), (pointer: coarse) {
  .quality-mode a.skip { display: inline-flex; align-items: center; min-height: 44px; }
  .ql-report .ql-drill { min-height: 44px; }
  .ql-page .ql-help { width: 44px; height: 44px; top: -7px; }
  .ql-page .ql-help::after { inset: 0; }
  .ql-page .ql-kpi-head { min-height: 38px; }
  .ql-page .ql-kpi-head h3 { padding-right: 48px; }
  .ql-modal.ql-detail-modal { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); padding: 12px; }
  .ql-detail-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ql-detail-side { padding: 12px; }
  .ql-detail-side > strong { margin-top: 6px; font-size: 25px; }
  .ql-detail-side nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
  .ql-detail-side nav button, .ql-detail-tabs button, .ql-trend-row { min-height: 44px; }
  .ql-detail-modal .ql-modal-insights { grid-template-columns: minmax(0,1fr); }
  .ql-detail-modal .ql-modal-table-wrap { max-height: 340px; }
  .ql-category-list > button { grid-template-columns: minmax(100px,1fr) 80px minmax(90px,1fr); gap: 8px; }
  .ql-category-action { display: none; }
  .ql-insight-summary { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .ql-trend-row { grid-template-columns: 78px minmax(20px,1fr) 82px; gap: 8px; padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .ql-page .ql-kpi, .ql-detail-tabs button, .ql-category-list button, .ql-trend-row { transition: none; }
  .ql-page .ql-kpi:active, .ql-view:active, .ql-detail-tabs button:active { transform: none; }
}

/* 22-10-2026: "Mail vs tables" note (reconcile_note.py). On the Classic MIS page it sits under the filters; on the other pages in the footer. */
.recon-note { flex-basis: 100%; margin: 10px 0 0; padding: 8px 12px; border: 1px solid #e6c98a; border-radius: 10px; background: #fff8e6; color: #4b3a12; font-size: 12.5px; line-height: 1.5; text-align: left; }
.recon-note summary { cursor: pointer; font-weight: 600; }
.recon-note p { margin: 8px 0; }
.recon-scroll { overflow-x: auto; }
.recon-note table { border-collapse: collapse; width: 100%; }
@media (max-width: 600px) { .recon-note { font-size: 12px; } .recon-note th, .recon-note td { padding: 4px 5px; } }
.recon-note th, .recon-note td { padding: 5px 8px; border: 1px solid #ead9ad; text-align: left; vertical-align: top; }
.recon-note th { background: #f6e7b8; }
.classic-page .recon-note { margin: 0 0 14px; }
.classic-mode .foot .recon-note { display: none; }

/* Sales team drawer: Find bar, Executive list, "only this executive / whole team" (Anmol, 22-10-2026) */
.team-find { position: relative; display: grid; gap: 4px; }
.team-find label { display: grid; gap: 4px; }
.team-find input { width: 100%; padding: 8px 10px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; color: #17324e; font: inherit; font-size: 13px; font-weight: 700; }
.team-find input:focus { outline: 3px solid #f59e0b; outline-offset: 1px; }
.team-find-list { margin: 0; padding: 4px; list-style: none; max-height: min(46vh, 360px); overflow-y: auto; border: 1.5px solid #111827; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .45); overscroll-behavior: contain; }
.team-find-list[hidden] { display: none; }
.team-find-head { padding: 6px 8px 2px; color: #4338ca; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.team-find-none { padding: 8px; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.4; }
.team-find-list li[aria-selected="true"] button, .team-find-list button:hover { background: #eef2ff; }
.team-find-list button { display: grid; gap: 1px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #0f172a; font: inherit; text-align: left; cursor: pointer; }
.team-find-list button strong { font-size: 13px; font-weight: 800; }
.team-find-list button small { color: #475569; font-size: 11.5px; font-weight: 600; }
.team-exec-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.team-exec-mode button { padding: 7px 6px; border: 1.5px solid #111827; border-radius: 8px; background: #fff; color: #17324e; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.team-exec-mode button.on { background: #4338ca; border-color: #4338ca; color: #fff; }
.team-exec-mode[hidden], .team-find[hidden], .team-drawer label[hidden] { display: none !important; }
.legacy-mis-table tr.legacy-mis-pick td { background: #fff3b0 !important; font-weight: 800; box-shadow: inset 0 2px 0 #f59e0b, inset 0 -2px 0 #f59e0b; }
@media (max-width: 860px), (pointer: coarse) {
  .team-find input, .team-exec-mode button { min-height: 44px; font-size: 16px; }
  .team-find-list button { min-height: 44px; }
}
/* 22-10-2026 (Anmol): the report Note popup is zoomed out too */
.mis-note-card:not(.mis-ins-card):not(.mis-ans-card):not(.mis-dq-card) { zoom: .65; width: min(760px, calc(94vw / .65)); max-height: calc(86vh / .65); }
@media (max-width: 760px) { .mis-note-card:not(.mis-ins-card):not(.mis-ans-card):not(.mis-dq-card) { zoom: 1; width: min(760px, 94vw); max-height: 86vh; } }
/* Copy list + Export to Excel side by side in the names card (Anmol, 22-10-2026) */
.dq-acts { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.dq-acts .dq-copy { margin-left: 0; }
.classic-mode .legacy-mis-actions { flex-wrap: wrap; justify-content: flex-end; }

/* Sourcing Point MIS header colours, 22-10-2026: FTD blue / MTD purple, Active green / Live orange / Dead red (as in the legend), info and counter columns their own colours */
.spcc-mis2-table thead th.mh-sm { background: #44546a; color: #fff; }
.spcc-mis2-table thead th.mh-cnt { background: #1f7a7a; color: #fff; }
.spcc-mis2-table thead th.mh-ftd { background: #1f4e9c; color: #fff; }
.spcc-mis2-table thead th.mh-mtd { background: #6b2d9e; color: #fff; }
.spcc-mis2-table thead th.mh-active { background: #2e9b4e; color: #fff; }
.spcc-mis2-table thead th.mh-live { background: #e8710a; color: #fff; }
.spcc-mis2-table thead th.mh-dead { background: #c62828; color: #fff; }
.spcc-mis2-table thead th.mh-sub-ftd { background: #cfe2f7; color: #0b2a57; }
.spcc-mis2-table thead th.mh-sub-mtd { background: #e6d5f5; color: #3b1260; }
/* Copy list / Export to Excel bar above every table (table-export.js, Anmol 22-10-2026) */
.mp-tbl-tools { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; padding: 0; }
.mp-tbl-tools[hidden] { display: none; }
.mp-tbl-tools--in { position: sticky; left: 0; padding: 2px 8px 6px 0; }
.mp-tbl-btn { padding: 4px 11px; border: 1.5px solid var(--ink, #0f1f3d); border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #0f1f3d); font: inherit; font-size: 11.5px; font-weight: 800; line-height: 1.25; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, transform 160ms ease; }
.mp-tbl-btn[hidden] { display: none; }
.mp-tbl-btn:hover { background: #ffe9a8; }
.mp-tbl-btn:active { transform: scale(.96); }
.mp-tbl-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (pointer: coarse), (max-width: 860px) { .mp-tbl-btn { min-height: 40px; padding: 6px 14px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .mp-tbl-btn { transition: none; } }
@media print { .mp-tbl-tools { display: none !important; } }

/* Details cards opened by a click on a number inside a popup (target.js misTipCardHtml), 22-10-2026 */
.mis-tipcard-overlay { position: fixed; inset: 0; z-index: 130050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .5); }
.mis-tipcard { display: flex; flex-direction: column; width: min(900px, 96vw); max-height: 86vh; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .6); overflow: hidden; }
.mis-tipcard header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.mis-tipcard h3 { margin: 0; font-size: 15px; font-weight: 800; color: #0f172a; }
.mis-tipcard-x { min-width: 36px; min-height: 36px; border: 1px solid #111827; border-radius: 10px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.mis-tipcard-body { padding: 12px 16px 16px; overflow: auto; font-size: 13px; color: #1e293b; }
.mis-tipcard-body p { margin: 0 0 8px; line-height: 1.5; }
.mis-tipcard-scroll { overflow: auto; }
.mis-tipcard .dq-table td, .mis-tipcard .dq-table th { text-align: left; white-space: nowrap; }
.mis-note-overlay .tip-n[data-src], .mis-note-overlay td.dq-n[data-src] { cursor: pointer; }
.mis-note-overlay .tip-n[data-src] { border-bottom: 1px dotted #475569; }

.mis-tipcard-list { margin: 0; padding-left: 22px; }
.mis-tipcard-list li { margin: 0 0 5px; line-height: 1.45; }
.mis-tipcard-note { color: #64748b; font-style: italic; }
[data-cardtip] { cursor: pointer; text-decoration: underline dotted #64748b; text-underline-offset: 3px; }

/* Business answers / Insights popups, 22-10-2026 (Anmol: bigger box, 3 boxes per row using the side space, bigger coloured headers) */
.mis-ins-card, .mis-ans-card { width: min(1900px, calc(96vw / .55)); }
.ans-list { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.ins-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.ans-item h3, .ins-item h3 { margin: 0 0 6px; padding: 8px 12px; border-radius: 9px; background: color-mix(in srgb, var(--t, #6d28d9) 16%, #ffffff); font-size: 17px; font-weight: 900; color: #0f172a; }
.ins-item header, .ins-item .ins-head { padding: 8px 12px; border-radius: 9px; background: color-mix(in srgb, var(--t, #6d28d9) 16%, #ffffff); }
.ins-item header h3 { margin: 0; padding: 0; background: none; font-size: 17px; }
@media (max-width: 1100px) { .ans-list, .ins-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mis-ins-card, .mis-ans-card { width: 100%; } .ans-list, .ins-cards { grid-template-columns: 1fr; } }
.ins-wrap { max-width: none; }
.ins-cards-h { grid-column: 1 / -1; }

/* trend ranking card: the name and the badge must not overlap (22-10-2026) */
.spcc-trend .spcc-trend-insight-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.spcc-trend .spcc-trend-insight-head b { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.spcc-trend .spcc-trend-insight-head em { position: static; flex: 0 1 auto; margin-left: 0; white-space: normal; }

/* Numbers drawer (metric-drawer.js), 22-10-2026: a second tab under the Sales team tab */
.metric-edge { top: calc(50% + 110px); }
.metric-choice { display: grid; gap: 8px; }
.metric-choice button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1.5px solid #111827; border-radius: 10px; background: #fff; color: #0f172a; text-align: left; cursor: pointer; }
.metric-choice button b { font-size: 14px; font-weight: 850; }
.metric-choice button small { font-size: 12px; font-weight: 600; color: #475569; }
.metric-choice button.on { background: #0b2e59; color: #fff; }
.metric-choice button.on small { color: #cbd5e1; }
@media (max-width: 600px) { .shell .metric-edge, .metric-edge { top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 54px); } }

/* Numbers filter in the top bar, middle (metric-drawer.js), 22-10-2026; replaces the right-side tab */
.metric-bar { display: inline-flex; margin: 0 auto; padding: 3px; border: 2px solid #111827; border-radius: 999px; background: #fff; gap: 2px; }
.metric-bar button { padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: #0f172a; font: 800 14px var(--sans, system-ui); cursor: pointer; white-space: nowrap; }
.metric-bar button.on { background: #0e8a62; color: #fff; }
.metric-bar button:not(.on):hover { background: #eef2f7; }
@media (max-width: 760px) { .topbar-in { flex-wrap: wrap; gap: 8px; } .metric-bar { order: 3; flex: 1 1 100%; justify-content: center; margin: 0; } .metric-bar button { padding: 6px 10px; font-size: 12px; } }

/* Numbers: a tab at the top in the middle, a panel drops down like the Sales team drawer (metric-drawer.js), 22-10-2026; replaces the pill */
.metric-bar { display: none !important; }
.metric-top-tab { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1190; display: flex; align-items: center; gap: 8px; padding: 6px 16px 7px; border: 1.5px solid #111827; border-top: 0; border-radius: 0 0 14px 14px; background: #0b2e59; color: #fff; font: 800 13px var(--sans, system-ui); cursor: pointer; box-shadow: 0 6px 18px rgba(15, 23, 42, .24); }
.metric-top-tab b { padding: 2px 8px; border-radius: 999px; background: #0e8a62; font-size: 12px; }
.metric-drop { position: fixed; top: 0; left: 50%; z-index: 1195; width: min(560px, 94vw); padding: 16px 18px 14px; border: 1.5px solid #111827; border-top: 0; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #ffffff, #f5f7fb); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .5); transform: translate(-50%, -105%); transition: transform 260ms cubic-bezier(.32, .72, 0, 1); }
.metric-drop.is-open { transform: translate(-50%, 0); }
.metric-drop strong { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 900; color: #0f172a; }
.metric-drop .metric-choice { grid-template-columns: repeat(3, 1fr); }
.metric-now { margin: 10px 0 0; font-size: 12px; font-weight: 600; color: #475569; }
@media (prefers-reduced-motion: reduce) { .metric-drop { transition: none; } }
@media (max-width: 600px) { .metric-drop .metric-choice { grid-template-columns: 1fr; } }

/* Numbers panel: two choices, small and compact, 22-10-2026 */
.metric-top-tab { padding: 4px 12px 5px; font-size: 12px; gap: 6px; }
.metric-top-tab b { padding: 1px 7px; font-size: 11px; }
.metric-drop { width: auto; min-width: 0; padding: 8px 10px 8px; border-radius: 0 0 14px 14px; }
.metric-drop .metric-choice { display: flex; gap: 6px; }
.metric-drop:not(.is-open) { visibility: hidden; transition: transform 260ms cubic-bezier(.32, .72, 0, 1), visibility 0s 260ms; }
.metric-drop .metric-choice button { width: auto; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.metric-drop .metric-choice button b, .metric-drop .metric-choice button small { display: none; }
.metric-now { margin: 6px 0 0; font-size: 11px; max-width: 280px; }
@media (max-width: 600px) { .metric-drop .metric-choice { display: flex; } }
.metric-now { display: none; }

/* 23-10-2026 (Anmol): the Numbers (Disburse / Login) tab sits on the RIGHT SIDE edge of the screen (vertical, middle), small and compact; its panel is a small vertical list that opens to the left of the tab. */
.metric-top-tab { top: 50%; left: auto; right: 0; transform: translateY(-50%); flex-direction: column; gap: 5px; padding: 9px 4px; border: 1.5px solid #111827; border-right: 0; border-radius: 9px 0 0 9px; box-shadow: -4px 4px 12px rgba(15, 23, 42, .22); writing-mode: vertical-rl; font-size: 11px; }
.metric-top-tab span, .metric-top-tab b { transform: rotate(180deg); }
.metric-top-tab b { padding: 5px 1px; font-size: 10px; }
.metric-drop { top: 50%; left: auto; right: 26px; padding: 5px; border: 1.5px solid #111827; border-radius: 10px; transform: translate(calc(100% + 40px), -50%); }
.metric-drop.is-open { transform: translate(0, -50%); }
.metric-drop .metric-choice, .metric-drop .metric-choice button { width: 100%; }
.metric-drop .metric-choice { display: flex; flex-direction: column; gap: 4px; }
.metric-drop .metric-choice button { padding: 5px 14px; font-size: 12px; text-align: center; }
/* 30-10-2026 phones: the side tab used to cover the right 28px of every card ("per day" cut, the (i) buttons hidden). Now it is a slim handle with only the active choice; the panel still opens to its left. */
@media (max-width: 600px) {
  .metric-top-tab { min-width: 30px; justify-content: center; padding: 8px 2px; gap: 0; }
  .metric-top-tab > span { display: none; }
  .metric-top-tab b { padding: 8px 2px; font-size: 10px; }
  .metric-drop { right: 22px; }
}


/* 23-10-2026 (Anmol): "Numbers: Disburse / Login" pill in the Sourcing title line; same size in both modes so the page never moves. */
.spcc-mode-pill { display: inline-block; margin-left: 10px; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.5; vertical-align: middle; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); color: #fff; cursor: help; white-space: nowrap; }
.spcc-mode-pill.is-login { background: #fde68a; border-color: #fde68a; color: #422006; }

/* 23-10-2026 (Anmol): search box in the Action Report filter row: type a point name or Point ID, pick a suggestion. */
.sourcing-mode .spcc-action-search { display: block; margin-left: 6px; }
.sourcing-mode .spcc-action-search input { height: 34px; width: 260px; padding: 0 10px; border: 2px solid #334155; border-radius: 8px; background: #fff; color: var(--ar-ink); font: 700 13px var(--sans); }
.sourcing-mode .spcc-action-search.on input { border-color: var(--ar-brand); box-shadow: inset 0 0 0 1px var(--ar-brand); }

/* 23-10-2026 (Anmol): "Last 3 months" bars fill like water, from empty to full, with a soft moving surface. */
@keyframes spBarFill { from { height: 0; } }
@keyframes spBarWave { from { background-position: 0 0; } to { background-position: 24px 0; } }
.sourcing-mode .spcc-action-trend .bar i { position: relative; overflow: hidden; animation: spBarFill 1.1s cubic-bezier(.22, .8, .3, 1) both; }
.sourcing-mode .spcc-action-trend > span:nth-child(2) .bar i { animation-delay: .15s; }
.sourcing-mode .spcc-action-trend > span:nth-child(3) .bar i { animation-delay: .3s; }
.sourcing-mode .spcc-action-trend .bar i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: radial-gradient(circle at 6px 6px, rgba(255, 255, 255, .55) 5px, transparent 6px) 0 0 / 12px 6px repeat-x; animation: spBarWave 1.2s linear infinite; }
.sourcing-mode .spcc-action-trend .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%); }
@media (prefers-reduced-motion: reduce) { .sourcing-mode .spcc-action-trend .bar i, .sourcing-mode .spcc-action-trend .bar i::before { animation: none; } }

/* 23-10-2026 (Anmol): View card tiles open a list (point, status, executive, SM). */
.spcc-view-tile-click { cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.spcc-view-tile-click:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .16); }
.spcc-tile-hint { margin-top: 6px; color: #0f766e; font-size: 12px; font-weight: 800; }
.spcc-tile-pop { position: fixed; left: 50%; top: 50%; z-index: 400; box-sizing: border-box; width: min(1000px, 94vw); max-height: 82vh; display: flex; flex-direction: column; transform: translate(-50%, -50%); border: 2px solid #111827; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .4); overflow: hidden; }
.spcc-tile-pop-body { overflow: auto; padding: 0; }
.spcc-tile-table { width: 100%; border-collapse: collapse; font: 600 13px var(--sans, system-ui); color: #0f172a; }
.spcc-tile-table th { position: sticky; top: 0; padding: 8px 10px; background: #0f172a; color: #fff; text-align: left; font-weight: 800; white-space: nowrap; }
.spcc-tile-table td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; }
.spcc-tile-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.spcc-tile-table tbody tr:hover { background: #f1f5f9; }
.spcc-tile-st { display: inline-block; padding: 1px 9px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.spcc-tile-st-dead { background: #fee2e2; color: #991b1b; }
.spcc-tile-st-live { background: #ffedd5; color: #9a3412; }
.spcc-tile-st-active { background: #dcfce7; color: #166534; }
.spcc-tile-note { margin: 0; padding: 10px 14px; color: #475569; font-size: 12.5px; font-weight: 650; }

/* 23-10-2026 (Anmol): MIS-style lists are grouped State > SM, highest risk first. */
.spcc-tile-table tr.spcc-tile-state td { padding: 8px 10px; background: #00b0f0; color: #082f49; font-weight: 850; position: sticky; top: 33px; }
.spcc-tile-table tr.spcc-tile-sm td { padding: 6px 10px 6px 22px; background: #e0f2fe; color: #0c4a6e; font-weight: 800; }

/* 23-10-2026 (Anmol): only the SM band shows; click it to drop down its points. */
.spcc-tile-table tr.spcc-tile-state td { position: static; }
.spcc-tile-table tr.spcc-tile-sm { cursor: pointer; }
.spcc-tile-table tr.spcc-tile-sm td::before { content: "▸"; display: inline-block; width: 16px; transition: transform 150ms ease; }
.spcc-tile-table tr.spcc-tile-sm.open td::before { transform: rotate(90deg); }
.spcc-tile-table tr.spcc-tile-sm:hover td { background: #bae6fd; }
.spcc-tile-table tr.spcc-tile-r { display: none; }
.spcc-tile-table tr.spcc-tile-r.show { display: table-row; }

/* 23-10-2026 (Anmol): Priority support list: click the number to see the point names, one under the other. */
.spcc-tile-num { min-width: 34px; padding: 1px 10px; border: 2px solid #0f766e; border-radius: 999px; background: #f0fdfa; color: #0f766e; font: 850 13px var(--sans, system-ui); cursor: pointer; }
.spcc-tile-num:hover { background: #ccfbf1; }
.spcc-tile-table tr.spcc-tile-names { display: none; }
.spcc-tile-table tr.spcc-tile-names.pick { display: table-row; }
.spcc-tile-names td { padding: 4px 10px 8px 34px; background: #f8fafc; }
.spcc-tile-names ol { margin: 0; padding-left: 18px; }
.spcc-tile-names li { padding: 2px 0; font-weight: 650; }

/* 23-10-2026 (Anmol): every state has its own colour in the lists. */
.spcc-tile-table tr.spcc-tile-state.spcc-tile-c0 td { background: #cbd5e1; color: #0f172a; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c0 td { background: #f1f5f9; color: #0f172a; border-left: 6px solid #cbd5e1; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c0:hover td { background: #cbd5e1; }
.spcc-tile-table tr.spcc-tile-state.spcc-tile-c1 td { background: #38bdf8; color: #0f172a; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c1 td { background: #e0f2fe; color: #0f172a; border-left: 6px solid #38bdf8; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c1:hover td { background: #38bdf8; }
.spcc-tile-table tr.spcc-tile-state.spcc-tile-c2 td { background: #a78bfa; color: #0f172a; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c2 td { background: #ede9fe; color: #0f172a; border-left: 6px solid #a78bfa; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c2:hover td { background: #a78bfa; }
.spcc-tile-table tr.spcc-tile-state.spcc-tile-c3 td { background: #fbbf24; color: #0f172a; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c3 td { background: #fef3c7; color: #0f172a; border-left: 6px solid #fbbf24; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c3:hover td { background: #fbbf24; }
.spcc-tile-table tr.spcc-tile-state.spcc-tile-c4 td { background: #34d399; color: #0f172a; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c4 td { background: #d1fae5; color: #0f172a; border-left: 6px solid #34d399; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c4:hover td { background: #34d399; }
.spcc-tile-table tr.spcc-tile-state.spcc-tile-c5 td { background: #fb7185; color: #0f172a; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c5 td { background: #ffe4e6; color: #0f172a; border-left: 6px solid #fb7185; }
.spcc-tile-table tr.spcc-tile-sm.spcc-tile-c5:hover td { background: #fb7185; }

/* 23-10-2026 (Anmol): point names in the lists have a border; click one to show every point of the list in the Action Report. */
.spcc-tile-names ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.spcc-tile-names li { padding: 0; }
.spcc-tile-pt { display: block; padding: 6px 10px; border: 2px solid #94a3b8; border-radius: 8px; background: #fff; color: #0f172a; font-weight: 700; cursor: pointer; }
.spcc-tile-pt:hover { border-color: #0f766e; background: #f0fdfa; }

/* 23-10-2026 (Anmol: "make them like classic MIS"): the View-card lists use the classic MIS popup (dq-*); only the extras are here. */
.spcc-tile2 tr.dq-st th { background: color-mix(in srgb, var(--c) 30%, #fff); font-size: 14px; font-weight: 900; }
.spcc-tile2 tr.spcc-tile-sm { cursor: pointer; }
.spcc-tile2 tr.spcc-tile-sm th::before { content: "▾"; display: inline-block; width: 16px; }
.spcc-tile2 tr.spcc-tile-sm.shut th::before { content: "▸"; }
.spcc-tile2 tr.hide { display: none; }
.spcc-tile2 tr.spcc-tile-names:not(.pick) { display: none; }
.spcc-tile2 tr.spcc-tile-names td { background: #f8fafc; }
.spcc-tile2 td.num { text-align: center; }
.spcc-tile2 .spcc-tile-pt { display: inline-block; padding: 1px 8px; font-size: 13px; }
.spcc-tile2 tbody th[scope="row"] .spcc-tile-pt { padding: 0; border: 0; background: none; font-weight: 800; cursor: pointer; text-decoration: underline dotted; }
.spcc-tile-pop { z-index: 130001; }

.mis-note-overlay.spcc-tile-pop { position: fixed; inset: 0; left: 0; top: 0; width: auto; max-height: none; transform: none; display: flex; border: 0; border-radius: 0; background: rgba(15, 23, 42, .55); box-shadow: none; overflow: visible; }

/* 23-10-2026 (Anmol: "28 in the card, why only 24 here"): the improvement cases that have no point row are listed under the chip. */
.sourcing-mode .spcc-idmiss { margin: 0 0 10px; padding: 8px 14px; border: 1.5px solid #f59e0b; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: 13px; font-weight: 650; }
.sourcing-mode .spcc-idmiss summary { cursor: pointer; font-weight: 800; }
.sourcing-mode .spcc-idmiss ul { margin: 6px 0 0; padding-left: 20px; }

/* 23-10-2026 (Anmol): months column of the Action Report can show 3 / 6 / 9 / 12 months (Action column hidden above 3). */
.sourcing-mode .spcc-action-trend.spcc-trend-wide { gap: 6px; flex-wrap: wrap; max-width: 760px; justify-content: center; }
.sourcing-mode .spcc-action-trend.spcc-trend-wide > span { min-width: 26px; }
.sourcing-mode .spcc-action-trend.spcc-trend-wide .bar { width: 16px; }

.sourcing-mode .spcc-action-trend.spcc-trend-wide { flex-wrap: nowrap; max-width: none; justify-content: flex-start; }
.sourcing-mode .spcc-action-report td.g-trend:has(.spcc-trend-wide) { width: 1%; white-space: nowrap; }

/* 23-10-2026 (Anmol): "Last N months" header opens a drop-down. */
.sourcing-mode .spcc-months-head { cursor: pointer; user-select: none; }
.sourcing-mode .spcc-months-head::after { content: " \25be"; }
.sourcing-mode .spcc-months-head:hover { filter: brightness(1.15); }
.spcc-months-menu { position: fixed; z-index: 130003; min-width: 180px; padding: 6px; border: 2px solid #111827; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .3); display: grid; gap: 2px; }
.spcc-months-menu button { display: grid; text-align: left; padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: #0f172a; font: 800 14px var(--sans, system-ui); cursor: pointer; }
.spcc-months-menu button small { color: #64748b; font-size: 11.5px; font-weight: 650; }
.spcc-months-menu button:hover { background: #ede9fe; }
.spcc-months-menu button[aria-pressed="true"] { background: #5b21b6; color: #fff; }
.spcc-months-menu button[aria-pressed="true"] small { color: #ddd6fe; }

/* 24-10-2026 (Anmol: "Action is very basic, tell where to go and what to do"): 3-line plan in the Action column. */
.sourcing-mode .spcc-action-report td.spcc-plan { text-align: left; padding: 10px 14px; min-width: 280px; }
.sourcing-mode .spcc-plan p { margin: 0 0 5px; font-size: 13px; line-height: 1.35; color: var(--ar-ink); }
.sourcing-mode .spcc-plan p:last-child { margin-bottom: 0; }
.sourcing-mode .spcc-plan .pl-who { font-size: 13.5px; }
.sourcing-mode .spcc-plan .pl-lvl { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #0f766e; }
.sourcing-mode .spcc-plan .pl-lvl.pl-sm { background: #b45309; }
.sourcing-mode .spcc-plan .pl-lvl.pl-rsm { background: #b91c1c; }
.sourcing-mode .spcc-plan .pl-with { color: #475569; font-weight: 650; }
.sourcing-mode .spcc-plan .pl-place { display: block; margin-top: 1px; color: #1d4ed8; font-style: normal; font-weight: 800; }
.sourcing-mode .spcc-plan .pl-what b, .sourcing-mode .spcc-plan .pl-target b { color: #0f172a; }
.sourcing-mode .spcc-plan .pl-target { padding: 3px 8px; border-left: 3px solid #0f766e; background: #f0fdfa; font-weight: 700; }

/* 24-10-2026 (Anmol: "when I change filters the page goes down by itself"): the browser's scroll anchoring moved the page a little on every re-render; renderAll already puts the scroll back itself. */
body.sourcing-mode { overflow-anchor: none; }

/* 24-10-2026 (Anmol: "hide this report by default, show only the header"): click the header to open or close the District / Location report. */
.sourcing-mode .spcc-place-card .spcc-place-head { cursor: pointer; position: relative; padding-right: 56px; }
.sourcing-mode .spcc-place-card .spcc-place-head::after { content: "\25be"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(-90deg); color: #fff; font-size: 22px; transition: transform 160ms ease; }
.sourcing-mode .spcc-place-card.is-open .spcc-place-head::after { transform: translateY(-50%); }
.sourcing-mode .spcc-place-card:not(.is-open) .spcc-place-body { display: none; }
.sourcing-mode .spcc-place-card .spcc-place-head:hover { filter: brightness(1.12); }
.sourcing-mode .spcc-place-card .spcc-place-head:focus-visible { outline: 3px solid #fde68a; outline-offset: -3px; }

/* 24-10-2026 (Anmol): executive level = executive name, district, location, sourcing point (one row per point). */
.sourcing-mode table.pd-table.spcc-table th.spcc-h-place { background: #d9f0e9; color: #000000; width: 11%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-status { background: #d9f0e9; color: #000000; width: 9%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-points { width: 28%; }
.sourcing-mode .spcc-table td.spcc-exec-name { vertical-align: top; }
.sourcing-mode .spcc-table td.spcc-pt-status { white-space: nowrap; }
.sourcing-mode .spcc-table tr.spcc-exec-first td { border-top: 2px solid #475569; }
.sourcing-mode .spcc-table td[rowspan].num { vertical-align: middle; }
.sourcing-mode .spcc-pt-st { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sourcing-mode .spcc-pt-st-dead { background: #fee2e2; color: #991b1b; }
.sourcing-mode .spcc-pt-st-live { background: #ffedd5; color: #9a3412; }
.sourcing-mode .spcc-pt-st-active { background: #dcfce7; color: #166534; }

/* 24-10-2026 (Anmol: "fix UI bug and overlap"): executive-level table: long locations / point names wrap inside their cell instead of running into the next one; column widths add up. */
.sourcing-mode table.pd-table.spcc-table th.spcc-h-name { width: 16%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-place { width: 10%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-place + th.spcc-h-place { width: 14%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-points { width: 29%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-status { width: 11%; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-pointtotal { width: 6%; white-space: normal; line-height: 1.15; }
.sourcing-mode table.pd-table.spcc-table th.spcc-h-pointtotal ~ th.spcc-h-dead, .sourcing-mode table.pd-table.spcc-table th.spcc-h-pointtotal ~ th.spcc-h-live, .sourcing-mode table.pd-table.spcc-table th.spcc-h-pointtotal ~ th.spcc-h-active { width: 5%; }
.sourcing-mode .spcc-table td.spcc-place-td { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.sourcing-mode .spcc-table td.spcc-point-cell .spcc-point-list span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; text-align: left; }
.sourcing-mode .spcc-table td.spcc-point-cell .spcc-point-list { text-align: left; }

.sourcing-mode .spcc-table td.spcc-exec-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }

/* 24-10-2026 (Anmol: "please fix"): executive-level table: same borders on every row of a group, name wraps beside its icon, calmer hover. */
.sourcing-mode .spcc-table td.spcc-pt-status { border-right: 1px solid #111827 !important; }
.sourcing-mode .spcc-table .spcc-exec-wrap { display: flex; align-items: flex-start; gap: 8px; }
.sourcing-mode .spcc-table .spcc-exec-wrap .spcc-health { flex: 0 0 auto; }
.sourcing-mode .spcc-table .spcc-exec-wrap > span:last-child { min-width: 0; text-align: left; }
.sourcing-mode .spcc-table td.spcc-point-cell .spcc-point-list:hover { background: transparent; text-decoration: underline; }

/* 24-10-2026 (Anmol): every point row has the colour of its own status (Dead red, Live orange, Active green); the executive cell is a button that opens all his points. */
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-pt-dead td { background: #ffe0e3; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-pt-live td { background: #ffeccc; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-pt-active td { background: #d9f4e1; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-pt-dead:hover td { background: #fbc8ce; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-pt-live:hover td { background: #ffdca3; }
.sourcing-mode table.pd-table.spcc-table tbody tr.spcc-pt-active:hover td { background: #bfeacb; }
.sourcing-mode table.pd-table.spcc-table tbody tr td.spcc-ex-risk { background: #fff0f1; }
.sourcing-mode table.pd-table.spcc-table tbody tr td.spcc-ex-watch { background: #fff7e5; }
.sourcing-mode table.pd-table.spcc-table tbody tr td.spcc-ex-good { background: #edf9f1; }
.sourcing-mode table.pd-table.spcc-table tbody tr td.spcc-ex-neutral { background: #f4f6f8; }
.sourcing-mode .spcc-table button.spcc-exec-btn { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.sourcing-mode .spcc-table button.spcc-exec-btn:hover span:last-child { text-decoration: underline; }
.sourcing-mode .spcc-table button.spcc-exec-btn:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }

/* 24-10-2026 (Anmol): the whole executive box opens the card, not only the name. */
.sourcing-mode .spcc-table td.spcc-exec-name[data-sp-points] { cursor: pointer; }
.sourcing-mode .spcc-table td.spcc-exec-name[data-sp-points]:hover span:last-child { text-decoration: underline; }
.sourcing-mode .spcc-table td.spcc-exec-name[data-sp-points]:hover { filter: brightness(.95); }

/* Quality MoM Month Impact Modal */
.ql-modal-overlay:has(.ql-impact-modal),
.ql-modal-overlay[data-ql-impact-backdrop],
.ql-modal-overlay[data-ql-focus-backdrop],
.ql-modal-overlay[data-ql-case-backdrop] {
  position: fixed;
  inset: 0;
  z-index: 130000 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
}
.ql-modal.ql-impact-modal {
  width: min(1600px, 97vw);
  max-width: 97vw;
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  padding: 14px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #111;
  border-radius: 12px;
  background: #f8fafc;
  color: #111;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.45);
}
@media (min-width: 861px) and (pointer: fine) {
  .ql-modal.ql-impact-modal {
    zoom: .7;
    width: min(2286px, 134.3vw);
    max-width: 134.3vw;
    height: calc(142.86vh - 52px);
    max-height: calc(142.86vh - 52px);
    margin: 0 auto;
  }
}
.ql-impact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
  flex: 0 0 auto;
}
.ql-impact-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ql-impact-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: #17324d;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ql-impact-sublabel {
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
}
.ql-impact-header h2 {
  display: block;
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.25;
}
.ql-impact-subtext {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.3;
}
.ql-impact-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.ql-impact-month-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #17324d;
}
.ql-impact-month-switch select {
  min-height: 32px;
  padding: 4px 10px;
  border: 1.5px solid #17324d;
  border-radius: 6px;
  background: #fff;
  color: #17324d;
  font: 800 13px var(--sans);
  cursor: pointer;
}
.ql-impact-header-actions button[data-ql-impact-close] {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 140ms ease;
}
.ql-impact-header-actions button[data-ql-impact-close]:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

/* Toolbar & Filters */
.ql-impact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.ql-impact-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.ql-impact-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: 800 12.5px var(--sans);
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
}
.ql-impact-tab:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.ql-impact-tab.active {
  background: #17324d !important;
  color: #fff !important;
  border-color: #17324d !important;
  box-shadow: 0 2px 4px rgba(23,50,77,.25);
}
.ql-impact-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.ql-impact-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
}
.ql-impact-filters select {
  min-height: 32px;
  padding: 4px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font: 750 12.5px var(--sans);
  cursor: pointer;
}
.ql-impact-filters .ql-impact-level-select {
  width: 108px;
  min-width: 108px;
}
@media (min-width: 861px) and (pointer: fine) {
  .ql-impact-toolbar {
    gap: 14px;
    padding: 8px 10px;
    border: 3px solid #17324d;
    border-radius: 8px;
    background: #fff;
  }
  .ql-impact-tabs { gap: 7px; }
  .ql-impact-tab {
    min-height: 40px;
    padding: 6px 12px;
    border: 3px solid #17324d;
    font-size: 14px;
  }
  .ql-impact-filters { gap: 14px; }
  .ql-impact-filters label { gap: 7px; font-size: 14px; }
  .ql-impact-filters select {
    min-height: 40px;
    padding: 6px 12px;
    border: 3px solid #17324d;
    font-size: 14px;
  }
}

/* Data Table Container - Natural vertical space with sticky headers */
.ql-impact-table-wrap {
  flex: 1 1 auto;
  min-height: 250px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 8px;
}
.ql-impact-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
  font-size: 13px;
}
.ql-impact-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #17324d;
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 850;
  text-align: center !important;
  vertical-align: middle !important;
  border-bottom: 2px solid #0f172a;
  white-space: nowrap;
}
.ql-impact-table thead th.highlight {
  background: #2563eb;
}
.ql-impact-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f8fafc;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.35;
}
.ql-impact-table tbody tr:hover td {
  background: #f8fafc;
}
.ql-impact-value-btn {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ql-impact-value-btn:hover { border-color: #17324d; background: rgba(255,255,255,.7); }
.ql-impact-value-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 1px; }
.ql-impact-value-btn .ql-impact-sub { text-decoration: underline; text-underline-offset: 2px; }
.ql-impact-sm-btn {
  display: inline-block;
  margin: 0 auto;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: #17324d;
  font: 850 13.5px var(--sans);
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}
.ql-impact-sm-btn:hover {
  color: #2563eb;
}
.ql-impact-sub {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
  text-align: center;
}
.ql-impact-sub.good { color: #15803d; }
.ql-impact-sub.bad { color: #dc2626; }
.ql-impact-sub.neutral { color: #64748b; }
.ql-impact-table td.num {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}
.ql-impact-table td.num.good b { color: #15803d; }
.ql-impact-table td.num.bad b { color: #dc2626; }
.ql-driver-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}
.ql-driver-badge.good { background: #dcfce7; color: #166534; }
.ql-driver-badge.bad { background: #fee2e2; color: #991b1b; }
.ql-driver-badge.warn { background: #fef3c7; color: #92400e; }
.ql-driver-badge.neutral { background: #f1f5f9; color: #475569; }
.ql-contributor-modal { width: min(1240px, 95vw); }
.ql-contributor-table-wrap table { min-width: 1050px; }
.ql-contributor-table-wrap th, .ql-contributor-table-wrap td { text-align: center !important; }
.ql-contributor-table-wrap th:first-child, .ql-contributor-table-wrap td:first-child,
.ql-contributor-table-wrap th:last-child, .ql-contributor-table-wrap td:last-child { text-align: left !important; }
.ql-contributor-table-wrap td:first-child small { display: block; margin-top: 3px; color: #506477; font-size: 10px; }
.ql-contributor-table-wrap td:nth-child(4) b { font-weight: 900; }

/* Footer */
.ql-impact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1.5px solid #cbd5e1;
  flex: 0 0 auto;
}
.ql-impact-footer .ql-report-note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  flex: 1;
  line-height: 1.4;
}
.ql-impact-close-btn {
  padding: 7px 18px;
  border: 1.5px solid #17324d;
  border-radius: 6px;
  background: #17324d;
  color: #fff;
  font: 800 12.5px var(--sans);
  cursor: pointer;
  transition: background-color 140ms ease;
}
.ql-impact-close-btn:hover {
  background: #0f172a;
}
@media (max-width: 860px) {
  .ql-impact-toolbar { flex-direction: column; align-items: stretch; }
  .ql-impact-filters { justify-content: space-between; }
}

/* Quality action list: scoped typography and paired issue/action rows, 26 Oct 2026. */
.ql-page .ql-actions-clean { font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; color: #243449; }
.ql-page .ql-actions-clean > .ql-section-head { background: #19364e; border-color: #19364e; padding: 18px 20px; gap: 16px; }
.ql-page .ql-actions-clean > .ql-section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.ql-page .ql-actions-clean .card-sub { font-size: 13px; font-weight: 400; line-height: 1.5; }
.ql-actions-clean .ql-action-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 18px 0; border: 1px solid #d7e0e8; border-radius: 8px; background: #fff; }
.ql-actions-clean .ql-action-totals > div { padding: 14px 18px; }
.ql-actions-clean .ql-action-totals > div + div { border-left: 1px solid #d7e0e8; }
.ql-actions-clean .ql-action-totals strong { display: block; color: #19364e; font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ql-actions-clean .ql-action-totals span { display: block; color: #526477; font-size: 12px; line-height: 1.5; margin-top: 3px; }
.ql-actions-clean .ql-focus-strip { padding: 14px 16px; border: 1px solid #d7e0e8; background: #f6f8fa; }
.ql-actions-clean .ql-focus-strip > h3 { font-size: 15px; font-weight: 650; }
.ql-actions-clean .ql-focus-strip article { padding: 0; border: 0; background: transparent; }
.ql-actions-clean .ql-focus-strip article:hover { transform: none; }
.ql-actions-clean .ql-focus-strip h4 { font-size: 12px; color: #526477; font-weight: 500; margin: 0 0 6px; }
.ql-actions-clean .ql-focus-strip ol { margin: 0; }
.ql-actions-clean .ql-focus-strip .ql-problem-rank { display: none; }
.ql-actions-clean .ql-focus-strip li b { font-size: 18px; font-weight: 650; }
.ql-actions-clean .ql-focus-strip li small { display: block; font-size: 12px; line-height: 1.6; margin-top: 4px; color: #526477; }
.ql-page .ql-actions-clean .ql-report-note { font-size: 12px; color: #526477; line-height: 1.6; margin: 14px 2px; }
.ql-page .ql-actions-clean .ql-watch-scroll { max-height: 740px; border: 1px solid #b8c7d4; border-radius: 8px; }
.ql-page .ql-actions-clean .ql-table { width: 100%; min-width: 940px; border-collapse: separate; border-spacing: 0; font-size: 14px; table-layout: fixed; }
.ql-page .ql-actions-clean .ql-table :is(th,td) { padding: 16px; border: 0; border-bottom: 1px solid #d7e0e8; text-align: left; white-space: normal; vertical-align: top; color: #243449; background: #fff; line-height: 1.5; }
.ql-page .ql-actions-clean .ql-table thead th { padding-top: 12px; padding-bottom: 12px; color: #344d63; background: #edf2f6; font-size: 12px; font-weight: 650; }
.ql-page .ql-actions-clean .ql-table :is(th,td):first-child { width: 22%; min-width: 180px; text-align: left; }
.ql-page .ql-actions-clean .ql-table :is(th,td):nth-child(2) { width: 14%; min-width: 130px; text-align: left; }
.ql-page .ql-actions-clean .ql-table :is(th,td):nth-child(3) { width: 11%; min-width: 100px; text-align: center; }
.ql-page .ql-actions-clean .ql-table :is(th,td):nth-child(4) { width: 44%; min-width: 410px; }
.ql-page .ql-actions-clean .ql-table :is(th,td):last-child { width: 9%; min-width: 84px; max-width: none; text-align: center; }
.ql-actions-clean .ql-table td > b { font-weight: 600; }
.ql-actions-clean .ql-table small { color: #607184; font-size: 12px; line-height: 1.5; font-weight: 400; }
.ql-actions-clean .ql-employee-rank { display: block; color: #607184; font-size: 11px; margin-bottom: 3px; }
.ql-actions-clean .ql-employee-name { display: block; font-size: 16px; line-height: 1.4; }
.ql-page .ql-actions-clean .ql-priority-label { display: inline-block; margin: 8px 0 3px; padding: 3px 8px; font-size: 11px; font-weight: 600; border: 0; border-radius: 4px; }
.ql-page .ql-actions-clean .ql-action-score { display: block; font-size: 24px; font-weight: 700; color: #19364e; font-variant-numeric: tabular-nums; }
.ql-page .ql-actions-clean .ql-action-score small { display: inline; font-size: 12px; margin-left: 3px; }
.ql-page .ql-actions-clean .ql-issue { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin: 0; padding: 10px 0; }
.ql-page .ql-actions-clean .ql-issue:first-child { padding-top: 0; }
.ql-page .ql-actions-clean .ql-issue + .ql-issue { border-top: 1px solid #e6ebf0; }
.ql-actions-clean .ql-issue b, .ql-actions-clean .ql-issue span { display: block; }
.ql-actions-clean .ql-issue b { color: #344d63; font-size: 12px; font-weight: 600; }
.ql-actions-clean .ql-issue div > span { color: #a32d32; font-size: 14px; font-weight: 600; }
.ql-actions-clean .ql-issue-missing div > span { color: #7c641b; }
.ql-actions-clean .ql-issue p { margin: 0; font-size: 13px; font-weight: 400; color: #344d63; }
.ql-actions-clean .ql-action-caption { color: #607184; font-size: 11px; margin-bottom: 4px; }
.ql-page .ql-actions-clean .ql-view { min-height: 36px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
@media (max-width: 700px) {
  .ql-page .ql-actions-clean > .ql-section-head { padding: 14px; }
  .ql-actions-clean .ql-action-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ql-actions-clean .ql-action-totals > div { padding: 12px; }
  .ql-actions-clean .ql-action-totals > div:nth-child(3) { border-left: 0; }
  .ql-actions-clean .ql-action-totals > div:nth-child(n+3) { border-top: 1px solid #d7e0e8; }
  .ql-actions-clean .ql-action-controls, .ql-actions-clean .ql-action-controls .ql-filter { width: 100%; min-width: 0; }
  .ql-actions-clean .ql-action-controls select { width: 100%; max-width: 100%; }
}

.ql-actions-clean .ql-issue-good div > span { color: #246247; }

.ql-page > .ql-actions-clean { zoom: 1; }
@media (max-width: 700px) { .ql-actions-clean .ql-report-note::after { content: " Swipe the table sideways to see scores and next steps."; display: block; margin-top: 6px; font-weight: 600; color: #19364e; } }

/* 28-10-2026: Fuel brand/team and agreement tables, scoped alignment. */
.ql-fuel-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ql-fuel-detail-head h3 { margin: 0; }
.ql-fuel-detail-head .ql-focus-back { min-height: 36px; }
.ql-page .ql-fuel-content .ql-table th,
.ql-page .ql-fuel-content .ql-table td,
.ql-page [data-ql-fuel-case-backdrop] table th,
.ql-page [data-ql-fuel-case-backdrop] table td { text-align: center; vertical-align: middle; }
.ql-fuel-content [data-ql-fuel-case-metric] { min-height: 36px; }

/* 28-10-2026: booked IRR below its fuel floor has stronger emphasis. */
.ql-page [data-ql-fuel-case-backdrop] table td.ql-fuel-irr-breach {
  background: #b42318;
  color: #fff;
  font-weight: 900;
}

/* 29-10-2026: Overview command center. Scoped so every other page keeps its layout. */
.overview-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* 30-10-2026: an auto track grew to the 920px table, the app frame cut the cards at 768px */
  gap: 18px;
  color: #16283a;
}
.overview-command .card {
  border: 1px solid #d4dee8;
  box-shadow: 0 10px 30px rgba(25, 54, 78, .06);
}
.overview-command .card-head {
  align-items: flex-start;
  gap: 14px;
}
.overview-command .card-head h2 {
  letter-spacing: -.025em;
}
.ov-command-card {
  overflow: hidden;
  border-color: #aac0d2 !important;
  background:
    radial-gradient(circle at 100% 0, rgba(35, 128, 129, .13), transparent 30%),
    linear-gradient(145deg, #f7fbff 0%, #fff 58%, #f5fbf8 100%);
}
.ov-command-head {
  padding-bottom: 15px;
  border-bottom: 1px solid #dce6ed;
}
.ov-kicker {
  display: block;
  margin-bottom: 5px;
  color: #0e7778;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.ov-select {
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 170px;
  color: #4d6174;
  font-size: 11px;
  font-weight: 800;
}
.ov-select select {
  min-height: 38px;
  padding: 6px 34px 6px 10px;
  border: 1px solid #9eb0c0;
  border-radius: 7px;
  background: #fff;
  color: #17324d;
  font: 800 13px var(--sans);
}
.ov-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ov-metric {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #d4dee8;
  border-left: 4px solid #7390a8;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
}
.ov-metric span,
.ov-metric small,
.ov-productivity-strip span,
.ov-productivity-strip small {
  display: block;
}
.ov-metric span {
  overflow: hidden;
  color: #53687a;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.ov-metric b {
  display: block;
  margin: 5px 0 2px;
  color: #17324d;
  font-size: clamp(23px, 2.25vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ov-metric small {
  min-height: 16px;
  color: #718192;
  font-size: 10.5px;
  line-height: 1.35;
}
.ov-metric.blue { border-left-color: #2f6da1; }
.ov-metric.green { border-left-color: #2d895f; }
.ov-metric.amber { border-left-color: #d18a21; background: #fffaf0; }
.ov-metric.red { border-left-color: #c84b50; background: #fff7f7; }
.ov-metric.red b { color: #a82e37; }
.ov-metric.amber b { color: #98610f; }
.ov-productivity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: #17324d;
  color: #fff;
}
.ov-productivity-strip > div {
  min-width: 0;
  padding: 12px 14px;
}
.ov-productivity-strip > div + div { border-left: 1px solid rgba(255, 255, 255, .17); }
.ov-productivity-strip span { color: #bdcfdd; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ov-productivity-strip b { display: block; margin: 3px 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.ov-productivity-strip small { color: #d9e5ec; font-size: 10.5px; }
.ov-points-card { background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%); }
.ov-point-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ov-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d4dee8;
  border-radius: 8px;
  background: #fff;
}
.ov-tall-table,
.ov-date-table,
.ov-exec-table {
  max-height: 560px;
  overflow: auto;
}
.ov-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.ov-table th,
.ov-table td {
  padding: 10px 11px;
  border-right: 1px solid #edf1f4;
  border-bottom: 1px solid #dfe7ed;
  text-align: center;
  vertical-align: middle;
}
.ov-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #17324d;
  color: #fff;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ov-table td:first-child,
.ov-table th:first-child,
.ov-table td:nth-child(2) { text-align: left; }
.ov-table tbody tr:nth-child(even) td { background: #f8fafc; }
.ov-table tbody tr:hover td { background: #eef6f8; }
.ov-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-table td.bad { color: #a82e37; font-weight: 800; }
.ov-growth-insights { padding: 0; overflow: hidden; border: 2px solid #111; border-radius: 14px; background: #f7f9fd; color: #111; }
.ov-gi-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; padding: 24px 26px 20px; background: #4b3a72; border-bottom: 2px solid #111; color: #fff; }
.ov-gi-head h2 { margin: 0 0 5px; font-size: 25px; color: #fff; }
.ov-gi-head p, .ov-gi-panel p, .ov-gi-leader p { margin: 0; color: #415572; font-size: 13px; }
.ov-gi-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.ov-gi-filters label { display: grid; gap: 5px; color: #fff; font-size: 12px; font-weight: 800; }
.ov-gi-filters select { min-width: 132px; max-width: 190px; min-height: 40px; padding: 7px 30px 7px 10px; border: 1px solid #111; border-radius: 8px; background: #fff; color: #111; font: inherit; font-size: 13px; }
.ov-gi-reset { min-height: 40px; padding: 7px 15px; border: 1px solid #111; border-radius: 8px; background: #fff; color: #111; font: 800 13px/1 var(--sans); cursor: pointer; }
.ov-gi-reset:hover { background: #f1edfb; }
.ov-gi-filters select:focus-visible, .ov-growth-insights button:focus-visible { outline: 3px solid #2874d3; outline-offset: 2px; }
.ov-gi-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 12px 16px 10px; }
.ov-gi-kpi { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: center; gap: 8px; min-height: 64px; padding: 8px 11px; border: 1px solid #d9e3f0; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(24,47,79,.05); text-align: left; }
.ov-gi-kpi-copy { display: grid; min-width: 0; align-content: center; gap: 3px; }
.ov-gi-kpi span { display: block; min-width: 0; overflow: hidden; color: #111; font-size: 11px; font-weight: 800; line-height: 1.1; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ov-gi-kpi small { display: block; min-width: 0; overflow: hidden; color: #111; font-size: 9px; font-weight: 700; line-height: 1.1; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.ov-gi-kpi strong { justify-self: end; overflow: visible; color: #122b4b; font-size: 21px; line-height: 1; text-align: right; white-space: nowrap; }
.ov-gi-kpi.up strong { color: #177b41; } .ov-gi-kpi.down strong { color: #b42836; }
.ov-gi-kpi.featured small { overflow: visible; color: #111; font-size: 11px; font-weight: 900; text-overflow: clip; white-space: normal; }
.ov-gi-kpi.featured strong { font-size: 17px; }
.ov-gi-zero { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin: 0 16px 14px; padding: 10px 14px; border: 1px solid #111; border-radius: 9px; background: #fff4dc; color: #111; font-size: 13px; text-align: center; }
.ov-gi-zero strong { margin-left: 4px; color: #a12b30; }
.ov-gi-zero details { flex-basis: 100%; border-top: 1px solid #ead7ba; padding-top: 8px; }
.ov-gi-zero summary { width: fit-content; margin: 0 auto; cursor: pointer; font-weight: 800; color: #173a65; }
.ov-gi-zero-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 18px; margin-top: 10px; max-height: 240px; overflow-y: auto; }
.ov-gi-zero-list > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 9px; align-items: center; padding: 6px; border-bottom: 1px solid #eadfce; }
.ov-gi-zero-list small { color: #46566b; } .ov-gi-zero-list > div > span:last-child { color: #9a3135; font-weight: 700; }
.ov-gi-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0 20px 18px; }
.ov-gi-panel, .ov-gi-leader { min-width: 0; padding: 18px; border: 1px solid #d7e2ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(21,43,75,.06); }
.ov-gi-panel h3, .ov-gi-leader h3 { margin: 0 0 4px; color: #152b4b; font-size: 18px; text-align: center; }
.ov-gi-leader { padding: 8px 12px 12px; }
.ov-gi-leader h3 { position: absolute; z-index: 1; top: 0; left: 0; margin: 0; padding: 8px 12px; color: #fff; font-size: 15px; line-height: 1.1; text-align: left; }
.ov-gi-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin: -18px -18px 12px; padding: 8px 12px; border-radius: 11px 11px 0 0; background: #173a61; color: #fff; }
.ov-gi-panel-head.down { background: #8f2f3b; }
.ov-gi-panel-head h3 { margin: 0; color: inherit; font-size: 15px; line-height: 1.1; text-align: left; }
.ov-gi-panel-head span { overflow: hidden; color: inherit; font-size: 10px; font-weight: 800; line-height: 1.1; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ov-gi-panel > p { margin-bottom: 14px; text-align: center; }
.ov-gi-bar-head, .ov-gi-bar-row { display: grid; grid-template-columns: 18px minmax(145px,1.7fr) minmax(74px,.7fr) minmax(150px,1fr) minmax(68px,.5fr); align-items: center; gap: 7px; }
.ov-gi-bar-head { min-height: 27px; border-top: 1px solid #dfe6ef; border-bottom: 1px solid #dfe6ef; color: #111; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.ov-gi-bar-head span:nth-child(2) { text-align: left; }
.ov-gi-history-head { letter-spacing: .03em; }
.ov-gi-bar-row { min-height: 46px; border-bottom: 1px solid #edf1f6; font-size: 12px; text-align: center; }
.ov-gi-exec-name { display: flex; width: 100%; align-items: center; justify-content: flex-start; color: #111; font-weight: 800; line-height: 1.2; text-align: left; white-space: normal; }
.ov-gi-rank { color: #4a5e79; text-align: center; }
.ov-gi-mini-history { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 6px; min-height: 38px; padding: 1px 2px 0; }
.ov-gi-mini-col { display: grid; grid-template-rows: 10px 19px 9px; justify-items: center; align-items: end; min-width: 0; color: #111; font-variant-numeric: tabular-nums; }
.ov-gi-mini-col > b { align-self: end; font-size: 9px; line-height: 1; }
.ov-gi-mini-col > i { position: relative; display: flex; align-items: end; width: 12px; height: 19px; overflow: hidden; border: 1px solid #b9ccd0; border-radius: 3px 3px 2px 2px; background: #f8fbfa; }
.ov-gi-mini-col > i > em { position: relative; display: block; width: 100%; height: var(--ov-gi-bar-height); transform: scaleY(1); transform-origin: center bottom; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg,#77d898 0 17%,#2ca460 18% 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); animation: ov-gi-history-rise .54s cubic-bezier(.16,1,.3,1) var(--ov-gi-bar-delay) both, ov-gi-history-sheen .48s ease-out calc(var(--ov-gi-bar-delay) + .22s) both; }
.ov-gi-mini-col > i > em::before, .ov-gi-mini-col > i > em::after { content: ""; position: absolute; left: -55%; top: -4px; width: 210%; height: 7px; border-radius: 44%; background: rgba(255,255,255,.42); transform: translateX(-8%) rotate(0deg); animation: ov-gi-water-wave 2400ms linear infinite; }
.ov-gi-mini-col > i > em::after { top: -2px; background: rgba(255,255,255,.22); animation-duration: 1800ms; animation-direction: reverse; }
.ov-gi-mini-col.down > i > em { background: linear-gradient(180deg,#ef8a8e 0 17%,#cf3540 18% 100%); }
.ov-gi-mini-col.up > i > em, .ov-gi-mini-col.down > i > em { min-height: 4px; }
.ov-gi-mini-col.zero > i { border-color: #e3c0c3; background: #fffafa; }
.ov-gi-mini-col.zero > i > em { height: 3px; background: #d64a54; animation-duration: .32s, .32s; }
.ov-gi-mini-col.zero > i > em::before, .ov-gi-mini-col.zero > i > em::after { display: none; }
.ov-gi-mini-col.empty > i { border-style: dashed; background: #fbfcfd; }
.ov-gi-mini-col.empty > i > em { display: none; }
.ov-gi-mini-col > small { align-self: start; color: #111; font-size: 7px; line-height: 1.1; white-space: nowrap; }
.ov-gi-row-change { justify-self: center; min-width: 54px; padding: 3px 5px; border-radius: 999px; font-size: 10px; font-weight: 900; line-height: 1; text-align: center; }
.ov-gi-row-change.up { color: #146b39; background: #e0f6e8; }
.ov-gi-row-change.down { color: #a82531; background: #fde4e6; }
.ov-gi-row-change.steady { color: #4f5967; background: #e9edf2; }
@keyframes ov-gi-history-rise { from { opacity: .35; transform: scaleY(.08); } to { opacity: 1; transform: scaleY(1); } }
@keyframes ov-gi-history-sheen { from { filter: brightness(1.34); } to { filter: brightness(1); } }
@keyframes ov-gi-water-wave { to { transform: translateX(8%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ov-gi-mini-col > i > em, .ov-gi-mini-col > i > em::before, .ov-gi-mini-col > i > em::after { animation: none; } }
.ov-gi-empty { padding: 18px; color: #405571; }
.ov-gi-leader { margin: 0 20px 14px; }
.ov-gi-leader > p { margin-bottom: 12px; text-align: center; }
.ov-gi-leader .ov-table-scroll { position: relative; overflow-x: visible; padding-top: 34px; }
.ov-gi-leader .ov-table-scroll::before { content: ''; position: absolute; inset: 0 0 auto; height: 34px; border-radius: 8px 8px 0 0; background: #176b69; }
.ov-gi-leader .mp-tbl-tools { position: absolute; z-index: 1; top: 4px; right: 6px; margin: 0; padding: 0; }
.ov-gi-leader .ov-table { min-width: 0; table-layout: auto; font-size: 11px; }
.ov-gi-leader .ov-table th, .ov-gi-leader .ov-table td { padding: 5px 6px; line-height: 1.15; text-align: center !important; vertical-align: middle; }
.ov-gi-leader .ov-table .ov-gi-subtotal th { padding: 6px 10px; text-align: left !important; font-weight: 850; }
.ov-gi-leader .ov-table .ov-gi-subtotal-state > * { background: #f9d9b9; color: #111; border-top: 1px solid #bd7952; font-weight: 800; }
.ov-gi-leader .ov-table .ov-gi-subtotal-leader > * { background: #eeb57e; color: #111; border-top: 2px solid #9e522d; font-weight: 850; }
.ov-gi-leader .ov-gi-exec-name { font-size: 11px; }
.ov-gi-change, .ov-gi-status { display: inline-flex; justify-content: center; min-width: 65px; padding: 4px 8px; border-radius: 7px; font-weight: 800; }
.ov-gi-change.good, .ov-gi-status.good { color: #136b38; background: #e2f6e9; }
.ov-gi-change.risk, .ov-gi-status.risk { color: #a52430; background: #fce9eb; }
.ov-gi-change.steady, .ov-gi-status.steady { color: #634b19; background: #fff1ce; }
.ov-gi-foot { margin: 0; padding: 0 20px 18px; color: #31445f; font-size: 12px; }
.ov-growth-insights .ov-gi-panel h3, .ov-growth-insights .ov-gi-leader h3,
.ov-growth-insights .ov-gi-panel p, .ov-growth-insights .ov-gi-leader p,
.ov-growth-insights .ov-gi-kpi span, .ov-growth-insights .ov-gi-kpi small, .ov-growth-insights .ov-gi-filters label,
.ov-growth-insights .ov-gi-rank, .ov-growth-insights .ov-gi-bar-row small, .ov-growth-insights .ov-gi-exec-name,
.ov-growth-insights .ov-gi-zero, .ov-growth-insights .ov-gi-zero-list small, .ov-growth-insights .ov-gi-foot { color: #111; }
.ov-growth-insights .ov-gi-leader h3 { color: #fff; }
.ov-growth-insights .ov-gi-head p { color: #eee9fb; }
.ov-growth-insights .ov-gi-head .ov-gi-filters label { color: #fff; }
.ov-growth-insights .ov-gi-panel-head h3, .ov-growth-insights .ov-gi-panel-head span { color: #fff; }
.ov-gi-tip { position: relative; }
.ov-gi-tip::after { content: attr(data-tooltip); position: absolute; z-index: 120; left: 12px; bottom: calc(100% + 7px); width: max-content; max-width: min(390px, 70vw); padding: 10px 12px; border: 1px solid #fff; border-radius: 8px; background: #111; color: #fff; box-shadow: 0 10px 28px rgba(17,17,17,.28); font-size: 12px; font-weight: 650; line-height: 1.45; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 120ms ease, transform 120ms ease; }
.ov-gi-tip:hover::after, .ov-gi-tip:focus-visible::after { opacity: 1; transform: translateY(0); }
.ov-gi-tip:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.ov-gi-kpi:nth-child(-n+3)::after { top: calc(100% + 7px); bottom: auto; }
.ov-gi-kpi:nth-child(n+4)::after { right: 12px; left: auto; }
.ov-gi-zero .ov-gi-tip::after { top: auto; bottom: calc(100% + 6px); }
.ov-gi-more { margin-top: 6px; }
.ov-gi-panel-list { max-height: 225px; overflow-y: auto; scrollbar-gutter: stable; }
.ov-gi-more summary { width: fit-content; padding: 5px 8px; cursor: pointer; color: #111; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ov-gi-more-hide { display: none; }
.ov-gi-more[open] .ov-gi-more-show { display: none; }
.ov-gi-more[open] .ov-gi-more-hide { display: inline; }
@media (max-width: 1250px) { .ov-gi-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); } .ov-gi-panels { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .ov-gi-head { padding: 17px; } .ov-gi-filters { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .ov-gi-filters select { width: 100%; min-width: 0; } .ov-gi-reset { width: 100%; } .ov-gi-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; } .ov-gi-zero { margin: 0 12px 12px; } .ov-gi-zero-list { grid-template-columns: 1fr; } .ov-gi-panels { padding: 0 12px 12px; } .ov-gi-panel { overflow-x: auto; } .ov-gi-leader { margin: 0 12px 12px; } .ov-gi-bar-head, .ov-gi-bar-row { grid-template-columns: 16px minmax(130px,1.2fr) 70px minmax(150px,1fr) 66px; gap: 4px; min-width: 500px; } .ov-gi-mini-history { gap: 7px; } .ov-gi-leader .ov-table-scroll { overflow-x: auto; } .ov-gi-leader .ov-table { min-width: 780px; } }
@media (min-width: 1300px) {
  .ov-growth-insights { zoom: .55; width: 100%; border-width: 3px; }
  .ov-gi-head { padding: 14px 20px; gap: 10px; }
  .ov-gi-head h2 { font-size: 22px; }
  .ov-gi-kpis { gap: 7px; padding: 8px 16px; }
  .ov-gi-kpi { min-height: 54px; gap: 7px; padding: 7px 10px; }
  .ov-gi-kpi span { font-size: 10px; }
  .ov-gi-kpi small { font-size: 8px; }
  .ov-gi-kpi strong { font-size: 19px; }
  .ov-gi-zero { margin: 0 16px 10px; padding: 7px 11px; }
  .ov-gi-panels { gap: 12px; padding: 0 16px 10px; }
  .ov-gi-panel, .ov-gi-leader { padding: 12px; }
  .ov-gi-leader { padding: 7px 9px 9px; }
  .ov-gi-leader h3 { padding: 6px 9px; font-size: 13px; }
  .ov-gi-leader .ov-table-scroll { padding-top: 29px; }
  .ov-gi-leader .ov-table-scroll::before { height: 29px; }
  .ov-gi-leader .mp-tbl-tools { top: 3px; right: 4px; }
  .ov-gi-panel-head { margin: -12px -12px 8px; min-height: 29px; padding: 6px 9px; }
  .ov-gi-panel-head h3 { font-size: 13px; }
  .ov-gi-panel-head span { font-size: 8px; }
  .ov-gi-panel > p { margin-bottom: 5px; }
  .ov-gi-bar-row { min-height: 38px; }
  .ov-gi-mini-history { min-height: 31px; gap: 4px; }
  .ov-gi-mini-col { grid-template-rows: 8px 16px 7px; }
  .ov-gi-mini-col > b { font-size: 8px; }
  .ov-gi-mini-col > i { width: 11px; height: 16px; }
  .ov-gi-mini-col > small { font-size: 6px; }
  .ov-gi-leader { margin: 0 16px 8px; }
  .ov-gi-leader > p { margin-bottom: 6px; }
  .ov-gi-leader .ov-table th, .ov-gi-leader .ov-table td { padding: 3px 5px; }
  .ov-gi-foot { padding: 0 16px 8px; }
  .ov-gi-tip::after { width: 520px; max-width: min(520px, 72vw); padding: 14px 16px; font-size: 20px; }
}
.ov-table td > small,
.ov-table td > button + small,
.ov-table td > b + small {
  display: block;
  margin-top: 3px;
  color: #718192;
  font-size: 10px;
  font-weight: 600;
}
.ov-change {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 900;
}
.ov-change.up { color: #25714e; }
.ov-change.down { color: #b2353c; }
.ov-change.flat { color: #718192; }
.ov-name-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #17324d;
  font: 850 12.5px var(--sans);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #9fb4c5;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ov-name-btn:hover { color: #0e7778; text-decoration-color: currentColor; }
@media (pointer: coarse) { .ov-name-btn { display: inline-flex; align-items: center; min-height: 32px; min-width: 32px; } }   /* phone tap target (was 16px high) */
.ov-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.ov-status.good { background: #e3f5eb; color: #206a48; }
.ov-status.warn { background: #fff0cf; color: #895b12; }
.ov-status.bad { background: #fde7e8; color: #a82e37; }
.ov-detail-grid { align-items: start; }
.ov-detail-grid > .card { min-width: 0; }

/* Overview phase 1: paired Login / Disbursement heroes and one zero-action panel. */
.overview-mode .kpi-banner {
  margin: 0 0 10px;
  border-color: #b7d8f7;
  background: #f0f8ff;
  color: #35516e;
}
.overview-mode .kpis.overview-number-kpis {
  gap: 16px;
  margin-bottom: 18px;
}
.overview-mode .kpi.ov-hero-kpi {
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-width: 0;
  min-height: 142px;
  padding: 16px 18px;
  border: 1px solid #9fc7ef;
  border-radius: 14px;
  background: #f4f8ff;
  box-shadow: 0 8px 0 -5px #b9d8ff, 0 18px 28px -24px rgba(15, 60, 101, .65);
}
.overview-mode .kpi.ov-performance-trigger { width: 100%; appearance: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.overview-mode .kpi.ov-performance-trigger:hover { border-color: #2563eb; box-shadow: 0 8px 0 -5px #b9d8ff, 0 20px 32px -22px rgba(15, 60, 101, .78); }
.overview-mode .kpi.ov-performance-trigger:focus-visible { outline: 3px solid rgba(37, 99, 235, .38); outline-offset: 3px; }
.overview-mode .kpi.ov-hero-disb { border-color: #8ec9d9; background: #f1fbfb; box-shadow: 0 8px 0 -5px #addfe3, 0 18px 28px -24px rgba(11, 87, 91, .56); }
.overview-mode .kpi.ov-hero-value { border-color: #c9b8ef; background: #f7f3ff; box-shadow: 0 8px 0 -5px #dfd1f7, 0 18px 28px -24px rgba(88, 49, 130, .54); }
.overview-mode .kpi.ov-hero-kpi::before { content: ""; display: block; position: absolute; inset: 0 auto 0 0; width: 4px; background: #3b82f6; }
.overview-mode .kpi.ov-hero-disb::before { background: #0f9ca8; }
.overview-mode .kpi.ov-hero-value::before { background: #7c3aed; }
.overview-mode .kpi.ov-hero-value .kpi-label, .overview-mode .kpi.ov-hero-value .kpi-val { color: #54289b; }
.overview-mode .kpi.ov-zero-trigger::before { background: #be123c; }
.overview-mode .ov-hero-kpi .kpi-top { margin: 0; }
.overview-mode .ov-hero-kpi .kpi-label { color: #174b77; font-size: 12px; font-weight: 800; letter-spacing: .055em; }
.ov-hero-range { color: #496985; font-size: 11px; font-weight: 700; white-space: nowrap; }
.overview-mode .ov-hero-kpi .kpi-val { align-self: flex-start; margin-top: 8px; color: #0b3b67; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.overview-mode .ov-hero-kpi .kpi-foot { min-width: 0; margin-top: 5px; color: #405d79; font-size: 11px; line-height: 1.35; }
.overview-mode .ov-hero-kpi .kpi-foot > span:first-child { min-width: 0; white-space: normal; }
.overview-mode .ov-hero-kpi .delta { padding: 5px 10px; font-size: 15px; font-weight: 850; line-height: 1; }
.overview-mode .ov-hero-kpi .delta[data-tooltip] { position: relative; z-index: 3; cursor: help; }
.overview-mode .ov-hero-kpi .delta[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 90; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; padding: 7px 9px; border: 1px solid #17324d; border-radius: 6px; background: #17324d; color: #fff; font: 700 11px/1.35 var(--sans); text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 150ms ease, transform 150ms ease; }
.overview-mode .ov-hero-kpi .delta[data-tooltip]:hover::after { opacity: 1; transform: translateY(0); }
.ov-hero-rate { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(36, 107, 163, .22); }
.ov-hero-rate span { color: #4d6d88; font-size: 11px; font-weight: 700; }
.ov-hero-rate b { color: #0b3b67; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.overview-mode button.ov-zero-trigger {
  width: 100%;
  overflow: visible;
  color: #4d1823;
  border-color: #efb0ba;
  background: #fff7f8;
  box-shadow: 0 8px 0 -5px #f1bbc3, 0 18px 28px -24px rgba(121, 25, 42, .54);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.overview-mode button.ov-zero-trigger .kpi-label { color: #8e1d32; }
.overview-mode button.ov-zero-trigger .ov-hero-range { color: #8f4a56; }
.ov-zero-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 8px; }
.ov-zero-card-metrics > span { display: grid; min-width: 0; gap: 3px; }
.ov-zero-card-metrics > span + span { padding-left: 12px; border-left: 1px solid #efc3ca; }
.ov-zero-card-metrics b { color: #9f1239; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ov-zero-card-metrics small { color: #7e3340; font-size: 10.5px; font-weight: 750; line-height: 1.25; }
.ov-zero-tip { position: relative; z-index: 4; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 3px; border: 1px solid #9f1239; border-radius: 50%; background: #fff; color: #9f1239; font: 800 10px/1 var(--sans); cursor: help; vertical-align: -1px; }
.ov-zero-tip::after { content: attr(data-tooltip); position: absolute; z-index: 90; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 240px; padding: 7px 9px; border: 1px solid #4d1823; border-radius: 6px; background: #4d1823; color: #fff; font: 700 11px/1.35 var(--sans); text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 150ms ease, transform 150ms ease; }
.ov-zero-card-metrics > span + span .ov-zero-tip::after { right: 0; left: auto; }
.ov-zero-tip::after { display: none; }
.ov-zero-tip:hover::after, .ov-zero-tip:focus-visible::after { display: block; opacity: 1; transform: translateY(0); animation: mpTipIn 150ms ease; }
@keyframes mpTipIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.overview-number-kpis > .ov-hero-kpi:last-child .ov-zero-tip::after { left: auto; right: 0; }   /* last card: open to the left, never past the screen edge */
.ov-zero-card-action { align-items: center; border-top-color: rgba(159, 18, 57, .2); }
.ov-zero-card-action span { color: #8e1d32; }
.ov-zero-card-action svg { width: 18px; height: 18px; flex: none; transition: transform 180ms cubic-bezier(.22, 1, .36, 1); }
.ov-zero-card-action path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ov-zero-trigger.is-open .ov-zero-card-action svg { transform: rotate(180deg); }
.overview-mode button.ov-zero-trigger.is-open { border-color: #d85268; background: #fff1f3; box-shadow: 0 8px 0 -5px #e596a3, 0 18px 28px -24px rgba(121, 25, 42, .62); }
@media (hover: hover) and (pointer: fine) {
  .overview-mode button.ov-zero-trigger:hover { transform: translateY(-2px); border-color: #d85268; box-shadow: 0 10px 0 -5px #e596a3, 0 22px 32px -23px rgba(121, 25, 42, .66); }
}
.overview-mode button.ov-zero-trigger:focus-visible { outline: 3px solid rgba(190, 24, 93, .32); outline-offset: 3px; }
.ov-zero-shell { min-width: 0; }
.overview-mode .ov-zero-shell.is-open { grid-column: 1 / -1; overflow: hidden; border: 1px solid #d85268; border-radius: 14px; background: #fff7f8; box-shadow: 0 10px 0 -5px #e596a3, 0 22px 32px -23px rgba(121, 25, 42, .5); }
.overview-mode .ov-zero-shell.is-open > .ov-zero-trigger { border: 0; border-bottom: 1px solid #efc3ca; border-radius: 13px 13px 0 0; box-shadow: none; transform: none; }
.overview-mode .ov-zero-shell.is-open .ov-zero-kpi { border: 0; border-radius: 0; }
.ov-zero-modal { position: fixed; inset: 0; z-index: 100003; display: grid; place-items: center; padding: 24px; }
html.ov-zero-modal-open, body.ov-zero-modal-open { overflow: hidden; scrollbar-gutter: stable; }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  body.ov-zero-modal-open .team-edge { width: auto; min-width: 56px; height: 30px; }
  body.ov-zero-modal-open .team-edge span { display: inline; writing-mode: horizontal-tb; transform: none; }
}
body.ov-zero-modal-open .metric-top-tab, body.ov-zero-modal-open .metric-drop { visibility: hidden; pointer-events: none; }
.ov-zero-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 35, 55, .48); cursor: pointer; }
.ov-zero-modal-card { position: relative; z-index: 1; width: min(980px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #d85268; border-radius: 16px; background: #fff; box-shadow: 0 24px 65px rgba(15, 23, 42, .35); }
.ov-zero-modal-card .ov-zero-kpi { border: 0; border-radius: 16px; }
.ov-zero-modal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 6px 10px 3px; background: #fff1d6; }
.ov-zero-team-filter { min-height: 36px; padding: 5px 12px; border: 1px solid currentColor; border-radius: 8px; background: transparent; color: #17324d; font: 800 11px var(--sans); cursor: pointer; }
.ov-zero-team-filter:hover { background: rgba(23, 50, 77, .1); }
.ov-zero-team-filter:focus-visible { outline: 3px solid #2867df; outline-offset: 2px; }
.ov-zero-modal-close { position: static; min-height: 36px; margin: 0; padding: 5px 12px; border: 1px solid #b94a5c; border-radius: 8px; background: #fff7f8; color: #8e1d32; font: 800 11px var(--sans); cursor: pointer; }
.ov-zero-modal-close span { margin-left: 4px; font-size: 16px; line-height: 0; vertical-align: -1px; }
.ov-zero-modal-close:focus-visible { outline: 3px solid rgba(190, 24, 93, .32); outline-offset: 2px; }
.ov-zero-modal-card .ov-zero-head { padding: 14px 18px 12px; background: #fff1d6; border-bottom-color: #e6c980; }
.ov-zero-modal-card .ov-zero-head h2 { color: #111111; font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.ov-zero-modal-card .ov-zero-head p, .ov-zero-modal-card .ov-zero-head .ov-select { color: #111111; }
.ov-zero-scope-inline { min-width: 0; margin-left: 12px; padding-left: 12px; border-left: 1px solid #d7c98f; }
.ov-zero-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; }
.ov-zero-scope-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: #e7efff; color: #1f5ed8; font-size: 12px; font-weight: 800; }
.ov-zero-scope-chip.is-current { background: #2867df; color: #ffffff; }
.ov-zero-scope-arrow { color: #111111; font-size: 18px; font-weight: 800; line-height: 1; }
.ov-zero-review-controls { display: flex; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.ov-zero-review-controls .ov-select { min-width: 172px; }
.ov-zero-review-controls .ov-select input { min-height: 38px; box-sizing: border-box; padding: 6px 10px; border: 1px solid #9db8d0; border-radius: 9px; background: #fff; color: #111; font: 700 13px var(--sans); }
.ov-zero-reset { min-height: 38px; padding: 6px 12px; border: 1px solid #b94a5c; border-radius: 9px; background: #fff; color: #8e1d32; font: 800 12px var(--sans); cursor: pointer; }
.ov-zero-reset:hover { background: #fff1f3; }
.ov-zero-reset:focus-visible { outline: 3px solid rgba(190, 24, 93, .32); outline-offset: 2px; }
.ov-zero-modal-card .ov-zero-population { padding: 7px 18px; background: #fff9ec; border-bottom-color: #ead7a8; }
.ov-zero-modal-card .ov-zero-population span, .ov-zero-modal-card .ov-zero-population b, .ov-zero-modal-card .ov-zero-population small { color: #111111; }
.ov-zero-modal-card .ov-zero-group { padding: 11px; }
.ov-zero-modal-card .ov-zero-group h3 { padding: 6px 8px; border-radius: 7px; background: #e8f4ff; color: #111111; font-size: 13px; }
.ov-zero-modal-card .ov-zero-tile { min-height: 78px; padding: 9px; }
.ov-zero-modal-card .ov-zero-tile b { margin: 4px 0 2px; font-size: 26px; }
.ov-zero-modal-card .ov-zero-tile-label, .ov-zero-modal-card .ov-zero-tile small { color: #111111; }
.ov-zero-modal-card .ov-zero-tile[data-tooltip] { position: relative; z-index: 1; }
.ov-zero-modal-card .ov-zero-tile[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 10; left: 10px; bottom: calc(100% + 8px); width: max-content; max-width: 250px; padding: 8px 10px; border: 1px solid #111111; border-radius: 7px; background: #111111; color: #ffffff; font: 700 11px/1.4 var(--sans); text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 150ms ease, transform 150ms ease; }
.ov-zero-modal-card .ov-zero-tile[data-tooltip]:hover::after, .ov-zero-modal-card .ov-zero-tile[data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(0); }
@media (hover: none) { .ov-zero-modal-card .ov-zero-tile[data-tooltip]::after { display: none; } }
.ov-zero-modal-card .ov-zero-foot { background: #fff1d6; border-top-color: #e6c980; }
.ov-zero-modal-card .ov-zero-foot p { color: #111111; }
.ov-zero-report-button { min-height: 38px; padding: 6px 12px; border: 1px solid #17324d; border-radius: 9px; background: #17324d; color: #fff; font: 800 12px var(--sans); cursor: pointer; }
.ov-zero-report-button:hover { background: #0b2138; }
.ov-zero-report-button:focus-visible, .ov-zero-report-head button:focus-visible { outline: 3px solid rgba(23, 50, 77, .3); outline-offset: 2px; }
.ov-zero-report-modal { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 5px; }
.ov-zero-report-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 35, 55, .66); cursor: pointer; }
.ov-zero-report-modal-card { position: relative; z-index: 1; width: min(1580px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); overflow-x: hidden; overflow-y: auto; border: 1px solid #111; background: #fff; box-shadow: 0 24px 56px rgba(0, 0, 0, .28); }
.ov-performance-report-modal .ov-zero-report-modal-card { display: flex; flex-direction: column; width: calc((100vw - 40px) / .75); max-width: none; height: calc((100dvh - 48px) / .75); max-height: calc((100dvh - 48px) / .75); overflow: hidden; zoom: .75; }
body:has(.ov-performance-report-modal) .filter-master-row { visibility: hidden; }
.ov-performance-report { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.ov-performance-report > .ov-zero-report-head, .ov-performance-report > .mp-tbl-tools, .ov-performance-report > .ov-zero-report-note { flex-shrink: 0; }
.ov-zero-report { margin: 0; background: #fff; overflow: visible; }
.ov-zero-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 10px; background: #17324d; border-bottom: 3px solid #f2bd25; color: #fff; }
.ov-zero-report-actions, .ov-zero-exec-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ov-zero-report-head h3 { margin: 0; color: #fff; font-size: 15px; font-weight: 850; }
.ov-zero-report-head p { margin: 3px 0 0; color: rgba(255,255,255,.86); font-size: 11px; font-weight: 650; }
.ov-zero-report-head button { min-height: 32px; padding: 5px 10px; border: 1px solid #fff; border-radius: 6px; background: #fff; color: #17324d; font: 800 11px var(--sans); cursor: pointer; }
.ov-zero-report-head .ov-zero-team-filter { border-color: #dbeafe; background: #dbeafe; }
.ov-zero-report-scroll { width: 100%; overflow: visible; }
.ov-zero-report table { width: 100%; max-width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: #111; font-size: 12px; --ov-zero-report-header-row-height: 34px; }
.ov-zero-report thead tr { height: var(--ov-zero-report-header-row-height); }
.ov-zero-report thead th { position: sticky; top: 0; z-index: 5; }
.ov-zero-report thead tr:first-child th { z-index: 6; }
.ov-zero-report thead tr:nth-child(2) th { top: var(--ov-zero-report-header-row-height); }
.ov-zero-report th { padding: 5px 3px; border-right: 1px solid #111; border-bottom: 1px solid #111; background: #ffe18a; color: #111; font-size: 11px; font-weight: 850; letter-spacing: 0; line-height: 1.15; overflow-wrap: anywhere; text-align: center; text-transform: uppercase; }
.ov-zero-report-header-label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; }
.ov-zero-report-tip { position: relative; z-index: 8; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: rgba(255,255,255,.92); color: inherit; font: 900 10px/1 var(--sans); text-transform: none; cursor: help; }
.ov-zero-report-tip::after { content: attr(data-tooltip); position: absolute; z-index: 20; top: calc(100% + 7px); left: 50%; width: max-content; max-width: min(300px, 70vw); padding: 8px 10px; border: 1px solid #111827; border-radius: 6px; background: #111827; color: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.24); font: 700 11px/1.4 var(--sans); letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; opacity: 0; pointer-events: none; transform: translate(-50%, -3px); transition: opacity 140ms ease, transform 140ms ease; }
.ov-zero-report-tip:hover::after, .ov-zero-report-tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.ov-zero-report-tip:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
.ov-zero-report th:first-child .ov-zero-report-tip::after { left: 0; transform: translate(0, -3px); }
.ov-zero-report th:first-child .ov-zero-report-tip:hover::after, .ov-zero-report th:first-child .ov-zero-report-tip:focus-visible::after { transform: translate(0, 0); }
.ov-zero-report th:last-child .ov-zero-report-tip::after { right: 0; left: auto; transform: translate(0, -3px); }
.ov-zero-report th:last-child .ov-zero-report-tip:hover::after, .ov-zero-report th:last-child .ov-zero-report-tip:focus-visible::after { transform: translate(0, 0); }
.ov-zero-report thead tr:first-child th:first-child { width: 19%; text-align: center; }
.ov-zero-report .ov-zero-report-groups th { background: #17324d; color: #fff; text-align: center; }
.ov-zero-report thead tr:first-child th:first-child, .ov-zero-report thead tr:nth-child(2) th:nth-child(-n+4) { background: #dbeafe; color: #143861; }
.ov-zero-report thead tr:nth-child(2) th:nth-child(n+5):nth-child(-n+6) { background: #eadcff; color: #4b237f; }
.ov-zero-report .ov-zero-report-groups th:nth-child(2) { background: #174c88; }
.ov-zero-report .ov-zero-report-groups th:nth-child(3) { background: #623a91; }
.ov-zero-report thead tr:first-child th, .ov-zero-report thead tr:nth-child(2) th:nth-child(4), .ov-zero-report thead tr:nth-child(2) th:nth-child(6), .ov-zero-report tbody td:nth-child(1), .ov-zero-report tfoot td:nth-child(1), .ov-zero-report tbody td:nth-child(5), .ov-zero-report tfoot td:nth-child(5), .ov-zero-report tbody td:nth-child(7), .ov-zero-report tfoot td:nth-child(7) { border-right: 2px solid #111; }
.ov-zero-report td { padding: 3px 4px; border-right: 1px solid #111; border-bottom: 1px solid #111; background: #fff; vertical-align: middle; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.ov-zero-report th:last-child, .ov-zero-report td:last-child { border-right: 2px solid #111; }
.ov-performance-report-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.ov-performance-report .ov-performance-report-scroll table { min-width: 1280px; }
.ov-performance-report table { min-width: 1280px; }
.ov-performance-report thead tr:first-child th:first-child { width: 18%; }
.ov-performance-report thead tr:first-child th:nth-child(2) { background: #174c88; }
.ov-performance-report thead tr:first-child th:nth-child(3) { background: #087f8c; }
.ov-performance-report thead tr:first-child th:nth-child(4) { background: #623a91; }
.ov-performance-report thead tr:first-child th:nth-child(5) { background: #a44f12; }
.ov-performance-report thead tr:nth-child(2) th:nth-child(-n+3) { background: #dbeafe; color: #143861; }
.ov-performance-report thead tr:nth-child(2) th:nth-child(n+4):nth-child(-n+6) { background: #d8f3f5; color: #0d5961; }
.ov-performance-report thead tr:nth-child(2) th:nth-child(n+7):nth-child(-n+9) { background: #eadcff; color: #4b237f; }
.ov-performance-report thead tr:nth-child(2) th:nth-child(n+10):nth-child(-n+12) { background: #ffead5; color: #713709; }
.ov-performance-report thead tr:nth-child(2) th, .ov-performance-report tbody td, .ov-performance-report tfoot td { border-right-width: 1px; }
.ov-performance-report thead tr:nth-child(2) th:nth-child(3n), .ov-performance-report tbody td:nth-child(3n+1), .ov-performance-report tfoot td:nth-child(3n+1) { border-right-width: 2px; }
.ov-performance-report tbody td:first-child, .ov-performance-report tfoot td:first-child { border-right-width: 2px; }
.ov-performance-growth { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 3px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 900; white-space: nowrap; }
.ov-performance-growth.up { background: #dcfce7; color: #137a3a; }
.ov-performance-growth.down { background: #fee2e2; color: #b42318; }
.ov-performance-growth.flat { background: #e5e7eb; color: #475569; }
.ov-zero-report tbody tr:last-child td { border-bottom: 0; }
.ov-zero-report tbody tr:nth-child(even) td { background: #fffaf0; }
.ov-zero-report .num { font-size: 12px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; }
.ov-zero-report .num.is-risk { color: #b42318; }
.ov-zero-report-count { display: block; width: 100%; min-height: 18px; padding: 0 2px; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; font-variant-numeric: inherit; cursor: pointer; }
.ov-zero-report-count:hover { background: #dbeafe; color: #0b3872; text-decoration: underline; }
.ov-zero-report-count:focus-visible { outline: 2px solid #0b3872; outline-offset: -1px; }
.ov-zero-report-exec td { background: #eaf4ff !important; color: #112a44; font-weight: 700; }
.ov-zero-report-exec td:first-child { text-align: center; }
.ov-zero-report-zone td { background: #ed7d31 !important; color: #111; font-weight: 900; }
.ov-zero-report-zone.ov-zero-report-ka td { background: #ffc000 !important; }
.ov-zero-report-karnataka td { background: #ed7d31 !important; color: #111; font-weight: 900; border-top: 1px solid #111; }
.ov-zero-report-zone .num.is-risk, .ov-zero-report-karnataka .num.is-risk, .ov-zero-report-total .num.is-risk { color: #111; }
.ov-zero-report-total td { border-top: 1px solid #111; border-bottom: 1px solid #111; background: #ffc845 !important; color: #111; }
.ov-zero-report-note { margin: 0; padding: 9px 11px; border-top: 1px solid #111; background: #fff1d6; color: #111; font-size: 11px; font-weight: 700; }
.ov-zero-exec-modal { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 22px; }
.ov-zero-exec-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, .72); cursor: pointer; }
.ov-zero-exec-card { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(1080px, calc(100vw - 44px)); max-height: calc(100dvh - 44px); overflow: hidden; border: 1px solid #991b1b; border-radius: 12px; background: #fff; color: #111; box-shadow: 0 25px 70px rgba(0, 0, 0, .42); }
.ov-zero-exec-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 16px; background: #b91c1c; color: #fff; }
.ov-zero-exec-card h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 850; }
.ov-zero-exec-card header p { margin: 4px 0 0; color: #fff; font-size: 11px; font-weight: 650; }
.ov-zero-exec-card header button { width: 30px; height: 30px; flex: none; border: 1px solid #fff; border-radius: 7px; background: transparent; color: #fff; font: 800 19px var(--sans); cursor: pointer; }
.ov-zero-exec-card header .ov-zero-team-filter { width: auto; padding: 5px 10px; font-size: 11px; }
.ov-zero-exec-card header button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ov-zero-exec-summary { padding: 9px 16px; border-bottom: 1px solid #d7dce5; background: #fff7f7; font-size: 12px; }
.ov-zero-exec-vintage { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px 16px; border-bottom: 1px solid #d7dce5; background: #fff; color: #111; }
.ov-zero-exec-vintage > span { margin-right: 3px; color: #111; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.ov-zero-exec-vintage button { border: 1px solid #111; border-radius: 999px; padding: 5px 8px; background: #fff; color: #111; font: 750 11px var(--sans); cursor: pointer; }
.ov-zero-exec-vintage button b { margin-left: 3px; font-weight: 900; }
.ov-zero-exec-vintage button:hover:not(:disabled), .ov-zero-exec-vintage button.is-active { background: #111; color: #fff; }
.ov-zero-exec-vintage button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.ov-zero-exec-vintage button:disabled { border-color: #cbd5e1; color: #94a3b8; cursor: not-allowed; }
.ov-zero-exec-scroll { min-height: 0; overflow: auto; }
.ov-zero-exec-card table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.ov-performance-exec-modal .ov-performance-exec-card { width: min(2000px, calc((100vw - 44px) / .75)); max-height: calc((100dvh - 44px) / .75); zoom: .75; }
.ov-performance-exec-card > header { background: #17324d; }
.ov-performance-exec-card header .ov-zero-team-filter { width: auto; padding: 5px 10px; font-size: 11px; }
.ov-performance-exec-scroll { min-height: 0; overflow: auto; }
.ov-performance-exec-card .ov-performance-exec-scroll table { min-width: 1500px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.ov-performance-exec-card .ov-performance-exec-scroll th, .ov-performance-exec-card .ov-performance-exec-scroll td { width: auto; padding: 7px 4px; border-right: 1px solid #a7b6c7; border-bottom: 1px solid #a7b6c7; text-align: center; overflow-wrap: anywhere; }
.ov-performance-exec-card .ov-performance-exec-scroll th[rowspan], .ov-performance-exec-card .ov-performance-exec-scroll td:nth-child(1) { width: 3%; }
.ov-performance-exec-card .ov-performance-exec-scroll th[rowspan]:nth-child(2), .ov-performance-exec-card .ov-performance-exec-scroll td:nth-child(2) { width: 14%; text-align: center; }
.ov-performance-exec-card .ov-performance-exec-scroll th[rowspan]:nth-child(3), .ov-performance-exec-card .ov-performance-exec-scroll td:nth-child(3) { width: 9%; text-align: center; }
.ov-performance-exec-card .ov-performance-exec-scroll .ov-zero-exec-sm-group th { width: auto; color: #000; font-weight: 900; text-align: center; }
.ov-performance-exec-card .ov-performance-exec-scroll .ov-zero-exec-sm-group th b, .ov-performance-exec-card .ov-performance-exec-scroll .ov-zero-exec-sm-group th span { color: #000; font-weight: 900; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:first-child { height: 44px; }
.ov-performance-exec-card .ov-performance-exec-scroll thead th { position: sticky; z-index: 3; font-size: 15px; font-weight: 850; line-height: 1.15; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:first-child th { top: 0; z-index: 4; background: #17324d; color: #fff; border-right: 2px solid #fff; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:first-child th:nth-child(4) { background: #174c88; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:first-child th:nth-child(5) { background: #087f8c; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:first-child th:nth-child(6) { background: #623a91; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:first-child th:nth-child(7) { background: #a44f12; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:nth-child(2) th { top: 44px; height: 40px; background: #dbeafe; color: #143861; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:nth-child(2) th:nth-child(n+4):nth-child(-n+6) { background: #d8f3f5; color: #0d5961; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:nth-child(2) th:nth-child(n+7):nth-child(-n+9) { background: #eadcff; color: #4b237f; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:nth-child(2) th:nth-child(n+10):nth-child(-n+12) { background: #ffead5; color: #713709; }
.ov-performance-exec-card .ov-performance-exec-scroll thead tr:nth-child(2) th:nth-child(3n), .ov-performance-exec-card .ov-performance-exec-scroll tbody td:nth-child(3n+3) { border-right: 2px solid #536779; }
.ov-performance-person-status { display: block; color: #475569; font-size: 10px; }
.ov-performance-report .ov-zero-report-groups .ov-zero-report-tip { color: #17324d; }
.ov-zero-exec-card th, .ov-zero-exec-card td { padding: 7px 9px; border-bottom: 1px solid #d7dce5; color: #111; text-align: center; }
.ov-zero-exec-card th { position: sticky; top: 0; background: #f4e4e4; font-size: 11px; text-transform: uppercase; }
.ov-zero-exec-card th:first-child, .ov-zero-exec-card td:first-child { width: 5%; }
.ov-zero-exec-card th:nth-child(2), .ov-zero-exec-card td:nth-child(2) { width: 22%; text-align: left; }
.ov-zero-exec-card th:nth-child(3), .ov-zero-exec-card td:nth-child(3) { width: 15%; text-align: left; }
.ov-zero-exec-card tbody tr:nth-child(even) { background: #f8fafc; }
.ov-zero-exec-card .ov-zero-exec-sm-group th { position: static; width: auto; padding: 7px 9px; border-top: 1px solid #94a3b8; border-bottom: 1px solid #94a3b8; background: #dbeafe; color: #111; text-align: left; text-transform: none; }
.ov-zero-exec-sm-group th b { color: #111; }
.ov-zero-exec-sm-group th span { margin-left: 9px; color: #111; font-size: 11px; font-weight: 700; }
.ov-zero-exec-card .num { font-variant-numeric: tabular-nums; }
.ov-zero-exec-empty { padding: 20px !important; text-align: center !important; }
.ov-zero-exec-card footer { padding: 9px 16px; border-top: 1px solid #d7dce5; background: #fff7f7; font-size: 11px; }

.ov-zero-kpi {
  overflow: hidden;
  border: 1px solid #b9d8f4;
  border-radius: 14px;
  background: #ffffff;
  color: #122c45;
}
@keyframes ov-zero-reveal {
  from { opacity: .72; transform: translateY(-8px); clip-path: inset(0 0 8% 0 round 14px); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0 round 14px); }
}
@media (prefers-reduced-motion: no-preference) { .ov-zero-kpi { animation: ov-zero-reveal 260ms cubic-bezier(.22, 1, .36, 1) both; } }
.ov-zero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 15px; border-bottom: 1px solid #d8e8f5; }
.ov-zero-head h2 { margin: 0; color: #0f3659; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ov-zero-head p { max-width: 76ch; margin: 6px 0 0; color: #526d86; font-size: 12px; font-weight: 600; line-height: 1.45; }
.ov-zero-head .ov-select { min-width: 172px; }
.ov-zero-population { display: flex; align-items: baseline; gap: 8px; padding: 10px 22px; border-bottom: 1px solid #d8e8f5; background: #f8fbff; }
.ov-zero-population span { color: #526d86; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ov-zero-population b { color: #0f3659; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-zero-population small { color: #647b91; font-size: 11px; font-weight: 600; }
.ov-zero-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ov-zero-group { min-width: 0; padding: 16px; }
.ov-zero-group:nth-child(1) { grid-column: 1; grid-row: 1; }
.ov-zero-group:nth-child(2) { grid-column: 1; grid-row: 2; border-top: 1px solid #d8e8f5; }
.ov-zero-group:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid #d8e8f5; }
.ov-zero-group h3 { margin: 0 0 10px; color: #3a5874; font-size: 12px; font-weight: 800; line-height: 1.25; }
.ov-zero-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ov-zero-chart { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; align-content: stretch; gap: 11px; background: #fbfdff; }
.ov-zero-chart h3 { margin-bottom: 0; }
.ov-zero-chart > p { margin: -4px 0 0; color: #111; font-size: 10px; font-weight: 650; line-height: 1.35; }
.ov-zero-team-bars { display: grid; gap: 11px; max-height: 270px; padding-right: 4px; overflow-y: auto; }
.ov-zero-chart > .ov-zero-team-bars { max-height: none; align-content: space-evenly; }
.ov-zero-team-group { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #d8e8f5; }
.ov-zero-team-group:last-child { padding-bottom: 0; border-bottom: 0; }
.ov-zero-team-group h4 { margin: 0; padding: 5px 7px; border-radius: 5px; background: #e8f4ff; color: #111; font-size: 10px; font-weight: 850; line-height: 1.25; }
.ov-zero-team-drill-button { width: 100%; border: 1px solid #0f3659; border-radius: 7px; padding: 8px 10px; background: #fff; color: #111; font: 800 11px var(--sans); cursor: pointer; }
.ov-zero-team-drill-button:hover, .ov-zero-team-drill-button:focus-visible { background: #e8f4ff; }
.ov-zero-team-drill-button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.ov-zero-team-drill { display: grid; gap: 8px; padding: 9px; border: 1px solid #b6d5ef; border-radius: 8px; background: #fff; }
.ov-zero-team-drill > h4 { margin: 0; color: #111; font-size: 11px; font-weight: 850; }
.ov-zero-team-drill .ov-zero-team-bars { max-height: 300px; }
.ov-zero-bar { display: grid; gap: 5px; color: #111; }
.ov-zero-bar > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #111; font-size: 12px; }
.ov-zero-bar b, .ov-zero-bar span, .ov-zero-bar small { color: #111; }
.ov-zero-bar b { font-weight: 850; }
.ov-zero-bar span { font-weight: 850; font-variant-numeric: tabular-nums; }
.ov-zero-bar-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.ov-zero-bar-track i { display: block; height: 100%; border-radius: inherit; background: #c0231a; transition: width 240ms ease; }
.ov-zero-bar small { font-size: 10px; font-weight: 650; }
.ov-zero-tile {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  background: #ffffff;
  color: #17324d;
  font: inherit;
  text-align: left;
}
button.ov-zero-tile { cursor: pointer; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.ov-zero-tile-label { color: #425f79; font-size: 11px; font-weight: 800; line-height: 1.3; }
.ov-zero-tile b { display: block; margin: 6px 0 4px; color: #17324d; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ov-zero-tile small { color: #607990; font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.ov-zero-tile.critical { border-color: #f5b9bd; background: #fff7f7; }
.ov-zero-tile.critical b { color: #b42318; }
.ov-zero-tile.watch { border-color: #efd08b; background: #fffaf0; }
.ov-zero-tile.watch b { color: #9a6700; }
.ov-zero-tile.positive { border-color: #b8dbc4; background: #f6fcf8; }
.ov-zero-tile.positive b { color: #197043; }
.ov-zero-tile.is-unavailable { border-style: dashed; background: #f8fafc; }
.ov-zero-tile.is-unavailable b { color: #64748b; }
.ov-zero-unavailable { display: grid; gap: 4px; min-height: 100px; padding: 14px; border: 1px dashed #b8c7d5; border-radius: 10px; background: #f8fafc; color: #566d82; font-size: 11px; line-height: 1.4; }
.ov-zero-unavailable b { color: #40576c; font-size: 12px; }
.ov-zero-selection, .ov-exec-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 14px; padding: 10px 12px; border: 1px solid #b6d5ee; border-radius: 9px; background: #f1f8ff; color: #294e70; font-size: 12px; font-weight: 650; }
.ov-zero-selection b, .ov-exec-filter b { font-weight: 800; }
.ov-zero-selection button, .ov-exec-filter button { min-height: 32px; padding: 5px 10px; border: 1px solid #79add8; border-radius: 7px; background: #ffffff; color: #0c4f82; font: 800 11px var(--sans); cursor: pointer; }
.ov-zero-foot { display: flex; gap: 16px; justify-content: space-between; padding: 12px 22px; border-top: 1px solid #d8e8f5; background: #f8fbff; }
.ov-zero-foot p { margin: 0; color: #587087; font-size: 11px; font-weight: 600; line-height: 1.45; }
.ov-zero-foot p:first-child { max-width: 76ch; }
@media (hover: hover) and (pointer: fine) {
  button.ov-zero-tile:hover { transform: translateY(-2px); border-color: #4f93c7; box-shadow: 0 8px 16px -13px rgba(25, 83, 129, .72); }
  .ov-zero-selection button:hover, .ov-exec-filter button:hover { border-color: #0c4f82; background: #eaf5ff; }
}
.ov-zero-tile:focus-visible, .ov-zero-selection button:focus-visible, .ov-exec-filter button:focus-visible { outline: 3px solid rgba(3, 105, 161, .34); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { button.ov-zero-tile { transition: none; } button.ov-zero-tile:hover { transform: none; } }

@media (max-width: 1180px) {
  .ov-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-point-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-zero-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .overview-command { gap: 12px; }
  .overview-command .card-head { flex-direction: column; }
  .ov-select { width: 100%; min-width: 0; }
  .ov-select select { width: 100%; }
  .ov-productivity-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-productivity-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .17); }
  .ov-productivity-strip > div:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .17); }
  .ov-detail-grid { grid-template-columns: 1fr; }
  .overview-mode .kpis.overview-number-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-mode .kpis.overview-number-kpis .ov-zero-trigger, .overview-mode .kpis.overview-number-kpis .ov-zero-shell { grid-column: auto; }
  .ov-zero-head { flex-direction: column; }
  .ov-zero-modal { padding: 12px; }
  .ov-zero-modal-card { width: min(100%, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
  .ov-zero-modal-card .ov-zero-head h2 { font-size: 24px; }
  .ov-zero-review-controls { width: 100%; align-items: stretch; flex-direction: column; }
  .ov-zero-scope { gap: 5px; }
  .ov-zero-scope-inline { width: 100%; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #ead7a8; border-left: 0; }
  .ov-zero-scope-chip { min-height: 28px; padding: 4px 9px; font-size: 11px; }
  .ov-zero-review-controls .ov-select { width: 100%; min-width: 0; }
  .ov-zero-review-controls .ov-select input { width: 100%; }
  .ov-zero-reset { width: 100%; }
  .ov-zero-report-button { width: 100%; }
  .ov-zero-report-modal { padding: 12px; }
  .ov-zero-report-modal-card { width: min(100%, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
  .ov-zero-report { margin: 0; }
  .ov-zero-report-head { align-items: flex-start; flex-direction: column; }
  .ov-zero-report-actions { width: 100%; justify-content: space-between; }
  .ov-zero-report table { width: 100%; min-width: 0; }
  .ov-zero-report th { font-size: 10px; padding: 6px 2px; }
  .ov-zero-report td { font-size: 11px; padding: 5px 2px; }
  .ov-zero-exec-modal { padding: 10px; }
  .ov-zero-exec-card { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .ov-zero-exec-vintage { padding: 8px 10px; gap: 5px; }
  .ov-zero-exec-vintage button { padding: 4px 7px; font-size: 10px; }
  .ov-zero-exec-card table { min-width: 700px; }
  .ov-zero-head .ov-select { width: 100%; min-width: 0; }
  .ov-zero-groups { grid-template-columns: 1fr; }
  .ov-zero-group:nth-child(1), .ov-zero-group:nth-child(2), .ov-zero-group:nth-child(3) { grid-column: auto; grid-row: auto; }
  .ov-zero-group + .ov-zero-group { border-top: 1px solid #d8e8f5; border-left: 0; }
  .ov-zero-chart { grid-template-rows: auto; align-content: start; }
  .ov-zero-chart > .ov-zero-team-bars { align-content: start; }
  .ov-zero-foot { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .ov-zero-modal-card .ov-zero-population { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; }
  .ov-zero-modal-card .ov-zero-population small, .ov-zero-modal-card .ov-zero-scope-inline { grid-column: 1 / -1; }
  .ov-zero-modal-card .ov-zero-population small { line-height: 1.35; }
  .ov-zero-modal-close, .ov-zero-team-filter, .ov-zero-reset, .ov-zero-report-button,
  .ov-zero-report-head button, .ov-zero-exec-card header button { min-height: 44px; }
  .ov-zero-exec-card header button { min-width: 44px; }
  .ov-zero-head h2 { overflow-wrap: anywhere; }
  .ov-metric-grid,
  .ov-point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ov-metric { padding: 11px 10px; }
  .ov-metric b { font-size: 25px; }
  .ov-metric span { font-size: 9.5px; }
  .ov-productivity-strip > div { padding: 10px; }
  .ov-productivity-strip b { font-size: 19px; }
  .ov-table { font-size: 12px; }
  .ov-table th, .ov-table td { padding: 9px; }
  .overview-mode .kpis.overview-number-kpis { grid-template-columns: 1fr; }
  .overview-mode .kpis.overview-number-kpis .ov-zero-trigger, .overview-mode .kpis.overview-number-kpis .ov-zero-shell { grid-column: auto; }
  .overview-mode .kpi.ov-hero-kpi { min-height: 136px; padding: 15px; }
  .overview-mode .ov-hero-kpi .kpi-val { font-size: 32px; }
  .ov-zero-card-metrics b { font-size: 28px; }
  .ov-zero-head, .ov-zero-population, .ov-zero-foot { padding-left: 14px; padding-right: 14px; }
  .ov-zero-group { padding: 14px; }
  .ov-zero-report { margin: 0; }
  .ov-zero-selection, .ov-exec-filter { align-items: flex-start; flex-direction: column; margin: 0 14px 12px; }
}
@media (max-width: 420px) {
  .ov-zero-tile-grid { grid-template-columns: 1fr; }
  .ov-hero-range { white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .overview-mode button.ov-zero-trigger, .ov-zero-card-action svg { transition: none; }
  .overview-mode button.ov-zero-trigger:hover { transform: none; }
  .ov-zero-kpi { animation: none; }
}

/* On phones the Numbers switch stacks above Sales team, clear of KPI cards and Target Push. */
@media (max-width: 860px) {
  .ov-name-btn { display: inline-flex; align-items: center; min-width: 36px; min-height: 36px; }
  .ov-zero-report-count { min-height: 32px; }
  .ov-zero-exec-vintage button { min-height: 36px; }
  .metric-top-tab, .metric-top-tab:focus-visible { top: auto; right: max(10px, env(safe-area-inset-right)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 52px); left: auto; width: 44px; min-width: 44px; height: 44px; padding: 2px; border: 1.5px solid #111827; border-radius: 50%; writing-mode: horizontal-tb; transform: none; justify-content: center; }
  .metric-top-tab > span { display: none; }
  .metric-top-tab b { padding: 0; background: transparent; font-size: 8px; writing-mode: horizontal-tb; transform: none; text-align: center; overflow-wrap: anywhere; }
  .metric-drop { top: auto; right: max(10px, env(safe-area-inset-right)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 104px); left: auto; width: min(280px, calc(100vw - 24px)); transform: translateY(calc(100% + 80px)); }
  .metric-drop.is-open { transform: translateY(0); }
  .metric-drop .metric-choice { flex-direction: row; }
}

/* 30-10-2026 phones: the select arrow sat on top of the last letters ("Oct-2026 (current)"). */
@media (max-width: 600px) { select { padding-right: 32px; text-overflow: ellipsis; } }

/* 31-10-2026: iOS Safari must not enlarge text by itself (it did on the zoomed Hourly report); every size here is set on purpose. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 31-10-2026 (Anmol's iPad screenshot): on the Hourly pages the Numbers tab sat on top of the report columns and the two round buttons on its bottom cards.
   Numbers (Disburse / Login) only drives the MTD reports, so it is hidden there; on touch screens the Hourly page ends above the round buttons. */
body:has(#hourlyPanel:not([hidden])) .metric-top-tab, body:has(#hourlyPanel:not([hidden])) .metric-drop,
body:has(#hourlyInsightsPanel:not([hidden])) .metric-top-tab, body:has(#hourlyInsightsPanel:not([hidden])) .metric-drop { display: none; }

/* Dense Classic MIS number cells still need a reliable finger target on phones. */
@media (hover: none) and (pointer: coarse) {
  .classic-page { zoom: 1; }
  .classic-mode .legacy-mis-table tbody td[role="button"] { height: 36px; }
  .classic-mode .legacy-mis-card .legacy-mis-filters label select,
  .classic-mode .legacy-mis-card .legacy-mis-filters label:nth-child(4) select { height: 44px; min-height: 44px; font-size: 16px; }
  .classic-mode .legacy-mis-table { font-size: 14px; }
}
@media (pointer: coarse) { .hourly-panel { padding-bottom: 70px; box-sizing: border-box; } }

/* Overview "Period comparison" by sales team (10-11-2026): period groups as columns, left column drills like Performance Details */
.ov-team-table .ovt-prev { color: var(--ink-3); font-size: 11px; margin-right: 5px; }
.ov-team-table td.bad { color: #a82e37; font-weight: 800; }
.ov-team-table th.pd-gend, .ov-team-table td.pd-gend { border-right: 2px solid color-mix(in srgb, var(--ink) 35%, var(--line)); }
.ov-team-table tr.pd-parent .pd-go { margin-left: 4px; }
/* 10-11-2026: equal column widths, light black borders (Anmol) */
.ov-team-table { table-layout: fixed; }
.ov-team-table col.ovt-col-name { width: 210px; }
.ov-team-table col.ovt-col { width: auto; }
.ov-team-table th, .ov-team-table td { border-right: 1px solid rgba(0,0,0,.35) !important; border-bottom: 1px solid rgba(0,0,0,.35) !important; padding-left: 4px; padding-right: 4px; }
.ov-team-table th.pd-gend, .ov-team-table td.pd-gend { border-right: 2px solid rgba(0,0,0,.6) !important; }
.ov-team-table th { white-space: normal; }
.ov-team-table th, .ov-team-table td { cursor: help; }
.ov-team-table tr.drill td { cursor: pointer; }
.ov-team-table td.pd-sticky, .ov-team-table th.pd-sticky { cursor: inherit; }
/* Overview Performance Trend */
.ov-period-chart {
  --trend-blue: #2862d7;
  --trend-ink: #172846;
  --trend-muted: #526580;
  margin-top: 16px;
  padding: 0;
  min-width: 0;
  color: var(--trend-ink);
  background: #fff;
}
.ov-trend-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 18px;
  padding: 7px 14px;
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  background: #1c2d50; color: #fff;
}
.ov-trend-header > div:first-child { min-width: 0; }
.ov-trend-header h2 { margin: 0; color: #fff; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; }
.ov-trend-header p {
  margin: 2px 0 0; color: #d7e4fc; font-size: 11px; line-height: 1.25;
  overflow-wrap: anywhere;
}
.ov-trend-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 6px 14px; border-bottom: 1px solid #e2eaf4;
}
.ov-trend-segment {
  display: inline-flex; gap: 2px; padding: 2px; max-width: 100%;
  border: 1px solid #d7e1ef; border-radius: 8px; background: #f0f4fb;
}
.ov-trend-segment button {
  min-height: 25px; padding: 2px 9px; border: 1px solid transparent; border-radius: 5px;
  background: transparent; color: #3f5270; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.ov-trend-segment button:hover { background: #e3ebf8; }
.ov-trend-segment button[aria-pressed="true"] { background: #dfeafe; color: #18449e; border-color: #c4d5f7; }
.ov-trend-header .ov-trend-segment { flex: 0 0 auto; border-color: #54688d; background: #263b61; }
.ov-trend-header .ov-trend-segment button { color: #e5edfc; }
.ov-trend-header .ov-trend-segment button:hover { background: #3e537b; }
.ov-trend-header .ov-trend-segment button[aria-pressed="true"] { background: #f4f7ff; border-color: #f4f7ff; color: #1c2d50; }
.ov-trend-field { display: flex; align-items: center; min-width: 0; gap: 6px; color: var(--trend-muted); font-size: 12px; font-weight: 700; }
.ov-trend-field :is(select, input[type="number"]) {
  min-height: 29px; max-width: 100%; padding: 2px 7px; border: 1px solid #cbd8eb; border-radius: 6px;
  background: #fff; color: var(--trend-ink); font: inherit; font-size: 12px; font-weight: 700;
}
.ov-trend-field input[type="number"] { width: 70px; }
.ov-trend-field input[aria-invalid="true"] { border-color: #af2436; }
.ov-period-chart :is(select, input, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--trend-blue); outline-offset: 2px; }
.ov-trend-header button:focus-visible { outline-color: #a9c7ff; }
.ov-trend-error { color: #a02033; font-size: 12px; padding: 5px 16px 0; margin: 0; }
.ov-trend-chart { padding: 7px 16px 10px; min-width: 0; }
.ov-trend-scroll {
  overflow-x: auto; max-width: 100%;
  scrollbar-color: #8aa2c5 #eef3f9; scrollbar-width: thin;
}
.ov-trend-plot {
  position: relative; box-sizing: border-box; height: clamp(250px, 24vw, 320px);
  border-block: 1px solid #3f4856; /* 13-11-2026: top and bottom line of the chart a little darker */
}
.ov-period-chart .ov-trend-plot:focus-visible { outline-offset: -2px; }
.ov-trend-plot svg { display: block; width: 100%; height: 100%; }
.ov-trend-line { vector-effect: non-scaling-stroke; }
.ov-period-chart [data-metric="login"] { --trend-series: var(--trend-blue); }
.ov-period-chart [data-metric="disb"] { --trend-series: #08776d; }
.ov-trend-plot stop { stop-color: var(--trend-series); }
.ov-trend-line { fill: none; stroke: var(--trend-series); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ov-trend-line[data-metric="disb"] { stroke-dasharray: 5 3; }
.ov-trend-marks { position: absolute; inset: 0; pointer-events: none; }
.ov-trend-dot, .ov-trend-active {
  position: absolute; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%;
  background: var(--trend-series); transform: translate(-50%, -50%);
}
.ov-trend-active { width: 11px; height: 11px; border-width: 2px; box-shadow: 0 0 0 1px var(--trend-series); }
.ov-trend-dot[data-festival="true"], .ov-trend-active[data-festival="true"] {
  width: 10px; height: 10px; border: 2px solid #fff; background: #d56700; box-shadow: 0 0 0 1px #9b4500;
}
.ov-trend-data-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 6px)); white-space: nowrap;
  color: var(--trend-series); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
  line-height: 1.2; text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
.ov-trend-data-label[data-below] { transform: translate(-50%, 6px); }
.ov-trend-data-label[data-festival="true"] { color: #a34400; }
.ov-trend-conversions { position: absolute; inset: 0; pointer-events: none; }
.ov-trend-conversion {
  position: absolute; transform: translate(-50%, -50%); min-width: 42px;
  padding: 2px 4px; border: 1px solid #9aa9bc; border-radius: 4px;
  background: rgba(255,255,255,.94); color: #111; text-align: center; white-space: nowrap;
  font-size: 10px; font-weight: 850; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.ov-trend-guide { position: absolute; inset-block: 13% 5%; border-left: 1px dashed #7693c2; }
.ov-trend-tip {
  position: absolute; z-index: 1; display: grid; gap: 2px; max-width: calc(100% - 8px);
  padding: 7px 10px; border: 1px solid #cbd8eb; border-radius: 8px;
  background: #fff; box-shadow: 0 6px 20px #1c2d5022; pointer-events: none;
  font-size: 12px; line-height: 1.25;
}
.ov-trend-tip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--trend-series); }
.ov-trend-tip strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.ov-trend-tip small { color: #111; font-size: 11px; }
.ov-trend-tip[data-festival="true"] { border-color: #d9812b; background: #fffaf3; }
.ov-trend-tip-festival {
  margin-top: 3px; padding-top: 4px; border-top: 1px solid #e4b982;
  color: #943e00; font-size: 11px; font-weight: 800;
}
.ov-trend-tip-festival[hidden] { display: none; }
.ov-trend-tip[hidden] { display: none; }
.ov-trend-empty { position: absolute; top: 42%; left: 0; right: 0; margin: 0; text-align: center; color: #111; }
.ov-trend-labels {
  position: relative; height: 25px; border-bottom: 1px solid #9aa9bc;
  color: #000; font-size: 12px; font-weight: 700; /* 13-11-2026: month names at the bottom black and bold */
}
.ov-trend-labels span {
  position: absolute;
  transform: translateX(-50%); white-space: nowrap;
}
.ov-trend-growth { border-bottom: 1px solid #9aa9bc; background: #fff; color: #111; font-variant-numeric: tabular-nums; }
.ov-trend-growth-row { position: relative; height: 26px; }
.ov-trend-growth-row + .ov-trend-growth-row { border-top: 1px solid #c3cedc; }
.ov-trend-growth-row > strong {
  position: absolute; z-index: 1; left: 7px; top: 50%; transform: translateY(-50%);
  width: 112px; color: #111; font-size: 10px; line-height: 1.1; white-space: nowrap;
}
.ov-trend-growth-value {
  position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 53px;
  padding: 2px 4px; border: 1px solid transparent; border-radius: 5px; text-align: center; white-space: nowrap;
  font-size: 10px; font-weight: 800; line-height: 1.2;
}
.ov-trend-growth-value.up { color: #08783f; background: #def7e8; }
.ov-trend-growth-value.down { color: #b4232b; background: #fee2e2; }
.ov-trend-growth-value.flat { color: #111; border-color: #9aa9bc; background: #fff; }
.ov-trend-login-subfilter {
  display: grid; gap: 2px; margin: 7px 0 0; padding: 7px 0 0; border: 0; border-top: 1px solid #d7e1ef;
}
.ov-trend-login-subfilter legend { padding: 0; color: #111; font-size: 11px; font-weight: 800; }
.ov-trend-login-subfilter .ghost-btn { justify-self: start; margin-bottom: 2px; }
.ov-trend-login-subfilter label { min-height: 28px; padding-inline-start: 18px; }
.ov-trend-login-subfilter:disabled { opacity: .45; }
.ov-trend-login-subfilter input { accent-color: #1f5bd8; }
.ov-trend-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.ov-trend-note { margin: 0; color: #111; font-size: 11px; line-height: 1.35; }
.ov-trend-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 11px; font-weight: 700; }
.ov-trend-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--trend-series); }
.ov-trend-legend span::before { content: ""; width: 14px; border-top: 2px solid currentColor; }
.ov-trend-legend span[data-metric="disb"]::before { border-top-style: dashed; }
.ov-trend-scroll-actions { display: flex; gap: 6px; margin-inline-start: auto; }
.ov-trend-scroll-actions[hidden] { display: none; }
.ov-trend-scroll-actions button {
  min-height: 28px; padding: 2px 8px; border: 1px solid #cbd8eb; border-radius: 6px;
  background: #fff; color: var(--trend-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.ov-trend-scroll-actions button:hover:not(:disabled) { background: #e3ebf8; }
.ov-trend-scroll-actions button:disabled { color: var(--trend-muted); opacity: .6; cursor: default; }
.ov-trend-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ov-trend-line, .ov-trend-marks { animation: ov-trend-update 180ms ease-out; }
}
@keyframes ov-trend-update { from { opacity: .65; } to { opacity: 1; } }
@media (max-width: 560px) {
  .ov-trend-header { flex-wrap: wrap; padding-inline: 12px; }
  .ov-trend-controls, .ov-trend-chart { padding-inline: 12px; }
  .ov-trend-segment button, .ov-trend-field :is(select, input[type="number"]), .ov-trend-scroll-actions button { min-height: 44px; }
  .ov-trend-plot { height: 230px; }
}

/* Overview Period comparison banner */
.ov-team-card .ov-hero { margin: 0 0 14px; padding: 16px 22px; border-radius: 12px; color: #f6fffc; background: linear-gradient(120deg, #0d5c57 0%, #0f6a63 60%, #17806f 100%); box-shadow: 0 16px 32px -22px rgba(5, 70, 64, .72); position: relative; overflow: hidden; }
.ov-team-card .ov-hero::after { content: ""; position: absolute; right: -40px; top: -50px; width: 220px; height: 220px; border-radius: 36px; transform: rotate(32deg); background: rgba(255,255,255,.07); pointer-events: none; }
.ov-team-card .ov-hero h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.028em; color: #fff; margin: 0; }
.ov-team-card .ov-hero-sub { margin: 6px 0 0; font-size: 13px; color: #d8f0e9; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ov-team-card .ov-hero-pill { display: inline-block; padding: 3px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 100px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: 12px; }

/* 10-11-2026: period tick filter (Anmol) */
.ovt-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ovt-filter > span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ovt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(0,0,0,.35); border-radius: 100px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.ovt-chip.on { background: #0d5c57; border-color: #0d5c57; color: #fff; }
.ovt-chip input { accent-color: #fff; width: 15px; height: 15px; margin: 0; cursor: pointer; }
.ovt-chip:not(.on) input { accent-color: #0d5c57; }

/* 10-11-2026: periods as a dropdown + Reset (Anmol) */
.ovt-menu { position: relative; }
.ovt-menu summary { list-style: none; cursor: pointer; padding: 6px 30px 6px 14px; border: 1px solid rgba(0,0,0,.45); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 800; color: var(--ink); min-width: 120px; position: relative; }
.ovt-menu summary::-webkit-details-marker { display: none; }
.ovt-menu summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.ovt-menu[open] summary { border-color: #0d5c57; box-shadow: 0 0 0 2px rgba(13,92,87,.18); }
.ovt-menu-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 250px; padding: 6px; background: #fff; border: 1px solid rgba(0,0,0,.45); border-radius: 10px; box-shadow: 0 16px 32px -18px rgba(0,0,0,.45); display: grid; gap: 2px; }
.ovt-menu-list label { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--ink); }
.ovt-menu-list label:hover { background: #eef6f5; }
.ovt-menu-list input { width: 16px; height: 16px; margin: 0; accent-color: #0d5c57; cursor: pointer; }
.ovt-menu-list small { margin-left: auto; color: var(--ink-3); font-size: 11px; }
.ov-trend-metric summary { padding: 5px 28px 5px 8px; border-color: #cbd8eb; font-size: 12px; }
.ov-trend-metric .ovt-menu-list { width: max(100%, 250px); min-width: 0; }
.ov-trend-metric .ovt-menu-list button { margin: 2px 4px; }
@media (max-width: 560px) {
  .ov-trend-metric summary { display: flex; align-items: center; min-height: 44px; }
  .ov-trend-metric .ovt-menu-list { left: auto; right: 0; }
  .ov-trend-metric .ovt-menu-list :is(label, button) { min-height: 44px; }
}

/* 10-11-2026: row tint + round arrow icons like the Sourcing table (Anmol) */
.ov-team-table tbody tr.ovt-row-up:not(.pd-total) td { background: #eefaf2 !important; }
.ov-team-table tbody tr.ovt-row-down:not(.pd-total) td { background: #fff0f1 !important; }
.ov-team-table tbody tr.ovt-row-up:not(.pd-total):hover td { background: #dff5e7 !important; }
.ov-team-table tbody tr.ovt-row-down:not(.pd-total):hover td { background: #ffe3e5 !important; }
.ov-team-table .ovt-name { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; text-align: left; }
.ov-team-table .ovt-arrow { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 15px; font-weight: 900; line-height: 1; cursor: help; }
.ov-team-table .ovt-arrow.ovt-up { background: #1b8a4b; }
.ov-team-table .ovt-arrow.ovt-down { background: #c62331; }
.ov-team-table .ovt-arrow.ovt-flat { background: #1f2937; }
.ov-team-table td.pd-sticky.pd-name { text-align: left; padding-left: 12px; }
.ov-team-table .ovt-name .pd-go { margin-left: auto; padding-left: 6px; }

/* 10-11-2026: share of Total exec under Active exec / Zero disb (Anmol) */
.ov-team-table .ovt-pct { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; opacity: .85; }

/* 10-11-2026: header colour per family, same order everywhere (Anmol) */
.ov-team-table th.ovt-top-0 { background: #16365f; color: #fff; }
.ov-team-table th.ovt-top-1 { background: #3b2a6b; color: #fff; }
.ov-team-table th.ovt-top-2 { background: #0d5c57; color: #fff; }
.ov-team-table th.ovt-top-3 { background: #7a3b12; color: #fff; }
.ov-team-table th.ovt-top-4 { background: #5b1f45; color: #fff; }
.ov-team-table th.ovt-top-5 { background: #27522f; color: #fff; }
.ov-team-table th.ovt-f-exe, .ovt-legend i.ovt-f-exe { background: #e3e6eb; }
.ov-team-table th.ovt-f-log, .ovt-legend i.ovt-f-log { background: #cfe2ff; }
.ov-team-table th.ovt-f-dis, .ovt-legend i.ovt-f-dis { background: #d3f0da; }
.ov-team-table th.ovt-f-exe, .ov-team-table th.ovt-f-log, .ov-team-table th.ovt-f-dis { color: #0b1526; font-weight: 800; }
.ov-team-table .ovt-fstart { border-left: 2px solid rgba(0,0,0,.5) !important; }
.ovt-legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2, #334155); }
.ovt-legend i { display: inline-block; width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.45); border-radius: 3px; margin-left: 8px; }

/* 10-11-2026: a change column that went down gets a red background (Anmol) */
.ov-team-table.pd-table tbody tr td.ovt-neg,
.ov-team-table.pd-table tbody tr:hover td.ovt-neg { background: #f7c4c9 !important; }
.ov-team-table td.ovt-neg .ovt-prev { color: #6b1219; }

/* 10-11-2026: comparison dates in the period header, same single line (Anmol) */
.ov-team-table .ovt-top-vs { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.45); font-weight: 600; opacity: .88; }

/* 10-11-2026: rich tooltip on the per-executive-per-day columns (same box as the Target festival popup) */
.ov-team-table .forecast-ftip-box { position: fixed !important; bottom: auto; right: auto; width: 340px; }
.ov-team-table td.forecast-ftip { cursor: help; }
.ov-team-table td.forecast-ftip:focus-visible { outline: 2px solid #0d5c57; outline-offset: -2px; }

/* 13-11-2026: a falling change in the per-executive tooltip is red, not green */
.ov-team-table .forecast-ftip-box .ft-row.ft-neg { color: #b42318; }

/* 13-11-2026: Untick all button inside the Vintage dropdown */
.ov-team-card .ovt-menu-list .ovt-menu-none { margin: 2px 4px 6px; align-self: flex-start; }

/* 13-11-2026: dealer count sits on the same line as the executive count (95 / 14) */
.ov-team-table .ovt-dealer { display: inline; font-weight: 600; color: #5b6b7f; white-space: nowrap; }

/* 13-11-2026: Performance Trend - Reset button, FTD day select, ABND dropdown inside the Login types */
.ov-trend-reset { align-self: end; margin-left: 4px; }
.ov-trend-abnd { display: grid; gap: 4px; }
.ov-trend-abnd-menu { margin: 0 0 2px 24px; }
.ov-trend-abnd-menu > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #1f3b66; padding: 3px 8px; border: 1px solid #9aa9bc; border-radius: 6px; background: #fff; width: max-content; list-style: none; }
.ov-trend-abnd-menu > summary::-webkit-details-marker { display: none; }
.ov-trend-abnd-menu > summary::after { content: " \25BE"; }
.ov-trend-abnd-list { display: grid; gap: 4px; margin: 6px 0 2px; padding-left: 4px; }
.ov-trend-abnd-list small { font-weight: 400; color: #4b5563; }

/* 13-11-2026: Performance Trend Period and Range / Day as dropdown filters (same look as Metric) */
.ov-trend-menu .ovt-menu-list { min-width: 250px; }
.ov-trend-options { display: grid; gap: 4px; padding: 6px; }
.ov-trend-opt { display: grid; gap: 1px; text-align: left; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: #fff; color: #111; cursor: pointer; font: inherit; }
.ov-trend-opt:hover { background: #eef3fb; }
.ov-trend-opt[aria-pressed="true"] { background: #e3edff; border-color: #9db8e8; }
.ov-trend-opt b { font-size: 13px; }
.ov-trend-opt small { color: #4b5563; font-size: 11px; font-weight: 400; }
.ov-trend-range-list { display: grid; gap: 10px; padding: 10px; }
.ov-trend-range-list .ov-trend-field { display: grid; gap: 4px; }
.ov-trend-range-list select, .ov-trend-range-list input:not([type="checkbox"]) { width: 100%; }

/* 13-11-2026: Performance Trend middle % boxes (Disbursement / filtered Login) and the Week tick boxes */
.ov-trend-conversion.ov-conv-up { background: #e3f6ea; border-color: #86c79f; color: #0a6236; }
.ov-trend-conversion.ov-conv-down { background: #fde6e6; border-color: #e39aa0; color: #9f1d28; }
.ov-trend-conversion.ov-conv-up.ov-conv-top, .ov-trend-conversion.ov-conv-up.ov-conv-low { background: #0a6236; border-color: #074a29; color: #fff; }
.ov-trend-conversion.ov-conv-down.ov-conv-top, .ov-trend-conversion.ov-conv-down.ov-conv-low { background: #9f1d28; border-color: #7a1620; color: #fff; }
.ov-trend-conversion.ov-conv-over { background: #2e2a7f; border: 2px solid #f2a516; color: #fff; padding: 3px 6px; font-size: 11px; box-shadow: 0 2px 6px #2e2a7f55; }
.ov-trend-weeks { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ov-trend-weeks legend { padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: #111; }
.ov-trend-weeks label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ov-trend-weeks small { color: #4b5563; font-size: 11px; }
/* 13-11-2026: Week tick boxes read left to right (box, then "Week 1 (days 1-7)") */
.ov-trend-weeks label { display: flex; justify-content: flex-start; align-items: center; gap: 8px; text-align: left; padding: 3px 0; }
.ov-trend-weeks label > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; text-align: left; }
.ov-trend-weeks input { flex: none; margin: 0; }

/* 13-11-2026: Login alone with some Login types ticked = All Login line plus the ticked types (violet, dashed) and a plain share box between */
.ov-period-chart [data-metric="loginsel"] { --trend-series: #6d28d9; }
.ov-trend-line[data-metric="loginsel"] { stroke-dasharray: 5 3; }
.ov-trend-legend span[data-metric="loginsel"]::before { border-top-style: dashed; }
.ov-trend-conversion.ov-conv-share { background: #f1ecfd; border-color: #b9a4ee; color: #3f1d8f; }

/* 13-11-2026: Daily Trend custom range (From / To) and its day on day growth rows */
.ov-trend-dates { display: grid; gap: 10px; }
.ov-trend-dates .ov-trend-field { display: grid; gap: 4px; }
.ov-trend-dates input[type="date"] { width: 100%; padding: 6px 8px; border: 1px solid #cbd8eb; border-radius: 8px; font: inherit; font-size: 13px; color: #111; background: #fff; }

/* 13-11-2026: Daily Trend, one metric: the same days n months earlier as a grey dashed line */
.ov-period-chart [data-metric="cmp"] { --trend-series: #5f6b7d; }
.ov-trend-line[data-metric="cmp"] { stroke-dasharray: 2 5; stroke-width: 2.2; }
.ov-trend-legend span[data-metric="cmp"]::before { border-top-style: dotted; }
.ov-trend-hint { margin: 0; font-size: 11px; color: #4b5563; max-width: 240px; }

/* 13-11-2026: Daily Trend comparison - violet dotted comparison line, current line green above / red below, hover glow like the Target forecast chart */
.ov-period-chart [data-metric="cmp"] { --trend-series: #7c3aed; }
.ov-period-chart .ov-trend-dot.ov-tone-up, .ov-period-chart .ov-trend-data-label.ov-tone-up { --trend-series: #15803d; }
.ov-period-chart .ov-trend-dot.ov-tone-down, .ov-period-chart .ov-trend-data-label.ov-tone-down { --trend-series: #dc2626; }
.ov-trend-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; vector-effect: non-scaling-stroke; cursor: pointer; }
.ov-trend-line { transition: opacity .15s ease, stroke-width .15s ease; }
.ov-trend-plot[data-focus] .ov-trend-line { opacity: .4; }
.ov-trend-plot[data-focus="login"] .ov-trend-line[data-metric="login"],
.ov-trend-plot[data-focus="disb"] .ov-trend-line[data-metric="disb"],
.ov-trend-plot[data-focus="loginsel"] .ov-trend-line[data-metric="loginsel"],
.ov-trend-plot[data-focus="cmp"] .ov-trend-line[data-metric="cmp"] { opacity: 1; stroke-width: 3.8; filter: drop-shadow(0 0 5px var(--trend-series)); }
.ov-trend-plot[data-focus] .ov-trend-line.ov-trend-tone[data-metric] { filter: drop-shadow(0 0 5px rgba(15, 23, 42, .5)); }
.ov-trend-legend span[data-metric] { cursor: default; }
@media (prefers-reduced-motion: reduce) { .ov-trend-line { transition: none; } }

/* 13-11-2026: with a comparison the current line is a solid line (not dashed), also in its legend entry */
.ov-trend-line.ov-trend-tone { stroke-dasharray: none; }
.ov-trend-legend span.ov-legend-solid[data-metric]::before { border-top-style: solid; }

/* 13-11-2026: Performance Trend lines are drawn from left to right (like the Target charts: 0.9 s, the same ease-out); dots, numbers and the middle % boxes appear as the sweep passes them.
   One clip-path sweep on the line layer and the two overlays keeps dashed / dotted lines intact; it plays whenever the chart is drawn again (new period, range, metric). */
@keyframes ov-trend-sweep {
  from { clip-path: inset(-40px 100% -40px -40px); }
  to { clip-path: inset(-40px -40px -40px -40px); }
}
.ov-trend-plot > svg, .ov-trend-plot .ov-trend-marks, .ov-trend-plot .ov-trend-conversions { animation: ov-trend-sweep 1.7s cubic-bezier(.33, 1, .68, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .ov-trend-plot > svg, .ov-trend-plot .ov-trend-marks, .ov-trend-plot .ov-trend-conversions { animation: none; }
}

/* 13-11-2026 (Anmol: a little slower): the sweep takes 1.7 s; a wide chart scrolls along with it (trendAutoScroll in overview.js) */

/* 13-11-2026: Performance Trend, View = Zero executives: Zero line (red) and Repeat zero line (dark red, dashed); the share boxes are the plain violet ones */
.ov-period-chart [data-metric="zero"] { --trend-series: #d12f2f; }
.ov-period-chart [data-metric="repeat"] { --trend-series: #7a1717; }
.ov-trend-line[data-metric="repeat"] { stroke-dasharray: 5 3; }
.ov-trend-legend span[data-metric="repeat"]::before { border-top-style: dashed; }
.ov-trend-plot[data-focus="zero"] .ov-trend-line[data-metric="zero"],
.ov-trend-plot[data-focus="repeat"] .ov-trend-line[data-metric="repeat"] { opacity: 1; stroke-width: 3.8; filter: drop-shadow(0 0 5px var(--trend-series)); }

/* 13-11-2026: Zero view tooltip in plain sentences instead of the value rows */
.ov-trend-tip-lines { display: grid; gap: 7px; margin: 6px 0 2px; max-width: 300px; font-size: 13px; line-height: 1.35; color: #111; }
.ov-trend-tip-lines > span { position: relative; padding-left: 26px; }
.ov-trend-tip-lines > span::before { content: ""; position: absolute; left: 0; top: .62em; width: 18px; border-top: 3px solid #9aa3b2; }   /* a small line key, the same line style as the chart */
.ov-trend-tip-lines > span:first-child { font-weight: 700; }
.ov-trend-tip-lines > span:first-child::before { border-top-color: #d12f2f; }
.ov-trend-tip-lines > span:nth-child(2) { color: #7a1717; font-weight: 600; }
.ov-trend-tip-lines > span:nth-child(2)::before { border-top: 3px dashed #7a1717; }
.ov-trend-tip-lines > span:nth-child(3) { color: #333; }
.ov-trend-tip[data-words="true"] .ov-trend-tip-row { display: none; }

/* 14-11-2026: Daily Trend, today so far (live) - a lone hollow dot with its number in italics and a "live" tag under the date */
.ov-period-chart .ov-trend-dot.ov-trend-live { width: 10px; height: 10px; background: #fff; border: 2px solid var(--trend-series); box-shadow: 0 0 0 3px color-mix(in srgb, var(--trend-series) 18%, transparent); }
.ov-trend-data-label.ov-trend-live { font-style: italic; }
.ov-trend-labels span.ov-trend-label-live::after { content: " live"; font-size: 10px; font-weight: 800; color: #b45309; }

/* 14-11-2026: Full Month lists the current month till date - the same lone hollow dot as today so far, tagged "till date" (Anmol: "till date i want") */
.ov-trend-labels span.ov-trend-label-sofar::after { content: " till date"; font-size: 10px; font-weight: 800; color: #b45309; }

/* 14-11-2026 (Anmol): Tata page with the Banking Executed header and filter bar (same look as the Classic MIS cards) */
.tata-page .legacy-mis-card { border: 1px solid #2d1b50; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(53,32,95,.14); }
.tata-page .tata-banner { position: relative; isolation: isolate; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 84px; padding: 16px 26px; overflow: hidden; border: 0; background: #4b2a78; color: #fff; }
.tata-page .tata-banner::before, .tata-page .tata-banner::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; width: 70px; background: rgba(255,255,255,.07); transform: skewX(-24deg); }
.tata-page .tata-banner::before { right: 22%; }
.tata-page .tata-banner::after { right: 12%; width: 36px; }
.tata-page .tata-banner h2 { margin: 0; max-width: 900px; color: #fff; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.tata-page .tata-banner p { margin: 5px 0 0; color: #eadff8; font-size: 12px; font-weight: 650; line-height: 1.4; }
.tata-page .tata-banner .tata-stale { color: #ffd0d0; }
.tata-page .tata-banner .mis-note-btn { align-self: flex-start; margin-left: auto; padding: 7px 14px; border: 2px solid rgba(255,255,255,.85); border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.tata-page .tata-banner .mis-note-btn:hover, .tata-page .tata-banner .mis-note-btn:focus-visible { background: #fff; color: #111827; }
.tata-page .legacy-mis-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 2px solid #2d1b50; background: #f6f0fc; }
.tata-page .legacy-mis-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tata-page .legacy-mis-badge { min-height: 34px; padding: 7px 10px; border-color: #5b3a00; border-radius: 7px; background: #f2bd45; color: #2f2100; font-size: 11px; cursor: pointer; }
.tata-page .legacy-mis-filters { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.tata-page .legacy-mis-filters label { display: grid; gap: 4px; color: #45345d; font-size: 11px; font-weight: 800; }
.tata-page .legacy-mis-filters select { width: 132px; max-width: 170px; height: 34px; padding: 3px 22px 3px 8px; border: 1px solid #8e7aa8; border-radius: 7px; background: #fff; color: #2b1c43; font-size: 12px; font-weight: 700; }
.tata-page .tata-note-wrap[hidden] { display: none; }
@media (max-width: 900px) { .tata-page .legacy-mis-toolbar { align-items: stretch; flex-direction: column; } .tata-page .legacy-mis-actions { justify-content: flex-end; } }

/* Tata popups (Anmol, 14-11-2026): state > ASM > SM bars. Each level has its own background across the whole row and a border; executive rows get a light grid.
   Only popups that ask for it (entry.tiers -> card class dq-tiered); the Classic MIS popups are not touched. */
.mis-dq-card.dq-tiered .dq-table { border: 1.5px solid #111827; border-top: 0; }
.mis-dq-card.dq-tiered .dq-table td, .mis-dq-card.dq-tiered .dq-table tbody th { border-bottom: 1px solid #aab4c3; border-right: 1px solid #d9dee8; }
.mis-dq-card.dq-tiered .dq-table tr.dq-sm th, .mis-dq-card.dq-tiered .dq-table tr.dq-sm td { background: color-mix(in srgb, var(--c) 14%, #fff); border-top: 1.5px solid #111827; border-bottom: 1.5px solid #111827; font-size: 14.5px; font-weight: 900; color: #000; }
.mis-dq-card.dq-tiered .dq-table tr.dq-t2 th, .mis-dq-card.dq-tiered .dq-table tr.dq-t2 td { background: color-mix(in srgb, var(--c) 40%, #fff); border-top: 2px solid #111827; border-bottom: 2px solid #111827; font-size: 15px; font-weight: 900; color: #000; }
.mis-dq-card.dq-tiered .dq-table tr.dq-t1 th, .mis-dq-card.dq-tiered .dq-table tr.dq-t1 td { background: var(--c); border-top: 2.5px solid #000; border-bottom: 2.5px solid #000; font-size: 15.5px; font-weight: 900; color: #fff; }
.mis-dq-card.dq-tiered .dq-table tr.dq-t1 th span { color: #e2e8f0; }
.mis-dq-card.dq-tiered .dq-table tr.dq-t2 th span, .mis-dq-card.dq-tiered .dq-table tr.dq-sm th span { color: #1f2937; }
.mis-dq-card.dq-tiered .dq-table tbody tr.dq-sm:hover th, .mis-dq-card.dq-tiered .dq-table tbody tr.dq-sm:hover td { background: color-mix(in srgb, var(--c) 14%, #fff); }
.mis-dq-card.dq-tiered .dq-table tbody tr.dq-t2:hover th, .mis-dq-card.dq-tiered .dq-table tbody tr.dq-t2:hover td { background: color-mix(in srgb, var(--c) 40%, #fff); }
.mis-dq-card.dq-tiered .dq-table tbody tr.dq-t1:hover th, .mis-dq-card.dq-tiered .dq-table tbody tr.dq-t1:hover td { background: var(--c); }
.mis-dq-card.dq-tiered .dq-table tr.dq-tier th span { margin-left: 10px; font-weight: 700; }

/* Performance Patterns Section (Mockup High-Fidelity Match) */
.ov-patterns {
  margin: 16px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.ov-pat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.ov-pat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ov-pat-title-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  color: #2563eb;
  flex-shrink: 0;
}
.ov-pat-title-copy h2 {
  margin: 0 0 2px;
  font-size: 19px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.ov-pat-title-copy p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.ov-pat-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ov-pat-filters label {
  display: grid;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.ov-pat-filters select {
  height: 32px;
  padding: 0 28px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23475569" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 8px center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ov-pat-filters select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* KPI Cards Row */
.ov-pat-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ov-pat-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  min-height: 60px;
}
.ov-pat-kpi-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ov-pat-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ov-pat-kpi-icon.blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
}
.ov-pat-kpi-icon.amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #d97706;
}
.ov-pat-kpi-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ov-pat-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.ov-pat-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
}
.ov-pat-kpi-sub {
  font-size: 10.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ov-pat-kpi-sub .up {
  color: #16a34a;
  font-weight: 700;
}
.ov-pat-kpi-sub .down {
  color: #dc2626;
  font-weight: 700;
}
.ov-pat-kpi-sub .muted {
  color: #94a3b8;
  font-weight: 500;
}
.ov-pat-badge-green {
  display: inline-block;
  padding: 2px 7px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.ov-pat-kpi-spark {
  flex-shrink: 0;
}

/* Main Content Area */
.ov-pat-main {
  display: grid;
  grid-template-columns: 59% 41%;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 1024px) {
  .ov-pat-main { grid-template-columns: 1fr; }
  .ov-pat-kpis { grid-template-columns: repeat(2, 1fr); }
}
.ov-pat-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ov-pat-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.ov-pat-panel-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  color: #2563eb;
  flex-shrink: 0;
}
.ov-pat-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
}
.ov-pat-panel-head p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.ov-pat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.ov-pat-table th {
  padding: 6px 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: capitalize;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.ov-pat-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
  vertical-align: middle;
}
.ov-pat-table tr:last-child td {
  border-bottom: none;
}
.ov-pat-row-best {
  background: #f0fdf4 !important;
}
.ov-pat-row-caution {
  background: #fffbeb !important;
}
.ov-pat-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}
.ov-pat-pill-good {
  background: #dcfce7;
  color: #15803d;
}
.ov-pat-pill-bad {
  background: #fee2e2;
  color: #b91c1c;
}
.ov-pat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}
.ov-pat-trend.up {
  color: #16a34a;
}
.ov-pat-trend.down {
  color: #dc2626;
}
.ov-pat-prod {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ov-pat-prod-val {
  min-width: 22px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}
.ov-pat-bar-track {
  flex: 1;
  max-width: 70px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.ov-pat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.ov-pat-bar-green {
  background: #22c55e;
}
.ov-pat-bar-amber {
  background: #f59e0b;
}

/* Bottom Insight Strip */
.ov-pat-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
@media (max-width: 900px) {
  .ov-pat-insights { grid-template-columns: 1fr; }
}
.ov-pat-insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ov-pat-insight-item:not(:last-child) {
  border-right: 1px solid #f1f5f9;
  padding-right: 10px;
}
@media (max-width: 900px) {
  .ov-pat-insight-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    padding-right: 0;
  }
}
.ov-pat-insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ov-pat-insight-icon.green {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  color: #16a34a;
}
.ov-pat-insight-icon.blue {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
}
.ov-pat-insight-icon.amber {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #d97706;
}
.ov-pat-insight-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.ov-pat-insight-copy h4 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 750;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-pat-insight-copy p {
  margin: 0;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
