/* =========================================
   FUENTE INTER - SERVIDA LOCALMENTE (sin CDN)
   ========================================= */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../webfonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../webfonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../webfonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Scrollbar Personalizado */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.login-page {
    overflow: hidden !important;
}


::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}


:root {
    color-scheme: dark;
}

html.light-theme,
html.light-theme :root {
    color-scheme: light;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
select {
    color-scheme: dark;
}

html.light-theme input[type="date"],
html.light-theme input[type="time"],
html.light-theme input[type="datetime-local"],
html.light-theme select {
    color-scheme: light;
}

/* Tipografía y fondo dinámico principal */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {

    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
    color: #fff !important;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navbar - Negro YouTube */
.sb-topnav {
    background: #0f0f0f !important;
    border: none !important;
    box-shadow: none;
}

/* Sidebar - Negro YouTube */
.sb-sidenav {
    background: #0f0f0f !important;
    border: none !important;
    box-shadow: none;
}

/* Enlaces y textos de navegación */
.sb-sidenav .nav-link,
.sb-topnav .nav-link,
.sb-topnav .navbar-text,
.sb-sidenav-menu-heading {
    color: #aaaaaa !important;
}

.sb-sidenav .nav-link:hover {
    color: #00c6ff !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 5px;
}

/* Asegurar que los contenedores principales sean transparentes para ver el fondo */
#layoutSidenav_content,
main {
    background: transparent !important;
}

/* Todas las tarjetas (Cards) de la aplicación, EXCEPTO las que tienen color propio */
.card:not(.bg-primary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-info):not(.bg-cardCliente):not(.bg-cardOrdenes):not(.bg-cardUsuarios):not(.bg-cardEquipos) {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

/* Modales */
.modal-content {
    background: rgba(20, 30, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Inputs en general */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #00c6ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 198, 255, 0.25) !important;
}

/* Sobrescribir el estilo de autocompletado del navegador (autofill) para el tema oscuro */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active,
.form-select:-webkit-autofill,
.form-select:-webkit-autofill:hover,
.form-select:-webkit-autofill:focus,
.form-select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a2a35 inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-floating>label {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: #7a7e7e !important;
    opacity: 1 !important;
}

/* Para selects dropdowns, oscurecer opciones */
option {
    background: #1a2a35;
    color: white;
}

/* DataTables */
table.dataTable,
table.dataTable th,
.table,
.table th {
    color: #fff !important;
    border: none !important;
}

table.dataTable td,
.table td {
    color: rgba(255, 255, 255, 0.562) !important;
    border: none !important;
}

/* Líneas de columnas tenues */
table.dataTable td,
table.dataTable th,
.table td,
.table th {
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Quitar línea izquierda de la primera columna */
table.dataTable td:first-child,
table.dataTable th:first-child,
.table td:first-child,
.table th:first-child {
    border-left: none !important;
}

/* Línea inferior solo para el encabezado (nombres de columnas) */
table.dataTable thead th,
.table thead th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 1.2rem 1rem !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

table.dataTable tbody td,
.table tbody td {
    padding: 1rem !important;
    vertical-align: middle;
}

table.dataTable tbody tr {
    background-color: transparent !important;
}

table.dataTable.display tbody tr.odd>.sorting_1,
table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

table.dataTable.display tbody tr.even>.sorting_1,
table.dataTable.order-column.stripe tbody tr.even>.sorting_1 {
    background-color: transparent !important;
}

table.dataTable.display tbody tr:hover>.sorting_1,
table.dataTable.display tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #ffffffc7 !important;
}

.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Paginación premium - botones de número de página */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 2px !important;
    padding: 5px 12px !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(6px) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15) !important;
    font-weight: 700 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: default !important;
}

/* Footer principal */
footer {
    background: transparent !important;
    border-top: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Navbar superior y Menú lateral - Negro YouTube */
.sb-topnav.bg-dark {
    background: #0f0f0f !important;
    border: none !important;
    box-shadow: none !important;
}

.sb-sidenav-dark {
    background: #0f0f0f !important;
    border: none !important;
    box-shadow: none !important;
}

/* Evitar que el cristal del menú lateral se superponga detrás del topnav */
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav {
    padding-top: 0 !important;
    margin-top: 56px !important;
    height: calc(100% - 56px) !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a {
    color: #00c6ff;
}

/* Elementos de Login */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 100%;
    max-width: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

.login-title {
    font-weight: 600;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.login-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-page .form-control {
    max-width: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.login-page .form-control:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #00c6ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 198, 255, 0.25) !important;
    color: #fff !important;
}

.login-page .form-floating>label {
    width: 100%;
    color: rgba(255, 255, 255, 0.6) !important;
}

.login-page .form-floating>.form-control:focus~label,
.login-page .form-floating>.form-control:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0) !important;
    color: #00c6ff !important;
    opacity: 0.85 !important;
}

/* Sobrescribir el estilo de autocompletado del navegador (autofill) en el login */
.login-page .form-control:-webkit-autofill,
.login-page .form-control:-webkit-autofill:hover,
.login-page .form-control:-webkit-autofill:focus,
.login-page .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #162a35 inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s !important;
}



.btn-login {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
    color: white;
}

.btn-premium {
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 0.8rem 1.8rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3) !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5) !important;
    background: linear-gradient(135deg, #0072ff, #00c6ff) !important;
}

.btn-success,
.btn-success-premium {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 0.8rem 1.8rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
    color: white !important;
}

.btn-success:hover,
.btn-success-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5) !important;
    background: linear-gradient(135deg, #1e7e34, #28a745) !important;
    color: white !important;
}

.btn-warning,
.btn-warning-premium {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 0.8rem 1.8rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
    color: white !important;
}

.btn-warning:hover,
.btn-warning-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5) !important;
    background: linear-gradient(135deg, #ff9800, #ffc107) !important;
    color: white !important;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 0.8rem 1.8rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3) !important;
    color: white !important;
}

.btn-info:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5) !important;
    background: linear-gradient(135deg, #117a8b, #17a2b8) !important;
    color: white !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 0.8rem 1.8rem !important;
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
}

.btn-secondary:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 0.8rem 1.8rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3) !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5) !important;
    background: linear-gradient(135deg, #0072ff, #00c6ff) !important;
    color: white !important;
}



.login-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.light-bulb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.bulb-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(0, 198, 255, 0.2);
}

.bulb-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 114, 255, 0.2);
}

/* Estilo para la orden de ingreso (Vista previa y Print) */
.orden-print {
    background-color: white !important;
    color: #000 !important;
    padding: 2.5rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    margin: 10px;
}

.orden-print * {
    color: #000 !important;
}

.orden-print hr {
    border-top: 1px solid #dee2e6 !important;
    opacity: 1 !important;
    margin: 1.5rem 0 !important;
}

.orden-print .text-primary {
    color: #0d6efd !important;
}

.orden-print a {
    color: #0d6efd !important;
}

.orden-print .small,
.orden-print small {
    color: #6c757d !important;
}

.orden-print table,
.orden-print .table,
.orden-print .table th,
.orden-print .table td,
.orden-print table.dataTable th,
.orden-print table.dataTable td {
    color: #000 !important;
    background-color: transparent !important;
}

.orden-print .table th,
.orden-print .table td {
    border-bottom: 1px solid #dee2e6 !important;
}

.orden-print .table-bordered,
.orden-print .table-bordered th,
.orden-print .table-bordered td {
    border: 1px solid #dee2e6 !important;
}

.orden-print .table-borderless th,
.orden-print .table-borderless td {
    border: none !important;
    border-bottom: none !important;
}


/* Notificaciones Toast Premium */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background: rgba(20, 30, 40, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    padding: 1rem 1.5rem;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
    min-width: 300px;
}

.custom-toast.success {
    border-left: 4px solid #00ff88;
}

.custom-toast.error {
    border-left: 4px solid #ff4b2b;
}

.custom-toast.info {
    border-left: 4px solid #00c6ff;
}

.custom-toast i {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Clases de Utilidad para Diseño Premium y Full Width */

/* Forzar que el contenedor principal del layout use todo el ancho en páginas específicas */
.main-full-width #layoutSidenav_content main>.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.page-header-premium {
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
}



.card-full-screen {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.table-responsive-custom {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.table-responsive-custom::-webkit-scrollbar {
    height: 8px;
}

.table-responsive-custom::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Padding lateral para el contenido de DataTables en modo full width */
.main-full-width .dataTables_wrapper {
    padding: 0 1.5rem;
}

/* Estilos para la pagina de Recuperacion */
.hover-bg-opacity-25:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

/* ==========================================
   P�GINA DE ACTIVACI�N / LICENCIA
   ========================================== */
.licencia-page {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%) !important;
    margin: 0;
}

.licencia-page .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.licencia-page .hwid-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed #3b82f6;
    color: #3b82f6;
    padding: 15px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.licencia-page .hwid-box:hover {
    background: rgba(59, 130, 246, 0.1);
}

.licencia-page .form-control {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-size: 1.2rem !important;
    letter-spacing: 3px !important;
}

.licencia-page .form-control:focus {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}

.licencia-page .btn-activate {
    background: #3b82f6;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
    color: white;
}

.licencia-page .btn-activate:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.licencia-page .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #ef4444;
    color: white;
    margin-bottom: 20px;
}

.licencia-page .copy-tooltip {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: -15px;
    display: block;
}

body.licencia-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    margin: 0 !important;
}

/* ========================================
   FONDO BORROSO AL ABRIR MODALES (Glassmorphism)
   Se usa backdrop-filter para que solo se difumine
   el fondo detras del modal, sin afectar el modal en si.
======================================== */

/* Cuando hay un modal abierto, deshabilitar clicks en el fondo */
body.modal-open #layoutSidenav_content,
body.modal-open #layoutSidenav_nav {
    pointer-events: none;
}

/* Backdrop con efecto blur gradual */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, opacity 0.3s ease !important;
}

.modal-backdrop.show {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1 !important;
}

/* ========================================
   BOTONES DE ACCION PREMIUM EN TABLAS
======================================== */
.btn-action-edit,
.btn-action-view,
.btn-action-history,
.btn-action-delete,
.btn-action-cancel,
.btn-action-print {
    border: none !important;
    border-radius: 8px !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    margin: 0 2px !important;
}

.btn-action-edit {
    background: rgba(0, 198, 255, 0.15) !important;
    border: 1px solid rgba(0, 198, 255, 0.4) !important;
    color: #00c6ff !important;
}

.btn-action-edit:hover {
    background: #00c6ff !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.4) !important;
}

.btn-action-view {
    background: rgba(0, 226, 154, 0.15) !important;
    border: 1px solid rgba(0, 226, 154, 0.4) !important;
    color: #00e29a !important;
}

.btn-action-view:hover {
    background: #00e29a !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 226, 154, 0.4) !important;
}

.btn-action-history {
    background: rgba(0, 198, 255, 0.15) !important;
    border: 1px solid rgba(0, 198, 255, 0.4) !important;
    color: #00c6ff !important;
}

.btn-action-history:hover {
    background: #00c6ff !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.4) !important;
}

.btn-action-delete {
    background: rgba(255, 75, 75, 0.15) !important;
    border: 1px solid rgba(255, 75, 75, 0.4) !important;
    color: #ff4b4b !important;
}

.btn-action-delete:hover {
    background: #ff4b4b !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 75, 75, 0.4) !important;
}

.btn-action-cancel {
    background: rgba(255, 140, 0, 0.15) !important;
    border: 1px solid rgba(255, 140, 0, 0.4) !important;
    color: #ff8c00 !important;
}

.btn-action-cancel:hover {
    background: #ff8c00 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4) !important;
}

.btn-action-print {
    background: rgba(245, 197, 24, 0.15) !important;
    border: 1px solid rgba(245, 197, 24, 0.4) !important;
    color: #f5c518 !important;
}

.btn-action-print:hover {
    background: #f5c518 !important;
    color: #1a1a1a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4) !important;
}

/* ========================================
   BADGES PREMIUM CON EFECTO GLASSMORPHISM
======================================== */
.badge {
    padding: 0.45em 0.85em !important;
    font-weight: 600 !important;
    font-size: 0.785rem !important;
    border-radius: 6px !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Primario - Abierta */
.badge.bg-primary {
    background: rgba(0, 198, 255, 0.15) !important;
    border: 1px solid rgba(0, 198, 255, 0.4) !important;
    color: #00c6ff !important;
}

/* Éxito / Activo / Reparado */
.badge.bg-success {
    background: rgba(0, 226, 154, 0.15) !important;
    border: 1px solid rgba(0, 226, 154, 0.4) !important;
    color: #00e29a !important;
}

/* Información / En Proceso */
.badge.bg-info {
    background: rgba(13, 202, 240, 0.15) !important;
    border: 1px solid rgba(13, 202, 240, 0.4) !important;
    color: #0dcaf0 !important;
}

/* Advertencia / Espera Repuesto / Stock Bajo */
.badge.bg-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    color: #ffc107 !important;
}

/* Peligro / Cancelada / Sin Stock / Inactivo */
.badge.bg-danger {
    background: rgba(255, 75, 75, 0.15) !important;
    border: 1px solid rgba(255, 75, 75, 0.4) !important;
    color: #ff4b4b !important;
}

/* Secundario / Entregado */
.badge.bg-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Oscuro */
.badge.bg-dark {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

/* Claro */
.badge.bg-light {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Púrpura / Ingresado */
.badge.bg-purple,
.badge[style*="background-color: #6f42c1"],
.badge[style*="background-color:#6f42c1"] {
    background: rgba(111, 66, 193, 0.18) !important;
    border: 1px solid rgba(111, 66, 193, 0.4) !important;
    color: #c5a3ff !important;
}

/* Menús Dropdown Premium (Fondo oscuro y letras claras) */
.dropdown-menu {
    background: rgba(20, 30, 40, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #00c6ff !important;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    opacity: 1 !important;
}

/* Tarjetas de Resumen en Panel de Control - Glassmorphism de Colores */
.bg-cardCliente,
.bg-cardEquipos,
.bg-cardOrdenes,
.bg-cardUsuarios {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

.bg-cardCliente {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.22) 0%, rgba(118, 75, 162, 0.22) 100%) !important;
}

.bg-cardEquipos {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.22) 0%, rgba(56, 239, 125, 0.22) 100%) !important;
}

.bg-cardOrdenes {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.22) 0%, rgba(245, 87, 108, 0.22) 100%) !important;
}

.bg-cardUsuarios {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.22) 0%, rgba(0, 242, 254, 0.22) 100%) !important;
}

/* ==========================================================================
   SISTEMA DE TEMAS: TEMA CLARO (LIGHT THEME)
   ========================================================================== */

/* Botón flotante selector de tema */
.theme-toggle-btn-nav {
    color: rgba(255, 255, 255, 0.55) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    border-radius: 50%;
    margin-left: 8px;
    width: 32px;
    height: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-toggle-btn-nav:hover {
    color: #00c6ff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: rotate(30deg) scale(1.1);
}

/* Modificador de clase Light Theme (aplicado a la etiqueta HTML) */
.light-theme body {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1) !important;
    color: #1e293b !important;
}

/* Navbar y Sidebar en el tema claro con el mismo color azul del tema oscuro */
.light-theme .sb-topnav,
.light-theme .sb-topnav.bg-dark {
    background: rgba(0, 25, 70, 0.95) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: none !important;
    box-shadow: 0 4px 24px rgba(0, 25, 70, 0.35) !important;
}

.light-theme .sb-topnav .nav-link,
.light-theme .sb-topnav .navbar-text {
    color: rgba(255, 255, 255, 0.55) !important;
}

.light-theme .sb-topnav .nav-link:hover {
    color: #00c6ff !important;
}

.light-theme #sidebarToggle {
    color: rgba(255, 255, 255, 0.55) !important;
}

.light-theme #sidebarToggle:hover {
    color: #00c6ff !important;
}

.light-theme .theme-toggle-btn-nav {
    color: rgba(255, 255, 255, 0.55) !important;
}

.light-theme .theme-toggle-btn-nav:hover {
    color: #00c6ff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.light-theme .sb-sidenav,
.light-theme .sb-sidenav-dark {
    background: rgba(0, 25, 70, 0.95) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: none !important;
    box-shadow: 4px 0 24px rgba(0, 25, 70, 0.35) !important;
}

.light-theme .sb-sidenav .nav-link {
    color: rgba(255, 255, 255, 0.55) !important;
    transition: all 0.2s ease;
}

.light-theme .sb-sidenav .nav-link .sb-nav-link-icon {
    color: rgba(255, 255, 255, 0.35) !important;
    transition: all 0.2s ease;
}

.light-theme .sb-sidenav .nav-link:hover {
    color: #00c6ff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
    margin: 0 5px;
}

.light-theme .sb-sidenav .nav-link:hover .sb-nav-link-icon {
    color: #00c6ff !important;
}

.light-theme .sb-sidenav .nav-link.active {
    color: #fff !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    margin: 0 5px;
}

.light-theme .sb-sidenav .nav-link.active .sb-nav-link-icon {
    color: #fff !important;
}

.light-theme .sb-sidenav-menu-heading {
    color: rgba(255, 255, 255, 0.35) !important;
}

.light-theme .barraizq {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Tarjetas principales de la aplicación */
.light-theme .card:not(.bg-primary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-info):not(.bg-cardCliente):not(.bg-cardOrdenes):not(.bg-cardUsuarios):not(.bg-cardEquipos) {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06) !important;
    color: #1e293b !important;
}

.light-theme .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

/* Campos de entrada e inputs */
.light-theme .form-control,
.light-theme .form-select {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}

.light-theme .form-control:focus,
.light-theme .form-select:focus {
    background: #ffffff !important;
    border-color: #0072ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 114, 255, 0.15) !important;
    color: #1e293b !important;
}

.light-theme .form-control::placeholder,
.light-theme .form-select::placeholder {
    color: #94a3b8 !important;
}

.light-theme .form-floating>label {
    color: #64748b !important;
}

.light-theme .form-floating>.form-control:focus~label,
.light-theme .form-floating>.form-control:not(:placeholder-shown)~label {
    color: #475569 !important;
}

/* Elementos option de selects */
.light-theme option {
    background: #ffffff;
    color: #1e293b;
}



/* Tablas y listados */
.light-theme table.dataTable,
.light-theme table.dataTable th,
.light-theme .table,
.light-theme .table th {
    color: #1e293b !important;
}

.light-theme table.dataTable td,
.light-theme .table td {
    color: #475569 !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.light-theme table.dataTable thead th,
.light-theme .table thead th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-theme table.dataTable tbody tr:hover>.sorting_1,
.light-theme table.dataTable tbody tr:hover {
    background-color: rgba(0, 114, 255, 0.04) !important;
}

.light-theme .dataTables_wrapper .dataTables_length,
.light-theme .dataTables_wrapper .dataTables_filter,
.light-theme .dataTables_wrapper .dataTables_info,
.light-theme .dataTables_wrapper .dataTables_processing,
.light-theme .dataTables_wrapper .dataTables_paginate {
    color: #334155 !important;
}

.light-theme .dataTables_wrapper .dataTables_filter input,
.light-theme .dataTables_wrapper .dataTables_length select {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Paginación en modo claro */
.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #334155 !important;
}

.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.light-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: rgba(0, 114, 255, 0.1) !important;
    border-color: rgba(0, 114, 255, 0.3) !important;
    color: #0072ff !important;
}

/* Footer */
.light-theme footer .text-muted {
    color: #475569 !important;
}

/* Menús desplegables claros */
.light-theme .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

.light-theme .dropdown-item {
    color: #334155 !important;
}

.light-theme .dropdown-item:hover,
.light-theme .dropdown-item:focus {
    background: rgba(0, 114, 255, 0.06) !important;
    color: #0072ff !important;
}

.light-theme .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Tarjetas de estadísticas adaptadas en modo claro (diseño vibrante con gradientes sólidos para mantener legibilidad del texto blanco) */
.light-theme .bg-cardCliente {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}

.light-theme .bg-cardEquipos {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%) !important;
}

.light-theme .bg-cardOrdenes {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
}

.light-theme .bg-cardUsuarios {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
}

/* Corrección de colores de títulos de página en modo claro */
.light-theme #layoutSidenav_content h1.text-white,
.light-theme #layoutSidenav_content h2.text-white,
.light-theme #layoutSidenav_content h3.text-white,
.light-theme #layoutSidenav_content h4.text-white,
.light-theme #layoutSidenav_content h5.text-white,
.light-theme #layoutSidenav_content h6.text-white,
.light-theme #layoutSidenav_content .text-white {
    color: #0f172a !important;
}

.light-theme #layoutSidenav_content p.text-white-50,
.light-theme #layoutSidenav_content .text-white-50 {
    color: #475569 !important;
}

/* Asegurar que los botones con clase text-white mantengan la letra blanca */
.light-theme #layoutSidenav_content .btn.text-white,
.light-theme #layoutSidenav_content .btn.text-white *,
.light-theme #layoutSidenav_content .btn .text-white {
    color: #ffffff !important;
}

/* Asegurar que el texto dentro de las tarjetas estadísticas se mantenga blanco */
.light-theme #layoutSidenav_content .bg-cardCliente,
.light-theme #layoutSidenav_content .bg-cardCliente *,
.light-theme #layoutSidenav_content .bg-cardEquipos,
.light-theme #layoutSidenav_content .bg-cardEquipos *,
.light-theme #layoutSidenav_content .bg-cardOrdenes,
.light-theme #layoutSidenav_content .bg-cardOrdenes *,
.light-theme #layoutSidenav_content .bg-cardUsuarios,
.light-theme #layoutSidenav_content .bg-cardUsuarios * {
    color: #ffffff !important;
}

.light-theme #layoutSidenav_content .bg-cardCliente .text-white-50,
.light-theme #layoutSidenav_content .bg-cardEquipos .text-white-50,
.light-theme #layoutSidenav_content .bg-cardOrdenes .text-white-50,
.light-theme #layoutSidenav_content .bg-cardUsuarios .text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Badges de información de empresa en modo claro */
.light-theme .badge.bg-light {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

.light-theme .badge.bg-light i {
    color: #0072ff !important;
}

.light-theme .badge.bg-light strong {
    color: #0f172a !important;
}

/* Modales en modo claro */
.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

.light-theme .modal-header,
.light-theme .modal-footer {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Botones secundarios */
.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #334155 !important;
}

.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

/* Estilos de la página de Login en modo claro */
.light-theme.login-page body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
}

.light-theme.login-page .glass-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
    color: #1e293b !important;
}

.light-theme.login-page #db-status {
    color: #475569 !important;
}

.light-theme.login-page .login-subtitle {
    color: #475569 !important;
}

.light-theme.login-page .form-floating>label {
    color: #64748b !important;
}

.light-theme.login-page .form-floating>.form-control:focus~label,
.light-theme.login-page .form-floating>.form-control:not(:placeholder-shown)~label {
    color: #0072ff !important;
}

.light-theme.login-page .form-control {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}

.light-theme.login-page .form-control:focus {
    background: #ffffff !important;
    border-color: #0072ff !important;
}

/* Estilos del botón selector en el navbar (mantiene la misma apariencia ya que el navbar siempre es oscuro) */

/* Corrección de colores de autocompletado en modo claro */
.light-theme .form-control:-webkit-autofill,
.light-theme .form-control:-webkit-autofill:hover,
.light-theme .form-control:-webkit-autofill:focus,
.light-theme .form-control:-webkit-autofill:active,
.light-theme .form-select:-webkit-autofill,
.light-theme .form-select:-webkit-autofill:hover,
.light-theme .form-select:-webkit-autofill:focus,
.light-theme .form-select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Badges adaptados */
.light-theme .badge.bg-secondary {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
}

.light-theme .badge.bg-dark {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}

/* ==========================================
   SIDEBAR COLAPSO DE ICONOS (Desktop >= 992px)
   ========================================== */
@media (min-width: 992px) {

    /* Transiciones suaves */
    #layoutSidenav #layoutSidenav_nav {
        transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    #layoutSidenav #layoutSidenav_content {
        transition: padding-left 0.2s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .sb-topnav .navbar-brand {
        transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Cuando está colapsado: ancho de 70px */
    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
        width: 70px !important;
        transform: translateX(0) !important;
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav .sb-sidenav {
        width: 70px !important;
    }

    .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
        padding-left: 70px !important;
        margin-left: 0 !important;
    }

    /* Navbar brand se ajusta */
    .sb-sidenav-toggled .sb-topnav .navbar-brand {
        width: 70px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Reemplazar logo del navbar por el TecnoService_icono.png */
    .sb-sidenav-toggled .sb-topnav .navbar-brand img {
        max-height: 35px !important;
        content: url("/Content/images/TecnoService_icono.png") !important;
    }

    /* Ocultar elementos sobrantes del sidebar colapsado */
    .sb-sidenav-toggled #layoutSidenav_nav .sb-sidenav-menu-heading,
    .sb-sidenav-toggled #layoutSidenav_nav .sb-sidenav-collapse-arrow,
    .sb-sidenav-toggled #layoutSidenav_nav .barraizq {
        opacity: 0;
        height: 0;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        pointer-events: none;
        transition: opacity 0.15s ease-out;
    }

    /* Ocultar texto de los links del sidebar y centrar iconos */
    .sb-sidenav-toggled #layoutSidenav_nav .nav-link {
        font-size: 0 !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        height: 48px;
    }

    .sb-sidenav-toggled #layoutSidenav_nav .nav-link .sb-nav-link-icon {
        margin-right: 0 !important;
        font-size: 1.25rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .sb-sidenav-toggled #layoutSidenav_nav .sb-sidenav-menu-nested {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* ---- Tooltips para sidebar colapsado ---- */
    body:not(.sb-sidenav-toggled) .sidebar-tooltip {
        display: none !important;
        pointer-events: none !important;
    }
}

/* Estilos de Tooltips Premium personalizados */
.tooltip .tooltip-inner {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(15, 23, 42, 0.95) !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(15, 23, 42, 0.95) !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(15, 23, 42, 0.95) !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(15, 23, 42, 0.95) !important;
}

/* Espaciado global para iconos en botones que tienen texto */
.btn > i:first-child:not(:last-child),
.btn-premium > i:first-child:not(:last-child),
.btn-success-premium > i:first-child:not(:last-child),
.btn-warning-premium > i:first-child:not(:last-child) {
    margin-right: 8px;
}

/* ==========================================================================
   ESTILOS GLOBALES DE ENCABEZADO DE TABLAS (THEAD)
   ========================================================================== */
.table thead,
.dataTables_wrapper table thead,
.table-responsive-custom table thead {
    background-color: rgba(0, 0, 0, 0.25) !important;
}

.table thead th,
.dataTables_wrapper table thead th,
.table-responsive-custom table thead th {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
}

.light-theme .table thead,
.light-theme .dataTables_wrapper table thead,
.light-theme .table-responsive-custom table thead {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.light-theme .table thead th,
.light-theme .dataTables_wrapper table thead th,
.light-theme .table-responsive-custom table thead th {
    color: #1e293b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================
   BOTONES DE FILTRO RÁPIDO ADAPTATIVOS
   ========================================== */
.btn-outline-info {
    color: #38bdf8 !important;
    border-color: #0284c7 !important;
    background-color: rgba(2, 132, 199, 0.1) !important;
}

.btn-outline-info:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

.btn-outline-info.active,
.btn-outline-info:active {
    background-color: #00bcd4 !important;
    border-color: #00bcd4 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Modo Claro: Botones y etiquetas */
.light-theme .btn-outline-info {
    color: #0369a1 !important;
    border-color: #0284c7 !important;
    background-color: rgba(2, 132, 199, 0.06) !important;
}

.light-theme .btn-outline-info:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

.light-theme .btn-outline-info.active,
.light-theme .btn-outline-info:active {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.light-theme .text-white-50 {
    color: #475569 !important;
}