.dele-app {
  --dele-green: #0f766e;
  --dele-navy: #0b2545;
  --dele-gold: #f6c945;
  --dele-bg: #f6faf9;
  --dele-ink: #0f172a;
  --dele-muted: #516070;
  --ok: #0b7a3b;
  --warn: #9a6b00;
  max-width: 970px;
  margin: 0 auto 24px;
  font-size: 15px;
  color: var(--dele-ink);
  box-sizing: border-box;
}
.dele-app *,
.dele-app *::before,
.dele-app *::after { box-sizing: border-box; }
.dele-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--dele-navy) 0%, var(--dele-green) 65%, #134e2c 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(11, 37, 69, .22);
}
.dele-hero:after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 69, .28) 0%, transparent 68%);
}
.dele-hero__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}
.dele-hero__title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.dele-hero__text {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}
.dele-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #ead8a4;
  font-size: 12.5px;
  color: #3a2c00;
}
.dele-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.dele-kpis .kpi,
.dele-app .kpi {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.dele-app .kpi b { display: block; font-size: 20px; color: var(--dele-navy); }
.dele-app .kpi small { display: block; margin-top: 4px; font-size: 11px; color: var(--dele-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.dele-cmp-title { margin: 16px 0 10px; font-size: 16px; color: var(--dele-navy); }
.dele-app .kpi span {
  display: block;
  font-size: 11px;
  color: var(--dele-muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.dele-card {
  position: relative;
  margin: 0 0 22px;
  padding: 22px;
  border: 2px solid #d7ece7;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, var(--dele-bg) 55%, #fff 100%);
}
.dele-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--dele-green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}
.dele-card__tag--gold { background: var(--dele-gold); color: #3a2c00; }
.dele-card__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
}
.dele-card__tag--gold i { background: #3a2c00; }
.dele-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--dele-navy);
}
.dele-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.dele-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
.dele-app .tab {
  border: 1px solid var(--dele-green);
  background: #fff;
  color: var(--dele-green);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}
.dele-app .tab.active { background: var(--dele-green); color: #fff; }
.dele-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dele-field > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--dele-muted);
}
.dele-field--search,
.dele-field--actions { grid-column: 1 / -1; }
.dele-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dele-filters select,
.dele-filters input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #99f6e4;
  border-radius: 10px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dele-ink);
}
.dele-filters select:disabled,
.dele-filters input:disabled {
  background: #f3f6f6;
  color: #7a8792;
  border-color: #d7e3e0;
}
.dele-app .dele-btn {
  border: 1px solid var(--dele-green);
  background: #fff;
  color: var(--dele-green);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}
.dele-app .dele-btn.active,
.dele-app .dele-btn:hover { background: var(--dele-green); color: #fff; }
.dele-app .dele-btn--ghost {
  border-color: #c5d0d4;
  color: var(--dele-muted);
}
.dele-app .dele-btn--ghost:hover { background: #eef3f3; color: var(--dele-ink); }
.dele-app table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.dele-app th, .dele-app td {
  padding: 8px 7px;
  border-bottom: 1px solid #e8eef2;
  text-align: left;
}
.dele-app th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--dele-muted);
  background: #f8fafb;
}
.dele-app td.num, .dele-app th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dele-app .bar {
  height: 6px;
  background: #e8eef2;
  border-radius: 99px;
  overflow: hidden;
  min-width: 70px;
}
.dele-app .bar i { display: block; height: 100%; background: var(--dele-green); }
.dele-app .sit { font-size: 10px; font-weight: 800; }
.dele-app .sit.eleito { color: var(--ok); }
.dele-app .sit.suplente { color: var(--warn); }
.dele-app .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.dele-app .mun-card {
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
}
.dele-app .mun-card:hover { border-color: var(--dele-green); }
.dele-app .mun-card small { display: block; color: var(--dele-muted); font-size: 11px; }
.dele-app .dele-years {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.dele-app .dele-years .ano-tab {
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  font: inherit;
  font-weight: 800;
}
.dele-app .dele-years .ano-tab.on,
.dele-app tr.ano-tab.on td { outline: 2px solid var(--dele-green); }
.dele-app table.dele-anos-resumo { width: 100%; }
.dele-app tr.ano-tab { cursor: pointer; }
.dele-app .dele-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.dele-app .dele-compare--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .dele-app .dele-compare--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.dele-app .dele-compare__col {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.dele-app .dele-compare__col--26 { border-top: 4px solid #0b2545; }
.dele-app .dele-compare__col--22 { border-top: 4px solid #c9a227; }
.dele-app .dele-compare__col--18 { border-top: 4px solid #0f766e; }
.dele-app .dele-compare__col h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--dele-navy);
}
.dele-app .y26, .dele-app .y22, .dele-app .y18 {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 4px;
  border-radius: 4px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.dele-app .y26 { background: #0b2545; color: #fff; }
.dele-app .y22 { background: #c9a227; color: #1a1400; }
.dele-app .y18 { background: #0f766e; color: #fff; }
.dele-legend i.y18 { background: #0f766e; }
.dele-app .kpi b .y26, .dele-app .kpi b .y22, .dele-app .kpi b .y18,
.dele-app .kpi small .y26, .dele-app .kpi small .y22, .dele-app .kpi small .y18 {
  font-size: 10px;
  vertical-align: 1px;
}
.dele-compare__delta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.dele-app .kpi.up b { color: var(--ok); }
.dele-app .kpi.down b { color: #b42318; }
.dele-app .cmp-card {
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}
.dele-app .cmp-card:hover { border-color: var(--dele-green); }
.dele-app .cmp-card small { display: block; color: var(--dele-muted); font-size: 11px; margin-top: 4px; }
.dele-app .cmp-card .same { color: var(--ok); font-weight: 800; font-size: 11px; }
.dele-app .cmp-card .chg { color: #9a6b00; font-weight: 800; font-size: 11px; }
.dele-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.dele-chart {
  margin: 0;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 12px 12px 8px;
}
.dele-chart figcaption {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dele-navy);
}
.dele-chart svg { display: block; width: 100%; height: auto; }
.dele-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  color: var(--dele-muted);
  font-weight: 700;
}
.dele-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: -1px;
}
.dele-legend i.y26 { background: #0b2545; }
.dele-legend i.y22 { background: #c9a227; }
.dele-legend i.y18 { background: #0f766e; }
.dele-chart-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--dele-muted);
}
.dele-painel-wrap { overflow-x: auto; margin: 0 0 16px; }
.dele-app table.dele-painel { min-width: 720px; }
.dele-app .pnl-row { cursor: pointer; }
.dele-app .pnl-row:hover td { background: #f3faf8; }
.dele-app .pnl-row small { display: block; color: var(--dele-muted); font-weight: 600; }
.dele-cmp-title { margin: 18px 0 10px; font-size: 15px; color: var(--dele-navy); }
.dele-hidden, .dele-app .hidden { display: none !important; }
@media (max-width: 640px) {
  .dele-app .dele-charts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dele-hero { flex-direction: column; text-align: center; padding: 20px; }
  .dele-filters { grid-template-columns: 1fr; }
  .dele-filters select, .dele-filters input { min-width: 100%; }
}
