/* ==========================================================
   HelpDesk Pro — app.css
   Overrides y componentes propios sobre SB Admin 2 / Bootstrap 4
   Sin conflictos con Semantic UI (no se usa Semantic UI)
   ========================================================== */


/* ══════════════════════════════════════════════════════════
   1. AUTH — páginas de login y registro
   ══════════════════════════════════════════════════════════ */

.bg-login-image {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}
.bg-login-image::before {
    content: '\f590';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9rem;
    color: rgba(255,255,255,0.85);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}

.bg-register-image {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
    min-height: 350px;
    position: relative;
    overflow: hidden;
}
.bg-register-image::before {
    content: '\f234';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 8rem;
    color: rgba(255,255,255,0.85);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}


/* ══════════════════════════════════════════════════════════
   2. AVATARES
   ══════════════════════════════════════════════════════════ */

.avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.72rem;
    flex-shrink: 0;
    font-family: 'Nunito', sans-serif;
}

.avatar-circle-xl {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.6rem;
    font-family: 'Nunito', sans-serif;
}

.sidebar-footer-user {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: auto;
}

.sidebar-user-avatar {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 800;
    color: #fff; flex-shrink: 0;
}

.topbar-user-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #4e73df, #224abe);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800;
    color: #fff; font-family: 'Nunito', sans-serif;
}


/* ══════════════════════════════════════════════════════════
   3. SIDEBAR
   ══════════════════════════════════════════════════════════ */

.sidebar {
    display: flex;
    flex-direction: column;
}


/* ══════════════════════════════════════════════════════════
   4. BREADCRUMB
   ══════════════════════════════════════════════════════════ */

.breadcrumb {
    background-color: transparent;
    padding: 0; margin-bottom: 0;
    font-size: 0.85rem;
}


/* ══════════════════════════════════════════════════════════
   5. CHARTS
   ══════════════════════════════════════════════════════════ */

.chart-bar { position: relative; height: 280px; }
.chart-pie  { position: relative; height: 240px; }


/* ══════════════════════════════════════════════════════════
   6. BADGES Y BOTONES EXTRA
   ══════════════════════════════════════════════════════════ */

.badge + .badge { margin-left: 3px; }

/* Badge Crítica — animación pulsante */
.badge-danger.prio-pulse {
    animation: badgePulse 1.6s infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231,74,59,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(231,74,59,0); }
}

/* Botón extra pequeño */
.btn-xs {
    padding: 0.18rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 0.3rem;
}


/* ══════════════════════════════════════════════════════════
   7. TABLAS
   ══════════════════════════════════════════════════════════ */

.table-sm th, .table-sm td { font-size: 0.82rem; }
.table td a.font-weight-bold:hover { text-decoration: underline; }

/* Número de serie — fuente monoespaciada */
.text-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════════════════
   8. MODALES
   ══════════════════════════════════════════════════════════ */

/* Colores de cabecera */
.modal-header.bg-primary { background-color: #4e73df !important; }
.modal-header.bg-success { background-color: #1cc88a !important; }
.modal-header.bg-info    { background-color: #36b9cc !important; }
.modal-header.bg-warning { background-color: #f6c23e !important; }
.modal-header.bg-danger  { background-color: #e74a3b !important; }

.modal-header .close.text-white { opacity: 0.8; }
.modal-header .close.text-white:hover { opacity: 1; }

.modal-footer.bg-light {
    background-color: #f8f9fc !important;
    border-top: 1px solid #e3e6f0;
}

/* Animación de entrada */
.modal.fade .modal-dialog {
    transform: translateY(-16px) scale(0.98);
    transition: transform 0.2s ease-out;
}
.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Validación */
.modal .is-invalid { border-color: #e74a3b; }
.modal .invalid-feedback {
    display: none; color: #e74a3b;
    font-size: 0.8rem; margin-top: 0.25rem;
}
.modal .is-invalid ~ .invalid-feedback { display: block; }

/* Panel cobrado */
#panelCobrado {
    border-color: #1cc88a !important;
    background-color: #f0fdf8 !important;
}

/* Alertas en modal */
.alert.alert-sm { padding: 0.5rem 0.75rem; font-size: 0.82rem; }

/* Spinner */
.spinner-border-sm { width: 0.9rem; height: 0.9rem; border-width: 0.15em; }

/* Nota interna */
.bg-warning-soft {
    background-color: #fff9e6;
    border-bottom: 1px solid #fcefc7;
}

/* Border left nota interna */
.border-left-warning { border-left: 4px solid #f6c23e !important; }


/* ══════════════════════════════════════════════════════════
   9. REPORTES
   ══════════════════════════════════════════════════════════ */

.reporte-card { transition: transform 0.15s, box-shadow 0.15s; }
.reporte-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.12) !important;
}

.reporte-table tfoot td {
    border-top: 2px solid #dee2e6;
    background-color: #f8f9fc;
}

.opacity-50 { opacity: 0.4; }


/* ══════════════════════════════════════════════════════════
   10. SEMANTIC UI DROPDOWN — Integración con Bootstrap 4 / SB Admin 2
       Usando Fomantic-UI (fork mantenido de Semantic UI)
       Solo sobrescribe lo necesario para que encaje visualmente
   ══════════════════════════════════════════════════════════ */

/* Contenedor base — imita form-control de Bootstrap */
.ui.dropdown {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 400;
    line-height: 1.5;
    color: #6e707e !important;
    background-color: #fff !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 0.35rem !important;
    box-shadow: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    position: relative;
}

.ui.dropdown:focus,
.ui.active.dropdown,
.ui.dropdown.active {
    border-color: #bac8f3 !important;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25) !important;
    outline: 0 !important;
}

/* Texto seleccionado */
.ui.dropdown > .text {
    display: block;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1.2rem;
    pointer-events: none;
}

.ui.dropdown > .default.text,
.ui.dropdown .default.text {
    color: #adb5bd !important;
}

/* Asegurar que todo el dropdown sea clickeable */
.ui.dropdown > .text,
.ui.dropdown > .default.text {
    pointer-events: none !important;
}

.ui.dropdown > i.dropdown.icon {
    pointer-events: none !important;
}

/* Ícono flecha */
.ui.dropdown > .dropdown.icon {
    position: absolute !important;
    right: 0.65rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    color: #b7b9cc !important;
    font-size: 0.85rem !important;
    pointer-events: none;
    transition: transform 0.2s;
}

.ui.active.dropdown > .dropdown.icon,
.ui.dropdown.active > .dropdown.icon {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Campo de búsqueda — cubre TODO el área del dropdown */
.ui.search.dropdown > input.search {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #6e707e !important;
    font-size: 0.85rem !important;
    font-family: 'Nunito', sans-serif !important;
    padding: 0.45rem 2.2rem 0.45rem 0.85rem !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 2;
}

/* MENÚ DESPLEGABLE */
.ui.dropdown .menu {
    border: 1px solid #bac8f3 !important;
    border-radius: 0.35rem !important;
    box-shadow: 0 0.3rem 1.2rem rgba(58, 59, 69, 0.18) !important;
    background: #fff !important;
    z-index: 1060 !important;
    margin-top: 2px !important;
    padding: 0.25rem 0 !important;
    overflow: hidden;
    animation: semFadeIn 0.1s ease;
}

@keyframes semFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Campo búsqueda dentro del menú */
.ui.search.dropdown .menu > .search-input-wrap,
.ui.dropdown .menu > .ui.icon.input {
    padding: 0.4rem 0.5rem;
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Ítems del menú */
.ui.dropdown .menu > .item {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.85rem !important;
    font-family: 'Nunito', sans-serif !important;
    color: #5a5c69 !important;
    cursor: pointer !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* sin !important — permite que Fomantic oculte .filtered */
    transition: background 0.08s, color 0.08s;
    line-height: 1.5;
}

/* Respetar el filtrado de Fomantic UI */
.ui.dropdown .menu > .item.filtered {
    display: none !important;
}

.ui.dropdown .menu > .item:hover {
    background: #eaecf4 !important;
    color: #4e73df !important;
}

.ui.dropdown .menu > .item.selected,
.ui.dropdown .menu > .item.active {
    background: #4e73df !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Descripción secundaria en ítem */
.ui.dropdown .menu > .item > .description {
    font-size: 0.75rem !important;
    color: #adb5bd !important;
    margin-left: 0.5rem;
}

.ui.dropdown .menu > .item.selected .description,
.ui.dropdown .menu > .item.active .description {
    color: rgba(255,255,255,0.7) !important;
}

/* Mensaje "no results" */
.ui.dropdown .menu > .message {
    padding: 0.55rem 0.85rem !important;
    color: #adb5bd !important;
    font-style: italic !important;
    font-size: 0.82rem !important;
}

/* Scrollbar en menú largo */
.ui.dropdown .menu {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
}
.ui.dropdown .menu::-webkit-scrollbar { width: 5px; }
.ui.dropdown .menu::-webkit-scrollbar-track { background: transparent; }
.ui.dropdown .menu::-webkit-scrollbar-thumb { background: #d1d3e2; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   11. FILTROS COMPACTOS — una sola fila en tickets/index
   ══════════════════════════════════════════════════════════ */

.filtros-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

.col-filtro-buscar { flex: 0 0 210px; min-width: 0; }
.col-filtro-sm     { flex: 0 0 116px; min-width: 0; }
.col-filtro-md     { flex: 0 0 140px; min-width: 0; }
.col-filtro-fecha  { flex: 0 0 128px; min-width: 0; }
.col-filtro-btns   { flex-shrink: 0; }

/* Controles extra pequeños en la fila de filtros */
.form-control-xs {
    height: 28px !important;
    padding: 0.18rem 0.5rem !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    border-radius: 0.3rem !important;
}

.btn-xs-filter {
    height: 28px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
    line-height: 28px;
    border-radius: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* hd-dropdown adaptado al tamaño xs de filtros */
.filtros-row .hd-dropdown {
    height: 28px !important;
    min-height: 28px !important;
}
.filtros-row .hd-dd-input {
    padding: 0 0.35rem 0 0.5rem !important;
    font-size: 0.78rem !important;
    height: 26px !important;
    line-height: 26px !important;
}
.filtros-row .hd-dd-arrow {
    padding: 0 0.4rem !important;
    font-size: 0.5rem !important;
}


/* ══════════════════════════════════════════════════════════
   12. FOOTER
   ══════════════════════════════════════════════════════════ */

.sticky-footer { padding: 1rem 0; }


/* ══════════════════════════════════════════════════════════
   13. RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 576px) {
    .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    .card-body       { padding: 1rem; }
    .filtros-row     { flex-wrap: wrap; }
    .col-filtro-buscar,
    .col-filtro-sm,
    .col-filtro-md,
    .col-filtro-fecha { flex: 1 1 calc(50% - 6px); }
}


/* ══════════════════════════════════════════════════════════
   14. PRINT — Estilos de impresión
   ══════════════════════════════════════════════════════════ */

/* En pantalla: ocultar tabla de impresión */
.print-only   { display: none !important; }
.print-header { display: none !important; }

@media print {

    /* ── Ocultar elementos de navegación y UI ── */
    .no-print,
    .sidebar, .topbar, .sticky-footer,
    .scroll-to-top, .navbar, .breadcrumb,
    .btn, .alert, .card-header,
    .hd-dropdown, .hd-dd-menu,
    #accordionSidebar, #content-wrapper > footer { display: none !important; }

    /* ── Layout ── */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body              { font-family: 'Nunito', Arial, sans-serif; font-size: 11pt; color: #000; background: #fff; }
    #wrapper          { display: block !important; }
    #content-wrapper  { margin-left: 0 !important; display: block !important; }
    .container-fluid  { padding: 0 !important; max-width: 100% !important; }
    .card             { box-shadow: none !important; border: none !important; page-break-inside: avoid; }
    .card-body        { padding: 0 !important; }
    h1.h3             { font-size: 13pt !important; }

    /* ── Mostrar encabezado de impresión ── */
    .print-header  { display: block !important; margin-bottom: 18pt; }
    .print-only    { display: block !important; }

    /* ── Encabezado de página impresa ── */
    .print-header-logo {
        display: flex;
        align-items: center;
        gap: 8pt;
        font-size: 10pt;
        color: #555;
        margin-bottom: 6pt;
    }
    .print-header-logo i { font-size: 14pt; color: #4e73df; }
    .print-header-logo span { font-weight: 700; letter-spacing: 0.02em; }

    .print-header-cliente {
        font-size: 18pt;
        font-weight: 800;
        color: #222;
        margin: 4pt 0 2pt;
        line-height: 1.2;
    }

    .print-header-sub {
        font-size: 10pt;
        color: #555;
        margin: 0 0 2pt;
    }

    .print-header-rango {
        font-size: 9pt;
        color: #777;
        margin: 0 0 2pt;
    }

    .print-header-fecha {
        font-size: 8pt;
        color: #999;
        margin: 0;
    }

    .print-divider {
        border: none;
        border-top: 2px solid #4e73df;
        margin: 8pt 0 12pt;
    }

    /* ── Tabla de impresión ── */
    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
        page-break-inside: auto;
    }

    .print-table tr { page-break-inside: avoid; }

    .print-th {
        background-color: #4e73df !important;
        color: #fff !important;
        font-weight: 700;
        padding: 6pt 8pt;
        border: 1px solid #3a5fc8;
        font-size: 9pt;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .print-td {
        padding: 5pt 8pt;
        border: 1px solid #dee2e6;
        font-size: 10pt;
        color: #222;
        vertical-align: middle;
    }

    .print-td-nombre { font-weight: 700; }
    .print-bold      { font-weight: 700; }

    /* Filas alternas */
    .print-table tbody tr:nth-child(even) .print-td {
        background-color: #f8f9fc !important;
    }

    /* Columna cobrados — verde */
    .print-cobrado.print-th  { background-color: #1cc88a !important; border-color: #17a673 !important; }
    .print-cobrado.print-td  { color: #5a5c69; }

    /* Columna sin cobrar — rojo */
    .print-sincobrar.print-th { background-color: #e74a3b !important; border-color: #c9302c !important; }
    .print-sincobrar.print-td { color: #721c24 !important; }

    /* Celda cobrado: Sí (verde) / No (rojo) */
    .print-cobrado-si {
        color: #155724 !important;
        font-weight: 700;
        background-color: #d4edda !important;
    }
    .print-cobrado-no {
        color: #721c24 !important;
        font-weight: 700;
        background-color: #f8d7da !important;
    }

    /* Fuente monoespaciada para número de serie */
    .print-monospace {
        font-family: 'Courier New', Courier, monospace;
        font-size: 9pt;
        letter-spacing: 0.02em;
    }

    /* Pie de tabla */
    .print-tfoot .print-td {
        background-color: #eaecf4 !important;
        border-top: 2px solid #4e73df;
        font-size: 10pt;
    }

    /* ── Tabla de tickets: landscape + anchos ajustados ── */
    .print-table-tickets {
        font-size: 8.5pt !important;
    }

    /* Orientación horizontal para el reporte de tickets */
    @page { size: landscape; margin: 12mm 10mm; }

    /* Anchos de columna reporte tickets */
    .pth-folio  { width: 68pt; }
    .pth-titulo { width: auto; }   /* ocupa el espacio restante */
    .pth-serie  { width: 80pt; }
    .pth-nombre { width: 90pt; }
    .pth-cat    { width: 72pt; }
    .pth-estado { width: 58pt; }
    .pth-fecha  { width: 52pt; }
    .pth-cobrado{ width: 44pt; }

    /* Encabezados de columna más compactos en tabla tickets */
    .print-table-tickets .print-th {
        font-size: 7.5pt !important;
        padding: 4pt 5pt !important;
    }
    .print-table-tickets .print-td {
        font-size: 8pt !important;
        padding: 4pt 5pt !important;
    }


    /* Alineación texto */
    .text-center { text-align: center !important; }
    .text-left   { text-align: left !important; }
}

/* ══════════════════════════════════════════════════════════
   15. LOGO — Imágenes del logo en distintos contextos
   ══════════════════════════════════════════════════════════ */

/* Sidebar: logo con fondo transparente sobre sidebar oscuro */
.sidebar-logo-img {
    max-width: 158px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 4px 0;
}

/* Login / Registro: logo sobre fondo blanco — sin filtro */
.login-logo-img {
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Reportes impresos: logo en encabezado de página */
.print-logo-img {
    max-height: 36pt;
    max-width: 160pt;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 4pt;
}

/* ══════════════════════════════════════════════════════════
   16. METAS — Panel de metas de agentes
   ══════════════════════════════════════════════════════════ */

/* Badge meta superada — destello dorado */
.badge-superado {
    box-shadow: 0 0 0 3px rgba(246, 194, 62, 0.4);
    animation: badgeGold 1.8s infinite;
}

@keyframes badgeGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246,194,62,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(246,194,62,0); }
}

/* ══════════════════════════════════════════════════════════
   17. DATATABLES — Integración con SB Admin 2 / Bootstrap 4
   ══════════════════════════════════════════════════════════ */

/* ── Íconos de ordenamiento: solo uno, sin interferencia de FA ── */
table.dataTable thead th,
table.dataTable thead td {
    padding-right: 30px !important;
    position: relative;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after,
table.dataTable thead .sorting_asc_disabled::after,
table.dataTable thead .sorting_desc_disabled::after {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    opacity: 0.4;
}

table.dataTable thead .sorting::after      { content: "\f0dc"; }   /* fa-sort */
table.dataTable thead .sorting_asc::after  { content: "\f0de"; opacity: 0.9; color: #4e73df; } /* fa-sort-up */
table.dataTable thead .sorting_desc::after { content: "\f0dd"; opacity: 0.9; color: #4e73df; } /* fa-sort-down */

/* Ocultar el ::before que genera el doble ícono */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_asc_disabled::before,
table.dataTable thead .sorting_desc_disabled::before {
    display: none !important;
    content: none !important;
}

/* ── Barra superior ── */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #6e707e;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Select de cantidad */
.dataTables_wrapper .dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    height: 30px !important;
    padding: 0.2rem 1.8rem 0.2rem 0.5rem !important;
    font-size: 0.82rem !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 0.3rem !important;
    background-color: #fff !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
    box-shadow: none !important;
    /* quitar cualquier override del hd-dropdown */
    background-image: none !important;
}

/* Input de búsqueda */
.dataTables_wrapper .dataTables_filter input {
    display: inline-block !important;
    width: 200px !important;
    height: 30px !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.82rem !important;
    border: 1px solid #d1d3e2 !important;
    border-radius: 0.3rem !important;
    background-color: #fff !important;
    box-shadow: none !important;
    outline: none;
    /* No usar hd-dropdown ni Semantic */
    -webkit-appearance: auto !important;
    appearance: auto !important;
    transition: border-color 0.15s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #bac8f3 !important;
    box-shadow: 0 0 0 0.15rem rgba(78,115,223,0.25) !important;
}

/* ── Info ── */
.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: #858796;
    padding-top: 0.5rem;
}

/* ── Paginación ── */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.4rem;
}

/* Quitar el borde del grupo Bootstrap que genera el doble borde */
.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* Cada botón: usar Bootstrap .page-link pero sin el borde del grupo */
.dataTables_wrapper .dataTables_paginate .page-item .page-link {
    padding: 4px 10px;
    font-size: 0.82rem;
    line-height: 1.5;
    border: 1px solid #d1d3e2 !important;
    border-radius: 0.3rem !important;
    color: #4e73df;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none !important;
    outline: none;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.dataTables_wrapper .dataTables_paginate .page-item .page-link:hover {
    background-color: #eaecf4;
    border-color: #bac8f3 !important;
    color: #224abe;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df !important;
    color: #fff;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background-color: #f8f9fc;
    border-color: #e3e6f0 !important;
    color: #b7b9cc;
    cursor: default;
    pointer-events: none;
}

/* ── Fix: ddClienteTicket nunca debe verse deshabilitado ── */
#ddClienteTicket,
#ddClienteTicket.disabled {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background-color: #fff !important;
    color: #6e707e !important;
}
