/* 
 * Custom Styles for Simple-DataTables 
 * Reusable across the entire application for data tables integration
 */

/* Estilo del input de búsqueda */
.dataTable-input {
    border: 1px solid #2b3553 !important;
    border-radius: 0.4285rem !important;
    color: #222a42 !important; /* Texto oscuro para visibilidad */
    background-color: #ffffff !important; /* Fondo blanco siempre */
    padding: 5px 10px !important;
    height: 31px !important;
    width: 100%;
    transition: all 0.3s;
}

.dataTable-input:focus {
    border-color: #1d8cf8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px rgba(29, 140, 248, 0.2) !important;
}

/* Contenedor del buscador para permitir el botón a la derecha */
.dataTable-search {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

/* Botón de limpiar filtro */
.btn-clear-search {
    margin-left: 10px; /* Separación del input */
    margin-right: 10px; /* Margen a la derecha solicitado */
    height: 31px !important; /* Ajustado para coincidir con el input btn-sm */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Estilos de tabla y paginación */
.dataTable-top {
    display: none !important;
}

.dataTable-bottom {
    padding: 15px 0 0 0;
}

.dataTable-info {
    margin: 0;
    color: #9A9A9A;
}

.dataTable-table>thead>tr>th {
    vertical-align: bottom;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dataTable-table th,
.dataTable-table th a {
    font-weight: 700;
    font-size: 14px;
    color: inherit;
}

/* Ajuste para headers no ordenables */
.dataTable-table th:not(:has(a)) {
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
}

.dataTable-table th a.dataTable-sorter {
    vertical-align: middle;
}