/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Contenedor principal */
.app-container[b-hpcfl5an9z] {
    display: flex;
    min-height: 100vh;
    background-color: #f3f1ea;
}

/* Checkbox oculto para toggle */
.sidebar-checkbox[b-hpcfl5an9z] {
    display: none;
}

/* Sidebar - oculto por defecto en todas las pantallas */
.sidebar[b-hpcfl5an9z] {
    width: 290px;
    background: var(--nav-bg, #1e293b);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

/* Contenido principal - ancho completo por defecto */
.main-content[b-hpcfl5an9z] {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Header superior */
.top-header[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--nav-bg, #1e293b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    box-sizing: border-box;
    transition: left 0.3s ease;
}

.header-left[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title[b-hpcfl5an9z] {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-nav-text, #ffffff);
    margin: 0;
}

.header-right[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.15);
    border-radius: 8px;
    color: var(--brand-nav-text, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover[b-hpcfl5an9z] {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.3);
    color: var(--brand-nav-text, #ffffff);
}

.header-btn i[b-hpcfl5an9z] {
    font-size: 1.1rem;
}

/* Dropdown de usuario */
.user-dropdown[b-hpcfl5an9z] {
    position: relative;
}

.dropdown-checkbox[b-hpcfl5an9z] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dropdown-toggle[b-hpcfl5an9z] {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.dropdown-toggle:focus[b-hpcfl5an9z] {
    outline: none;
}

.dropdown-checkbox:focus + .dropdown-toggle[b-hpcfl5an9z] {
    outline: none;
}

.dropdown-overlay[b-hpcfl5an9z] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    cursor: default;
}

.dropdown-menu[b-hpcfl5an9z] {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

/* Mostrar menu cuando checkbox está checked */
.dropdown-checkbox:checked ~ .dropdown-overlay[b-hpcfl5an9z] {
    display: block;
}

.dropdown-checkbox:checked ~ .dropdown-menu[b-hpcfl5an9z] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-item:hover[b-hpcfl5an9z] {
    background-color: #f3f4f6;
}

.dropdown-item i[b-hpcfl5an9z] {
    font-size: 1.1rem;
    color: #6b7280;
}

.dropdown-item:hover i[b-hpcfl5an9z] {
    color: #1e293b;
}

.dropdown-header[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f8fafc;
}

.dropdown-header i[b-hpcfl5an9z] {
    font-size: 1.25rem;
    color: #3b82f6;
}

.dropdown-divider[b-hpcfl5an9z] {
    height: 1px;
    background: #e5e7eb;
    margin: 0.25rem 0;
}

.logout-btn[b-hpcfl5an9z] {
    color: #dc2626;
}

.logout-btn i[b-hpcfl5an9z] {
    color: #dc2626;
}

.logout-btn:hover[b-hpcfl5an9z] {
    background-color: #fef2f2;
}

/* Menu lateral toggle item */
.menu-toggle-item[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.menu-toggle-item span[b-hpcfl5an9z] {
    flex: 1;
}

/* Switch toggle */
.switch-toggle[b-hpcfl5an9z] {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.switch-toggle input[b-hpcfl5an9z] {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider[b-hpcfl5an9z] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 22px;
    transition: 0.3s;
}

.switch-slider[b-hpcfl5an9z]::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch-toggle input:checked + .switch-slider[b-hpcfl5an9z] {
    background-color: #22c55e;
}

.switch-toggle input:checked + .switch-slider[b-hpcfl5an9z]::before {
    transform: translateX(18px);
}

/* Boton hamburguesa - siempre visible. MenuHamburguesa es un componente COMPARTIDO
   (Common.Admin.Pages) sin su propio .razor.css, asi que su <button class="menu-toggle"> NO lleva
   el atributo de scope de este archivo: hace falta ::deep para que estas reglas lo alcancen.
   Sin ::deep el icono se quedaba blanco sobre blanco en Tema Claro (mismo arreglo que B_TrackerErp). */
[b-hpcfl5an9z] .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.15);
    border-radius: 8px;
    color: var(--brand-nav-text, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
}

[b-hpcfl5an9z] .menu-toggle:hover {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.3);
    color: var(--brand-nav-text, #ffffff);
}

[b-hpcfl5an9z] .menu-toggle i {
    font-size: 1.4rem;
}

/* Campana de Notificaciones y boton de Ayuda: mismo estilo que el boton hamburguesa de arriba y
   que el engrane (.header-btn). Son componentes COMPARTIDOS (Common.Admin.Pages) que traen su
   color/fondo en un <style> propio con blanco fijo, que en Tema Claro se pierde; se sobreescribe
   aqui con !important para que sigan el color del tema (mismo arreglo que B_TrackerErp). */
[b-hpcfl5an9z] .notif-btn-styled,
[b-hpcfl5an9z] .ayuda-btn-styled {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.15) !important;
    color: var(--brand-nav-text, #ffffff) !important;
}

[b-hpcfl5an9z] .notif-btn-styled:hover,
[b-hpcfl5an9z] .ayuda-btn-styled:hover {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.3) !important;
    color: var(--brand-nav-text, #ffffff) !important;
}

/* Overlay - oculto por defecto */
.sidebar-overlay[b-hpcfl5an9z] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
}

/* Area de contenido */
.content-area[b-hpcfl5an9z] {
    flex: 1;
    padding: 1rem 2rem 2rem 2rem;
    margin-top: 64px;
    overflow-y: auto;
}

.content-wrapper[b-hpcfl5an9z] {
    max-width: 100%;
    margin: 0 auto;
}

/* Error UI */
#blazor-error-ui[b-hpcfl5an9z] {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    padding: 1rem;
}

.error-content[b-hpcfl5an9z] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #991b1b;
}

.error-content i[b-hpcfl5an9z] {
    font-size: 1.25rem;
}

.error-content .reload[b-hpcfl5an9z] {
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
}

.error-content .dismiss[b-hpcfl5an9z] {
    cursor: pointer;
    margin-left: 1rem;
    font-weight: bold;
}

/* ============================================ */
/* SIDEBAR TOGGLE: checked = ABIERTO (siempre) */
/* ============================================ */

/* Corte "menu como movil" = 960px (pedido del cliente 2026-10-16). Antes era 768px, y el iPad en
   vertical (768-834px) caia del lado escritorio: el menu empujaba el contenido y se quedaba
   abierto. Ahora todo lo menor a 960px (fin de `sm`, la "Vista iPad Mini" del CLAUDE.md raiz) se
   comporta como celular: el menu es una capa encima, se cierra al tocar afuera y al navegar.
   El MISMO 960 esta en App.razor (esMovil), MenuHamburguesa.razor y SidebarToggleController.razor
   de Common.Admin.Pages; si se mueve, se mueve en los cuatro. */

/* Desktop e iPad horizontal (>= 960px): sidebar empuja contenido */
@media (min-width: 960px) {
    .sidebar-checkbox:checked ~ .sidebar[b-hpcfl5an9z] {
        transform: translateX(0);
    }

    .sidebar-checkbox:checked ~ .main-content[b-hpcfl5an9z] {
        margin-left: 290px;
    }

    .sidebar-checkbox:checked ~ .main-content .top-header[b-hpcfl5an9z] {
        left: 290px;
    }
}

/* Celular e iPad vertical (< 960px): sidebar como overlay */
@media (max-width: 959px) {
    .sidebar-checkbox:checked ~ .sidebar[b-hpcfl5an9z] {
        transform: translateX(0);
    }

    .sidebar-checkbox:checked ~ .sidebar-overlay[b-hpcfl5an9z] {
        display: block;
    }
}

/* Solo celular (< 768px): header compacto */
@media (max-width: 767px) {
    .top-header[b-hpcfl5an9z] {
        padding: 0 1rem;
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }

    .content-area[b-hpcfl5an9z] {
        margin-top: 56px !important;
        padding: 1rem !important;
    }

    .page-title[b-hpcfl5an9z] {
        font-size: 1.1rem;
    }

    .header-btn[b-hpcfl5an9z] {
        width: 2.25rem;
        height: 2.25rem;
    }

    .header-btn i[b-hpcfl5an9z] {
        font-size: 1rem;
    }
}

/* Pantallas pequeñas/medianas */
@media (max-width: 1366px) {
    .content-wrapper[b-hpcfl5an9z] {
        max-width: 100% !important;
        width: 100% !important;
    }

    .content-area[b-hpcfl5an9z] {
        padding: 1rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Header con Logo */
.sidebar-header[b-9gcg6q3cmo] {
    padding: 0 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.1);
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-header:hover[b-9gcg6q3cmo] {
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
}

.logo-container[b-9gcg6q3cmo] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-wrapper[b-9gcg6q3cmo] {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-icon[b-9gcg6q3cmo] {
    font-size: 1.25rem;
    color: var(--brand-nav-text, #ffffff);
}

/* Logo de Ruta 45 (siempre el mismo en este proyecto): PNG con fondo transparente, altura fija y ancho proporcional */
.logo-img[b-9gcg6q3cmo] {
    height: 46px;
    width: auto;
    max-width: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.logo-text[b-9gcg6q3cmo] {
    display: flex;
    flex-direction: column;
}

.app-name[b-9gcg6q3cmo] {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-nav-text, #ffffff);
    letter-spacing: 0.5px;
}

.app-version[b-9gcg6q3cmo] {
    font-size: 0.6rem;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Navegacion */
.nav-scrollable[b-9gcg6q3cmo] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-nav[b-9gcg6q3cmo] {
    flex: 1;
    padding: 0.25rem 0;
}

/* Secciones del menu -- espaciado mas holgado (pedido 2026-10-28): Tracker tiene muchas menos
   pantallas que el resto del ERP, asi que puede darse el lujo de un menu mas alto y mas comodo. */
.nav-section[b-9gcg6q3cmo] {
    padding: 0.35rem 0;
    margin-bottom: 0.35rem;
}

.nav-section-title[b-9gcg6q3cmo] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.175rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.35);
}

.nav-section-title i[b-9gcg6q3cmo] {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Items del menu */
.nav-item[b-9gcg6q3cmo] {
    padding: 0.2rem 0.75rem;
}

.nav-item[b-9gcg6q3cmo]  .nav-link,
.nav-item[b-9gcg6q3cmo]  .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.15rem 0.55rem 0.75rem;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.75);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 700;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.nav-item[b-9gcg6q3cmo]  .nav-link span,
.nav-item[b-9gcg6q3cmo]  .logout-btn span {
    flex: 1;
}

.nav-item[b-9gcg6q3cmo]  .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Iconos coloridos */
.nav-item[b-9gcg6q3cmo]  .nav-icon,
.nav-item[b-9gcg6q3cmo]  .logout-btn .nav-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.nav-item[b-9gcg6q3cmo]  .nav-icon i,
.nav-item[b-9gcg6q3cmo]  .logout-btn .nav-icon i {
    font-size: 0.8rem;
    color: white;
}

/* Colores de iconos */
.nav-item[b-9gcg6q3cmo]  .nav-icon.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* teal y yellow: el markup ya los usaba (nav-icon teal / nav-icon yellow) pero les faltaba la
   regla, asi que esos iconos salian sin color de fondo. */
.nav-item[b-9gcg6q3cmo]  .nav-icon.teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.nav-item[b-9gcg6q3cmo]  .nav-icon.yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
}

/* Flecha de navegacion */
.nav-item[b-9gcg6q3cmo]  .nav-arrow {
    font-size: 0.65rem;
    color: var(--brand-nav-text, #ffffff);
    transition: all 0.25s ease;
}

/* Hover state */
.nav-item[b-9gcg6q3cmo]  .nav-link:hover,
.nav-item[b-9gcg6q3cmo]  .logout-btn:hover {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.1);
    color: var(--brand-nav-text, #ffffff);
    transform: translateX(4px);
}

.nav-item[b-9gcg6q3cmo]  .nav-link:hover .nav-arrow,
.nav-item[b-9gcg6q3cmo]  .logout-btn:hover .nav-arrow {
    color: var(--brand-nav-text, #ffffff);
    transform: translateX(3px);
}

.nav-item[b-9gcg6q3cmo]  .nav-link:hover .nav-icon,
.nav-item[b-9gcg6q3cmo]  .logout-btn:hover .nav-icon {
    transform: scale(1.08);
}

/* Active state */
.nav-item[b-9gcg6q3cmo]  a.active {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.1);
    color: var(--brand-nav-text, #ffffff);
    box-shadow: none;
    border: 1px solid rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.15);
}

.nav-item[b-9gcg6q3cmo]  a.active .nav-icon {
    box-shadow: 0 6px 20px currentColor;
}

.nav-item[b-9gcg6q3cmo]  a.active .nav-arrow {
    color: var(--brand-nav-text, #ffffff);
}

/* Footer del sidebar */
.sidebar-footer[b-9gcg6q3cmo] {
    padding: 0.5rem 0.75rem;
    /* Tintes con el color de texto del menu (oscuro en tema claro, blanco en oscuro): con blanco fijo no se veian en tema claro */
    border-top: 1px solid rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.12);
    margin-top: auto;
    background: transparent;
}

.footer-content[b-9gcg6q3cmo] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.05);
    border-radius: 12px;
    border: 1px solid rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.1);
}

.footer-icon[b-9gcg6q3cmo] {
    width: 36px;
    height: 36px;
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon i[b-9gcg6q3cmo] {
    font-size: 1rem;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.7);
}

.footer-text[b-9gcg6q3cmo] {
    display: flex;
    flex-direction: column;
}

.company-name[b-9gcg6q3cmo] {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.9);
}

.company-slogan[b-9gcg6q3cmo] {
    font-size: 0.65rem;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.6);
}

.footer-logout-btn[b-9gcg6q3cmo] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 8px;
    /* Rojo firme que se lee en tema claro; en tema oscuro se aclara un poco mezclandolo con el texto del menu (blanco).
       Antes era #fca5a5 (rosa pastel): ilegible sobre fondo claro. */
    color: color-mix(in srgb, #dc2626 82%, var(--brand-nav-text, #ffffff));
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-logout-btn:hover[b-9gcg6q3cmo] {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.footer-logout-btn i[b-9gcg6q3cmo] {
    font-size: 0.85rem;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .sidebar-header[b-9gcg6q3cmo] {
        padding: 0 1rem;
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }

    .logo-icon-wrapper[b-9gcg6q3cmo] {
        width: 36px;
        height: 36px;
    }

    .logo-img[b-9gcg6q3cmo] {
        height: 38px;
        max-width: 54px;
    }

    .logo-icon[b-9gcg6q3cmo] {
        font-size: 1.1rem;
    }

    .app-name[b-9gcg6q3cmo] {
        font-size: 1rem;
    }

    .nav-scrollable[b-9gcg6q3cmo] {
        height: calc(100vh - 56px);
    }

    .nav-item[b-9gcg6q3cmo]  .nav-link,
    .nav-item[b-9gcg6q3cmo]  .logout-btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .nav-item[b-9gcg6q3cmo]  .nav-icon,
    .nav-item[b-9gcg6q3cmo]  .logout-btn .nav-icon {
        width: 32px;
        height: 32px;
    }

    .nav-item[b-9gcg6q3cmo]  .nav-icon i,
    .nav-item[b-9gcg6q3cmo]  .logout-btn .nav-icon i {
        font-size: 0.9rem;
    }

    .footer-content[b-9gcg6q3cmo] {
        padding: 0.5rem;
    }

    .footer-icon[b-9gcg6q3cmo] {
        width: 32px;
        height: 32px;
    }
}

/* Submenu Styles */
.nav-item[b-9gcg6q3cmo]  button.submenu-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.15rem 0.55rem 0.75rem;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.75);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.92rem;
    font-weight: 700;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.nav-item[b-9gcg6q3cmo]  button.submenu-toggle span {
    flex: 1;
}

.nav-item[b-9gcg6q3cmo]  button.submenu-toggle:hover {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.1);
    color: var(--brand-nav-text, #ffffff);
    transform: translateX(4px);
}

.nav-item[b-9gcg6q3cmo]  button.submenu-toggle.active {
    background: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.08);
    color: var(--brand-nav-text, #ffffff);
}

.submenu[b-9gcg6q3cmo] {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out, margin 0.3s ease-out;
    margin-top: 0;
    margin-bottom: 0;
}

.submenu.open[b-9gcg6q3cmo] {
    max-height: 1500px;
    opacity: 1;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    transition: max-height 0.4s ease-in, opacity 0.3s ease-in, margin 0.3s ease-in;
}

.submenu .nav-item[b-9gcg6q3cmo] {
    padding: 0.12rem 0.5rem;
}

.submenu .nav-item[b-9gcg6q3cmo]  .nav-link.submenu-item {
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.submenu .nav-item[b-9gcg6q3cmo]  .nav-link.submenu-item .nav-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}

.submenu .nav-item[b-9gcg6q3cmo]  .nav-link.submenu-item .nav-icon i {
    font-size: 0.7rem;
}

.submenu-separator[b-9gcg6q3cmo] {
    margin: 4px 16px;
    border: none;
    border-top: 2px solid rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.2);
}

/* Solo mostrar los separadores cuando el submenu tiene TODOS los items del grupo visibles */
.submenu:not(.all-visible) > .submenu-separator[b-9gcg6q3cmo] {
    display: none;
}

.submenu-group-title[b-9gcg6q3cmo] {
    display: block;
    padding: 4px 20px 2px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.45);
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-hsf00oxke3],
.components-reconnect-repeated-attempt-visible[b-hsf00oxke3],
.components-reconnect-failed-visible[b-hsf00oxke3],
.components-pause-visible[b-hsf00oxke3],
.components-resume-failed-visible[b-hsf00oxke3],
.components-rejoining-animation[b-hsf00oxke3] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-retrying[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-failed[b-hsf00oxke3],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-hsf00oxke3] {
    display: block;
}


#components-reconnect-modal[b-hsf00oxke3] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-hsf00oxke3 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-hsf00oxke3 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-hsf00oxke3 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-hsf00oxke3]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-hsf00oxke3 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-hsf00oxke3 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-hsf00oxke3 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-hsf00oxke3 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-hsf00oxke3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-hsf00oxke3] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-hsf00oxke3] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-hsf00oxke3] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-hsf00oxke3] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-hsf00oxke3] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-hsf00oxke3] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-hsf00oxke3 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-hsf00oxke3] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-hsf00oxke3 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Restaurante/Ventas/PuntoDeVenta.razor.rz.scp.css */
/* ========== POS DESKTOP (≥1024px) ========== */

/* Mensaje para dispositivos pequeños */
.dispositivo-no-soportado[b-5foqs6adgh] {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    text-align: center;
    padding: 40px;
}

.pos-container[b-5foqs6adgh] {
    height: calc(100vh - 102px);
    display: flex;
    gap: 0;
    width: 100%;
    overflow: hidden;
}

/* Panel izquierdo - Cuenta */
.cuenta-panel[b-5foqs6adgh] {
    width: 450px;
    min-width: 450px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

/* Panel derecho - Menu (ocupa el resto del ancho) */
.menu-panel[b-5foqs6adgh] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px 16px;
    background-color: #fafafa;
}

/* Ocultar tabs móviles en desktop */
.mobile-tabs[b-5foqs6adgh] {
    display: none;
}

.grupos-container[b-5foqs6adgh] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.grupo-btn[b-5foqs6adgh] {
    min-width: 100px;
    text-transform: none !important;
}

.grupo-btn.activo[b-5foqs6adgh] {
    background-color: var(--mud-palette-primary) !important;
    color: white !important;
}

.productos-grid[b-5foqs6adgh] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 12px 0;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

.producto-card[b-5foqs6adgh] {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: white;
}

.producto-card:hover[b-5foqs6adgh] {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: #1976d2;
}

.producto-card:active[b-5foqs6adgh] {
    transform: scale(0.96);
    background: #e3f2fd;
}

.producto-nombre[b-5foqs6adgh] {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    margin-bottom: 6px;
    color: #333;
    text-align: left;
    width: 100%;
}

.producto-precio[b-5foqs6adgh] {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2e7d32;
    text-align: right;
    width: 100%;
}

.cuenta-items[b-5foqs6adgh] {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.03);
}

.cuenta-item[b-5foqs6adgh] {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2px;
    color: white;
}

.cuenta-item:hover[b-5foqs6adgh] {
    background-color: rgba(255, 255, 255, 0.08);
}

.cuenta-item-info[b-5foqs6adgh] {
    flex: 1;
    min-width: 0;
}

.cuenta-item-nombre[b-5foqs6adgh] {
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.cuenta-item-precio[b-5foqs6adgh] {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.cuenta-item-total[b-5foqs6adgh] {
    font-weight: bold;
    min-width: 60px;
    text-align: right;
    font-size: 0.9rem;
    color: #4caf50;
}

.cuenta-totales[b-5foqs6adgh] {
    padding: 10px 12px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: white;
    flex-shrink: 0;
}

.total-row[b-5foqs6adgh] {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 0.85rem;
}

.total-row.grande[b-5foqs6adgh] {
    font-size: 1.25rem;
    font-weight: bold;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 6px;
}

.acciones-panel[b-5foqs6adgh] {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    background-color: #e8eaf6;
    flex-shrink: 0;
}

.acciones-panel > :deep(button)[b-5foqs6adgh] {
    flex: 1;
}

.acciones-panel.tres-botones[b-5foqs6adgh] {
    gap: 6px;
}

.acciones-panel.tres-botones > :deep(button)[b-5foqs6adgh] {
    font-size: 0.8rem;
    padding: 6px 8px;
}


/* Estilos para iconos en cuenta-panel con fondo oscuro */
.cuenta-panel[b-5foqs6adgh]  .mud-icon-button {
    color: rgba(255, 255, 255, 0.8);
}

.cuenta-panel[b-5foqs6adgh]  .mud-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.venta-info[b-5foqs6adgh] {
    padding: 10px 12px;
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sin-venta[b-5foqs6adgh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    text-align: center;
}

.turno-header[b-5foqs6adgh] {
    padding: 6px 16px;
    background: linear-gradient(135deg, #3949ab, #5c6bc0);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    height: 38px;
}

.turno-info[b-5foqs6adgh] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sin-turno-container[b-5foqs6adgh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

/* Header del menú */
.menu-header[b-5foqs6adgh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 16px;
}

.menu-header-title[b-5foqs6adgh] {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.menu-search[b-5foqs6adgh] {
    flex: 1;
    max-width: 400px;
}

/* ========== RESPONSIVE - Dispositivos < 1024px ========== */
@media (max-width: 1023px) {
    .pos-container[b-5foqs6adgh],
    .turno-header[b-5foqs6adgh] {
        display: none !important;
    }

    .dispositivo-no-soportado[b-5foqs6adgh] {
        display: flex;
    }
}
