@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&display=swap");

/*--------------------HOME-MUNICÍPIOS--------------------*/
:root {
  --bg-color: #f9f9f9;
  --cor-base: #186cdf;
  --sobretom: #2499ff;
  --cinza-claro: #9c9c9c;
  --cinza-escuro: #333;
  --shadow: 0 0 06px 0px rgba(119, 121, 147, 0.2);
  --surface-color: #ffffff;
  --border-color: #d0d7e2;
  --hover-column: #9c9c9c;
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --cinza-claro: #94a3b8;
  --cinza-escuro: #e2e8f0;
  --surface-color: #1e293b;
  --border-color: #334155;
  --shadow: 0 0 10px 0 rgba(0, 0, 0, 0.45);
  --hover-column: rgb(12, 19, 31);
}

.produtos {
  max-width: 1000px;
  flex-wrap: wrap;
}

.produtos a {
  box-sizing: border-box;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1em;
  font-weight: bold;
  margin: 20px;
  width: 150px;
  height: 180px;
  background-color: var(--cor-base);
  box-shadow: var(--shadow);
  border-radius: 10px;
}

.produtos a:hover {
  background-color: var(--sobretom);
  color: white;
}

.produtos a img {
  width: 100px;
}

/*--------------------LIGHTBOX-----------------------------*/
#lbback {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0.3;
  background-color: #000;
}

#lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 50px;
  box-sizing: border-box;
  background: white;
  width: 50%;
  height: 80%;
  max-width: 800px;
  box-shadow: var(--shadow);
  min-height: 240px;
}

#lightbox > ul {
  flex-wrap: wrap;
  align-items: center;
  height: 90%;
  display: flex;
}

#lightbox > ul > li {
  margin: 0 20px;
  display: flex;
  flex-direction: column;
}

#editinputs > li > label {
  font-size: 0.8rem;
  color: var(--tom-medio);
}

#close {
  position: absolute;
  top: 10px;
  right: 20px;
}

/*-------------------MUNICIPIO - DASHBOARD ---------------------------------*/
.bloco {
  width: 250px;
  height: 180px;
  background: white;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  align-items: left;
  box-sizing: border-box;
  padding: 20px 10px;
}

.bloco .numeronegativo {
  text-align: left;
}

.bloco > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bloco h3 {
  color: #1d2742;
  font-size: 0.9em;
  font-weight: 600;
}

.bloco h4 {
  font-weight: 400;
  font-size: 0.7em;
}

.bloco p {
  font-size: 1.2em;
  color: var(--cinza-claro);
  font-weight: 300;
  margin: 10px;
}

.bloco.medio {
  height: 230px;
}

.bloco .smalltext {
  margin-top: 15px;
  font-size: 0.8em;
}

#omissao-anual .smalltext {
  margin: 0;
}

.bloco span {
  font-size: 0.6em;
}

#resumo-dashboard {
  margin: 50px 50px 0;
  display: grid;
  grid-auto-flow: row;
  column-gap: 32px;
  width: auto;
  max-width: 100%;
}

#detalhes-dashboard {
  margin: 40px 50px;
  display: grid;
  grid-template-columns: 830px 250px;
  column-gap: 40px;
}

#movimentacao-economica {
  margin: 22px 16px;
  gap: 22px;
  display: flex;
}

#resumo-dashboard.escola {
  grid-template-columns: repeat(6, 200px);
}

#resumo-dashboard.isscard {
  width: 890px;
  column-gap: 40px;
  grid-template-columns: repeat(4, 250px);
}

.bloco.escola {
  width: 200px !important;
}

.quadro {
  height: 250px;
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #9e9e9e;
  font-weight: 400;
  width: 100%;
}

.info {
  flex-grow: 1;
  border-bottom: solid 1px #ccc;
}

.quadro ul {
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.quadro ul:last-child {
  border-bottom: none !important;
}

.quadro ul li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.7em;
}

.quadro .blue-titles {
  padding: 10px !important;
}

#resumo-bairros,
#resumo-cnaes {
  overflow-y: auto;
}

#resumo-bairros > .blue-titles.space-b,
#resumo-cnaes > .blue-titles.space-b {
  position: sticky;
  top: 0;
  /* Fixa o elemento no topo do contêiner ao rolar */
  background: transparent;
  z-index: 1;
  /* Garante que fique acima dos outros elementos */
}

#resumo-bairros ul li {
  width: 20%;
  /* Define a largura padrão para todos os itens */
}

#resumo-bairros ul li:first-child {
  width: 60%;
  /* Sobrescreve a largura para o primeiro item */
  text-align: left;
  justify-content: start;
}

#resumo-cnaes ul li {
  width: 15%;
  /* Define a largura padrão para todos os itens */
}

#resumo-cnaes ul li:first-child {
  justify-content: start;
}

#resumo-cnaes ul li:nth-child(2) {
  width: 55%;
  /* Sobrescreve a largura para o primeiro item */
  text-align: left;
  justify-content: start;
}

#resumo-cnaes ul:not(:first-child),
#resumo-bairros ul:not(:first-child) {
  padding: 5px;
  /* Aplica padding apenas às <ul> que não sejam a primeira */
}

#resumo-corban {
  width: 600px;
}

#resumo-isscard {
  width: 830px;
  height: 450px;
}

#resumo-isscard ul li {
  width: 23.75%;
}

#resumo-isscard ul li:first-child {
  width: 5%;
}

#resumo-escolas {
  width: 350px;
}

#resumo-corban ul li:first-child {
  justify-content: flex-start !important;
  width: 80%;
}

#resumo-corban ul li {
  width: 20%;
}

#resumo-escolas ul li {
  width: 33.33%;
}

#omissao-anual .grafico-container {
  display: flex;
  align-items: flex-end;
  /* Alinha as barras na base */
  justify-content: space-around;
  height: 90px;
  /* Ajuste o divisor conforme necessário */
  gap: 20px;
  text-align: center;
  margin-top: 10px;
}

#omissao-anual .barra {
  flex: 0.5;
  max-width: 15px;
  background-color: #186cdf;
  position: relative;
  transition: height 0.5s ease;
  text-align: center;
}

#omissao-anual .rotulo {
  position: absolute;
  bottom: -25px;
  left: -4px;
  width: 100%;
  text-align: center;
  font-size: 10px;
}

/*--------------------MODULOS - MUNICIPIOS--------------------*/

#modulos-txt {
  width: 70%;
  max-width: 1200px;
  text-align: center;
}

#modulos-txt p {
  text-align: justify;
}

#modulos-txt img {
  width: 200px;
}

.ass {
  font-weight: bold;
  font-size: 16px;
  margin-top: 50px;
  text-align: justify;
}

.painel-municipio {
  width: calc(100vw - 5px);
  height: calc(100vh - 65px);
  box-sizing: border-box;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/*--------------------ADM--------------------*/
.lista-relatorio {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  flex: 1;
  min-width: 500px;
  width: 100%;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
}

.lista-relatorio ul {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  align-items: stretch;
  padding: 0 20px;
  border-top: solid 5px var(--bg-color);
  gap: 10px;
}

.lista-relatorio ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  min-height: 55px;
  font-size: 12px;
  padding: 10px 0;
  flex: 1;
  text-align: center;
}

.tabela_formulario {
  flex-wrap: wrap;
  padding: 50px;
  background-color: white;
  max-width: 1000px;
}

.newformulario {
  margin: 30px auto;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 10px;
  min-width: 500px;
  background: white;
  padding: 50px;
}

.newformulario ul {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.newformulario ul li {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex: 1;
  gap: 10px;
  align-items: stretch;
}

.newformulario ul li label {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.newformulario ul li textarea {
  flex: 1;
}

.newformulario ul li select,
.newformulario ul li input:not(input[type="checkbox"]) {
  box-sizing: border-box;
  width: 175px;
  max-width: 175px;
}

.formulario li {
  display: flex;
  align-items: space-between;
  justify-content: space-between;
  margin: 5px 0;
}

.formulario li label {
  font-size: 12px;
}

input,
select,
textarea {
  border: solid 1px var(--cinza-claro);
  max-width: 200px;
  padding: 2px 5px;
}

.small-input {
  min-width: 50px;
  box-sizing: border-box;
  width: 70px !important;
}

/*--------------------ADM--------------------*/

#nova-senha {
  max-width: 300px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  box-sizing: border-box;
}
#nova-senha,
#nova-senha div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
#nova-senha .button {
  border: solid 1px #516cd7;
}

/*--------------------DIVS Relatorios--------------------*/
#relatorio2 ul {
  display: flex;
  flex-direction: column;
  width: 80%;
  max-width: 800px;
}

#relatorio2 ul li {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  width: 100%;
  padding: 5px 10px;
}

#relatorio2 ul li div {
  width: 18%;
  min-width: 80px;
  margin: 0 5px;
}

#relatorio1 li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  min-width: 650px;
}

#relatorio1 li div {
  padding: 10px 0;
  font-size: 12px;
  text-align: right;
}

#relatorio1 li div:first-child {
  margin-left: 20px;
}

#relatorio1 li div:last-child {
  margin-right: 20px;
}

#relatorio1 li div {
  width: 10%;
  min-width: 100px;
}

.gerar_relatorio {
  padding: 10px 50px;
}

/*--------------------------FORMATO - PLANILHA---------------------------------*/
#planilha {
  max-width: 1500px;
}

#planilha ul {
  padding: 0 10px;
}

#planilha ul li {
  padding: 20px 10px;
  width: 100px;
  justify-content: flex-end;
  text-align: right;
}

#planilha ul .nome {
  justify-content: flex-start;
  width: 300px;
  text-align: left;
}

#planilha ul:hover {
  background-color: #a5aee3;
}

#planilha ul li a {
  color: var(--cor-base);
  font-weight: 600;
  text-decoration: underline;
}

/*--------------------- GESTAO MUNICIPAL ----------------------------------*/
#lightbox-usuarios {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#lightbox-usuarios > div {
  z-index: 1001;
}

.container {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1400px;
}

.lista {
  min-width: 860px;
  max-height: 440px;
  overflow: hidden;
  position: relative;
}

.lista #scroller {
  height: 440px;
  width: 100%;
  overflow: auto;
}

.lista::after {
  content: "";
  position: absolute;
  inset: 0;
  /* top: 0; right: 0; bottom: 0; left: 0 */
  pointer-events: none;
  /* Deixa o conteúdo clicável normalmente */
  box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.3);
  z-index: 2;
  /* Fica acima do conteúdo */
}

.lista .cabecalho,
.lista .cabecalho:hover {
  background: var(--bg-color);
  position: sticky;
  top: 0;
  font-weight: 600;
  z-index: 1;
}

.lista ul {
  box-sizing: border-box;
  padding: 5px 10px;
  flex-direction: row;
  justify-content: space-between;
}

.lista ul:nth-child(even):hover,
.lista ul:hover {
  background-color: var(--hover-column);
}

.lista ul:nth-child(even) {
  background-color: var(--bg-color);
}

.lista ul li {
  font-size: clamp(12px, 1.2vw, 16px);
}

/* remove o flex:1 da classe generica para que os widths especificos funcionem */
.lista.usuarios ul li:nth-child(1) {
  flex: 1 1 0;
  /* Crescem igualmente */
  min-width: 275px;
}

/* Município */
.lista.lista.usuarios ul li:nth-child(2) {
  flex: 1 1 0;
  /* Crescem igualmente */
  min-width: 150px;
}

/* Usuário */
.lista.usuarios ul li:nth-child(3) {
  flex: 1 1 12%;
  /* grow:1, shrink:1, basis:12% */
  min-width: 130px;
  /* nunca menor que isso */
  max-width: 15%;
  /* nunca maior que isso */
}

/* CPF */
.lista.usuarios li:nth-child(n + 4):nth-child(-n + 5) {
  flex: 1 1 8%;
  /* grow:1, shrink:1, basis:12% */
  min-width: 65px;
  /* nunca menor que isso */
  max-width: 10%;
  /* nunca maior que isso */
  text-align: center;
  /* opcional, se forem ícones */
  display: flex;
  justify-content: center;
}

/* Ícones: 5% cada */
.lista.usuarios li:nth-child(n + 6):nth-child(-n + 8) {
  flex: none;
  width: 2%;
  display: flex;
  justify-content: center;
  text-align: center;
  /* opcional, se forem ícones */
}

/* switch button */
.switch {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 12px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px !important;
  z-index: 0;
}

.slider:before {
  position: absolute;
  content: "";
  height: 9px;
  width: 9px;
  left: 1.5px;
  bottom: 1.5px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50% !important;
}

input:checked + .slider {
  background-color: var(--cor-base);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--cor-base);
}

input:checked + .slider:before {
  transform: translateX(13px);
}

/*------------------- ISSCARD - EMPRESAS LOCAIS > MOVIMENTO--------------------*/
.table-emp-locais {
  display: flex;
  flex-direction: column;

  margin: 20px 0 0 0;
}

.table-emp-locais ul {
  max-height: 200px;
  overflow-y: auto;
}

.table-emp-locais li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  min-width: 550px;
}

.table-emp-locais li div {
  padding: 10px 0;
  font-size: 14px;
  text-align: right;
  width: 15%;
}

.table-emp-locais .table-titles {
  color: white;
  background-color: var(--cor-base);
}

.table-emp-locais ul li div:first-child {
  margin-left: 20px;
}

.table-emp-locais ul li div:last-child {
  margin-right: 20px;
}

#tabela1,
#relatorio1 {
  overflow-y: auto;
}

#table-rever tr {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
}

#servicos {
  font-size: 10px;
}

/*------------------- IFRAMES--------------------*/
iframe {
  padding: 25px 0;
  min-height: 450px;
}

/* --------------------------- ISSCARD > FERRAMENTAS > CONSULTA ARQUIVOS -----------------------------*/
#consultaarquivos {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

#consultaarquivos ul {
  border: solid 1px black;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

#consultaarquivos ul li {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#consultaarquivos ul li div {
  text-align: center;
  border: solid 1px black;
  padding: 2px;
}

/* --------------------- FERRAMENTAS - FORMATAÇÃO DAS TABELAS -----------------------  */
#container,
#container-2,
#container-adm {
  width: 90%;
  margin: 0px auto;
  padding: 0 0 50px;
  text-align: center;
  min-height: 100vh;
}

#container,
#container-adm {
  max-width: 1600px;
}

#container-2 {
  max-width: 1200px;
}

#container-adm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#container-adm .organizador {
  margin: 30px 30px 0;
}

.organizador {
  margin-bottom: 30px;
  min-width: 700px;
}

.organizador ul {
  box-sizing: content-box;
  margin: 5px 0 0;
  background: white;
  font-size: 12px;
}

.organizador ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  flex: 1;
  text-align: center;
}

.organizador ul.numero li {
  justify-content: flex-end;
  text-align: right;
}

.organizador ul li a:visited {
  color: var(--cor-base);
}

.blue-titles {
  background-color: var(--cor-base) !important;
  color: #ffffff !important;
  font-size: 14px;
}

.blue-titles li a {
  text-decoration: underline;
}

.blue-titles li a:visited {
  color: white !important;
}

.blue-titles.space-b {
  background-color: transparent !important;
  color: var(--cor-base) !important;
  border-bottom: 1px solid var(--cor-base);
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  font-size: 13px;
  font-weight: 700;
}

.blue-titles.space-b li {
  font-size: 13px;
  font-weight: 700;
}

.blue-titles.space-b li a,
.blue-titles.space-b li a:visited {
  color: inherit !important;
}

.desc {
  justify-content: flex-start !important;
  text-align: left !important;
  flex: 0 0 50% !important;
}

.medium {
  justify-content: flex-start !important;
  text-align: left !important;
  flex: 0 0 15% !important;
}

.n,
.edit {
  min-width: 20px !important;
  max-width: 20px !important;
  flex: 0 0 20px;
  font-size: 16px;
}
.status {
  min-width: 30px !important;
  max-width: 30px !important;
  flex: 0 0 20px;
}
.id {
  min-width: 30px !important;
  max-width: 50px !important;
  flex: 0 1 50px;
}

.edit:hover,
.edit:hover a,
.edit:hover a:visited {
  background-color: var(--cor-base);
  color: white;
}

/* -------------------------------MINHAS DEMANDAS/CONTRATOS --------------------------------------- */
/* Container das ABAS */

.tabs-container {
  margin: 30px auto;
  display: flex;
  justify-content: space-start;
  align-items: center;
  position: relative;
  width: 100%;
  height: auto;
  gap: 10px;
}

/* ABAS */
input.tabs {
  display: none;
}

input.tabs + label + div {
  width: 100%;
  opacity: 0;
  position: absolute;
  background: var(--bg-color);
  top: 65px;
  left: 0;
  padding: 0px;
  z-index: -1;
}

input.tabs:checked + label + div {
  opacity: 1;
  z-index: 10;
}

/* Labels */
input.tabs + label {
  padding: 15px;
  font-size: 12px;
  background: var(--bg-color);
  color: black;
  cursor: pointer;
  text-align: center;
  border: solid 2px var(--cor-base);
}

input.tabs:checked + label {
  color: white;
  background: var(--cor-base);
}

/* ------------------------------- PAGINA DA DEMANDA/PAGINA DO CONTRATO--------------------------------------- */
/* Formulario de Alteração */
#atualizar-demanda,
#atualizar-contrato {
  margin: 30px 0;
}

#atualizar-demanda ul,
#atualizar-contrato ul {
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: 12px;
  background: white;
  padding: 20px 0px;
}

#atualizar-demanda ul li,
#atualizar-contrato ul li {
  margin: 0 10px;
}

/* ------------------------------- INCLUSÃO DE DEMANDA --------------------------------------- */
.desc textarea,
#incluir-demanda textarea {
  width: 100%;
  max-width: 100%;
  border: solid 1px var(--cinza-claro);
  border-radius: 5px;
}

#incluir-demanda ul li {
  margin: 15px 5px;
}

#incluir-demanda textarea {
  min-width: 310px !important;
}

/* ------------------------------- INCLUSÃO DE CONTRATO --------------------------------------- */
.contrato input,
.contrato select {
  width: 90%;
  max-width: 100px;
}

.incluir_contrato ul {
  min-width: 300px;
}

.incluir_contrato ul li select,
.incluir_contrato ul li input {
  max-width: 175px;
}

/* ------------------------------- TICKETS (SÓ PARA MUNICÍPIOS) --------------------------------------- */

.ticket input,
.ticket select {
  width: 90%;
  max-width: 200px;
}

/* ------------------------------- IBANCOS - INTERAÇÕES --------------------------------------- */
#interacoes inputs,
#interacoes select,
#interacoes textarea {
  width: 366px;
  max-width: 366px;
  padding: 2px;

  box-sizing: border-box;
}

/*------------------------------- PORTAL CONTRIBUINTE ---------------------------------*/
/* ===== Contribuintes - Tabela Unificada ===== */
.contrib-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

.contrib-stat-card {
  background: white;
  border-radius: 10px;
  padding: 18px 28px;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(24, 108, 223, 0.07);
  border-left: 4px solid var(--cor-base);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.25s,
    color 0.25s;
  cursor: pointer;
  user-select: none;
}

.contrib-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(24, 108, 223, 0.13);
}

.contrib-stat-card.pendente {
  border-left-color: #f0ad4e;
}

.contrib-stat-card.validado {
  border-left-color: #28a745;
}

.contrib-stat-card.suspenso {
  border-left-color: #dc3545;
}

/* Card ativo - cores de fundo correspondentes */
.contrib-stat-card.active {
  background: var(--cor-base);
  color: white;
  border-left-color: var(--cor-base);
}

.contrib-stat-card.active .stat-num,
.contrib-stat-card.active .stat-label {
  color: white;
}

.contrib-stat-card.pendente.active {
  background: #f0ad4e;
  border-left-color: #e09d3e;
}

.contrib-stat-card.validado.active {
  background: #28a745;
  border-left-color: #1e8e3a;
}

.contrib-stat-card.suspenso.active {
  background: #dc3545;
  border-left-color: #c82333;
}

.contrib-stat-card .stat-num {
  font-size: 2em;
  font-weight: 700;
  color: var(--cinza-escuro);
  line-height: 1.1;
}

.contrib-stat-card .stat-label {
  font-size: 0.85em;
  color: var(--cinza-claro);
  margin-top: 4px;
}

/* Barra de pesquisa */
.contrib-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.contrib-search-bar input[type="search"] {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 250px;
  max-width: 350px;
  font-size: 0.9em;
}

.contrib-search-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--cor-base);
  box-shadow: 0 0 0 2px rgba(24, 108, 223, 0.15);
}

/* Indicador de status (bolinha colorida) */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.pendente {
  background: #f0ad4e;
}

.status-dot.validado {
  background: #28a745;
}

.status-dot.suspenso {
  background: #dc3545;
}

/* Ações em lote */
.contrib-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.contrib-actions .button {
  padding: 8px 20px;
  font-size: 0.9em;
}

.contrib-actions .btn-validar {
  background: #28a745;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.contrib-actions .btn-validar:hover {
  background: #218838;
}

.contrib-actions .btn-suspender {
  background: #dc3545;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.contrib-actions .btn-suspender:hover {
  background: #c82333;
}

/* Linha hover */
.organizador ul:not(.blue-titles):hover {
  background-color: #f0f4ff;
}

/* Nenhum resultado */
.no-results {
  text-align: center;
  padding: 30px;
  color: var(--cinza-claro);
  font-size: 0.95em;
  display: none;
}

/* ── Ícones de aviso ── */
.col-aviso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.aviso-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 3px;
  border-radius: 5px;
  transition: background 0.15s;
}
.aviso-icon:hover {
  background: rgba(24, 108, 223, 0.1);
}
.aviso-icon svg {
  width: 17px;
  height: 17px;
}
.aviso-icon .aviso-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  line-height: 1;
  border: 1.5px solid #fff;
}
.aviso-icon.dte-ok svg {
  color: #1565c0;
}
.aviso-icon.dte-alerta svg {
  color: #e53935;
}
.aviso-icon.req-ok svg {
  color: #2e7d32;
}
.aviso-icon.req-aberto svg {
  color: #f57c00;
}

/* CNPJ alinhado à esquerda */
.col-cnpj {
  justify-content: flex-start !important;
  text-align: left !important;
  font-family: "Anonymous Pro", monospace;
}

/* Fonte maior na tabela */
.organizador ul {
  font-size: 14px;
}

/* Email com ícones */
.col-email {
  display: flex;
  align-items: center;
  justify-content: flex-end !important;
  gap: 4px;
}

.email-actions {
  display: inline-flex;
  gap: 2px;
  margin-left: 4px;
}

.email-actions a,
.email-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition:
    background 0.15s,
    transform 0.1s;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.email-actions svg {
  width: 15px;
  height: 15px;
}

.email-actions a:hover,
.email-actions button:hover {
  background: rgba(24, 108, 223, 0.12);
  transform: scale(1.15);
}

.email-actions .icon-copy {
  color: #555;
}

.email-actions .icon-send {
  color: var(--cor-base);
}

/* Contato com WhatsApp */
.col-contato {
  justify-content: flex-end !important;
  text-align: right !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.whatsapp-link:hover {
  transform: scale(1.2);
}

.whatsapp-link svg {
  width: 18px;
  height: 18px;
}

/* Toast de feedback ao copiar */
.copy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85em;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
}
.req-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.req-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 22px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(24, 108, 223, 0.07);
  border-left: 4px solid #bbb;
  cursor: pointer;
  transition: transform 0.15s;
}
.req-stat-card:hover {
  transform: translateY(-2px);
}
.req-stat-card .num {
  font-size: 1.8em;
  font-weight: 700;
}
.req-stat-card .lbl {
  font-size: 0.78em;
  color: #757575;
  margin-top: 2px;
}
.req-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.req-filter input[type="search"] {
  padding: 7px 12px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 0.88em;
  min-width: 240px;
}
.badge-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: 600;
}
.col-assunto {
  flex: 2;
  justify-content: flex-start !important;
  text-align: left !important;
}
.col-protocolo {
  font-family: "Courier New", monospace;
  font-size: 0.82em;
}
.req-row:hover {
  background: #f0f5ff;
  cursor: pointer;
}
.anexo-badge {
  background: #e3f0ff;
  color: #1565c0;
  font-size: 0.72em;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 4px;
}
.req-grid {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.card-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24, 108, 223, 0.09);
  padding: 26px 28px;
  min-width: 300px;
  flex: 1;
}
.card-form h3 {
  font-size: 0.95em;
  color: var(--cor-base);
  margin-bottom: 16px;
}
.card-form label {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--cinza-escuro);
  margin: 10px 0 4px;
}
.card-form input[type="text"],
.card-form input[type="number"],
.card-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 0.88em;
}
.card-form textarea {
  height: 70px;
  resize: vertical;
}
.badge-ativo {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: 600;
}
.badge-inativo {
  background: #f5f5f5;
  color: #757575;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: 600;
}
.feedback-ok {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.feedback-erro {
  background: #ffebee;
  color: #c62828;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.btn-toggle-on {
  background: none;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-size: 0.82em;
  text-decoration: underline;
}
.btn-toggle-off {
  background: none;
  border: none;
  color: #2e7d32;
  cursor: pointer;
  font-size: 0.82em;
  text-decoration: underline;
}
.col-nome {
  flex: 2;
  justify-content: flex-start !important;
  text-align: left !important;
}
.col-desc {
  flex: 2;
  justify-content: flex-start !important;
  text-align: left !important;
  font-size: 0.82em;
  color: #757575;
}
.dte-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dte-form-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24, 108, 223, 0.09);
  padding: 28px 30px;
  min-width: 340px;
  flex: 1;
}
.dte-form-card h3 {
  margin-bottom: 18px;
  font-size: 1em;
  color: var(--cor-base);
}
.dte-form-card label {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--cinza-escuro);
  margin: 12px 0 4px;
}
.dte-form-card input[type="text"],
.dte-form-card input[type="date"],
.dte-form-card select,
.dte-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 0.9em;
}
.dte-form-card textarea {
  height: 120px;
  resize: vertical;
}
.dte-form-card .btn-enviar {
  margin-top: 16px;
  width: 100%;
}
.badge-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
}
.badge-1 {
  background: #e3f0ff;
  color: #1565c0;
}
.badge-2 {
  background: #fff8e1;
  color: #f57c00;
}
.badge-3 {
  background: #e8f5e9;
  color: #2e7d32;
}
.feedback-ok {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.feedback-erro {
  background: #ffebee;
  color: #c62828;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.col-assunto {
  flex: 2;
  text-align: left !important;
  justify-content: flex-start !important;
}
.detalhe-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24, 108, 223, 0.09);
  padding: 24px 28px;
}
.card h3 {
  font-size: 0.92em;
  color: var(--cor-base);
  margin-bottom: 16px;
  border-bottom: 1px solid #e8edf5;
  padding-bottom: 10px;
}
.info-linha {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88em;
}
.info-linha .rotulo {
  font-weight: 600;
  min-width: 120px;
  color: #555;
}
.descricao-box {
  background: #f9fafc;
  border: 1px solid #e8edf5;
  border-radius: 6px;
  padding: 14px;
  font-size: 0.9em;
  line-height: 1.6;
  white-space: pre-wrap;
}
.badge-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 0.82em;
  font-weight: 600;
}
.hist-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.87em;
}
.hist-item:last-child {
  border-bottom: none;
}
.hist-data {
  font-size: 0.78em;
  color: #9e9e9e;
  margin-bottom: 3px;
}
.hist-autor {
  color: #555;
}
.hist-obs {
  margin-top: 4px;
  color: #333;
}
.form-acao label {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  margin: 10px 0 4px;
}
.form-acao select,
.form-acao textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 0.88em;
}
.form-acao textarea {
  height: 80px;
  resize: vertical;
}
.btn-voltar {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.88em;
  color: var(--cor-base);
  text-decoration: none;
}
.btn-voltar:hover {
  text-decoration: underline;
}
.feedback-ok {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.anexo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f0f5ff;
  border-radius: 6px;
  color: var(--cor-base);
  text-decoration: none;
  font-size: 0.84em;
  margin: 3px 4px 3px 0;
}
.anexo-link:hover {
  background: #dce9ff;
}
#portal-contribuinte {
  max-width: 800px;
  min-width: 400px !important;
  width: 100%;
  box-sizing: border-box;
}

#portal-contribuinte div ul li {
  flex-direction: column;
  width: 100%;
  margin: 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#portal-contribuinte div a,
#portal-contribuinte label {
  font-size: 0.9em;
}

#portal-contribuinte h3 {
  text-align: center;
  color: var(--cinza-escuro);
}

#portal-contribuinte input,
#portal-contribuinte select {
  padding: 5px;
  box-sizing: border-box;
  max-width: 175px;
  min-width: 175px;
}

#portal-contribuinte .back {
  font-weight: 600;
}

.info-contribuinte {
  display: flex;
  flex-direction: column;
}

.info-contribuinte li {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.info-contribuinte input {
  padding: 5px;
  margin: 0 10px;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

#popup div {
  height: 90vh;
  background: white;
  width: 90%;
  max-width: 1000px;
  min-width: 400px;
  margin: 20px auto;
  overflow: auto;
  box-sizing: border-box;
  padding: 50px 20px 20px;
}

.bloco-texto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bloco-texto span {
  display: block;
  font-size: 6pt;
  width: 80%;
  text-align: left;
  margin: 5px auto;
  color: #0a1761;
}

.bloco-texto {
  text-align: center;
}

.bloco-texto p {
  font-size: 14px;
  color: var(--cinza-escuro);
  width: 80%;
  margin: 10px auto;
  text-align: justify;
}

.legenda li {
  margin: 0 5px;
  font-size: 12px;
}

.legenda li img {
  margin: 0px 2px;
}

/*-----------------------------COBRARBAN------------------------------*/
#graphdata {
  display: flex;
  justify-content: center;
  font-weight: 400;
}

#graphdata ul {
  display: flex;
  flex-direction: column;
}

#graphdata ul li {
  padding: 2px;
  margin: 5px;
}

.graphtitle li {
  text-align: right;
}

.table-lines {
  background: white;
}

.table-lines td {
  padding: 10px;
  font-size: 12px;
  font-weight: 300;
  color: black;
}

/*-----------------------------MODULO ESCOLAS------------------------------*/
#escolas ul li input,
#malhafina ul li input {
  max-width: 40px;
}

#escolas ul li select {
  max-width: 65px;
}

#escolas ul li input.button {
  max-width: 100px;
}

.dados-mestres select,
.dados-mestres input {
  margin: 0 0 0 10px;
}

.endereco {
  text-align: left !important;
  justify-content: flex-start !important;
  width: 20% !important;
}

/*-----------------------------FERRAMENTAS - BOLETIM ------------------------------*/
.ul-inputs li {
  padding: 15px 0 !important;
}

.ul-inputs input.button {
  padding: 10px 15px !important;
}

.ocordesc-input {
  justify-content: space-between !important;
  text-align: left !important;
  width: 50% !important;
}

.ocordesc {
  justify-content: flex-start !important;
  text-align: left !important;
  width: 80% !important;
}

.ocordesc-input input[type="text"] {
  width: 100%;
}

#dataalvo,
#conclusao,
#nomeusuario {
  max-width: 100px !important;
}

#boletim-detalhes ul li {
  width: 132.5px;
}

/*-------------------------- FINANCEIRO SAFETY ----------------------------------*/
#receita {
  margin: 0 auto;
}

#receita ul {
  display: flex;
  justify-content: space-between;
}

#receita ul .nome {
  font-weight: bold;
  color: var(--cor-base);
  width: calc(80% - 20px);
}

#receita ul li {
  justify-content: flex-start;
}

#receita ul .edit {
  justify-content: center;
}

#receita ul li:last-child {
  justify-content: flex-end;
  width: 20%;
}

/*--------------------------MALHA FINA ----------------------------*/
#razaosocial {
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100px;
  box-sizing: border-box;
  white-space: nowrap;
  justify-content: flex-start;
}

.malhafina li {
  width: 80px;
  max-width: 80px;
  min-width: 80px;
}

.malhafina li:nth-child(2),
.malhafina li:nth-child(3),
.malhafina li:nth-child(8) {
  width: 95px;
  max-width: 95px;
  min-width: 95px;
}

/*------------------------MAPA----------------------------*/

#mapa {
  width: 100%;
  padding: 0;
  margin: 0;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/*------------------------DARK MODE - FORMS/RELATORIOS----------------------------*/
[data-theme="dark"] .organizador ul:not(.blue-titles.space-b),
[data-theme="dark"] .lista-relatorio,
[data-theme="dark"] .newformulario,
[data-theme="dark"] .tabela_formulario,
[data-theme="dark"] .bloco,
[data-theme="dark"] .quadro,
[data-theme="dark"] .table-lines,
[data-theme="dark"] #atualizar-demanda ul,
[data-theme="dark"] #atualizar-contrato ul,
[data-theme="dark"] #popup div {
  background: var(--surface-color);
  color: var(--cinza-escuro);
}
[data-theme="dark"] .organizador ul:not(.blue-titles.space-b) li,
[data-theme="dark"] .lista-relatorio ul li,
[data-theme="dark"] .table-lines td,
[data-theme="dark"] #portal-contribuinte h3,
[data-theme="dark"] .bloco h3,
[data-theme="dark"] .bloco h4,
[data-theme="dark"] .bloco p,
[data-theme="dark"] .bloco span,
[data-theme="dark"] .numeropositivo {
  color: var(--cinza-escuro);
}

[data-theme="dark"] .lista-relatorio ul {
  border-top: solid 5px #0b1220;
}

[data-theme="dark"] #resumo-bairros > .blue-titles.space-b,
[data-theme="dark"] #resumo-cnaes > .blue-titles.space-b {
  background: transparent !important;
  border-bottom: 1px solid #ffffff;
}

[data-theme="dark"] .blue-titles.space-b,
[data-theme="dark"] .blue-titles.space-b li,
[data-theme="dark"] .blue-titles.space-b li a,
[data-theme="dark"] .blue-titles.space-b li a:visited {
  color: #4dc2f8 !important;
}

[data-theme="dark"] #resumo-bairros > ul:not(.blue-titles),
[data-theme="dark"] #resumo-cnaes > ul:not(.blue-titles) {
  background: var(--surface-color);
}

[data-theme="dark"] #receita ul .nome {
  color: #8bb8ff;
}

[data-theme="dark"] .numeronegativo {
  color: #ff8f8f !important;
}
