/* ============================================================
   ACELERA 2026 — Dashboard theme (replicado do Claude Design)
   ============================================================ */

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

.acelera-root {
  --acelera-red: #C8102E;
  --acelera-red-dark: #7F1D1D;
  --acelera-red-light: #FEE2E2;
  --acelera-gold: #F59E0B;
  --acelera-gold-light: #FEF3C7;
  --acelera-green: #10B981;
  --acelera-green-light: #D1FAE5;
  --acelera-blue: #3B82F6;
  --acelera-blue-light: #DBEAFE;
  --acelera-bg: #F1F0EE;
  --acelera-card: #FFFFFF;
  --acelera-dark: #111827;
  --acelera-muted: #6B7280;
  --acelera-border: #E5E7EB;
  font-family: 'Inter', sans-serif;
  background: var(--acelera-bg);
  color: var(--acelera-dark);
  min-height: 100vh;
}

.acelera-root h1, .acelera-root h2, .acelera-root h3, .acelera-root h4,
.acelera-root .ac-num {
  font-family: 'Barlow Condensed', sans-serif;
}

/* ---------- Header ---------- */
.acelera-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E1535 40%, #2D1B2E 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.acelera-header .ac-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.acelera-header .ac-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--acelera-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(200, 16, 46, .4);
  flex-shrink: 0;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.acelera-header .ac-kicker {
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.acelera-header .ac-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.acelera-header .ac-title span {
  color: var(--acelera-gold);
}

.acelera-header .ac-live {
  background: rgba(200, 16, 46, .18);
  border: 1px solid rgba(200, 16, 46, .45);
  border-radius: 8px;
  padding: 3px 10px;
  margin-left: 10px;
  color: #FCA5A5;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.acelera-header .ac-topbar {
  padding: 14px 24px;
  gap: 16px;
}

.acelera-header .ac-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.acelera-header .ac-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, .7);
  animation: ac-pulse 1.8s infinite;
}

@keyframes ac-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(248, 113, 113, .6); }
  70%  { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.acelera-header .ac-last-update {
  color: rgba(255, 255, 255, .55);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.acelera-header .ac-btn-ghost,
.acelera-header .ac-btn-solid {
  border-radius: 99px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: .78rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.acelera-header .ac-btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.acelera-header .ac-btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.acelera-header .ac-btn-solid {
  background: #fff;
  color: var(--acelera-red);
  font-weight: 800;
}
.acelera-header .ac-btn-solid:hover {
  background: #fff;
  color: var(--acelera-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.acelera-header .ac-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  margin: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .12);
}

.acelera-header .ac-tab-btn {
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  background: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, .55);
  border-bottom: 3px solid transparent;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.acelera-header .ac-tab-btn:hover {
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .04);
}

.acelera-header .ac-tab-btn.active {
  color: #fff;
  font-weight: 700;
  border-bottom-color: var(--acelera-red);
  background: rgba(200, 16, 46, .08);
}

.acelera-header .ac-periodo-btn {
  padding: 6px 14px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: .78rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
  transition: all .2s;
}

.acelera-header .ac-periodo-btn.active {
  background: var(--acelera-red);
  color: #fff;
}

/* ---------- Tab panels (troca suave) ---------- */
.acelera-tab-panel {
  animation: ac-fade-in .28s ease;
}

@keyframes ac-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Cards / KPIs ---------- */
.acelera-kpi {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  border: 1px solid rgba(0, 0, 0, .05);
  flex: 1;
  min-width: 0;
  position: relative;
  transition: transform .22s cubic-bezier(.22, .68, 0, 1.2),
              box-shadow .22s ease;
  overflow: hidden;
}

.acelera-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .1);
}

.acelera-kpi .ac-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.acelera-kpi .ac-kpi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 2px 6px rgba(0, 0, 0, .08);
}

.acelera-kpi .ac-kpi-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--acelera-muted);
  line-height: 1.2;
}

.acelera-kpi .ac-kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  transition: color .3s ease;
}

.acelera-kpi .ac-kpi-sub {
  font-size: .78rem;
  color: var(--acelera-muted);
  margin-top: 6px;
  line-height: 1.3;
}

.acelera-kpi .ac-kpi-destaque {
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.acelera-kpi .ac-kpi-accent {
  position: absolute;
  left: 20px;
  bottom: 14px;
  width: 36px;
  height: 3px;
  border-radius: 99px;
  opacity: .85;
}

.acelera-card-soft {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  border: 1px solid rgba(0, 0, 0, .05);
}

/* ---------- Progress bar ---------- */
.acelera-pb {
  background: #F3F4F6;
  border-radius: 99px;
  overflow: hidden;
}

.acelera-pb-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(.22, .68, 0, 1.2);
}

.acelera-no-anim .acelera-pb-fill {
  transition: none !important;
}

/* ---------- Badge ---------- */
.acelera-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Tab switching ---------- */
.acelera-tab-content {
  display: none;
}
.acelera-tab-content.active {
  display: block;
}

/* ---------- Tweaks panel ---------- */
.acelera-tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--acelera-border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  padding: 14px 18px 18px;
  width: 260px;
}

.acelera-tweaks h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--acelera-dark);
}

.acelera-tweaks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .82rem;
  color: var(--acelera-muted);
  font-weight: 500;
}

.acelera-tweaks-toggler {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--acelera-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Dark mode ---------- */
body.acelera-dark {
  background: #0F172A !important;
}
body.acelera-dark .acelera-root {
  background: #0F172A;
  color: #F1F5F9;
}
body.acelera-dark .acelera-card-soft,
body.acelera-dark .acelera-kpi {
  background: #1E293B;
  border-color: rgba(255, 255, 255, .08);
  color: #F1F5F9;
}
body.acelera-dark .acelera-kpi .ac-kpi-value {
  color: #fff;
}
body.acelera-dark .acelera-tweaks {
  background: #1E293B;
  color: #fff;
  border-color: rgba(255, 255, 255, .1);
}

/* ---------- Ranking podio/lista switch ---------- */
.acelera-root.rank-lista .ac-podium { display: none; }
.acelera-root.rank-podium .ac-ranking-lista { display: none; }

/* ---------- Responsive (legado) ---------- */
@media (max-width: 768px) {
  .acelera-header .ac-topbar { padding: 10px 14px 0; }
  .acelera-header .ac-tabs { padding: 0 10px; }
}

/* ============================================================
   MOBILE REFINAMENTOS — tablets e celulares (<= 991px / <= 640px / <= 420px)
   ============================================================ */

/* Scroll horizontal suave nas abas com scrollbar oculta em mobile */
.acelera-header .ac-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acelera-header .ac-tabs::-webkit-scrollbar { display: none; }

/* -------- <= 991px (tablets e telas médias) -------- */
@media (max-width: 991px) {
  .acelera-header .ac-topbar {
    padding: 12px 16px;
    gap: 10px;
  }
  .acelera-header .ac-title {
    font-size: 1.15rem;
  }
  .acelera-header .ac-kicker {
    font-size: .65rem;
  }
  .acelera-header .ac-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .acelera-header .ac-logo img {
    height: 28px !important;
  }

  .acelera-header .ac-last-update {
    width: 100%;
    order: 3;
    margin-right: 0;
    margin-top: 2px;
    font-size: .72rem;
  }
  .acelera-header .ac-btn-ghost,
  .acelera-header .ac-btn-solid {
    padding: 6px 12px;
    font-size: .72rem;
  }

  .acelera-header .ac-tabs {
    padding: 0 8px;
  }
  .acelera-header .ac-tab-btn {
    padding: 12px 14px;
    font-size: .82rem;
  }

  .acelera-sprint-banner,
  .acelera-productividade-hero {
    padding: 22px 20px;
    border-radius: 18px;
  }

  .acelera-hero-headline {
    font-size: 2.3rem;
  }
  .acelera-hero-tiles {
    gap: 10px;
  }
  .acelera-hero-tile {
    padding: 8px 14px;
    flex: 1 1 120px;
  }
  .acelera-tile-value {
    font-size: 1.4rem;
  }

  .acelera-section-title {
    font-size: 1.8rem;
  }

  .acelera-card-soft {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .acelera-podium-slot {
    flex: 1 1 140px;
    max-width: 180px;
  }
  .acelera-podium-card {
    padding: 12px 8px;
  }
  .acelera-podium-emoji { font-size: 1.5rem; }
  .acelera-podium-name { font-size: 1.25rem; }
  .acelera-podium-value { font-size: 1.2rem; }
  .acelera-podium-base span { font-size: 2.2rem; }

  .acelera-data-table th,
  .acelera-data-table td {
    padding: 10px 12px;
    font-size: .8rem;
  }
}

/* -------- <= 640px (celulares) -------- */
@media (max-width: 640px) {
  /* Header empilha em 2 linhas */
  .acelera-header .ac-topbar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .acelera-header .ac-topbar > div:first-child {
    width: 100%;
  }
  .acelera-header .ac-topbar > div:last-child {
    width: 100%;
    justify-content: flex-end;
  }
  .acelera-header .ac-title {
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .acelera-header .ac-live {
    margin-left: 4px;
    padding: 2px 8px;
    font-size: .6rem;
  }
  .acelera-header .ac-kicker {
    font-size: .6rem;
    letter-spacing: .08em;
  }

  /* Abas: padding compacto, letras menores */
  .acelera-header .ac-tab-btn {
    padding: 11px 11px;
    font-size: .78rem;
    border-bottom-width: 2px;
  }

  /* Filtros: labels e radios */
  .acelera-root .form-label,
  #ac2026-mes-radio .form-check-label {
    font-size: .78rem;
  }
  #ac2026-mes-radio .form-check {
    margin-right: .6rem !important;
    margin-bottom: .35rem !important;
  }
  /* Remove o marginTop "1.9rem" inline (aviso de auto-atualização) quando a coluna empilha */
  #ac2026-root .col-md-2 > div[style*="marginTop"],
  .acelera-root .col-md-2 > div[style*="marginTop"] {
    margin-top: 0 !important;
  }

  /* Hero */
  .acelera-sprint-banner,
  .acelera-productividade-hero {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .acelera-hero-headline {
    font-size: 1.85rem;
    line-height: .95;
  }
  .acelera-hero-sub {
    font-size: .88rem;
    margin-bottom: 12px;
  }
  .acelera-hero-tile {
    flex: 1 1 100%;
    padding: 8px 12px;
  }
  .acelera-tile-kicker { font-size: .62rem; }
  .acelera-tile-value { font-size: 1.3rem; }

  /* Side KPIs */
  .acelera-side-kpis {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .acelera-side-kpis .acelera-kpi {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 12px 12px 10px;
  }
  .acelera-side-kpis .ac-kpi-value {
    font-size: 1.35rem;
  }

  /* KPIs principais e strip */
  .acelera-kpi-strip .acelera-kpi,
  .acelera-mini-grid .acelera-mini-card {
    flex: 1 1 100%;
    min-width: 0;
  }
  .acelera-kpi { padding: 14px 14px 12px; }
  .acelera-kpi .ac-kpi-value { font-size: 1.6rem; }
  .acelera-kpi .ac-kpi-label { font-size: .66rem; }

  /* Pódio: 3 em linha compacto */
  .acelera-podium {
    gap: 6px;
    margin-bottom: 16px;
  }
  .acelera-podium-slot {
    flex: 1 1 90px;
    max-width: none;
  }
  .acelera-podium-card {
    padding: 10px 6px;
    border-radius: 12px;
  }
  .acelera-podium-emoji { font-size: 1.2rem; margin-bottom: 0; }
  .acelera-podium-name { font-size: .95rem; }
  .acelera-podium-value { font-size: .95rem; }
  .acelera-podium-sub { font-size: .68rem; }
  .acelera-podium-pill {
    font-size: .65rem;
    padding: 2px 6px;
    margin-top: 4px;
  }
  /* Bases menores no mobile */
  .acelera-podium-slot:nth-child(1) .acelera-podium-base,
  .acelera-podium-slot:nth-child(3) .acelera-podium-base {
    height: 70px !important;
  }
  .acelera-podium-slot:nth-child(2) .acelera-podium-base {
    height: 110px !important;
  }
  .acelera-podium-base span { font-size: 1.6rem; }

  /* Ranking rows mais denso */
  .acelera-rank-row,
  .acelera-qualidade-row {
    grid-template-columns: 36px 1fr !important;
    padding: 10px 0;
    gap: 8px;
  }
  .acelera-rank-pos { font-size: 1rem; min-width: 36px; }
  .acelera-rank-name { font-size: .88rem; }
  .acelera-rank-fat { font-size: 1rem; }
  .acelera-rank-meta { font-size: .72rem; }

  /* Ranking/card soft com padding reduzido */
  .acelera-ranking-lista { padding: 16px 12px; border-radius: 16px; }
  .acelera-card-soft { padding: 14px 12px; border-radius: 14px; }

  /* Tabela compacta com rolagem horizontal */
  .acelera-table-wrap {
    margin: 0 -8px;
    padding: 0 8px;
  }
  .acelera-data-table th,
  .acelera-data-table td {
    padding: 8px 10px;
    font-size: .74rem;
  }
  .acelera-data-table {
    font-size: .78rem;
    min-width: 560px; /* força scroll no container */
  }
  .acelera-table-highlight { font-size: 1.1rem; }

  /* Section titles */
  .acelera-section-title { font-size: 1.45rem; }
  .acelera-section-kicker { font-size: .7rem; letter-spacing: .1em; }
  .acelera-card-title { font-size: 1.15rem; }
  .acelera-card-subtitle { font-size: .76rem; margin-bottom: 12px; }

  /* Containers Dash com menos padding lateral */
  .acelera-root .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Gráficos com altura controlada */
  .acelera-tab-panel .js-plotly-plot,
  .acelera-tab-panel .dash-graph {
    min-height: 260px;
  }

  /* Dropdown e radios mais "tocáveis" */
  .acelera-root .Select-control,
  .acelera-root .Select-input,
  .acelera-root .form-check-input {
    min-height: 36px;
  }
}

/* -------- <= 420px (celulares pequenos) -------- */
@media (max-width: 420px) {
  .acelera-header .ac-title { font-size: .9rem; }
  .acelera-header .ac-btn-ghost,
  .acelera-header .ac-btn-solid {
    padding: 5px 10px;
    font-size: .68rem;
  }
  .acelera-header .ac-tab-btn {
    padding: 10px 9px;
    font-size: .74rem;
  }
  .acelera-hero-headline { font-size: 1.6rem; }
  .acelera-kpi .ac-kpi-value { font-size: 1.45rem; }
  .acelera-side-kpis .acelera-kpi {
    flex: 1 1 100%;
  }
  .acelera-podium-slot:nth-child(1) .acelera-podium-base,
  .acelera-podium-slot:nth-child(3) .acelera-podium-base {
    height: 60px !important;
  }
  .acelera-podium-slot:nth-child(2) .acelera-podium-base {
    height: 90px !important;
  }
}

/* ---------- Acelera content skins ---------- */
.acelera-section-kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.acelera-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -.01em;
  line-height: 1;
}

.acelera-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--acelera-dark);
  line-height: 1;
}

.acelera-card-subtitle {
  color: var(--acelera-muted);
  font-size: .82rem;
  margin-top: 4px;
  margin-bottom: 18px;
}

.acelera-banner-grid,
.acelera-kpi-strip,
.acelera-mini-grid,
.acelera-side-kpis,
.acelera-hero-tiles,
.acelera-qualidade-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.acelera-sprint-banner,
.acelera-productividade-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #3B82F6 100%);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 0 20px 60px rgba(29, 78, 216, .25);
  position: relative;
  overflow: hidden;
}

.acelera-productividade-hero {
  background: linear-gradient(135deg, #0F172A 0%, #7F1D1D 50%, #C8102E 100%);
  box-shadow: 0 20px 60px rgba(127, 29, 29, .25);
}

.acelera-hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: -.02em;
  line-height: .9;
  margin: 0 0 12px 0;
}

.acelera-hero-sub {
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  margin-bottom: 16px;
}

.acelera-hero-tile {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 10px 18px;
}

.acelera-banner-grid {
  align-items: stretch;
}

.acelera-side-kpis {
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}

.acelera-side-kpis .acelera-kpi {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding: 16px 16px 14px;
}

.acelera-side-kpis .ac-kpi-value {
  font-size: clamp(1.55rem, 1.8vw, 2.1rem);
  line-height: .95;
}

.acelera-tile-kicker {
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.acelera-tile-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
}

.acelera-mini-card {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.acelera-mini-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--acelera-dark);
}

.acelera-mini-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--acelera-dark);
  margin-top: 10px;
}

.acelera-mini-sub {
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
}

.acelera-table-wrap {
  overflow-x: auto;
}

.acelera-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.acelera-data-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--acelera-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--acelera-border);
  background: #F9FAFB;
  white-space: nowrap;
}

.acelera-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

.acelera-data-table tbody tr:nth-child(even) {
  background: #FAFAFA;
}

.acelera-table-pos,
.acelera-rank-pos {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  text-align: center;
  min-width: 44px;
}

.acelera-table-name,
.acelera-rank-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--acelera-dark);
}

.acelera-table-money,
.acelera-rank-fat {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--acelera-dark);
}

.acelera-table-sub,
.acelera-rank-meta {
  font-size: .75rem;
  color: var(--acelera-muted);
  margin-top: 2px;
}

.acelera-table-center {
  text-align: center;
}

.acelera-table-highlight {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.acelera-inline-chip,
.acelera-rank-chip {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.acelera-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.acelera-podium-slot {
  flex: 1 1 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acelera-podium-card {
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

.acelera-podium-emoji {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.acelera-podium-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.acelera-podium-value {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 4px;
}

.acelera-podium-sub {
  color: rgba(255,255,255,.55);
  font-size: .75rem;
}

.acelera-podium-pill {
  margin-top: 8px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 700;
}

.acelera-podium-base {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none !important;
}

.acelera-podium-base span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
}

.acelera-ranking-lista {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.05);
}

.acelera-rank-row,
.acelera-qualidade-row {
  display: grid;
  grid-template-columns: 42px minmax(220px,1fr) 140px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

.acelera-rank-row:last-child,
.acelera-qualidade-row:last-child {
  border-bottom: none;
}

.acelera-rank-main {
  min-width: 0;
}

.acelera-premio-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--acelera-border);
  background: linear-gradient(135deg,#0F172A,#1E1535);
}

body.acelera-dark .acelera-ranking-lista,
body.acelera-dark .acelera-mini-card,
body.acelera-dark .acelera-data-table th,
body.acelera-dark .acelera-data-table tbody tr:nth-child(even) {
  background: #1E293B;
}

body.acelera-dark .acelera-data-table td,
body.acelera-dark .acelera-data-table th,
body.acelera-dark .acelera-rank-name,
body.acelera-dark .acelera-table-name,
body.acelera-dark .acelera-mini-title,
body.acelera-dark .acelera-mini-value,
body.acelera-dark .acelera-card-title {
  color: #F1F5F9;
}

body.acelera-dark .acelera-card-subtitle,
body.acelera-dark .acelera-rank-meta,
body.acelera-dark .acelera-table-sub,
body.acelera-dark .acelera-podium-sub,
body.acelera-dark .acelera-mini-sub {
  color: rgba(241,245,249,.68);
}

@media (max-width: 900px) {
  .acelera-side-kpis {
    flex-wrap: wrap;
    width: 100%;
  }

  .acelera-rank-row,
  .acelera-qualidade-row {
    grid-template-columns: 42px 1fr;
  }

  .acelera-rank-row > :nth-child(3),
  .acelera-rank-row > :nth-child(4),
  .acelera-qualidade-row > :nth-child(3),
  .acelera-qualidade-row > :nth-child(4) {
    grid-column: 2;
  }
}

/* ---------- Utilitárias complementares ---------- */
.acelera-btn-atualizar {
  border-radius: 99px;
  padding: 6px 14px;
  background: #fff;
  color: var(--acelera-red);
  font-weight: 800;
  font-size: .78rem;
  border: none;
  cursor: pointer;
}

.acelera-table-cell-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---------- dcc.Tabs overrides ---------- */
.acelera-root .tab-container {
  border-bottom: 1px solid var(--acelera-border) !important;
}

.acelera-root .tab {
  transition: all .2s ease;
}
