/* ============================================
   HomeProMatcher — Advertiser Portal Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #003366;
  --blue-800: #004d99;
  --blue-700: #005bb5;
  --blue-600: #0066cc;
  --blue-500: #1a7adb;
  --blue-400: #4a9ae6;
  --blue-300: #7eb8f0;
  --blue-200: #b3d4f7;
  --blue-100: #dceaf7;
  --blue-50:  #f0f6fc;

  --green-600: #16883a;
  --green-500: #1da750;
  --green-400: #34c468;
  --green-100: #d4f5e0;
  --green-50:  #edfbf2;

  --orange-700: #9a4f0a;
  --orange-600: #c2660c;
  --orange-500: #e67e22;
  --orange-300: #f6bd71;
  --orange-200: #fbd7a5;
  --orange-100: #fef0db;
  --orange-50:  #fff7ed;

  --red-500: #e74c3c;
  --red-100: #fde8e6;

  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #4a4a5a;
  --gray-600: #666680;
  --gray-500: #8888a0;
  --gray-400: #adadc0;
  --gray-300: #d0d0dd;
  --gray-200: #e5e5ee;
  --gray-100: #f2f2f7;
  --gray-50:  #f8f9fa;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-family: inherit;
  text-decoration: none;
  gap: 8px;
}
.btn-primary { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue-600); border-color: var(--blue-200); }
.btn-secondary:hover { border-color: var(--blue-600); background: var(--blue-50); }
.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- Navbar ---- */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--gray-900);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.navbar-links { display: flex; gap: 28px; }
.navbar-links a { font-size: 14px; font-weight: 500; color: var(--gray-700); transition: color 0.2s; }
.navbar-links a:hover { color: var(--blue-600); }
.navbar-cta { display: flex; gap: 10px; align-items: center; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-700); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--green-50) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,102,204,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,102,204,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--blue-600); }
.hero-text > p { font-size: 17px; color: var(--gray-600); margin-bottom: 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat strong { display: block; font-size: 26px; color: var(--gray-900); }
.hero-stat span { font-size: 13px; color: var(--gray-500); }

/* Service cards in hero */
.hero-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card .icon { font-size: 32px; margin-bottom: 8px; }
.service-card h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); }

/* ---- Section common ---- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 34px;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Value Props ---- */
.value-props { padding: 80px 0; background: var(--white); }
.props-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prop-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.prop-icon { font-size: 28px; margin-bottom: 12px; }
.prop-card h3 { font-size: 17px; color: var(--gray-900); margin-bottom: 8px; }
.prop-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ---- How It Works ---- */
.how-it-works { padding: 80px 0; background: var(--gray-50); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ---- Services Grid ---- */
.services-section { padding: 80px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-large-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
}
.service-large-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.service-large-card .svc-icon { font-size: 40px; margin-bottom: 12px; }
.service-large-card h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; }
.service-large-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.service-large-card .svc-stats { font-size: 13px; color: var(--blue-600); font-weight: 600; }

/* Services CTA */
.services-cta-line {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
}
.services-cta-line a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.services-cta-line a:hover { color: var(--blue-700); }

/* ---- Pricing ---- */
.pricing { padding: 80px 0; background: var(--gray-50); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 720px; margin: 0 auto; }
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.pricing-card.featured { border-color: var(--blue-600); position: relative; }
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
}
.pricing-icon { font-size: 32px; margin-bottom: 12px; }
.pricing-card h3 { font-size: 20px; color: var(--gray-900); margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 800; color: var(--gray-900); }
.price-label { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 6px 0; font-size: 14px; color: var(--gray-700); position: relative; padding-left: 24px; }
.pricing-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--green-500); font-weight: 700; }

/* ---- Testimonials ---- */
.testimonials { padding: 80px 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 14px; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-author .name { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.testimonial-author .company { font-size: 12px; color: var(--gray-500); }

/* ---- FAQ ---- */
.faq-section { padding: 80px 0; background: var(--gray-50); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--blue-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  gap: 16px;
}
.faq-icon {
  font-size: 20px;
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { font-size: 32px; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: 0.9; max-width: 560px; margin: 0 auto 24px; }
.cta-banner .btn-primary { background: var(--white); color: var(--blue-600); border-color: var(--white); }
.cta-banner .btn-primary:hover { background: var(--blue-50); }

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo-icon { background: var(--blue-500); }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--gray-500); }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 13px; color: var(--gray-500); transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer a { color: var(--gray-500); text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-services { max-width: 400px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
  .navbar-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 30px; }
  .hero-services { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 26px; }
}

/* ============================================
   DATE RANGE PICKER  (assets/daterange.js)
   Single-field replacement for paired From/To
   date inputs: presets rail + dual-month calendar.
   ============================================ */
.drp { position: relative; display: inline-block; }
.drp-trigger {
  display: inline-flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 11px; border: 1px solid var(--gray-200); border-radius: 8px;
  background: var(--white); color: var(--gray-700);
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.35;
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.drp-trigger:hover { border-color: var(--gray-300); }
.drp-trigger:focus-visible,
.drp.drp-open .drp-trigger { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(74,154,230,.18); }
.drp-trigger .drp-cal-icon { color: var(--gray-400); flex-shrink: 0; }
.drp-trigger .drp-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drp-trigger .drp-caret { color: var(--gray-400); flex-shrink: 0; transition: transform .2s; }
.drp.drp-open .drp-trigger .drp-caret { transform: rotate(180deg); }
.drp.drp-has-value .drp-trigger { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.drp.drp-has-value .drp-trigger .drp-cal-icon { color: var(--blue-500); }

.drp-backdrop { display: none; }
.drp-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 300;
  display: flex; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.drp-panel[hidden] { display: none; }
.drp-panel-right { left: auto; right: 0; }
.drp-panel-up { top: auto; bottom: calc(100% + 8px); }

.drp-presets { border-right: 1px solid var(--gray-100); background: var(--gray-50); padding: 10px; }
.drp-presets-inner { display: flex; flex-direction: column; gap: 2px; min-width: 148px; }
.drp-preset {
  padding: 8px 12px; border: none; border-radius: 8px; background: transparent;
  color: var(--gray-700); font-family: inherit; font-size: 13px; font-weight: 500;
  text-align: left; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s;
}
.drp-preset:hover { background: var(--gray-100); color: var(--gray-900); }
.drp-preset.is-active { background: var(--blue-600); color: var(--white); font-weight: 600; }
.drp-preset:focus-visible { outline: 2px solid var(--blue-400); outline-offset: -2px; }

.drp-cal { display: flex; flex-direction: column; }
.drp-grids { display: flex; gap: 20px; padding: 14px 16px 4px; }
.drp-month { width: 224px; }
.drp-month-head { display: flex; align-items: center; justify-content: space-between; height: 28px; margin-bottom: 6px; }
.drp-month-title { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.drp-nav {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 1px solid var(--gray-200); border-radius: 7px; background: var(--white);
  color: var(--gray-600); cursor: pointer; padding: 0; transition: background .12s, border-color .12s;
}
.drp-nav:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-800); }
/* Two months side by side share one pair of arrows: "<" on the left month, ">" on
   the right. The other two stay in the layout (invisible) so the titles stay centred. */
.drp-month:first-child .drp-nav-next,
.drp-month:last-child .drp-nav-prev { visibility: hidden; pointer-events: none; }
.drp-dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.drp-dow span { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--gray-400); padding: 4px 0; }
.drp-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.drp-blank { height: 32px; }
.drp-day {
  height: 32px; border: none; padding: 0; background: transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--gray-700);
  cursor: pointer; border-radius: 0; position: relative; transition: background .1s, color .1s;
}
.drp-day:hover:not(:disabled) { background: var(--gray-100); border-radius: 8px; }
.drp-day:disabled { color: var(--gray-300); cursor: default; }
.drp-day.is-today { font-weight: 800; color: var(--blue-600); }
.drp-day.is-today::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.drp-day.is-in { background: var(--blue-50); color: var(--blue-800); border-radius: 0; }
.drp-day.is-start, .drp-day.is-end {
  background: var(--blue-600); color: var(--white); font-weight: 700;
}
.drp-day.is-start:hover, .drp-day.is-end:hover { background: var(--blue-700); }
.drp-day.is-start { border-radius: 8px 0 0 8px; }
.drp-day.is-end { border-radius: 0 8px 8px 0; }
.drp-day.is-single, .drp-day.is-start.is-end { border-radius: 8px; }
.drp-day.is-start.is-today, .drp-day.is-end.is-today { color: var(--white); }
.drp-day:focus-visible { outline: 2px solid var(--blue-400); outline-offset: -2px; border-radius: 8px; z-index: 1; }

.drp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-top: 1px solid var(--gray-100); background: var(--gray-50);
}
/* One line, always: a wrapping footer changes the panel height mid-interaction,
   which on a bottom-sheet slides the day grid out from under the user's finger. */
.drp-foot-text { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drp-foot-actions { display: flex; align-items: center; gap: 8px; }
.drp-btn {
  padding: 8px 16px; border-radius: 8px; font-family: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.drp-cancel { border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-600); }
.drp-cancel:hover { background: var(--gray-100); color: var(--gray-800); }
.drp-apply { border: none; background: var(--blue-600); color: var(--white); }
.drp-apply:hover { background: var(--blue-700); }

/* Phones: the panel becomes a bottom sheet, one month, presets as a chip row. */
@media (max-width: 700px) {
  .drp { display: block; }
  .drp-backdrop { display: block; position: fixed; inset: 0; background: rgba(26,26,46,.45); z-index: 400; }
  .drp-backdrop[hidden] { display: none; }
  .drp-panel {
    position: fixed; inset: auto 0 0 0; z-index: 401; flex-direction: column;
    border-radius: 16px 16px 0 0; max-height: 88vh; overflow-y: auto;
  }
  .drp-panel-right, .drp-panel-up { left: 0; right: 0; top: auto; bottom: 0; }
  .drp-presets { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 12px; }
  .drp-presets-inner { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; min-width: 0; }
  .drp-preset { border: 1px solid var(--gray-200); background: var(--white); flex: 0 0 auto; }
  .drp-grids { justify-content: center; padding: 12px 12px 0; }
  .drp-month { width: 100%; max-width: 320px; }
  .drp-month + .drp-month { display: none; }          /* one month at a time */
  .drp-month:first-child .drp-nav-next { visibility: visible; pointer-events: auto; }
  .drp-day, .drp-blank { height: 38px; }
  .drp-foot { position: sticky; bottom: 0; flex-wrap: nowrap; }
  .drp-foot-actions { margin-left: auto; flex: 0 0 auto; }
}

/* ============================================
   Admin overview — premium operations cockpit
   Scope is intentionally limited to the overview page.
   ============================================ */
.admin-overview {
  --ov-border: var(--gray-200);
}

.admin-overview h3,
.admin-overview .ov-head h3,
.admin-overview .ov-row .card > h3:first-child,
.admin-overview .ov-row3 .card > h3:first-child {
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.admin-overview .ov-row,
.admin-overview .ov-row3 {
  gap: 18px;
  margin-bottom: 20px;
}

.admin-overview .ov-row .card,
.admin-overview .ov-row3 .card {
  margin: 0;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--ov-border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.admin-overview .ov-head {
  gap: 14px;
  margin-bottom: 16px;
}

.admin-overview .ov-head h3 {
  gap: 7px;
  margin: 0;
}

.admin-overview .ov-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}

.admin-overview .ov-viewall::after {
  content: '\2192';
  font-size: 12px;
  transition: transform .15s;
}

.admin-overview .ov-viewall:hover {
  border-color: var(--blue-200);
  background: var(--blue-100);
  color: var(--blue-800);
}

.admin-overview .ov-viewall:hover::after { transform: translateX(2px); }

/* KPI cards and meaningful insight rails */
.admin-overview .ov-cards {
  gap: 18px;
  margin-bottom: 20px;
}

.admin-overview .ov-card {
  position: relative;
  min-height: 216px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--ov-border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}

.admin-overview .ov-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: none;
}

.admin-overview .ov-card .ovc-top {
  gap: 11px;
  min-height: 42px;
}

.admin-overview .ov-card .ovc-ico {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--white);
}

.admin-overview .ov-card:hover .ovc-ico {
  transform: translateY(-1px);
}

.admin-overview .ov-card .ovc-label {
  color: var(--gray-600);
  font-size: 12.5px;
  font-weight: 700;
}

.admin-overview .ov-card .ovc-val {
  margin-top: 4px;
  color: var(--gray-900);
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.8px;
}

.admin-overview .ov-card .ovc-trend {
  min-height: 17px;
  font-size: 11px;
}

.admin-overview .ov-trend {
  display: inline-flex;
  align-items: center;
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-overview .ov-trend-up { color: var(--green-600); }
.admin-overview .ov-trend-down { color: var(--red-500); }
.admin-overview .ov-trend-warning { color: var(--orange-600); }
.admin-overview .ov-trend-neutral { color: var(--gray-600); }

.admin-overview .ovc-insight {
  margin-top: auto;
  padding-top: 14px;
}

.admin-overview .ovc-insight-head,
.admin-overview .ovc-insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-overview .ovc-insight-head {
  color: var(--gray-600);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.admin-overview .ovc-insight-head strong {
  color: var(--gray-800);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.admin-overview .ovc-rail {
  display: flex;
  width: 100%;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-100);
}

.admin-overview .ovc-rail > span {
  display: block;
  height: 100%;
  min-width: 0;
}

.admin-overview .ovc-rail > span + span { box-shadow: -2px 0 0 var(--white); }
.admin-overview .ovc-rail .is-advertiser,
.admin-overview .ovc-insight-keys .is-advertiser { background: var(--blue-600); }
.admin-overview .ovc-rail .is-manager,
.admin-overview .ovc-insight-keys .is-manager { background: var(--blue-300); }
.admin-overview .ovc-rail .is-other,
.admin-overview .ovc-insight-keys .is-other { background: var(--gray-300); }
.admin-overview .ovc-rail .is-pending { background: var(--orange-500); }
.admin-overview .ovc-rail .is-active { background: var(--green-500); }
.admin-overview .ovc-rail .is-coverage { background: var(--blue-800); }

.admin-overview .ovc-insight-foot,
.admin-overview .ovc-insight-keys {
  min-height: 16px;
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}

.admin-overview .ovc-insight-foot strong {
  color: var(--gray-700);
  font-weight: 700;
  white-space: nowrap;
}

.admin-overview .ovc-insight-keys {
  display: flex;
  gap: 5px 9px;
  flex-wrap: wrap;
}

.admin-overview .ovc-insight-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.admin-overview .ovc-insight-keys i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.admin-overview .ovc-insight-keys strong {
  color: var(--gray-700);
  font-variant-numeric: tabular-nums;
}

/* Attention cards */
.admin-overview .ov-attn {
  gap: 12px;
  margin-bottom: 20px;
}

.admin-overview .ov-attn a {
  position: relative;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--ov-border);
  border-left: 1px solid var(--ov-border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.admin-overview .ov-attn a::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gray-300);
}

.admin-overview .ov-attn a.warn::before { background: var(--orange-500); }
.admin-overview .ov-attn a.danger::before { background: var(--red-500); }
.admin-overview .ov-attn a.info::before { background: var(--blue-600); }

.admin-overview .ov-attn a:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.admin-overview .ov-attn .aico {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-100);
  border-radius: 11px;
}

.admin-overview .ov-attn .an {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.admin-overview .ov-attn .al { color: var(--gray-600); font-size: 11.5px; }

.admin-overview .ov-attn .achev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--gray-400);
  font-size: 18px;
}

/* Operational tables */
.admin-overview .ov-table-card,
.admin-overview .ov-review-card {
  overflow: hidden;
  border: 1px solid var(--ov-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.admin-overview .ov-row .card.ov-review-card,
.admin-overview .ov-row .card.ov-recent-card {
  padding: 0;
}

.admin-overview .ov-review-card > .ov-head,
.admin-overview .ov-recent-card > .ov-head {
  margin: 0;
  padding: 20px 22px 14px;
}

.admin-overview .ov-review-notice {
  margin: 0 22px 14px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.admin-overview .ov-review-notice.is-success {
  border-color: var(--green-100);
  background: var(--green-50);
  color: var(--green-600);
}

.admin-overview .ov-review-notice.is-error {
  border-color: var(--red-100);
  background: var(--red-100);
  color: var(--red-500);
}

.admin-overview .ov-search {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  width: 100%;
  min-width: 220px;
  max-width: 320px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-400);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.admin-overview .ov-search:focus-within {
  border-color: var(--blue-300);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.admin-overview .ov-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.admin-overview .ov-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-800);
  font: inherit;
  font-size: 12.5px;
}

.admin-overview .ov-search-input::placeholder { color: var(--gray-400); }

.admin-overview .ov-review-card .ov-tabs {
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 44px);
  margin: 0 22px 14px;
  padding: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
}

.admin-overview .ov-review-card .ov-tab {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
}

.admin-overview .ov-review-card .ov-tab:hover { color: var(--gray-800); }

.admin-overview .ov-review-card .ov-tab.active {
  border: 0;
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}

.admin-overview .tbl {
  color: var(--gray-700);
  font-variant-numeric: tabular-nums;
}

.admin-overview .tbl th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 10px;
  letter-spacing: .65px;
}

.admin-overview .tbl td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.admin-overview .tbl tbody tr:hover {
  background: var(--blue-50);
  box-shadow: none;
}

.admin-overview .ov-review-card .npn-scroll {
  max-height: 450px;
  border-top: 1px solid var(--gray-100);
}

.admin-overview .ov-review-card .npn-scroll .tbl { min-width: 700px; }
.admin-overview .ov-recent-card .tbl { min-width: 720px; }
.admin-overview .ov-login-card .tbl { min-width: 700px; }

.admin-overview .ov-review-card .npn-scroll .tbl th:last-child,
.admin-overview .ov-review-card .npn-scroll .tbl td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 90px;
  border-left: 1px solid var(--gray-200);
  background: var(--white);
}

.admin-overview .ov-review-card .npn-scroll .tbl th:last-child {
  z-index: 3;
  background: var(--gray-50);
}

.admin-overview .ov-review-card .npn-scroll .tbl tbody tr:hover td:last-child {
  background: var(--blue-50);
}

.admin-overview .ov-review-card .npn-scroll thead th {
  top: 0;
  background: var(--gray-50);
  box-shadow: 0 1px 0 var(--gray-200);
}

.admin-overview .ov-review-card .actions-cell { gap: 5px; }

.admin-overview .ov-review-card .btn-approve,
.admin-overview .ov-review-card .btn-reject {
  min-width: 66px;
  min-height: 29px;
  border-radius: 8px;
  font-size: 11px;
}

.admin-overview .ov-review-card .btn-approve {
  border-color: var(--green-600);
  background: var(--green-600);
  color: var(--white);
}

.admin-overview .ov-review-card .btn-approve:hover {
  border-color: var(--green-500);
  background: var(--green-500);
  color: var(--white);
}

.admin-overview .ov-review-card .btn-reject {
  border-color: var(--red-100);
  background: var(--white);
  color: var(--red-500);
}

.admin-overview .ov-review-card .btn-reject:hover {
  border-color: var(--red-500);
  background: var(--red-100);
  color: var(--red-500);
}

.admin-overview .ov-cfoot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding: 13px 0 0;
  text-align: right;
}

.admin-overview .ov-review-card .ov-cfoot {
  padding: 13px 22px 16px;
  border-top: 1px solid var(--gray-100);
}

/* Recent activity timeline */
.admin-overview .ov-activity-card {
  display: flex;
  flex-direction: column;
}

.admin-overview .ov-activity-card .ov-feed {
  position: relative;
  flex: 1;
  justify-content: space-between;
}

.admin-overview .ov-activity-card .ov-feed::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 15px;
  width: 1px;
  background: var(--gray-200);
}

.admin-overview .ov-feed .fi {
  position: relative;
  gap: 11px;
  padding: 9px 7px;
  border: 0;
  border-radius: 10px;
  transition: background .15s;
}

.admin-overview .ov-feed .fi:hover { background: var(--gray-50); }
.admin-overview .ov-feed .fi-body { min-width: 0; }

.admin-overview .ov-feed .fb {
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 3px solid var(--white);
  border-radius: 10px;
  font-size: 12px;
}

.admin-overview .ov-feed .fb.is-green { background: var(--green-50); color: var(--green-600); }
.admin-overview .ov-feed .fb.is-red { background: var(--red-100); color: var(--red-500); }
.admin-overview .ov-feed .fb.is-orange { background: var(--orange-50); color: var(--orange-600); }
.admin-overview .ov-feed .fb.is-blue { background: var(--blue-50); color: var(--blue-600); }
.admin-overview .ov-feed .fb.is-gray { background: var(--gray-50); color: var(--gray-500); }

.admin-overview .ov-feed .ft {
  color: var(--gray-800);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.admin-overview .ov-feed .fm {
  margin-top: 3px;
  color: var(--gray-600);
  font-size: 10.5px;
}

.admin-overview .ov-activity-card .ov-cfoot {
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--gray-100);
}

.admin-overview .ov-activity-card .ov-cfoot .ov-viewall {
  border-color: transparent;
  background: transparent;
  color: var(--blue-700);
}

.admin-overview .ov-activity-card .ov-cfoot .ov-viewall:hover {
  border-color: var(--blue-100);
  background: var(--blue-50);
}

/* Analytics row */
.admin-overview .ov-analytics-card { min-height: 390px; }

.admin-overview .ov-chart-head { margin-bottom: 12px; }

.admin-overview .ov-period {
  padding: 4px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.admin-overview .chart-box {
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  background: var(--blue-50);
}

.admin-overview .ov-chart-svg {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}

.admin-overview .ov-chart-grid {
  stroke: var(--blue-100);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.admin-overview .ov-chart-bar {
  fill: var(--blue-500);
  transition: opacity .15s;
}

.admin-overview .ov-chart-bar.is-latest { fill: var(--blue-700); }
.admin-overview .ov-chart-bar.is-peak { fill: var(--blue-800); }
.admin-overview .ov-chart-bar:hover { opacity: .72; }

.admin-overview .chart-xlabels {
  margin-top: 7px;
  color: var(--gray-600);
  font-size: 9.5px;
}

.admin-overview .regstats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.admin-overview .regstats .rs {
  padding: 9px 10px;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  background: var(--gray-50);
}

.admin-overview .regstats .rsv {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.admin-overview .regstats .is-approved .rsv { color: var(--green-600); }
.admin-overview .regstats .is-rejected .rsv { color: var(--red-500); }
.admin-overview .regstats .is-pending .rsv { color: var(--orange-600); }

.admin-overview .regstats .rsl {
  margin-top: 3px;
  overflow: visible;
  color: var(--gray-600);
  font-size: 9.5px;
  white-space: normal;
  text-overflow: clip;
}

.admin-overview .regstats .rsl .ov-trend {
  margin-right: 3px;
  font-size: 9.5px;
}

.admin-overview .donut-wrap { gap: 14px; }

.admin-overview .donut-c {
  width: 142px;
  height: 142px;
  border: 1px solid var(--green-100);
  border-radius: 50%;
  background: var(--green-50);
  box-shadow: inset 0 0 0 9px var(--white);
}

.admin-overview .ov-donut-svg {
  width: 142px;
  height: 142px;
  transform: rotate(-90deg);
}

.admin-overview .donut-c .dcenter .dn {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.admin-overview .donut-c .dcenter .dl { color: var(--gray-600); font-size: 9.5px; }

.admin-overview .donut-legend {
  display: grid;
  gap: 6px;
}

.admin-overview .donut-legend div {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 11px;
}

.admin-overview .ov-dot {
  width: 7px;
  height: 7px;
  margin: 0;
}

.admin-overview .ov-dot.is-approved { background: var(--green-600); }
.admin-overview .ov-dot.is-pending { background: var(--orange-500); }
.admin-overview .ov-dot.is-rejected { background: var(--red-500); }

.admin-overview .ov-states { counter-reset: ov-state; }

.admin-overview .ov-states .srow {
  counter-increment: ov-state;
  display: grid;
  grid-template-columns: 26px minmax(70px, 86px) minmax(70px, 1fr) 66px;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
}

.admin-overview .ov-states .srow:last-child { border-bottom: 0; }

.admin-overview .ov-states .srow::before {
  content: counter(ov-state, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--gray-400);
  font-size: 9px;
  font-weight: 800;
}

.admin-overview .ov-states .sname {
  width: auto;
  color: var(--gray-700);
  font-size: 11.5px;
}

.admin-overview .ov-states .sbar {
  height: 7px;
  background: var(--gray-100);
}

.admin-overview .ov-states .sbar span {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
}

.admin-overview .ov-states .sct {
  width: auto;
  color: var(--gray-600);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* Recent registrations */
.admin-overview .ov-person {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.admin-overview .ov-person-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
}

/* Quick actions */
.admin-overview .ov-quick-card h3 { margin-bottom: 14px; }
.admin-overview .ov-qa { gap: 6px; }

.admin-overview .ov-qa a {
  position: relative;
  gap: 11px;
  min-height: 48px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
  transition: border-color .15s, background .15s, color .15s;
}

.admin-overview .ov-qa a::after {
  content: '\203A';
  margin-left: auto;
  color: var(--gray-300);
  font-size: 19px;
  font-weight: 400;
}

.admin-overview .ov-qa a:hover {
  border-color: var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-800);
}

.admin-overview .ov-qa a > span:nth-child(2) { flex: 1; }

.admin-overview .ov-qa .qai {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  font-size: 0;
}

.admin-overview .ov-qa .qai svg { width: 17px; height: 17px; }
.admin-overview .ov-qa .qai.is-blue { background: var(--blue-50); color: var(--blue-600); }
.admin-overview .ov-qa .qai.is-orange { background: var(--orange-50); color: var(--orange-600); }
.admin-overview .ov-qa .qai.is-green { background: var(--green-50); color: var(--green-600); }
.admin-overview .ov-qa .qai.is-gray { background: var(--gray-50); color: var(--gray-600); }

/* System health is the dashboard's single dark anchor. */
.admin-overview .ov-side .card.ov-health {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-color: var(--blue-900);
  background: linear-gradient(135deg, var(--blue-900), var(--gray-900));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.admin-overview .ov-health .ov-head { margin-bottom: 8px; }
.admin-overview .ov-health .ov-head h3 { color: var(--white); }

.admin-overview .ov-health .hrow {
  flex: 1;
  min-height: 52px;
  padding: 11px 0;
  border-bottom-color: var(--blue-800);
  color: var(--blue-100);
  font-size: 11.5px;
}

.admin-overview .ov-health-service {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.admin-overview .ov-health-service i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--blue-800);
  color: var(--blue-100);
  font-style: normal;
}

.admin-overview .ov-health-service svg { width: 14px; height: 14px; }

.admin-overview .ov-health-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-overview .ov-health-status.is-ok { color: var(--green-100); }
.admin-overview .ov-health-status.is-warn { color: var(--orange-200); }

.admin-overview .ov-health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--blue-800);
}

.admin-overview .tbl-responsive {
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--gray-300) var(--gray-50);
  scrollbar-width: thin;
}

.admin-overview .tbl-responsive:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: -2px;
}

.admin-overview .tbl-responsive::-webkit-scrollbar {
  height: 7px;
}

.admin-overview .tbl-responsive::-webkit-scrollbar-track {
  background: var(--gray-50);
  border-radius: 999px;
}

.admin-overview .tbl-responsive::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 999px;
}

/* ── Live Call Capacity ───────────────────────────────────────────────────────
   Per-vertical count of who can actually answer a call right now. Sits above Needs
   Attention and refreshes in place, so it has to read at a glance: one number per
   vertical, the split behind it, and what is blocking the rest. */
.admin-overview .cap-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--gray-400);
}

.admin-overview .cap-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.admin-overview .cap-live.stale { background: var(--gray-100); color: var(--gray-500); }

.admin-overview .cap-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: cap-pulse 2s ease-in-out infinite;
}

.admin-overview .cap-live.stale .cap-pulse { animation: none; }

@keyframes cap-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* One row, always. auto-fit wraps as soon as the container drops below
   (tracks x min-width) — which orphaned "campaigns blocked" onto a line of its own at
   perfectly ordinary widths, and silently changed the break point every time a counter
   was added. Laying the counters out as columns makes one line the rule rather than an
   arithmetic coincidence, and grid-auto-columns keeps them equal without the CSS having
   to know how many there are. minmax(0, 1fr) so a long label shrinks the card instead
   of pushing the row wider than its container. */
.admin-overview .cap-summary {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.admin-overview .cap-summary > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border: 1px solid var(--ov-border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.admin-overview .cap-n {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--gray-900);
}

/* A counter only takes colour when it has something to say — a row of zeros stays
   calm and grey, and the one number that moved is the one that catches the eye. */
.admin-overview .cap-n.cap-dim { color: var(--gray-400); }
.admin-overview .cap-n.cap-ok { color: var(--green-600); }
.admin-overview .cap-n.cap-busy { color: var(--orange-600); }
.admin-overview .cap-n.cap-idle { color: var(--gray-600); }
.admin-overview .cap-l { font-size: 11.5px; color: var(--gray-500); }

.admin-overview .cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-overview .cap-tile {
  position: relative;
  padding: 15px 16px 13px;
  overflow: hidden;
  border: 1px solid var(--ov-border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.admin-overview .cap-tile::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gray-300);
}

.admin-overview .cap-tile.ok::before { background: var(--green-500); }
.admin-overview .cap-tile.none::before { background: var(--gray-300); }

.admin-overview .cap-vert {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.admin-overview .cap-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--gray-900);
}

.admin-overview .cap-tile.none .cap-num { color: var(--gray-300); }
.admin-overview .cap-sub { font-size: 11px; color: var(--gray-400); margin-top: 3px; }

.admin-overview .cap-split {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.admin-overview .cap-split span {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 11px;
  font-weight: 600;
}

/* Free / on a call / paused read as three different things, so they look like three
   different things — an amber "on call" is capacity that exists but is sold out. */
.admin-overview .cap-split .cap-busy { background: var(--orange-50); color: var(--orange-600); }
.admin-overview .cap-split .cap-idle { background: var(--gray-100); color: var(--gray-500); }
.admin-overview .cap-split .cap-muted { background: var(--gray-100); color: var(--gray-400); }

.admin-overview .cap-blocked {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--gray-100);
  font-size: 11px;
  color: var(--gray-500);
}

.admin-overview .cap-blocked strong { color: var(--orange-600); }
.admin-overview .cap-blocked.cap-clear { color: var(--green-600); }
.admin-overview .cap-why { color: var(--gray-400); font-size: 10.5px; }

.admin-overview .cap-warn,
.admin-overview .cap-empty {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.admin-overview .cap-warn { background: var(--orange-50); color: var(--orange-700); border: 1px solid var(--orange-200); }
.admin-overview .cap-empty { background: var(--gray-50); color: var(--gray-500); text-align: center; }

/* ── Collapsible overview section (Cabinet Logins Today) ──────────────────────
   <details> so the toggle is native: keyboard-operable, works without JS, and the
   header keeps reading as a header rather than turning into a button. */
/* The panel IS the card: collapsed it reads as one solid bar rather than a heading
   floating on the page background, and expanded the header stays attached to its own
   table instead of hovering above it. */
.admin-overview .ov-collapse {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.admin-overview .ov-collapse-head {
  cursor: pointer;
  margin-bottom: 0;
  padding: 15px 20px;
  border-radius: 0;
  list-style: none;
  transition: background .15s;
}

/* Both spellings: WebKit needs the pseudo-element, everyone else honours list-style. */
.admin-overview .ov-collapse-head::-webkit-details-marker { display: none; }
.admin-overview .ov-collapse-head::marker { content: ''; }
.admin-overview .ov-collapse-head:hover { background: var(--gray-50); }
.admin-overview .ov-collapse-head:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }

.admin-overview .ov-collapse-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-overview .ov-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: background .15s, border-color .15s;
}

.admin-overview .ov-collapse-head:hover .ov-collapse-btn {
  border-color: var(--blue-200);
  background: var(--blue-100);
}

.admin-overview .ov-collapse-chev {
  font-size: 15px;
  line-height: 1;
  transition: transform .18s;
}

/* Label follows the state without JS, so it is right even before the script runs. */
.admin-overview .ov-collapse .ov-lbl-hide { display: none; }
.admin-overview .ov-collapse[open] .ov-lbl-show { display: none; }
.admin-overview .ov-collapse[open] .ov-lbl-hide { display: inline; }

.admin-overview .ov-collapse[open] .ov-collapse-chev { transform: rotate(90deg); }
.admin-overview .ov-collapse[open] .ov-collapse-head { border-bottom: 1px solid var(--gray-100); }

/* The table lives inside the panel now, so it drops its own card chrome. */
.admin-overview .ov-collapse .ov-login-card {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1280px) {
  .admin-overview .ov-row { grid-template-columns: 1fr; }
  .admin-overview .ov-row3 { grid-template-columns: 1fr 1fr; }
  .admin-overview .ov-row3 .ov-registrations-card { grid-column: 1 / -1; }
  .admin-overview .ov-side { height: auto; }
  .admin-overview .ov-side .card.ov-health { flex: none; }
}

@media (max-width: 1180px) {
  .admin-overview .ov-cards,
  .admin-overview .ov-attn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Below this a single row squeezes the labels past reading, so wrap deliberately:
     four across keeps the agent states reading as one group and leaves the row
     three-quarters full instead of stacking seven counters four rows deep. The
     auto-flow reset is required — column flow would fill each column top-to-bottom
     and lay the counters out in the wrong order. */
  .admin-overview .cap-summary {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-overview .ov-row3 { grid-template-columns: 1fr; }
  .admin-overview .ov-row3 .ov-registrations-card { grid-column: auto; }
}

@media (max-width: 768px) {
  .admin-overview .ov-cards,
  .admin-overview .ov-attn { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-overview .cap-summary {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Seven into two leaves one over — give it the full width so it reads as the
     summary line it is rather than a card that lost its pair. */
  .admin-overview .cap-summary > div:last-child { grid-column: 1 / -1; }

  .admin-overview .ov-row3 { grid-template-columns: 1fr; }
  .admin-overview .ov-row3 .ov-registrations-card { grid-column: auto; }

  .admin-overview .ov-row .card,
  .admin-overview .ov-row3 .card { padding: 18px; }

  .admin-overview .ov-row .card.ov-review-card,
  .admin-overview .ov-row .card.ov-recent-card { padding: 0; }
}

@media (max-width: 640px) {
  .admin-overview .ov-review-card > .ov-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-overview .ov-search { max-width: none; min-width: 0; }
  .admin-overview .ov-states .srow { grid-template-columns: 26px 78px minmax(56px, 1fr) 58px; }

}

@media (max-width: 520px) {
  .admin-overview .ov-cards,
  .admin-overview .ov-attn { grid-template-columns: 1fr; }

  .admin-overview .ov-card { min-height: 205px; }
  .admin-overview .ovc-insight-keys { gap: 5px 12px; }
  .admin-overview .chart-xlabels span:nth-child(2),
  .admin-overview .chart-xlabels span:nth-child(4) { display: none; }
  .admin-overview .chart-box { min-height: 145px; }
  .admin-overview .ov-states .srow { grid-template-columns: 24px 72px minmax(50px, 1fr) 54px; gap: 6px; }
}
