/* Fonte principal: Roboto */
body, .content-wrapper, .main-header, .main-sidebar, .nav-link, .brand-link, .card, .btn {
  font-family: 'Nunito', sans-serif !important;
}

/* Cor de fundo geral mais clara */
.content-wrapper {
  background-color: #f8f9fc;
}

/* Títulos mais escuros como no SB Admin 2 */
h1, h2, h3, h4, h5, h6 {
  color: #4e73df;
  font-weight: 600;
}

/* Cards com borda arredondada e sombra suave */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58,59,69,.15);
  border: none;
}

/* Botões estilo SB Admin */
.btn-primary {
  background-color: #4e73df;
  border-color: #4e73df;
}

.btn-primary:hover {
  background-color: #2e59d9;
  border-color: #2653d4;
}

/* Navegação lateral com cor SB Admin 2 */
.main-sidebar {
  background-color:#3f404d;
}

.nav-sidebar .nav-link.active {
  background-color: #2e59d9;
  color: white !important;
}

.nav-sidebar .nav-link:hover {
  background-color: #224abe;
  color: white !important;
}

/* Navbar */
.main-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
  color: #5a5c69;
}

/* Rodapé com cor neutra */
.main-footer {
  background-color: #f8f9fc;
  border-top: 1px solid #e3e6f0;
  color: #858796;
}

.form-control {
  border-radius: 0.35rem;
  border: 1px solid #d1d3e2;
  font-size: 0.9rem;
  color: #6e707e;
}
input.form-control {
  background-color: #f8f9fc !important;
  color: #5a5c69;
}
input.form-control,
select.form-control,
textarea.form-control {
  background-color: #f8f9fc; 
  color: #5a5c69;
}
.form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

label {
  font-weight: 500;
  color: #5a5c69;
}
/*table*/
.table {
  color: #5a5c69;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.table th {
  background-color: #f8f9fc;
  color: #4e73df;
  font-weight: 700;
  border-bottom: 2px solid #e3e6f0;
}

.table td, .table th {
  border: 1px solid #e3e6f0;
  padding: 0.3rem;
  vertical-align: middle;
}
/* TABELAS DE LISTAGEM */
.table {
  width: 100%;
  font-family: 'Poppins', 'Inter', 'Roboto', sans-serif;
  font-size: 0.875rem; /* menor, mais compacto */
  color: #5a5c69; /* cor padrão do SB-Admin 2 */
  background-color: #fff;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

/* Células e cabeçalhos */
.table th,
.table td {
  padding: 0.4rem 0.5rem;
  vertical-align: middle;
  border: 1px solid #e3e6f0; /* borda suave */
}

/* Cabeçalho da tabela */
.table thead th {
  background-color: #f8f9fc; /* cinza claro SB-Admin */
  color: #4e73df; /* azul SB */
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Linhas alternadas (zebradas) */
.table tbody tr:nth-child(even) {
  background-color: #f9f9fc;
}

/* Hover */
.table tbody tr:hover {
  background-color: #eef1fa;
}

/* Remover bordas internas (opcional) */
.table-borderless td,
.table-borderless th {
  border: none;
}

/* Centralização em colunas específicas (se quiser) */
.table td.text-center,
.table th.text-center {
  text-align: center;
}

/* fim table*/
.nav-sidebar > .nav-item {
  margin-bottom: 0.25rem;
}

.nav-sidebar .nav-link {
  border-radius: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
}

.nav-sidebar .nav-link i {
  margin-right: 0.5rem;
}

.nav-sidebar .nav-link.active {
  background-color: #2e59d9;
}

.nav-sidebar .nav-link:hover {
  background-color: #224abe;
}

.nav-sidebar .nav-header {
  color:  #4e73df !important; /* Azul SB Admin 2 */
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}
.sidebar h6.sidebar-heading span {
  color: #ffffff !important;
  font-weight: bold;
} 
.btn-secondary {
  background-color: #858796;
  border-color: #858796;
}

.btn-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
}

.main-footer {
  background-color: #f8f9fc;
  color: #858796;
  font-size: 0.8rem;
  border-top: 1px solid #e3e6f0;
  padding: 1rem;
}
.table,
.table th,
.table td {
  border: none !important;
}
/* ====== WRAPPER PARA ROLAGEM ====== */
.tabela-frequencia-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
}

/* ====== ESTILO PADRÃO ====== */
table.tabela-frequencia {
    min-width: 1200px; /* impede esmagamento total */
}

table.tabela-frequencia th,
table.tabela-frequencia td {
    text-align: left !important;
    vertical-align: middle !important;
    font-size: 0.85rem !important;
    height: 34px !important;
    padding: 0.5em !important;
    line-height: 34px !important;
    white-space: nowrap !important; /* impede quebra de linha */
}

/* ====== PRESENÇA ====== */
table.tabela-frequencia td.freq-presenca {
    /*background-color: #d4edda !important;*/
    color: #000 !important;
    border: 1px solid #c3e6cb !important;
}

/* ====== FALTA ====== */
table.tabela-frequencia td.freq-falta {
    background-color: #f8d7da !important;
    color: #000 !important;
    border: 1px solid #f5c6cb !important;
}

/* ====== VAZIO ====== */
table.tabela-frequencia td.freq-vazio {
    background-color: #f2f2f2 !important;
    color: #666 !important;
    border: 1px solid #e0e0e0 !important;
}

/* ====== ALERTA ====== */
.alert-frequencia {
    background: #f8f9fc !important;
    border: 1px solid #e3e6f0 !important;
    padding: 14px 16px !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    color: #4e73df !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
