/* ─────────────────────────────────────────────
   Dashboard Gestores — OEBP (novo)
   ───────────────────────────────────────────── */

.gest-dashboard {
  font-family: 'Onest', 'Sora', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* ── Filtro de município ── */
.gest-filtro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gest-filtro-label {
  font-size: 13px;
  font-weight: 700;
  color: #5747C9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gest-filtro-label::before {
  content: '📍';
  font-size: 16px;
}

.gest-select-municipio {
  padding: 10px 20px;
  border: 2px solid #FCE4EC;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #333;
  background: #fff;
  cursor: pointer;
  min-width: 260px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23F44C98' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  transition: border-color 0.2s;
}

.gest-select-municipio:focus {
  outline: none;
  border-color: #F44C98;
}

.gest-titulo-local {
  font-size: 36px;
  font-weight: 700;
  color: #F44C98;
  margin: 0 0 28px;
  line-height: 1;
}

/* ── Vista estado geral ── */
.gest-estado-geral {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.gest-estado-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.gest-estado-card-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #F44C98;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #F44C98;
  display: inline-block;
}

.gest-estado-chart-wrap {
  height: 200px;
  position: relative;
}

/* ── Vista município ── */
.gest-resultado {
  display: none;
}

/* ── Topo: velocímetro + posição relativa + pontos ── */
.gest-topo {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── Card base ── */
.gest-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.gest-card-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #F44C98;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid #F44C98;
  display: inline-block;
}

/* ── Velocímetro ── */
.gest-velocimetro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gest-velocimetro-canvas {
  width: 100%;
  max-width: 260px;
  height: 160px;
}

.gest-ideb-label {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

/* ── Posição relativa ── */
.gest-posicao-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gest-posicao-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fdf6ff;
  border-radius: 10px;
  padding: 12px 16px;
}

.gest-posicao-emoji {
  font-size: 22px;
  flex-shrink: 0;
}

.gest-posicao-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  flex: 1;
}

.gest-posicao-pct {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.gest-posicao-sub {
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
}

/* ── Pontos de atenção ── */
.gest-pontos-grupo {
  margin-bottom: 12px;
}

.gest-pontos-grupo-titulo {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gest-ponto {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 6px;
}

.gest-ponto strong {
  font-weight: 700;
}

/* ── KPIs ── */
.gest-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.gest-kpi-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid #F44C98;
  min-width: 0;
}

.gest-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gest-kpi-valor {
  font-size: 22px;
  font-weight: 700;
  color: #2c2c2c;
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gest-kpi-seta {
  font-size: 16px;
  font-weight: 700;
}

.gest-kpi-sub {
  font-size: 10px;
  color: #aaa;
}

/* ── Projeções ── */
.gest-projecoes-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.gest-projecoes-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #F44C98;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 3px solid #F44C98;
  display: inline-block;
}

.gest-projecoes-legenda {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gest-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.gest-leg-cor {
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.gest-projecoes-wrap {
  height: 260px;
  position: relative;
}

/* ── Responsivo ── */
@media (max-width: 1100px) {
  .gest-topo {
    grid-template-columns: 1fr 1fr;
  }
  .gest-topo .gest-card:first-child {
    grid-column: 1 / -1;
  }
  .gest-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gest-topo {
    grid-template-columns: 1fr;
  }
  .gest-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .gest-estado-geral {
    grid-template-columns: 1fr;
  }
  .gest-select-municipio {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .gest-kpis {
    grid-template-columns: 1fr;
  }
  .gest-titulo-local {
    font-size: 26px;
  }
}