.dark .dataTables_wrapper .dataTables_length label,
.dark .dataTables_wrapper .dataTables_filter label {
    color: #a1a1aa;
}
.dark .dataTables_wrapper .dataTables_length select,
.dark .dataTables_wrapper .dataTables_filter input {
    background-color: #27272a;
    border-color: #3f3f46;
    color: #e4e4e7;
}
.dark .dataTables_wrapper .dataTables_filter input::placeholder {
    color: #71717a;
}
.dark .dataTables_wrapper table.dataTable thead th {
    background-color: #27272a;
    color: #a1a1aa;
    border-bottom-color: #3f3f46;
}
.dark .dataTables_wrapper table.dataTable tbody td {
    color: #e4e4e7;
    border-bottom-color: #27272a;
}
.dark .dataTables_wrapper .dataTables_info {
    color: #a1a1aa;
}
.dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #a1a1aa !important;
}
.dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #3f3f46 !important;
    color: #e4e4e7 !important;
    border-color: #3f3f46 !important;
}
.dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
}
.dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #52525b !important;
}
.dark .dataTables_wrapper .dataTables_processing {
    color: #a1a1aa;
}

.dt-length,
.dt-info {
    margin-left: 1rem;
}

.dt-search,
.dt-paging {
    margin-right: 1rem;
}

div.dt-container .dt-paging .dt-paging-button.current, div.dt-container .dt-paging .dt-paging-button.current:hover{
    border-radius: 0.5rem;
}

div.dt-container .dt-paging .dt-paging-button:hover {
    border-radius: 0.5rem;
}

/* DataTables Responsive - Controles en columna en pantallas pequeñas */
@media (max-width: 768px) {
    .dt-layout-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .dt-layout-row .dt-layout-cell {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .dt-layout-row .dt-layout-cell > * {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .dt-search input {
        width: 100% !important;
        max-width: 300px !important;
    }
    
    .dt-length select {
        width: auto !important;
        min-width: 80px !important;
    }
    
    .dt-paging {
        display: flex !important;
        justify-content: center !important;
    }
    
    .dt-info {
        text-align: center !important;
        margin-left: 0 !important;
    }
    
    .dt-length,
    .dt-search,
    .dt-info,
    .dt-paging {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .dt-layout-row {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .dt-search input {
        max-width: 100% !important;
    }
}
