/* ==========================================================
   pDOOH Intelligence – UI upgrade styles
   Uiverse-inspired: glow buttons, pulse dots, skeletons,
   gradient-border cards. Keeps your existing dark + teal look.
   ========================================================== */

:root {
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-2: #16213a;
  --line: #1f2b45;
  --text: #e6edf7;
  --muted: #8a97b0;
  --teal: #19c2a6;
  --teal-soft: rgba(25, 194, 166, 0.14);
  --amber: #f5a524;
  --violet: #8b7cf6;
  --pink: #e05aa8;
  --green: #22c55e;
  --red: #ef4444;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ---------- Buttons (Uiverse "glow" style) ---------- */
.ui-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.ui-btn:hover { transform: translateY(-1px); }
.ui-btn:active { transform: translateY(0); }
.ui-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ui-btn--primary {
  background: linear-gradient(135deg, #19c2a6, #0ea5a0);
  border-color: transparent; color: #04211c;
  box-shadow: 0 0 0 0 rgba(25,194,166,.0);
}
.ui-btn--primary:hover { box-shadow: 0 6px 24px -6px rgba(25,194,166,.6); }
.ui-btn[disabled] { opacity: .7; cursor: progress; }
.ui-btn__spin { animation: ui-spin 0.9s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

.sync-meta { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* ---------- Live status dot (pulse) ---------- */
.live-dot { position: relative; display: inline-flex; width: 10px; height: 10px; }
.live-dot::before, .live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
}
.live-dot::before { animation: ui-ping 1.6s cubic-bezier(0,0,.2,1) infinite; opacity: .7; }
@keyframes ui-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.live-dot--off::before, .live-dot--off::after { background: var(--red); }
.live-dot--off::before { animation: none; }

/* ---------- Filter inputs ---------- */
.ui-input, .ui-select {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ui-input:focus, .ui-select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

/* ---------- KPI cards (gradient border on hover / active) ---------- */
.kpi-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.kpi-card {
  position: relative; padding: 18px 18px 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
  text-align: left; color: inherit; font: inherit; width: 100%;
}
.kpi-card::before {               /* gradient border, Uiverse style */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--accent, var(--teal)), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
.kpi-card:hover { transform: translateY(-2px); }
.kpi-card:hover::before, .kpi-card[aria-pressed="true"]::before { opacity: 1; }
.kpi-card:focus-visible { outline: 2px solid var(--accent, var(--teal)); outline-offset: 2px; }

.kpi-card__top { display: flex; justify-content: space-between; align-items: center; }
.kpi-card__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-card__icon {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: color-mix(in srgb, var(--accent, var(--teal)) 16%, transparent);
  color: var(--accent, var(--teal));
}
.kpi-card__value {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  margin: 10px 0 2px; font-variant-numeric: tabular-nums;
}
.kpi-card__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.kpi-card__hint { font-size: 12px; color: var(--accent, var(--teal)); }
.kpi-delta { font-size: 12px; font-weight: 600; }
.kpi-delta--up { color: var(--green); }
.kpi-delta--down { color: var(--red); }
.kpi-spark { width: 84px; height: 28px; }

/* ---------- Segmented toggle (chart metric switch) ---------- */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.seg button[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal); }

/* ---------- Top venues list with bars ---------- */
.venue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.venue {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.venue__rank {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted);
}
.venue__rank--1 { background: linear-gradient(135deg,#f7d774,#d4a017); color: #3a2a00; }
.venue__rank--2 { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color: #1f2937; }
.venue__rank--3 { background: linear-gradient(135deg,#f0b27a,#b8692e); color: #2e1606; }
.venue__name { font-weight: 600; font-size: 14px; }
.venue__bar { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.venue__bar > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #5eead4);
  transform-origin: left; animation: bar-grow .8s ease-out both;
}
@keyframes bar-grow { from { transform: scaleX(0); } }
.venue__stats { text-align: right; font-size: 12px; color: var(--muted); }
.venue__stats strong { display: block; color: var(--teal); font-size: 15px; }
.view-all { margin-top: 12px; background: none; border: 0; color: var(--teal); font-weight: 600; cursor: pointer; }

/* ---------- Ledger table ---------- */
.ledger-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger thead th {
  position: sticky; top: 0; z-index: 1; background: var(--panel-2);
  text-align: right; padding: 14px 16px; color: var(--muted); font-weight: 600; font-size: 13px;
  white-space: nowrap;
}
.ledger thead th:first-child { text-align: left; }
.ledger th button {
  all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.ledger th button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.ledger td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.ledger td:first-child { text-align: left; }
.ledger tbody tr { transition: background .15s ease; }
.ledger tbody tr:hover { background: rgba(25,194,166,.05); }
.ledger__venue { font-weight: 600; }
.ledger__id { font-size: 11px; color: var(--muted); }
.ledger__imp { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.ledger__imp i { display: inline-block; width: 56px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ledger__imp i > b { display: block; height: 100%; background: var(--teal); }
.ledger tfoot td { background: var(--panel-2); font-weight: 700; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(34,197,94,.12); color: var(--green); border: 1px solid rgba(34,197,94,.3);
}
.pill--off { background: rgba(239,68,68,.12); color: var(--red); border-color: rgba(239,68,68,.3); }

/* ---------- Skeleton loader ---------- */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--panel-2) 25%, #1d2a47 50%, var(--panel-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Map marker pulse (Leaflet divIcon) ---------- */
.map-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; }
.map-pin--high { width: 18px; height: 18px; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,165,36,.6); animation: pin-pulse 2s infinite; }
@keyframes pin-pulse { 70% { box-shadow: 0 0 0 12px rgba(245,165,36,0); } 100% { box-shadow: 0 0 0 0 rgba(245,165,36,0); } }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Map container & Leaflet Dark Styles ---------- */
.leaflet-container {
  background-color: #0b1220 !important;
  font-family: inherit;
}
.dark-tiles .leaflet-tile {
  filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%);
}
.leaflet-control-layers {
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
}
.leaflet-control-layers-toggle {
  filter: invert(1);
}
.leaflet-popup-content-wrapper {
  background-color: var(--panel) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
.leaflet-popup-tip {
  background-color: var(--panel) !important;
}

/* 1. Keep all 6 KPI cards on one row on desktop */
.kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* 2. Sparkline sits under the hint instead of beside it */
.kpi-card__row { flex-direction: column; align-items: stretch; }
.kpi-spark { width: 100%; height: 24px; margin-top: 8px; }
.kpi-card__value { font-size: 26px; }

/* Make the trend chart fill its panel */
.trend-panel { display: flex; flex-direction: column; height: 100%; }
.trend-panel .trend-chart { flex: 1; min-height: 320px; position: relative; }

/* Use more of the screen on wide monitors */
.page-container {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 48px);
}

/* KPI cards: keep content top-aligned so cards without a sparkline line up */
.kpi-card { display: flex; flex-direction: column; justify-content: flex-start; }

/* ---------- Bright / Light Mode Theme ---------- */
[data-theme="light"] {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.12);
  --amber: #d97706;
  --violet: #7c3aed;
  --pink: #db2777;
  --green: #16a34a;
  --red: #dc2626;
}

[data-theme="light"] body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

[data-theme="light"] header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--line) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] section,
[data-theme="light"] .trend-panel,
[data-theme="light"] #mapWeatherBadge {
  background-color: var(--panel) !important;
  border-color: var(--line) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] footer {
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] .text-white {
  color: var(--text) !important;
}

[data-theme="light"] .text-\[\#8a97b0\],
[data-theme="light"] .text-slate-400 {
  color: var(--muted) !important;
}

[data-theme="light"] .text-slate-200,
[data-theme="light"] .text-slate-300 {
  color: var(--text) !important;
}

[data-theme="light"] .border-\[\#1f2b45\] {
  border-color: var(--line) !important;
}

[data-theme="light"] .bg-\[\#111a2b\] {
  background-color: var(--panel) !important;
}

[data-theme="light"] .leaflet-container {
  background-color: #f8fafc !important;
}

[data-theme="light"] .leaflet-control-layers {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .leaflet-control-layers-toggle {
  filter: none !important;
}

[data-theme="light"] .leaflet-popup-content-wrapper {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .leaflet-popup-tip {
  background-color: #ffffff !important;
}

[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%) !important;
  background-size: 200% 100% !important;
}

/* ---------- Branded Client PDF Report Styles ---------- */
#pdfReportTemplate {
  display: none;
  background: #ffffff;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.report-page {
  padding: 28px 32px;
  box-sizing: border-box;
  background: #ffffff;
  width: 100%;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.report-agency-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.report-tagline {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.report-meta-box {
  text-align: right;
  font-size: 11px;
  color: #64748b;
}

.report-title-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.report-campaign-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 11px;
}

.report-campaign-bar span {
  display: block;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.report-campaign-bar strong {
  font-size: 13px;
  color: #0f172a;
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.report-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: left;
}

.report-kpi-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.report-kpi-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 2px;
}

.report-kpi-hint {
  font-size: 9px;
  color: #64748b;
}

.report-grid-two {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  margin-bottom: 20px;
}

.report-card-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.report-card-panel h3 {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94a3b8;
}

/* ---------- Header Actions Toolbar & Export Dropdown ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-actions .ui-btn {
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  box-sizing: border-box;
}

.header-actions .ui-btn:focus-visible {
  outline: 2px solid var(--teal) !important;
  outline-offset: 2px !important;
}

/* 1. Ghost Sync Button */
.ui-btn--ghost {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 10px !important;
  box-shadow: none !important;
}

.ui-btn--ghost:hover {
  background: var(--panel-2) !important;
  color: var(--text) !important;
  transform: none !important;
}

.ui-btn--ghost[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* 2. Export Dropdown Menu */
.export-dropdown {
  position: relative;
  display: inline-block;
}

.export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  min-width: 240px;
  z-index: 1000;
  padding: 6px;
  display: none;
}

[data-theme="light"] .export-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.export-menu.show {
  display: block;
}

.export-menu-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.export-menu-item:hover, .export-menu-item:focus-visible {
  background: var(--panel-2);
  outline: none;
}

.export-menu-item-title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.export-menu-item-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  padding-left: 20px;
}

/* 4. Theme Icon Button (40x40 square) */
.ui-btn--icon-only {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Responsive Header Toolbar Rules */
@media (max-width: 1100px) {
  .sync-label-text {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .btn-label-text {
    display: none !important;
  }
  .header-actions .ui-btn {
    padding: 0 10px !important;
  }
  .export-chevron {
    display: none !important;
  }
}

/* ---------- Export Agency Branding Modal ---------- */
.export-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.export-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.export-modal-card {
  background: var(--panel, #0f172a);
  border: 1px solid var(--line, #1f2b45);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  color: var(--text, #f8fafc);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.export-modal-backdrop.show .export-modal-card {
  transform: translateY(0) scale(1);
}
.export-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line, #1f2b45);
  background: rgba(19, 31, 55, 0.5);
}
.export-modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}
.export-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line, #1f2b45);
  background: rgba(15, 23, 42, 0.6);
}
.agency-pill-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--line, #1f2b45);
  background: var(--panel-2, #131f37);
  color: var(--muted, #8a97b0);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.agency-pill-btn:hover {
  color: var(--text, #f8fafc);
  border-color: var(--teal, #19c2a6);
}
.agency-pill-btn.active {
  background: rgba(25, 194, 166, 0.15);
  border-color: var(--teal, #19c2a6);
  color: var(--teal, #19c2a6);
}
.logo-dropzone {
  border: 2px dashed var(--line, #1f2b45);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(19, 31, 55, 0.4);
}
.logo-dropzone:hover, .logo-dropzone.dragover {
  border-color: var(--teal, #19c2a6);
  background: rgba(25, 194, 166, 0.08);
}
.logo-preview-box {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Date Preset Pills in Export Modal */
.date-pill-btn {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line, #1f2b45);
  background: var(--panel-2, #131f37);
  color: var(--muted, #8a97b0);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.date-pill-btn:hover {
  color: var(--text, #f8fafc);
  border-color: var(--teal, #19c2a6);
}
.date-pill-btn.active {
  background: rgba(25, 194, 166, 0.15);
  border-color: var(--teal, #19c2a6);
  color: var(--teal, #19c2a6);
}

/* Report Story Banner & Venue Split Styling */
.report-story-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.report-venue-table th, .report-venue-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #e2e8f0;
}
.report-venue-table tr:hover {
  background: #f8fafc;
}

/* PDF Generation & Print Pagination Fixes */
.html2pdf__page-break {
  page-break-before: always !important;
  break-before: page !important;
  display: block;
  height: 1px;
}

.report-venue-table tr {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.report-venue-table thead {
  display: table-header-group;
}

.report-card-panel {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.report-story-box {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}



