/* Estilos específicos do painel-renovacoes. O que é genérico (kpis, card,
   date-bar, account/consultor-dropdown, pill, table-card, section-title…)
   já vem de css/dashboard.css — aqui só o que é exclusivo desta página:
   o seletor de consultor (mesma classe usada em Andamento das Indicações)
   e o card do estimador de receita com o slider. */

.consultor-selector {
  position: relative;
}

.kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.charts-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-card {
  padding: 18px 18px 14px;
}

.chart-card .ch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.chart-card .ch-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 12px;
}

.chart-wrap {
  position: relative;
  height: 300px;
}

.c-table-wrap {
  margin-bottom: 14px;
}

.c-table-wrap table {
  min-width: 420px;
}

.renov-table-wrap {
  max-height: 620px;
  overflow: auto;
}

/* ===== Card do estimador de receita ===== */

.estimator-card {
  padding: 20px 22px;
  margin-bottom: 20px;
}

.estimator-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.estimator-pct-badge {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Slider customizado: trilho fino na cor de fundo, "preenchimento" visual
   feito só pelo thumb + gradiente aplicado via JS não é necessário — o
   contraste do thumb já deixa claro onde está o valor selecionado, sem
   depender de suporte a ::-webkit-slider-runnable-track em todos os
   navegadores para colorir a parte "preenchida". */
.estimator-slider {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin: 4px 0 6px;
}

.estimator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(1, 105, 111, 0.4);
  cursor: pointer;
  margin-top: -7px;
}

.estimator-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}

.estimator-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(1, 105, 111, 0.4);
  cursor: pointer;
}

.estimator-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}

.estimator-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.estimator-figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.estimator-figure.highlight {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.ef-l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--subtle);
  font-weight: 700;
}

.ef-v {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-top: 8px;
  color: var(--text);
}

.ef-v.accent {
  color: var(--primary);
}

.ef-v.big {
  font-size: 26px;
  color: var(--primary);
}

.ef-m {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .estimator-figures {
    grid-template-columns: repeat(2, 1fr);
  }
}