.vtv-eleicoes-widget,
.vtv-dashboard-container {
  --vtv-red: #00399A;
  --vtv-ink: #000;
  --vtv-muted: #687386;
  --vtv-line: #e6e9ef;
  --vtv-surface: #f6f7f9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--vtv-ink);
}

.vtv-eleicoes-widget {
  max-width: 100%;
  margin: 20px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--vtv-line);
  border-top: 4px solid var(--vtv-red);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .08);
}

.vtv-eleicoes-header,
.vtv-progress-container,
.vtv-cand-item {
  display: flex;
  align-items: center;
}

.vtv-eleicoes-header {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vtv-line);
}

.vtv-eleicoes-kicker,
.vtv-dashboard-kicker,
.vtv-progress-label,
.vtv-cand-total {
  display: block;
  color: var(--vtv-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vtv-eleicoes-title {
  margin: 4px 0 0;
  color: var(--vtv-ink);
  font-size: 24px;
  line-height: 1.1;
  text-transform: capitalize;
}

.vtv-eleicoes-meta {
  color: var(--vtv-muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.vtv-eleicoes-meta strong { color: var(--vtv-ink); }

.vtv-alerta-simulado {
  margin: 16px 0;
  padding: 9px 12px;
  color: #714b00;
  background: #fff3cd;
  border-left: 3px solid #f0a000;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.vtv-progress-container {
  justify-content: space-between;
  margin: 18px 0 8px;
}

.vtv-progress-value {
  color: var(--vtv-red);
  font-size: 24px;
  line-height: 1;
}

.vtv-progress-bar-bg {
  height: 7px;
  overflow: hidden;
  background: #e6e9ef;
  border-radius: 10px;
}

.vtv-progress-bar-fill {
  height: 100%;
  background: var(--vtv-red);
  border-radius: inherit;
  transition: width .4s ease;
}

.vtv-cand-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.vtv-cand-item {
  gap: 12px;
  min-width: 0;
  padding: 10px;
  background: var(--vtv-surface);
  border: 1px solid transparent;
  border-radius: 4px;
}

.vtv-cand-item.vtv-eleito {
  background: #f0fbf3;
  border-color: #bee7c9;
}

.vtv-cand-foto-wrap,
.vtv-cand-foto,
.vtv-cand-foto-fallback {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px;
  border-radius: 50%;
}

.vtv-cand-foto-wrap {
  overflow: hidden;
  background: #dce1ea;
}

.vtv-cand-foto {
  display: block;
  max-width: none !important;
  min-width: 54px;
  min-height: 54px;
  object-fit: cover;
  background: #dce1ea;
}

.vtv-cand-foto-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #8a94a5;
  font-size: 20px;
  font-weight: 700;
}

.vtv-cand-info { min-width: 0; flex: 1; }

.vtv-cand-nome,
.vtv-cand-partido {
  margin: 0;
}

.vtv-cand-nome {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--vtv-ink);
  font-size: 15px;
  font-weight: 700;
}

.vtv-cand-partido {
  overflow: hidden;
  color: var(--vtv-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vtv-badge-eleito {
  padding: 3px 6px;
  color: #fff;
  background: #17833a;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vtv-cand-votos-box { text-align: right; }

.vtv-cand-percentual {
  display: block;
  color: var(--vtv-ink);
  font-size: 19px;
  line-height: 1.1;
}

.vtv-cand-total {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
}

.vtv-loader,
.vtv-mensagem-status,
.vtv-sem-resultados {
  margin: 0;
  padding: 18px 0;
  color: var(--vtv-muted);
  font-size: 14px;
  text-align: center;
}

.vtv-dashboard-container {
  margin: 20px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vtv-line);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .08);
}

.vtv-dashboard-intro {
  padding: 24px;
  color: #fff;
  background: var(--vtv-ink);
  border-left: 5px solid var(--vtv-red);
}

.vtv-dashboard-intro h2,
.vtv-dashboard-intro p { margin: 0; }
.vtv-dashboard-intro h2 { margin-top: 5px; font-size: 24px; color:#FFF !important; }
.vtv-dashboard-intro p { margin-top: 5px; color: #d4d9e2; font-size: 14px; }
.vtv-dashboard-intro .vtv-dashboard-kicker { color: #fff; }

.vtv-filtros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 24px;
  background: var(--vtv-surface);
  border-bottom: 1px solid var(--vtv-line);
}

.vtv-filtros label { display: grid; gap: 5px; }
.vtv-filtros label span { color: var(--vtv-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.vtv-filtros select {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  color: var(--vtv-ink);
  background: #fff;
  border: 1px solid #cbd2dc;
  border-radius: 3px;
  font: inherit;
}

.vtv-filtros .button {
  min-height: 39px;
  padding: 0 16px;
  color: #fff;
  background: var(--vtv-red);
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  font-weight: 700;
  text-shadow: none;
}

.vtv-filtros .button:hover,
.vtv-filtros .button:focus { color: #fff; background: var(--vtv-ink); }
.vtv-dashboard-container .vtv-eleicoes-widget { margin: 0; border: 0; border-top: 0; border-radius: 0; box-shadow: none; }

@media (max-width: 700px) {
  .vtv-eleicoes-widget { padding: 18px; }
  .vtv-eleicoes-header { align-items: flex-start; flex-direction: column; }
  .vtv-eleicoes-meta { text-align: left; }
  .vtv-filtros { grid-template-columns: 1fr; padding: 16px; }
  .vtv-filtros .button { width: 100%; }
  .vtv-dashboard-intro { padding: 20px 16px; }
  .vtv-cand-item { gap: 9px; padding: 8px; }
  .vtv-cand-foto-wrap,
  .vtv-cand-foto,
  .vtv-cand-foto-fallback { width: 46px !important; height: 46px !important; min-width: 46px; min-height: 46px; flex-basis: 46px; }
  .vtv-cand-percentual { font-size: 17px; }
}
