@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans:wght@400;600&family=Roboto:wght@400;500&display=swap');

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f5f7fb;
  color: #080000;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', Arial, sans-serif;
}

.hidden { display: none !important; }


/* ══════════════════════════════════════
   COVER PAGE — DARK DESIGN
══════════════════════════════════════ */

.cover-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0d0e28;
  overflow: hidden;
}

/* ── Top bar — #22224D matches logo.png baked-in background ── */
.cover-top-bar {
  background: #22224D;
  padding: 11px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cover-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.cover-top-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cover-pf-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.cover-pf-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.cover-pf-logobox {
  width: 165px;
  height: 58px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-pf-logobox span {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.cover-pf-logobox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 4px 10px;
}

.cover-triggers {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.cover-view-btn {
  font-family: 'Inter', Arial, sans-serif;
  padding: 8px 18px;
  background: #D12429;
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cover-view-btn:hover { background: #a81e22; }

/* ── Two-column main area ── */
.cover-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.cover-left {
  width: 44%;
  padding: 32px 44px 32px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.cover-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  overflow: hidden;
}

.cover-network-svg {
  width: 100%;
  height: 100%;
  max-height: 510px;
}

/* ── Left column content ── */
.cover-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: white;
  margin: 0 0 8px;
  line-height: 1.15;
}

.cover-title-red { color: #D12429; }

.cover-subtitle {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}

.cover-rule {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}

.cover-team-heading {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #D12429;
  display: inline-block;
}

/* legacy kept for JS compat */
.cover-prepared { display: none; }
.cover-prepared-label { display: none; font-size: 0;
}

.cover-prepared-name { display: none; }

/* ── Team contacts ── */
.cover-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.cover-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-role {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  min-width: 148px;
}

.team-name {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* ── Team info cards (Sales Rep / Client Success) ── */
.cover-team-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 14px 10px 14px;
  width: 224px;
  cursor: pointer;
  transition: background 0.15s;
}
.cover-team-card:hover { background: rgba(255,255,255,0.09); }
.cover-team-card.required-error { outline: 2px solid #D12429; outline-offset: 1px; }

.cover-team-error {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  color: #ff6b6b;
  margin: 8px 0 0;
  font-weight: 500;
}

.cover-team-card .sales-chevron { display: none; }

.team-card-role-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 5px;
}

.team-card-body { cursor: pointer; }

.team-card-name {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.team-card-subtitle {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  min-height: 14px;
}

.cover-team-card .sales-dropdown-panel {
  top: calc(100% + 4px);
  left: 0;
  min-width: 224px;
}

#jobDropdownPanel {
  bottom: calc(100% + 6px);
  top: auto;
  min-width: 280px;
}

/* ── Sales Rep Dropdown ── */
.sales-dropdown-wrap { position: relative; }

.sales-dropdown-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.sales-dropdown-selected:hover { color: rgba(255,255,255,0.75); }

.sales-chevron {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.38);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.sales-chevron.open { transform: rotate(180deg); }

.sales-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  z-index: 999;
  overflow: hidden;
}
.sales-dropdown-panel.open { display: block; }

.sales-dropdown-search {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12.5px;
  color: #374151;
  outline: none;
  background: #f9fafb;
}
.sales-dropdown-search::placeholder { color: #9ca3af; }

.sales-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}
.sales-dropdown-list li {
  padding: 8px 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 0.12s;
}
.sales-dropdown-list li:hover { background: #f0f1f8; color: #22224D; }
.sales-dropdown-list li.hidden { display: none; }
.job-engagement-star { color: #f0a520; font-size: 12px; }
.job-list-loading { color: #9ca3af; font-style: italic; cursor: default; pointer-events: none; }
.job-list-legend {
  padding: 6px 14px 8px;
  font-size: 11px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  margin-top: 2px;
}

/* ── Reports Include ── */
.cover-reports { margin-bottom: 14px; }

.cover-reports-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.cover-reports-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.cover-contact-input {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.2);
  padding: 2px 4px 2px 0;
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s;
}
.cover-contact-input::placeholder { color: rgba(255,255,255,0.28); font-weight: 400; }
.cover-contact-input:focus { border-bottom-color: rgba(255,255,255,0.5); }

.cover-job-select {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.2);
  padding: 2px 4px 2px 0;
  cursor: pointer;
  outline: none;
  min-width: 220px;
}

/* legacy — no longer rendered */
.cover-client-logo { display: none; }
.cover-client-logo-img { display: none; }

.report-item {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  color: #D12429;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer bar ── */
.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 40px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.cover-footer-brand {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.3px;
}

.cover-footer-em {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cover-footer-meta {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.3px;
}

/* ── Legacy job selector ── */
.cover-selector-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cover-selector-row select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  color: #080000;
  flex: 1;
  background: white;
  cursor: pointer;
  outline: none;
}

.cover-selector-row select:focus {
  border-color: #22224D;
}

.cover-selector-row button {
  font-family: 'Inter', Arial, sans-serif;
  padding: 10px 22px;
  background: #D12429;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cover-selector-row button:hover {
  background: #a81e22;
}


/* ══════════════════════════════════════
   REPORT APP
══════════════════════════════════════ */

.report-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ── Report top nav (full-width) ── */
.report-topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #22224D;
  padding: 12px 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(34,34,77,0.2);
}

.report-nav-logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.report-nav-logo:hover {
  opacity: 0.82;
}

.report-back-btn {
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #D12429;
  border: none;
  color: white;
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.report-back-btn:hover {
  background: #a81e22;
}

.report-nav-info {
  margin-left: auto;
  margin-right: 16px;
  text-align: right;
}

.report-nav-cust-logo {
  background: #22224d;
  border-radius: 7px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  flex-shrink: 0;
}

.report-nav-cust-logo img {
  max-height: 38px;
  max-width: 160px;
  width: auto;
  display: block;
  object-fit: contain;
}

.report-nav-info h1 {
  font-family: 'Inter', Arial, sans-serif;
  color: white;
  margin: 0;
  font-weight: 800;
  font-size: 18px;
}

.report-nav-info p {
  font-family: 'Noto Sans', Arial, sans-serif;
  color: rgba(255,255,255,0.6);
  margin: 3px 0 0;
  font-size: 13px;
}

.report-nav-asof {
  font-family: 'Inter', Arial, sans-serif;
  color: rgba(255,255,255,0.38);
  font-size: 11px;
  font-style: italic;
  margin: 2px 0 0;
}

.report-nav-team {
  font-family: 'Inter', Arial, sans-serif;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  margin: 2px 0 0;
  letter-spacing: 0.2px;
}

/* ── Export PDF button (sidebar) ── */
.export-pdf-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 10px 12px 4px;
  background: #D12429;
  color: white;
  border: none;
  border-radius: 7px;
  padding: 10px 16px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}
.export-pdf-btn:hover:not(:disabled) { background: #a81e22; }
.export-pdf-btn:disabled { background: #4b5563; cursor: not-allowed; opacity: 0.75; }

/* ── Export overlay ── */
.export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.export-overlay.hidden { display: none; }
.export-overlay-box {
  background: white;
  border-radius: 14px;
  padding: 36px 44px;
  min-width: 380px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}
.export-overlay-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #22224D;
  margin-bottom: 10px;
}
.export-overlay-msg {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 20px;
  min-height: 20px;
}
.export-overlay-bar {
  height: 7px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.export-overlay-fill {
  height: 100%;
  background: linear-gradient(90deg, #22224D, #D12429);
  border-radius: 4px;
  width: 0%;
  transition: width 0.35s ease;
}

/* ── Body row: sidebar + content ── */
.report-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: 280px;
  background: #22224D;
  color: white;
  padding: 20px;
  overflow-y: auto;
}

.sidebar h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  margin-top: 0;
  color: white;
}

.sidebar button {
  font-family: 'Inter', Arial, sans-serif;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.sidebar button:hover {
  background: rgba(255,255,255,0.16);
  color: white;
}

.sidebar button.active {
  background: rgba(255,255,255,0.14);
  border-left: 3px solid #D12429;
  padding-left: 11px;
  color: #ffffff;
  font-weight: 700;
}

.sidebar button.active:hover {
  background: rgba(255,255,255,0.2);
}

/* Inline job selector at top of sidebar */
.sidebar-job-block {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 4px;
}

.sidebar-job-label {
  font-family: 'Inter';
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255);
  display: block;
  margin-bottom: 7px;
}

.sidebar-job-block select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.sidebar-job-block select option {
  background: #22224D;
  color: white;
}

.sidebar-filter-block {
  padding: 8px 14px 10px;
}
.sidebar-filter-row {
  margin-bottom: 8px;
}
.sidebar-filter-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
/* multi-select dropdown */
.sidebar .mf-wrap { margin-bottom: 0; }

.sidebar .mf-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.88) !important;
  padding: 6px 9px !important;
  margin-bottom: 0 !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  text-align: left;
  cursor: pointer;
  transition: background 0.13s;
}
.sidebar .mf-trigger:hover { background: rgba(255,255,255,0.16) !important; }
.sidebar .mf-trigger.mf-open {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background: rgba(255,255,255,0.16) !important;
}

.mf-caret {
  font-size: 8px;
  opacity: 0.55;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.mf-trigger.mf-open .mf-caret { transform: rotate(180deg); }

.mf-panel {
  background: rgba(10,10,40,0.80);
  border: 1px solid rgba(255,255,255,0.20);
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-bottom: 2px;
  overflow: hidden;
}

.mf-search-wrap {
  padding: 7px 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar .mf-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 5px;
  color: rgba(255,255,255,0.88);
  font-size: 11.5px;
  font-family: 'Inter', sans-serif;
  padding: 5px 8px;
  outline: none;
  transition: border-color 0.13s;
}

.sidebar .mf-search::placeholder { color: rgba(255,255,255,0.35); }
.sidebar .mf-search:focus { border-color: rgba(255,255,255,0.50); }

.mf-list {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar .mf-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.80);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  user-select: none;
  transition: background 0.1s;
}
.sidebar .mf-item:hover { background: rgba(255,255,255,0.10); }
.sidebar .mf-item input[type="checkbox"] {
  accent-color: #D12429;
  cursor: pointer;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.sidebar .mf-clear-btn {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,0.42) !important;
  font-size: 10.5px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  padding: 5px 10px !important;
  margin-bottom: 0 !important;
  text-align: left;
  cursor: pointer;
}
.sidebar .mf-clear-btn:hover { color: rgba(255,255,255,0.78) !important; background: rgba(255,255,255,0.06) !important; }

.sidebar .mf-item--preset {
  font-weight: 700 !important;
  color: #fca5a8 !important;
  background: rgba(209,36,41,0.10);
  border-radius: 4px;
  margin: 2px 4px 0;
  padding: 5px 6px !important;
}
.sidebar .mf-item--preset:hover { background: rgba(209,36,41,0.20) !important; }

.mf-separator {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 4px 8px;
}

.sidebar .mf-item--disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
}
.sidebar .mf-item--disabled input { cursor: not-allowed !important; }
.sf-select {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  appearance: auto;
  outline: none;
  transition: background 0.13s;
}
.sf-select:hover  { background: rgba(255,255,255,0.16); }
.sf-select:focus  { border-color: rgba(255,255,255,0.4); }
.sf-select option { background: #1a1a3e; color: #fff; }

.sidebar-filter-clear {
  width: 100%;
  background: rgba(209,36,41,0.14);
  border: 1px solid rgba(209,36,41,0.35);
  color: #fca5a8;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-filter-clear:hover {
  background: rgba(209,36,41,0.3);
}

.global-filter-badge {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 3px solid #f0a520;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #92400e;
  font-family: 'Inter', sans-serif;
}
.gfb-icon {
  color: #f0a520;
  margin-right: 5px;
  font-size: 9px;
  vertical-align: middle;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 12px 0;
}

/* ── Content Area ── */
.content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  background: #f5f7fb;
}

/* ── Top Header Bar — navy dominant ── */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #22224D;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(34,34,77,0.2);
}

.top-header h1 {
  font-family: 'Inter', Arial, sans-serif;
  color: white;
  margin: 0;
  font-weight: 800;
  font-size: 20px;
}

.top-header p {
  font-family: 'Noto Sans', Arial, sans-serif;
  color: rgba(255,255,255,0.6);
  margin: 4px 0 0;
  font-size: 13px;
}

/* Report top-bar logo image */
.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ── Page Sections ── */
.page {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.page h2 {
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  font-weight: 700;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #D12429;
  display: inline-block;
}

.page-desc {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13.5px;
  color: #6b7280;
  margin: 4px 0 18px 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   FILE MATCH FUNNEL
══════════════════════════════════════ */

.fm-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  gap: 10px;
}

/* ── Funnel column ──
   Brand navy wrapper whose background shows as the dark
   separator bars between the clipped trapezoid stages.      */
.fm-funnel {
  background: #22224D;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(34,34,77,0.22);
}

.fm-stage {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  clip-path: polygon(7% 0%, 93% 0%, 85% 100%, 15% 100%);
  transition: filter 0.2s;
}

.fm-stage:hover {
  filter: brightness(1.08);
}

.fm-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.88;
  margin-bottom: 6px;
  line-height: 1.35;
}

.fm-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

/* Stage widths, heights & colors */
.fm-s1 { width: 500px; height: 135px; background: #4a6fa5; }
.fm-s2 { width: 400px; height: 112px; background: #26b5bc; }
.fm-s3 { width: 310px; height: 97px;  background: #3da889; }
.fm-s4 { width: 228px; height: 88px;  background: #f0a520; }

/* ── Metrics column ──
   Heights and spacer are pixel-matched so each card's vertical
   centre aligns exactly with the centre of its funnel stage.  */
.fm-metrics {
  display: flex;
  flex-direction: column;
}

.fm-spacer    { height: 40px; flex-shrink: 0; }

/* Color tokens inherited by all children via currentColor / var(--clr) */
.fm-missing   { --clr: #26b5bc; height: 112px; margin-bottom: 8px; }
.fm-duplicate { --clr: #3da889; height: 97px;  margin-bottom: 8px; }
.fm-inactive  { --clr: #f0a520; height: 88px;  }

.fm-metric {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Connector ── */
.fm-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Bullseye dot */
.fm-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--clr);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px white;
}

.fm-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr);
  display: block;
}

.fm-line {
  width: 28px;
  height: 2px;
  background: var(--clr);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── KPI card ── */
.fm-card {
  background: white;
  border-left: 4px solid var(--clr);
  border-radius: 0 12px 12px 0;
  padding: 0 22px;
  min-width: 210px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  position: relative;
  overflow: hidden;
}

/* subtle tint strip behind the card */
.fm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr);
  opacity: 0.04;
}

.fm-card-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 4px;
  position: relative;
}

.fm-card-value {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #080000;
  letter-spacing: -0.5px;
  line-height: 1;
  position: relative;
}

/* ── Insight Box ── */
.insight-box {
  margin-top: 40px;
  background: linear-gradient(135deg, #f4f4fb 0%, #f0f0f8 100%);
  border-left: 5px solid #22224D;
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  line-height: 1.7;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: #080000;
  box-shadow: 0 2px 12px rgba(34,34,77,0.07);
}


/* ══════════════════════════════════════
   FILE MATCH STATISTICS v2
══════════════════════════════════════ */

.fm2-layout {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  align-items: flex-start;
}

/* Donut column */
.fm2-left {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.fm2-donut-wrap {
  position: relative;
  width: 260px;
  height: 260px;
}

.fm2-donut-svg {
  width: 260px;
  height: 260px;
}

.fm2-donut-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fm-donut-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 9px 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.11);
  pointer-events: none;
  z-index: 20;
  min-width: 140px;
  text-align: left;
}
.fmtt-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.fmtt-val {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #22224D;
  line-height: 1.1;
}
.fmtt-pct {
  font-family: 'Noto Sans', sans-serif;
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.fm2-donut-pct {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #22224D;
  line-height: 1;
}

.fm2-donut-sub {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7280;
  margin-top: 6px;
}

.fm2-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm2-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 14px;
  color: #374151;
}

.fm2-leg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stats column */
.fm2-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* 2×2 KPI grid */
.fm2-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fm2-kpi-card {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 18px 20px 16px;
}

.fm2-kpi-accent {
  background: #f0faf6;
  border-color: #3da889;
}

.fm2-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.fm2-kpi-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
}

.fm2-kpi-pct {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #22224D;
  background: rgba(34,34,77,0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.fm2-kpi-pct--green {
  color: #2a7a60;
  background: rgba(61,168,137,0.14);
}

.fm2-kpi-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #22224D;
  line-height: 1;
  margin-bottom: 14px;
}

.fm2-bar-wrap {
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.fm2-bar {
  height: 5px;
  border-radius: 3px;
  width: 0;
  transition: width 0.5s ease;
}

/* 1×4 drop-off cards */
.fm2-drop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fm2-drop-card {
  background: white;
  border-top: 4px solid var(--dc);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.fm2-drop-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 8px;
}

.fm2-drop-val {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #080000;
  line-height: 1;
}

.fm2-drop-pct {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dc);
  margin-top: 5px;
}

.section-subheading {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 12px;
}

#sourceBreakdownSection .fm2-drop-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* ══════════════════════════════════════
   PROVIDER STATUS
══════════════════════════════════════ */

.ps-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.ps-kpi-card {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 18px 20px;
}

.ps-kpi-card--accent {
  background: #f0faf6;
  border-color: #3da889;
}

.ps-kpi-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  margin-bottom: 7px;
}

.ps-kpi-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #22224D;
  line-height: 1;
}

.ps-num-green { color: #3da889; }

/* Main layout */
.ps-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Donut column */
.ps-donut-col {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ps-donut-wrap {
  position: relative;
  width: 240px;
  height: 240px;
}

.ps-donut-svg {
  width: 240px;
  height: 240px;
}

.ps-donut-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ps-donut-pct {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #22224D;
  line-height: 1;
}

.ps-donut-sub {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7280;
  margin-top: 5px;
}

.ps-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
  color: #374151;
}

.ps-leg-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bar chart column */
.ps-bars-col {
  flex: 1;
  min-width: 0;
}

.ps-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 130px;
  align-items: center;
  gap: 14px;
}

.ps-bar-label-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ps-bar-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-bar-track {
  height: 16px;
  background: #f0f0f8;
  border-radius: 8px;
  overflow: visible;
  position: relative;
}

.ps-bar-fill {
  height: 100%;
  border-radius: 8px;
  min-width: 6px;
  transition: width 0.5s ease;
}

.ps-bar-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.ps-bar-count {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #22224D;
  min-width: 60px;
  text-align: right;
}

.ps-bar-pct {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  color: #6b7280;
  min-width: 44px;
  text-align: right;
}


/* ══════════════════════════════════════
   PROVIDER STATUS v2 — WAFFLE + LIST
══════════════════════════════════════ */

.ps2-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.ps2-kpi {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 18px 20px;
}

.ps2-kpi--green {
  background: #f0faf6;
  border-color: #3da889;
}

.ps2-kpi-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  margin-bottom: 7px;
}

.ps2-kpi-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #22224D;
  line-height: 1;
}

.ps2-green { color: #3da889; }

/* Layout */
.ps2-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Waffle column */
.ps2-waffle-col {
  flex-shrink: 0;
  width: 276px;
}

.ps2-waffle-header {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}

.ps2-waffle-header span {
  font-weight: 400;
  color: #9ca3af;
  font-size: 12px;
}

.ps2-waffle-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.ps2-waffle-cell {
  aspect-ratio: 1;
  border-radius: 4px;
}

.ps2-waffle-legend {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps2-legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
  color: #374151;
}

.ps2-leg-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status list column */
.ps2-list-col {
  flex: 1;
  min-width: 0;
}

.ps2-status-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ps2-status-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 18px;
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-left: 4px solid transparent;
  border-radius: 10px;
  padding: 14px 20px;
}

.ps2-status-row--active {
  background: #f0faf6;
  border-color: #3da889;
  border-left-color: #3da889;
}

.ps2-status-count {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.ps2-status-name {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #22224D;
  margin-bottom: 3px;
}

.ps2-status-pct {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  color: #6b7280;
}


/* ── Pareto chart container ── */
.ps-chart-wrap {
  margin-top: 8px;
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 20px 24px 14px;
}

.ps-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.ps-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  color: #374151;
}

.ps-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ps-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ps-chart-footnote {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 8px;
}


/* ══════════════════════════════════════
   PROVIDER STATUS v3 — GAUGE + COLUMN
══════════════════════════════════════ */

.ps-dual-layout {
  display: flex;
  gap: 28px;
  margin-top: 12px;
  align-items: flex-start;
}

.ps-panel {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 20px 20px 14px;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.ps-panel--grow {
  flex: 1;
  min-width: 0;
}

.ps-panel--gauge {
  width: 300px;
  flex-shrink: 0;
}

.ps-panel-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #6b7280;
  margin-bottom: 12px;
}

.ps-panel-svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ══════════════════════════════════════
   FILL RATE — ATTRIBUTES
══════════════════════════════════════ */

.fr-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 24px;
}

.fr-kpi-row--solo {
  grid-template-columns: minmax(0, 240px);
}

.fr-kpi {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 18px 20px;
}

.fr-kpi--accent {
  background: #f0faf6;
  border-color: #3da889;
}

.fr-kpi-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  margin-bottom: 7px;
}

.fr-kpi-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #22224D;
  line-height: 1;
}

.fr-chart-panel {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 20px 24px 18px;
}

.fr-legend-row {
  display: flex;
  gap: 22px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fr-leg-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 12px;
  color: #374151;
}

.fr-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fr-bar-svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ══════════════════════════════════════
   FILL RATE — CORE PROFILE
══════════════════════════════════════ */

.fc-top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.fc-bot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fc-group-card {
  background: white;
  border: 1px solid #eef0f6;
  border-top: 4px solid var(--gc);
  border-radius: 12px;
  padding: 18px 20px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fc-group-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gc);
  margin-bottom: 18px;
}

.fc-bar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fc-bar-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 70px;
  align-items: center;
  gap: 10px;
}

.fc-bar-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11px;
  color: #374151;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-bar-track {
  height: 14px;
  background: #e9ebf0;
  border-radius: 7px;
  overflow: hidden;
}

.fc-bar-fill {
  height: 100%;
  border-radius: 7px;
  min-width: 3px;
  transition: width 0.6s ease;
}

.fc-bar-stat {
  text-align: right;
}

.fc-pct {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.fc-cnt {
  display: block;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.3;
}


/* ══════════════════════════════════════
   EMAIL LICENSE & DOMAIN ANALYSIS
══════════════════════════════════════ */

.el-dual-layout {
  display: flex;
  gap: 28px;
  margin-top: 12px;
  align-items: flex-start;
}

.el-panel {
  background: #f8f9fc;
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 20px 20px 16px;
  min-width: 0;
}

.el-panel--lic { flex: 4; display: flex; flex-direction: column; align-items: stretch; }
.el-panel--dom { flex: 6; }

.el-panel-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #6b7280;
  margin-bottom: 14px;
}

.el-panel-svg {
  width: 100%;
  height: auto;
  display: block;
}

.el-lic-donut-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.el-lic-donut-svg {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.el-lic-buckets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el-bucket-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: white;
  border-left: 3px solid var(--bc);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.el-bucket-label {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11px;
  color: #374151;
}

.el-bucket-count {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #22224D;
}

.el-bucket-pct {
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--bc);
  min-width: 38px;
  text-align: right;
}

.el-dom-panel {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-top: 3px solid #26b5bc;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* ══════════════════════════════════════
   EMAIL COVERAGE — Specialty & Title
══════════════════════════════════════ */

.ec-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.ec-kpi {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
}

.ec-kpi--title { border-top: 4px solid #f0a520; }
.ec-kpi--spec  { border-top: 4px solid #26b5bc; }

.ec-kpi-label {
  font-size: 11px;
  color: #6b7280;
  font-family: 'Noto Sans', Arial, sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ec-kpi-num {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  line-height: 1.1;
}

.ec-kpi-name {
  font-size: 14px;
}

.ec-kpi-sub {
  font-size: 12px;
  color: #9ca3af;
  font-family: 'Noto Sans', Arial, sans-serif;
  margin-top: 3px;
}

.ec-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ec-limit-select {
  font-size: 12px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  color: #22224D;
  background: white;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.ec-limit-select:hover,
.ec-limit-select:focus {
  border-color: #22224D;
}

.ec-dual-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ec-panel {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  overflow: hidden;
}

.ec-panel--title { border-top: 3px solid #f0a520; }
.ec-panel--spec  { border-top: 3px solid #26b5bc; }

.ec-panel-title {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.ec-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════
   PREMIUM DATA INSIGHTS
══════════════════════════════════════ */

.pd-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.pd-kpi {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
}

.pd-kpi--claims { border-top: 4px solid #7c3aed; }
.pd-kpi--pid    { border-top: 4px solid #22224D; }
.pd-kpi--payors { border-top: 4px solid #26b5bc; }
.pd-kpi--ehr    { border-top: 4px solid #7c3aed; }

.pd-kpi-label {
  font-size: 11px;
  color: #6b7280;
  font-family: 'Noto Sans', Arial, sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pd-kpi-num {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  line-height: 1.1;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pd-panel {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  overflow: hidden;
}

.pd-panel--claims { border-top: 3px solid #7c3aed; }
.pd-panel--pid    { border-top: 3px solid #22224D; }
.pd-panel--payors { border-top: 3px solid #26b5bc; }
.pd-panel--ehr    { border-top: 3px solid #7c3aed; }

.pd-panel-title {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.pd-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ══════════════════════════════════════
   SPECIALTY PENETRATION
══════════════════════════════════════ */

.sp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.sp-kpi {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
}

.sp-kpi--total { border-top: 4px solid #26b5bc; }
.sp-kpi--avg   { border-top: 4px solid #3da889; }
.sp-kpi--high  { border-top: 4px solid #f0a520; }
.sp-kpi--count { border-top: 4px solid #22224D; }

.sp-kpi-label {
  font-size: 11px;
  color: #6b7280;
  font-family: 'Noto Sans', Arial, sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sp-kpi-num {
  font-size: 26px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  line-height: 1.1;
}

.sp-kpi-name { font-size: 15px; }

.sp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sp-ctrl-label {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Noto Sans', Arial, sans-serif;
  color: #6b7280;
}

.sp-ctrl-select {
  font-size: 13px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  color: #22224D;
  background: white;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.sp-ctrl-select:hover,
.sp-ctrl-select:focus { border-color: #22224D; }

.sp-dual-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.sp-panel {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-top: 3px solid #26b5bc;
  border-radius: 10px;
  padding: 16px 18px;
  overflow: hidden;
}

.sp-panel-title {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  margin-bottom: 12px;
}

.sp-treemap-svg,
.sp-dualbar-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sp-grouped-wrap {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-top: 3px solid #22224D;
  border-radius: 10px;
  padding: 16px 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.di-chart-svg {
  display: block;
  width: 100%;
}

.sp-grouped-bar-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sp-pct-section {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-top: 3px solid #D12429;
  border-radius: 10px;
  padding: 16px 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.sp-pct-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #22224D;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── State Penetration Map ─────────────────────── */
.state-map-wrapper {
  position: relative;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-top: 3px solid #22224D;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.state-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.state-tooltip {
  position: absolute;
  display: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 100;
  min-width: 170px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
}

.stt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  gap: 14px;
}

.stt-label {
  color: #6b7280;
  white-space: nowrap;
  font-size: 11px;
}

.stt-val {
  font-weight: 700;
  color: #22224D;
  font-size: 12px;
}

.stt-divider {
  border-bottom: 1px solid #f3f4f6;
  margin: 2px 0;
}

/* ── HealthLink AI Insights ─────────────────────── */

.sidebar-divider--ai {
  border-top-color: rgba(209, 36, 41, 0.4);
  margin: 14px 0 8px;
}

.sidebar-btn-ai {
  background: linear-gradient(135deg, #2a0a0b 0%, #22224D 100%) !important;
  border-left: 3px solid #D12429 !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.sidebar-btn-ai:hover {
  background: linear-gradient(135deg, #3d1012 0%, #2d2d66 100%) !important;
}

.sidebar-btn-ai.active {
  background: linear-gradient(135deg, #3d1012 0%, #2d2d66 100%) !important;
  border-left-color: #D12429 !important;
}

.ai-header {
  background: linear-gradient(135deg, #14143c 0%, #22224D 60%, #3a0e10 100%);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.ai-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(209,36,41,0.18) 0%, transparent 65%);
}

.ai-header-inner { position: relative; }

.ai-header-title {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.ai-spark {
  color: #D12429;
  margin-right: 6px;
  font-size: 18px;
}

.ai-header-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  font-family: 'Noto Sans', sans-serif;
}

.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.ai-card {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  border-left: 4px solid #22224D;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-card--strong    { border-left-color: #3da889; }
.ai-card--opportunity { border-left-color: #f0a520; }
.ai-card--attention { border-left-color: #D12429; }

.ai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-card-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9ca3af;
  font-family: 'Inter', Arial, sans-serif;
  text-transform: uppercase;
}

.ai-signal {
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  padding: 2px 9px;
  border-radius: 20px;
}

.ai-signal--strong      { background: #d1fae5; color: #065f46; }
.ai-signal--opportunity { background: #fef3c7; color: #92400e; }
.ai-signal--attention   { background: #fee2e2; color: #991b1b; }

.ai-card-stat {
  font-size: 32px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  line-height: 1;
  margin-bottom: 1px;
}

.ai-card-stat-label {
  font-size: 11px;
  color: #9ca3af;
  font-family: 'Inter', Arial, sans-serif;
  margin-bottom: 10px;
}

.ai-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.35;
  margin-bottom: 7px;
}

.ai-card-body {
  font-size: 12.5px;
  color: #4b5563;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
}

.ai-recs-section {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 22px;
}

.ai-recs-title {
  font-size: 14px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  color: #22224D;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f3f4f6;
}

.ai-rec-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f9fafb;
}

.ai-rec-row:last-child { border-bottom: none; }

.ai-rec-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #22224D;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-rec--high .ai-rec-num    { background: #D12429; }
.ai-rec--medium .ai-rec-num  { background: #f0a520; }
.ai-rec--low .ai-rec-num     { background: #3da889; }

.ai-rec-content { flex: 1; }

.ai-rec-action {
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  color: #111827;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-rec-priority {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}

.ai-rec--high .ai-rec-priority    { background: #fee2e2; color: #991b1b; }
.ai-rec--medium .ai-rec-priority  { background: #fef3c7; color: #92400e; }
.ai-rec--low .ai-rec-priority     { background: #d1fae5; color: #065f46; }

.ai-rec-detail {
  font-size: 12.5px;
  color: #6b7280;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.55;
}

/* ── Engagement Insights Tab ─────────────────────────────────────────────── */
.eng-empty { padding: 60px; text-align: center; color: #9ca3af; font-size: 15px; font-family: 'Noto Sans', Arial, sans-serif; }

.eng-header { margin-bottom: 20px; }
.eng-title  { font-family: 'Inter', Arial, sans-serif; font-size: 20px; font-weight: 700; color: #22224D; margin: 0 0 4px; }
.eng-sub    { font-family: 'Noto Sans', Arial, sans-serif; font-size: 12px; color: #6b7280; margin: 0; }
.eng-prototype-badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  background: #fef3c7; color: #92400e; border-radius: 9px;
  font-family: 'Inter', Arial, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .4px; vertical-align: middle;
}

/* KPI row */
.eng-kpi-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.eng-kpi-card {
  flex: 1; min-width: 140px;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 14px 16px;
}
.eng-kpi-label { font-family: 'Noto Sans', Arial, sans-serif; font-size: 11px; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .8px; }
.eng-kpi-value { font-family: 'Inter', Arial, sans-serif; font-size: 26px; font-weight: 800; color: #22224D; line-height: 1.1; }

/* Grids */
.eng-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.eng-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .eng-grid-2, .eng-grid-3 { grid-template-columns: 1fr; } }

/* Cards */
.eng-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px 20px;
}
.eng-card-wide { grid-column: span 1; }
.eng-card-full { margin-bottom: 16px; }
.eng-card-title { font-family: 'Inter', Arial, sans-serif; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }

/* Brand table */
.eng-table { width: 100%; border-collapse: collapse; font-size: 13px; font-family: 'Noto Sans', Arial, sans-serif; }
.eng-table th { font-family: 'Inter', Arial, sans-serif; text-align: left; font-size: 11px; font-weight: 600; color: #6b7280; padding: 4px 8px 8px; border-bottom: 1px solid #e5e7eb; text-transform: uppercase; letter-spacing: .4px; }
.eng-table td { padding: 8px 8px; border-bottom: 1px solid #f3f4f6; color: #111111; font-weight: 500; }
.eng-table tr:last-child td { border-bottom: none; }
.eng-num { text-align: right; font-family: 'Inter', Arial, sans-serif; font-variant-numeric: tabular-nums; color: #111111; font-weight: 600; }
.eng-brand-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }

/* Horizontal bar charts */
.eng-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.eng-bar-label    { width: 68px;  font-family: 'Noto Sans', Arial, sans-serif; font-size: 12px; color: #374151; flex-shrink: 0; }
.eng-bar-label-sp { width: 158px; font-family: 'Noto Sans', Arial, sans-serif; font-size: 12px; color: #374151; flex-shrink: 0; }
.eng-bar-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.eng-bar-fill  { height: 100%; border-radius: 5px; transition: width .4s ease; }
.eng-bar-meta  { font-family: 'Noto Sans', Arial, sans-serif; font-size: 12px; color: #374151; white-space: nowrap; min-width: 100px; font-variant-numeric: tabular-nums; }
.eng-bar-ctr   { color: #6b7280; margin-left: 6px; }
.eng-bar-pct   { color: #6b7280; margin-left: 6px; }

/* Reach rate card */
.eng-reach-card  { display: flex; flex-direction: column; justify-content: center; }
.eng-reach-number { font-family: 'Inter', Arial, sans-serif; font-size: 48px; font-weight: 800; color: #22224D; line-height: 1; margin: 8px 0 6px; }
.eng-reach-sub    { font-family: 'Noto Sans', Arial, sans-serif; font-size: 12px; color: #6b7280; margin-bottom: 16px; }
.eng-reach-bar-track { height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.eng-reach-bar-fill  { height: 100%; background: #22224D; border-radius: 5px; transition: width .5s ease; }

/* Timeline */
.eng-timeline     { overflow-x: auto; padding: 6px 0 2px; }
.eng-tl-svg       { width: 100%; height: auto; display: block; }
.eng-tl-line      { stroke: #22224D; }
.eng-tl-dot       { fill: #22224D; transition: fill .15s ease; cursor: default; }
.eng-tl-dot:hover { fill: #D12429; }
.eng-tl-lbl       { font-family: 'Noto Sans', Arial, sans-serif; font-size: 10px; fill: #9ca3af; }
.eng-tl-avgline   { stroke: #e2e8f0; stroke-width: 1; stroke-dasharray: 4 3; }

/* Dark theme */
@media (prefers-color-scheme: dark) {
  .eng-kpi-card  { background: #1e293b; border-color: #334155; border-top-color: inherit; }
  .eng-kpi-value { color: #e2e8f0; }
  .eng-card      { background: #1e293b; border-color: #334155; }
  .eng-card-title { color: #cbd5e1; }
  .eng-table td   { color: #cbd5e1; }
  .eng-table th  { color: #94a3b8; border-color: #334155; }
  .eng-table td  { border-color: #1e293b; }
  .eng-bar-track, .eng-reach-bar-track { background: #334155; }
  .eng-tl-line    { stroke: #818cf8; }
  .eng-tl-dot     { fill: #818cf8; }
  .eng-tl-avgline { stroke: #334155; }
  .eng-tl-lbl     { fill: #64748b; }
  .eng-bar-label, .eng-bar-label-sp { color: #cbd5e1; }
  .eng-bar-meta  { color: #cbd5e1; }
  .eng-reach-number { color: #e2e8f0; }
}
:root[data-theme="dark"] .eng-kpi-card  { background: #1e293b; border-color: #334155; }
:root[data-theme="dark"] .eng-kpi-value { color: #e2e8f0; }
:root[data-theme="dark"] .eng-card      { background: #1e293b; border-color: #334155; }
:root[data-theme="dark"] .eng-card-title, :root[data-theme="dark"] .eng-table td { color: #cbd5e1; }
:root[data-theme="dark"] .eng-table th  { color: #94a3b8; border-color: #334155; }
:root[data-theme="dark"] .eng-bar-track, :root[data-theme="dark"] .eng-reach-bar-track { background: #334155; }
:root[data-theme="dark"] .eng-bar-label-sp { color: #cbd5e1; }
:root[data-theme="dark"] .eng-tl-line    { stroke: #818cf8; }
:root[data-theme="dark"] .eng-tl-dot     { fill: #818cf8; }
:root[data-theme="dark"] .eng-tl-avgline { stroke: #334155; }
:root[data-theme="dark"] .eng-tl-lbl     { fill: #64748b; }
:root[data-theme="light"] .eng-kpi-card  { background: #f8fafc; border-color: #e2e8f0; }
:root[data-theme="light"] .eng-kpi-value { color: #22224D; }

