/*
    Created on : 13/11/2014, 06:12:34 PM
    Author     : Miguel
*/

:root {
    /* Colores Bootstrap 5 estándar */
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-active: #0a58ca;
    --primary-light: rgba(13, 110, 253, 0.1);

    --secondary: #6c757d;
    --secondary-light: rgba(108, 117, 125, 0.1);

    --success: #198754;
    --success-bg: #d1e7dd;

    --warning: #ffc107;
    --warning-bg: #fff3cd;

    --danger: #dc3545;
    --danger-bg: #f8d7da;

    --info: #0dcaf0;
    --info-bg: #cff4fc;

    --bg-light: #f8f9fa;
    --bg-alternative: #ffffff;

    --border-color: #dee2e6;
    --border-input: #ced4da;

    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-primary: rgba(13, 110, 253, 0.25);

    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* ---------------------------------------------------------------------------------------------- */
/* cambios en bootstrap */
/* ---------------------------------------------------------------------------------------------- */
body {
    font-size: 0.875rem;
}

hr {
    margin-top: 8px;
    margin-bottom: 8px;
}

a:hover,
a:focus {
    color: #23527c;
    text-decoration: none;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:active,
.btn-primary:focus {
    background-color: var(--primary-active);
    border-color: var(--primary-active);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem var(--shadow-primary);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.btn-success {
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.btn-danger {
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-warning {
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.btn-info {
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.btn-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

.btn-light {
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 249, 250, 0.3);
}

.btn-light:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
}

.btn-dark {
    transition: all 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.3);
}

.btn-dark:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

/* Botones outline */
.btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem var(--shadow-primary);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.btn-outline-success {
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-outline-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.btn-outline-danger {
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-outline-warning {
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.btn-outline-info {
    transition: all 0.3s ease;
}

.btn-outline-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.btn-outline-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

.btn-outline-light {
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 249, 250, 0.3);
}

.btn-outline-light:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
}

.btn-outline-dark {
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.3);
}

.btn-outline-dark:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}

/* ---------------------------------------------------------------------------------------------- */
/* cambios en table */
/* ---------------------------------------------------------------------------------------------- */
table>thead.table-gradient>tr>th {
    padding: 0.45rem 0.6rem;
    background: linear-gradient(180deg, #6d8fb6 0%, #5f7fa5 60%, #3F74B0 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: .3px;
    font-size: 0.8rem;
    border: 0;
    text-align: center;
    vertical-align: middle;
}

table> :not(:first-child) {
    border-top: 0.064rem solid black !important;
}

/* ============================================
   RESALTADO DE FILA SELECCIONADA
   ============================================ */

/* Regla base: aplica a todas las filas seleccionadas */
table tbody tr.selected > * {
    background-color: #ffe69c !important;
    --bs-table-bg-type: #ffe69c !important;
    --bs-table-bg-state: #ffe69c !important;
    color: inherit !important;
}

/* Sobrescribir variables CSS de Bootstrap para tablas striped */
table.table-striped tbody tr.selected > * {
    --bs-table-bg-type: #ffe69c !important;
}

/* Sobrescribir variables CSS de Bootstrap para tablas hover */
table.table-hover tbody tr.selected:hover > * {
    --bs-table-bg-state: #ffe69c !important;
}

table tr.highlight-row {
    background-color: #ffe69c !important;
    animation: rowFlash 0.6s ease-out;
}

@keyframes rowFlash {
    0% {
        background-color: #ffd34d;
    }

    100% {
        background-color: #ffe69c;
    }
}

/* ---------------------------------------------------------------------------------------------- */
/* Navbar principal personalizada (Bootstrap 5) */
/* ---------------------------------------------------------------------------------------------- */
.navbar-main {
    background: linear-gradient(90deg, #3F74B0 0%, #2e5a8b 50%, #3F74B0 100%);
    color: #e6eef5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --bs-navbar-padding-y: .4rem;
}

.navbar-main.sticky-top {
    z-index: 1030;
}

.navbar-main .navbar-brand {
    color: #e6eef5;
    font-weight: 600;
    letter-spacing: .3px;
}

.navbar-main .navbar-brand:hover,
.navbar-main .navbar-brand:focus {
    color: #e6eef5;
}

.navbar-main .navbar-nav .nav-link {
    color: #e6eef5;
    font-size: .875rem;
    padding: .45rem .85rem;
    transition: color .15s, background-color .15s;
}

.navbar-main .navbar-nav .nav-link:hover,
.navbar-main .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-main .navbar-nav .nav-link.active,
.navbar-main .navbar-nav .show>.nav-link {
    color: #e6eef5;
    background: rgba(255, 255, 255, .18);
    border-radius: .25rem;
    font-weight: 600;
}

.navbar-main .dropdown-menu {
    background: #2e5a8b !important;
    border: 1px solid #2e5a8b;
    padding: .4rem 0;
    font-size: .8rem;
    opacity: 1 !important;
}

.navbar-main .dropdown-menu .dropdown-item {
    color: #e6eef5;
    padding: .4rem 1rem;
}

.navbar-main .dropdown-menu .dropdown-item:hover,
.navbar-main .dropdown-menu .dropdown-item:focus {
    color: #e6eef5;
    background: #22538b;
}

.navbar-main .dropdown-divider {
    border-color: #436faa;
    margin: .4rem 0;
}

.navbar-main .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: .25rem .5rem;
}

.navbar-main .navbar-toggler:focus {
    box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .3);
}

.navbar-main .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,0.75)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3e%3c/svg%3e");
}

/* Menú usuario alineado a la derecha */
.navbar-main .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Mejor contraste al focalizar con teclado */
.navbar-main .nav-link:focus-visible,
.navbar-main .dropdown-item:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Responsive ajuste en colapso */
@media (max-width: 991.98px) {
    .navbar-main .navbar-nav .nav-link {
        padding: .5rem .9rem;
    }

    .navbar-main .dropdown-menu {
        background: #094085 !important;
        border: 1px solid #073269;
        box-shadow: none;
        opacity: 1 !important;
    }
}

/* ---------------------------------------------------------------------------------------------- */
/* DataTables (Bootstrap 5) */
/* ---------------------------------------------------------------------------------------------- */
table.dataTable thead>tr>th {
    padding: 0.45rem 0.6rem;
    background: linear-gradient(180deg, #6d8fb6 0%, #5f7fa5 60%, #3F74B0 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: .3px;
    font-size: 0.8rem;
    border: 0;
    vertical-align: middle;
}

/* Orden (iconos inline SVG) */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

table.dataTable thead .sorting {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='10'><path fill='%23e2e8ef' d='M4 0l4 4H0zM4 10L0 6h8z'/></svg>");
}

table.dataTable thead .sorting_asc {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6'><path fill='%23ffffff' d='M4 0l4 4H0z'/></svg>");
}

table.dataTable thead .sorting_desc {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6'><path fill='%23ffffff' d='M4 6L0 0h8z'/></svg>");
}

/* Celdas (table-sm) */
table.dataTable.table-sm tbody>tr>td {
    font-size: 0.875rem;
    padding: 0.306rem 0.5rem;
    vertical-align: middle;
}

/* Responsive child rows */
table.dataTable.table-sm>tbody>tr.child ul.dtr-details>li {
    padding: 0.25rem 0.4rem;
    font-size: 0.79rem;
}

/* Fila seleccionada unificada */
table.dataTable tbody tr.selected,
table.dataTable tbody tr.selected>td,
table.dataTable tbody tr.selected:hover>td {
    background-color: #ffe69c !important;
    color: #000 !important;
    box-shadow: none !important;
}

table.dataTable tbody tr.selected a,
table.dataTable tbody tr.selected i.bi {
    color: #646464 !important;
}

/* Menú ⋮ acciones — colores semánticos, hover sin resalte doble en icono */
table.dataTable tbody tr.selected .dropdown-menu .dropdown-item > i.bi {
    color: inherit !important;
}

table.dataTable tbody tr.selected .dropdown .btn-outline-secondary.dropdown-toggle:hover,
table.dataTable tbody tr.selected .dropdown .btn-outline-secondary.dropdown-toggle:focus,
table.dataTable tbody tr.selected .dropdown .btn-outline-secondary.dropdown-toggle.show {
    color: #fff;
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

table.dataTable tbody tr.selected .dropdown .btn-outline-secondary.dropdown-toggle:hover > i.bi,
table.dataTable tbody tr.selected .dropdown .btn-outline-secondary.dropdown-toggle:focus > i.bi,
table.dataTable tbody tr.selected .dropdown .btn-outline-secondary.dropdown-toggle.show > i.bi {
    color: #fff !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info-emphasis"] > i.bi {
    color: var(--bs-info-text-emphasis) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-dark"] > i.bi {
    color: var(--bs-emphasis-color) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-primary"] > i.bi {
    color: var(--bs-primary) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-success"] > i.bi {
    color: var(--bs-success) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-warning-emphasis"] > i.bi {
    color: var(--bs-warning-text-emphasis) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-secondary"] > i.bi {
    color: var(--bs-secondary) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info"]:not([class*="text-info-emphasis"]) > i.bi {
    color: var(--bs-info) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-danger"] > i.bi {
    color: var(--bs-danger) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item.text-acc-print > i.bi {
    color: #6f42c1 !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item.text-acc-print {
    color: #6f42c1 !important;
}

/* Texto base con color semántico (no solo el icono) */
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info-emphasis"] {
    color: var(--bs-info-text-emphasis) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-dark"] {
    color: var(--bs-emphasis-color) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-primary"] {
    color: var(--bs-primary) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-success"] {
    color: var(--bs-success) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-warning-emphasis"] {
    color: var(--bs-warning-text-emphasis) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-secondary"] {
    color: var(--bs-secondary) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info"]:not([class*="text-info-emphasis"]) {
    color: var(--bs-info) !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-danger"] {
    color: var(--bs-danger) !important;
}

/* Filtro/opción activa: mismo aspecto semántico que hover (sin azul sólido de Bootstrap) */
.dropdown-menu.dt-menu-acciones .dropdown-item.active {
    background-color: transparent;
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info-emphasis"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info-emphasis"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info-emphasis"]:focus {
    color: var(--bs-info-text-emphasis) !important;
    background-color: rgba(var(--bs-info-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-dark"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-dark"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-dark"]:focus {
    color: var(--bs-emphasis-color) !important;
    background-color: rgba(var(--bs-dark-rgb), 0.08);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-primary"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-primary"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-primary"]:focus {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-success"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-success"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-success"]:focus {
    color: var(--bs-success) !important;
    background-color: rgba(var(--bs-success-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-warning-emphasis"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-warning-emphasis"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-warning-emphasis"]:focus {
    color: var(--bs-warning-text-emphasis) !important;
    background-color: rgba(var(--bs-warning-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-secondary"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-secondary"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-secondary"]:focus {
    color: var(--bs-secondary) !important;
    background-color: rgba(var(--bs-secondary-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info"]:not([class*="text-info-emphasis"]),
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info"]:not([class*="text-info-emphasis"]):hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info"]:not([class*="text-info-emphasis"]):focus {
    color: var(--bs-info) !important;
    background-color: rgba(var(--bs-info-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-danger"],
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-danger"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-danger"]:focus {
    color: var(--bs-danger) !important;
    background-color: rgba(var(--bs-danger-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active.text-acc-print,
.dropdown-menu.dt-menu-acciones .dropdown-item.active.text-acc-print:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.active.text-acc-print:focus {
    color: #6f42c1 !important;
    background-color: rgba(111, 66, 193, 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info-emphasis"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-dark"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-primary"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-success"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-warning-emphasis"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-secondary"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-info"]:not([class*="text-info-emphasis"]) > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active[class*="text-danger"] > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.active.text-acc-print > i.bi {
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info-emphasis"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info-emphasis"]:focus {
    color: var(--bs-info-text-emphasis) !important;
    background-color: rgba(var(--bs-info-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info-emphasis"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info-emphasis"]:focus > i.bi {
    color: var(--bs-info-text-emphasis) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-dark"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-dark"]:focus {
    color: var(--bs-emphasis-color) !important;
    background-color: rgba(var(--bs-dark-rgb), 0.08);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-dark"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-dark"]:focus > i.bi {
    color: var(--bs-emphasis-color) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-primary"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-primary"]:focus {
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-primary"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-primary"]:focus > i.bi {
    color: var(--bs-primary) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-success"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-success"]:focus {
    color: var(--bs-success) !important;
    background-color: rgba(var(--bs-success-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-success"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-success"]:focus > i.bi {
    color: var(--bs-success) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-warning-emphasis"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-warning-emphasis"]:focus {
    color: var(--bs-warning-text-emphasis) !important;
    background-color: rgba(var(--bs-warning-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-warning-emphasis"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-warning-emphasis"]:focus > i.bi {
    color: var(--bs-warning-text-emphasis) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-secondary"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-secondary"]:focus {
    color: var(--bs-secondary) !important;
    background-color: rgba(var(--bs-secondary-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-secondary"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-secondary"]:focus > i.bi {
    color: var(--bs-secondary) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info"]:not([class*="text-info-emphasis"]):hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info"]:not([class*="text-info-emphasis"]):focus {
    color: var(--bs-info) !important;
    background-color: rgba(var(--bs-info-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info"]:not([class*="text-info-emphasis"]):hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-info"]:not([class*="text-info-emphasis"]):focus > i.bi {
    color: var(--bs-info) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-danger"]:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-danger"]:focus {
    color: var(--bs-danger) !important;
    background-color: rgba(var(--bs-danger-rgb), 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-danger"]:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item[class*="text-danger"]:focus > i.bi {
    color: var(--bs-danger) !important;
    background-color: transparent !important;
}

.dropdown-menu.dt-menu-acciones .dropdown-item.text-acc-print:hover,
.dropdown-menu.dt-menu-acciones .dropdown-item.text-acc-print:focus {
    color: #6f42c1 !important;
    background-color: rgba(111, 66, 193, 0.12);
}

.dropdown-menu.dt-menu-acciones .dropdown-item.text-acc-print:hover > i.bi,
.dropdown-menu.dt-menu-acciones .dropdown-item.text-acc-print:focus > i.bi {
    color: #6f42c1 !important;
    background-color: transparent !important;
}

/* Paginación compacta (DataTables 1.x y 2.x) */
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-link,
div.dt-container div.dt-paging button.page-link,
div.dt-container div.dt-paging button.dt-paging-button,
div.dt-container div.dt-paging button.dt-paging-button.current {
    font-size: 0.875rem !important;
    padding: .5rem .75rem !important;
    line-height: 1.2 !important;
    min-width: 2rem;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link,
div.dt-container div.dt-paging button.dt-paging-button.current {
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .page-link:focus,
div.dt-container div.dt-paging button.dt-paging-button:focus {
    box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .25);
    outline: 0;
}

/* Length / Filter */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: .2rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    font-size: 0.75rem;
    height: 28px;
    padding: 2px 6px;
    line-height: 1.1;
}

/* Info */
.dataTables_wrapper .dataTables_info {
    font-size: .68rem;
    padding-top: .5rem;
}

/* Mobile ajustes */
@media (max-width:576px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter {
        margin-top: .25rem;
    }

    .dataTables_wrapper .dataTables_paginate .page-link {
        padding: .12rem .38rem;
        font-size: 0.60rem;
    }
}

/* ---------------------------------------------------------------------------------------------- */
/* reglas adicionales */
/* ---------------------------------------------------------------------------------------------- */
/* login */
.login-container {
    padding: 6px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 0;
}

@media (min-width: 320px) {
    .login-container {
        width: 320px;
    }
}

@media (min-width: 480px) {
    .login-container {
        width: 390px;
    }
}

@media (min-width: 768px) {
    .login-container {
        width: 450px;
    }
}

@media (min-width: 992px) {
    .login-container {
        width: 450px;
    }
}

@media (min-width: 1200px) {
    .login-container {
        width: 500px;
    }
}

.login-content {
    background-color: #FFFFFF;
    color: #000000;
    padding: 25px 20px;
    border: 1px solid #e0e0e0;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* mensaje login - Reglas unificadas para todos los módulos */
p.mensaje {
    font-size: 0.9rem;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

p.mensaje.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    color: #dc3545;
}

p.mensaje.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    color: #856404;
}

p.mensaje.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left: 3px solid #0dcaf0;
    color: #055160;
}

p.mensaje.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-left: 3px solid #198754;
    color: #0f5132;
}

/* logo App */
#obj_logo {
    width: 230px;
    height: 65px;
    margin-top: 2px;
    margin-bottom: 2px;
}

@media (min-width: 480px) {
    #obj_logo {
        width: 300px;
        height: 75px;
    }
}

@media (min-width: 320px) {
    #contenido {
        height: 240px;
    }
}

@media (min-width: 480px) {
    #contenido {
        height: 400px;
    }
}

@media (min-width: 768px) {
    #contenido {
        height: 460px;
    }
}

@media (min-width: 992px) {
    #contenido {
        height: 520px;
    }
}

@media (min-width: 1200px) {
    #contenido {
        height: 560px;
    }
}

#contenido>img {
    width: 100%;
    height: 100%;
}

/* encabezado de menu lateral */
.head-side-menu {
    position: relative;
    display: block;
    margin-top: 5px;
    padding: 7px 10px;
    color: #ffffff;
    background-color: #337ab7;
    border: 1px solid #2e6da4;
    border-radius: 4px;
}

a.head-side-menu:hover,
a.head-side-menu:focus {
    text-decoration: none;
    color: #ffffff;
    background-color: #286090;
}

/* tag <a> no activo */
.not-active {
    pointer-events: none;
    cursor: default;
    color: #CCCCCC !important;
}

/* recuadro */
.div-fieldset {
    position: relative;
    margin: 7px 0;
    padding: 32px 6px 7px;
    padding-top: 19px;
    background-color: #fff;
    border: 1px solid #ddd;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

/* titulo del recuadro */
.div-fieldset>p.fs-leyend {
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 3px 7px;
    font-size: 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #6e6e6e;
    -webkit-border-radius: 4px 0 4px 0;
    -moz-border-radius: 4px 0 4px 0;
    border-radius: 4px 0 4px 0;
}

/* popup-message */
div.popup-message {
    display: none;
    position: fixed;
    top: 0;
    width: 240px;
    padding: 18px 8px;
    margin-top: 10px;
    border: 1px solid transparent;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    -moz-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    z-index: 1;
}

.message-success {
    color: #FFFFFF;
    background-color: #48943C;
}

.message-warning {
    color: #FFFFFF;
    background-color: #E9A33F;
}

.message-error {
    color: #FFFFFF;
    background-color: #FF6060;
}

/* div_busy */
#div_busy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(216, 216, 216);
    opacity: 0.5;
    z-index: 1;
}

/* ---------------------------------------------------------------------------------------------- */
/* ===== Footer Profesional =====
/* ---------------------------------------------------------------------------------------------- */
.site-footer {
    background: #1f2831;
    color: #d7dee4;
    font-size: 0.84rem;
    position: relative;
}

.site-footer a {
    color: #8bb9ff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: .4px;
    color: #ffffff;
}

.site-footer .footer-label {
    font-weight: 600;
    color: #ffffff;
}

.site-footer .footer-main {
    max-width: 1320px;
}

.site-footer .tracking-1 {
    letter-spacing: 1px;
    font-size: .65rem;
    opacity: .85;
}

.footer-bar {
    background: linear-gradient(90deg, #3F74B0 0%, #2e5a8b 50%, #3F74B0 100%);
    color: #e6eef5;
    padding: .45rem .75rem;
    font-size: 0.72rem;
    letter-spacing: .3px;
}

.footer-bar a {
    color: #ffffff;
}

.footer-bar a:hover,
.footer-bar a:focus {
    color: #ffe8a6;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .site-footer .footer-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer .row>[class*="col-"] {
        text-align: left;
    }

    .footer-bar {
        font-size: 0.68rem;
        line-height: 1.2;
    }
}

/* ===== Fin Footer ===== */

/* nuevos fondos */
.bg-active {
    background-color: #3F74B0;
    color: #FFFFFF;
}

.bg-inactive {
    background-color: #95B3BB;
    color: #E6E6E6;
}

.bg-new {
    background-color: #C5F0BA;
    color: #5E4B5A;
}

.bg-deleted {
    background-color: #FFF2C1;
    color: #BC3A42;
}

.bg-busy {
    background-color: #DFDFDF;
    color: #1C1C1C;
}

.bg-free {
    background-color: #ffffff;
}

/* fondos pedidos */
.img-mesa {
    width: 100px;
    height: 70px;
    display: inline-block;
    /* float: right; */
}

.thumbnail-pedido {
    border: 2px dashed #666666;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p.p_pedido {
    font-size: 12px;
    margin-bottom: 0px;
}

p.p_detalle {
    font-family: "Comic Sans MS";
    font-size: 18px;
}

hr.hr_pedido {
    border: 1px solid #666666;
    border-radius: 0.5px;
    text-align: center;
}

.div_pedido {
    padding: 2px 4px;
    border-top: 1px solid #999999;
}

.div_jerarquia {
    font-size: 11px;
    border-left: 1px solid #999999;
    border-bottom: 1px solid #999999;
    margin: 0 2px 10px 6px;
    float: left;
}

.pedido-info {
    padding: 3px 4px;
    text-align: left;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border: 1px solid transparent;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    /* background-color: #cccccc; */
}

.prioridad {
    display: inline-block;
    /* float: right; */
    text-align: center;
    font-size: 11px;
    padding: 2px 6px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin-top: 4px;
}

.pedido-title {
    text-align: center;
    padding: 8px 12px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin: 0;
}

.bg-valid {
    background-color: #F2DA86;
    color: #000000;
}

.bg-valid:hover,
.bg-valid:focus {
    background-color: #FFE58D;
}

.bg-valid-sub {
    background-color: #EDB286;
    color: #000000;
}

.bg-valid-sub:hover,
.bg-valid-sub:focus {
    background-color: #FFBF90;
}

.bg-realized {
    background-color: #AECFA4;
    color: #000000;
}

.bg-realized:hover,
.bg-realized:focus {
    background-color: #C7EDBC;
}

.bg-unrealized {
    background-color: #B9C2B4;
    color: #48264A;
}

.bg-unrealized:hover,
.bg-unrealized:focus {
    background-color: #D9E3D2;
}

.bg-canceled {
    background-color: #E8A3A0;
    color: #AB2A36;
}

.bg-canceled:hover,
.bg-canceled:focus {
    background-color: #FFB3B0;
}

/* prioridad de pedidos */
.bg-high {
    background-color: #FD9782;
    color: #2E2E2E;
}

.bg-medium {
    background-color: #FFDBAE;
    /* #D8E8AA; #F5D09C; */
    color: #2E2E2E;
}

.bg-low {
    background-color: #FFF5B2;
    /* #FFF5B2; #FCFBB9; */
    color: #2E2E2E;
}

/* popover */
div .special-popover {
    width: 260px;
}

/* ----------------------------------------------------------------------------------------------- */
/* special button - Mejorado manteniendo discreción */
/* ----------------------------------------------------------------------------------------------- */
.btn-special {
    display: inline-block;
    cursor: pointer;
    padding: 0.23rem 0.33rem;
    color: #646464;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    font-size: 0.8125rem;
    line-height: 1.1;
    border: 1px solid transparent;
    position: relative;
    background-color: transparent;
    min-width: 1.5rem;
    text-align: center;
}

.btn-special:hover,
.btn-special:focus,
.btn-special.focus {
    color: #ffffff;
    background-color: rgba(108, 117, 125, 0.66);
    border: 1px solid #495057;
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5px);
    text-decoration: none;
}

.btn-special:active,
.btn-special.active {
    color: #ffffff;
    background-color: #5a6268;
    border-color: #545b62;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

/* Estilos específicos para botones de editar */
.btn-special.edit:hover,
.btn-special.edit:focus {
    color: #ffffff;
    background-color: rgba(13, 110, 253, 0.66);
    border: 1px solid #0d6efd;
}

.btn-special.edit:active {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Estilos específicos para botones de eliminar */
.btn-special.delete:hover,
.btn-special.delete:focus {
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.66);
    border: 1px solid #dc3545;
}

.btn-special.delete:active {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Estilos específicos para botones de eliminar/quitar (remove) */
.btn-special.remove:hover,
.btn-special.remove:focus {
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.66);
    border: 1px solid #dc3545;
}

.btn-special.remove:active {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Estilos específicos para botones de imprimir */
.btn-special.print:hover,
.btn-special.print:focus {
    color: #ffffff;
    background-color: rgba(111, 66, 193, 0.66);
    border: 1px solid #6f42c1;
}

.btn-special.print:active {
    background-color: #5a359c;
    border-color: #543285;
}

/* Estilos específicos para botones de ver/visualizar */
.btn-special.view:hover,
.btn-special.view:focus {
    color: #ffffff;
    background-color: rgba(32, 201, 151, 0.66);
    border: 1px solid #20c997;
}

.btn-special.view:active {
    background-color: #1aa085;
    border-color: #198c7a;
}

/* Estilos específicos para botones de descargar */
.btn-special.download:hover,
.btn-special.download:focus {
    color: #ffffff;
    background-color: rgba(253, 126, 20, 0.66);
    border: 1px solid #fd7e14;
}

.btn-special.download:active {
    background-color: #d86310;
    border-color: #c85d0e;
}

/* Estilos específicos para botones de detalle (celeste/info) */
.btn-special.detail:hover,
.btn-special.detail:focus {
    color: #ffffff;
    background-color: rgba(13, 202, 240, 0.66);
    border: 1px solid #0dcaf0;
}

.btn-special.detail:active {
    background-color: #0aa2c0;
    border-color: #0991b3;
}

/* Estilos específicos para botones de aceptar */
.btn-special.accept:hover,
.btn-special.accept:focus {
    color: #ffffff;
    background-color: rgba(25, 135, 84, 0.66);
    border: 1px solid #198754;
}

.btn-special.accept:active {
    background-color: #157347;
    border-color: #146c43;
}

/* Estilos específicos para botones de cancelar */
.btn-special.cancel:hover,
.btn-special.cancel:focus {
    color: #ffffff;
    background-color: rgba(240, 173, 78, 0.66);
    border: 1px solid #f0ad4e;
}

.btn-special.cancel:active {
    background-color: #ec971f;
    border-color: #d58512;
}

/* Advertencia (warning): reposo gris heredado; hover amarillo con texto oscuro por contraste */
.btn-special.warning:hover,
.btn-special.warning:focus {
    color: #212529;
    background-color: rgba(255, 193, 7, 0.75);
    border: 1px solid #e0a800;
}

.btn-special.warning:active {
    color: #212529;
    background-color: #ffca2c;
    border: 1px solid #cc9a06;
}

/* Dominio: pagar / cobrar */
.btn-special.pay:hover,
.btn-special.pay:focus {
    color: #ffffff;
    background-color: rgba(25, 135, 84, 0.66);
    border: 1px solid #198754;
}

.btn-special.pay:active {
    background-color: #157347;
    border-color: #146c43;
}

/* Dominio: exonerar (pink; no choca con .download naranja) */
.btn-special.exonerate:hover,
.btn-special.exonerate:focus {
    color: #ffffff;
    background-color: rgba(214, 51, 132, 0.66);
    border: 1px solid #d63384;
}

.btn-special.exonerate:active {
    background-color: #b02a6a;
    border-color: #a02863;
}

/* Dominio: vincular / enlace a entidad relacionada (.link y alias .link-recibo) */
.btn-special.link:hover,
.btn-special.link:focus,
.btn-special.link-recibo:hover,
.btn-special.link-recibo:focus {
    color: #ffffff;
    background-color: rgba(13, 110, 253, 0.66);
    border: 1px solid #0d6efd;
}

.btn-special.link:active,
.btn-special.link-recibo:active {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Dominio: acusar recibo */
.btn-special.acuse:hover,
.btn-special.acuse:focus {
    color: #ffffff;
    background-color: rgba(25, 135, 84, 0.66);
    border: 1px solid #198754;
}

.btn-special.acuse:active {
    background-color: #157347;
    border-color: #146c43;
}

/* Dominio: reenviar / abrir WhatsApp (verde marca) */
.btn-special.whatsapp:hover,
.btn-special.whatsapp:focus {
    color: #ffffff;
    background-color: rgba(37, 211, 102, 0.66);
    border: 1px solid #25d366;
}

.btn-special.whatsapp:active {
    background-color: #1ebe57;
    border-color: #1aa34b;
}

/* Dominio: sincronizar */
.btn-special.sync:hover,
.btn-special.sync:focus {
    color: #ffffff;
    background-color: rgba(102, 16, 242, 0.66);
    border: 1px solid #6610f2;
}

.btn-special.sync:active {
    background-color: #520dc2;
    border-color: #4c0bb5;
}

/* Dominio: transferir / cambiar programación / derivar */
.btn-special.transfer:hover,
.btn-special.transfer:focus {
    color: #ffffff;
    background-color: rgba(102, 16, 242, 0.66);
    border: 1px solid #6610f2;
}

.btn-special.transfer:active {
    background-color: #520dc2;
    border-color: #4c0bb5;
}

/* Dominio: restaurar / reactivar */
.btn-special.restore:hover,
.btn-special.restore:focus {
    color: #ffffff;
    background-color: rgba(25, 135, 84, 0.66);
    border: 1px solid #198754;
}

.btn-special.restore:active {
    background-color: #157347;
    border-color: #146c43;
}

/* Dominio: bloquear / cerrar periodo */
.btn-special.lock:hover,
.btn-special.lock:focus {
    color: #ffffff;
    background-color: rgba(240, 173, 78, 0.66);
    border: 1px solid #f0ad4e;
}

.btn-special.lock:active {
    background-color: #ec971f;
    border-color: #d58512;
}

/* Dominio: desbloquear / reabrir */
.btn-special.unlock:hover,
.btn-special.unlock:focus {
    color: #ffffff;
    background-color: rgba(13, 110, 253, 0.66);
    border: 1px solid #0d6efd;
}

.btn-special.unlock:active {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Dominio: calcular */
.btn-special.calculate:hover,
.btn-special.calculate:focus {
    color: #ffffff;
    background-color: rgba(111, 66, 193, 0.66);
    border: 1px solid #6f42c1;
}

.btn-special.calculate:active {
    background-color: #5a359c;
    border-color: #543285;
}

/* Dominio: subir / adjuntar */
.btn-special.upload:hover,
.btn-special.upload:focus {
    color: #ffffff;
    background-color: rgba(32, 201, 151, 0.66);
    border: 1px solid #20c997;
}

.btn-special.upload:active {
    background-color: #1aa085;
    border-color: #198c7a;
}

/* Dominio: correo / notificar */
.btn-special.mail:hover,
.btn-special.mail:focus {
    color: #ffffff;
    background-color: rgba(13, 202, 240, 0.66);
    border: 1px solid #0dcaf0;
}

.btn-special.mail:active {
    background-color: #0aa2c0;
    border-color: #0991b3;
}

/* Dominio: historial / timeline */
.btn-special.history:hover,
.btn-special.history:focus {
    color: #ffffff;
    background-color: rgba(108, 117, 125, 0.66);
    border: 1px solid #6c757d;
}

.btn-special.history:active {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Dominio: gestionar exclusiones / excepciones */
.btn-special.manage:hover,
.btn-special.manage:focus {
    color: #212529;
    background-color: rgba(255, 193, 7, 0.75);
    border: 1px solid #e0a800;
}

.btn-special.manage:active {
    color: #212529;
    background-color: #ffca2c;
    border: 1px solid #cc9a06;
}

/* Estados deshabilitados */
.btn-special.disabled,
.btn-special[disabled],
fieldset[disabled] .btn-special {
    color: #cccccc;
    background-color: transparent;
    border-color: transparent;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-special.disabled:hover,
.btn-special[disabled]:hover,
fieldset[disabled] .btn-special:hover,
.btn-special.disabled:focus,
.btn-special[disabled]:focus,
fieldset[disabled] .btn-special:focus,
.btn-special.disabled.focus,
.btn-special[disabled].focus,
fieldset[disabled] .btn-special.focus,
.btn-special.disabled:active,
.btn-special[disabled]:active,
fieldset[disabled] .btn-special:active,
.btn-special.disabled.active,
.btn-special[disabled].active,
fieldset[disabled] .btn-special.active {
    color: #cccccc;
    background-color: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* ------------------------------------------------------------------------------------- */
/* Estilos para botones .btn-special en filas seleccionadas (CONSOLIDADO) */
/* ------------------------------------------------------------------------------------- */

/* Regla general para todos los botones en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special:hover,
table.dataTable tbody tr.selected .btn-special:focus,
table>tbody>tr.selected .btn-special:hover,
table>tbody>tr.selected .btn-special:focus {
    color: #ffffff !important;
    transform: translateY(-0.5px);
}

/* Iconos dentro de botones en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special:hover i.bi,
table.dataTable tbody tr.selected .btn-special:focus i.bi,
table>tbody>tr.selected .btn-special:hover i.bi,
table>tbody>tr.selected .btn-special:focus i.bi {
    color: #ffffff !important;
}

/* Botones EDITAR en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.edit:hover,
table.dataTable tbody tr.selected .btn-special.edit:focus,
table>tbody>tr.selected .btn-special.edit:hover,
table>tbody>tr.selected .btn-special.edit:focus {
    color: #ffffff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

table.dataTable tbody tr.selected .btn-special.edit:hover i.bi,
table.dataTable tbody tr.selected .btn-special.edit:focus i.bi,
table>tbody>tr.selected .btn-special.edit:hover i.bi,
table>tbody>tr.selected .btn-special.edit:focus i.bi {
    color: #ffffff !important;
}

/* Botones ELIMINAR en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.delete:hover,
table.dataTable tbody tr.selected .btn-special.delete:focus,
table>tbody>tr.selected .btn-special.delete:hover,
table>tbody>tr.selected .btn-special.delete:focus {
    color: #ffffff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

table.dataTable tbody tr.selected .btn-special.delete:hover i.bi,
table.dataTable tbody tr.selected .btn-special.delete:focus i.bi,
table>tbody>tr.selected .btn-special.delete:hover i.bi,
table>tbody>tr.selected .btn-special.delete:focus i.bi {
    color: #ffffff !important;
}

/* Botones IMPRIMIR en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.print:hover,
table.dataTable tbody tr.selected .btn-special.print:focus,
table>tbody>tr.selected .btn-special.print:hover,
table>tbody>tr.selected .btn-special.print:focus {
    color: #ffffff !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

table.dataTable tbody tr.selected .btn-special.print:hover i.bi,
table.dataTable tbody tr.selected .btn-special.print:focus i.bi,
table>tbody>tr.selected .btn-special.print:hover i.bi,
table>tbody>tr.selected .btn-special.print:focus i.bi {
    color: #ffffff !important;
}

/* Botones VER en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.view:hover,
table.dataTable tbody tr.selected .btn-special.view:focus,
table>tbody>tr.selected .btn-special.view:hover,
table>tbody>tr.selected .btn-special.view:focus {
    color: #ffffff !important;
    background-color: #20c997 !important;
    border-color: #20c997 !important;
}

table.dataTable tbody tr.selected .btn-special.view:hover i.bi,
table.dataTable tbody tr.selected .btn-special.view:focus i.bi,
table>tbody>tr.selected .btn-special.view:hover i.bi,
table>tbody>tr.selected .btn-special.view:focus i.bi {
    color: #ffffff !important;
}

/* Botones DESCARGAR en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.download:hover,
table.dataTable tbody tr.selected .btn-special.download:focus,
table>tbody>tr.selected .btn-special.download:hover,
table>tbody>tr.selected .btn-special.download:focus {
    color: #ffffff !important;
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
}

table.dataTable tbody tr.selected .btn-special.download:hover i.bi,
table.dataTable tbody tr.selected .btn-special.download:focus i.bi,
table>tbody>tr.selected .btn-special.download:hover i.bi,
table>tbody>tr.selected .btn-special.download:focus i.bi {
    color: #ffffff !important;
}

/* Botones DETALLE en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.detail:hover,
table.dataTable tbody tr.selected .btn-special.detail:focus,
table>tbody>tr.selected .btn-special.detail:hover,
table>tbody>tr.selected .btn-special.detail:focus {
    color: #ffffff !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

table.dataTable tbody tr.selected .btn-special.detail:hover i.bi,
table.dataTable tbody tr.selected .btn-special.detail:focus i.bi,
table>tbody>tr.selected .btn-special.detail:hover i.bi,
table>tbody>tr.selected .btn-special.detail:focus i.bi {
    color: #ffffff !important;
}

/* Botones ACEPTAR en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.accept:hover,
table.dataTable tbody tr.selected .btn-special.accept:focus,
table>tbody>tr.selected .btn-special.accept:hover,
table>tbody>tr.selected .btn-special.accept:focus {
    color: #ffffff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

table.dataTable tbody tr.selected .btn-special.accept:hover i.bi,
table.dataTable tbody tr.selected .btn-special.accept:focus i.bi,
table>tbody>tr.selected .btn-special.accept:hover i.bi,
table>tbody>tr.selected .btn-special.accept:focus i.bi {
    color: #ffffff !important;
}

/* Botones QUITAR (remove) en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.remove:hover,
table.dataTable tbody tr.selected .btn-special.remove:focus,
table>tbody>tr.selected .btn-special.remove:hover,
table>tbody>tr.selected .btn-special.remove:focus {
    color: #ffffff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

table.dataTable tbody tr.selected .btn-special.remove:hover i.bi,
table.dataTable tbody tr.selected .btn-special.remove:focus i.bi,
table>tbody>tr.selected .btn-special.remove:hover i.bi,
table>tbody>tr.selected .btn-special.remove:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: pay / acuse / restore (verde) */
table.dataTable tbody tr.selected .btn-special.pay:hover,
table.dataTable tbody tr.selected .btn-special.pay:focus,
table>tbody>tr.selected .btn-special.pay:hover,
table>tbody>tr.selected .btn-special.pay:focus,
table.dataTable tbody tr.selected .btn-special.acuse:hover,
table.dataTable tbody tr.selected .btn-special.acuse:focus,
table>tbody>tr.selected .btn-special.acuse:hover,
table>tbody>tr.selected .btn-special.acuse:focus,
table.dataTable tbody tr.selected .btn-special.restore:hover,
table.dataTable tbody tr.selected .btn-special.restore:focus,
table>tbody>tr.selected .btn-special.restore:hover,
table>tbody>tr.selected .btn-special.restore:focus {
    color: #ffffff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

table.dataTable tbody tr.selected .btn-special.whatsapp:hover,
table.dataTable tbody tr.selected .btn-special.whatsapp:focus,
table>tbody>tr.selected .btn-special.whatsapp:hover,
table>tbody>tr.selected .btn-special.whatsapp:focus {
    color: #ffffff !important;
    background-color: #25d366 !important;
    border-color: #25d366 !important;
}

table.dataTable tbody tr.selected .btn-special.pay:hover i.bi,
table.dataTable tbody tr.selected .btn-special.pay:focus i.bi,
table>tbody>tr.selected .btn-special.pay:hover i.bi,
table>tbody>tr.selected .btn-special.pay:focus i.bi,
table.dataTable tbody tr.selected .btn-special.acuse:hover i.bi,
table.dataTable tbody tr.selected .btn-special.acuse:focus i.bi,
table>tbody>tr.selected .btn-special.acuse:hover i.bi,
table>tbody>tr.selected .btn-special.acuse:focus i.bi,
table.dataTable tbody tr.selected .btn-special.restore:hover i.bi,
table.dataTable tbody tr.selected .btn-special.restore:focus i.bi,
table>tbody>tr.selected .btn-special.restore:hover i.bi,
table>tbody>tr.selected .btn-special.restore:focus i.bi,
table.dataTable tbody tr.selected .btn-special.whatsapp:hover i.bi,
table.dataTable tbody tr.selected .btn-special.whatsapp:focus i.bi,
table>tbody>tr.selected .btn-special.whatsapp:hover i.bi,
table>tbody>tr.selected .btn-special.whatsapp:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: exonerate (pink) */
table.dataTable tbody tr.selected .btn-special.exonerate:hover,
table.dataTable tbody tr.selected .btn-special.exonerate:focus,
table>tbody>tr.selected .btn-special.exonerate:hover,
table>tbody>tr.selected .btn-special.exonerate:focus {
    color: #ffffff !important;
    background-color: #d63384 !important;
    border-color: #d63384 !important;
}

table.dataTable tbody tr.selected .btn-special.exonerate:hover i.bi,
table.dataTable tbody tr.selected .btn-special.exonerate:focus i.bi,
table>tbody>tr.selected .btn-special.exonerate:hover i.bi,
table>tbody>tr.selected .btn-special.exonerate:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: link / link-recibo / unlock (azul) */
table.dataTable tbody tr.selected .btn-special.link:hover,
table.dataTable tbody tr.selected .btn-special.link:focus,
table>tbody>tr.selected .btn-special.link:hover,
table>tbody>tr.selected .btn-special.link:focus,
table.dataTable tbody tr.selected .btn-special.link-recibo:hover,
table.dataTable tbody tr.selected .btn-special.link-recibo:focus,
table>tbody>tr.selected .btn-special.link-recibo:hover,
table>tbody>tr.selected .btn-special.link-recibo:focus,
table.dataTable tbody tr.selected .btn-special.unlock:hover,
table.dataTable tbody tr.selected .btn-special.unlock:focus,
table>tbody>tr.selected .btn-special.unlock:hover,
table>tbody>tr.selected .btn-special.unlock:focus {
    color: #ffffff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

table.dataTable tbody tr.selected .btn-special.link:hover i.bi,
table.dataTable tbody tr.selected .btn-special.link:focus i.bi,
table>tbody>tr.selected .btn-special.link:hover i.bi,
table>tbody>tr.selected .btn-special.link:focus i.bi,
table.dataTable tbody tr.selected .btn-special.link-recibo:hover i.bi,
table.dataTable tbody tr.selected .btn-special.link-recibo:focus i.bi,
table>tbody>tr.selected .btn-special.link-recibo:hover i.bi,
table>tbody>tr.selected .btn-special.link-recibo:focus i.bi,
table.dataTable tbody tr.selected .btn-special.unlock:hover i.bi,
table.dataTable tbody tr.selected .btn-special.unlock:focus i.bi,
table>tbody>tr.selected .btn-special.unlock:hover i.bi,
table>tbody>tr.selected .btn-special.unlock:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: sync / transfer (indigo) */
table.dataTable tbody tr.selected .btn-special.sync:hover,
table.dataTable tbody tr.selected .btn-special.sync:focus,
table>tbody>tr.selected .btn-special.sync:hover,
table>tbody>tr.selected .btn-special.sync:focus,
table.dataTable tbody tr.selected .btn-special.transfer:hover,
table.dataTable tbody tr.selected .btn-special.transfer:focus,
table>tbody>tr.selected .btn-special.transfer:hover,
table>tbody>tr.selected .btn-special.transfer:focus {
    color: #ffffff !important;
    background-color: #6610f2 !important;
    border-color: #6610f2 !important;
}

table.dataTable tbody tr.selected .btn-special.sync:hover i.bi,
table.dataTable tbody tr.selected .btn-special.sync:focus i.bi,
table>tbody>tr.selected .btn-special.sync:hover i.bi,
table>tbody>tr.selected .btn-special.sync:focus i.bi,
table.dataTable tbody tr.selected .btn-special.transfer:hover i.bi,
table.dataTable tbody tr.selected .btn-special.transfer:focus i.bi,
table>tbody>tr.selected .btn-special.transfer:hover i.bi,
table>tbody>tr.selected .btn-special.transfer:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: lock (ámbar) */
table.dataTable tbody tr.selected .btn-special.lock:hover,
table.dataTable tbody tr.selected .btn-special.lock:focus,
table>tbody>tr.selected .btn-special.lock:hover,
table>tbody>tr.selected .btn-special.lock:focus {
    color: #ffffff !important;
    background-color: #f0ad4e !important;
    border-color: #f0ad4e !important;
}

table.dataTable tbody tr.selected .btn-special.lock:hover i.bi,
table.dataTable tbody tr.selected .btn-special.lock:focus i.bi,
table>tbody>tr.selected .btn-special.lock:hover i.bi,
table>tbody>tr.selected .btn-special.lock:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: calculate (púrpura) */
table.dataTable tbody tr.selected .btn-special.calculate:hover,
table.dataTable tbody tr.selected .btn-special.calculate:focus,
table>tbody>tr.selected .btn-special.calculate:hover,
table>tbody>tr.selected .btn-special.calculate:focus {
    color: #ffffff !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

table.dataTable tbody tr.selected .btn-special.calculate:hover i.bi,
table.dataTable tbody tr.selected .btn-special.calculate:focus i.bi,
table>tbody>tr.selected .btn-special.calculate:hover i.bi,
table>tbody>tr.selected .btn-special.calculate:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: upload (teal) */
table.dataTable tbody tr.selected .btn-special.upload:hover,
table.dataTable tbody tr.selected .btn-special.upload:focus,
table>tbody>tr.selected .btn-special.upload:hover,
table>tbody>tr.selected .btn-special.upload:focus {
    color: #ffffff !important;
    background-color: #20c997 !important;
    border-color: #20c997 !important;
}

table.dataTable tbody tr.selected .btn-special.upload:hover i.bi,
table.dataTable tbody tr.selected .btn-special.upload:focus i.bi,
table>tbody>tr.selected .btn-special.upload:hover i.bi,
table>tbody>tr.selected .btn-special.upload:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: mail (celeste) */
table.dataTable tbody tr.selected .btn-special.mail:hover,
table.dataTable tbody tr.selected .btn-special.mail:focus,
table>tbody>tr.selected .btn-special.mail:hover,
table>tbody>tr.selected .btn-special.mail:focus {
    color: #ffffff !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

table.dataTable tbody tr.selected .btn-special.mail:hover i.bi,
table.dataTable tbody tr.selected .btn-special.mail:focus i.bi,
table>tbody>tr.selected .btn-special.mail:hover i.bi,
table>tbody>tr.selected .btn-special.mail:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: history (secondary) */
table.dataTable tbody tr.selected .btn-special.history:hover,
table.dataTable tbody tr.selected .btn-special.history:focus,
table>tbody>tr.selected .btn-special.history:hover,
table>tbody>tr.selected .btn-special.history:focus {
    color: #ffffff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

table.dataTable tbody tr.selected .btn-special.history:hover i.bi,
table.dataTable tbody tr.selected .btn-special.history:focus i.bi,
table>tbody>tr.selected .btn-special.history:hover i.bi,
table>tbody>tr.selected .btn-special.history:focus i.bi {
    color: #ffffff !important;
}

/* Dominio: manage (amarillo, texto oscuro) */
table.dataTable tbody tr.selected .btn-special.manage:hover,
table.dataTable tbody tr.selected .btn-special.manage:focus,
table>tbody>tr.selected .btn-special.manage:hover,
table>tbody>tr.selected .btn-special.manage:focus {
    color: #212529 !important;
    background-color: #ffc107 !important;
    border: 1px solid #e0a800 !important;
}

table.dataTable tbody tr.selected .btn-special.manage:hover i.bi,
table.dataTable tbody tr.selected .btn-special.manage:focus i.bi,
table>tbody>tr.selected .btn-special.manage:hover i.bi,
table>tbody>tr.selected .btn-special.manage:focus i.bi {
    color: #212529 !important;
}

/* ---------------------------------------------------------------------------------------------- */
/* ===== ESTILOS MODERNOS CONSOLIDADOS =====
/* ---------------------------------------------------------------------------------------------- */

/* Variables CSS para consistencia */
:root {
    --primary-color: #204773;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-radius: 0.5rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ===== MODALES MODERNOS ===== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    background: var(--light-bg);
    border-bottom: 1px solid #c3c9ce;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    background: var(--light-bg);
    border-top: 1px solid #c3c9ce;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.modal-title {
    font-weight: 600;
    color: #495057;
}

/* ===== FORMULARIOS MODERNOS ===== */
.form-floating {
    margin-top: 1rem;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ===== ANIMACIONES ===== */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== PANELES INFORMATIVOS CON HOVER ===== */
.info-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* ===== ELEMENTOS ANIMADOS ===== */
.animated {
    transition: all 0.3s ease;
}

.card .animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ===== DATATABLES PERSONALIZADAS ===== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

table.dataTable tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ===== VALIDACIÓN Y ERRORES ===== */
/* Evitar duplicación de mensajes de validación */
.form-floating .invalid-feedback {
    display: none !important;
}

.form-floating label.error {
    display: none !important;
}

/* Asegurar que solo se muestre el form-text */
.form-floating .form-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Estilos para mensajes de error de fechas */
.date-error-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    color: #721c24;
}

/* Ocultar elementos de error nativos de jQuery Validate para fechas */
.form-floating label.error[for="fecha_inicio"],
.form-floating label.error[for="fecha_fin"] {
    display: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem 0;
        margin-bottom: 1.25rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .action-bar {
        padding: 1rem;
    }

    .action-bar .btn {
        width: 100%;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
}

/* Botones CANCELAR en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.cancel:hover,
table.dataTable tbody tr.selected .btn-special.cancel:focus,
table>tbody>tr.selected .btn-special.cancel:hover,
table>tbody>tr.selected .btn-special.cancel:focus {
    color: #ffffff !important;
    background-color: #f0ad4e !important;
    border-color: #f0ad4e !important;
}

table.dataTable tbody tr.selected .btn-special.cancel:hover i.bi,
table.dataTable tbody tr.selected .btn-special.cancel:focus i.bi,
table>tbody>tr.selected .btn-special.cancel:hover i.bi,
table>tbody>tr.selected .btn-special.cancel:focus i.bi {
    color: #ffffff !important;
}

/* Botones WARNING en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special.warning:hover,
table.dataTable tbody tr.selected .btn-special.warning:focus,
table>tbody>tr.selected .btn-special.warning:hover,
table>tbody>tr.selected .btn-special.warning:focus {
    color: #212529 !important;
    background-color: #ffc107 !important;
    border: 1px solid #e0a800 !important;
}

table.dataTable tbody tr.selected .btn-special.warning:hover i.bi,
table.dataTable tbody tr.selected .btn-special.warning:focus i.bi,
table>tbody>tr.selected .btn-special.warning:hover i.bi,
table>tbody>tr.selected .btn-special.warning:focus i.bi {
    color: #212529 !important;
}

/* Botones generales (sin clase específica) en filas seleccionadas */
table.dataTable tbody tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):hover,
table.dataTable tbody tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):focus,
table>tbody>tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):hover,
table>tbody>tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):focus {
    color: #ffffff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

table.dataTable tbody tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):hover i.bi,
table.dataTable tbody tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):focus i.bi,
table>tbody>tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):hover i.bi,
table>tbody>tr.selected .btn-special:not(.edit):not(.delete):not(.remove):not(.print):not(.view):not(.download):not(.detail):not(.accept):not(.cancel):not(.warning):not(.pay):not(.exonerate):not(.link):not(.link-recibo):not(.acuse):not(.sync):not(.transfer):not(.restore):not(.lock):not(.unlock):not(.calculate):not(.upload):not(.mail):not(.history):not(.manage):focus i.bi {
    color: #ffffff !important;
}

/* recortar textos con puntos suspensivos (…) automáticos */
.recortar-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* botón de confirmación */
.btn-confirm {
    min-width: 90px;
    letter-spacing: .5px;
}

/* Footer modal form + fieldset */
#f_matricula fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

#f_matricula legend {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

#f_matricula .form-check-input {
    cursor: pointer;
}

#f_matricula .form-check-label {
    cursor: pointer;
}

/* Input compacto en celdas (RD Licencia) */
#tbl_matricula .table-input-rd {
    font-size: 0.875rem;
    /* igual al resto de celdas */
    line-height: 1.1;
    padding: 2px 6px;
    /* más pequeño que form-control-sm */
    height: auto;
    /* evita forzar altura mayor */
    min-height: 1.35rem;
    /* control consistente */
    border: 1px solid #bfc8d0;
    border-radius: .20rem;
    background-color: #fff;
    box-shadow: none;
}

#tbl_matricula .table-input-rd:disabled {
    background-color: #f1f3f5;
    color: #6c757d;
}

#tbl_matricula .table-input-rd:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .25);
}

/* Asegura que la celda no se expanda demasiado */
#tbl_matricula td.rd-view,
#tbl_matricula td.licencia-view {
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
}

/* ===== estilos para programaciones ===== */
.chosen-container .chosen-results li.prog-sin-estructura {
    color: #6c757d;
    font-style: italic;
}

.chosen-container .chosen-results li.prog-finalizada {
    color: #dc3545;
    font-weight: 600;
}

.chosen-container-single .chosen-single.prog-finalizada span {
    color: #dc3545;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------------------------- */
/* ===== estilos para desempeños en registro de notas =====
/* ---------------------------------------------------------------------------------------------- */
/* Colores para opciones de desempeño en selects nativos */
#notas_container option[value="Previo al inicio"],
#modal_combinar_desempeno option[value="Previo al inicio"] {
    background-color: #dc3545;
    color: white;
}

#notas_container option[value="Inicio"],
#modal_combinar_desempeno option[value="Inicio"] {
    background-color: #fd7e14;
    color: white;
}

#notas_container option[value="En proceso"],
#modal_combinar_desempeno option[value="En proceso"] {
    background-color: #ffc107;
    color: #000;
}

#notas_container option[value="Logrado"],
#modal_combinar_desempeno option[value="Logrado"] {
    background-color: #198754;
    color: white;
}

#notas_container option[value="Destacado"],
#modal_combinar_desempeno option[value="Destacado"] {
    background-color: #0d6efd;
    color: white;
}

/* Indicador de color para Chosen / resultado combinar desempeños */
.desempeno-color,
#mcd_resultado .desempeno-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.desempeno-color.color-previo {
    background-color: #dc3545;
}

.desempeno-color.color-inicio {
    background-color: #fd7e14;
}

.desempeno-color.color-proceso {
    background-color: #ffc107;
}

.desempeno-color.color-logrado {
    background-color: #198754;
}

.desempeno-color.color-destacado {
    background-color: #0d6efd;
}

#mcd_resultado {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Indicador de color para Chosen - opción seleccionada (selects de desempeño) */
#notas_container .chosen-single .desempeno-color-selected,
#modal_registro_aporte .chosen-single .desempeno-color-selected,
#modal_combinar_desempeno .chosen-single .desempeno-color-selected {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Reglas específicas solo para selects de desempeño */
#notas_container .chosen-container-single .chosen-single-with-deselect span,
#modal_registro_aporte .chosen-container-single .chosen-single-with-deselect span,
#modal_combinar_desempeno .chosen-container-single .chosen-single-with-deselect span {
    margin-right: 6px;
}

/* Asegurar que el contenedor tenga display flex para alinear correctamente */
#notas_container .chosen-single,
#modal_registro_aporte .chosen-single,
#modal_combinar_desempeno .chosen-single {
    display: flex !important;
    align-items: center;
}

/* No aplicar flex: 1 a los spans para evitar que ocupen la mitad del espacio */
#notas_container .chosen-single span,
#modal_registro_aporte .chosen-single span,
#modal_combinar_desempeno .chosen-single span {
    flex: none;
}

#notas_container .chosen-single .desempeno-color-selected.color-previo,
#modal_registro_aporte .chosen-single .desempeno-color-selected.color-previo,
#modal_combinar_desempeno .chosen-single .desempeno-color-selected.color-previo {
    background-color: #dc3545;
}

#notas_container .chosen-single .desempeno-color-selected.color-inicio,
#modal_registro_aporte .chosen-single .desempeno-color-selected.color-inicio,
#modal_combinar_desempeno .chosen-single .desempeno-color-selected.color-inicio {
    background-color: #fd7e14;
}

#notas_container .chosen-single .desempeno-color-selected.color-proceso,
#modal_registro_aporte .chosen-single .desempeno-color-selected.color-proceso,
#modal_combinar_desempeno .chosen-single .desempeno-color-selected.color-proceso {
    background-color: #ffc107;
}

#notas_container .chosen-single .desempeno-color-selected.color-logrado,
#modal_registro_aporte .chosen-single .desempeno-color-selected.color-logrado,
#modal_combinar_desempeno .chosen-single .desempeno-color-selected.color-logrado {
    background-color: #198754;
}

#notas_container .chosen-single .desempeno-color-selected.color-destacado,
#modal_registro_aporte .chosen-single .desempeno-color-selected.color-destacado,
#modal_combinar_desempeno .chosen-single .desempeno-color-selected.color-destacado {
    background-color: #0d6efd;
}