/* _____________________________________________________________________ RESET E FONTES _____________________________________________________________________ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

::-webkit-scrollbar {
  width: 0px;
}

/* _____________________________________________________________________ SIDEBAR E NAVEGAÇÃO DO PORTAL _____________________________________________________________________ */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  width: 100%;
  background: #229554;
  border-radius: 0 0 24px 24px;
}

.nav-title {
  flex: 1;
  text-align: center;
}

.nav-title h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  margin-left:120px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #955f22;
  position: sticky;
  width: 100%;
  top: 0;
  border-radius: 0 0 24px 24px;
  transition: opacity 0.3s ease;
  z-index: 999;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #229554;
  position: sticky;
  width: 100%;
  top: 0;
  border-radius: 0 0 24px 24px;
}

.logo {
  width: 250px;
  position: absolute;
  top: -4px;
  left: 2px;
  object-fit: cover;
}

.interacaoes {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #0000004e; 
  width: 50px; 
  height: 45px; 
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  margin: 5px;
  margin-right: 10px;
}

.button:hover {
  scale: 0.95;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.101);
}
.bi {
  color: #fff;
}

#transitionPrev,
#transitionPrev2,
#transitionNext2 {
  display: none;
}

#filtro i {
  font-size: 22px;
  color: white;
}

/* _____________________________________________________________________ ESTILOS DA TABELA _____________________________________________________________________ */

#tabela-container {
  background: white;
   border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
  overflow: hidden;
}

#tabela-dados {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 0.70rem;
  border-radius: 12px;
  overflow: hidden;

}

#tabela-dados thead th {
  background-color: #229554;
  color: white;
  padding: 14px 15px;
  text-align: left;
  font-weight: 500;
  font-size: 0.80rem;
  position: sticky;
  top: 0;
}

#tabela-dados tbody tr {
  transition: all 0.2s ease;
}

#tabela-dados tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

#tabela-dados tbody tr:hover {
  background-color: #e9f7ef;
  transform: translateX(2px);
}

#tabela-dados td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

#tabela-dados tbody tr:last-child td {
  border-bottom: none;
}

/* Estilos para os botões do DataTables */
.dt-buttons .dt-button {
  background-color: #229554 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  margin-right: 10px !important;
  transition: all 0.3s ease !important;
}

.dt-buttons .dt-button:hover {
  background-color: #1e8449 !important;
  transform: translateY(-1px);
}

/* Paginação */
.dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  margin: 0 3px !important;
  transition: all 0.3s ease !important;
}

.dataTables_paginate .paginate_button.current {
  background: #229554 !important;
  color: white !important;
  border: none !important;
}

.dataTables_paginate .paginate_button:hover {
  background: #e9f7ef !important;
  color: #229554 !important;
  border: none !important;
}

/* Campo de busca */
.dataTables_filter input {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  margin-bottom: 15px !important;
}

/* Responsividade */
@media (max-width: 768px) {
  #tabela-container {
    padding: 10px;
    margin: 10px;
  }
  
  #tabela-dados thead {
    display: none;
  }
  
  #tabela-dados tbody tr {
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  #tabela-dados tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
  }
  
  #tabela-dados tbody td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 15px;
    color: #229554;
  }
}

/* _____________________________________________________________________ CARDS _____________________________________________________________________ */

.cards-container {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

#cards-status {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    max-width: 90%;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.status-card {
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    border: 3px solid transparent; 
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.status-card-content {
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 3px solid; 
    border-radius: 8px;
    transition: all 0.3s ease;
}

.status-card-content h3,
.status-card-content p {
    margin: 0;
    transition: color 0.3s ease;
    color: #333
}

.status-card.active .status-card-content h3,
.status-card.active .status-card-content p {
    color: #fff !important;
}

.status-card-content h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-card-content p {
    margin: 10px 0 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.status-card-content.active {
    color: white !important;
}

.status-card-content.active h3,
.status-card-content.active p {
    color: white !important;
}

#cards-status::-webkit-scrollbar {
    height: 8px;
}

/* _____________________________________________________________________ FILTROS _____________________________________________________________________ */
.filtros-data {
  margin: 15px;
  position: relative;
  display: inline-block;
}

.btn-filtrar {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 15px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-filtrar:hover {
  background-color: #1474d4;
}

#range-datas {
    background: white;
    border-radius: 8px;
    margin-top: -14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 100;
    top: 0;
    left: 100%;
    margin-left: 10px;
    display: none;
    width: auto; 
    white-space: nowrap;
}

.input-data {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    width: 120px;
}

.btn-aplicar, .btn-limpar {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}

.btn-aplicar {
  background-color: #4CAF50;
  color: white;
}

.btn-limpar {
  background-color: #f44336;
  color: white;
}

#range-datas > * {
    display: inline-block;
    vertical-align: middle;
}