/* ============================================================
   EVENTIPO — Event Operating System
   Design tokens: graphite base, metallic gold, executive type
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond-Variable.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond-Italic-Variable.ttf') format('truetype');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('assets/fonts/Cinzel-Variable.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* Base surfaces — deep graphite */
  --bg-void:      #0a0b0e;
  --bg-base:      #0e0f13;
  --bg-surface:   #14161b;
  --bg-raised:    #191c22;
  --bg-hover:     #1f232b;
  --bg-inset:     #0b0c0f;

  /* Hairlines & borders */
  --line:         #23262e;
  --line-soft:    #1a1d23;
  --line-strong:  #303542;

  /* Text */
  --ink:          #f1f1ee;
  --ink-2:        #b9bbc2;
  --ink-3:        #80838c;
  --ink-4:        #565963;

  /* Metallic gold */
  --gold:         oklch(0.78 0.085 85);
  --gold-bright:  oklch(0.88 0.09 88);
  --gold-deep:    oklch(0.62 0.075 78);
  --gold-glow:    oklch(0.78 0.085 85 / 0.14);
  --gold-line:    oklch(0.78 0.085 85 / 0.28);

  /* Functional accents (kept low-chroma, executive) */
  --pos:          oklch(0.74 0.07 155);
  --neg:          oklch(0.66 0.10 28);
  --info:         oklch(0.72 0.05 240);

  /* Type */
  --serif: 'Cormorant Garamond', 'Newsreader', Georgia, 'Times New Roman', serif;
  --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Metrics */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --sidebar-w: 256px;
  --topbar-h: 64px;

  --shadow-md: 0 8px 30px -12px rgba(0,0,0,0.7);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.8);
}

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

html, body {
  height: 100%;
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { height: 100%; }

::selection { background: var(--gold-line); color: var(--ink); }

/* Scrollbars */
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #23262e; border-radius: 99px; border: 2px solid var(--bg-base); }
*::-webkit-scrollbar-thumb:hover { background: #303542; }

/* ---- Typography helpers ---- */
.serif { font-family: var(--serif); }
.display { font-family: var(--display); letter-spacing: 0.06em; }
.mono  { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.gold-text { color: var(--gold); }

/* Gold sheen used sparingly on key numerals / marks */
.gold-sheen {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}

/* ---- App layout ---- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100%;
  background: var(--bg-base);
}

.main {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(198,165,80,0.035) 0%, transparent 45%),
    var(--bg-base);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 48px 96px;
}

/* ---- Generic surfaces ---- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.hairline { height: 1px; background: var(--line); border: 0; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); border-color: #3a4150; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1505;
  border: 1px solid var(--gold-bright);
  font-weight: 600;
}
.btn-gold:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-raised); color: var(--ink); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg-inset);
}
.pill .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill-gold  { color: var(--gold); border-color: var(--gold-line); background: var(--gold-glow); }
.pill-pos   { color: var(--pos); border-color: oklch(0.74 0.07 155 / 0.3); }
.pill-neg   { color: var(--neg); border-color: oklch(0.66 0.10 28 / 0.3); }
.pill-info  { color: var(--info); border-color: oklch(0.72 0.05 240 / 0.3); }

/* ---- Focus ---- */
:focus-visible { outline: 1px solid var(--gold-line); outline-offset: 2px; }

/* utility */
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* fade-in on view switch — transform-only so content stays visible
   even if the animation clock is frozen (backgrounded iframe / reduced motion) */
@keyframes riseIn {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}
.rise { animation: riseIn .42s cubic-bezier(.2,.7,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  background: var(--bg-void);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 14px;
  overflow-y: auto;
}
.sidebar-logo { padding: 6px 8px 22px; }

.nav-section { margin-bottom: 22px; }
.nav-heading {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 0 10px 9px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 13.5px;
  cursor: pointer;
  transition: all .14s ease;
  position: relative;
}
.nav-item:hover { color: var(--ink); background: var(--bg-surface); }
.nav-item[data-active="true"] {
  color: var(--ink);
  background: var(--bg-surface);
  border-color: var(--line);
}
.nav-item[data-active="true"] .nav-ic { color: var(--gold); }
.nav-item[data-active="true"]::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 18px; background: var(--gold); border-radius: 0 2px 2px 0;
}
.nav-ic { display: flex; color: var(--ink-4); transition: color .14s; }
.nav-item:hover .nav-ic { color: var(--ink-2); }
.nav-label { flex: 1; text-align: left; }
.nav-item[data-gold="true"] .nav-ic { color: var(--gold); }
.nav-spark { color: var(--gold); opacity: .8; }

.sidebar-foot { margin-top: auto; padding-top: 10px; }
.ev-mini {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all .14s;
}
.ev-mini:hover { background: var(--bg-surface); }
.ev-mini[data-active="true"] { background: var(--bg-surface); border-color: var(--line); }
.ev-mini-bar { width: 3px; height: 26px; border-radius: 2px; flex-shrink: 0; }
.ev-mini-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-mini:hover .ev-mini-name { color: var(--ink); }
.ev-mini-meta { font-size: 9.5px; color: var(--ink-4); letter-spacing: 0.04em; }

.sidebar-user {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-hover), var(--bg-raised));
  border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.04em;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 32px;
  background: rgba(14,15,19,0.7);
  backdrop-filter: blur(10px);
}
/* left cluster (hamburger + title) shrinks; right cluster never gets overlapped */
.topbar > .center:first-of-type { flex: 1 1 auto; min-width: 0; }
.topbar > .center:last-of-type { flex: 0 0 auto; }
.topbar-title { font-size: 21px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.topbar-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1120px) {
  .topbar-search span { display: none; }
  .topbar-search { min-width: 0; padding: 0 11px; }
}
@media (max-width: 940px) {
  .topbar-search { display: none; }
}

.topbar-search {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 12px 0 13px;
  min-width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-4);
  font-family: var(--sans); font-size: 12.5px;
  cursor: pointer; transition: all .14s;
}
.topbar-search:hover { border-color: var(--line-strong); color: var(--ink-3); }
.topbar-search span { flex: 1; text-align: left; }
.topbar-search kbd {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: var(--bg-inset); border: 1px solid var(--line); color: var(--ink-4);
}

.icon-btn {
  position: relative; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--ink-2); cursor: pointer; transition: all .14s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--ink); }
.dot-badge {
  position: absolute; top: 9px; right: 10px; width: 6px; height: 6px;
  background: var(--gold); border-radius: 99px; border: 1.5px solid var(--bg-surface);
}

/* Language toggle */
.lang-toggle { display: inline-flex; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.lang-toggle button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 4px; border: 0; background: transparent;
  color: var(--ink-3); cursor: pointer; transition: all .14s;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[data-active="true"] { background: var(--gold-glow); color: var(--gold); }

/* ============================================================
   MOBILE — hamburger nav + responsive shell
   ============================================================ */
.topbar-hamburger { display: none; background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px; margin-left: -4px; border-radius: 8px; flex-shrink: 0; }
.topbar-hamburger:hover { color: var(--ink); background: var(--bg-hover); }
.nav-scrim { display: none; }

/* ============================================================
   MASTER CHECKLIST (event readiness)
   ============================================================ */
.mck-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; }
.mck-ring { position: relative; display: flex; align-items: center; justify-content: center; }
.mck-ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mck-ring-n { font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1; }
.mck-ring-l { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.mck-stats { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.mck-stat { display: flex; flex-direction: column; gap: 5px; }
.mck-stat-n { font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.mck-stat-l { font-size: 11.5px; color: var(--ink-3); }
.mck-allclear { display: inline-flex; align-items: center; gap: 7px; color: var(--pos); font-size: 12.5px; background: oklch(0.74 0.07 155 / 0.1); border: 1px solid oklch(0.74 0.07 155 / 0.3); padding: 8px 14px; border-radius: 99px; }
.mck-cat { padding: 0; overflow: hidden; }
.mck-cat-h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.mck-cat-add { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--gold); font-size: 11.5px; padding: 11px 18px; cursor: pointer; }
.mck-cat-add:hover { color: var(--gold-bright); }
.mck-row { display: grid; grid-template-columns: 26px 1fr auto 130px 30px; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent; }
.mck-row:last-child { border-bottom: 0; }
.mck-row.crit { border-left-color: var(--neg); }
.mck-row.crit.done { border-left-color: var(--pos); }
.mck-row.done { opacity: 0.55; }
.mck-check { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--bg-inset); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #06140c; transition: all .14s; }
.mck-check.on { background: var(--pos); border-color: var(--pos); }
.mck-text { background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 5px 7px; color: var(--ink); font-size: 14px; font-family: var(--serif); outline: 0; }
.mck-text:hover { border-color: var(--line); } .mck-text:focus { border-color: var(--gold-line); }
.mck-row.done .mck-text { text-decoration: line-through; }
.mck-crit-tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line); background: var(--bg-inset); color: var(--ink-4); cursor: pointer; white-space: nowrap; }
.mck-crit-tag.on { color: var(--neg); border-color: oklch(0.66 0.10 28 / 0.4); background: oklch(0.66 0.10 28 / 0.1); }
.mck-owner { background: var(--bg-inset); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; color: var(--ink-2); font-size: 11.5px; outline: 0; }
.mck-owner:focus { border-color: var(--gold-line); }
@media (max-width: 768px) {
  .mck-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mck-row { grid-template-columns: 24px 1fr 30px; }
  .mck-crit-tag, .mck-owner { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* ============================================================
   ONBOARDING / tour guiado
   ============================================================ */
.ob-root { position: fixed; inset: 0; z-index: 500; }
.ob-mask.ob-full { position: fixed; inset: 0; background: rgba(6,7,9,0.78); backdrop-filter: blur(2px); }
.ob-mask.ob-hole { border-radius: 10px; box-shadow: 0 0 0 9999px rgba(6,7,9,0.78), 0 0 0 1.5px var(--gold-line) inset; pointer-events: none; transition: all .2s cubic-bezier(.4,0,.2,1); }
.ob-card { width: 340px; max-width: calc(100vw - 32px); background: var(--bg-surface); border: 1px solid var(--gold-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px 22px; z-index: 2; animation: riseIn .22s ease both; }
.ob-card-center { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ob-card-anchored { /* positioned inline via style */ }
.ob-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ob-step { font-size: 10.5px; color: var(--gold); letter-spacing: 0.1em; }
.ob-skip { background: none; border: 0; color: var(--ink-4); font-size: 11px; cursor: pointer; padding: 4px; }
.ob-skip:hover { color: var(--ink-2); }
.ob-title { font-size: 19px; color: var(--ink); font-weight: 500; line-height: 1.2; }
.ob-body { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; text-wrap: pretty; }
.ob-progress { height: 3px; background: var(--line); border-radius: 99px; margin: 16px 0 14px; overflow: hidden; }
.ob-progress-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); border-radius: 99px; transition: width .25s ease; }
.ob-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media print {
  /* dark wordmark PNG (white-on-transparent) -> solid black for white print */
  .brand-wordmark { filter: brightness(0) !important; }
}

/* notifications */
.notif-wrap { position: relative; }
.notif-count { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; background: var(--neg); color: #fff; font-family: var(--mono); font-size: 9px; font-weight: 700; border-radius: 99px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--bg-base); }
.notif-scrim { position: fixed; inset: 0; z-index: 90; }
.notif-pop { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: 86vw; background: var(--bg-surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 95; overflow: hidden; animation: riseIn .18s ease both; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); font-weight: 500; }
.notif-head-n { font-size: 11px; color: var(--neg); }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 12px; color: var(--ink-4); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 16px; cursor: pointer; transition: background .12s; }
.notif-item:hover { background: var(--bg-raised); }
.notif-dot { width: 7px; height: 7px; border-radius: 99px; flex-shrink: 0; }
.notif-dot.budget { background: var(--neg); } .notif-dot.rsvp { background: var(--gold); } .notif-dot.vip { background: oklch(0.7 0.12 350); } .notif-dot.menu { background: var(--info); }
.notif-text { flex: 1; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.notif-go { font-size: 10px; color: var(--gold); flex-shrink: 0; }

@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 270px; z-index: 400;
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .sidebar[data-open="true"] { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.7); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 390; background: rgba(6,7,9,0.6); backdrop-filter: blur(2px); }
  .topbar-hamburger { display: flex; }

  .topbar { height: auto; min-height: 58px; padding: 10px 16px; gap: 10px; }
  .topbar-title { font-size: 17px; }
  .topbar-sub { display: none; }
  .topbar-new { display: none; }
  .page { padding: 20px 16px 80px; }

  /* KPI / stat grids → 2 columns */
  .kpi-grid, .reg-stats, .int-grid, .portfolio-stats { grid-template-columns: 1fr 1fr !important; }
  .rp-kpis { grid-template-columns: 1fr 1fr !important; }
  .reg-stats > .reg-rate { grid-column: span 2; }

  /* horizontal-scroll wrappers for wide tables/tabs */
  .ws-tabs, .ci-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .ws-tabs::-webkit-scrollbar, .ci-tabs::-webkit-scrollbar { height: 0; }
  .reg-head, .reg-row, .est-table-head, .est-table-row, .rp-sup { min-width: 540px; }
  .reg-table-wrap, .card:has(.reg-row), .est-table, .rp-suppliers { overflow-x: auto; }

  /* two-column → single */
  .two-col, .rp-grid2, .sv-top, .rp-sat, .vd-sw, .fgrid, .tgl-grid { grid-template-columns: 1fr !important; }
  .conn-grid { grid-template-columns: 1fr !important; }
  .estoque-grid, .restock-grid, .reg-events { grid-template-columns: 1fr !important; }

  /* modals fill the screen */
  .modal-scrim { padding: 12px; }
  .modal { max-height: 92vh; }

  /* reports letterhead */
  .rp-report { padding: 22px 18px; }
  .rp-header { flex-direction: column; gap: 12px; }
  .rp-title { font-size: 22px; }

  /* CRM detail comfortable */
  .crm-detail { padding: 20px 18px; }
}

@media (max-width: 440px) {
  .kpi-grid, .reg-stats, .rp-kpis { grid-template-columns: 1fr !important; }
  .reg-stats > .reg-rate { grid-column: span 1; }
}
