/* ================================================================
 * tema-datatables.css — Re-skin NEUTRO de DataTables clasico (1.x).
 * Vista: Administracion/tbasicas/lista_jquery.php (popup "Listado de
 * instituciones"). Scoped a .dataTables_wrapper / table.dataTable.
 * !important: style_datatables.css se importa en la pagina DESPUES
 * de html_head. NO contiene colores propios (acento = var(--t-principal)).
 * ================================================================ */

.dataTables_wrapper{ color:var(--t-texto,#1f2d27) !important; }

/* Filtro y "Mostrar N" */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter{ margin:4px 0 8px !important; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
    border:1px solid var(--qm-filete) !important;
    border-radius:6px !important;
    padding:3px 7px !important;
    background:#fff !important;
    color:var(--t-texto,#1f2d27) !important;
    box-sizing:border-box !important;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus{
    box-shadow:var(--qm-anillo-foco) !important;
    outline:none !important;
}

/* Encabezados ordenables */
table.dataTable thead th,
table.dataTable thead td{
    background:var(--qm-superficie) !important;
    color:#334155 !important;
    border-bottom:1px solid var(--qm-filete) !important;
    font-weight:600 !important;
}
table.dataTable thead th.sorting:hover,
table.dataTable thead th.sorting_asc:hover,
table.dataTable thead th.sorting_desc:hover{
    background:var(--t-fondo, var(--qm-superficie-2)) !important;
}

/* Info de conteo */
.dataTables_wrapper .dataTables_info{ color:var(--qm-texto-2) !important; padding-top:6px !important; }

/* Paginacion (cubre .paginate_button de full_numbers y two_button) */
.dataTables_wrapper .dataTables_paginate{ padding-top:6px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate span .paginate_button{
    padding:3px 9px !important;
    margin:0 2px !important;
    border:1px solid var(--qm-filete) !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--t-texto,#1f2d27) !important;
    cursor:pointer !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    background:var(--t-fondo, var(--qm-superficie-2)) !important;
    border-color:var(--t-banda,#cfe3d6) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_active,
.dataTables_wrapper .dataTables_paginate .paginate_button.current{
    background:var(--t-principal,#4b5563) !important;
    border-color:var(--t-principal,#4b5563) !important;
    color:#fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_enabled_previous,
.dataTables_wrapper .dataTables_paginate .paginate_enabled_next{
    color:var(--t-principal,#4b5563) !important;
    cursor:pointer !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button_disabled,
.dataTables_wrapper .dataTables_paginate .paginate_disabled_previous,
.dataTables_wrapper .dataTables_paginate .paginate_disabled_next{
    opacity:.5 !important;
    cursor:default !important;
}
