html, body, #root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6fa;
  color: #1f2937;
}

#imprimir {
    padding: 1rem 1rem;
  }
  
.app {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.sidebar {
  width: 300px;
  flex-shrink: 0; 
  background: #1e3a8a;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  color: white;
  box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  gap: 15px; 
  overflow-y: auto;
}


.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: #1d4ed8;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #f4f6fa;
  border-radius: 10px;
}

.logo-img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 10px auto;
  display: block;
  background-color: #ffffff;
  border-radius:4px;
}

.sidebar .logo {
  font-size: 40px; 
  font-weight: bold;
  text-align: center;
  margin: 0;
}

.botao-download {
  background: #2563eb;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s;
}

button.botao-download i {
    padding-right: 5px;
    font-size: 1.5rem;
}

.botao-download:hover {
  background: #1e40af;
}

.filtros h2 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 5px;
  margin-top: 10px;
  text-align: left;
}

.filtros label {
  display: block;
  font-size: 15px;
  margin-top: 15px;
}

.filtros input,
.filtros select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #ffffff;
  color: #000;
}

.filtros input::placeholder {
  color: #6b7280;
}

.conteudo {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.data-superior {
  text-align: right;
  font-size: 16px;
  color: #374151;
  margin-bottom: 20px;
}

.conteudo h2 {
  font-size: 40px;
  margin-bottom: 30px;
  color: #1e3a8a;
}

.cartao {
  background: #fff;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.cartao:hover {
  transform: translateY(-3px);
}

.cartao p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.titulo-ato {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 8px;
  text-decoration: none;
}

.titulo-ato:hover {
  text-decoration: underline;
}

.descricao {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 8px;
}

.link-leia-mais {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  display: inline-block;
  margin-top: 5px;
  transition: color 0.3s;
}

.link-leia-mais:hover {
  color: #1e40af;
  text-decoration: underline;
}

.rodape {
  background: #e0e7ff;
  padding: 25px;
  margin-top: auto;
  border-radius: 12px;
  font-size: 14px;
  color: #1e3a8a;
  text-align: center;
  line-height: 1.6;
}


@media (max-width: 900px) {
  .app {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: visible; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .logo-img {
      max-width: 300px;
  }

  .sidebar .logo {
      font-size: 24px;
  }

  .conteudo {
    padding: 20px;
    overflow-y: visible;
  }

  .conteudo h2 {
    font-size: 32px;
  }

  .data-superior {
      text-align: center;
      margin-bottom: 25px;
      font-size: 14px;
  }

.dta {
  width: 80%;
  padding: 30px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #ffffff;
  color: #000;
}

}


/* Container de paginação */
.navPag {
  width: 30%; /* Define uma largura para a div */
  margin-left: auto;
  margin-right: auto;
  /* Ou a forma abreviada */
  margin: 0 auto;
}
.pagination {
 /* display: inline-block;*/

  display: flex;
  padding-left: 0; /* Remove o padding padrão da lista */
  margin: 20px 0;
  border-radius: 4px;
  list-style-type: none;
}

/* Estilo básico dos itens de página (links) */
.page-item .page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px; /* Junta os itens */
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
  text-decoration: none; /* Remove o sublinhado */
}

/* Remove a borda do primeiro item */
.page-item:first-child .page-link {
  margin-left: 0;
  display: inline-block;
}

/* Remove a borda do último item */
.page-item:last-child .page-link {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Estilo para a página ativa */
.page-item.active .page-link {
  z-index: 1; /* Coloca o item ativo em cima dos outros */
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

/* Efeito de hover para os links não ativos */
.page-item .page-link:not(.active):hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Estilos adicionais para botões "anterior" e "próximo" */
.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dee2e6;
}

@media (max-width: 480px) {
    .conteudo h2 {
        font-size: 28px;
    }

    .cartao {
        padding: 15px;
    }

    .titulo-ato {
        font-size: 16px;
    }
}