/* ============================================================
   PROGRAMA TRANSFORMAR — Tramandaí
   Design System: Civic Tech · Navy + Teal · Sharp & Trustworthy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --navy:         #0A1628;
  --navy-mid:     #112240;
  --navy-light:   #1A3460;
  --teal:         #00C4B4;
  --teal-dim:     #00A89A;
  --gold:         #F5A623;
  --coral:        #E8534A;
  --green:        #27AE60;
  --violet:       #7C4DFF;
  --sky:          #2196F3;
  --surface:      #F4F7FB;
  --surface-2:    #EAEFF6;
  --border:       #D6E0EE;
  --text-primary: #0A1628;
  --text-secondary:#4A5E7A;
  --text-muted:   #8FA3BF;
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 4px rgba(10,22,40,.08);
  --shadow-md:    0 4px 16px rgba(10,22,40,.12);
  --shadow-lg:    0 12px 40px rgba(10,22,40,.16);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --font:         'Inter', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --transition:   .2s ease;

  /* Situação cores */
  --sit-garantido:#27AE60;
  --sit-analise:  #F5A623;
  --sit-pendente: #E8534A;
  --sit-execucao: #2196F3;
  --sit-concluido:#7C4DFF;
  --sit-suspenso: #8FA3BF;

  /* Grupo cores */
  --g1:#2196F3; --g2:#00C4B4; --g3:#E8534A; --g4:#7C4DFF;
  --g5:#F5A623; --g6:#27AE60; --g7:#4CAF50; --g8:#FF5722;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ════════════════════════════════════════
   HEADER / NAV
   ════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 64px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 48px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65);
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-export {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px;
  background: var(--teal); color: var(--navy);
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn-export:hover { background: var(--teal-dim); transform: translateY(-1px); }
.btn-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: none; cursor: pointer; color: rgba(255,255,255,.7);
  display: grid; place-items: center; transition: var(--transition);
  font-size: 15px;
}
.btn-icon:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ════════════════════════════════════════
   HERO KPI BAR
   ════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0D2847 100%);
  padding: 14px 24px;
  position: relative; overflow: hidden;
  margin-top: -2px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C4B4' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 40px;
}
.hero-title { flex-shrink: 0; }
.hero-title h1 {
  font-size: 26px; font-weight: 800; color: var(--white);
  line-height: 1.15;
}
.hero-title h1 span { color: var(--teal); }
.hero-title p { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 6px; max-width: 280px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px; flex: 1;
}
.kpi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
  cursor: default;
}
.kpi-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.kpi-card--destaque {
  background: linear-gradient(135deg, #00C4B4 0%, #0077FF 100%);
  border-color: rgba(0,196,180,.7);
  box-shadow: 0 4px 28px rgba(0,196,180,.45), 0 0 0 1px rgba(0,196,180,.25);
  transform: translateY(-2px) scale(1.02);
}
.kpi-card--destaque:hover {
  background: linear-gradient(135deg, #00d4c4 0%, #1a88ff 100%);
  box-shadow: 0 8px 36px rgba(0,196,180,.55), 0 0 0 1px rgba(0,196,180,.4);
  transform: translateY(-4px) scale(1.03);
}
.kpi-card--destaque .kpi-label { color: #fff; font-weight: 700; letter-spacing: .4px; }
.kpi-card--destaque .kpi-value { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.kpi-card--destaque .kpi-sub   { color: rgba(255,255,255,.8); }
.kpi-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(0,196,180,.15); color: var(--teal);
}
.kpi-icon.gold  { background: rgba(245,166,35,.15); color: var(--gold); }
.kpi-icon.coral { background: rgba(232,83,74,.15); color: var(--coral); }
.kpi-icon.green { background: rgba(39,174,96,.15); color: var(--green); }
.kpi-icon.sky   { background: rgba(33,150,243,.15); color: var(--sky); }

.kpi-info { min-width: 0; }
.kpi-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.45); letter-spacing: 1px; text-transform: uppercase; }
.kpi-value { font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.1; }
.kpi-value.sm { font-size: 17px; }
.kpi-sub { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ════════════════════════════════════════
   MAIN LAYOUT
   ════════════════════════════════════════ */
.main { max-width: 1440px; margin: 0 auto; padding: 24px; }

.layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

/* ════════════════════════════════════════
   SIDEBAR FILTROS
   ════════════════════════════════════════ */
.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky; top: 84px;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title { font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: .5px; }
.btn-clear {
  font-size: 11px; font-weight: 500; color: var(--teal);
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: var(--transition);
}
.btn-clear:hover { background: rgba(0,196,180,.08); }

.filter-group { margin-bottom: 18px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: block; }

.filter-select {
  width: 100%; padding: 9px 32px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px;
  color: var(--text-primary); background: var(--surface);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5E7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer; transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,196,180,.12); }

.filter-search {
  position: relative;
}
.filter-search input {
  width: 100%; padding: 9px 12px 9px 36px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; color: var(--text-primary);
  background: var(--surface); transition: var(--transition);
}
.filter-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,196,180,.12); }
.filter-search .search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none;
}

.checkboxes { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.checkbox-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-item input { accent-color: var(--teal); width: 14px; height: 14px; cursor: pointer; }
.checkbox-item label { font-size: 12px; color: var(--text-secondary); cursor: pointer; line-height: 1.3; }
.checkbox-item label:hover { color: var(--text-primary); }

.btn-filter {
  width: 100%; padding: 11px;
  background: var(--navy);
  color: var(--white); border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px;
}
.btn-filter:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ════════════════════════════════════════
   CONTEÚDO CENTRAL
   ════════════════════════════════════════ */
.content { min-width: 0; }

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.charts-row--single {
  grid-template-columns: 1fr;
}
.charts-row--single .chart-card {
  border-color: rgba(0,196,180,.25);
  box-shadow: 0 4px 32px rgba(0,196,180,.12);
}
.chart-card {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.chart-card.wide { grid-column: span 2; }
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.chart-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .5px; }
.chart-subtitle { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── Execução Premium Card ─────────────────────────── */
.exec-premium-card {
  background: linear-gradient(135deg, #071524 0%, #0d2340 50%, #071e38 100%);
  border: 1px solid rgba(0,196,180,.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 0 0 1px rgba(0,196,180,.08), 0 8px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.exec-premium-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,196,180,.08) 0%, transparent 70%);
  pointer-events: none;
}
.exec-premium-card::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,119,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.epc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.epc-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00C4B4, #0077FF);
  display: grid; place-items: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 4px 16px rgba(0,196,180,.4);
  flex-shrink: 0;
}
.epc-title {
  font-size: 13px; font-weight: 800;
  color: #fff; letter-spacing: .8px;
  text-transform: uppercase;
}
.epc-subtitle {
  font-size: 12px; color: rgba(255,255,255,.45);
  margin-top: 3px;
}
.epc-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.epc-metric {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 24px;
}
.epc-metric:first-child { justify-content: flex-end; flex-direction: row-reverse; }
.epc-metric:first-child .epc-meta { text-align: right; }
.epc-metric:first-child .epc-bar-track { direction: rtl; }
.epc-ring-wrap {
  position: relative;
  flex-shrink: 0;
}
.epc-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 10; }
.epc-fill  { fill: none; stroke-width: 10; transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1); overflow: visible; }
.epc-ring-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
}
.epc-pct {
  font-size: 28px; font-weight: 900; line-height: 1;
  letter-spacing: -.5px;
}
.epc-pct-label {
  font-size: 9px; font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .5px;
}
.epc-meta { flex: 1; min-width: 0; }
.epc-metric-title {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 8px;
}
.epc-metric-desc {
  font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
  line-height: 1.3;
}
.epc-bar-wrap { margin-bottom: 8px; }
.epc-bar-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.epc-bar-fill {
  height: 100%; border-radius: 3px;
  width: 0%;
  transition: width 1.8s cubic-bezier(.4,0,.2,1);
}
.epc-bar-teal { background: linear-gradient(90deg, #00C4B4, #0077FF); box-shadow: 0 0 8px rgba(0,196,180,.5); }
.epc-bar-gold { background: linear-gradient(90deg, #F7971E, #FFD200); box-shadow: 0 0 8px rgba(247,151,30,.5); }
.epc-metric-hint {
  font-size: 10px; color: rgba(255,255,255,.28);
  font-style: italic;
}
.epc-divider {
  width: 1px; height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.12), transparent);
  margin: 0 8px;
}

/* Legacy compat (modal usa exec-ring-track/fill) */
.exec-ring { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.exec-ring svg { transform: rotate(-90deg); overflow: visible; }
.exec-ring-track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 9; }
.exec-ring-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1); }
.exec-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.exec-ring-pct { font-size: 22px; font-weight: 800; line-height: 1; }
.exec-desc { font-size: 11px; color: rgba(255,255,255,.35); text-align: center; margin-top: 10px; }

/* Projetos list */
.projects-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.projects-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.projects-count { font-size: 12px; color: var(--text-muted); margin-left: 6px; font-weight: 400; }
.projects-sort {
  display: flex; align-items: center; gap: 8px;
}
.projects-sort label { font-size: 12px; color: var(--text-secondary); }
.sort-select {
  padding: 6px 28px 6px 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 12px; color: var(--text-primary);
  background: var(--surface);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A5E7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  cursor: pointer;
}

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* Project Card */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.project-card-img {
  width: 100%; height: 260px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: grid; place-items: center; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-img-placeholder { font-size: 48px; opacity: .35; }

/* ── Carrossel dos cards ── */
.cc-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cc-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1); will-change: transform; }
.cc-slide { flex: 0 0 100%; height: 100%; }
.cc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none; cursor: pointer;
  width: 28px; height: 44px; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 2; padding: 0;
}
.cc-btn:hover { background: rgba(0,0,0,.7); }
.cc-prev { left: 0; border-radius: 0 4px 4px 0; }
.cc-next { right: 0; border-radius: 4px 0 0 4px; }
.cc-dots {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2;
}
.cc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45); transition: background .2s, transform .2s;
}
.cc-dot.active { background: #fff; transform: scale(1.3); }
.project-card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.tag-group { background: rgba(33,150,243,.1); color: var(--sky); }
.tag-sit  { }
.tag-sit.garantido { background: rgba(39,174,96,.12); color: var(--green); }
.tag-sit.analise   { background: rgba(245,166,35,.12); color: var(--gold); }
.tag-sit.pendente  { background: rgba(232,83,74,.12);  color: var(--coral); }
.tag-sit.execucao  { background: rgba(33,150,243,.12); color: var(--sky); }
.tag-sit.concluido { background: rgba(124,77,255,.12); color: var(--violet); }
.tag-sit.suspenso  { background: rgba(143,163,191,.12); color: var(--text-muted); }

.project-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.project-card-loc { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.progress-pair { display: flex; flex-direction: column; gap: 6px; }
.progress-row { display: flex; align-items: center; gap: 8px; }
.progress-label { font-size: 11px; color: var(--text-secondary); width: 120px; flex-shrink: 0; }
.progress-bar { flex: 1; height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 1s ease; }
.progress-fill.orc  { background: var(--teal); }
.progress-fill.cont { background: var(--green); }
.progress-fill.warn { background: var(--coral); }
.progress-pct { font-size: 11px; font-weight: 700; color: var(--text-primary); width: 32px; text-align: right; }

.project-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--surface-2);
}
.project-valor { font-size: 15px; font-weight: 800; color: var(--text-primary); font-family: var(--font-mono); }
.btn-detalhes {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--teal);
  background: none; border: none; cursor: pointer;
  padding: 5px 10px; border-radius: 6px;
  transition: var(--transition);
}
.btn-detalhes:hover { background: rgba(0,196,180,.08); }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 24px; flex-wrap: wrap;
}
.page-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-secondary);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: grid; place-items: center; transition: var(--transition);
}
.page-btn:hover { border-color: var(--teal); color: var(--teal); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-btn.nav { width: auto; padding: 0 10px; gap: 4px; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ════════════════════════════════════════
   PAINEL DIREITO
   ════════════════════════════════════════ */
.right-panel { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }

.panel-card {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.panel-title {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  letter-spacing: .6px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-link { font-size: 11px; color: var(--teal); font-weight: 600; text-decoration: none; cursor: pointer; }

/* Bar Chart – Investimento por Área */
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-item {}
.bar-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.bar-name { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; }
.bar-pct  { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); }
.bar-track { height: 7px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 99px; transition: width 1.2s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 8px rgba(0,196,180,.4); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute; left: 9px; top: 22px; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid var(--border); background: var(--surface-2);
  position: relative; z-index: 1;
  margin-top: 2px;
}
.tl-dot.done  { background: var(--green); border-color: var(--green); }
.tl-dot.active { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,196,180,.15); }
.tl-content {}
.tl-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.tl-date { font-size: 11px; color: var(--text-muted); }
.tl-pct  { font-size: 11px; font-weight: 700; color: var(--teal); }

/* Map placeholder */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #E8F0FE, #D6E8FF);
  position: relative;
  display: grid; place-items: center;
}
.map-placeholder { text-align: center; }
.map-placeholder p { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.map-legend {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 10px; color: var(--text-muted);
}
.legend-gradient {
  flex: 1; height: 6px; border-radius: 99px;
  background: linear-gradient(to right, #FFF3CD, #FFCA28, #F5A623, #27AE60, #0D47A1);
}

/* Footer info */
.footer-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 24px;
}
.footer-strip-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.footer-item { display: flex; align-items: flex-start; gap: 12px; }
.footer-icon { font-size: 20px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.footer-item-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.footer-item-desc  { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

.footer-copy {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: .3px;
}

/* ════════════════════════════════════════
   MODAL – Detalhe do Projeto
   ════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,22,40,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 860px; width: 100%;
  max-height: 90vh;
  overflow: hidden;                /* contém os cantos arredondados */
  transform: translateY(20px) scale(.98);
  transition: transform .3s;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.modal-overlay.open .modal { transform: none; }

.modal-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}
.modal-header-content { flex: 1; min-width: 0; }
.modal-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.modal-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.modal-close {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; font-size: 16px; color: var(--text-secondary);
  display: grid; place-items: center; flex-shrink: 0;
  transition: var(--transition);
}
.modal-close:hover { background: var(--surface-2); color: var(--text-primary); }

.modal-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 24px; }

.modal-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 12px;
}
.modal-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Carrossel ── */
.carousel {
  position: relative; width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-2); aspect-ratio: 16/7;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
  min-width: 100%; height: 100%; overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(0,0,0,.7); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: #fff; transform: scale(1.3); }

.modal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.modal-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.modal-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.modal-stat-value { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-top: 4px; font-family: var(--font-mono); }

/* ── Gauges premium ── */
.modal-gauges {
  display: flex; gap: 12px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 24px 16px 16px;
}
.mgauge { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.mgauge svg { overflow: visible; width: 100%; max-width: 140px; height: auto; }
.mgauge-label {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65);
  text-align: center; letter-spacing: .5px; text-transform: uppercase;
  line-height: 1.3;
}

/* ── Processos Licitatórios premium ── */
.modal-processos { display: flex; flex-direction: column; gap: 14px; }
.mproc-card {
  display: flex; border-radius: 12px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.mproc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.mproc-accent { width: 5px; flex-shrink: 0; border-radius: 12px 0 0 12px; }
.mproc-body { flex: 1; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.mproc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mproc-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mproc-icon { font-size: 16px; line-height: 1; }
.mproc-badge {
  font-size: 13px; font-weight: 800; color: #fff;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Courier New', monospace; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mproc-resumo { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.mproc-bar-wrap { margin-top: 4px; }
.mproc-bar-bg {
  height: 10px; background: var(--surface-2);
  border-radius: 99px; overflow: hidden;
}
.mproc-bar-fill {
  height: 100%; border-radius: 99px; width: 0%;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(0,0,0,.2);
}
.mproc-bar-ticks {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--text-muted); margin-top: 3px; padding: 0 1px;
}

.modal-fin-table { width: 100%; border-collapse: collapse; }
.modal-fin-table th, .modal-fin-table td {
  padding: 10px 12px; text-align: left; font-size: 12px;
  border-bottom: 1px solid var(--surface-2);
}
.modal-fin-table th { font-weight: 700; color: var(--text-secondary); background: var(--surface); }
.modal-fin-table td { color: var(--text-primary); }
.modal-fin-table tr:last-child td { border-bottom: none; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.skeleton-img { width: 100%; height: 260px; border-radius: 0; flex-shrink: 0; }
.skeleton-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }

/* Toast notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s ease;
  border-left: 4px solid var(--teal);
}
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:none;opacity:1} }

/* ── Responsive ── */
/* ════════════════════════════════════════
   RESPONSIVO — todos os dispositivos
   ════════════════════════════════════════ */

/* ── Tablet largo: 1024–1200px ── */
@media (max-width: 1200px) {
  .layout-grid          { grid-template-columns: 210px 1fr; }
  .kpis                 { grid-template-columns: repeat(3, 1fr); }
  .footer-strip-inner   { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet: 768–1023px ── */
@media (max-width: 1024px) {
  .layout-grid          { grid-template-columns: 200px 1fr; gap: 16px; }
  .kpis                 { grid-template-columns: repeat(3, 1fr); }
  .charts-row           { grid-template-columns: 1fr; }
  .hero-inner           { flex-direction: column; gap: 16px; }
  .hero-title h1        { font-size: 22px; }
  .kpi-value            { font-size: 19px; }
  .modal                { max-width: 100%; margin: 0 12px; }
  .modal-stats          { grid-template-columns: 1fr 1fr; }
  .mgauge svg           { max-width: 110px; }
  .exec-pair            { gap: 12px; }
}

/* ── Tablet retrato / Mobile largo: 600–767px ── */
@media (max-width: 900px) {
  .epc-body             { grid-template-columns: 1fr; gap: 0; }
  .epc-divider          { width: 100%; height: 1px; margin: 16px 0; background: linear-gradient(to right, transparent, rgba(255,255,255,.12), transparent); }
  .epc-metric           { padding: 8px 0; flex-direction: row; }
  .epc-metric:first-child { flex-direction: row; justify-content: flex-start; }
  .epc-metric:first-child .epc-meta { text-align: left; }
  .epc-ring-wrap svg    { width: 120px; height: 120px; }
  .epc-pct              { font-size: 22px; }
}

@media (max-width: 768px) {
  html                  { font-size: 13px; }

  /* Header */
  .header-inner         { padding: 0 16px; gap: 12px; height: 56px; }
  .brand-logo           { height: 38px; }
  .nav                  { display: none; }
  .btn-export span      { display: none; }   /* esconde texto, mantém ícone */
  .btn-export           { padding: 9px 12px; }

  /* Hero */
  .hero                 { padding: 20px 16px; }
  .hero-inner           { flex-direction: column; gap: 16px; }
  .hero-title h1        { font-size: 20px; }
  .kpis                 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-card             { padding: 12px 14px; gap: 10px; }
  .kpi-icon             { width: 36px; height: 36px; font-size: 16px; }
  .kpi-value            { font-size: 18px; }
  .kpi-value.sm         { font-size: 15px; }

  /* Layout */
  .main                 { padding: 16px; }
  .layout-grid          { grid-template-columns: 1fr; gap: 16px; }
  .sidebar              { position: static; display: none; }
  .sidebar.mobile-open  { display: block; }

  /* Charts */
  .charts-row           { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .chart-card           { padding: 16px; }
  .exec-pair            { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exec-ring            { width: 100px; height: 100px; }
  .exec-ring-pct        { font-size: 18px; }
  .mgauge svg           { max-width: 100px; }
  .modal-gauges         { padding: 16px 10px 12px; gap: 8px; }

  /* Projetos */
  .projects-grid        { grid-template-columns: 1fr 1fr; gap: 12px; }
  .project-card-img     { height: 160px; }

  /* Panel */
  .panel-card           { padding: 16px; }

  /* Footer */
  .footer-strip         { padding: 20px 16px; }
  .footer-strip-inner   { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Modal */
  .modal-overlay        { padding: 12px; align-items: flex-end; }
  .modal                { max-width: 100%; max-height: 92vh; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-header         { padding: 18px 20px 14px; }
  .modal-title          { font-size: 16px; }
  .modal-body           { padding: 18px 20px; gap: 18px; }
  .modal-stats          { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal-stat-value     { font-size: 15px; }
  .modal-fin-table th,
  .modal-fin-table td   { font-size: 11px; padding: 8px 10px; }
  .mproc-card           { flex-direction: column; }
  .mproc-accent         { width: 100%; height: 4px; border-radius: var(--radius) var(--radius) 0 0; }
}

/* ── Mobile: até 599px ── */
@media (max-width: 600px) {
  html                  { font-size: 13px; }

  /* Header */
  .header-inner         { padding: 0 14px; gap: 10px; height: 52px; }
  .brand-logo           { height: 34px; }

  /* Hero */
  .hero                 { padding: 16px 14px; }
  .hero-title h1        { font-size: 18px; }
  .kpis                 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-card             { padding: 10px 12px; gap: 8px; }
  .kpi-value            { font-size: 16px; }
  .kpi-sub              { display: none; }

  /* Layout */
  .main                 { padding: 12px 14px; }

  /* Charts */
  .exec-pair            { grid-template-columns: 1fr 1fr; }
  .exec-ring            { width: 90px; height: 90px; }
  .exec-ring-pct        { font-size: 16px; }
  .donut-wrap           { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Projetos */
  .projects-grid        { grid-template-columns: 1fr; }
  .project-card-img     { height: 200px; }

  /* Panel */
  .bar-name             { font-size: 11px; }

  /* Footer */
  .footer-strip-inner   { grid-template-columns: 1fr; gap: 14px; }

  /* Modal */
  .modal-overlay        { padding: 0; align-items: flex-end; }
  .modal                { max-height: 95vh; overflow: hidden; border-radius: 20px 20px 0 0; }
  .modal-header         { padding: 16px 16px 12px; }
  .modal-title          { font-size: 15px; }
  .modal-body           { padding: 14px 16px; gap: 16px; }
  .modal-stats          { grid-template-columns: 1fr 1fr; }
  .modal-stat-value     { font-size: 14px; }
  .modal-gauges         { flex-direction: column; gap: 16px; padding: 16px; }
  .mgauge               { flex-direction: row; gap: 16px; align-items: center; width: 100%; }
  .mgauge svg           { max-width: 90px; flex-shrink: 0; }
  .mgauge-label         { text-align: left; font-size: 12px; }
  .carousel             { aspect-ratio: 4/3; }
  .modal-fin-table      { font-size: 11px; }
  .modal-fin-table th:nth-child(2),
  .modal-fin-table td:nth-child(2) { display: none; }  /* esconde coluna Valor no mobile */
  .mproc-badge          { font-size: 11px; padding: 2px 8px; }
}

/* ── Mobile pequeno: até 380px ── */
@media (max-width: 380px) {
  .kpis                 { grid-template-columns: 1fr; }
  .kpi-card             { flex-direction: row; }
  .exec-pair            { grid-template-columns: 1fr; gap: 16px; }
  .modal-stats          { grid-template-columns: 1fr; }
  .projects-grid        { grid-template-columns: 1fr; }
  .hero-title h1        { font-size: 16px; }
}

/* ── Sidebar mobile overlay ── */
@media (max-width: 768px) {
  .sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 56px; left: 0; right: 0;
    z-index: 200;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideDown .25s ease;
  }
}
@media (max-width: 600px) {
  .sidebar.mobile-open { top: 52px; max-height: calc(100vh - 52px); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Dark mode — aplica variáveis escuras em todo o body */
body.dark-mode {
  background: #0F1C2E;
  color: #E8F0FF;
  --surface:       #0F1C2E;
  --surface-2:     #162032;
  --border:        #1E3050;
  --white:         #1A2D45;
  --text-primary:  #E8F0FF;
  --text-secondary:#8FA3BF;
  --text-muted:    #4A6080;
}

/* Hero e header já têm fundo navy fixo — restaura --white para texto branco */
body.dark-mode .hero,
body.dark-mode .header {
  --white:        #FFFFFF;
  --text-primary: #FFFFFF;
}

/* Botão filtrar tem fundo navy, precisa de texto branco */
body.dark-mode .btn-filter { color: #FFFFFF; }

/* Itens do menu superior no dark mode devem permanecer brancos */
body.dark-mode .nav-link { color: rgba(255,255,255,.65); }
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active { color: #FFFFFF; }

/* Sidebar no dark mode */
.dark-mode .sidebar {
  background: var(--white);
  border-color: var(--border);
}
.dark-mode .sidebar-title,
.dark-mode .filter-label { color: var(--text-primary); }
.dark-mode .filter-select,
.dark-mode .filter-search input {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-primary);
}
.dark-mode .checkbox-item label { color: var(--text-secondary); }

/* Cards e painéis no dark mode */
.dark-mode .project-card {
  background: var(--white);
  border-color: var(--border);
}
.dark-mode .project-card-name { color: var(--text-primary); }
.dark-mode .project-card-loc  { color: var(--text-muted); }
.dark-mode .project-card-footer { border-top-color: var(--border); }

/* Modal */
.dark-mode .modal { background: var(--white); }
.dark-mode .modal-header { background: var(--white); border-bottom-color: var(--border); }
.dark-mode .modal-title  { color: var(--text-primary); }
.dark-mode .modal-stat   { background: var(--surface-2); border-color: var(--border); }
.dark-mode .modal-stat-label { color: var(--text-muted); }
.dark-mode .modal-stat-value { color: var(--text-primary); }
.dark-mode .modal-desc   { color: var(--text-secondary); }
.dark-mode .modal-section-title { color: var(--text-secondary); }
.dark-mode .modal-fin-table th  { background: var(--surface-2); color: var(--text-secondary); border-color: var(--border); }
.dark-mode .modal-fin-table td  { color: var(--text-primary); border-color: var(--border); }
.dark-mode .modal-fin-table tr:hover td { background: var(--surface-2); }
.dark-mode .modal-close  { background: var(--surface-2); border-color: var(--border); color: var(--text-secondary); }

/* Panel card investimento por área */
.dark-mode .panel-card { border-color: rgba(255,255,255,.07); }

/* Footer */
.dark-mode .footer-strip { background: var(--surface-2); border-top-color: var(--border); }
.dark-mode .footer-item-title { color: var(--text-primary); }
.dark-mode .footer-item-desc  { color: var(--text-muted); }

/* ── Donut Chart ── */
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-svg { flex-shrink: 0; overflow: visible; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.6); }
.donut-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-val { font-weight: 700; color: rgba(255,255,255,.9); margin-left: auto; padding-left: 12px; }

/* Número animado */
.count-up { display: inline-block; }

/* ════════════════════════════════════════
   MENU HAMBÚRGUER — mobile
   ════════════════════════════════════════ */
.btn-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: none; cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.btn-hamburger:hover { background: rgba(255,255,255,.15); }
.btn-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 99px;
  transition: transform .3s, opacity .3s;
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .btn-hamburger { display: flex; }
}

/* Drawer mobile */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.1);
  z-index: 99;
  padding: 12px 16px 20px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  animation: drawerIn .22s ease;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer .nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.7);
}
.mobile-nav-drawer .nav-link.active,
.mobile-nav-drawer .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.mobile-nav-drawer .nav-link.active { color: var(--teal); }

@media (max-width: 600px) {
  .mobile-nav-drawer { top: 52px; }
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   PÁGINAS INTERNAS — responsivo extra
   ════════════════════════════════════════ */

/* Garante que imagens nunca vazem do container */
img { max-width: 100%; height: auto; }

/* Tabelas: scroll horizontal em mobile */
.data-table-wrap, .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* page-hero — base responsivo para todas as páginas internas */
@media (max-width: 768px) {
  .page-hero   { padding: 32px 16px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero p  { font-size: 14px; }
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: 20px; }
  .page-hero p  { font-size: 13px; }
}
@media (max-width: 380px) {
  .page-hero h1 { font-size: 18px; }
}

/* Garante que o drawer não sobreponha o conteúdo */
body.drawer-open { overflow: hidden; }

/* ════════════════════════════════════════
   FONT AWESOME — ajustes de tamanho/alinhamento
   ════════════════════════════════════════ */
.kpi-icon i        { font-size: 22px; line-height: 1; }
.footer-icon i     { font-size: 22px; line-height: 1; }
.about-card-icon i { font-size: 32px; line-height: 1; }
.search-icon i     { font-size: 15px; }
.gs-icon i         { font-size: 16px; }
.midia-empty-icon i{ font-size: 36px; }
.btn-icon i        { font-size: 15px; pointer-events: none; }
.btn-filter i,
.tab-btn i         { font-size: 13px; margin-right: 4px; }
.btn-export i,
.btn-dl i          { font-size: 12px; margin-right: 4px; }
.page-hero h1 i    { font-size: inherit; margin-right: 8px; opacity: .85; }

@keyframes waveSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Onda abaixo do page-hero — 4 camadas ── */
.page-hero-wave {
  position: relative;
  height: 150px;
  margin-top: -2px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.page-hero-wave svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%; height: 100%;
  animation: waveSlide linear infinite;
}
.page-hero-wave svg:nth-child(1) { animation-duration: 8s; }
.page-hero-wave svg:nth-child(2) { animation-duration: 12s; animation-direction: reverse; }
.page-hero-wave svg:nth-child(3) { animation-duration: 16s; }
.page-hero-wave svg:nth-child(4) { animation-duration: 6s;  animation-direction: reverse; }
.phw-p1 { fill: rgba(0, 160, 200, 0.38); }
.phw-p2 { fill: rgba(22, 70, 140, 0.65); }
.phw-p3 { fill: rgba(14, 42, 84, 0.88); }
.phw-p4 { fill: #0A1628; }
