@charset "utf-8";
/* CSS Document */

.bg-background {
  background-image: url('/../assets/img/fundo.jpg');
  /* Substitua 'sua-imagem.jpg' pelo caminho da sua imagem */
  background-size: cover;
  /* Faz a imagem cobrir toda a área */
  background-position: center;
  /* Centraliza a imagem */
  background-repeat: no-repeat;
  /* Evita repetição */
  width: 100%;
  /* Ocupa 100% da largura */
  min-height: 100vh;
  /* Garante que a altura mínima seja 100% da viewport */
  display: flex;
  /* Permite centralizar conteúdo interno, opcional */
  align-items: center;
  /* Centraliza verticalmente o conteúdo, opcional */
  justify-content: center;
  /* Centraliza horizontalmente o conteúdo, opcional */
}

nav.navbar {
  text-align: center;
  background-color: #86921d !important;
  text-decoration: none !important;
  color: white !important;
}

/* Corrige a cor dos links do menu principal */
nav.navbar .nav-link {
  color: white !important;
  text-decoration: none !important;
}

nav.navbar .nav-link:hover {
  color: black !important;
  text-decoration: none !important;
}

/* Mantém a cor preta mesmo quando o link está ativo ou em foco */
nav.navbar .nav-link:focus,
nav.navbar .nav-link:active {
  color: white !important;
  text-decoration: none !important;
}

nav.navbar a:hover {
  text-decoration: none;
  color: black !important;
}

nav.navbar .dropdown-item:hover {
  background-color: #86921d;
  color: white !important;
}

.faixa_topo {
  background-color: #525a0a !important;
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
}

.faixa_topo ul.navbar-nav li.nav-item a.nav-link {
  background-color: #525a0a !important;
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
}

.faixa_topo .dropdown-item:hover {
  background-color: #86921d;
  color: black !important;
}

.rodape {
  background-color: #024b03;
  color: white;
  min-height: 200px;
}

button.abas.active {
  background-color: #525a0a !important;
  color: #ffffff !important;
  position: relative;
  transition: all 0.3s ease;
}

button.abas.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  /* ajusta a distância do sublinhado */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: #525a0a;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.bg_subcor {
  background-color: #86921d;
  color: white !important;
}

/* Força cor preta nas opções */
select.bg_subcor option {
  background-color: white !important;
  color: black !important;
}

/* Opção selecionada */
select.bg_subcor option:checked {
  background-color: #86921d !important;
  color: white !important;
}

.bg_subcor-input {
  background-color: #86921d;
  color: white !important;
  border: 1px solid #6d7a17;
}

.bg_subcor-input:focus {
  background-color: #86921d;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(134, 146, 29, 0.25);
}

.bg_subcor-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.logo-home {
  min-height: 500px;
  margin-top: 100px;
}

/* Só a tabela com esse ID terá header fixo */
#tabela-espelho {
  max-height: 60vh;
  /* altura do viewport que você quiser */
  overflow-y: auto;
  /* scroll vertical apenas neste wrapper */
}

#tabela-espelho thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fa;
  /* combine com .thead-light do Bootstrap */
}

/* opcional: melhora o encontro das bordas quando usa .table-bordered */
#tabela-espelho.table-bordered thead th,
#tabela-espelho .table-bordered thead th {
  box-shadow: 0 1px 0 #dee2e6 inset, 0 -1px 0 #dee2e6 inset;
}