/* .roadbr {
  font-size: 45px;
  background: -webkit-linear-gradient( #1095C1, #1095C1CC, #596B78CC, #596B78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
} */


/* desabilida seleção de texto */
/* 
body {
  user-select: none;
}
*/
.center-title {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.fa-plus {
  padding-top: 2px;
}

.btn-list {
  width: 100%;
  margin-top: 5px;
  padding-top: 3px;
  padding-bottom: 3px;
  margin-bottom: 5px;
}

details > table {
  font-size: 14px;
}

/* Tabelas responsivas */
article table {
  width: 100%;
  table-layout: fixed;
  overflow-x: auto;
  display: table;
  border-collapse: collapse;
}

article table td,
article table th {
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--muted-border-color);
}

article table tbody tr:hover {
  background-color: rgba(128, 128, 128, 0.05);
}

article table td:first-child,
article table th:first-child {
  width: 45%;
  padding-left: 0.75rem;
}

article table td:nth-child(2),
article table th:nth-child(2) {
  width: 35%;
  text-align: right;
  font-weight: 500;
}

article table td:nth-child(3),
article table th:nth-child(3) {
  width: 20%;
  text-align: right;
  padding-right: 0.75rem;
}

article table tfoot td {
  font-weight: bold;
  border-top: 2px solid var(--muted-border-color);
  border-bottom: none;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

article {
  overflow-x: hidden;
}

.fa-trash-can {
  color: red;
}

.fa-toggle-off {
  color: gray;
}

.fa-toggle-on {
  color: green
}

.center {
  margin: auto;
  width: 100%;
}

.text-center {
  text-align: center;
}

.red {
  color: red;
}

.green {
  color: green;
}

.blue {
  color: blue;
}
.editar {
  max-width: 800px !important;
}

.nowrap {
  white-space: nowrap;
  overflow: hidden;
}

.menu {
  border-top: #374956;
  border: 20px;
  backdrop-filter: saturate(150%) blur(10px);
  position: fixed;
  bottom: 0;
  z-index: 1000;
}

.container {
  padding-bottom: 100px;
}
.login, .recuperar {
  max-width: 360px;
}

.cadastrar {
  max-width: 920px;
}

.btn-menu {
    padding-left: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 8px;
}

.fa-certificate {
  color: gold;
}

.dataTables_filter {
  width: 90% !important;
  margin-right: 6% !important;
}
/* 
.justify {
  text-align: justify;
} */

.btn-filtrar {
  margin-top: 33px;
}

#btn-consultar, #btn-novo {
  border-bottom-width: 0px;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  align-items: center;
  justify-content: center;
}

.main-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.medium {
  max-width: 400px;
  width: 100%;
}

.large {
  max-width: 1000px;
  width: 100%;
  /* text-align: justify;  */
}

footer {
  margin-top: auto !important;
  /* color: #fff; */
  /* padding: 10px 20px; */
}

/* @media (min-width: 700px) {
  .grid-relative {
    --grid-relative: grid; 
  }
} */

/* início carrusel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 300px; /* Ajuste o tamanho conforme necessário */
  margin: auto;
}
.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%; /* 100% * número de imagens */
}
.carousel-images img {
  width: 100%; /* Cada imagem ocupa 100% do espaço do carrossel */
  display: block; /* Evitar espaços indesejados */
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 9999; /* Para garantir que os botões estejam acima das imagens */
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
/* fim carousel */

.grid-inline {
  grid-column-gap: var(--pico-grid-column-gap);
  grid-row-gap: var(--pico-grid-row-gap);
  display: ruby;
  grid-template-columns: 1fr;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  /* font-size: 14px; */
  height: 50px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
  /* max-width: 400px; */
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 25px;
  margin-right: 12px;
  min-width: 25px;
  width: 25px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #001d35;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #001d35;
  opacity: 8%;
}


#liLogin {
  margin-top: auto;
}

/** fim carrossel **/

/* inicio loading */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* A sobreposição que embassa a página */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);  /* cor de fundo com 50% de opacidade */
  display: none;  /* Inicialmente escondido */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.progress-container {
  text-align: center;
  color: white;
}

/* progress {
  width: 200px;
  height: 20px;
} */

/* Texto "Salvando..." */
#loading-text {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}

/* fim loading */


h2>.fa-solid, h2>.fa-regular, h2>.fa-brands,
h3>.fa-solid, h3>.fa-regular, h3>.fa-brands {
  color: #1095C1;
    /* background-clip: border-box; */
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
}

.map-leaflet {
  border-radius: 20px;
}

article {
  border-radius: 20px;
}

.leaflet-control {
  display: none;
}

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}

/** MENU **/
/* Estilo base para o container do menu */
.menu-grid {
  display: grid;
  min-height: auto !important;
  gap: 16px; /* Espaçamento entre os itens */
  padding: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Colunas com largura igual */
}

.grid-split {
  display: grid;
  gap: 16px; /* Espaçamento entre os itens */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Colunas com largura igual */
}

/* Estilo para cada item do menu */
.btn-menu-show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px; /* Altura fixa para os quadrados */
  width: 100%; /* Largura automática para se ajustar ao grid */
  border: 1px solid; /* Borda para destacar os quadrados */
  border-radius: 8px; /* Bordas arredondadas */
  text-decoration: none; /* Remove sublinhado dos links */
  transition: background-color 0.3s ease; /* Efeito de transição suave */
  box-sizing: border-box; /* Garante que padding e borda não aumentem a largura */
}

/* Efeito ao passar o mouse */
.btn-menu-show:hover {
  background-color: #e0e0e0;
}

/* Container para o ícone */
.icon-container {
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  height: 60%; /* Ocupa a maior parte do espaço do botão */
  flex-grow: 1; /* Faz o ícone ocupar o espaço disponível */
}

/* Estilo para os ícones */
.btn-menu-show i {
  font-size: 1.5rem; /* Tamanho maior para os ícones */
  flex-shrink: 0; /* Impede que o ícone diminua de tamanho */
}

/* Estilo para o texto abaixo dos ícones */
.btn-menu-show span {
  font-size: 1rem; /* Tamanho do texto */
  margin-top: 3px; /* Espaçamento entre o ícone e o texto */
  white-space: nowrap; /* Impede que o texto quebre em várias linhas */
  overflow: hidden; /* Esconde o texto que ultrapassar */
  text-overflow: ellipsis; /* Adiciona "..." ao texto que não couber */
  max-width: 100%; /* Garante que o texto não ultrapasse a largura do botão */
}

/* Ajustes para telas menores (2 colunas) */
@media (max-width: 768px) {
  .menu-grid {
      grid-template-columns: repeat(2, minmax(120px, 1fr)); /* 2 colunas por linha */
  }
}

/* Ajustes para telas maiores (3 colunas ou mais) */
@media (min-width: 769px) {
  .menu-grid {
      grid-template-columns: repeat(3, minmax(150px, 1fr)); /* 3 colunas por linha */
  }
}

/* Ajustes para telas muito grandes (4 colunas) */
@media (min-width: 1200px) {
  .menu-grid {
      grid-template-columns: repeat(4, minmax(150px, 1fr)); /* 4 colunas por linha */
  }
}
/** FIM MENU **/

/* ========================================
   COMPONENTES REUTILIZÁVEIS - CARDS E LISTAS
   ======================================== */

/* Container principal de páginas */
.page-container {
  padding: 1rem 0;
}

/* Header de páginas com título e ação */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Grid de estatísticas/métricas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--card-background-color);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-color);
  text-transform: uppercase;
}

/* Cards genéricos */
.content-card {
  background: var(--card-background-color);
  border: 1px solid var(--card-border-color);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-focus) 0%, var(--card-background-color) 100%);
  border-bottom: 2px solid var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.card-header:hover {
  background: linear-gradient(135deg, var(--primary-focus) 0%, var(--primary-focus) 100%);
}

.card-icon {
  font-size: 2rem;
}

.card-info h3 {
  margin: 0;
  color: var(--primary);
}

.card-info p {
  margin: 0.25rem 0 0 0;
  color: var(--muted-color);
  font-size: 0.9rem;
}

/* Seções hierárquicas (ano/categoria) */
.section-container {
  border-left: 3px solid var(--secondary);
  margin: 0 1rem;
  padding-left: 1rem;
}

.section-header {
  padding: 1rem;
  background: var(--secondary-focus);
  border-radius: 6px;
  cursor: pointer;
  margin: 0.5rem 0;
  transition: all 0.2s;
}

.section-header:hover {
  background: var(--secondary);
  color: white;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-stats {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}

/* Subseções (mês/subcategoria) */
.subsection-container {
  margin: 0.5rem 0 0.5rem 1rem;
}

.subsection-header {
  padding: 0.75rem 1rem;
  background: var(--card-background-color);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.subsection-header:hover {
  background: var(--primary-focus);
  border-left-width: 5px;
}

.subsection-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-color);
}

/* Itens de lista individuais */
.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin: 0.25rem 1rem;
  background: var(--card-background-color);
  border: 1px solid var(--card-border-color);
  border-radius: 4px;
  align-items: center;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.list-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.item-date {
  font-weight: bold;
  color: var(--primary);
  min-width: 60px;
}

.item-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Badges informativos */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-focus);
  border-radius: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.info-badge.blue {
  background: #e3f2fd;
  color: #1976d2;
}

.info-badge.purple {
  background: #f3e5f5;
  color: #7b1fa2;
}

.info-badge.green {
  background: #e8f5e9;
  color: #388e3c;
}

.info-badge.orange {
  background: #fff3e0;
  color: #f57c00;
}

.info-badge.red {
  background: #ffebee;
  color: #c62828;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted-color);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Charts container */
#article_chart_distribuicao canvas,
#article_chart_evolucao canvas {
  max-width: 100%;
  height: auto !important;
}

#article_chart_distribuicao {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Indicadores de expansão para details */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.section-header::after,
.subsection-header::after {
  content: '▶';
  margin-left: 0.5rem;
  transition: transform 0.3s;
  display: inline-block;
}

details[open] > .section-header::after,
details[open] > .subsection-header::after {
  content: '▼';
  transform: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .list-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-stats,
  .subsection-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
