/* =================================================================== */
/* ======================== MODAL STYLES ======================== */
/* =================================================================== */

#historialTickets .modal-content {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #dee2e6;
    padding: 0;
}

.historial-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 75vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.detalles-padre {
    position: sticky;
    top: 0;
    align-self: start;
    padding: 1.5rem;
    border-right: 1px solid #dee2e6;
}

    .detalles-padre h4 {
        color: #212529;
        font-weight: 600;
    }

    .detalles-padre h5,
    .detalles-padre h6 {
        color: #6c757d;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .detalles-padre ul {
        list-style: none;
        padding-left: 0;
    }

    .detalles-padre .badge {
        background-color: #0d6efd;
        color: #ffffff;
        font-weight: 600;
    }

.timeline-container {
    position: relative;
    padding: 1.5rem 2rem;
}

    .timeline-container::before {
        content: '';
        position: absolute;
        left: 27px;
        top: 1.5rem;
        bottom: 1.5rem;
        width: 2px;
        background-color: #dee2e6;
    }

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: -1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #adb5bd;
    transition: all 0.2s ease-in-out;
}

.timeline-item:hover .timeline-marker {
    border-color: #0d6efd;
    color: #0d6efd;
}

.timeline-content .text-muted {
    color: #6c757d !important;
}

.timeline-content strong {
    color: #212529;
    font-weight: 600;
}

.timeline-content .fst-italic {
    color: #6c757d !important;
    display: block;
    margin-top: 4px;
    padding-left: 1rem;
    border-left: 2px solid #e9ecef;
}

.card-hijo {
    margin-top: 10px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .card-hijo:hover {
        border-color: #0d6efd;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .card-hijo .card-title {
        color: #212529;
        font-weight: 600;
    }

    .card-hijo .badge {
        background-color: #e9ecef;
        color: #495057;
        font-weight: 600;
    }


.main > .navbar {
    flex-shrink: 0;
}

.main > .content {
    flex-grow: 1;
}

.content {
    position: relative;
    background-color: #f8f9fa;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

[data-bs-theme="dark"] .content {
    background-color: #0d1117;
    background-image: none;
    color: #c9d1d9;
}

[data-bs-theme="dark"] .card {
    background-color: #161b22;
    border-color: #30363d;
}

@media (max-width: 768px) {
    .ticket-header {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: row !important;
        justify-content: flex-start !important;
        margin-top: 0.5rem;
    }

    .ticket-footer > div {
        flex-direction: column;
        gap: 1rem;
    }

    .ticket-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
 /*   .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.4rem 0.7rem !important;
        min-width: 2rem !important;
        margin: 0 0.1rem !important;
    }*/

    .ticket-title {
        font-size: 0.95rem;
    }

    .badge-container .badge {
        font-size: 0.75rem;
        padding: 0.25em 0.5em;
    }

    .fecha-creado {
        font-size: 0.8rem !important;
    }
}

/* --- Custom Card Component --- */
.custom-card {
    border-radius: 10px;
    background-color: #fff;
    border: 2px solid white;
    padding: 10px;
    transition: transform 0.3s ease;
    text-align: center;
    margin-bottom: 1rem;
}

.custom-card:hover {
    transform: translateY(-10px);
}

/* =================================================================== */
/* ====================== DARK MODE STYLES ======================= */
/* =================================================================== */

[data-bs-theme="dark"] {
    --kanban-blue-bg: #0c1d36;
    --kanban-blue-border: #1f6feb;
    --kanban-blue-header: #0d2847;
    --kanban-blue-text: #58a6ff;
    --kanban-orange-bg: #341f0b;
    --kanban-orange-border: #bd5600;
    --kanban-orange-header: #4d2d0c;
    --kanban-orange-text: #ffa657;
    --kanban-green-bg: #0d281a;
    --kanban-green-border: #238636;
    --kanban-green-header: #113423;
    --kanban-green-text: #56d364;
    --kanban-purple-bg: #211a2c;
    --kanban-purple-border: #8963b8;
    --kanban-purple-header: #362947;
    --kanban-purple-text: #d0bfff;
    /* Priority levels for dark mode */
    --urgencia-1-bg: #2a0e0e;
    --urgencia-1-border: #ff6b6b;
    --urgencia-1-text: #ff8787;
    --urgencia-2-bg: #2e1509;
    --urgencia-2-border: #ff922b;
    --urgencia-2-text: #ffa94d;
    --urgencia-3-bg: #2f1705;
    --urgencia-3-border: #ffb74d;
    --urgencia-3-text: #ff922b;
    --urgencia-4-bg: #2f1b04;
    --urgencia-4-border: #ffc078;
    --urgencia-4-text: #fab005;
    --urgencia-5-bg: #2a2205;
    --urgencia-5-border: #ffe066;
    --urgencia-5-text: #ffd43b;
    --urgencia-6-bg: #1e2705;
    --urgencia-6-border: #c0eb75;
    --urgencia-6-text: #d0ff00;
    --urgencia-7-bg: #1a2805;
    --urgencia-7-border: #a5e86f;
    --urgencia-7-text: #bfff00;
    --urgencia-8-bg: #162905;
    --urgencia-8-border: #8ce062;
    --urgencia-8-text: #a2ff00;
    --urgencia-9-bg: #142a0a;
    --urgencia-9-border: #70de5e;
    --urgencia-9-text: #85ff44;
    --sacc-green-bg: #0f2a17;
    --sacc-green-border: #56d364;
    --sacc-green-text: #8ce99a;
    background-color: var(--gh-bg-subtle);
    border-color: var(--gh-border-default);
}

    /* Dark mode hover effects */
    [data-bs-theme="dark"] .hover-suave:hover {
        background-color: #2b3648;
    }

    [data-bs-theme="dark"] .contenido-clickeable:not(.disabled-item):not(.disabled-by-selection):hover {
        border-color: var(--gh-border-default);
        box-shadow: 0 8px 24px rgba(1, 4, 9, 0.8);
    }

    [data-bs-theme="dark"] .contenido-seleccionado {
        background-color: #1e293b !important;
        border: 1px solid var(--gh-text-link) !important;
        box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.4) !important;
    }

    [data-bs-theme="dark"] .cabecero-seleccionado {
        background-color: #2b3648 !important;
    }

    [data-bs-theme="dark"] .disabled-item::after,
    [data-bs-theme="dark"] .disabled-by-selection::after {
        background-color: var(--gh-bg-canvas);
        opacity: 0.7;
    }

    [data-bs-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb {
        background-color: #484f58;
    }

    /* Dark mode card components */
    [data-bs-theme="dark"] .card-department {
        background-color: #161b22;
        border: 1px solid #2b3648;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
        color: #fff;
    }

        [data-bs-theme="dark"] .card-department:hover {
            box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
        }

        [data-bs-theme="dark"] .card-department h5 {
            color: #ffffff;
        }

        [data-bs-theme="dark"] .card-department p {
            color: #9ca3af;
        }

        [data-bs-theme="dark"] .card-department i {
            color: #0D47A1;
        }

    [data-bs-theme="dark"] .card-item {
        background-color: #161b22;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Dark mode navigation */
    [data-bs-theme="dark"] .nav-tabs {
        background-color: #101414;
    }

        [data-bs-theme="dark"] .nav-tabs .nav-link {
            background-color: #101414;
        }

            [data-bs-theme="dark"] .nav-tabs .nav-link.active {
                background-color: #d0d4dc;
                color: #000;
            }

    /* Dark mode buttons */
    [data-bs-theme="dark"] .btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    [data-bs-theme="dark"] .btn-outline-danger:hover {
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
        color: #fff;
    }

    [data-bs-theme="dark"] .btn-outline-danger {
        border-color: #dc3545 !important;
        color: #fff;
    }

    [data-bs-theme="dark"] .btn-outline-info {
        border-color: #17a2b8 !important;
        color: #17a2b8
    }

        [data-bs-theme="dark"] .btn-outline-info:hover {
            border-color: #17a2b8 !important;
            background-color: #17a2b8 !important;
            color: #17a2b8
        }


    /* Dark mode DataTables */
    /*[data-bs-theme="dark"] .dataTables_filter label > input {
        background-color: #d0d4dc;
        margin-bottom: 1rem;
    }*/

    [data-bs-theme="dark"] input:disabled {
        cursor: not-allowed;
        opacity: 1;
    }

    [data-bs-theme="dark"] #mensaje-fecha-esperada {
        background-color: #e8f4ff;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 0.9rem;
    }

    [data-bs-theme="dark"] .no-tickets-icon-container {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #adb5bd;
    }

    /* Dark mode Kanban styles */
    [data-bs-theme="dark"] .column-header {
        border-color: var(--gh-border-default);
    }

    [data-bs-theme="dark"] .ticket-card {
        background-color: var(--gh-bg-canvas);
        border-color: var(--gh-border-default);
    }

        [data-bs-theme="dark"] .ticket-card:hover {
            border-color: var(--gh-text-link);
            box-shadow: 0 5px 15px rgba(1, 4, 9, 0.8);
        }

    [data-bs-theme="dark"] .ticket-header,
    [data-bs-theme="dark"] .ticket-footer {
        border-color: var(--gh-border-muted);
    }

    [data-bs-theme="dark"] .ticket-footer {
        background-color: var(--gh-bg-subtle);
    }

    [data-bs-theme="dark"] .ticket-title {
        color: var(--gh-text-default);
    }

    [data-bs-theme="dark"] .ticket-description,
    [data-bs-theme="dark"] .ticket-meta,
    [data-bs-theme="dark"] .empty-column {
        color: var(--gh-text-muted);
    }

        [data-bs-theme="dark"] .empty-column i {
            opacity: 0.3;
        }

    [data-bs-theme="dark"] .fecha-esperada.vencida {
        color: #f85149;
    }

    [data-bs-theme="dark"] .badge-media {
        color: var(--gh-text-default);
        background-color: #a08800;
    }

    /* Dark mode conversation styles */
    [data-bs-theme="dark"] .conversacion-container {
        background-color: #0d1117;
        border-color: #30363d;
        box-shadow: none;
    }

    [data-bs-theme="dark"] .conversacion-header {
        background-color: #161b22;
        color: #c9d1d9;
        border-bottom-color: #30363d;
    }

    [data-bs-theme="dark"] .ticket-titulo {
        color: #c9d1d9;
    }

        [data-bs-theme="dark"] .ticket-titulo i {
            color: #8b949e;
        }

    [data-bs-theme="dark"] .ticket-estado {
        background-color: rgba(35, 134, 54, 0.15);
        color: #3fb950;
        border-color: rgba(35, 134, 54, 0.4);
    }

    [data-bs-theme="dark"] .mensaje-propio .mensaje-burbuja {
        background-color: #1f6feb;
        color: #ffffff;
        border: 1px solid #1f6feb;
    }

        [data-bs-theme="dark"] .mensaje-propio .mensaje-burbuja .mensaje-hora {
            color: rgba(255, 255, 255, 0.7);
        }

    [data-bs-theme="dark"] .mensaje-otro .mensaje-burbuja {
        background-color: #161b22;
        color: #c9d1d9;
        border: 1px solid #30363d;
        box-shadow: none;
    }

    [data-bs-theme="dark"] .mensaje-cabecera {
        color: #8b949e;
    }

    [data-bs-theme="dark"] .mensaje-otro .mensaje-hora {
        color: #8b949e;
    }

    [data-bs-theme="dark"] .mensaje-rol {
        background-color: rgba(139, 148, 158, 0.15);
        color: #8b949e;
        border: 1px solid transparent;
    }

    [data-bs-theme="dark"] .formulario-comentario {
        background-color: #161b22;
        border-top: 1px solid #30363d;
    }

    [data-bs-theme="dark"] .sin-mensajes {
        color: #8b949e;
    }

        [data-bs-theme="dark"] .sin-mensajes i {
            color: #21262d;
        }

        [data-bs-theme="dark"] .sin-mensajes h5 {
            color: #c9d1d9;
        }

    /* Dark mode modal styles */
    [data-bs-theme="dark"] #modalHistorialTicket .modal-content {
        background-color: #0d1117;
        color: #e6edf3;
        border-color: #30363d;
    }

    [data-bs-theme="dark"] .detalles-padre {
        border-right-color: #30363d;
    }

        [data-bs-theme="dark"] .detalles-padre h4 {
            color: #e6edf3;
        }

        [data-bs-theme="dark"] .detalles-padre h5,
        [data-bs-theme="dark"] .detalles-padre h6 {
            color: #7d8590;
        }

        [data-bs-theme="dark"] .detalles-padre .badge {
            background-color: #1f6feb;
            color: #e6edf3;
        }

    [data-bs-theme="dark"] .timeline-container::before {
        background-color: #30363d;
    }

    [data-bs-theme="dark"] .timeline-marker {
        background-color: #0d1117;
        border-color: #7d8590;
        color: #7d8590;
    }

    [data-bs-theme="dark"] .timeline-item:hover .timeline-marker {
        border-color: #58a6ff;
        color: #58a6ff;
        box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    }

    [data-bs-theme="dark"] .timeline-content .text-muted {
        color: #7d8590 !important;
    }

    [data-bs-theme="dark"] .timeline-content strong {
        color: #e6edf3;
    }

    [data-bs-theme="dark"] .timeline-content .fst-italic {
        color: #7d8590 !important;
        border-left-color: #30363d;
    }

    [data-bs-theme="dark"] .card-hijo {
        border-color: #30363d;
        background-color: #161b22;
    }

        [data-bs-theme="dark"] .card-hijo:hover {
            border-color: #58a6ff;
            box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
        }

        [data-bs-theme="dark"] .card-hijo .card-title {
            color: #e6edf3;
        }

        [data-bs-theme="dark"] .card-hijo .badge {
            background-color: #30363d;
            color: #e6edf3;
        }

/*
.dataTables_filter input[type="search"]::placeholder {
    color: #5d6775;
    opacity: 1;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 0.5rem !important;
    padding: 0.5rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        margin: 0 0.2rem !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.5rem !important;
        color: #495057 !important;
        background-color: #fff !important;
        padding: 0.5rem 0.9rem !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 2.5rem !important;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            color: white !important;
            background: #007bff !important;
            border: 1px solid #007bff !important;
            box-shadow: 0 2px 6px rgba(0,123,255,0.2) !important;
            transform: translateY(-1px);
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
            color: #fff !important;
            background: #0056b3 !important;
            border-color: #0056b3 !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,123,255,0.15) !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
            background-color: #f8f9fa !important;
            border-color: #e9ecef !important;
            color: #adb5bd !important;
            box-shadow: none !important;
            cursor: not-allowed !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.previous:before {
            content: "\F284";
            font-family: "bootstrap-icons";
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.next:after {
            content: "\F285";
            font-family: "bootstrap-icons";
        }
*/
/* DataTable Base Styles */
/*.dataTable {
    border: 1px solid #dee2e6 !important;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

    .dataTable thead {
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

        .dataTable thead th {
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.08em;
            color: #6c757d;
            padding: 1rem;
        }

    .dataTable tbody td {
        padding: 0.75rem;
        vertical-align: middle;
        border-color: #f0f2f5;
    }

    .dataTable tbody tr:hover {
        background-color: #f8f9fa !important;
        transform: translateX(4px);
        transition: all 0.3s ease;
    }

    .dataTable thead tr:first-child th:first-child {
        border-top-left-radius: 1rem;
    }

    .dataTable thead tr:first-child th:last-child {
        border-top-right-radius: 1rem;
    }

#tabla-productos-solicitados th,
#tabla-productos-solicitados td {
    padding: 0.25rem;
    font-size: 0.875rem;
}

#tabla-productos-solicitados th {
    font-size: 0.75rem;
}*/

.table-danger {
    background-color: #f8d7da;
    color: #842029;
    pointer-events: none;
}

/* --- Weather and Card Components --- */
.icon-container {
    width: 100px;
    height: 100px;
    background-color: #1E90FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.weather-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-department {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    min-height: 150px;
}

    .card-department:hover {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        transform: translateY(-5px);
    }

    .card-department h5 {
        font-size: 1.1rem;
        font-weight: bold;
        color: #495057;
    }

    .card-department p {
        font-size: 0.9rem;
        color: #6c757d;
    }

    .card-department i {
        font-size: 2rem;
        color: #17a2b8;
        margin-bottom: 10px;
    }

.card-item {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.border-continer {
    border: 1px solid #b5b5b5;
    border-radius: .5rem;
    padding: .5rem;
}

/* --- Navigation Tabs --- */
.nav-tabs {
    background-color: #f5f7fb;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 20px;
    max-width: 80%;
    margin: 0 auto;
    border: none;
}

    .nav-tabs .nav-item {
        flex-grow: 1;
    }

    .nav-tabs .nav-link {
        color: #6c757d;
        font-weight: bold;
        padding: 5px 0;
        border-radius: 10px;
        width: 100%;
        text-align: center;
        background-color: #f5f7fb;
        border: none;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-tabs .nav-link.active {
            background-color: #ffffff;
            color: #000;
            box-shadow: 3px 4px 6px rgba(0.1, 0.1, 0.1, 0.1);
        }

/* --- Animation Classes --- */
@keyframes slide-right {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    80% {
        transform: translateX(0);
        opacity: 1;
    }

    90% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    80% {
        transform: translateX(0);
        opacity: 1;
    }

    90% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.nav-pills .nav-link.active.slide-right,
.nav-tabs .nav-link.active.slide-right {
    animation: slide-right 0.5s ease-out forwards;
}

.nav-pills .nav-link.active.slide-left,
.nav-tabs .nav-link.active.slide-left {
    animation: slide-left 0.5s ease-out forwards;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cardExit {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes cardEnter {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes highlight {
    0% {
        background-color: rgba(144, 238, 144, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

/* --- Button Hover Effects --- */
.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-info:hover {
    background-color: #17a2b8;
    color: #fff;
}

.btn-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* --- Checkbox and Form Elements --- */
.changing {
    transition: background-color 0.3s ease-in-out;
    background-color: #e0e0e0;
}

input[type="checkbox"] {
    transition: transform 0.2s ease;
}

    input[type="checkbox"]:checked {
        transform: scale(0.7);
    }

.permission-icon i {
    transition: opacity 0.2s ease;
}

.nav.nav-vertical .nav-link {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border: none;
    display: block;
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .nav.nav-vertical .nav-link:hover {
        background-color: #f8f9fa;
        color: #212529;
    }

    .nav.nav-vertical .nav-link.active {
        background-color: #fce8e6;
        color: #f85149;
        border-radius: 0 5px 5px 0;
        /*border-left: 4px solid #161b22;*/
        font-weight: 600;
    }

    .nav.nav-vertical .nav-link:not(.active) {
        background-color: transparent;
        color: #495057;
    }

    .nav.nav-vertical .nav-link i {
        margin-right: 1rem;
        vertical-align: middle;
    }

/* --- Stepper Menu --- */
#stepperMenu {
    min-width: 100%;
}

/* --- Custom Toast --- */
.custom-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #343a40;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 1050;
}

    .custom-toast .toast-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .custom-toast .btn-link {
        color: #ff4d4d !important;
        text-decoration: none;
    }

        .custom-toast .btn-link:hover {
            color: #ff1a1a !important;
        }

/* --- List Group Items --- */
.list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .list-group-item:hover {
        transform: translateX(5px);
        border-left-color: var(--bs-primary);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

/* --- Badges --- */
.badge-status {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
}

.bg-urgente {
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    color: white !important;
}

.badge.rounded-pill {
    padding: 0.5em 1em;
}

/* --- Product Images --- */
.product-Image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background-color: var(--bs-secondary);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.default-Image {
    height: 5rem;
    width: 5rem;
    max-width: none;
    transform-origin: bottom right;
    opacity: 0.9;
}

.producto-Image {
    background-color: var(--bs-secondary);
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: .3rem;
}

    .producto-Image .default-Image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- Order and Product Info Cards --- */
.pedido-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
    padding: 1rem;
    max-height: 1rem;
}

    .pedido-info span {
        font-size: 0.9rem;
        color: #666;
    }

.cotizacion-info {
    background-color: #e9ecef;
    border-radius: 0.3rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.precio-destacado {
    font-size: 1.2rem;
    color: #28a745;
    font-weight: 600;
}

.producto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.3s ease;
    width: 100%;
}

    .producto-item:last-child {
        border-bottom: none;
    }

    .producto-item .producto-checkbox {
        /*transform: scale(1.3);*/
        margin-right: 1rem;
    }

    .producto-item .producto-cantidad {
        font-weight: 500;
        color: #00796b;
    }

.orden-card {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.orden-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

.orden-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.orden-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

    .orden-info span {
        font-size: 0.9rem;
        color: #666;
    }

.producto-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 1rem;
    position: relative;
}

    .producto-meta::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 50%;
        background-color: #f0f0f0;
    }

/* --- Card Update States --- */
.actualizando-card {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.card-actualizada {
    animation: scaleUpdate 0.5s ease;
    background-color: rgba(144, 238, 144, 0.1);
}

.card-updating {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.card-exiting {
    animation: cardExit 0.3s ease forwards;
}

.card-entering {
    animation: cardEnter 0.3s ease forwards;
}

.update-highlight {
    animation: highlight 1.5s ease-out;
}

/*.producto-seleccionado {
    background-color: #e8f5e9 !important;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}*/

.card-nueva {
    animation: slideIn 0.5s ease-out;
    transform-origin: top;
}

.card-empty-animation {
    animation: fadeIn 0.6s ease-out;
}

.card-removing {
    animation: fadeOut 0.4s ease-out forwards;
}

.bg-gray {
    background-color: #f5f5f5;
}

/* --- Card Overlay --- */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

    /*   .card-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
    }*/

    .card-overlay span {
        font-size: 0.9rem;
        color: #666;
        margin-top: 1rem;
    }

.actualizando {
    position: relative;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.offcanvas-body.custom-scrollbar {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.os-theme-dark .os-padding {
    right: 7px;
}

/* =================================================================== */
/* ============= INTERACTION STYLES FOR CONTAINERS ============ */
/* =================================================================== */

.contenido-clickeable {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
    position: relative;
}

    .contenido-clickeable:not(.disabled-item):not(.disabled-by-selection):hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
    }

.contenido-seleccionado {
    background-color: #e8f5e9 !important;
    border: 1px solid #c8e6c9 !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.cabecero-seleccionado {
    background-color: #e8f5e9 !important;
    border: 1px 1px 0 1px solid #c8e6c9 !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
    background-image: none !important;
    border-radius: 6px;
}

.disabled-item,
.disabled-by-selection {
    position: relative;
    cursor: not-allowed;
    pointer-events: none;
}

    .disabled-item::after,
    .disabled-by-selection::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        border-radius: inherit;
        pointer-events: none;
        background-color: #ffffff;
        opacity: 0.6;
    }

    .disabled-item .btn-editar-cotizacion,
    .disabled-by-selection .btn-editar-cotizacion {
        position: relative;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 11;
    }


/* =================================================================== */
/* ================ TICKET FORM =============== */
/* =================================================================== */

.ticket-input[readonly] {
    background-color: #f1f5f9 !important;
    color: #64748b;
    border-style: dashed !important;
}

.ts-wrapper.ticket-ts .ts-control {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    box-shadow: none;
    transition: all 0.2s;
}

.ts-wrapper.ticket-ts.focus .ts-control {
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.5) !important;
}

.transition-rotate {
    transition: transform 0.3s ease;
}
.btn-collapse-contexto[aria-expanded="true"] .transition-rotate,
button[data-bs-target="#contextCollapse"][aria-expanded="true"] .transition-rotate {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    #contextCollapse {
        display: block !important;
    }
}

@media (max-width: 576px) {
    #form-ticket-dinamico .modal-header {
        padding: 0.5rem 0.75rem !important;
    }
    #form-ticket-dinamico .modal-header h4 {
        font-size: 1rem;
    }
    #form-ticket-dinamico .modal-header .bg-primary {
        padding: 0.4rem 0.6rem !important;
        margin-right: 0.5rem !important;
    }
    #form-ticket-dinamico .modal-header .bg-primary i {
        font-size: 0.9rem;
    }
    #form-ticket-dinamico .modal-header .btn-close {
        font-size: 0.7rem;
    }
    #form-ticket-dinamico .modal-footer {
        padding: 0.5rem 0.75rem !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    #form-ticket-dinamico .modal-footer .btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 0.4rem 1rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    #form-ticket-dinamico .row.g-0 > [class*="col-"] {
        padding: 0.75rem !important;
    }
    #form-ticket-dinamico .row.g-0 > [class*="col-"]:first-child {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 0.75rem !important;
    }
    #form-ticket-dinamico .row.g-2 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #contextCollapse .mb-4 {
        margin-bottom: 0.75rem !important;
    }
}


[data-bs-theme="dark"] .conversacion-container {
    background-color: #0d1117;
    border-color: #30363d;
    box-shadow: none;
}

[data-bs-theme="dark"] .conversacion-header {
    background-color: #161b22;
    color: #c9d1d9;
    border-bottom-color: #30363d;
}

[data-bs-theme="dark"] .ticket-titulo {
    color: #c9d1d9;
}

    [data-bs-theme="dark"] .ticket-titulo i {
        color: #8b949e;
    }

[data-bs-theme="dark"] .ticket-estado {
    background-color: rgba(35, 134, 54, 0.15);
    color: #3fb950;
    border-color: rgba(35, 134, 54, 0.4);
}

[data-bs-theme="dark"] .mensaje-propio .mensaje-burbuja {
    background-color: #1f6feb;
    color: #ffffff;
    border: 1px solid #1f6feb;
}

    [data-bs-theme="dark"] .mensaje-propio .mensaje-burbuja .mensaje-hora {
        color: rgba(255, 255, 255, 0.7);
    }

[data-bs-theme="dark"] .mensaje-otro .mensaje-burbuja {
    background-color: #161b22; /* Fondo de "caja" de GitHub */
    color: #c9d1d9;
    border: 1px solid #30363d;
    box-shadow: none;
}

[data-bs-theme="dark"] .mensaje-cabecera {
    color: #8b949e; /* Color de texto silenciado */
}

[data-bs-theme="dark"] .mensaje-otro .mensaje-hora {
    color: #8b949e;
}

[data-bs-theme="dark"] .mensaje-rol {
    background-color: rgba(139, 148, 158, 0.15); /* Badge sutil */
    color: #8b949e;
    border: 1px solid transparent;
}

[data-bs-theme="dark"] .formulario-comentario {
    background-color: #161b22;
    border-top: 1px solid #30363d;
}

[data-bs-theme="dark"] .sin-mensajes {
    color: #8b949e;
}

    [data-bs-theme="dark"] .sin-mensajes i {
        color: #21262d; /* Icono muy oscuro y sutil */
    }

    [data-bs-theme="dark"] .sin-mensajes h5 {
        color: #c9d1d9;
    }

/* =================================================================== */
/* ============= CUSTOM DROPDOWN MENU STYLES (REVISED) =============== */
/* =================================================================== */

/* --- Estructura y Transición Base (Aplica a ambos temas) --- */
.dropdown-menu {
    --bs-dropdown-min-width: 240px; /* Un poco más de espacio */
    --bs-dropdown-padding-x: 0.5rem;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-border-radius: 0.75rem;
    --bs-dropdown-link-border-radius: 0.5rem;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(4px) !important;
    background-color: rgba(255, 255, 255, 0.8);
}

    /* --- Estilo base para todos los items --- */
    .dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.6rem 0.8rem;
        font-weight: 500;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

/* --- TEMA OSCURO (DARK MODE) - Estilo GitHub Mejorado --- */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(4px) !important;
    border: 1px solid #30363d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

    /* Estilo para los items que son enlaces (<a>) */
    [data-bs-theme="dark"] .dropdown-menu a.dropdown-item {
        color: #c9d1d9; /* Texto principal gris claro */
    }

        [data-bs-theme="dark"] .dropdown-menu a.dropdown-item i {
            color: #848d97; /* Iconos grises */
            width: 16px; /* Ancho fijo para alinear el texto */
            text-align: center;
        }

        [data-bs-theme="dark"] .dropdown-menu a.dropdown-item:hover,
        [data-bs-theme="dark"] .dropdown-menu a.dropdown-item:focus {
            background-color: #30363d !important;
            border-color: #8b949e !important;
            color: #ffffff !important;
            border-radius: 8px !important;
        }

            [data-bs-theme="dark"] .dropdown-menu a.dropdown-item:hover i {
                color: #ffffff;
            }

    /* Estilo para los items que NO son enlaces (como los divs de los switches) */
    [data-bs-theme="dark"] .dropdown-menu .dropdown-item:not(a) {
        color: #c9d1d9;
        cursor: default; /* No parece clickeable */
    }

        /* Quitar el efecto hover de los items que no son enlaces */
        [data-bs-theme="dark"] .dropdown-menu .dropdown-item:not(a):hover {
            background-color: transparent !important;
        }

    /* Divisor */
    [data-bs-theme="dark"] .dropdown-menu .dropdown-divider {
        border-top: 1px solid #21262d;
        margin: 0.5rem 0;
    }

    /* Enlace de "Cerrar sesión" */
    [data-bs-theme="dark"] .dropdown-menu a.text-danger {
        color: #f85149 !important;
    }

        [data-bs-theme="dark"] .dropdown-menu a.text-danger i {
            color: #f85149 !important;
        }

        [data-bs-theme="dark"] .dropdown-menu a.text-danger:hover {
            background-color: rgba(218, 54, 51, 0.15);
            color: #ff938d !important;
        }

            [data-bs-theme="dark"] .dropdown-menu a.text-danger:hover i {
                color: #ff938d !important;
            }

.papel-picado-container {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.pp-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    animation-name: sway-wrapper;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

    .pp-wrapper img {
        position: absolute;
        /*opacity: 0.3;*/
        width: 20%;
    }

.pp-1 {
    top: 60px;
    left: 300px;
    transform: rotate(19deg);
}

.pp-2 {
    top: 60px;
    left: 660px;
    transform: rotate(-23deg);
}

.pp-3 {
    top: 70px;
    right: 580px;
    transform: rotate(-3deg);
}

.pp-4 {
    top: 42px;
    right: 950px;
    transform: rotate(12deg);
}

.pp-5 {
    top: 50px;
    right: 250px;
    transform: rotate(19deg);
}

.pp-6 {
    top: 50px;
    right: -110px;
    transform: rotate(-23deg);
}

.pp-7 {
    top: 100px;
    left: 120px;
    transform: rotate(-200deg) scaleY(-1);
}

.pp-8 {
    top: 82px;
    left: 1600px;
    transform: rotate(190deg) scaleY(-1);
}

.pp-wrapper:nth-child(1) {
    animation-duration: 12s;
}

.pp-wrapper:nth-child(2) {
    animation-duration: 14s;
    animation-delay: -2s;
}

.pp-wrapper:nth-child(3) {
    animation-duration: 13s;
    animation-delay: -4s;
}

.pp-wrapper:nth-child(4) {
    animation-duration: 15s;
    animation-delay: -1s;
}


@keyframes sway-wrapper {
    from {
        transform: translateX(-10px);
    }

    to {
        transform: translateX(10px);
    }
}

#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

    #welcome-overlay canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

/*#welcome-message {
    position: relative;
    z-index: 2;
    opacity: 0; 
}*/

/*@keyframes pop-in-out {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }

    10%, 90% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-message {
    animation: pop-in-out 5s ease-in-out forwards;
}

.viva-mexico-gradient {
    background: linear-gradient(45deg, #116637 20%, #FFFFFF 50%, #CE1B22 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-size: 100%;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);*/ /* Un blanco un poco transparente */
/*text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}*/
/* --- Estructura Principal del Contenedor del Historial --- */
/* (Heredará el color de fondo y de texto del .modal-content) */

/* =================================================================== */
/* ===        CSS BASE (MODO CLARO) - SIN VARIABLES              === */
/* =================================================================== */

/* --- Estilo Base del Modal (Light Mode) --- */
#modalHistorialTicket .modal-content {
    background-color: #ffffff; /* Fondo blanco */
    color: #212529; /* Texto oscuro */
    border: 1px solid #dee2e6; /* Borde gris claro */
    padding: 0;
}

.historial-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 75vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.detalles-padre {
    position: sticky;
    top: 0;
    align-self: start;
    padding: 1.5rem;
    border-right: 1px solid #dee2e6;
}

    .detalles-padre h4 {
        color: #212529;
        font-weight: 600;
    }

    .detalles-padre h5, .detalles-padre h6 {
        color: #6c757d; /* Texto secundario gris */
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .detalles-padre ul {
        list-style: none;
        padding-left: 0;
    }

    .detalles-padre .badge {
        background-color: #0d6efd; /* Azul de Bootstrap */
        color: #ffffff;
        font-weight: 600;
    }

/* --- Columna Derecha: Línea de Tiempo (Light Mode) --- */
.timeline-container {
    position: relative;
    padding: 1.5rem 2rem;
}

    .timeline-container::before {
        content: '';
        position: absolute;
        left: 27px;
        top: 1.5rem;
        bottom: 1.5rem;
        width: 2px;
        background-color: #dee2e6; /* Línea de tiempo gris claro */
    }

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: -1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff; /* Fondo del marcador blanco */
    border: 2px solid #adb5bd; /* Borde del marcador gris */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #adb5bd; /* Icono gris */
    transition: all 0.2s ease-in-out;
}

.timeline-item:hover .timeline-marker {
    border-color: #0d6efd; /* Borde azul al pasar el ratón */
    color: #0d6efd; /* Icono azul al pasar el ratón */
}

.timeline-content .text-muted {
    color: #6c757d !important;
}

.timeline-content strong {
    color: #212529;
    font-weight: 600;
}

.timeline-content .fst-italic {
    color: #6c757d !important;
    display: block;
    margin-top: 4px;
    padding-left: 1rem;
    border-left: 2px solid #e9ecef; /* Borde de cita muy claro */
}

/* Tarjeta para los tickets hijos (Light Mode) */
.card-hijo {
    margin-top: 10px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa; /* Fondo gris claro */
    border-radius: 6px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .card-hijo:hover {
        border-color: #0d6efd;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .card-hijo .card-title {
        color: #212529;
        font-weight: 600;
    }

    .card-hijo .badge {
        background-color: #e9ecef; /* Badge gris claro */
        color: #495057; /* Texto de badge oscuro */
        font-weight: 600;
    }
/* =================================================================== */
/* ===       SOBRESCRITURAS PARA DARK MODE (GITHUB STYLE)        === */
/* =================================================================== */

[data-bs-theme="dark"] #modalHistorialTicket .modal-content {
    background-color: #0d1117;
    color: #e6edf3;
    border-color: #30363d;
}

[data-bs-theme="dark"] .detalles-padre {
    border-right-color: #30363d;
    /*background-color: #161b22;*/
}

    [data-bs-theme="dark"] .detalles-padre h4 {
        color: #e6edf3;
    }

    [data-bs-theme="dark"] .detalles-padre h5,
    [data-bs-theme="dark"] .detalles-padre h6 {
        color: #7d8590;
    }

    [data-bs-theme="dark"] .detalles-padre .badge {
        background-color: #1f6feb;
        color: #e6edf3;
    }

[data-bs-theme="dark"] .timeline-container::before {
    background-color: #30363d;
}

[data-bs-theme="dark"] .timeline-marker {
    background-color: #0d1117;
    border-color: #7d8590;
    color: #7d8590;
}

[data-bs-theme="dark"] .timeline-item:hover .timeline-marker {
    border-color: #58a6ff;
    color: #58a6ff;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
}

[data-bs-theme="dark"] .timeline-content .text-muted {
    color: #7d8590 !important;
}

[data-bs-theme="dark"] .timeline-content strong {
    color: #e6edf3;
}

[data-bs-theme="dark"] .timeline-content .fst-italic {
    color: #7d8590 !important;
    border-left-color: #30363d;
}

[data-bs-theme="dark"] .card-hijo {
    border-color: #30363d;
    background-color: #161b22;
}

    [data-bs-theme="dark"] .card-hijo:hover {
        border-color: #58a6ff;
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
    }

    [data-bs-theme="dark"] .card-hijo .card-title {
        color: #e6edf3;
    }

    [data-bs-theme="dark"] .card-hijo .badge {
        background-color: #30363d;
        color: #e6edf3;
    }


/**
    Clases del rubs. si están aquí es por que las uso. NO SON PRUEBAS
*/

/*Efecto hover y cambio cursor*/
.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .clickable:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* Se aplica a todos los elementos que cambiarán de color/sombra */
.pedido-card,
.card-header,
.producto-item {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .producto-item.producto-seleccionado {
        border-left: 3px solid #28a745;
        background-color: var(--light-selection-bg);
    }

[data-bs-theme="dark"] .producto-item.producto-seleccionado {
    border-left: 3px solid var(--gh-selection-border);
    background-color: var(--gh-selection-bg);
}

.list-group-item.proveedor-item.proveedor-seleccionado {
    background-color: var(--light-selection-bg);
    border-left: 3px solid #28a745;
}

[data-bs-theme="dark"] .list-group-item.proveedor-item.proveedor-seleccionado {
    background-color: var(--gh-selection-bg);
    border-left: 3px solid var(--gh-selection-border);
}

.card-header.cabecero-seleccionado {
    background-color: var(--light-selection-bg);
    border-bottom-color: var(--light-selection-border) !important;
}

[data-bs-theme="dark"] .card-header.cabecero-seleccionado {
    background-color: var(--gh-selection-bg);
    border-bottom-color: var(--gh-selection-border) !important;
}

.pedido-card.contenido-seleccionado {
    border-color: var(--light-selection-border);
}

[data-bs-theme="dark"] .pedido-card.contenido-seleccionado {
    border-color: var(--gh-selection-border);
    box-shadow: 0 0 0 1px var(--gh-selection-border);
}

[data-bs-theme="dark"] .table-active {
    --bs-table-accent-bg: var(--gh-selection-bg);
}

[data-bs-theme="dark"] .input-group-text {
    background: #282c34 !important;
}

[data-bs-theme="dark"] .detalle-orden {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(0, 0, 0) !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr.table-active:hover {
    --bs-table-accent-bg: rgba(88, 166, 255, 0.15);
}

.proveedor-item.fila-no-cotizada {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: rgba(110, 118, 129, 0.1);
    transition: opacity 0.2s ease-in-out;
}

    .proveedor-item.fila-no-cotizada .btn-editar-cotizacion {
        opacity: inherit;
        cursor: pointer;
        transition: opacity 0.2s ease-in-out;
    }

        .proveedor-item.fila-no-cotizada .btn-editar-cotizacion:hover {
            opacity: 1;
        }

    .proveedor-item.fila-no-cotizada:has(.btn-editar-cotizacion:hover) {
        opacity: 0.8;
    }

@keyframes flash {
    0% {
        background-color: rgba(0, 123, 255, 0);
    }

    50% {
        background-color: rgba(0, 123, 255, 0.2);
    }

    100% {
        background-color: rgba(0, 123, 255, 0);
    }
}

.card.resaltada-temporal {
    animation: flash 2.5s ease-out;
}


#user-selector-container {
    display: flex;
    gap: 0.5rem; /* 8px */
    padding-bottom: 0.5rem;
    overflow-x: auto;
    margin-top: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    #user-selector-container::-webkit-scrollbar {
        display: none;
    }

.user-card {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: .5px solid var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
    transition: all 0.2s ease-in-out;
    flex-shrink: 0; /* Evita que las tarjetas se encojan */
    max-width: 320px;
}

    .user-card .avatar {
        width: 32px;
        height: 32px;
        object-fit: cover;
    }

    .user-card .user-info {
        line-height: 1.2;
    }

    .user-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--bs-box-shadow-sm);
        background-color: var(--bs-secondary-bg);
    }

    .user-card.selected {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
        color: var(--bs-white);
        transform: translateY(-2px);
        margin-top: 8px;
        box-shadow: 0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.25);
    }

        .user-card.selected .user-name {
            color: var(--bs-white) !important;
        }

        .user-card.selected .user-puesto {
            color: var(--bs-primary-bg-subtle) !important; /* Un blanco con opacidad */
        }

.navbar .fa-gear {
    transition: transform 0.3s ease; /* Suaviza la animación */
}

.navbar .dropdown-toggle.show .fa-gear {
    transform: rotate(45deg); /* Gira 45 grados al abrir */
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #ffffff !important;
}

#notificationCounter {
    color: #ffffff !important;
    font-size: 0.7em;
    padding: 0.3em 0.5em;
}

[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: #ffffff !important;
}


[data-bs-theme="dark"] .ts-dropdown {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

    /* Opciones dentro del dropdown */
    [data-bs-theme="dark"] .ts-dropdown .ts-dropdown-content .option {
        color: #c9d1d9;
        padding: 8px 12px;
    }

    /* Opción activa (cuando navegas con las flechas) */
    [data-bs-theme="dark"] .ts-dropdown .ts-dropdown-content .active {
        background-color: #1f6feb;
        color: #ffffff;
    }

    /* Mensaje de "No se encontraron resultados" */
    [data-bs-theme="dark"] .ts-dropdown .no-results {
        color: #8b949e;
        padding: 8px 12px;
    }
/*
 * CSS para Tamaños de Modal y Fuente Dinámica
*/

/* --- 1. TAMAÑOS DEL MODAL --- */
/* Pequeño (sm) */
#adminTicketModal .modal-dialog.modal-size-sm {
    width: 500px;
    height: 60vh;
    max-width: 90vw;
}
/* Mediano (md) - Por defecto */
#adminTicketModal .modal-dialog.modal-size-md {
    width: 800px;
    height: 80vh;
    max-width: 90vw;
}
/* Grande (lg) */
#adminTicketModal .modal-dialog.modal-size-lg {
    width: 95vw;
    height: 90vh;
    max-width: 1600px;
}

/* Transición suave al cambiar de tamaño */
#adminTicketModal .modal-dialog {
    transition: width 0.3s ease, height 0.3s ease;
}

    /* --- 2. TAMAÑOS DE FUENTE --- */
    /* Fuente para tamaño Pequeño */
    #adminTicketModal .modal-dialog.modal-size-sm {
        --font-scale: 0.85;
    }
    /* Fuente para tamaño Mediano */
    #adminTicketModal .modal-dialog.modal-size-md {
        --font-scale: 1;
    }
    /* Fuente para tamaño Grande */
    #adminTicketModal .modal-dialog.modal-size-lg {
        --font-scale: 1.1;
    }

/* Aplicamos la escala a los elementos */
#adminTicketModal .ticket-titulo {
    font-size: calc(1.25rem * var(--font-scale, 1));
}

#adminTicketModal .mensaje-texto, #adminTicketModal textarea {
    font-size: calc(1rem * var(--font-scale, 1));
}

#adminTicketModal small, #adminTicketModal .small, #adminTicketModal .mensaje-hora {
    font-size: calc(0.875em * var(--font-scale, 1));
}


.actualizando-card .ticket-card {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

@keyframes card-exit {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.card-exit-animation {
    animation: card-exit 0.3s ease-out forwards;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-enter-animation {
    animation: card-enter 0.4s ease-out forwards;
}

.custom-scrollbar {
    overflow-y: auto;
    position: relative;
}

.custom-scrollbar,
.os-host,
.os-padding,
.os-viewport {
    transform: none !important;
    isolation: auto !important;
}

body.os-host-overflow {
    overflow: visible !important;
    padding-right: 0 !important;
}

.ts-dropdown {
    z-index: 2000 !important;
}

.dropdown-notifications {
    width: 380px; /* Un poco más de espacio */
    border: none;
    border-radius: 0.5rem; /* Bordes más suaves */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    font-size: 0.9rem;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease-in-out;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item:hover {
        background-color: rgba(var(--bs-secondary-rgb), 0.05);
        cursor: pointer;
    }

    /* Estado: Notificación Leída */
    .notification-item.is-read {
        opacity: 0.7;
        background-color: #f8f9fa; /* Un fondo muy sutil */
    }


#notificationCounter {
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

    #notificationCounter.is-visible {
        transform: scale(1);
        animation: badge-pop 0.3s 0.1s ease-out;
    }

@keyframes badge-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.dropdown-notifications .os-viewport {
    max-height: 350px !important; /* Forzar la altura */
    /*background-color: rgba(0, 255, 0, 0.1) !important;*/ /* Fondo verde transparente */
}


[data-bs-theme="dark"] .dropdown-notifications {
    background-color: var(--gh-bg-subtle);
    border: 1px solid #30363d;
    color: #c9d1d9;
}

    [data-bs-theme="dark"] .dropdown-notifications .dropdown-header,
    [data-bs-theme="dark"] .dropdown-notifications .dropdown-footer {
        /*background-color: #0d1117;*/
        border-color: #30363d;
    }

        [data-bs-theme="dark"] .dropdown-notifications .dropdown-header a,
        [data-bs-theme="dark"] .dropdown-notifications .dropdown-footer a {
            color: #8b949e;
            transition: color 0.2s ease;
        }

            [data-bs-theme="dark"] .dropdown-notifications .dropdown-header a:hover,
            [data-bs-theme="dark"] .dropdown-notifications .dropdown-footer a:hover {
                color: #58a6ff;
            }


[data-bs-theme="dark"] .list-group-item.notification-item {
    background-color: transparent;
    border-color: #21262d;
    transition: background-color 0.2s ease;
}

    [data-bs-theme="dark"] .list-group-item.notification-item:hover {
        background-color: #21262d;
    }

[data-bs-theme="dark"] .notification-item .notification-item__message {
    color: #c9d1d9;
    font-weight: 500;
}

[data-bs-theme="dark"] .notification-item .notification-item__meta {
    color: #8b949e;
}

[data-bs-theme="dark"] .list-group-item.notification-item.is-read {
    background-color: transparent;
    opacity: 0.8;
}

    [data-bs-theme="dark"] .list-group-item.notification-item.is-read:hover {
        opacity: 1;
    }

[data-bs-theme="dark"] .notification-item__icon {
}

[data-bs-theme="dark"] .notifications-empty-state {
    color: #8b949e;
}

[data-bs-theme="dark"] .notifications-dropdown-title {
    color: #8b949e;
}

[data-bs-theme="dark"] .os-theme-dark > .os-scrollbar {
    background: #0d1117;
}

    [data-bs-theme="dark"] .os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle {
        background: #fff;
    }

.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus {
    background-color: transparent !important;
    color: inherit !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa !important; /* O el color que quieras */
    color: inherit !important;
}

.navbar .nav-item > .nav-link:hover {
    background-color: transparent !important;
}

#modal-producto-formulario .nav.nav-vertical {
    background-color: transparent !important;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.file-drop-area.dragover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.modal-body .nav.nav-vertical {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important
}

[data-bs-theme="dark"] .modal-body .nav.nav-vertical .nav-link {
    color: #adb5bd;
}

    [data-bs-theme="dark"] .modal-body .nav.nav-vertical .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #f8f9fa;
    }

    [data-bs-theme="dark"] .modal-body .nav.nav-vertical .nav-link.active {
        background-color: var(--bs-primary);
        color: #fff;
        font-weight: 500;
        border-radius: 0 5px 5px 0;
        border-left: 4px solid #ffffff;
        font-weight: 600;
    }


[data-bs-theme="dark"] .ts-control {
    background-color: #212529; /* Fondo oscuro del input */
    border-color: #495057; /* Borde sutil */
}

[data-bs-theme="dark"] .ts-wrapper.multi .ts-control .item {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border: 0;
    text-shadow: none;
}

    [data-bs-theme="dark"] .ts-wrapper.multi .ts-control .item .remove-button {
        color: #ffffff !important;
        opacity: 0.7;
    }

        [data-bs-theme="dark"] .ts-wrapper.multi .ts-control .item .remove-button:hover {
            opacity: 1;
        }

[data-bs-theme="dark"] .ts-wrapper.single .ts-control .item {
    color: #dee2e6;
}

[data-bs-theme="dark"] .ts-control .item {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
}

[data-bs-theme="dark"] .ts-control .remove-button {
    color: #fff !important;
    opacity: 0.7;
}

    [data-bs-theme="dark"] .ts-control .remove-button:hover {
        opacity: 1;
    }

/*[data-bs-theme="dark"] .ts-control input {
    color: #dee2e6 !important;
}

    [data-bs-theme="dark"] .ts-control input::placeholder {
        color: #6c757d;
    }*/

[data-bs-theme="dark"] .ts-control.focus,
[data-bs-theme="dark"] .ts-control.input-active {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ts-dropdown[data-bs-theme="dark"] {
    background: #343a40;
    border: 1px solid #495057;
    color: #f8f9fa; /* Color de texto general */
}

    .ts-dropdown[data-bs-theme="dark"] .option {
        padding: 8px 12px;
    }

        .ts-dropdown[data-bs-theme="dark"] .option:hover {
            background-color: rgba(13, 110, 253, 0.25);
            color: #f8f9fa;
        }

    .ts-dropdown[data-bs-theme="dark"] .active {
        background-color: #0d6efd;
        color: #fff;
    }

    .ts-dropdown[data-bs-theme="dark"] .no-results {
        color: #adb5bd;
    }

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.4s ease-out forwards;
}

.list-group-item:nth-child(1) {
    animation-delay: 0.1s;
}

.list-group-item:nth-child(2) {
    animation-delay: 0.15s;
}

.list-group-item:nth-child(3) {
    animation-delay: 0.2s;
}

.list-group-item:nth-child(4) {
    animation-delay: 0.25s;
}

.list-group-item-action {
    transition: background-color 0.2s ease;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 50%;
}

    .avatar .avatar-initial {
        line-height: 1;
    }

.bg-primary-subtle {
    background-color: rgba(59, 130, 246, 0.1);
}

.text-primary-emphasis {
    color: #1E40AF;
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.1);
}

.text-warning-emphasis {
    color: #92400E;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



:root {
    --z-index-modal: 1150;
    --z-index-backdrop: 1140;
}

.swal2-container {
    z-index: 2050 !important;
}

/* --- Contenedor principal y fondo --- */
[data-bs-theme="dark"] .swal2-container.swal2-backdrop-show,
[data-bs-theme="dark"] .swal2-container.swal2-noanimation {
    background: rgba(13, 17, 23, 0.8) !important; /* Fondo del backdrop (lienzo oscuro) */
}

/* --- Ventana Modal (Popup) --- */
[data-bs-theme="dark"] .swal2-popup {
    background: var(--gh-bg-subtle, #161b22) !important; /* Fondo de tarjeta */
    color: var(--gh-text-default, #e6edf3) !important; /* Texto principal */
    border: 1px solid var(--gh-border-default, #30363d);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

/* --- Título y Contenido --- */
[data-bs-theme="dark"] .swal2-title {
    color: var(--gh-text-default, #e6edf3) !important;
}

[data-bs-theme="dark"] .swal2-html-container {
    color: var(--gh-text-muted, #848d97) !important;
}

/* --- Iconos (Success, Error, Warning, Info, Question) --- */
[data-bs-theme="dark"] .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(35, 134, 54, 0.5) !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #238636 !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #f85149 !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-error {
    border-color: rgba(248, 81, 73, 0.5) !important;
    color: #f85149 !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-warning {
    border-color: rgba(187, 128, 9, 0.5) !important;
    color: #d29922 !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-info {
    border-color: rgba(56, 139, 253, 0.5) !important;
    color: #58a6ff !important;
}

[data-bs-theme="dark"] .swal2-icon.swal2-question {
    border-color: rgba(139, 148, 158, 0.5) !important;
    color: #8b949e !important;
}

/* --- Botones --- */
[data-bs-theme="dark"] .swal2-styled.swal2-confirm {
    background-color: var(--gh-btn-primary-bg, #238636) !important;
    border-color: var(--gh-btn-primary-bg, #238636) !important;
    color: var(--gh-btn-primary-text, #fff) !important;
    box-shadow: none !important;
}

    [data-bs-theme="dark"] .swal2-styled.swal2-confirm:hover {
        background-color: var(--gh-btn-primary-hover-bg, #2ea043) !important;
        border-color: var(--gh-btn-primary-hover-bg, #2ea043) !important;
    }

[data-bs-theme="dark"] .swal2-styled.swal2-cancel,
[data-bs-theme="dark"] .swal2-styled.swal2-deny {
    background-color: var(--gh-btn-bg, #21262d) !important;
    border-color: var(--gh-btn-border, #30363d) !important;
    color: var(--gh-btn-text, #c9d1d9) !important;
    box-shadow: none !important;
}

    [data-bs-theme="dark"] .swal2-styled.swal2-cancel:hover,
    [data-bs-theme="dark"] .swal2-styled.swal2-deny:hover {
        background-color: var(--gh-btn-hover-bg, #30363d) !important;
        border-color: var(--gh-btn-hover-border, #8b949e) !important;
    }

[data-bs-theme="dark"] .swal2-styled.swal2-deny {
    background-color: #8b0000 !important; /* Rojo oscuro para 'Deny' */
}

    [data-bs-theme="dark"] .swal2-styled.swal2-deny:hover {
        background-color: var(--gh-btn-danger-hover-bg, #da3633) !important;
    }

/* --- Otros Elementos --- */
[data-bs-theme="dark"] .swal2-close:focus {
    box-shadow: none !important;
}

[data-bs-theme="dark"] .swal2-close:hover {
    color: #fff !important;
}

[data-bs-theme="dark"] .swal2-timer-progress-bar {
    background: var(--gh-text-link, #58a6ff) !important;
}

[data-bs-theme="light"] .navbar-bg .nav-icon i {
    /*
      Color: Un gris oscuro (#333) es una opción segura y legible.
      Puedes cambiarlo por el color que mejor se ajuste a tu paleta de diseño.
    */
    color: #333 !important;
    /*
      Transición: Opcional, pero hace que el cambio de color sea suave
      cuando el usuario cambia entre temas.
    */
    transition: color 0.3s ease;
}



[data-bs-theme="light"] .nav-link {
    color: #000 !important;
}

[data-bs-theme="light"] .navbar-bg .nav-icon i {
    color: #000 !important;
}

[data-bs-theme="light"] .navbar-bg .nav-icon:hover i {
    color: #57606a !important;
}

[data-bs-theme="light"] .js-sidebar-toggle .hamburger {
    /* Aseguramos que las tres líneas del hamburger sean visibles */
    background-color: #333;
}

    [data-bs-theme="light"] .js-sidebar-toggle .hamburger::before,
    [data-bs-theme="light"] .js-sidebar-toggle .hamburger::after {
        background-color: #333;
    }

.navbar-user-info {
    display: none;
}

@media (min-width: 992px) {
    .navbar-user-info {
        display: flex !important;
        align-items: center;
    }
}

:root {
    --bg-app: #f0f2f5;
    --bg-tile: #ffffff;
    --gap: 20px;
    --radius: 8px;
}




.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 360px auto;
    gap: var(--gap);
    padding: var(--gap);
    max-width: 1800px;
    margin: 0 auto;
    grid-template-areas:
        "profile profile weather status"
        "chart updates updates calendar"
        "tickets tickets tickets users";
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "profile profile"
            "status  weather"
            "chart   chart"
            "updates calendar"
            "tickets tickets"
            "users   users";
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "profile" "weather" "status"
            "chart" "updates" "calendar"
            "users" "tickets";
    }
}

/*.card {
    background: var(--bg-tile);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
*/
.area-profile {
    grid-area: profile;
    background: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 2rem;
}

.area-weather {
    grid-area: weather;
}

.area-calendar {
    grid-area: calendar;
    padding: 0 !important;
}

.area-chart {
    grid-area: chart;
}

.area-updates {
    grid-area: updates;
}

.area-status {
    grid-area: status;
}

.area-users {
    grid-area: users;
}

.area-tickets {
    grid-area: tickets;
}

.tile-label {
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 16px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tile-content {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    padding-right: 5px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-left: 2px solid #e5e7eb;
    padding-left: 15px;
    margin-left: 8px;
    position: relative;
}

    .timeline-item:last-child {
        border-left: 2px solid transparent;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -6px;
        top: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid var(--bs-primary);
    }

.timeline-time {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
}

.timeline-content {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.3;
}

.timeline-title {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.card-bento {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .card-bento {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}

.activity-card-premium {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-card-premium:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .activity-card-premium {
    background: rgba(30, 41, 59, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .activity-card-premium:hover {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 5;
    transition: 0.2s;
}

.area-profile {
    grid-area: profile;
    background: radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.4) 0px, transparent 50%), 
                radial-gradient(at 100% 0%, rgba(221, 214, 254, 0.3) 0px, transparent 50%), 
                radial-gradient(at 100% 100%, rgba(254, 243, 199, 0.25) 0px, transparent 50%), 
                rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 2rem;
    overflow: relative;
}

[data-bs-theme="dark"] .area-profile {
    background: #1e293b !important;
}

/* Avatar glowing wrapper */
.avatar-glowing-wrapper {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring-outer {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    background: var(--color-base, #3b7ddd);
    z-index: 1;
    opacity: 1;
}

.avatar-ring-inner {
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 50%;
    background: #ffffff;
    z-index: 2;
    transition: background 0.3s ease;
}

[data-bs-theme="dark"] .avatar-ring-inner {
    background: #1e293b;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-glowing-wrapper:hover .profile-avatar {
    transform: scale(1.05);
}

.avatar-glowing-wrapper:hover .avatar-ring-outer {
    box-shadow: none;
}

@keyframes avatar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glowing status badge */
.status-badge-glow {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background-color: #10b981;
    border: 3px solid #ffffff;
    border-radius: 50%;
    z-index: 4;
}

[data-bs-theme="dark"] .status-badge-glow {
    border-color: #1e293b;
}

.status-badge-glow::after {
    display: none;
}

@keyframes status-badge-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Custom premium badge and text styling */
.badge-premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: #4f46e5;
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

[data-bs-theme="dark"] .badge-premium {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: #a5b4fc;
    border-color: rgba(165, 180, 252, 0.3);
}

.profile-greeting {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: #1e293b;
}

[data-bs-theme="dark"] .profile-greeting {
    color: #f8fafc;
}

.profile-name {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.quote-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #4b5563;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    max-width: 90%;
}

[data-bs-theme="dark"] .quote-pill {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.area-weather {
    grid-area: weather;
}


.area-calendar {
    grid-area: calendar;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

    .area-calendar .tile-label {
        padding: 1.25rem 1.25rem 0 1.25rem;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .area-calendar .tile-content {
        padding: 0 1rem 1rem 1rem !important;
        flex: 1;
        display: flex !important;
        flex-direction: column;
        min-height: 0;
    }

    .area-calendar #calendarGrid {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 4px;
        flex: 1;
        min-height: 0;
    }

        .area-calendar #calendarGrid .row {
            display: contents !important;
        }

        .area-calendar #calendarGrid .col {
            display: flex !important;
            align-items: stretch !important;
            padding: 0 !important;
            margin: 0 !important;
        }

    .area-calendar .dropdown {
        width: 100%;
        height: 100%;
        display: flex;
    }

    .area-calendar .calendar-day {
        width: 100% !important;
        height: 100% !important;
        min-height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent !important;
        background: transparent !important;
        padding: 0 !important;
        position: relative;
        color: var(--bs-gray-700);
    }

        .area-calendar .calendar-day:hover {
            background-color: var(--bs-gray-100) !important;
            color: var(--bs-dark) !important;
            transform: scale(0.95);
        }

        .area-calendar .calendar-day.other-month {
            color: var(--bs-gray-300) !important;
            font-weight: 400;
        }

        .area-calendar .calendar-day.today {
            background-color: var(--bs-primary) !important;
            color: white !important;
            font-weight: 700;
            box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
        }

    .area-calendar .day-number {
        z-index: 1;
        pointer-events: none;
    }

    .area-calendar .calendar-day.meeting::after {
        content: '';
        position: absolute;
        bottom: 6px;
        width: 5px;
        height: 5px;
        background-color: #f97316;
        border-radius: 50%;
        z-index: 2;
    }

    .area-calendar .calendar-day.today.meeting::after {
        background-color: white;
        opacity: 0.9;
    }

    .area-calendar .dropdown-menu {
        font-size: 0.875rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .area-calendar .dropdown-toggle::after {
        display: none !important;
    }

@media (max-width: 768px) {
    .area-calendar .calendar-day {
        min-height: 35px;
        font-size: 0.85rem;
    }
}

.area-chart {
    grid-area: chart;
}

.area-status {
    grid-area: status;
}

.area-users {
    grid-area: users;
}

.area-tickets {
    grid-area: tickets;
}

.tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.tile-content {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-users .tile-content {
    display: block;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.calendar-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

[data-bs-theme="dark"] .cal-header {
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

.cal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: capitalize;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color 0.2s ease;
}

[data-bs-theme="dark"] .cal-title {
    color: #f1f5f9;
}

.cal-title:hover {
    color: #6366f1;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

[data-bs-theme="dark"] .cal-nav-btn {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.cal-nav-btn:hover {
    transform: scale(1.1);
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
}

[data-bs-theme="dark"] .cal-nav-btn:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #a5b4fc;
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.cal-day-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
}

.cal-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.wave-emoji {
    display: inline-block;
    cursor: default;
    transform-origin: 70% 70%;
    animation: wave-animation 2.5s infinite;
}


.card.area-profile:hover .wave-emoji {
    animation: wave-animation 2.5s infinite;
}

@keyframes wave-animation {
    0% {
        transform: rotate( 0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate( 0.0deg)
    }

    100% {
        transform: rotate( 0.0deg)
    }
}

@media (max-width: 576px) {
    .area-profile .d-flex.flex-row {
        flex-direction: column !important;
        text-align: center;
    }

    .area-profile .me-4 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .area-profile .d-flex.align-items-center.gap-2 {
        justify-content: center;
    }
}

[data-bs-theme="dark"] {
    --bg-app: #0d1117;
    --bg-tile: #161b22;
    --gap: 20px;
    --border-color: #30363d;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --accent-blue: #58a6ff;
    --hover-bg: #21262d;
}

    /*[data-bs-theme="dark"] .container-fluid*/
    [data-bs-theme="dark"] body {
        background-color: var(--bg-app) !important;
        color: var(--text-main) !important;
    }

    /*[data-bs-theme="dark"] .text-dark-emphasis,
    [data-bs-theme="dark"] .text-dark,
    [data-bs-theme="dark"] .fw-bold {
        color: #f0f6fc !important;*/ /* Blanco suave */
    /*}*/

    [data-bs-theme="dark"] .text-muted,
    [data-bs-theme="dark"] .text-secondary {
        color: var(--text-muted) !important;
    }

    [data-bs-theme="dark"] .card-bento,
    [data-bs-theme="dark"] .ticket-card {
        background-color: var(--bg-tile) !important;
        /*border: 1px solid var(--border-color) !important;*/
        box-shadow: none !important; /* GitHub usa bordes, no sombras */
        color: var(--text-main);
    }

    [data-bs-theme="dark"] .area-profile {
        background: linear-gradient(120deg, #161b22 0%, #0d1117 100%) !important;
    }

        [data-bs-theme="dark"] .area-profile img {
            border-color: #30363d !important;
        }

    [data-bs-theme="dark"] .cal-title {
        color: var(--text-main) !important;
    }

    [data-bs-theme="dark"] .cal-nav-btn {
        color: var(--text-muted);
    }

        [data-bs-theme="dark"] .cal-nav-btn:hover {
            background-color: var(--hover-bg);
            color: var(--accent-blue);
        }

    [data-bs-theme="dark"] .calendar-day {
        color: var(--text-main) !important;
    }

        [data-bs-theme="dark"] .calendar-day:hover {
            background-color: var(--hover-bg) !important;
            color: var(--accent-blue) !important;
            border: 1px solid var(--border-color) !important;
        }

        [data-bs-theme="dark"] .calendar-day.other-month {
            color: #484f58 !important; /* Gris muy apagado */
        }

        [data-bs-theme="dark"] .calendar-day.today {
            background-color: #1f6feb !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
            color: #ffffff !important;
        }

    [data-bs-theme="dark"] .timeline-item {
        border-left-color: var(--border-color);
    }

        [data-bs-theme="dark"] .timeline-item::before {
            background-color: var(--bg-tile);
            border-color: var(--accent-blue);
        }

    [data-bs-theme="dark"] .timeline-content {
        color: var(--text-muted);
    }

    [data-bs-theme="dark"] .timeline-title {
        color: var(--text-main);
    }

    [data-bs-theme="dark"] .badge.bg-light {
        background-color: #21262d !important;
        color: #c9d1d9 !important;
        border-color: #30363d !important;
    }

    [data-bs-theme="dark"] .ticket-card {
        background-color: #0d1117 !important;
    }

        [data-bs-theme="dark"] .ticket-card:hover {
            border-color: var(--accent-blue) !important;
            background-color: #161b22 !important;
        }

    [data-bs-theme="dark"] .t-title {
        color: #58a6ff !important; /* Títulos de tickets en azul */
    }

    [data-bs-theme="dark"] .t-footer {
        border-top-color: var(--border-color);
    }

    [data-bs-theme="dark"] .t-dept {
        color: var(--text-main);
    }

    [data-bs-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #30363d;
    }

        [data-bs-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #8b949e;
        }

    [data-bs-theme="dark"] .user-item {
        border-bottom-color: var(--border-color);
    }

        [data-bs-theme="dark"] .user-item:hover {
            background-color: var(--hover-bg);
        }

    [data-bs-theme="dark"] .u-name {
        color: var(--text-main);
    }

    [data-bs-theme="dark"] .u-avatar {
        border-color: #30363d;
    }

    [data-bs-theme="dark"] .u-status-dot {
        border-color: var(--bg-tile);
    }

    [data-bs-theme="dark"] .badge.bg-primary-subtle {
        background-color: rgba(56, 139, 253, 0.15) !important;
        color: #58a6ff !important;
        border: 1px solid rgba(56, 139, 253, 0.4);
    }

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

    .user-item:hover {
        background-color: rgba(0,0,0,0.02);
    }

    .user-item:last-child {
        border-bottom: none;
    }

.u-avatar-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 12px;
}

.u-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.u-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.u-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.u-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-role {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-badge-container {
    margin-left: 10px;
    flex-shrink: 0;
}

.u-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-users {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.security-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f85149;
    color: #ffff;
    box-shadow: 0 4px 10px rgba(248, 81, 73, 0.2);
    margin: 0 auto;
}

    .security-icon-container i,
    .security-icon-container svg {
        font-size: 40px;
        margin-top: 8px
    }

/*[data-bs-theme="dark"] .ts-control {
    background-color: #212529;
    color: #e9ecef;
    border-color: #495057;
}

    [data-bs-theme="dark"] .ts-control input {
        color: #e9ecef !important;
    }*/

[data-bs-theme="dark"] .ts-dropdown {
    background-color: #2b3035;
    color: #e9ecef;
    border-color: #495057;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

    [data-bs-theme="dark"] .ts-dropdown .option {
        color: #e9ecef;
    }

    [data-bs-theme="dark"] .ts-dropdown .active {
        background-color: #0d6efd;
        color: #ffffff;
    }

    [data-bs-theme="dark"] .ts-dropdown .option .text-muted {
        color: #adb5bd !important;
    }

    [data-bs-theme="dark"] .ts-dropdown .active .text-muted {
        color: #e0e0e0 !important;
    }

[data-bs-theme="dark"] .ts-control .item {
    background-color: #343a40;
    color: #fff;
    border: 1px solid #495057;
}

#meeting-floating-widget {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

    #meeting-floating-widget:hover {
        transform: translateY(-5px);
    }

[data-bs-theme="dark"] #meeting-floating-widget {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #e9ecef !important;
}

    [data-bs-theme="dark"] #meeting-floating-widget .text-muted {
        color: #adb5bd !important;
    }

    [data-bs-theme="dark"] #meeting-floating-widget .bg-primary {
        background-color: #0d6efd !important;
        color: #fff !important;
    }

[data-bs-theme="dark"] .bg-light {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] .bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.2) !important;
    border-color: rgba(25, 135, 84, 0.5) !important;
    color: #75b798 !important;
}

[data-bs-theme="dark"] .border-light {
    border-color: #373b3e !important;
}

[data-bs-theme="dark"] .card {
    background-color: #2b3035;
    border-color: #373b3e;
}

/* ─── DARK MODE GLOBAL: Todos los modales ─── */
[data-bs-theme="dark"] .modal-content {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
}
[data-bs-theme="dark"] .modal .text-dark {
    color: #e6edf3 !important;
}
[data-bs-theme="dark"] .modal .text-muted,
[data-bs-theme="dark"] .modal .text-secondary {
    color: #8b949e !important;
}
[data-bs-theme="dark"] .modal .bg-light,
[data-bs-theme="dark"] .modal .bg-white {
    background-color: #161b22 !important;
}
[data-bs-theme="dark"] .modal .border-light-subtle,
[data-bs-theme="dark"] .modal .border-light {
    border-color: #30363d !important;
}
[data-bs-theme="dark"] .modal .btn-light {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}
[data-bs-theme="dark"] .modal .table-light {
    background-color: #161b22 !important;
    color: #e6edf3 !important;
}
[data-bs-theme="dark"] .modal .table {
    color: #e6edf3;
}
[data-bs-theme="dark"] .modal .form-control,
[data-bs-theme="dark"] .modal .form-select {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
[data-bs-theme="dark"] .modal .input-group-text {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
[data-bs-theme="dark"] .modal .card,
[data-bs-theme="dark"] .modal .cotizacion-card {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}
[data-bs-theme="dark"] .modal .payment-step-card {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}
[data-bs-theme="dark"] .modal .payment-step-card.active {
    border-color: #238636 !important;
    background-color: rgba(35, 134, 54, 0.15) !important;
}
[data-bs-theme="dark"] .modal .badge.bg-light {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}
[data-bs-theme="dark"] .modal thead.bg-light,
[data-bs-theme="dark"] .modal thead.bg-body-tertiary,
[data-bs-theme="dark"] .modal .table-light thead {
    background-color: #161b22 !important;
    color: #8b949e !important;
}
[data-bs-theme="dark"] .modal .modal-header,
[data-bs-theme="dark"] .modal .modal-footer {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
}
[data-bs-theme="dark"] .modal .btn-close {
    filter: invert(0.8);
}
[data-bs-theme="dark"] .modal .btn-outline-secondary {
    border-color: #30363d;
    color: #8b949e;
}
[data-bs-theme="dark"] .modal .btn-outline-info {
    border-color: #30363d;
    color: #58a6ff;
}
[data-bs-theme="dark"] .modal .btn-outline-info.active {
    background-color: #1f6feb;
    border-color: #1f6feb;
    color: #ffffff;
}
[data-bs-theme="dark"] .modal .alert {
    background-color: #161b22 !important;
    border-color: #30363d !important;
}
[data-bs-theme="dark"] .modal .alert-success {
    background-color: rgba(35, 134, 54, 0.15) !important;
    border-color: #238636 !important;
    color: #75b798;
}
[data-bs-theme="dark"] .modal .alert-info {
    background-color: rgba(56, 139, 253, 0.15) !important;
    border-color: #1f6feb !important;
    color: #75b798;
}
[data-bs-theme="dark"] .modal .alert-warning {
    background-color: rgba(210, 153, 34, 0.15) !important;
    border-color: #d29922 !important;
    color: #d29922;
}

.notification-item a {
    color: inherit;
    text-decoration: none !important;
    display: block;
}

.notification-item__message {
    color: #2b3445;
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.9rem;
}

.notification-item__meta {
    color: #8898aa;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.notification-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.notification-item__icon i {
    /* Esto asegura que el icono mantenga su color (info, warning, etc) */
    /* No hace falta cambiar nada aquí si ya usas clases como text-primary */
}

[data-bs-theme="dark"] .notification-item__message {
    color: #e9ecef;
}

[data-bs-theme="dark"] .notification-item__meta {
    color: #adb5bd;
}

[data-bs-theme="dark"] .notification-item:hover {
    background-color: #2b3035;
}

:root {
    --adp-z-index: 10000 !important;
}

.air-datepicker-global-container {
    z-index: 10000 !important;
}

.air-datepicker {
    z-index: 10000 !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-secondary-subtle {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

.hover-elevate {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-elevate:hover {
        transform: translateY(-2px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
        cursor: pointer;
    }


.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-stack {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

    .avatar-stack .avatar-circle {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: .5px solid #1e1e1e;
        object-fit: cover;
        margin-left: -10px;
        transition: transform 0.2s ease, z-index 0.2s;
        position: relative;
        z-index: 1;
    }

        .avatar-stack .avatar-circle:hover {
            transform: translateY(-3px) scale(1.1);
            z-index: 10;
            border-color: #fff;
            cursor: pointer;
        }

.btn-add-slot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px dashed #6c757d; /* Borde punteado sutil */
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px; /* También se monta un poco */
    z-index: 0;
    transition: all 0.2s;
    padding: 0;
}

    .btn-add-slot:hover {
        border-color: var(--bs-primary);
        background-color: rgba(var(--bs-primary-rgb), 0.1);
        color: var(--bs-primary);
        z-index: 5;
        cursor: pointer;
    }

.avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #343a40;
    border: 2px solid #1e1e1e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    z-index: 2;
}

[data-bs-theme="dark"] #txtComentarioChat::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.user-card {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

    .user-card.selected {
        border-color: var(--bs-primary) !important;
        background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
        box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
        transform: translateY(-2px);
    }

    .user-card .check-indicator {
        display: none;
    }

    .user-card.selected .check-indicator {
        display: block;
    }

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .5rem;
    padding-right: 10px;
}

.user-item-tickets {
    min-width: 0;
}

[data-bs-theme="dark"] .ts-wrapper.single .ts-control {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
}

#drop-zone.drag-over {
    border: 1px solid #0d6efd !important;
    transform: scale(1.01);
    z-index: 10;
}

#drop-overlay {
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(0px);
}

#drop-zone.drag-over #drop-overlay {
    opacity: 1 !important;
    background-color: rgba(13, 110, 253, 0.15) !important;
    backdrop-filter: blur(3px);
}

#drop-zone {
    transition: all 0.2s ease;
}

    #drop-zone.drag-over {
        border-color: #0d6efd !important;
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
    }

#drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.9);
    backdrop-filter: blur(2px);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.project-widget-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.project-dock {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%) translateX(20px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-right: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    max-width: 300px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .project-dock::-webkit-scrollbar {
        display: none;
    }

.project-widget-wrapper.active .project-dock {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.project-avatar-card {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background-color: #f0f2f5;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .project-avatar-card:hover {
        transform: scale(1.15);
        z-index: 10;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        border-color: #dee2e6;
        border-radius: 8px;
    }

    .project-avatar-card.selected {
        border-color: #0d6efd;
        transform: scale(1.1);
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }

    .project-avatar-card::after {
        content: attr(data-title);
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(33, 37, 41, 0.9);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        z-index: 101;
    }

    .project-avatar-card:hover::after {
        opacity: 1;
    }

.project-avatar-initials {
    font-size: 13px;
    font-weight: 700;
    /*color: #6c757d;*/
    text-transform: uppercase;
}

.project-avatar-card.selected .project-avatar-initials {
    color: #0d6efd;
}

.btn-toggle-widget {
    background: #ffffff;
    color: #6B7280;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 8px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .btn-toggle-widget:hover {
        background: #F9FAFB;
        color: #374151;
    }

    .btn-toggle-widget.active {
        background: #DBEAFE;
        color: #1D4ED8;
        border-color: #93C5FD;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    }

[data-bs-theme="dark"] .btn-toggle-widget {
    background: #0D1117;
    color: #8B949E;
    border: .8px solid #30363D;
    border-radius: 10px;
    padding: 8px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    [data-bs-theme="dark"].btn-toggle-widget:hover {
        background: #161B22;
        color: #C9D1D9;
    }

    [data-bs-theme="dark"] .btn-toggle-widget.active {
        background: #1F6FEB1A;
        color: #58A6FF;
        border-color: #388BFD;
        box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.25);
    }

.btn-toggle-widget.active svg {
    stroke: currentColor;
    fill: currentColor;
    fill: currentColor;
}

.btn-toggle-widget {
    transform: translateY(0);
}

    .btn-toggle-widget.active {
        transform: translateY(-1px);
    }

[data-bs-theme="dark"] .project-dock {
    background: #161B22;
    border: .8px solid #30363D;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(48, 54, 61, 0.6);
}

[data-bs-theme="dark"] .project-widget-wrapper.active .project-dock {
    background: #161B22;
    border-color: #388BFD;
}

[data-bs-theme="dark"] .project-avatar-card {
    background-color: #0D1117;
    border-color: transparent;
}

    [data-bs-theme="dark"] .project-avatar-card:hover {
        border-color: #30363D;
        box-shadow: 0 6px 12px rgba(0,0,0,0.8);
    }

    [data-bs-theme="dark"] .project-avatar-card.selected {
        border-color: #58A6FF;
        box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25);
    }

[data-bs-theme="dark"] .project-avatar-initials {
    color: #8B949E;
}

[data-bs-theme="dark"] .project-avatar-card.selected .project-avatar-initials {
    color: #58A6FF;
}

[data-bs-theme="dark"] .project-avatar-card::after {
    background: #30363D;
    color: #C9D1D9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

[data-bs-theme="dark"] .project-widget-wrapper.active .project-dock {
    animation: dockGlow 0.25s ease-out;
}

@keyframes dockGlow {
    from {
        box-shadow: 0 0 0 rgba(88, 166, 255, 0);
    }

    to {
        box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
    }
}

.active-filters-container {
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f6;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    animation: slideDown 0.3s ease-out;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 10px;
    border-radius: 6px;
    gap: 8px;
    font-size: 0.75rem;
    color: #475569;
    white-space: nowrap;
}

    .filter-chip:hover {
        background-color: #fff;
        border-color: #cbd5e1;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .filter-chip i {
        color: #64748b;
        font-size: 0.8rem;
    }

    .filter-chip strong {
        color: #0f172a;
        margin-left: 4px;
    }

.active-filters-container {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.btn-clear-filters {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-clear-filters:hover {
        background-color: #fef2f2;
        border-color: #ef4444;
        border-style: solid;
        color: #ef4444;
    }

    .btn-clear-filters i {
        transition: transform 0.2s;
    }

    .btn-clear-filters:hover i {
        transform: rotate(-15deg);
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-bs-theme="dark"] .active-filters-container {
    background-color: #0d1117 !important;
    border-bottom-color: #30363d !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] .filter-chip {
    background-color: #21262d;
    border-color: #363b42;
    color: #8b949e;
    box-shadow: none;
}

    [data-bs-theme="dark"] .filter-chip:hover {
        background-color: #30363d;
        border-color: #8b949e;
        color: #c9d1d9;
    }

    [data-bs-theme="dark"] .filter-chip i {
        color: #7d8590;
    }

    [data-bs-theme="dark"] .filter-chip:hover i {
        color: #58a6ff;
    }

    [data-bs-theme="dark"] .filter-chip strong {
        color: #c9d1d9;
    }

[data-bs-theme="dark"] .btn-clear-filters {
    color: #8b949e;
    border-color: #30363d;
}

    [data-bs-theme="dark"] .btn-clear-filters:hover {
        background-color: rgba(248, 81, 73, 0.1);
        border-color: #f85149;
        color: #f85149;
        border-style: solid;
    }

.christmas-lights {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 0;
    margin: 0;
    z-index: 1010;
    pointer-events: none;
    display: flex;
    justify-content: center;
    list-style: none;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
}

    .christmas-lights.active {
        opacity: 1;
    }

    .christmas-lights::before {
        content: "";
        position: absolute;
        top: 45px;
        left: 0;
        width: 100%;
        height: 4px;
        background: #232d23;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.5);
        z-index: 1030;
    }

    .christmas-lights li {
        position: relative;
        list-style: none;
        margin: 0 20px;
        padding: 0;
        display: inline-block;
        width: 18px;
        height: 30px;
        border-radius: 50%;
        top: 50px;
        background: #fff;
        z-index: 1010;
        animation-fill-mode: both;
        animation-iteration-count: infinite;
    }

        .christmas-lights li::before {
            content: "";
            position: absolute;
            background: #222;
            width: 14px;
            height: 10px;
            top: -8px;
            left: 2px;
            border-radius: 3px;
            z-index: 1032;
            border-bottom: 2px solid #111;
        }

        .christmas-lights li::after {
            content: "";
            top: 5px;
            left: 9px;
            position: absolute;
            width: 5px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
            transform: rotate(-15deg);
        }

        .christmas-lights li:nth-child(4n+1) {
            background: #ff0000;
            box-shadow: 0px 5px 24px 3px rgba(255, 0, 0, 0.8);
            animation-name: flash-1;
            animation-duration: 2s;
        }

        .christmas-lights li:nth-child(4n+2) {
            background: #00f7ff;
            box-shadow: 0px 5px 24px 3px rgba(0, 247, 255, 0.8);
            animation-name: flash-2;
            animation-duration: 2.5s;
        }

        .christmas-lights li:nth-child(4n+3) {
            background: #ffdd00;
            box-shadow: 0px 5px 24px 3px rgba(255, 221, 0, 0.8);
            animation-name: flash-3;
            animation-duration: 1.8s;
        }

        .christmas-lights li:nth-child(4n+4) {
            background: #00ff22;
            box-shadow: 0px 5px 24px 3px rgba(0, 255, 34, 0.8);
            animation-name: flash-1;
            animation-duration: 2.2s;
        }

@keyframes flash-1 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1.5);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(0.8);
    }
}

@keyframes flash-2 {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1.5);
    }
}

@keyframes flash-3 {
    0%, 100% {
        opacity: 1;
        filter: brightness(1.2);
    }

    50% {
        opacity: 0.7;
        filter: brightness(0.9);
    }
}

.notifications-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6c757d;
}

.ghost-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: float-ghost 3s ease-in-out infinite;
}

.ghost-svg {
    width: 45px;
    height: 45px;
    fill: #adb5bd;
    transition: fill 0.3s ease;
}

.notifications-empty-state:hover .ghost-svg {
    fill: #868e96;
}

.empty-title {
    font-weight: 600;
    font-size: 1rem;
    color: #343a40;
    margin-bottom: 0.25rem;
}

.empty-subtitle {
    font-size: 0.85rem;
    color: #98a6ad;
}

@keyframes float-ghost {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

a.sidebar-link {
    color: #e0e0e0 !important;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border-left: 4px solid transparent;
}

    a.sidebar-link:hover {
        background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 100%);
        color: #fff !important;
        border-left: 4px solid #00ff88;
        padding-left: 25px;
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }

.modern-card {
    /*    background: #fff;*/
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    /*height: 100%;*/
}

/*.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.form-control, .form-select {
    border-color: #dee2e6;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

    .form-control:focus, .form-select:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }*/

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        /*color: #adb5bd;*/
        font-size: 1.1rem;
        pointer-events: none;
    }

    .input-with-icon .form-control {
        padding-left: 2.5rem;
    }

.priority-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.char-counter {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #adb5bd;
    background: transparent;
    pointer-events: none;
    font-weight: 500;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding: 2px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 4px;
    max-height: 250px;
    overflow-y: auto;
}

.user-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

    .user-card:hover {
        border-color: #3b7ddd;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

    .user-card.selected {
        border-color: #3b7ddd;
        background-color: #f0f7ff;
        box-shadow: 0 0 0 2px rgba(59, 125, 221, 0.3);
    }

    .user-card .check-indicator {
        opacity: 0;
        transform: scale(0.5);
        transition: all 0.2s ease;
    }

    .user-card.selected .check-indicator {
        opacity: 1;
        transform: scale(1);
    }

.text-warp {
    white-space: normal;
    line-height: 1.2;
}

.char-counter-inside {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: #adb5bd;
    background: transparent;
    pointer-events: none;
    font-weight: 500;
}

.content.con-fondo-proyecto {
    position: relative !important;
    background-image: var(--proyecto-bg) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh !important;
}

[data-bs-theme="light"] .content.con-fondo-proyecto::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

[data-bs-theme="dark"] .content.con-fondo-proyecto::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(30, 30, 30, 0.7) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.content.con-fondo-proyecto .kanban-board {
    position: relative !important;
    z-index: 1 !important;
}

/*.snow-cap {
    position: relative;
    overflow: visible;
}

    .snow-cap::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -2px;
        right: -2px;
        height: 12px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 70%, rgba(240, 248, 255, 0.8) 100% );
        border-radius: 50% 40% 45% 55% / 60% 50% 50% 40%;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08)) drop-shadow(0 1px 2px rgba(173, 216, 230, 0.3));
        z-index: 10;
        pointer-events: none;
    }

    .snow-cap::after {
        content: '';
        position: absolute;
        top: -3px;
        right: 15%;
        width: 25px;
        height: 14px;
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 60%, transparent 100% );
        border-radius: 60% 40% 50% 50%;
        filter: blur(0.5px);
        z-index: 11;
        pointer-events: none;
    }

    .snow-cap .ticket-header::before {
        content: '';
        position: absolute;
        top: -4px;
        left: 25%;
        width: 18px;
        height: 10px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 50% 60% 40% 50%;
        filter: blur(0.3px);
        z-index: 11;
        pointer-events: none;
    }*/

/* Variaciones para diferentes cards (opcional) */
/*.snow-cap:nth-child(2n)::before {
        border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    }

    .snow-cap:nth-child(3n)::after {
        right: 20%;
        width: 22px;
    }*/

#overlay-ano-nuevo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro elegante */
    z-index: 10000; /* Encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

#texto-contador {
    font-size: 15rem;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    animation: pulse 1s infinite;
}

#mensaje-final {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: fadeIn 1s ease-in;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#avatar-drop-zone.drag-over .drop-overlay {
    opacity: 1 !important;
    cursor: copy;
}

#avatar-drop-zone.drag-over img {
    filter: blur(2px);
}

.transition-all {
    transition: all 0.3s ease;
}

.input-fusionado {
    display: flex;
    align-items: center;
    /*background-color: #fff;*/
    border: 1px solid #dee2e6;
    border-radius: 0 0.375rem 0.375rem 0;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding: 0;
    overflow: hidden;
}

    .input-fusionado:focus-within {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        z-index: 5;
    }

    .input-fusionado input.form-control {
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        padding-right: 2px;
    }

    .input-fusionado .dominio-fijo {
        background-color: transparent;
        border: none;
        color: #6c757d;
        font-weight: 500;
        padding-right: 12px;
        padding-left: 0;
        white-space: nowrap;
        user-select: none;
        cursor: text;
    }

[data-bs-theme="dark"] ::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

@keyframes icon-shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px) rotate(-5deg);
    }

    50% {
        transform: translateX(3px) rotate(5deg);
    }

    75% {
        transform: translateX(-3px) rotate(-5deg);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes icon-swing {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.btn-outline-secondary:hover i {
    animation: icon-float 0.5s ease-in-out infinite;
    /*color: var(--gh-blue);*/
}

/*.btn-outline-secondary:hover {
    border-color: var(--gh-blue) !important;
    background-color: rgba(31, 111, 235, 0.05) !important;
}*/

.btn-outline-danger:hover i,
.btn-outline-warning:hover i,
.btn-danger:hover i,
.btn-warning:hover i,
.btn-outline-warning:hover svg,
.btn-outline-danger:hover svg,
.btn-danger:hover svg {
    animation: icon-shake 0.4s ease-in-out both;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.btn-outline-primary:hover i,
.btn-outline-info:hover i,
.gh-btn-primary:hover i,
.btn-primary:hover i,
.btn-link:hover i {
    animation: icon-swing 0.5s ease-in-out both;
}

.btn-outline-success:hover i,
.btn-success:hover i,
.gh-btn-outline:hover i,
.btn-light:hover i {
    animation: icon-bounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn i,
.btn svg {
    display: inline-block;
}

.table-danger {
    pointer-events: all;
}

/*[data-bs-theme="dark"] .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545 !important;
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}*/

:root {
    --cal-primary: #0969da;
    --cal-primary-hover: #0a58ca;
    --cal-bg-today-light: #ddf4ff;
    --cal-text-today-light: #0969da;
    --cal-bg-today-dark: #1f6feb;
    --cal-text-today-dark: #ffffff;
}

[data-bs-theme="dark"] {
    --cal-primary: #2f81f7;
    --cal-bg-today-light: rgba(56, 139, 253, 0.15);
    --cal-text-today-light: #58a6ff;
}

.calendar-day-btn.today {
    color: var(--cal-text-today-light) !important;
    background-color: var(--cal-bg-today-light) !important;
    font-weight: 900;
    border: 1px solid transparent;
}

.calendar-day-btn.active-day {
    background-color: var(--cal-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.25);
    transform: scale(1.05);
    border: none;
}

.calendar-day-btn:hover:not(.active-day) {
    background-color: rgba(9, 105, 218, 0.08);
    color: var(--cal-primary);
}

.calendar-day-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: inherit;
    font-weight: 500;
    margin: 0px;
    transition: all 0.2s ease-in-out;
}

.agenda-item {
    transition: background-color 0.2s ease;
    cursor: default;
    border-radius: 8px;
}

    .agenda-item:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

[data-bs-theme="dark"] .agenda-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}


:root {
    --gh-success: #1f883d;
    --gh-success-hover: #1a7f37;
    --gh-border: #d0d7de;
    --gh-bg-secondary: #f6f8fa;
    --gh-text-main: #1f2328;
    --gh-text-muted: #656d76;
}

[data-bs-theme="dark"] {
    --gh-success: #238636;
    --gh-success-hover: #2ea043;
    --gh-border: #30363d;
    --gh-bg-secondary: #161b22;
    --gh-text-main: #c9d1d9;
    --gh-text-muted: #8b949e;
}

.ticket-container {
    /*background-color: var(--gh-bg-secondary);*/
    border: 1px solid var(--gh-border);
    color: var(--gh-text-main);
}

.gh-btn-primary {
    background-color: var(--gh-success) !important;
    border-color: rgba(246, 248, 250, 0.1) !important;
    color: #ffffff !important;
}

    .gh-btn-primary:hover {
        background-color: var(--gh-success-hover) !important;
    }

.gh-btn-outline {
    background-color: transparent !important;
    border: 1px solid var(--gh-border) !important;
    color: var(--gh-text-main) !important;
}

    .gh-btn-outline:hover {
        background-color: var(--gh-border) !important;
    }

:root {
    --gh-bg: #0d1117;
    --gh-bg-secondary: #161b22;
    --gh-blue: #1f6feb;
    --gh-blue-hover: #1f6feb;
}

.payment-step-card {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gh-border) !important;
    color: var(--gh-text);
    position: relative;
    overflow: hidden;
}

    .payment-step-card:hover {
        border-color: var(--gh-blue) !important;
        background-color: var(--gh-bg-secondary) !important;
    }

[data-bs-theme="light"] .payment-step-card:hover {
    background-color: #f0f7ff !important;
}

[data-bs-theme="dark"] .payment-step-card:hover {
    background-color: #1c2128 !important;
}

.payment-step-card.active {
    border-color: var(--gh-blue) !important;
    /*background: rgba(31, 111, 235, 0.1) !important;*/
    box-shadow: 0 0 0 1px var(--gh-blue);
}

    .payment-step-card.active::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 25px 25px 0;
        border-color: transparent var(--gh-blue) transparent transparent;
    }

    .payment-step-card.active::after {
        content: "\f272";
        font-family: bootstrap-icons;
        position: absolute;
        top: 0px;
        right: 2px;
        color: white;
        font-size: 10px;
        font-weight: bold;
    }

.step-badge {
    width: 24px;
    height: 24px;
    background: var(--gh-border);
    color: var(--gh-text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-right: 12px;
}

.payment-section {
    /*background: var(--gh-bg-secondary) !important;*/
    border: 1px solid var(--gh-border) !important;
}

#listaProductosVentas {
    overflow: hidden !important;
    height: calc(100vh - 165px);
    display: block;
    position: relative;
}

#lista-carrito-container {
    height: 100%;
    min-height: 200px;
    display: block;
}

:root {
    --gh-input-bg: #ffffff;
    --gh-input-border: #d0d7de;
    --gh-input-text: #1f2328;
    --gh-input-placeholder: #6e7781;
    --gh-focus-border: #0969da;
    --gh-focus-shadow: rgba(9, 105, 218, 0.3);
    --gh-kbd-bg: #f6f8fa;
    --gh-btn-bg: #f6f8fa;
    --gh-btn-hover: #f3f4f6;
}

[data-bs-theme="dark"], .dark-mode {
    --gh-input-bg: #0d1117;
    --gh-input-border: #30363d;
    --gh-input-text: #c9d1d9;
    --gh-input-placeholder: #484f58;
    --gh-focus-border: #1f6feb;
    --gh-focus-shadow: rgba(31, 111, 235, 0.3);
    --gh-kbd-bg: #161b22;
    --gh-btn-bg: #21262d;
    --gh-btn-hover: #30363d;
}


#filtroProductosVentas {
    background-color: var(--gh-input-bg) !important;
    border: 1px solid var(--gh-input-border) !important;
    color: var(--gh-input-text) !important;
    border-radius: 6px !important;
    font-size: 14px;
    padding-top: 5px;
    padding-bottom: 5px;
    transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    box-shadow: none;
    padding-left: 2.7rem !important;
    padding-right: 3rem !important
}

    #filtroProductosVentas:focus {
        border-color: var(--gh-focus-border) !important;
        outline: none;
        box-shadow: 0 0 0 3px var(--gh-focus-shadow) !important;
    }

    #filtroProductosVentas::placeholder {
        color: var(--gh-input-placeholder);
        opacity: 0.7;
        font-size: 0.85rem;
    }

.gh-kbd {
    background-color: var(--gh-kbd-bg) !important;
    color: var(--gh-input-placeholder) !important;
    border: 1px solid var(--gh-input-border) !important;
    border-bottom: 2px solid var(--gh-input-border) !important;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    padding: 2px 5px;
}

.btn-gh-view {
    background-color: var(--gh-btn-bg);
    border: 1px solid var(--gh-input-border);
    color: var(--gh-input-text);
    padding: 4px 12px;
}

    .btn-gh-view:hover {
        background-color: var(--gh-btn-hover);
    }

    .btn-gh-view.active {
        background-color: var(--gh-focus-border) !important;
        border-color: var(--gh-focus-border) !important;
        color: #ffffff !important;
    }

.bi-search {
    color: var(--gh-input-placeholder) !important;
}

.ticket-card:hover,
.pos-card:hover {
    z-index: 100;
    transform: translateY(-4px);
    border-color: var(--gh-blue) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}

.switch-entrega:checked + label {
    background-color: #ffffff !important;
    color: #0d6efd !important; /* Azul Bootstrap (o usa tu color primario) */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/*#entrega-mostrador:checked + label {
    color: #198754 !important;
}
#entrega-recoleccion:checked + label {
    color: #fd7e14 !important;
}
#entrega-domicilio:checked + label {
    color: #0d6efd !important;
}
.switch-entrega + label:hover {
    background-color: rgba(0,0,0,0.03);
}*/

.check-envio {
    pointer-events: none;
}

.card-envio-pendiente.seleccionada .card {
    border: .5px solid #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05) !important;
}


@keyframes latido-rojo {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.alerta-tiempo .card {
    /*border: 2px solid #dc3545 !important;*/
    animation: latido-rojo 2s infinite;
}

.btn-outline-teal {
    color: #0891b2 !important;
    border: 1px solid #0891b2 !important;
    border-color: #0891b2 !important;
}

    .btn-outline-teal:hover {
        background-color: #0891b2;
        color: white !important;
    }

.btn-outline-purple {
    color: #8b5cf6 !important;
    border: 1px solid #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

    .btn-outline-purple:hover {
        background-color: #8b5cf6;
        color: white !important;
    }

.btn-flex-fill:active {
    transform: scale(0.95);
}

.gh-kbd {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
}


.project-pill {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

    .project-pill:hover {
        background: #f1f3f5;
        border-color: #dee2e6;
        color: #495057;
        transform: translateY(-1px);
    }

    .project-pill.active {
        background: #e7f1ff;
        border-color: #0d6efd;
        color: #0d6efd;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
    }

#projectWidget {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

    #projectWidget::-webkit-scrollbar {
        display: none;
    }

.btn-light {
    background-color: #f8f9fa;
}

.card-body.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-pill {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.35rem 0.8rem;
}

    .project-pill:hover {
        background-color: #f0f2f5;
        border-color: #d0d7de;
        color: #1f2328;
    }

    .project-pill.active {
        background-color: #ddf4ff;
        color: #0969da;
        border-color: #54aeff66;
        font-weight: 600;
    }

[data-bs-theme="dark"] .project-pill,
body.dark-mode .project-pill {
    background-color: #161b22;
    color: #c9d1d9;
    border-color: #30363d;
}

    [data-bs-theme="dark"] .project-pill:hover,
    body.dark-mode .project-pill:hover {
        background-color: #21262d;
        border-color: #8b949e;
        color: #f0f6fc;
    }

    [data-bs-theme="dark"] .project-pill.active,
    body.dark-mode .project-pill.active {
        background-color: rgba(56, 139, 253, 0.15);
        color: #58a6ff;
        border-color: rgba(56, 139, 253, 0.4);
        font-weight: 600;
        box-shadow: 0 0 0 1px rgba(56, 139, 253, 0.1);
    }

[data-bs-theme="dark"] #scrollLeftBtn,
[data-bs-theme="dark"] #scrollRightBtn,
body.dark-mode #scrollLeftBtn,
body.dark-mode #scrollRightBtn {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d !important;
}

    [data-bs-theme="dark"] #scrollLeftBtn:hover,
    [data-bs-theme="dark"] #scrollRightBtn:hover,
    body.dark-mode #scrollLeftBtn:hover,
    body.dark-mode #scrollRightBtn:hover {
        background-color: #30363d;
        border-color: #8b949e !important;
        color: #58a6ff;
    }

.empty-search-state {
    display: none; /* Oculto por defecto */
    text-align: center;
    padding: 2rem 1rem;
    color: #adb5bd;
    animation: fadeIn 0.3s ease;
}

    .empty-search-state i {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 2.5rem;
        opacity: 0.5;
    }

    .empty-search-state p {
        font-size: 0.85rem;
        font-weight: 500;
        margin: 0;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


}

.cursor-pointer {
    cursor: pointer;
}

.sticky-bar-in {
    display: flex !important; /* Obliga a mostrarse sobre el d-none */
    animation: stickySlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sticky-bar-out {
    display: flex !important; /* Obliga a mantenerse visible MIENTRAS baja */
    animation: stickySlideDown 0.3s ease-in forwards;
}

@keyframes stickySlideUp {
    from {
        opacity: 0;
        transform: translateY(60px); 
    }

    to {
        opacity: 1;
        transform: translateY(0); 
    }
}

@keyframes stickySlideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(60px);
    }
}

#sticky-action-bar {
    background-color: #ffffff;
    border-color: #dee2e6 !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] #sticky-action-bar {
    background-color: #1e242b; /* Gris oscuro tipo GitHub */
    border-color: #444c56 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8) !important;
}

    [data-bs-theme="dark"] #sticky-action-bar .text-dark {
        color: #e6edf3 !important; /* Texto blanco en dark mode */
    }

    [data-bs-theme="dark"] #sticky-action-bar .btn-light {
        background-color: transparent;
        border-color: #444c56;
        color: #c9d1d9;
    }

        [data-bs-theme="dark"] #sticky-action-bar .btn-light:hover {
            background-color: rgba(255,255,255,0.1);
            color: #ffffff;
        }

:root {
    --sidebar-width: 280px; 
    --sidebar-collapsed-width: 70px;
    --sidebar-expanded-width: 280px;
    --transition-speed: 0.3s;
}

.matrix-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: var(--sidebar-collapsed-width);
    z-index: 1040;
    transition: left 0.35s cubic-bezier(0.2, 1, 0.3, 1); /* Transición suave */
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

#offcanvasDetalle {
    transition: left 0.35s cubic-bezier(0.2, 1, 0.3, 1), width 0.35s cubic-bezier(0.2, 1, 0.3, 1) !important;
    left: var(--sidebar-collapsed-width) !important;
    width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

/* Cuando el sidebar está expandido permanentemente (toggled) o expandido por hover */
body.sidebar-toggled .matrix-footer,
body:has(#sidebar:hover) .matrix-footer {
    left: var(--sidebar-width) !important;
}

body.sidebar-toggled #offcanvasDetalle,
body:has(#sidebar:hover) #offcanvasDetalle {
    left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
}

@media (max-width: 768px) {
    .matrix-footer,
    #offcanvasDetalle {
        left: 0 !important;
        width: 100% !important;
    }
}

[data-bs-theme="dark"] .matrix-footer {
    background-color: #1e242b;
    border-color: #444c56 !important;
    color: #e6edf3;
}

    [data-bs-theme="dark"] .matrix-footer .text-dark {
        color: #ffffff !important;
    }

    [data-bs-theme="dark"] .matrix-footer .bg-light {
        background-color: #1e242b !important;
    }
.hover-card:hover {
    border-color: var(--bs-primary) !important;
    background-color: var(--bs-light);
}


.item-orden {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-enter {
    animation: viewSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-exit {
    animation: viewSlideDown 0.3s ease-out forwards;
}

@keyframes viewSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes viewSlideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}
.ticket-card.loading {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card de cotización */
.cotizacion-card {
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

    .cotizacion-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
    }

.progress {
    background-color: #e9ecef;
    overflow: visible;
}

.progress-bar {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.badge {
    letter-spacing: 0.3px;
}

.min-w-0 {
    min-width: 0;
}

.text-truncate {
    cursor: default;
}

.summary-card {
    background-color: #0f172a;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 160px;
    flex-grow: 1;
    max-width: 240px;
    border: 1px solid #e3e6f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    animation: fadeInUp 0.3s ease;
    transition: all 0.2s ease-in-out;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

    .summary-card .prov-name {
        color: #4e73df;
        font-weight: 700;
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }

    .summary-card .prov-total {
        color: #1cc88a;
        font-weight: 800;
        font-size: 1.05rem;
        font-family: 'Outfit', 'Inter', sans-serif;
    }

    .summary-card .prov-items {
        font-size: 0.65rem;
        color: #858796;
        background: rgba(78, 115, 223, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
    }

[data-bs-theme="dark"] .summary-card {
    background-color: #1e242b;
    border-color: #444c56;
}
    [data-bs-theme="dark"] .summary-card .prov-name {
        color: #3699ff;
    }
    [data-bs-theme="dark"] .summary-card .prov-items {
        color: #a3b1c2;
        background: rgba(54, 153, 255, 0.15);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#offcanvasDetalle {
    transition: left 0.3s ease, width 0.3s ease; 
}

@media (min-width: 768px) {
    #offcanvasDetalle {
        left: var(--sidebar-collapsed-width) !important;
        width: calc(100% - var(--sidebar-collapsed-width)) !important;
    }

    body.sidebar-toggled #offcanvasDetalle {
        left: var(--sidebar-expanded-width) !important;
        width: calc(100% - var(--sidebar-expanded-width)) !important;
    }
}


.card-bento {
    min-height: 200px; 
}

.tile-content {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px; 
}

#modulo-cotizaciones {
    padding-top: 0 !important;
}

    #modulo-cotizaciones .card-filtros {
        border: none !important;
        border-bottom: 1px solid #e2e5e8 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-left: -15.333333% !important;
        margin-right: -15.333333% !important;
        padding-left: 8.333333% !important;
        padding-right: 8.333333% !important;
        margin-bottom: 1.5rem !important;
    }

        #modulo-cotizaciones .card-filtros .card-header {
            background: transparent !important;
            border: none !important;
            padding: 0.85rem 0 !important;
        }

#modulo-ordenes {
    padding-top: 0 !important;
}

    #modulo-ordenes .card-filtros {
        border: none !important;
        border-bottom: 1px solid #e2e5e8 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-left: -15.333333% !important;
        margin-right: -15.333333% !important;
        padding-left: 8.333333% !important;
        padding-right: 8.333333% !important;
        margin-bottom: 1.5rem !important;
    }

        #modulo-ordenes .card-filtros .card-header {
            background: transparent !important;
            border: none !important;
            padding: 0.85rem 0 0.5rem 0 !important; /* Menos padding abajo para acercar las pestañas */
        }

    #modulo-ordenes .nav-pills .nav-link {
        color: #6c757d;
        font-weight: 500;
        transition: all 0.2s;
    }

        #modulo-ordenes .nav-pills .nav-link:hover {
            background-color: #f8f9fa;
            color: #0d6efd;
        }

        #modulo-ordenes .nav-pills .nav-link.active {
            background-color: #e7f1ff; /* Azul muy clarito */
            color: #0d6efd; /* Texto azul fuerte */
        }

.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
    }

.border-start-status {
    border-left-width: 4px !important;
}

.status-p {
    border-color: #ffc107 !important;
}

.status-a {
    border-color: #0d6efd !important;
}

.status-c {
    border-color: #198754 !important;
}

.status-e {
    border-color: #dc3545 !important;
}

.action-btn-group {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

#modulo-requisiciones {
    padding-top: 0 !important;
}

    #modulo-requisiciones .card-filtros {
        border: none !important;
        border-bottom: 1px solid #e2e5e8 !important; /* Borde más suave */
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-left: -15.333333% !important;
        margin-right: -15.333333% !important;
        padding-left: 8.333333% !important;
        padding-right: 8.333333% !important;
    }

        #modulo-requisiciones .card-filtros .card-header {
            background: transparent !important;
            border: none !important;
            padding: 0.85rem 0 !important;
        }

.input-modern-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .input-modern-wrapper:focus-within {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    }

    .input-modern-wrapper i {
        color: #adb5bd;
        padding-left: 0.75rem;
    }

    .input-modern-wrapper input {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding-left: 0.5rem;
    }

.select-modern {
    border-color: #ced4da;
    color: #495057;
}

.badge-status {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

#modulo-requisiciones .card-tabla {
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pedido-card {
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

    .pedido-card:hover {
        z-index: 10; 
        transform: translateY(-5px) !important; 
        border-color: var(--gh-blue) !important; 
        box-shadow: 0 12px 20px rgba(0,0,0,0.1) !important; 
    }

.pedido-seleccionado {
    background-color: #f0f7ff !important; 
    border-color: var(--gh-blue) !important;
    border-left: 5px solid var(--gh-blue) !important; 
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1) !important;
}

.pedido-checkbox {
    cursor: pointer;
    accent-color: #16a34a;
}

.border-dashed {
    border-style: dashed !important;
}

@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skel {
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 37%, rgba(0,0,0,0.06) 63% );
    background-size: 600px 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 4px;
    display: inline-block;
}

.transition-bg {
    transition: background-color 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

.bg-modo-programada {
    background-color: rgba(255, 193, 7, 0.05) !important;
}

.border-modo-programada {
    border-color: #ffc107 !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.badge-unread-msg {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    background-color: #ef4444; /* Rojo alerta */
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


.badge-new-activity {
    position: absolute;
    top: -5px;
    right: 52px;
    background-color: #334155;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 10px 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 11; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

    .badge-new-activity::after {
        content: '';
        position: absolute;
        top: 0;
        left: -6px;
        border-width: 6px 6px 0 0;
        border-style: solid;
        border-color: transparent #1e293b transparent transparent;
    }

.ticket-card,
.badge-new-activity {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ticket-wrapper:hover .ticket-card {
    z-index: 100;
    transform: translateY(-2px);
    border-color: #8c959f !important;
    box-shadow: 0 4px 12px rgba(140, 149, 159, 0.15) !important;
}

.ticket-wrapper:hover .badge-new-activity {
    transform: translateY(-2px);
    z-index: 110;
}


.badge-vencido {
    position: absolute;
    top: -6px;
    right: 8px;
    background-color: #dc2626;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 12px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.35);
    z-index: 100;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

    .badge-vencido::after {
        content: '';
        position: absolute;
        top: 0;
        left: -10px;
        border-width: 10px 10px 0 0;
        border-style: solid;
        border-color: transparent #7f1d1d transparent transparent;
    }

.ticket-card,
.badge-new-activity,
.badge-vencido {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease-in-out;
}

.ticket-wrapper:hover .badge-new-activity {
    transform: translateY(-2px);
}

.ticket-wrapper:hover .badge-vencido {
    filter: brightness(1.15);
}

.view-section-cotizaciones > .card {
    margin-left: 0 !important;
    margin-right: 0 !important;

}
.view-section-cotizaciones .os-scrollbar-horizontal {
    display: none !important;
}

.view-section-cotizaciones .os-viewport {
    overflow-x: hidden !important;
}

.view-section-cotizaciones .os-content > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.view-ordenes .os-scrollbar-horizontal {
    display: none !important;
}

.view-ordenes.os-viewport {
    overflow-x: hidden !important;
}

.view-ordenes .os-content > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Modal split-panel: Materiales */
.modal-producto-item {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gh-border, #30363d);
    transition: background 0.12s;
}

    .modal-producto-item:hover {
        background: rgba(88,166,255,0.06);
    }

    .modal-producto-item.active {
        background: rgba(88,166,255,0.12);
        border-left: 3px solid #58a6ff;
    }

.modal-materiales-left::-webkit-scrollbar,
.modal-materiales-right::-webkit-scrollbar {
    width: 4px;
}

.modal-materiales-left::-webkit-scrollbar-thumb,
.modal-materiales-right::-webkit-scrollbar-thumb {
    background: var(--gh-border, #30363d);
    border-radius: 4px;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-inline: 20px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.035), inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
    min-height: 95px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.kpi-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.1);
}

.kpi-icon.blue { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
.kpi-icon.green { background: rgba(16, 185, 129, 0.08); color: #059669; }
.kpi-icon.orange { background: rgba(249, 115, 22, 0.08); color: #ea580c; }
.kpi-icon.purple { background: rgba(139, 92, 246, 0.08); color: #7d3dec; }

.kpi-info { flex: 1; min-width: 0; }
.kpi-number { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: #0f172a; letter-spacing: -0.02em; }
.kpi-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-top: 4px; }

/* Skeleton loading */
.kpi-skeleton .kpi-number,
.kpi-skeleton .kpi-label {
    color: transparent !important;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
    min-width: 40%;
}
.kpi-skeleton .kpi-number { min-width: 30%; height: 1.5rem; }
.kpi-skeleton .kpi-label { min-width: 50%; height: 0.75rem; margin-top: 6px; }
.kpi-skeleton .kpi-icon { background: #e2e8f0 !important; color: transparent !important; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark mode */
[data-bs-theme="dark"] .kpi-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
[data-bs-theme="dark"] .kpi-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="dark"] .kpi-number { color: #f8fafc; }
[data-bs-theme="dark"] .kpi-label { color: #94a3b8; }
[data-bs-theme="dark"] .kpi-skeleton .kpi-number,
[data-bs-theme="dark"] .kpi-skeleton .kpi-label {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}
[data-bs-theme="dark"] .kpi-skeleton .kpi-icon { background: #1e293b !important; }

/* Profile specific */
.area-profile {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        color-mix(in srgb, var(--color-base, #3b7ddd) 5%, rgba(255, 255, 255, 0.95)) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.area-profile::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, 
        color-mix(in srgb, var(--color-base, #3b7ddd) 15%, transparent) 0%, 
        transparent 70%);
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.area-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--color-base, #3b7ddd) 8%, rgba(0, 0, 0, 0.05)) !important;
    border-color: color-mix(in srgb, var(--color-base, #3b7ddd) 35%, rgba(255, 255, 255, 0.8)) !important;
}

.area-profile:hover::before {
    transform: translate(-10px, 10px) scale(1.15);
}

.area-profile .d-flex {
    position: relative;
    z-index: 1;
}

[data-bs-theme="dark"] .area-profile {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .area-profile::before {
    background: radial-gradient(circle, 
        color-mix(in srgb, var(--color-base, #3b7ddd) 25%, transparent) 0%, 
        transparent 75%);
}

.status-pulse {
    width: 14px;
    height: 14px;
    background-color: #10b981;
    border: 2.5px solid #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-ring 2s infinite;
}

[data-bs-theme="dark"] .status-pulse {
    border-color: #1e293b;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}
@media (max-width: 480px) {
    .kpi-row { grid-template-columns: 1fr; }
}



/* =================================================================== */
/* ================ NAVBAR SEARCH OVERRIDE =============== */
/* =================================================================== */
/* Fix: app.css tiene .d-none despues de .d-md-flex, anulandolo siempre */
@media (min-width: 768px) {
    .navbar .nav-item .d-md-flex {
        display: flex !important;
        flex-grow: 0 !important;
        max-width: 280px !important;
        width: auto !important;
    }
}

/* =================================================================== */
/* ================ SWEETALERT2 PREMIUM STYLE OVERRIDES ================ */
/* =================================================================== */

:root {
  --sacc-swal-radius: 16px;
  --sacc-toast-radius: 12px;
  --sacc-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Natural ease-out scale and slide animations --- */
@keyframes saccSwalIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes saccToastIn {
  from {
    transform: translateY(12px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.sacc-anim-modal-show {
  animation: saccSwalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
.sacc-anim-toast-show {
  animation: saccToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* 1. TOASTS — Glassmorphism & Custom borders */
.swal2-popup.sacc-premium-toast {
  font-family: var(--sacc-font-family) !important;
  border-radius: var(--sacc-toast-radius) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  padding: 0.75rem 1rem !important;
  align-items: center !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-toast {
  background: rgba(22, 27, 34, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4) !important;
}

/* Overriding typography inside toast */
.swal2-popup.sacc-premium-toast .swal2-title {
  color: var(--bs-body-color, #1e293b) !important;
  font-family: var(--sacc-font-family) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-toast .swal2-title {
  color: var(--gh-text-default, #e6edf3) !important;
}

/* 2. MODALS — Rounded corners, modern shadows, clean layout */
.swal2-popup.sacc-premium-modal {
  font-family: var(--sacc-font-family) !important;
  border-radius: var(--sacc-swal-radius) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
  padding: 2.25rem 1.75rem !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal {
  background: var(--gh-bg-subtle, #161b22) !important;
  border: 1px solid var(--gh-border-default, #30363d) !important;
}

.swal2-popup.sacc-premium-modal .swal2-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--bs-body-color, #1e293b) !important;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-title {
  color: var(--gh-text-default, #e6edf3) !important;
}

.swal2-popup.sacc-premium-modal .swal2-html-container {
  font-size: 0.92rem !important;
  line-height: 1.6;
  color: #64748b !important;
  margin-top: 0.75rem !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-html-container {
  color: var(--gh-text-muted, #8b949e) !important;
}

/* Clean buttons and actions styling (independent of Bootstrap) */
.swal2-popup.sacc-premium-modal .swal2-actions {
  margin-top: 1.75rem !important;
  gap: 10px !important; /* Space between buttons */
}

.swal2-popup.sacc-premium-modal .swal2-actions .btn,
.swal2-popup.sacc-premium-modal .swal2-actions button {
  display: inline-block;
  font-size: 0.875rem !important;
  padding: 0.5rem 1.5rem !important;
  font-weight: 500 !important;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 0.25rem !important; /* Force standard rounded-2 style */
  transition: all 0.2s ease;
}

.swal2-popup.sacc-premium-modal .swal2-actions .btn:hover,
.swal2-popup.sacc-premium-modal .swal2-actions button:hover {
  transform: translateY(-1px);
}

.swal2-popup.sacc-premium-modal .swal2-actions .btn:active,
.swal2-popup.sacc-premium-modal .swal2-actions button:active {
  transform: translateY(0);
}

/* Light theme colors fallback */
.swal2-popup.sacc-premium-modal .swal2-actions .btn-primary,
.swal2-popup.sacc-premium-modal .swal2-actions .swal2-confirm {
  color: #fff !important;
  background-color: var(--erp-accent, #2563eb) !important;
  border-color: var(--erp-accent, #2563eb) !important;
}

.swal2-popup.sacc-premium-modal .swal2-actions .btn-primary:hover,
.swal2-popup.sacc-premium-modal .swal2-actions .swal2-confirm:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.swal2-popup.sacc-premium-modal .swal2-actions .btn-outline-secondary,
.swal2-popup.sacc-premium-modal .swal2-actions .swal2-cancel {
  color: #64748b !important;
  background-color: transparent !important;
  border-color: #cbd5e1 !important;
}

.swal2-popup.sacc-premium-modal .swal2-actions .btn-outline-secondary:hover,
.swal2-popup.sacc-premium-modal .swal2-actions .swal2-cancel:hover {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

/* Dark theme colors fallback */
[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .btn-primary,
[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .swal2-confirm {
  background-color: var(--gh-btn-primary-bg, #238636) !important;
  border-color: var(--gh-btn-primary-bg, #238636) !important;
  color: var(--gh-btn-primary-text, #fff) !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .btn-primary:hover,
[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .swal2-confirm:hover {
  background-color: var(--gh-btn-primary-hover-bg, #2ea043) !important;
  border-color: var(--gh-btn-primary-hover-bg, #2ea043) !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .btn-outline-secondary,
[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .swal2-cancel {
  background-color: var(--gh-btn-bg, #21262d) !important;
  border-color: var(--gh-btn-border, #30363d) !important;
  color: var(--gh-btn-text, #c9d1d9) !important;
}

[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .btn-outline-secondary:hover,
[data-bs-theme="dark"] .swal2-popup.sacc-premium-modal .swal2-actions .swal2-cancel:hover {
  background-color: var(--gh-btn-hover-bg, #30363d) !important;
  border-color: var(--gh-btn-hover-border, #8b949e) !important;
}

/* Prevent toast container from displaying a dark backdrop overlay (High Specificity Overrides) */
[data-bs-theme="dark"] body.swal2-toast-shown .swal2-container.swal2-backdrop-show,
[data-bs-theme="dark"] body.swal2-toast-shown .swal2-container.swal2-noanimation,
[data-bs-theme="dark"] body.swal2-toast-shown .swal2-container,
[data-bs-theme="dark"] .swal2-container.swal2-toast-container,
[data-bs-theme="dark"] .swal2-container.swal2-noanimation.swal2-toast-container,
.swal2-container.swal2-toast-container,
body.swal2-toast-shown .swal2-container {
  background: transparent !important;
  background-color: transparent !important;
  pointer-events: none !important; /* Allow clicks to pass through toast viewport */
}

.swal2-popup.sacc-premium-toast {
  pointer-events: auto !important; /* Re-enable pointer events for the toast card itself */
}

/* Custom close button (X) positioning and resetting Bootstrap clash */
.swal2-popup .swal2-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Arial, sans-serif !important;
  font-size: 1.6rem !important;
  width: 32px !important;
  height: 32px !important;
  color: #94a3b8 !important;
  background: transparent !important;
  background-image: none !important; /* Remove Bootstrap SVG close image */
  border: 0 !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.swal2-popup .swal2-close:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #ef4444 !important;
}

[data-bs-theme="dark"] .swal2-popup .swal2-close:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ═══════════════════════════════════════════
   FLOATING ACTION BUTTONS — Soporte + Reporte
   ═══════════════════════════════════════════ */

/* ── Base compartida para todo FAB ──────────── */
.fab-base {
    position: fixed;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 1050;
}

.fab-base i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.fab-base:active {
    transform: scale(0.95);
}

/* ── Soporte ── purple gradient ─────────────── */
.soporte-fab {
    bottom: 28px;
    left: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: scale(0);
    opacity: 0;
}

.soporte-fab.show {
    transform: scale(1);
    opacity: 1;
}

.soporte-fab::after {
    content: 'Soporte del Sistema';
}

.soporte-fab:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ── Reporte PDF ── blue/cyan gradient ──────── */
.reporte-fab {
    bottom: 96px;
    left: auto;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
    transform: scale(0);
    opacity: 0;
}

.reporte-fab.show {
    transform: scale(1);
    opacity: 1;
}

.reporte-fab::after {
    content: 'Reportes PDF';
}

.reporte-fab:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

/* ── Hover global de FAB — va AL FINAL para ganarle a .show ── */
.fab-base:hover {
    transform: scale(1.1) translateY(-2px);
    color: #fff;
}

.fab-base:hover i {
    transform: rotate(-10deg);
}

/* Tooltip genérico para FABs */
.fab-base::after {
    position: absolute;
    right: 62px;
    background: #212529;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fab-base:hover::after {
    opacity: 1;
}

/* ── Modal Reporte PDF — animación manual (sin .fade de Bootstrap) ── */
#modalReportePDF .modal-dialog {
    transition: transform 0.25s ease-out, opacity 0.15s ease-out;
    transform: translate(0, -20px);
    opacity: 0;
}

#modalReportePDF.show .modal-dialog {
    transform: translate(0, 0);
    opacity: 1;
}

/* ── Modal Content ────────────────────────── */
.modal-soporte-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-soporte-header {
    padding: 1rem 1.25rem 0.5rem;
}

.modal-soporte-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-close-soporte {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-soporte-notice {
    padding-bottom: 0.5rem;
}

.modal-soporte-sidebar {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .modal-soporte-sidebar {
    background: #1e1e1e;
    border-color: #333;
}

.modal-soporte-footer {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .modal-soporte-footer {
    background: #1e1e1e;
    border-color: #333;
}

/* ── Nav-Vertical dentro del modal ────────── */
#modalSoporte .nav.nav-vertical {
    max-width: 100%;
    width: 100%;
}

#modalSoporte .nav.nav-vertical .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    color: #495057;
    display: flex;
    align-items: center;
    width: 100%;
}

#modalSoporte .nav.nav-vertical .nav-link i {
    font-size: 1rem;
    margin-right: 0.6rem;
}

#modalSoporte .nav.nav-vertical .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.08);
    color: #495057;
}

#modalSoporte .nav.nav-vertical .nav-link.active {
    background-color: rgba(102, 126, 234, 0.12);
    color: #667eea;
    border-left: 3px solid #667eea;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
}

[data-bs-theme="dark"] #modalSoporte .nav.nav-vertical .nav-link {
    color: #adb5bd;
}

[data-bs-theme="dark"] #modalSoporte .nav.nav-vertical .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.12);
    color: #e9ecef;
}

[data-bs-theme="dark"] #modalSoporte .nav.nav-vertical .nav-link.active {
    background-color: rgba(102, 126, 234, 0.2);
    color: #a78bfa;
    border-left-color: #a78bfa;
}

/* ── Ticket Cards ─────────────────────────── */
.soporte-lista-cards .soporte-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.soporte-lista-cards .soporte-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-left: 3px solid #667eea;
}

.soporte-lista-cards .soporte-card:active {
    transform: translateY(0);
}

[data-bs-theme="dark"] .soporte-lista-cards .soporte-card {
    background: #2a2a2a;
    border-color: #333 !important;
}

[data-bs-theme="dark"] .soporte-lista-cards .soporte-card:hover {
    background: #333;
    border-left-color: #a78bfa;
}

/* ── Comentarios ──────────────────────────── */
.soporte-comentarios-container {
    max-height: 350px;
    overflow-y: auto;
}

.soporte-comentario {
    transition: background 0.15s ease;
}

/* ── Drag & Drop ──────────────────────────── */
.soporte-drop-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.soporte-drop-zone-sm {
    padding: 0.75rem;
}

.soporte-drop-zone:hover,
.soporte-drop-zone.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.04);
}

.soporte-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.soporte-drop-zone.drag-over .soporte-drop-overlay {
    opacity: 1;
}

[data-bs-theme="dark"] .soporte-drop-zone {
    border-color: #444;
    background: #2a2a2a;
}

[data-bs-theme="dark"] .soporte-drop-zone:hover,
[data-bs-theme="dark"] .soporte-drop-zone.drag-over {
    border-color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
}

[data-bs-theme="dark"] .soporte-drop-overlay {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

/* ── Preview ──────────────────────────────── */
.soporte-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.soporte-preview-item {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .soporte-preview-item {
    background: #333;
    border-color: #444 !important;
}

/* ── Detalle ──────────────────────────────── */
.soporte-detalle-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

[data-bs-theme="dark"] .soporte-detalle-header {
    border-bottom-color: #333;
}

/* ── Textarea ─────────────────────────────── */
#soporte-comentario-texto {
    resize: none;
}

/* ── Animaciones ──────────────────────────── */
@keyframes soporte-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.soporte-card,
.soporte-comentario {
    animation: soporte-fade-in 0.3s ease both;
}

.soporte-card:nth-child(2) { animation-delay: 0.02s; }
.soporte-card:nth-child(3) { animation-delay: 0.04s; }
.soporte-card:nth-child(4) { animation-delay: 0.06s; }
.soporte-card:nth-child(5) { animation-delay: 0.08s; }
.soporte-card:nth-child(n+6) { animation-delay: 0.1s; }

/* ── Badge colores adicionales ────────────── */
.bg-orange {
    background-color: #fd7e14 !important;
    color: #fff !important;
}
