/* Estilos personalizados para DataTables para que coincida con Tailwind/Flowbite */
.dataTables_wrapper .dataTables_length select {
    padding-right: 2rem;
    padding-left: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-radius: 0.5rem;
    border-color: #cbd5e1;
    background-color: #f8fafc;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.dark .dataTables_wrapper .dataTables_length select {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.5rem;
    border-color: #cbd5e1;
    background-color: #f8fafc;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.dark .dataTables_wrapper .dataTables_filter input {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

/* Alineación en móvil */
@media (max-width: 640px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter input {
        margin-left: 0;
        margin-top: 0.25rem;
        width: 100%;
    }
}

/* Force table width to prevent centering when initialized in hidden tabs */
table.dataTable {
    width: 100% !important;
}