* {
  box-sizing: border-box;
}

body {
  font-family: Arial;
  background-color: black;
  overflow-x: hidden;
}

.container {
  width: 80%;
  background-color: #eaeaea;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 60px;
  margin-top: 12px; /* topo */
  position: relative;
}

.titulo {
  position: relative;
  font-size: 35px;
  color: #000000;
  font-weight: 700;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-left: 15px;
  border-radius: 10px;
  background: linear-gradient(150deg, #00c714, #fffb00);
  font-size: 20px;
  padding: 12px;
  text-align: center;
}

.subtitulo {
  font-size: 18px;
  color: white;
}

h1 {
  margin-bottom: 10px;
}

.nomeDeputado {
  margin-top: 30px;
}

/* LISTA */

#lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* CARD */

.card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  position: relative;
  border: 4px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #d9d9d9, #ffffff, #cfcfcf) border-box;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.15),
    0 0 10px rgba(255, 215, 0, 0.2);
}

.card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;

  width: 40%;
  height: 200%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );

  transform: rotate(25deg);
}

.ouro::after,
.prata::after,
.bronze::after {
  animation: brilho 8s infinite;
}

.card:not(.ouro):not(.prata):not(.bronze)::after {
  display: none;
}

@keyframes brilho {
  0% {
    left: -75%;
  }

  10% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

/* FOTO */

.foto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px auto;

  border: 4px solid #f1f3f7;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.perfil img {
  width: 70px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.foto_miniatura {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
  border: 2px solid #f1f3f7;
}

.foto_miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NOME */

.card a {
  text-decoration: none;
  color: inherit;
}

.nomeDeputado {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 5px;
  color: #000000;
}

.partido {
  font-size: 13px;
  color: #040404;
  font-weight: 700;
  margin-bottom: 8px;
}

/* BADGES */

.metricas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 10px;
}

.badge {
  background: #f1f3f7;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.badge.aprovado {
  background: #d4edda;
  color: #06a500;
}

.badge.tram {
  background: #fff3cd;
  color: #533e00;
}

.badge.presenca {
  background: #d1ecf1;
  color: #00184b;
}

/* SCORE */

.score {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #151515;
}

/* MEDALHAS */

.medalha {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 22px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: white;
  font-weight: bold;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ouro {
  background: linear-gradient(145deg, #ffe100, #d4c200);
}

.prata {
  background: linear-gradient(145deg, #cfcfcf, #9e9e9e);
}

.bronze {
  background: linear-gradient(145deg, #d19152, #8c4b15);
}

/* BOTÕES */

.button1 {
  background-color: #0028c7;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  margin: 6px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.button2 {
  background-color: #fffb00;
  color: #000000;
  border: none;
  padding: 10px 16px;
  margin: 6px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.acoes {
  display: none;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 20px;
}

.tipos-politico {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 22px auto 12px auto;
  padding: 0 12px;
}

.tipo-politico-card {
  width: 132px;
  min-height: 118px;
  border: 2px solid #d8dde6;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tipo-politico-card:hover {
  border-color: #fffb00;
}

.tipo-politico-card.ativo {
  border-color: #00c714;
  box-shadow:
    0 0 0 3px rgba(0, 199, 20, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.2);
}

.tipo-politico-label {
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.tipo-politico-icone {
  position: relative;
  width: 54px;
  height: 64px;
  display: block;
}

.tipo-politico-icone .cabeca {
  position: absolute;
  top: 0;
  left: 50%;
  width: 23px;
  height: 23px;
  background: #f2c7a5;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid #4a3426;
}

.tipo-politico-icone .tronco {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 41px;
  border-radius: 18px 18px 8px 8px;
  transform: translateX(-50%);
  border: 2px solid #1f2937;
}

.tipo-politico-icone .gravata {
  position: absolute;
  left: 50%;
  top: 31px;
  width: 8px;
  height: 24px;
  background: #d40000;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 35%, 70% 100%, 30% 100%, 0 35%);
}

.tipo-politico-icone.deputado .tronco {
  background: linear-gradient(
    90deg,
    #1f2937 0 40%,
    #ffffff 40% 60%,
    #1f2937 60%
  );
}

.tipo-politico-icone.presidente .tronco {
  background: linear-gradient(
    90deg,
    #0b1f3a 0 44%,
    #ffffff 44% 56%,
    #0b1f3a 56%
  );
}

.tipo-politico-icone.presidente .faixa {
  position: absolute;
  left: 7px;
  top: 32px;
  width: 50px;
  height: 10px;
  background: linear-gradient(90deg, #00a859, #ffdf00);
  transform: rotate(32deg);
  border-radius: 999px;
  z-index: 2;
}

.tipo-politico-icone.presidente .gravata {
  background: #0047ab;
}

.tipo-politico-icone.executivo .tronco {
  background: linear-gradient(
    90deg,
    #3f4a59 0 42%,
    #dbeafe 42% 58%,
    #3f4a59 58%
  );
}

.tipo-politico-icone.executivo .crachas {
  position: absolute;
  right: 5px;
  top: 36px;
  width: 14px;
  height: 18px;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 3px;
}

.tipo-politico-icone.executivo .crachas::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 6px;
  height: 8px;
  border-left: 2px solid #2563eb;
  border-right: 2px solid #2563eb;
}

.tipo-politico-icone .cartao-corporativo {
  position: absolute;
  left: -7px;
  bottom: 4px;
  width: 24px;
  height: 16px;
  background: linear-gradient(135deg, #fffb00, #00c714);
  border: 2px solid #111111;
  border-radius: 4px;
  z-index: 4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.tipo-politico-icone .cartao-corporativo::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 18px;
  height: 3px;
  background: rgba(17, 17, 17, 0.78);
  border-radius: 999px;
}

.tipo-politico-icone .cartao-corporativo::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 7px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

.quebra-linha-cartao {
  flex-basis: 100%;
  height: 0;
}

button:hover {
  transform: translateY(-1px);

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

button:active {
  transform: scale(0.98);
}

/* PROGRESS BAR */

#progressContainer {
  width: 420px;
  background: #e8ecf3;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}

#progressBar {
  height: 25px;
  background: linear-gradient(90deg, #4caf50, #2ecc71);
  width: 0%;
  text-align: center;
  color: white;
  font-size: 12px;
  line-height: 25px;
}

#progressContainer.progress-multi {
  width: min(720px, calc(100% - 24px));
  background: #f4f7fb;
  border: 1px solid #d9e1ef;
  border-radius: 10px;
  padding: 10px;
  overflow: visible;
}

.progress-row {
  margin: 8px 0;
}

.progress-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #1f2a44;
  font-size: 12px;
  font-weight: 700;
}

.progress-row-detail {
  color: #52627a;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.progress-track {
  height: 18px;
  background: #dfe7f2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #009b3a, #ffdf00);
  border-radius: inherit;
  color: #073b1d;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  transition: width 0.2s ease;
}

.progress-fill.erro {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: #ffffff;
}

/* MODAL */

.modal {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #002776;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  display: none;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.modal.erro {
  background: #e53935;
}

#comparacao {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 15px;
  z-index: 500;
  display: none;
  max-height: 500px;
  overflow: auto;
}

#comparacao h2 {
  margin-top: 0;
  font-size: 18px;
}

#comparacao table {
  width: 100%;
  border-collapse: collapse;
}

#comparacao td,
#comparacao th {
  padding: 6px;
  text-align: center;
  font-size: 13px;
}

.compHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.compBtns button {
  margin-left: 5px;
  cursor: pointer;
}
img {
  width: 100px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

p {
  text-align: center;
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background-color: #00a711;
  color: #ffffff;
}

.tabelaProposicoesColunaTitulo {
  word-break: break-word;
}

.tabelaDespesasColunaValor {
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #d4d4d4;
}

#despesas input,
#proposicoes input {
  width: 100%;
  padding: 4px;
  font-size: 12px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.dados {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 20px;
  align-items: center;
}

.cabecalho_politico {
  width: 100%;
  border-radius: 10px;
  left: 0;
  display: flex;
  align-items: center;
  z-index: 1000;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  margin-top: 0px;
  color: #000000;
  font-weight: 700;
  background: linear-gradient(150deg, #00c714, #fffb00);
}
.detalhes1 {
  background: #ffffff;
  background-color: #fffb8c;
  border: 1px solid #5f5f5f;
  border-radius: 8px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}
.detalhes2 {
  background: #ffffff;
  background-color: #fffb8c;
  border: 1px solid #5f5f5f;
  border-radius: 8px;
  padding-left: 20px;
  padding-right: 20px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}
.canvas {
  margin-left: auto;
  margin-right: auto;
}
.subt1 {
  font-size: 14px;
}
.subt2 {
  font-size: 13px;
}

td,
th {
  border: 1px solid #767676;
  padding: 8px;
  font-size: 13px;
}
li {
  font-size: 14px;
}

.nome {
  font-size: 23px;
  font-weight: 600;
  margin: 20px;
  text-align: center;
}

.nome2 {
  font-size: 18px;
  font-weight: 600;
  margin: 5px;
  text-align: left;
  padding-left: 10px;
}

.paragrafo2 {
  text-align: left;
  margin: 5px;
  font-size: 13px;
  font-weight: 600;
  padding-left: 20px;
}

.tituloIndicador {
  font-size: 20px;
  font-weight: 600;
  margin: 20px;
  text-align: center;
}
#despesas thead tr.filtros,
#proposicoes thead tr.filtros {
  display: table-row;
}

#despesas thead tr.filtros th,
#proposicoes thead tr.filtros th {
  padding: 4px;
}

#despesas thead tr.filtros input,
#proposicoes thead tr.filtros input {
  width: 100%;
  padding: 4px;
  font-size: 12px;
  box-sizing: border-box;
}

.tabela-ordenacao-cabecalho {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.tabela-ordenacao-cabecalho span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabela-sort-btn {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.tabela-sort-btn:hover,
.tabela-sort-btn.ativo {
  background: #111111;
  border-color: #111111;
  color: #fffb00;
}

.filtros input,
.filtros select {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 20px;
  padding: 5px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
}

.comparacao-mandatos {
  box-sizing: border-box;
  display: none;
  width: min(980px, calc(100% - 24px));
  max-width: calc(100vw - 24px);
  margin: 24px auto 0 auto;
  padding: 18px;
  background: #ffffff;
  border: 2px solid #dfe6ef;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.comparacao-mandatos-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.comparacao-mandatos-cabecalho h2 {
  margin: 3px 0 0 0;
  color: #111111;
  font-size: 20px;
  line-height: 1.2;
}

.comparacao-mandatos-cabecalho strong {
  color: #0b3012;
  font-size: 22px;
  white-space: nowrap;
}

.comparacao-mandatos-etiqueta {
  display: inline-block;
  background: #111111;
  color: #fffb00;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.comparacao-mandatos-loading,
.comparacao-mandatos-erro {
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.mandatos-resumo {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  min-width: 0;
}

.mandato-resumo-card {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.mandato-resumo-card.ativo {
  border-color: #00c714;
  box-shadow: 0 0 0 3px rgba(0, 199, 20, 0.18);
}

.mandato-resumo-topo,
.mandato-resumo-rodape {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.mandato-resumo-topo span {
  color: #111111;
  font-size: 14px;
  font-weight: 800;
}

.mandato-resumo-topo small,
.mandato-resumo-rodape {
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.mandato-resumo-card strong {
  display: block;
  margin-top: 10px;
  color: #00184b;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.mandato-resumo-barra {
  height: 9px;
  margin: 10px 0 8px 0;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.mandato-resumo-barra span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00c714, #fffb00);
  border-radius: inherit;
}

.ERRO_BOX {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background: #ffd4d4;
  padding: 15px 20px;
  border-radius: 10px;
  color: #cd0000;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}

button.BOTAO_AZUL_ACAO {
  position: sticky;
  bottom: 20px;
  left: 20px;
  background: #2399e5;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
}

button.BOTAO_AZUL_ACAO:hover {
  background: #277eb8;
}

button.BOTAO_COMPARAR {
  background: #2399e5;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  bottom: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

button.BOTAO_COMPARAR:hover {
  background: #277eb8;
}

.lista-acoes {
  display: flex;
  justify-content: center;
  margin: 22px 0 36px 0;
}

.BOTAO_CARREGAR_MAIS {
  background: linear-gradient(150deg, #00c714, #fffb00);
  color: #000000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.semBorda {
  border: none !important;
  background: transparent !important;
}

.grafico-despesas {
  margin-top: 8px;
  margin-bottom: 30px;
  font-size: 11px;
}

.barra-container {
  margin-bottom: 4px;
}

.barra-label {
  font-size: 9.5px;
  color: #303030;
  text-align: left; /* força alinhamento à esquerda */
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap; /* evita quebrar feio */
  min-width: 0;
}

.barra-label-text {
  overflow: hidden;
  text-overflow: ellipsis; /* adiciona "..." se for muito grande */
}

.barra-bg {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 4px;
}

.barra-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00c714);

  box-shadow:
    0 0 5px #00ff88,
    0 0 10px #00c714;
}

.barra-valor {
  font-size: 10px;
  text-align: right;
}

.badge.gasto {
  background: #000000;
  color: #fffb00;
  font-weight: bold;
  padding: 3px;
  border-radius: 3px;
}

.sigiloso-card-info {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: none;
  border-radius: 50%;
  background: #111111;
  color: #fffb00;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  padding: 0;
  text-align: center;
  box-shadow: none;
  z-index: 20;
}

.sigiloso-card-info:hover {
  background: #2399e5;
  transform: none;
  box-shadow: none;
}

.descricao-sigiloso {
  background: rgba(0, 0, 0, 0.35);
}

.descricao-sigiloso .modal-ajuda-content {
  width: min(520px, 92vw);
  color: #111111;
}

.descricao-sigiloso h3 {
  margin-top: 0;
}

.descricao-sigiloso p {
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.descricao-sigiloso ul {
  columns: 2;
  padding-left: 18px;
  margin: 10px 0 16px 0;
}

.descricao-sigiloso li {
  margin-bottom: 6px;
}

.descricao-sigiloso .fechar {
  border: none;
  background: transparent;
  font-weight: 900;
}

#devButton {
  display: none;
  position: fixed;
  bottom: 70px;
  left: 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 300;
}

.help-icon {
  cursor: pointer;
  margin-right: 5px;
  font-size: 20px;
  color: #2399e5;
  vertical-align: center;
  font-weight: 800;
}

.help-icon:hover {
  color: #0d6efd;
}

.info-icon {
  position: absolute;
  right: 15px;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

.info-icon:hover {
  color: #0d6efd;
}

/* FUNDO LEVE (sem escurecer muito) */
.modal-ajuda {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* leve */
  z-index: 9999;
  text-align: left;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 500;
}

/* CAIXA CENTRAL */
.modal-ajuda-content {
  background: #fff;
  padding: 20px;
  width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: aparecer 0.5s ease;
}

/* ANIMAÇÃO */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FECHAR */
.modal-ajuda-content .fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
}

/* BOTÃO FIXO */
#apoieBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(145deg, #a94dff, #a318c9);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: 0.2s;
}

#apoieBtn:hover {
  transform: translateY(-2px);
}

/* BOX */
#apoieBox {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(150deg, #00c714, #fffb00);
  color: #000000;
  border: 1px solid #000000;
  border-radius: 10px;
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  width: 35%;
  max-height: 90%;
}

#apoieBox img {
  max-width: 70%;
  min-width: 50%;

  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 10px 0;
  border-radius: 6px;
}

#pixKey {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
}

.abas {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.aba {
  padding: 8px 12px;
  border: none;
  background: #cecece;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
}

.aba.ativa {
  background: linear-gradient(150deg, #00c714, #fffb00);
  color: #000000;
  font-weight: bold;
}

.conteudo-aba {
  background: white;
  padding: 10px;
  border-radius: 0 8px 8px 8px;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.container a {
  color: #0028c7;
  font-weight: bold;
}

.container ul {
  margin-left: 20px;
}

/* LOADING OVERLAY */
#globalLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#globalLoader.ativo {
  opacity: 1;
  pointer-events: all;
}

/* SPINNER */
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top: 6px solid #00c714;
  border-radius: 50%;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE RESPONSIVE INDEX.HTML*/
@media (max-width: 600px) {
  .filtros {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
  }

  .filtros input,
  .filtros select {
    min-width: 0;
  }

  #filtroNome {
    flex: 1 1 150px;
    width: auto;
  }

  #filtroPartido {
    flex: 0 1 118px;
    width: 118px;
  }

  #filtroEstado {
    flex: 1 0 100%;
    width: 100%;
  }

  #filtroMandatoCartao,
  #ordenacao {
    flex: 0 1 auto;
    width: auto;
  }

  .comparacao-mandatos {
    width: calc(100% - 10px);
    max-width: calc(100vw - 10px);
    margin-top: 16px;
    padding: 12px;
  }

  .comparacao-mandatos-cabecalho {
    flex-direction: column;
    gap: 8px;
  }

  .comparacao-mandatos-cabecalho h2 {
    font-size: 16px;
  }

  .comparacao-mandatos-cabecalho strong {
    font-size: 18px;
    white-space: normal;
  }

  .mandatos-resumo {
    grid-template-columns: 1fr;
  }

  #lista {
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 por linha */
    gap: 5px;
  }

  .card {
    padding: 10px;
    border-radius: 10px;
  }

  .foto {
    width: 90px;
    height: 90px;
  }

  .nomeDeputado {
    font-size: 13px;
  }

  .partido {
    font-size: 11px;
  }

  .badge {
    font-size: 9px;
    padding: 2px 4px;
  }

  .score {
    font-size: 12px;
  }
}

/* MOBILE RESPONSIVE BOTÃO E MODAL APOIAR*/
@media (max-width: 600px) {
  #apoieBox {
    width: 90%;
    transform: translateX(-50%);

    bottom: 10%;
    top: auto;
    padding: 12px;
    border-radius: 12px;
    max-height: 75vh;
    overflow-y: auto;
  }

  #apoieBtn {
    position: fixed;
    bottom: 2%;
    left: 5%;
  }

  #apoieBox img {
    max-width: 80%;
    min-width: 60%;
  }
}

/* MOBILE RESPONSIVE MODAL COMPARAÇÃO*/
@media (max-width: 600px) {
  #comparacao {
    position: fixed;
    left: 50%;
    bottom: 1%;
    transform: translateX(-50%);
    width: 90%;
    height: 50%;
    border-radius: 15px;
    padding: 8px;
  }

  #comparacao table {
    display: block;
    overflow-y: auto;
    white-space: nowrap;
    margin-bottom: 15px;
  }

  #comparacao td {
    max-width: 200px;
    word-break: break-word;
    white-space: normal;
  }

  #comparacao h2 {
    font-size: 14px;
  }

  #comparacao td,
  #comparacao th {
    padding: 2px;
  }

  .foto_miniatura {
    width: 30px;
  }

  button.BOTAO_AZUL_ACAO {
    position: sticky;
    bottom: 3%;
    left: 5%;
  }
}

.confete {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 12px;
  z-index: 9999;
  pointer-events: none;
  animation: cair linear forwards;
}

@keyframes cair {
  to {
    transform: translateY(100vh) rotate(720deg);
  }
}

/* TOOLTIP SCORE */

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 120%; /* aparece acima */
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;

  width: 210px;
  text-align: left;
  transition: 0.2s;
  z-index: 999;
}

/* setinha */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

/* mostrar no hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* MOBILE RESPONSIVE POLITICO.HTML*/
@media (max-width: 600px) {
  .cabecalho_politico {
    width: 100%;
    left: 0;
    transform: none;
  }

  .container {
    width: 98%;
    padding: 15px;
  }
  .dados {
    flex-direction: column; /* 🔥 empilha */
    gap: 15px;
  }

  .detalhes1,
  .detalhes2 {
    width: 100%; /* 🔥 ocupa tudo */
  }

  /* aba de seleção */
  .aba {
    font-size: 12px;
    padding: 6px;
  }

  /*tabela*/
  #despesas,
  #proposicoes {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  #despesas table,
  #proposicoes table {
    min-width: 600px;
  }

  #despesas th,
  #proposicoes td,
  #despesas th,
  #proposicoes td {
    font-size: 12px;
    padding: 6px;
  }
  .tabelaProposicoesColunaTitulo {
    white-space: normal;
    word-break: break-word;
    min-width: 250px;
  }
  .tabelaProposicoesColunaStatus {
    white-space: normal;
    word-break: break-word;
    min-width: 100px;
  }
}

.mandato-top-orgaos {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mandato-top-orgaos-titulo {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.9;
  text-transform: uppercase;
}

.mandato-orgao-item {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.mandato-orgao-topo {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 4px;
  min-width: 0;
  width: 100%;
}

.mandato-orgao-posicao {
  flex: 0 0 26px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

.mandato-orgao-nome {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.mandato-orgao-barra {
  box-sizing: border-box;
  width: calc(100% - 34px);
  max-width: calc(100% - 34px);
  height: 7px;
  margin: 6px 0 7px 34px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.mandato-orgao-barra span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00c714, #fffb00);
  border-radius: inherit;
}

.mandato-orgao-metricas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-left: 34px;
  min-width: 0;
  font-size: 11px;
  opacity: 0.85;
}
