
/* ========================
   DataTables - Estilo Customizado (Fonte Ajustada)
   ======================== */

/* Container da tabela */
.table-container {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Cabeçalho da seção */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

/* Status */
.status.ativo {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.75rem;
}

.status.inativo {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Header + botão */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

/* Links dentro da tabela */
.table-container a {
    color: #2B246A;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-container a:hover {
    color: #1e096d;
    text-decoration: underline;
}

/* Botão adicionar */
.botao-add {
    display: inline-block; /* Importante para aplicar padding e outras propriedades de box */
    background-color: var(--primary-color);
    color: white;
    text-decoration: none; /* Remove o sublinhado */
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.botao-add:hover {
    background-color: var(--button-hover);
    box-shadow: 0 2px 6px rgba(30, 9, 109, 0.3);
    text-decoration: none; /* Garante que o hover também fique limpo */
    color: #fff; /* Garante que a cor do texto permaneça branca */
}


/* DataTables Wrapper */
.dataTables_wrapper {
    font-size: 0.82rem;
    color: #1e1e2f;
    margin-top: 0.5rem;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    margin: 1rem 0;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.88rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: #f5f7fc;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.82rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #2B246A;
    outline: none;
}

/* Paginação */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    font-size: 0.82rem;
    background: #f5f7fc;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2B246A !important;
    color: #FFF !important;
    border-color: #2B246A !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #FFFFFF !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: #1e096d !important;
    color: #FFF !important;
    border-color: #1e096d !important;
}

/* Tabela base */
table.dataTable {
    width: 100% !important;
    font-size: 0.82rem;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

table.dataTable thead th {
    background-color: #eef1f8;
    font-weight: 600;
    color: #333;
    font-size: 0.84rem;
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

table.dataTable tbody td {
    font-size: 0.8rem;
    padding: 8px 10px;
    background-color: white;
    border-bottom: 1px solid #eee;

}

table.dataTable tbody tr:last-child td {
    border-bottom: none;
}

table.dataTable tbody tr:hover {
    background-color: #f0f4ff;
    transition: background-color 0.2s ease;
}
