/* ============================================================
   SISTEMA DE VENTAS — estilos.css
   Todas las clases originales conservadas.
   Clases nuevas: brand-*, navbar-custom, navbar-link,
   sucursal-select, user-avatar, dropdown-custom,
   sidebar-item, sidebar-item-locked, sidebar-section-label
   ============================================================ */

@import url('sisstar-theme.css');

html[data-theme="dark"] {
    color-scheme: dark !important;
}

html[data-theme="light"] {
    color-scheme: light !important;
}

/* Cambiar el color de acento azul nativo del navegador a esmeralda */
input,
select,
textarea,
button {
    accent-color: var(--sis-teal) !important;
}

:root {
    --primary-color: #00d4aa; /* Verde Esmeralda Corporativo */
    --secondary-color: #6c757d;
    --success-color: #00967e;  /* Verde Esmeralda Oscuro */
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

/* ================================================================
   LOGIN
   ================================================================ */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 212, 170, 0.18), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(160deg, #05060f 0%, #070a16 42%, #0a1020 100%);
    color: #eef0ff;
}

.login-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .login-page {
    background:
        radial-gradient(circle at top left, rgba(0, 212, 170, 0.14), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.08), transparent 26%),
        linear-gradient(160deg, #eff6f3 0%, #eef4f9 45%, #f6f3fb 100%);
    color: #0a0e1a;
}

[data-theme="light"] .login-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.09);
}

.login-page .form-control,
.login-page .form-select {
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    border-color: rgba(255, 255, 255, 0.09);
}

.login-page .form-control::placeholder {
    color: rgba(238, 240, 255, 0.42);
}

[data-theme="light"] .login-page .form-control::placeholder {
    color: rgba(10, 14, 26, 0.38);
}

.login-page .form-control:focus,
.login-page .form-select:focus {
    border-color: rgba(0, 212, 170, 0.32);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.login-page .form-label,
.login-page .text-muted,
.login-page .small {
    color: rgba(238, 240, 255, 0.76) !important;
}

[data-theme="light"] .login-page .form-label,
[data-theme="light"] .login-page .text-muted,
[data-theme="light"] .login-page .small {
    color: rgba(10, 14, 26, 0.7) !important;
}

/* ================================================================
   NAVBAR
   ================================================================ */

/* Navbar de escritorio */
.navbar-custom {
    min-height: 180px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.navbar-custom .container-fluid {
    position: relative;
}

/* --- BRAND / LOGO --- */
.brand-empresa {
    gap: 1.1rem;
    max-width: 920px;
    text-decoration: none;
}

.navbar-center-title {
    position: absolute;
    left: 50%;
    top: 68%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, .92);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .30em;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.navbar-center-title::after {
    content: "";
    width: calc(100% + 1.4rem);
    margin-top: .22rem;
    margin-left: -.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.brand-logo-frame {
    width: 200px;
    height: 180px;
    min-width: 160px;
    border-radius: 20px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    flex: 0 0 auto;
    margin-right: .25rem;
}

/* Logo imagen */
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fallback (icono cuando no hay logo) */
.brand-fallback {
    background: linear-gradient(135deg, #eef4ff 0%, #ffffff 100%);
    color: var(--primary-color);
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
}

.brand-logo-default {
    object-fit: contain;
    background: #000;
    padding: 4px;
}

/* Texto al lado del logo */
.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .55);
}

.brand-copy .brand-saas {
    display: none;
}

.brand-copy small {
    color: rgba(255, 255, 255, .72);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .67rem;
    margin-bottom: .15rem;
}

.brand-copy strong {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.05;
    word-break: break-word;
    font-family: Georgia, "Times New Roman", serif;
}

.brand-copy .brand-sucursal {
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    margin-top: .25rem;
}

/* Links de la navbar */
.navbar-link {
    color: rgba(255, 255, 255, .80) !important;
    border-radius: 7px !important;
    padding: 6px 12px !important;
    transition: background .15s, color .15s !important;
    font-size: 13.5px;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
}

.navbar-link.active {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
}

/* Selector de sucursal */
.sucursal-select {
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    color: #fff !important;
    font-size: 12px;
    min-width: 160px;
    cursor: pointer;
    border-radius: 7px !important;
}

.sucursal-select option {
    background: #0d47a1;
    color: #fff;
}

/* Avatar de usuario */
.user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* Dropdown personalizado */
.dropdown-custom {
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
    min-width: 210px;
    margin-top: 6px !important;
}

.dropdown-custom .dropdown-item {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    margin: 1px 4px;
    width: calc(100% - 8px);
}

.dropdown-custom .dropdown-item:hover {
    background: #f1f5f9;
}

/* Responsive navbar */
@media (max-width: 991.98px) {
    .navbar-custom {
        min-height: 76px;
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .brand-logo-frame {
        width: 66px;
        height: 66px;
        min-width: 66px;
        border-radius: 10px;
        background: #fff;
        flex: 0 0 auto;
    }

    .brand-copy {
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-copy strong {
        display: block !important;
        color: white;
        font-size: 0.99rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 38vw;
    }

    .brand-copy .brand-saas,
    .brand-copy small,
    .brand-copy .brand-sucursal {
        display: none !important;
    }

    .navbar-mobile-sidebar-toggle {
        min-width: 48px;
        min-height: 48px;
    }

    .mobile-sidebar-offcanvas .offcanvas-header img,
    .mobile-sidebar-offcanvas .offcanvas-header .bg-white {
        border: 1px solid rgba(255, 255, 255, .95) !important;
        box-sizing: border-box;
    }
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    border-right: 1px solid #dee2e6;
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
}

/* Etiqueta de sección */
.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #94a3b8;
    padding: 8px 12px 3px;
    display: block;
}

/* Ítem genérico del sidebar */
.sidebar-item {
    transition: all 0.15s ease-in-out !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.sidebar-item:hover:not(.active) {
    background-color: rgba(13, 110, 253, .08) !important;
    color: var(--primary-color) !important;
    transform: translateX(2px);
}

/* Ítem bloqueado */
.sidebar-item-locked {
    opacity: .42;
    cursor: not-allowed;
    font-size: 13.5px;
}

/* Todos los nav-link dentro del sidebar */
.sidebar .nav-link {
    color: var(--secondary-color);
    padding: 0.65rem 0.9rem;
    border-radius: 0.375rem;
    margin-bottom: 0.15rem;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, .08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Submenú */
.sidebar .submenu-nav {
    padding-left: 0.85rem;
    margin-top: 0.3rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 1.1rem;
}

.sidebar .submenu-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 13px;
}

/* Sidebar toggle (botones con chevron) */
.sidebar .sidebar-toggle {
    box-shadow: none !important;
}

.sidebar .sidebar-toggle .bi-chevron-down {
    transition: transform 0.15s ease-in-out;
    font-size: 11px;
    color: #94a3b8;
}

.sidebar .sidebar-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* ================================================================
   BOTONES
   ================================================================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #00110d !important;
    font-weight: 600 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #00b08d !important;
    border-color: #00b08d !important;
    color: #00110d !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #00110d !important;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #007e69 !important;
    border-color: #007e69 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ================================================================
   FORMULARIOS
   ================================================================ */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ================================================================
   TABLAS
   ================================================================ */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* ================================================================
   BADGES, ALERTS, TOASTS
   ================================================================ */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.alert {
    border-radius: 8px;
    border: none;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================================================
   UTILIDADES
   ================================================================ */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-sm-auto {
    width: auto;
}

@media (max-width: 575.98px) {
    .w-sm-auto {
        width: 100% !important;
    }
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ================================================================
   PRODUCTOS / POS
   ================================================================ */
.product-card {
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.pos-item {
    transition: all 0.2s ease-in-out;
}

.pos-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.pos-cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
}

.pos-cart-item:last-child {
    border-bottom: none;
}

/* ================================================================
   ANIMACIONES
   ================================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    .navbar-brand span {
        display: none;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .no-print {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    body {
        background: white !important;
    }
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    min-height: 44px;
    color: #212529 !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #212529 !important;
    color-scheme: light;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
    text-align: left;
    min-width: 150px;
    color: #212529;
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
    opacity: 1 !important;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    color: #212529 !important;
    opacity: 1 !important;
}

/* ================================================================
   SISSTAR THEME OVERRIDES PARA PANEL PRINCIPAL
   ================================================================ */
body.sis-app-shell .table {
    color: var(--sis-text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--sis-text);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(0, 212, 170, 0.08);
    --bs-table-border-color: var(--sis-border);
}

body.sis-app-shell .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: var(--sis-text) !important;
    border-color: var(--sis-border) !important;
}

body.sis-app-shell .table thead th {
    background: rgba(4, 11, 24, 0.7) !important;
    color: var(--sis-text) !important;
    border-bottom-color: var(--sis-border) !important;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="light"] body.sis-app-shell .table thead th {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0a0e1a !important;
    text-shadow: none;
}

body.sis-app-shell .table-hover tbody tr:hover {
    background-color: rgba(0, 212, 170, 0.07);
}

body.sis-app-shell .sidebar {
    background: linear-gradient(180deg, rgba(8, 11, 24, 0.96) 0%, rgba(10, 15, 31, 0.96) 100%) !important;
    border-right: 1px solid var(--sis-border) !important;
}

[data-theme="light"] body.sis-app-shell .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 251, 0.98) 100%) !important;
}

body.sis-app-shell .sidebar .nav-link,
body.sis-app-shell .sidebar .text-dark,
body.sis-app-shell .sidebar .text-muted {
    color: var(--sis-text) !important;
}

body.sis-app-shell .sidebar .nav-link.active {
    background: rgba(0, 212, 170, 0.14) !important;
    color: var(--sis-text) !important;
}

body.sis-app-shell .sidebar-section-label {
    color: var(--sis-muted) !important;
}

body.sis-app-shell .submenu-nav {
    border-left-color: var(--sis-border) !important;
}

body.sis-app-shell .dropdown-custom {
    background: var(--sis-surface-3) !important;
    color: var(--sis-text) !important;
    border: 1px solid var(--sis-border) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.sis-app-shell .dropdown-custom .dropdown-item {
    color: var(--sis-text) !important;
}

body.sis-app-shell .dropdown-custom .dropdown-item:hover {
    background: rgba(0, 212, 170, 0.08);
}

body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-body {
    background: linear-gradient(180deg, rgba(8, 11, 24, 0.96) 0%, rgba(10, 15, 31, 0.96) 100%);
}

[data-theme="light"] body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 251, 0.98) 100%);
}

/* ================================================================
   FIX 1 — MODO CLARO: textos invisibles en dashboard, tablas y secciones
   ================================================================ */
html[data-theme="light"] body.sis-app-shell,
html[data-theme="light"] body.sis-app-shell .sis-card,
html[data-theme="light"] body.sis-app-shell .sis-table-shell,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-hero,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-title,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-subtitle,
html[data-theme="light"] body.sis-app-shell .sis-page-title,
html[data-theme="light"] body.sis-app-shell .card-title,
html[data-theme="light"] body.sis-app-shell .card-text,
html[data-theme="light"] body.sis-app-shell .card-header h6,
html[data-theme="light"] body.sis-app-shell .card-header .h6,
html[data-theme="light"] body.sis-app-shell .table td,
html[data-theme="light"] body.sis-app-shell .table th,
html[data-theme="light"] body.sis-app-shell .table small {
    color: var(--sis-text) !important;
}

html[data-theme="light"] body.sis-app-shell .text-muted,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-subtitle,
html[data-theme="light"] body.sis-app-shell .sis-kpi-label {
    color: var(--sis-muted) !important;
}

html[data-theme="light"] body.sis-app-shell .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: var(--sis-text) !important;
    border-color: var(--sis-border) !important;
}

/* ================================================================
   FIX 2 — MODO CLARO: tarjetas KPI con fondo solido visible
   ================================================================ */
html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    color: var(--sis-text) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat-primary {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(14, 165, 233, 0.10)) !important;
    border-color: rgba(0, 212, 170, 0.2) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.08)) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08)) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08)) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat h3,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat h6,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat .card-title,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat small,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat a,
html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat i {
    color: var(--sis-text) !important;
    -webkit-text-fill-color: var(--sis-text) !important;
}

/* ================================================================
   FIX 3 — MODO CLARO: botones de acceso rapido con texto visible
   ================================================================ */
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0a0e1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-success,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-info,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-warning,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-primary,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-secondary,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-outline-primary,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-outline-success,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn-outline-secondary {
    color: #0a0e1a !important;
}

html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn i,
html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn small {
    color: #0a0e1a !important;
}

html[data-theme="light"] body.sis-app-shell .sis-action-grid .btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
}

/* ================================================================
   FIX 4 — MODO OSCURO: dropdown usuario con fondo solido
   ================================================================ */

/* Sobreescribir variable Bootstrap directamente */
html[data-theme="dark"] .navbar .dropdown-menu {
    --bs-dropdown-bg: #0d1120;
    --bs-dropdown-color: #eef0ff;
    --bs-dropdown-link-color: #eef0ff;
    --bs-dropdown-link-hover-bg: rgba(0, 212, 170, 0.08);
    --bs-dropdown-link-hover-color: #eef0ff;
    --bs-dropdown-border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom {
    background: #0d1120 !important;
    border: 1px solid rgba(0, 212, 170, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom,
html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .dropdown-item,
html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .fw-semibold,
html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .text-muted,
html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom small {
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .dropdown-divider,
html[data-theme="dark"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .border-bottom {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] .navbar .dropdown-menu {
    --bs-dropdown-bg: #ffffff;
    --bs-dropdown-color: #0a0e1a;
    --bs-dropdown-link-color: #0a0e1a;
    --bs-dropdown-link-hover-bg: rgba(0, 212, 170, 0.08);
}

html[data-theme="light"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14) !important;
    color: #0a0e1a !important;
}

html[data-theme="light"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .dropdown-item,
html[data-theme="light"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .fw-semibold,
html[data-theme="light"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .text-muted,
html[data-theme="light"] body.sis-app-shell .navbar .dropdown-menu.dropdown-custom small {
    color: #0a0e1a !important;
}

/* ================================================================
   FIX 5 — TÍTULOS DE SECCIÓN: contraste en ambos modos
   ================================================================ */
body.sis-app-shell .sis-table-shell .card-header h6,
body.sis-app-shell .sis-table-shell .card-header .h6,
body.sis-app-shell .card-header h6,
body.sis-app-shell .card-header .h6 {
    color: var(--sis-text) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

body.sis-app-shell .sis-table-shell .card-header {
    background: rgba(255, 255, 255, 0.035) !important;
    border-bottom: 1px solid var(--sis-border) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-table-shell .card-header {
    background: rgba(0, 0, 0, 0.025) !important;
}

/* ================================================================
   FIX 6 — ACCESOS RAPIDOS: glow por color de accion al hover
   ================================================================ */
body.sis-app-shell .sis-action-grid>.col-6:nth-child(1) .btn:hover {
    border-color: rgba(34, 197, 94, 0.55) !important;
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(34, 197, 94, 0.2) !important;
    color: #34d399 !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(2) .btn:hover {
    border-color: rgba(59, 130, 246, 0.55) !important;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(3) .btn:hover {
    border-color: rgba(0, 212, 170, 0.55) !important;
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.25), 0 0 0 1px rgba(0, 212, 170, 0.2) !important;
    color: #00d4aa !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(4) .btn:hover {
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(5) .btn:hover {
    border-color: rgba(0, 212, 170, 0.55) !important;
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.25) !important;
    color: #00d4aa !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(6) .btn:hover {
    border-color: rgba(96, 165, 250, 0.55) !important;
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.25) !important;
    color: #60a5fa !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(7) .btn:hover {
    border-color: rgba(251, 191, 36, 0.55) !important;
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.25) !important;
    color: #fbbf24 !important;
}

body.sis-app-shell .sis-action-grid>.col-6:nth-child(8) .btn:hover {
    border-color: rgba(139, 92, 246, 0.55) !important;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25) !important;
    color: #c4b5fd !important;
}

/* ================================================================
   FIX 7 — MODAL "VER TODOS": fondo solido, sin transparencia
   ================================================================ */
html[data-theme="dark"] #modalBajoStock {
    --bs-modal-bg: #0d1120;
    --bs-modal-color: #eef0ff;
}

html[data-theme="light"] #modalBajoStock {
    --bs-modal-bg: #ffffff;
    --bs-modal-color: #0a0e1a;
}

html[data-theme="dark"] body.sis-app-shell #modalBajoStock .modal-content {
    background: #0d1120 !important;
    border: 1px solid rgba(0, 212, 170, 0.2) !important;
    color: #eef0ff !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="light"] body.sis-app-shell #modalBajoStock .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    color: #0a0e1a !important;
}

html[data-theme="dark"] body.sis-app-shell #modalBajoStock .modal-title,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .table td,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .table th,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .fw-semibold,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .text-dark,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .fw-bold,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock small {
    color: #eef0ff !important;
}

html[data-theme="light"] body.sis-app-shell #modalBajoStock .modal-title,
html[data-theme="light"] body.sis-app-shell #modalBajoStock .table td,
html[data-theme="light"] body.sis-app-shell #modalBajoStock .table th,
html[data-theme="light"] body.sis-app-shell #modalBajoStock .fw-semibold,
html[data-theme="light"] body.sis-app-shell #modalBajoStock .text-dark,
html[data-theme="light"] body.sis-app-shell #modalBajoStock .fw-bold {
    color: #0a0e1a !important;
}

html[data-theme="dark"] body.sis-app-shell #modalBajoStock .modal-header,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .modal-footer,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .bs-modal-header,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .bs-search-bar,
html[data-theme="dark"] body.sis-app-shell #modalBajoStock .sucursal-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalBajoStock .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #eef0ff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ================================================================
   FIX DROPDOWN USUARIO: evitar solapamiento interno
   ================================================================ */
body.sis-app-shell .navbar .dropdown-menu.dropdown-custom {
    padding: 0.75rem !important;
    overflow: visible !important;
    min-width: 280px !important;
}

body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .border-bottom {
    padding: 0.55rem 0.25rem 0.75rem !important;
    margin-bottom: 0.35rem !important;
}

body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .dropdown-item {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 10px !important;
    margin: 0.15rem 0 !important;
    width: 100% !important;
}

body.sis-app-shell .navbar .dropdown-menu.dropdown-custom .dropdown-divider {
    margin: 0.45rem -0.75rem !important;
}

/* ================================================================
   FIX DROPDOWN USUARIO: pintar por encima del dashboard
   ================================================================ */
body.sis-app-shell .navbar-custom {
    position: relative !important;
    z-index: 2200 !important;
    overflow: visible !important;
    isolation: isolate;
}

/* Cuando se abre un modal, debe quedar por encima del navbar fijo */
body.sis-app-shell .modal {
    z-index: 3000;
}

body.sis-app-shell .modal-backdrop {
    z-index: 2990;
}

body.sis-app-shell .modal-dialog {
    position: relative;
    z-index: 3001;
}

/* ================================================================
   FIX OFFCANVAS: pintar por encima del navbar (z-index 2200)
   Los offcanvas (detalle empresa, menú móvil) deben cubrir TODO
   incluyendo la navbar y el sidebar.
   ================================================================ */
body.sis-app-shell .offcanvas {
    z-index: 2500 !important;
    overflow: hidden !important;
    /* Previene el parpadeo de texto al cerrar */
}

/* Aplicar el fondo sólido al contenedor principal del offcanvas 
   para evitar que las letras se queden "flotando" al cerrarlo */
html[data-theme="dark"] body.sis-app-shell .offcanvas {
    background: linear-gradient(180deg, rgba(8, 11, 24, 1) 0%, rgba(10, 15, 31, 1) 100%) !important;
}

html[data-theme="light"] body.sis-app-shell .offcanvas {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(243, 247, 251, 1) 100%) !important;
}

body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-body,
body.sis-app-shell .offcanvas-body {
    background: transparent !important;
}

/* ================================================================
   FIX BOTÓN CERRAR (X) EN MODO OSCURO
   ================================================================ */
html[data-theme="dark"] body.sis-app-shell .btn-close {
    background-color: rgba(0, 212, 170, 0.05) !important;
    /* Tono acorde al sistema */
    border-radius: 50% !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease-in-out !important;
}

html[data-theme="dark"] body.sis-app-shell .btn-close:hover,
html[data-theme="dark"] body.sis-app-shell .btn-close:focus {
    background-color: rgba(0, 212, 170, 0.2) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 170, 0.15) !important;
    opacity: 1 !important;
}

/* Modo claro para botón cerrar */
html[data-theme="light"] body.sis-app-shell .btn-close {
    background-color: rgba(0, 160, 120, 0.05) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease-in-out !important;
}

html[data-theme="light"] body.sis-app-shell .btn-close:hover,
html[data-theme="light"] body.sis-app-shell .btn-close:focus {
    background-color: rgba(0, 160, 120, 0.15) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 160, 120, 0.15) !important;
}

body.sis-app-shell .offcanvas-backdrop {
    z-index: 2450 !important;
}

body.sis-app-shell .navbar-custom .container-fluid,
body.sis-app-shell .navbar-custom .navbar-nav,
body.sis-app-shell .navbar-custom .nav-item,
body.sis-app-shell .navbar-custom .dropdown {
    overflow: visible !important;
}

body.sis-app-shell .navbar-custom .dropdown {
    z-index: 2300 !important;
}

body.sis-app-shell .navbar-custom .dropdown-menu.dropdown-custom {
    z-index: 2400 !important;
}

body.sis-app-shell>.container-fluid {
    position: relative;
    z-index: auto;
    /* Fix: permite que los elementos hijos (offcanvas) superen el z-index del navbar */
}

/* Fix rendering glitch: fuerza aceleración por hardware y quita filtros de desenfoque 
   que causan que el texto se quede colgado como un "fantasma" al animar transformaciones */
body.sis-app-shell .offcanvas {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateX(0);
    /* Hack para estabilizar el renderizado */
}

body.sis-app-shell .offcanvas .offcanvas-header,
body.sis-app-shell .offcanvas .sis-navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Brillo suave para las tarjetas KPI del panel principal */
body.sis-app-shell .sis-dashboard-stat {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.sis-app-shell .sis-dashboard-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(14, 165, 233, 0.08));
    transition: opacity 0.22s ease;
}

body.sis-app-shell .sis-dashboard-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 170, 0.34) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 24px rgba(0, 212, 170, 0.14) !important;
}

body.sis-app-shell .sis-dashboard-stat:hover::after {
    opacity: 1;
}

body.sis-app-shell .sis-dashboard-stat>* {
    position: relative;
    z-index: 1;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat:hover {
    border-color: rgba(0, 160, 120, 0.32) !important;
    box-shadow: 0 14px 30px rgba(10, 14, 26, 0.12), 0 0 22px rgba(0, 160, 120, 0.16) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-stat::after {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(14, 165, 233, 0.06));
}

/* Contraste del modulo Caja en modo oscuro */
html[data-theme="dark"] body.sis-app-shell .caja-page,
html[data-theme="dark"] body.sis-app-shell .caja-page .text-dark,
html[data-theme="dark"] body.sis-app-shell .caja-page .fw-bold,
html[data-theme="dark"] body.sis-app-shell .caja-page h1,
html[data-theme="dark"] body.sis-app-shell .caja-page h2,
html[data-theme="dark"] body.sis-app-shell .caja-page h3,
html[data-theme="dark"] body.sis-app-shell .caja-page h4,
html[data-theme="dark"] body.sis-app-shell .caja-page h5,
html[data-theme="dark"] body.sis-app-shell .caja-page h6,
html[data-theme="dark"] body.sis-app-shell .caja-page .table td,
html[data-theme="dark"] body.sis-app-shell .caja-page .table th,
html[data-theme="dark"] body.sis-app-shell .caja-page label {
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .text-muted,
html[data-theme="dark"] body.sis-app-shell .caja-page .sis-dashboard-subtitle,
html[data-theme="dark"] body.sis-app-shell .caja-page .form-label,
html[data-theme="dark"] body.sis-app-shell .caja-page small,
html[data-theme="dark"] body.sis-app-shell .caja-page .x-small {
    color: rgba(238, 240, 255, 0.72) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .sis-card,
html[data-theme="dark"] body.sis-app-shell .caja-page .sis-table-shell,
html[data-theme="dark"] body.sis-app-shell .caja-page form.card {
    background: rgba(13, 17, 32, 0.96) !important;
    border: 1px solid rgba(0, 212, 170, 0.16) !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .card-header,
html[data-theme="dark"] body.sis-app-shell .caja-page .card-body,
html[data-theme="dark"] body.sis-app-shell .caja-page .bg-light {
    background-color: rgba(255, 255, 255, 0.035) !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .table> :not(caption)>*>* {
    background-color: transparent !important;
    color: #eef0ff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .table-hover tbody tr:hover>* {
    background-color: rgba(0, 212, 170, 0.08) !important;
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .form-control,
html[data-theme="dark"] body.sis-app-shell .caja-page .form-select,
html[data-theme="dark"] body.sis-app-shell .caja-page .input-group-text,
html[data-theme="dark"] body.sis-app-shell .caja-page textarea {
    background-color: #171c2d !important;
    border-color: rgba(0, 212, 170, 0.22) !important;
    color: #eef0ff !important;
    color-scheme: dark;
}

html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"] {
    color: #f4fffc !important;
    -webkit-text-fill-color: #f4fffc !important;
    opacity: 1 !important;
    color-scheme: dark;
}

html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-datetime-edit,
html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-datetime-edit-fields-wrapper,
html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-datetime-edit-text,
html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-datetime-edit-day-field,
html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-datetime-edit-month-field,
html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-datetime-edit-year-field {
    color: #f4fffc !important;
    -webkit-text-fill-color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.6) sepia(1) saturate(2) hue-rotate(115deg);
    opacity: 0.9;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .form-select option {
    background-color: #111827 !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .form-select option:checked {
    background-color: #00d4aa !important;
    color: #001812 !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .form-control::placeholder,
html[data-theme="dark"] body.sis-app-shell .caja-page textarea::placeholder {
    color: rgba(238, 240, 255, 0.42) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .btn-light {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eef0ff !important;
}

body.sis-app-shell .btn-sis-filter {
    background: #00d4aa !important;
    border-color: #00b896 !important;
    color: #001812 !important;
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.18) !important;
}

body.sis-app-shell .btn-sis-filter:hover,
body.sis-app-shell .btn-sis-filter:focus {
    background: #16e0ba !important;
    border-color: #00a884 !important;
    color: #001812 !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.18), 0 10px 24px rgba(0, 212, 170, 0.22) !important;
}

html[data-theme="dark"] body.sis-app-shell .btn-sis-filter {
    background: rgba(0, 212, 170, 0.08) !important;
    border-color: rgba(0, 212, 170, 0.42) !important;
    color: #9ffff0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.sis-app-shell .btn-sis-filter:hover,
html[data-theme="dark"] body.sis-app-shell .btn-sis-filter:focus {
    background: rgba(0, 212, 170, 0.18) !important;
    border-color: rgba(0, 212, 170, 0.72) !important;
    color: #f4fffc !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.12), 0 10px 24px rgba(0, 212, 170, 0.12) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page .card {
    background: rgba(13, 17, 32, 0.96) !important;
    border: 1px solid rgba(0, 212, 170, 0.16) !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page .card-body,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page .bg-light,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page thead tr {
    background-color: rgba(255, 255, 255, 0.035) !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page .btn-outline-secondary {
    color: #dffbf4 !important;
    border-color: rgba(0, 212, 170, 0.35) !important;
    background: rgba(0, 212, 170, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page .btn-outline-secondary:hover,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page .btn-outline-secondary:focus {
    color: #001812 !important;
    background: #00d4aa !important;
    border-color: #00b896 !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page .input-group-text,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page .form-control {
    background-color: #171c2d !important;
    border-color: rgba(0, 212, 170, 0.22) !important;
    color: #eef0ff !important;
    color-scheme: dark;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"] {
    color: #f4fffc !important;
    -webkit-text-fill-color: #f4fffc !important;
    opacity: 1 !important;
    color-scheme: dark;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-datetime-edit,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-datetime-edit-fields-wrapper,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-datetime-edit-text,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-datetime-edit-day-field,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-datetime-edit-month-field,
html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-datetime-edit-year-field {
    color: #f4fffc !important;
    -webkit-text-fill-color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-historial-page input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.6) sepia(1) saturate(2) hue-rotate(115deg);
    opacity: 0.9;
}

html[data-theme="dark"] body.sis-app-shell .caja-page .btn-light:hover,
html[data-theme="dark"] body.sis-app-shell .caja-page .btn-light:focus {
    background: rgba(0, 212, 170, 0.12) !important;
    border-color: rgba(0, 212, 170, 0.42) !important;
    color: #f4fffc !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.10), 0 10px 22px rgba(0, 212, 170, 0.10) !important;
}

/* Aviso de caja cerrada en Punto de Venta */
body.sis-app-shell .caja-cerrada-card {
    border: 1px solid rgba(0, 212, 170, 0.18) !important;
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(14, 165, 233, 0.05)),
        var(--sis-surface-2) !important;
}

body.sis-app-shell .caja-cerrada-icon {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
    font-size: 2.1rem;
}

body.sis-app-shell .caja-cerrada-title {
    color: var(--sis-text) !important;
}

body.sis-app-shell .caja-cerrada-text {
    color: var(--sis-muted) !important;
    max-width: 620px;
    margin: 0 auto;
}

body.sis-app-shell .caja-cerrada-text strong {
    color: var(--sis-text) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-cerrada-card {
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.12), transparent 42%),
        linear-gradient(135deg, #111827 0%, #0d1322 100%) !important;
    border-color: rgba(0, 212, 170, 0.26) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), 0 0 28px rgba(0, 212, 170, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-cerrada-title {
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-cerrada-text {
    color: rgba(238, 255, 250, 0.74) !important;
}

html[data-theme="dark"] body.sis-app-shell .caja-cerrada-btn {
    color: #001812 !important;
}

/* Punto de Venta en modo oscuro */
html[data-theme="dark"] body.sis-app-shell .pos-page .sis-table-shell,
html[data-theme="dark"] body.sis-app-shell .pos-page .card,
html[data-theme="dark"] body.sis-app-shell .pos-page .card-body,
html[data-theme="dark"] body.sis-app-shell .pos-page .card-footer,
html[data-theme="dark"] body.sis-app-shell .pos-page .carrito-footer {
    background: #111827 !important;
    color: #eef0ff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .card-header,
html[data-theme="dark"] body.sis-app-shell .pos-page .table-light,
html[data-theme="dark"] body.sis-app-shell .pos-page .table-light>* {
    background: #0f1423 !important;
    color: #eef0ff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card {
    background: #f8fbfa !important;
    color: #0a0e1a !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .text-dark,
html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .card-title {
    color: #0a0e1a !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .text-muted {
    color: rgba(10, 14, 26, 0.62) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-card-media {
    background: #eef3f1 !important;
    border-bottom-color: rgba(10, 14, 26, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .form-control,
html[data-theme="dark"] body.sis-app-shell .pos-page .form-select,
html[data-theme="dark"] body.sis-app-shell .pos-page .input-group-text {
    background: #f8fbfa !important;
    border-color: rgba(0, 212, 170, 0.18) !important;
    color: #0a0e1a !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .form-control::placeholder {
    color: rgba(10, 14, 26, 0.56) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .table> :not(caption)>*>*,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .text-dark,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .fw-bold {
    color: #eef0ff !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .text-muted {
    color: rgba(238, 240, 255, 0.68) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .card-footer,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .carrito-footer {
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(14, 165, 233, 0.04)),
        #101421 !important;
    border-top: 1px solid rgba(0, 212, 170, 0.16) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .border-top {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* POS: contenedores sin desborde en claro y oscuro */
body.sis-app-shell .pos-page {
    overflow-x: clip !important;
    max-width: 100%;
}

body.sis-app-shell .pos-page .pos-catalogo,
body.sis-app-shell .pos-page .pos-carrito {
    min-width: 0;
}

body.sis-app-shell .pos-page .pos-catalogo .sis-table-shell,
body.sis-app-shell .pos-page .pos-carrito .sis-table-shell {
    overflow: hidden !important;
    border-radius: 14px !important;
}

body.sis-app-shell .pos-page .pos-catalogo-body,
body.sis-app-shell .pos-page .pos-catalogo .card-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.sis-app-shell .pos-page #catalogoProductos {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

body.sis-app-shell .pos-page #catalogoProductos>.producto-item {
    min-width: 0;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

body.sis-app-shell .pos-page .producto-item .card {
    overflow: hidden !important;
    border-radius: 12px !important;
}

body.sis-app-shell .pos-page .producto-card-media {
    overflow: hidden;
}

/* POS: tarjetas oscuras, buscador oscuro y sin scroll horizontal */
html[data-theme="dark"] body.sis-app-shell .pos-page {
    overflow-x: hidden !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-catalogo .sis-table-shell,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .sis-table-shell {
    overflow: hidden !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 212, 170, 0.14) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-catalogo .card-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page #catalogoProductos {
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item {
    min-width: 0;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(13, 19, 34, 0.98) 100%) !important;
    color: #eef0ff !important;
    border: 1px solid rgba(0, 212, 170, 0.16) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card:hover {
    border-color: rgba(0, 212, 170, 0.42) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 20px rgba(0, 212, 170, 0.12) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .card-body {
    background: transparent !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .pos-producto-code,
html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card small.pos-producto-code {
    color: rgba(238, 240, 255, 0.68) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .pos-producto-nombre,
html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .card-title {
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-item .card .text-primary {
    color: #00d4aa !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-stock-badge-ok {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #f4fffc !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .producto-card-media {
    background: #eaf2ef !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .btn-agregar-producto {
    color: #00d4aa !important;
    border-color: rgba(0, 212, 170, 0.58) !important;
    background: rgba(0, 212, 170, 0.04) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .btn-agregar-producto:hover {
    color: #001812 !important;
    background: #00d4aa !important;
    border-color: #00d4aa !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-input-addon,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-search-input,
html[data-theme="dark"] body.sis-app-shell .pos-page #filtroCategoria {
    background: #111827 !important;
    color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.24) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-search-input::placeholder {
    color: rgba(238, 240, 255, 0.58) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page #filtroCategoria option {
    background: #111827 !important;
    color: #eef0ff !important;
}

/* POS: brillo de tarjetas y selector de categoria con color del sistema */
body.sis-app-shell .pos-page .producto-item .card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme="light"] body.sis-app-shell .pos-page .producto-item .card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 150, 126, 0.28) !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12), 0 0 22px rgba(0, 212, 170, 0.18) !important;
}

body.sis-app-shell .pos-page .btn-agregar-producto.btn-outline-primary {
    color: #00967e !important;
    border-color: rgba(0, 150, 126, 0.55) !important;
    background: rgba(0, 212, 170, 0.04) !important;
}

body.sis-app-shell .pos-page .btn-agregar-producto.btn-outline-primary:hover,
body.sis-app-shell .pos-page .btn-agregar-producto.btn-outline-primary:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #00d4aa, #10b7d8) !important;
    border-color: #00d4aa !important;
    box-shadow: 0 0 0 0.18rem rgba(0, 212, 170, 0.18) !important;
}

body.sis-app-shell .pos-page .pos-search-input:focus,
body.sis-app-shell .pos-page #filtroCategoria:focus,
body.sis-app-shell .pos-page .pos-category-trigger:focus {
    border-color: rgba(0, 150, 126, 0.55) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.16) !important;
    outline: none !important;
}

body.sis-app-shell .pos-page .pos-category-select {
    position: relative;
}

body.sis-app-shell .pos-page .pos-category-trigger {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #ffffff;
    color: #212529;
    padding: 0.375rem 0.75rem;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.sis-app-shell .pos-page .pos-category-menu {
    position: absolute;
    inset: calc(100% + 6px) 0 auto 0;
    z-index: 30;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid rgba(0, 150, 126, 0.24);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

body.sis-app-shell .pos-page .pos-category-select.open .pos-category-menu {
    display: block;
}

body.sis-app-shell .pos-page .pos-category-option {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #1f2937;
    padding: 0.55rem 0.65rem;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease;
}

body.sis-app-shell .pos-page .pos-category-option:hover,
body.sis-app-shell .pos-page .pos-category-option:focus,
body.sis-app-shell .pos-page .pos-category-option.active {
    background: rgba(0, 212, 170, 0.14) !important;
    color: #006b5d !important;
    outline: none;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-category-trigger {
    background: #111827;
    color: #eef0ff;
    border-color: rgba(0, 212, 170, 0.24);
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-category-menu {
    background: #111827;
    border-color: rgba(0, 212, 170, 0.26);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-category-option {
    color: rgba(238, 240, 255, 0.86);
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-category-option:hover,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-category-option:focus,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-category-option.active {
    background: rgba(0, 212, 170, 0.18) !important;
    color: #f4fffc !important;
}

/* POS: carrito, separacion del catalogo y modal de cobro */
body.sis-app-shell .pos-page .pos-catalogo-body {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

body.sis-app-shell .pos-page .pos-carrito-header {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 212, 170, 0.34), transparent 42%),
        linear-gradient(135deg, #d8fff5 0%, #edfdfb 46%, #d9f4ff 100%) !important;
    border-bottom: 1px solid rgba(0, 150, 126, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.sis-app-shell .pos-page .pos-carrito-header h5 {
    color: #0f172a !important;
}

body.sis-app-shell .pos-page .pos-btn-vaciar {
    border: 1px solid rgba(220, 53, 69, 0.34) !important;
    color: #b42333 !important;
    background: rgba(220, 53, 69, 0.04) !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.sis-app-shell .pos-page .pos-btn-vaciar:hover,
body.sis-app-shell .pos-page .pos-btn-vaciar:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e5485c, #c62f43) !important;
    border-color: rgba(220, 53, 69, 0.72) !important;
    box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.16), 0 12px 24px rgba(220, 53, 69, 0.16) !important;
    transform: translateY(-1px);
}

body.sis-app-shell #modalFinalizar .pos-checkout-modal {
    border-radius: 18px;
    overflow: hidden;
}

body.sis-app-shell #modalFinalizar .modal-header {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 212, 170, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(0, 150, 126, 0.10), rgba(16, 183, 216, 0.08));
}

body.sis-app-shell #modalFinalizar .form-control,
body.sis-app-shell #modalFinalizar .input-group-text {
    border-color: rgba(0, 150, 126, 0.18);
}

body.sis-app-shell #modalFinalizar .form-control:focus {
    border-color: rgba(0, 150, 126, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.14);
}

body.sis-app-shell #modalFinalizar label[for="p_efectivo"],
body.sis-app-shell #modalFinalizar label[for="p_tarjeta"] {
    border: 1px solid rgba(0, 150, 126, 0.18) !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.sis-app-shell #modalFinalizar label[for="p_efectivo"]:hover,
body.sis-app-shell #modalFinalizar label[for="p_tarjeta"]:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 150, 126, 0.42) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10), 0 0 20px rgba(0, 212, 170, 0.16) !important;
}

body.sis-app-shell #modalFinalizar .btn-check:checked+label {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.18), rgba(16, 183, 216, 0.12)) !important;
    border-color: rgba(0, 150, 126, 0.48) !important;
    box-shadow: 0 0 0 0.18rem rgba(0, 212, 170, 0.12) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito-header {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 212, 170, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(12, 18, 33, 0.98), rgba(16, 31, 49, 0.94)) !important;
    border-bottom-color: rgba(0, 212, 170, 0.18) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito-header h5 {
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-btn-vaciar {
    color: #ffd6dc !important;
    background: rgba(220, 53, 69, 0.08) !important;
    border-color: rgba(255, 120, 136, 0.30) !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-btn-vaciar:hover,
html[data-theme="dark"] body.sis-app-shell .pos-page .pos-btn-vaciar:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(229, 72, 92, 0.92), rgba(198, 47, 67, 0.92)) !important;
    border-color: rgba(255, 120, 136, 0.68) !important;
    box-shadow: 0 0 0 0.18rem rgba(255, 120, 136, 0.14), 0 12px 24px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .pos-checkout-modal {
    background: #111827 !important;
    color: #eef0ff !important;
    border: 1px solid rgba(0, 212, 170, 0.16) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .modal-header,
html[data-theme="dark"] body.sis-app-shell #modalFinalizar .modal-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 212, 170, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(12, 18, 33, 0.98), rgba(16, 31, 49, 0.94)) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .modal-title,
html[data-theme="dark"] body.sis-app-shell #modalFinalizar .form-label,
html[data-theme="dark"] body.sis-app-shell #modalFinalizar .fw-bold {
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .text-muted,
html[data-theme="dark"] body.sis-app-shell #modalFinalizar small {
    color: rgba(238, 240, 255, 0.68) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .form-control,
html[data-theme="dark"] body.sis-app-shell #modalFinalizar .input-group-text {
    background: #0d1322 !important;
    color: #eef0ff !important;
    -webkit-text-fill-color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.22) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .form-control::placeholder {
    color: rgba(238, 240, 255, 0.48) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .bg-success-subtle {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(16, 183, 216, 0.10)) !important;
    border: 1px solid rgba(0, 212, 170, 0.18);
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .text-success {
    color: #00d4aa !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar #alertaVuelto.alert-success {
    background: rgba(0, 212, 170, 0.18) !important;
    color: #b9fff1 !important;
    border: 1px solid rgba(0, 212, 170, 0.36) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar #alertaVuelto.alert-danger {
    background: rgba(255, 99, 119, 0.18) !important;
    color: #ffd8de !important;
    border: 1px solid rgba(255, 120, 136, 0.36) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar #alertaVuelto.alert-info {
    background: rgba(16, 183, 216, 0.18) !important;
    color: #d7f8ff !important;
    border: 1px solid rgba(16, 183, 216, 0.34) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar label[for="p_efectivo"],
html[data-theme="dark"] body.sis-app-shell #modalFinalizar label[for="p_tarjeta"] {
    background: rgba(13, 19, 34, 0.92) !important;
    color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.20) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalFinalizar label[for="p_efectivo"]:hover,
html[data-theme="dark"] body.sis-app-shell #modalFinalizar label[for="p_tarjeta"]:hover {
    border-color: rgba(0, 212, 170, 0.48) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 22px rgba(0, 212, 170, 0.15) !important;
}

/* POS: encabezado Detalle de Venta con degradado real */
html[data-theme="light"] body.sis-app-shell .pos-page .pos-carrito .sis-table-shell>.card-header.pos-carrito-header,
html[data-theme="light"] body.sis-app-shell .pos-page .mobile-pos-carrito>.pos-carrito-header {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 212, 170, 0.36), transparent 42%),
        linear-gradient(135deg, #d4fff4 0%, #e9fffb 45%, #d6f2ff 100%) !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(0, 150, 126, 0.24) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .sis-table-shell>.card-header.pos-carrito-header,
html[data-theme="dark"] body.sis-app-shell .pos-page .mobile-pos-carrito>.pos-carrito-header {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 212, 170, 0.24), transparent 42%),
        linear-gradient(135deg, #073d3f 0%, #0d2034 54%, #111827 100%) !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(0, 212, 170, 0.18) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.sis-app-shell .pos-page .pos-carrito .sis-table-shell {
    border-top-color: rgba(0, 212, 170, 0.10) !important;
}

/* POS: modal selector de clientes */
body.sis-app-shell #modalSelectorClientes .modal-content {
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 150, 126, 0.16);
}

body.sis-app-shell #modalSelectorClientes .modal-header {
    background:
        radial-gradient(circle at 14% 0%, rgba(0, 212, 170, 0.24), transparent 42%),
        linear-gradient(135deg, #d8fff5 0%, #edfdfb 50%, #d9f4ff 100%) !important;
    border-bottom: 1px solid rgba(0, 150, 126, 0.20) !important;
}

body.sis-app-shell #modalSelectorClientes .modal-title {
    color: #0f172a !important;
}

body.sis-app-shell #modalSelectorClientes .modal-body {
    background: linear-gradient(180deg, #f7fffd, #eefaf7);
}

body.sis-app-shell #modalSelectorClientes iframe {
    background: transparent !important;
}

html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes .modal-content {
    background: #0d1322 !important;
    color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.16) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes .modal-header {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 212, 170, 0.22), transparent 42%),
        linear-gradient(135deg, #073d3f 0%, #0d2034 54%, #111827 100%) !important;
    border-bottom-color: rgba(0, 212, 170, 0.18) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes .modal-title {
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes .modal-body {
    background: linear-gradient(180deg, #0b1020, #070b16) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes .text-muted,
html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes small {
    color: rgba(238, 240, 255, 0.68) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalSelectorClientes .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

/* POS: venta registrada */
body.sis-app-shell #modalVentaExitosa .modal-content {
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.14), transparent 38%),
        rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 150, 126, 0.14) !important;
}

body.sis-app-shell #modalVentaExitosa #textoTicketVenta {
    color: #003d35 !important;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: rgba(0, 212, 170, 0.18);
    border: 1px solid rgba(0, 150, 126, 0.22);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}

body.sis-app-shell #modalVentaExitosa .pos-ticket-line {
    color: #0f172a !important;
    opacity: 1 !important;
}

body.sis-app-shell #modalVentaExitosa #btnOmitirTicket {
    border: 1px solid rgba(0, 150, 126, 0.20) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.sis-app-shell #modalVentaExitosa #btnOmitirTicket:hover,
body.sis-app-shell #modalVentaExitosa #btnOmitirTicket:focus {
    transform: translateY(-1px);
    border-color: rgba(0, 150, 126, 0.48) !important;
    box-shadow: 0 12px 26px rgba(0, 150, 126, 0.16), 0 0 22px rgba(0, 212, 170, 0.18) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa .modal-content {
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.16), transparent 40%),
        rgba(13, 19, 34, 0.96) !important;
    color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.16) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa h4 {
    color: #f4fffc !important;
}

html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa .text-muted {
    color: rgba(238, 240, 255, 0.72) !important;
}

html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa #textoTicketVenta {
    color: #001812 !important;
    background: #74ffe5 !important;
    border-color: rgba(116, 255, 229, 0.72) !important;
    text-shadow: none;
}

html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa .pos-ticket-line {
    color: rgba(238, 240, 255, 0.92) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa #btnOmitirTicket:hover,
html[data-theme="dark"] body.sis-app-shell #modalVentaExitosa #btnOmitirTicket:focus {
    background: rgba(0, 212, 170, 0.12) !important;
    border-color: rgba(0, 212, 170, 0.48) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(0, 212, 170, 0.18) !important;
}

/* POS: carrito movil sin azul ni transparencias */
body.sis-app-shell .pos-fab-carrito {
    background: linear-gradient(135deg, #00d4aa, #10b7d8) !important;
    border-color: rgba(0, 150, 126, 0.38) !important;
    color: #001812 !important;
    --bs-btn-bg: #00d4aa;
    --bs-btn-border-color: rgba(0, 150, 126, 0.38);
    --bs-btn-hover-bg: #00c9a2;
    --bs-btn-hover-border-color: rgba(0, 150, 126, 0.50);
    --bs-btn-active-bg: #00b894;
    --bs-btn-active-border-color: rgba(0, 150, 126, 0.55);
}

body.sis-app-shell .pos-fab-carrito:hover,
body.sis-app-shell .pos-fab-carrito:focus {
    box-shadow: 0 14px 30px rgba(0, 150, 126, 0.24), 0 0 22px rgba(0, 212, 170, 0.20) !important;
}

body.sis-app-shell .offcanvas.mobile-pos-carrito {
    top: 78px !important;
    height: calc(100dvh - 78px) !important;
    margin: 0.55rem;
    width: calc(100vw - 1.1rem) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden !important;
}

body.sis-app-shell .mobile-pos-carrito .pos-carrito-header {
    flex: 0 0 auto;
}

body.sis-app-shell .mobile-pos-carrito .carrito-scroll,
body.sis-app-shell .mobile-pos-carrito .table {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.sis-app-shell .mobile-pos-carrito .offcanvas-body {
    background: #ffffff !important;
    color: #0f172a !important;
    min-height: 0;
}

body.sis-app-shell .mobile-pos-carrito .pos-carrito-footer {
    flex: 0 0 auto;
    margin: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 150, 126, 0.14) !important;
    background: #f7fffd !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
}

html[data-theme="dark"] body.sis-app-shell .offcanvas.mobile-pos-carrito {
    background: #0d1322 !important;
    color: #eef0ff !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .offcanvas-body,
html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .carrito-scroll,
html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .table {
    background: #0d1322 !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .pos-carrito-footer {
    background: #0b1624 !important;
    border-color: rgba(0, 212, 170, 0.16) !important;
}

/* Movil: menu lateral visible y boton hamburguesa con contraste */
@media (max-width: 767.98px) {
    body.sis-app-shell .navbar-mobile-sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0, 150, 126, 0.22) !important;
        background: rgba(255, 255, 255, 0.78) !important;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
        opacity: 1 !important;
    }

    body.sis-app-shell .navbar-mobile-sidebar-toggle .navbar-toggler-icon {
        opacity: 1 !important;
        filter: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    html[data-theme="dark"] body.sis-app-shell .navbar-mobile-sidebar-toggle {
        background: rgba(13, 19, 34, 0.90) !important;
        border-color: rgba(0, 212, 170, 0.24) !important;
    }

    html[data-theme="dark"] body.sis-app-shell .navbar-mobile-sidebar-toggle .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28238, 240, 255, 0.94%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    body.sis-app-shell .mobile-sidebar-offcanvas {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 4200 !important;
        width: min(86vw, 330px) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background: #ffffff !important;
        color: #0f172a !important;
        border-right: 1px solid rgba(0, 150, 126, 0.16) !important;
        box-shadow: 22px 0 58px rgba(15, 23, 42, 0.22) !important;
        transform: translateX(-100%);
    }

    body.sis-app-shell .mobile-sidebar-offcanvas.show {
        transform: none !important;
        visibility: visible !important;
    }

    body.sis-app-shell.mobile-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    body.sis-app-shell.mobile-menu-open #offcanvasSidebar,
    body.sis-app-shell.mobile-menu-open #offcanvasSidebar * {
        visibility: visible !important;
        pointer-events: auto !important;
        touch-action: pan-y;
    }

    body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-header {
        background:
            radial-gradient(circle at 12% 0%, rgba(0, 212, 170, 0.24), transparent 42%),
            linear-gradient(135deg, #d4fff4 0%, #e9fffb 45%, #d6f2ff 100%) !important;
        color: #0f172a !important;
    }

    body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-body {
        background: linear-gradient(180deg, #ffffff, #f4fffc) !important;
        color: #0f172a !important;
        overflow-y: auto !important;
    }

    body.sis-app-shell .mobile-sidebar-offcanvas .nav-link,
    body.sis-app-shell .mobile-sidebar-offcanvas .sidebar-toggle,
    body.sis-app-shell .mobile-sidebar-offcanvas .sidebar-section-label,
    body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-title,
    body.sis-app-shell .mobile-sidebar-offcanvas small {
        color: #0f172a !important;
        opacity: 1 !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas {
        background: #0d1322 !important;
        color: #eef0ff !important;
        border-right-color: rgba(0, 212, 170, 0.16) !important;
        box-shadow: 22px 0 64px rgba(0, 0, 0, 0.44) !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-header {
        background:
            radial-gradient(circle at 18% 0%, rgba(0, 212, 170, 0.22), transparent 42%),
            linear-gradient(135deg, #073d3f 0%, #0d2034 54%, #111827 100%) !important;
        color: #eef0ff !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-body {
        background: linear-gradient(180deg, #0d1322, #080d19) !important;
        color: #eef0ff !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .nav-link,
    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .sidebar-toggle,
    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .sidebar-section-label,
    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .offcanvas-title,
    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas small {
        color: #eef0ff !important;
    }

    body.sis-app-shell .offcanvas-backdrop.show {
        z-index: 1040 !important;
    }

    body.sis-app-shell.mobile-menu-open .offcanvas-backdrop.show {
        z-index: 4190 !important;
    }

    body.sis-app-shell .mobile-sidebar-offcanvas .btn-close {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        opacity: 1 !important;
        background-color: rgba(255, 255, 255, 0.75);
        background-size: 0.85rem;
        filter: none !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-sidebar-offcanvas .btn-close {
        background-color: rgba(13, 19, 34, 0.82);
        filter: invert(1) grayscale(100%) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
    }
}

html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .table> :not(caption)>*>* {
    background-color: #0d1322 !important;
    color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.14) !important;
}

html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .table thead th {
    background: linear-gradient(135deg, #073d3f, #0d2034) !important;
    color: rgba(238, 240, 255, 0.82) !important;
}

html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
}

/* Offcanvas generales: deben quedar por encima del encabezado */
body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) {
    z-index: 3000 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 150, 126, 0.16) !important;
}

body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) .offcanvas-header {
    background:
        radial-gradient(circle at 14% 0%, rgba(0, 212, 170, 0.22), transparent 42%),
        linear-gradient(135deg, #d8fff5 0%, #edfdfb 50%, #d9f4ff 100%) !important;
    color: #0f172a !important;
    border-bottom: 1px solid rgba(0, 150, 126, 0.18) !important;
}

body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) .offcanvas-body {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) .btn-close {
    opacity: 1 !important;
    filter: none !important;
}

html[data-theme="dark"] body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) {
    background: #0d1322 !important;
    color: #eef0ff !important;
    border-color: rgba(0, 212, 170, 0.16) !important;
}

html[data-theme="dark"] body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) .offcanvas-header {
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 212, 170, 0.22), transparent 42%),
        linear-gradient(135deg, #073d3f 0%, #0d2034 54%, #111827 100%) !important;
    color: #eef0ff !important;
    border-bottom-color: rgba(0, 212, 170, 0.18) !important;
}

html[data-theme="dark"] body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) .offcanvas-body {
    background: #0d1322 !important;
    color: #eef0ff !important;
}

html[data-theme="dark"] body.sis-app-shell .offcanvas:not(.mobile-pos-carrito):not(.mobile-sidebar-offcanvas) .btn-close {
    filter: invert(1) grayscale(100%) !important;
    opacity: 0.9 !important;
}

@media (max-width: 767.98px) {
    body.sis-app-shell #offcanvasEmpresa {
        width: min(92vw, 420px) !important;
        max-width: 92vw !important;
        height: 100dvh !important;
        top: 0 !important;
    }
}

/* POS movil: solo se ve la tarjeta Detalle de Venta */
@media (max-width: 767.98px) {
    body.sis-app-shell .pos-page {
        --bs-gutter-x: 0 !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
        max-width: none !important;
    }

    body.sis-app-shell .pos-page .pos-catalogo {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.sis-app-shell .pos-page .pos-catalogo .sis-table-shell {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        min-height: calc(100dvh - 150px);
        width: 100% !important;
    }

    body.sis-app-shell .pos-page .pos-catalogo .card-header {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    body.sis-app-shell .pos-page #catalogoProductos {
        --bs-gutter-x: 0.7rem;
        --bs-gutter-y: 0.95rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    body.sis-app-shell .pos-page #catalogoProductos>.producto-item {
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
    }

    body.sis-app-shell .pos-page .producto-item .card {
        min-width: 0;
        height: 100%;
    }

    body.sis-app-shell .pos-page .producto-card-img,
    body.sis-app-shell .pos-page .producto-card-placeholder {
        height: 135px;
    }

    body.sis-app-shell .pos-page .producto-item .card .card-body {
        padding: 0.8rem !important;
    }

    body.sis-app-shell .pos-page .producto-item .card .d-flex.justify-content-between.mb-1 {
        gap: 0.35rem;
        align-items: flex-start;
    }

    body.sis-app-shell .pos-page .producto-item .card .pos-producto-code {
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    body.sis-app-shell .pos-page .producto-item .card .stock-badge {
        flex: 0 0 auto;
        max-width: 88px;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

    body.sis-app-shell .pos-page .producto-item .card .pos-producto-nombre {
        font-size: 0.98rem;
        line-height: 1.18;
        min-height: 2.35em;
        overflow-wrap: anywhere;
    }

    body.sis-app-shell .pos-page .producto-item .card .text-primary.fw-bold.fs-5 {
        font-size: 1.25rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    body.sis-app-shell.carrito-mobile-open .offcanvas-backdrop.show {
        opacity: 1 !important;
        background:
            radial-gradient(circle at 10% 0%, rgba(0, 212, 170, 0.14), transparent 38%),
            linear-gradient(180deg, rgba(236, 255, 249, 0.98), rgba(229, 235, 246, 0.98)) !important;
        z-index: 2580 !important;
    }

    html[data-theme="dark"] body.sis-app-shell.carrito-mobile-open .offcanvas-backdrop.show {
        background:
            radial-gradient(circle at 10% 0%, rgba(0, 212, 170, 0.14), transparent 38%),
            linear-gradient(180deg, #060a14, #080d19) !important;
    }

    body.sis-app-shell .offcanvas.mobile-pos-carrito {
        inset: 0 auto 0 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 10px 14px !important;
        border-radius: 0 !important;
        border: 0 !important;
        background:
            radial-gradient(circle at 10% 0%, rgba(0, 212, 170, 0.12), transparent 38%),
            linear-gradient(180deg, #ecfff9, #e5ebf6) !important;
        box-shadow: none !important;
        z-index: 2600 !important;
        overflow: hidden !important;
    }

    html[data-theme="dark"] body.sis-app-shell .offcanvas.mobile-pos-carrito {
        background:
            radial-gradient(circle at 10% 0%, rgba(0, 212, 170, 0.10), transparent 38%),
            linear-gradient(180deg, #060a14, #080d19) !important;
    }

    body.sis-app-shell .mobile-pos-carrito .mobile-carrito-card {
        width: 100%;
        height: calc(100dvh - 20px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 14px;
        background: #ffffff !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16) !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .mobile-carrito-card {
        background: #0d1322 !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: 0 18px 54px rgba(0, 0, 0, 0.46) !important;
    }

    body.sis-app-shell .mobile-pos-carrito .pos-carrito-header {
        min-height: 56px;
        justify-content: center;
        position: relative !important;
        top: auto !important;
        z-index: 2;
        padding: 0.85rem 1rem !important;
        border-radius: 14px 14px 0 0;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
    }

    body.sis-app-shell .mobile-pos-carrito .pos-carrito-header .btn-close {
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
    }

    body.sis-app-shell .mobile-pos-carrito .offcanvas-body {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    body.sis-app-shell .mobile-pos-carrito .table thead th {
        background: #eef8f5 !important;
        color: #0f172a !important;
        border-color: rgba(15, 23, 42, 0.10) !important;
        text-shadow: none !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .offcanvas-body {
        background: #0d1322 !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .table thead th {
        background: #0b1726 !important;
        color: #eef0ff !important;
        border-color: rgba(255, 255, 255, 0.10) !important;
        text-shadow: none !important;
    }

    body.sis-app-shell .mobile-pos-carrito .carrito-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #ffffff !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .carrito-scroll {
        background: #0d1322 !important;
    }

    body.sis-app-shell .mobile-pos-carrito .pos-carrito-footer {
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)) !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        background: #ffffff !important;
    }

    html[data-theme="dark"] body.sis-app-shell .mobile-pos-carrito .pos-carrito-footer {
        background: #0b1624 !important;
    }

    body.sis-app-shell .mobile-pos-carrito #btnCobrar {
        background: linear-gradient(135deg, #00d4aa, #10b7d8) !important;
        border-color: rgba(0, 150, 126, 0.35) !important;
        color: #001812 !important;
        box-shadow: 0 12px 28px rgba(0, 150, 126, 0.16) !important;
    }

    body.sis-app-shell.carrito-mobile-open {
        overflow: hidden !important;
        touch-action: none;
    }

    body.sis-app-shell.carrito-mobile-open .navbar-custom,
    body.sis-app-shell.carrito-mobile-open .sidebar,
    body.sis-app-shell.carrito-mobile-open>.container-fluid {
        pointer-events: none !important;
    }

    body.sis-app-shell.carrito-mobile-open .navbar-custom {
        visibility: hidden !important;
    }

    body.sis-app-shell.carrito-mobile-open #seccionCarrito,
    body.sis-app-shell.carrito-mobile-open #seccionCarrito * {
        pointer-events: auto !important;
        touch-action: pan-y;
    }
}

/* ================================================================
   INPUT GROUPS MERGE (Unión de Lupa + Buscador)
   ================================================================ */
body.sis-app-shell .input-group-text {
    background-color: var(--sis-surface-2) !important;
    color: var(--sis-muted) !important;
    border: 1px solid var(--sis-border) !important;
    border-radius: var(--sis-radius-sm) !important;
}

body.sis-app-shell .input-group> :first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}

body.sis-app-shell .input-group> :not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
}

body.sis-app-shell .input-group> :not(:first-child):not(:last-child) {
    border-radius: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
}

body.sis-app-shell .input-group> :last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Evitar bordes extraños al enfocar el input fusionado */
body.sis-app-shell .input-group>.form-control:focus {
    border-left: 0 !important;
}

/* Cuando un offcanvas está abierto, bajar la navbar para que
   el backdrop la cubra y se vea opacada como el resto */
body.offcanvas-open.sis-app-shell .navbar-custom {
    z-index: 1020 !important;
}

body.sis-app-shell>.container-fluid {
    position: relative;
    z-index: auto;
}

/* File Selector Styling */
body.sis-app-shell .form-control::file-selector-button {
    background-color: var(--sis-surface-3) !important;
    color: var(--sis-text) !important;
    border: 1px solid var(--sis-border) !important;
    border-radius: 4px !important;
    padding: 0.375rem 0.75rem !important;
    margin-right: 10px !important;
    transition: background-color 0.15s ease-in-out !important;
}

body.sis-app-shell .form-control::file-selector-button:hover {
    background-color: var(--sis-surface-hover) !important;
}

/* ================================================================
   OFFCANVAS EMPRESA & SUCURSAL - Modo claro: degradados sutiles
   ================================================================ */
html[data-theme="light"] body.sis-app-shell #offcanvasEmpresa,
html[data-theme="light"] body.sis-app-shell #offcanvasSucursal {
    background: linear-gradient(180deg, #eef8f4 0%, #e8f3ef 50%, #e5eff6 100%) !important;
}

html[data-theme="light"] body.sis-app-shell #offcanvasEmpresa .offcanvas-header,
html[data-theme="light"] body.sis-app-shell #offcanvasSucursal .offcanvas-header {
    background:
        radial-gradient(circle at 8% 50%, rgba(0, 212, 170, 0.22), transparent 45%),
        radial-gradient(circle at 88% 40%, rgba(14, 165, 233, 0.14), transparent 40%),
        linear-gradient(135deg, #e4f5ef 0%, #eef8f4 50%, #e8f0f8 100%) !important;
    border-bottom: 1px solid rgba(0, 160, 120, 0.18) !important;
}

/* Modo oscuro: header con degradado estilo navbar */
html[data-theme="dark"] body.sis-app-shell #offcanvasEmpresa .offcanvas-header,
html[data-theme="dark"] body.sis-app-shell #offcanvasSucursal .offcanvas-header {
    background:
        radial-gradient(circle at 8% 50%, rgba(0, 212, 170, 0.20), transparent 45%),
        radial-gradient(circle at 88% 40%, rgba(14, 165, 233, 0.14), transparent 40%),
        linear-gradient(135deg, rgba(4, 10, 18, 0.98) 0%, rgba(8, 18, 28, 0.98) 50%, rgba(5, 12, 24, 0.98) 100%) !important;
    border-bottom: 1px solid rgba(0, 212, 170, 0.15) !important;
}

/* Filas intercaladas en modo claro: impares con fondo más marcado */
html[data-theme="light"] body.sis-app-shell #offcanvasContenido>div:last-child>div:nth-child(odd),
html[data-theme="light"] body.sis-app-shell #offcanvasSucursalContenido>div:last-child>div:nth-child(odd) {
    background: rgba(0, 160, 120, 0.06) !important;
}

html[data-theme="light"] body.sis-app-shell #offcanvasContenido>div:last-child>div:nth-child(even),
html[data-theme="light"] body.sis-app-shell #offcanvasSucursalContenido>div:last-child>div:nth-child(even) {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* ================================================================
   EFECTO HOVER Y GLOW PARA TARJETAS DE ESTADÍSTICAS
   ================================================================ */
body.sis-app-shell .sis-dashboard-stat {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.sis-app-shell .sis-dashboard-stat:hover {
    transform: translateY(-4px) !important;
}

body.sis-app-shell .sis-dashboard-stat-primary:hover {
    border-color: rgba(0, 212, 170, 0.45) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 0 18px rgba(0, 212, 170, 0.22) !important;
}

body.sis-app-shell .sis-dashboard-stat-success:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 0 18px rgba(16, 185, 129, 0.22) !important;
}

body.sis-app-shell .sis-dashboard-stat-info:hover {
    border-color: rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 0 18px rgba(59, 130, 246, 0.22) !important;
}

body.sis-app-shell .sis-dashboard-stat-warning:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 0 18px rgba(245, 158, 11, 0.22) !important;
}

/* Altura responsiva para el contenedor del gráfico de estadísticas */
body.sis-app-shell .sis-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

@media (min-width: 992px) {
    body.sis-app-shell .sis-chart-container {
        height: 420px;
    }
}

/* Fondos degradados sutiles para tarjetas de estadísticas */
body.sis-app-shell .sis-dashboard-card-gradient {
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-dashboard-card-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border: 1px solid rgba(4, 120, 87, 0.08) !important;
}

html[data-theme="dark"] body.sis-app-shell .sis-dashboard-card-gradient {
    background: linear-gradient(135deg, #092520 0%, #0b0f19 100%) !important;
    border: 1px solid rgba(0, 212, 170, 0.12) !important;
}

/* ================================================================
   VISIBILIDAD GLOBAL DE PLACEHOLDERS EN MODO OSCURO
   ================================================================ */
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: rgba(255, 255, 255, 0.52) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .form-select::placeholder {
    color: rgba(255, 255, 255, 0.52) !important;
}

/* ================================================================
   ESTILOS GLOBALES DE MODALES DEL SISTEMA (FONDOS SÓLIDOS)
   ================================================================ */
body.sis-app-shell .modal-content {
    color: var(--sis-text) !important;
    border: 1px solid var(--sis-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] body.sis-app-shell .modal-content {
    background-color: #0b1c19 !important;
    background: linear-gradient(145deg, #112d27 0%, #080d16 100%) !important;
    /* Degradado sólido oscuro con matiz esmeralda */
    border-color: rgba(0, 212, 170, 0.2) !important;
    /* Borde con toque esmeralda */
}

html[data-theme="light"] body.sis-app-shell .modal-content {
    background-color: #f0faf7 !important;
    background: linear-gradient(135deg, #c6f6d5 0%, #f7fafc 100%) !important;
    /* Degradado claro con esquina esmeralda más notoria */
    border-color: rgba(0, 212, 170, 0.25) !important;
    /* Borde con toque esmeralda más notorio */
}

body.sis-app-shell .modal-header,
body.sis-app-shell .modal-footer {
    border: none !important;
    background-color: transparent !important;
}

body.sis-app-shell .modal-body {
    color: var(--sis-text) !important;
}

html[data-theme="dark"] body.sis-app-shell .btn-close {
    filter: invert(1) grayscale(1) brightness(2) !important;
}

body.sis-app-shell .modal-backdrop {
    background-color: #000000 !important;
    opacity: 0.65 !important;
}

/* ================================================================
   ESTILOS ADAPTATIVOS PARA NOTIFICACIONES (TOASTS) DEL SISTEMA
   ================================================================ */
/* Modo Oscuro */
html[data-theme="dark"] .sis-toast-success {
    background: linear-gradient(135deg, #112d27 0%, #080d16 100%) !important;
    color: #e2fbf5 !important;
    border: 1px solid rgba(0, 212, 170, 0.25) !important;
    border-left: 4px solid var(--sis-teal) !important;
}

html[data-theme="dark"] .sis-toast-error {
    background: linear-gradient(135deg, #2d1111 0%, #0d0808 100%) !important;
    color: #fbebeb !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-left: 4px solid #ef4444 !important;
}

/* Modo Claro */
html[data-theme="light"] .sis-toast-success {
    background: linear-gradient(135deg, #e6f7f2 0%, #ffffff 100%) !important;
    color: #065f46 !important;
    border: 1px solid rgba(0, 212, 170, 0.2) !important;
    border-left: 4px solid #10b981 !important;
}

html[data-theme="light"] .sis-toast-error {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;
    color: #991b1b !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-left: 4px solid #ef4444 !important;
}

/* Forzar que las cajas de entrada de hora no sean blancas en modo oscuro y sus textos sean legibles */
html[data-theme="dark"] input[type="time"].form-control,
html[data-theme="dark"] input[type="time"] {
    background-color: #121626 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: var(--sis-border) !important;
}

/* Forzar que los guiones, puntos y textos del placeholder (--:--) de hora sean blancos en modo oscuro */
html[data-theme="dark"] input[type="time"]::-webkit-datetime-edit,
html[data-theme="dark"] input[type="time"]::-webkit-datetime-edit-fields-wrapper,
html[data-theme="dark"] input[type="time"]::-webkit-datetime-edit-text,
html[data-theme="dark"] input[type="time"]::-webkit-datetime-edit-hour-field,
html[data-theme="dark"] input[type="time"]::-webkit-datetime-edit-minute-field,
html[data-theme="dark"] input[type="time"]::-webkit-datetime-edit-ampm-field {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* En modo claro, los guiones, puntos y textos del placeholder (--:--) de hora deben ser oscuros */
html[data-theme="light"] input[type="time"]::-webkit-datetime-edit,
html[data-theme="light"] input[type="time"]::-webkit-datetime-edit-fields-wrapper,
html[data-theme="light"] input[type="time"]::-webkit-datetime-edit-text,
html[data-theme="light"] input[type="time"]::-webkit-datetime-edit-hour-field,
html[data-theme="light"] input[type="time"]::-webkit-datetime-edit-minute-field,
html[data-theme="light"] input[type="time"]::-webkit-datetime-edit-ampm-field {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

/* Estilo del icono de reloj interno nativo (picker indicator) adaptativo */
html[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5) !important;
    cursor: pointer;
}

/* DARK MODE: input[type="date"] */
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="date"].form-control {
    background-color: var(--sis-surface-2) !important;
    color: var(--sis-text) !important;
    -webkit-text-fill-color: var(--sis-text) !important;
    border-color: var(--sis-border) !important;
    color-scheme: dark;
}

html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-fields-wrapper,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-text,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-day-field,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-month-field,
html[data-theme="dark"] input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--sis-text) !important;
    -webkit-text-fill-color: var(--sis-text) !important;
}

html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.6) sepia(1) saturate(2) hue-rotate(115deg);
    opacity: 0.9;
    cursor: pointer;
}

html[data-theme="dark"] input[type="date"]::placeholder {
    color: var(--sis-muted) !important;
    -webkit-text-fill-color: var(--sis-muted) !important;
}

html[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0) !important;
    cursor: pointer;
}

/* Redefinir el color del sistema esmeralda en el modo claro a un verde esmeralda de alto contraste para textos y títulos */
html[data-theme="light"] {
    --sis-teal: #059669 !important;
}

/* Forzar que los títulos de secciones en tarjetas de formularios sean del color esmeralda del sistema */
.card-body h5.card-title,
.card-body .card-title {
    color: var(--sis-teal) !important;
}

/* Hacer que los encabezados de las tablas (th) sean más altos, con más espacio (padding), texto más grande, negrita gruesa y con alto contraste */
body.sis-app-shell table thead th {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: var(--sis-text) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* ================================================================
   ESTILIZACIÓN DE SELECTS Y OPTIONS (EVITA FONDO BLANCO Y AZUL)
   ================================================================ */
select.form-select,
select {
    accent-color: var(--sis-teal) !important;
}

/* Forzar colores de fondo y texto legibles para las opciones de los desplegables */
select.form-select option,
select option {
    background-color: var(--sis-bg-2) !important;
    color: var(--sis-text) !important;
}

/* Modo oscuro: Asegurar que el fondo del popup sea gris oscuro sólido y las letras blancas legibles */
html[data-theme="dark"] select.form-select,
html[data-theme="dark"] select {
    background-color: #121626 !important;
    color: #ffffff !important;
    border-color: var(--sis-border) !important;
}

html[data-theme="dark"] select.form-select option,
html[data-theme="dark"] select option {
    background-color: #121626 !important;
    /* Fondo oscuro sólido no transparente */
    color: #ffffff !important;
}

/* Modo claro: Asegurar que el fondo sea blanco y las letras oscuras */
html[data-theme="light"] select.form-select,
html[data-theme="light"] select {
    background-color: #ffffff !important;
    color: #000000 !important;
}

html[data-theme="light"] select.form-select option,
html[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* ================================================================
   SELECTOR PREMIUM SIMULADO (GENÉRICO SIN AZUL, ADAPTATIVO ESMERALDA)
   ================================================================ */
body.sis-app-shell .sis-select-custom {
    position: relative;
    width: 100%;
}

body.sis-app-shell .sis-select-trigger {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--sis-border);
    border-radius: 0.375rem;
    background: var(--sis-surface-2);
    color: var(--sis-text);
    padding: 0.375rem 0.75rem;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.sis-app-shell .sis-select-trigger:focus {
    border-color: rgba(0, 150, 126, 0.55) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.16) !important;
    outline: none !important;
}

body.sis-app-shell .sis-select-menu {
    position: absolute;
    inset: calc(100% + 6px) 0 auto 0;
    z-index: 3000;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid rgba(0, 150, 126, 0.24);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

/* Forzar fondos sólidos sin transparencias en ambos temas para que no se traslapen las letras */
html[data-theme="dark"] body.sis-app-shell .sis-select-menu {
    background: #111827 !important;
    border-color: rgba(0, 212, 170, 0.26) !important;
}

html[data-theme="light"] body.sis-app-shell .sis-select-menu {
    background: #ffffff !important;
    border-color: rgba(0, 150, 126, 0.24) !important;
}

body.sis-app-shell .sis-select-custom.open .sis-select-menu {
    display: block;
}

body.sis-app-shell .sis-select-option {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--sis-text);
    padding: 0.55rem 0.65rem;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease;
}

/* Modo claro y oscuro: hover y selección con el color esmeralda corporativo */
body.sis-app-shell .sis-select-option:hover,
body.sis-app-shell .sis-select-option:focus,
body.sis-app-shell .sis-select-option.active {
    background: rgba(0, 212, 170, 0.14) !important;
    color: var(--sis-teal) !important;
    outline: none;
}

html[data-theme="dark"] body.sis-app-shell .sis-select-option:hover,
html[data-theme="dark"] body.sis-app-shell .sis-select-option:focus,
html[data-theme="dark"] body.sis-app-shell .sis-select-option.active {
    background: rgba(0, 212, 170, 0.18) !important;
    color: #f4fffc !important;
}

/* ================================================================
   PESTAÑAS (NAV TABS) PREMIUM Y ADAPTATIVAS
   ================================================================ */
body.sis-app-shell .nav-tabs {
    border-bottom: 1px solid var(--sis-border) !important;
}

body.sis-app-shell .nav-tabs .nav-link {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--sis-text-muted) !important;
    border-radius: 8px 8px 0 0;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

body.sis-app-shell .nav-tabs .nav-link:hover {
    color: var(--sis-teal) !important;
    border-color: transparent !important;
}

body.sis-app-shell .nav-tabs .nav-link.active {
    background: var(--sis-surface-2) !important;
    color: var(--sis-teal) !important;
    border-color: var(--sis-border) var(--sis-border) transparent !important;
    font-weight: 600 !important;
}

/* ================================================================
   BUSCADOR PREMIUM UNIFICADO
   ================================================================ */
body.sis-app-shell .sis-search-group {
    background: var(--sis-surface-2) !important;
    border: 1px solid var(--sis-border) !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

body.sis-app-shell .sis-search-group:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 170, 0.25) !important;
}

body.sis-app-shell .sis-search-group .input-group-text {
    background: transparent !important;
    border: none !important;
    padding-right: 0.25rem !important;
}

body.sis-app-shell .sis-search-group .input-group-text i {
    color: var(--sis-text) !important;
    font-size: 1.1rem;
    opacity: 0.7;
}

body.sis-app-shell .sis-search-group .form-control {
    background: transparent !important;
    border: none !important;
    color: var(--sis-text) !important;
    box-shadow: none !important;
    padding-left: 0.5rem !important;
}

body.sis-app-shell .sis-search-group .form-control::placeholder {
    color: var(--sis-text) !important;
    opacity: 0.4 !important;
}

body.sis-app-shell .sis-search-group .btn {
    background: transparent !important;
    border: none !important;
    padding: 0.375rem 0.75rem !important;
}

body.sis-app-shell .sis-search-group .btn i {
    color: var(--sis-text) !important;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.2s;
}

body.sis-app-shell .sis-search-group .btn:hover i {
    color: var(--primary-color) !important;
    opacity: 1;
}

/* ================================================================
   TARJETAS DE CATEGORÍAS HOVER Y DESCRIPCION
   ================================================================ */
body.sis-app-shell .categoria-item .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent !important;
}

body.sis-app-shell .categoria-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.15) !important;
    border-color: var(--primary-color) !important;
}

body.sis-app-shell .sis-descripcion-texto {
    color: var(--sis-text) !important;
    opacity: 0.85;
}

body.sis-app-shell .sis-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.sis-app-shell .sis-card-hover:hover {
    transform: scale(1.006);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.18) !important;
    border-color: var(--sis-teal) !important;
}