/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-hwkifv0tws] {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    min-height: 100vh;
}

main[b-hwkifv0tws] {
    flex: 1;
    /* La barra superior es "position: fixed" en móvil (ver NavMenu.razor.css),
       así que el contenido necesita este espacio para no quedar tapado
       debajo de ella. */
    padding-top: 3.5rem;
}

.sidebar[b-hwkifv0tws] {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.content[b-hwkifv0tws] {
    padding: 0;
}

.sidebar-backdrop[b-hwkifv0tws] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 40;
}

@media (min-width: 641px) {
    .sidebar-backdrop[b-hwkifv0tws] {
        display: none;
    }

    .page[b-hwkifv0tws] {
        flex-direction: row;
    }

    main[b-hwkifv0tws] {
        padding-top: 0;
    }

    .sidebar[b-hwkifv0tws] {
        width: var(--sidebar-width, 264px);
        min-width: 200px;
        max-width: 420px;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
    }

    .sidebar.sidebar-collapsed[b-hwkifv0tws] {
        width: 84px !important;
        min-width: 84px;
    }
}

#blazor-error-ui[b-hwkifv0tws] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-hwkifv0tws] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* En móvil ".sidebar" ya no tiene altura real de flujo (el panel es
   "position: fixed" y sale del flujo), así que "position: sticky" no
   tiene dentro de qué pegarse y se desliza con la página al hacer scroll.
   "fixed" no depende de la altura del contenedor padre. */
.top-row[b-96u1bxb223] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 3.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 60;
}

.sidebar-toggle[b-96u1bxb223] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-toggle:hover[b-96u1bxb223] {
    background: #eef3ff;
    color: #0047ba;
}

/* En escritorio se ve el botón de colapsar riel; en móvil, la hamburguesa.
   Nunca los dos a la vez. */
.sidebar-toggle-desktop[b-96u1bxb223] {
    display: none;
}

.hamburger-toggle[b-96u1bxb223] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #14213d;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hamburger-toggle:hover[b-96u1bxb223] {
    background: #eef3ff;
    color: #0047ba;
}

.toggle-arrow[b-96u1bxb223] {
    transform-origin: 15px 12px;
}

.toggle-arrow-flipped[b-96u1bxb223] {
    transform: scaleX(-1);
}

.resize-handle[b-96u1bxb223] {
    display: none;
    position: absolute;
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    z-index: 15;
    background: transparent;
}

.resize-handle:hover[b-96u1bxb223],
.resize-handle.is-dragging[b-96u1bxb223] {
    background: rgba(0, 71, 186, 0.18);
}

/* Menú móvil (<641px): un panel que se desliza desde la izquierda, debajo
   de la barra superior (top-row), con fondo blanco propio ya que el
   ".sidebar" que lo envuelve deja de tener su propio fondo fijo aquí. */
.nav-scrollable[b-96u1bxb223] {
    display: flex;
    position: fixed;
    top: 3.5rem;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background-color: #ffffff;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.25);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.nav-scrollable.mobile-open[b-96u1bxb223] {
    transform: translateX(0);
}

@media (min-width: 641px) {
    .nav-scrollable[b-96u1bxb223] {
        /* En desktop el nav vuelve a vivir dentro del flujo normal del
           sidebar, sin el tratamiento de panel deslizante de móvil. */
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: auto;
        max-width: none;
        box-shadow: none;
        transform: none;
        transition: none;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        /* Sin esto, el navegador convierte overflow-x en "auto" automáticamente
           (regla CSS: un eje "visible" junto a otro no-visible se vuelve "auto"),
           recortando la franja de arrastre que sobresale a la derecha. */
        overflow-x: visible;
    }

    .resize-handle[b-96u1bxb223] {
        display: block;
    }

    .sidebar-toggle-desktop[b-96u1bxb223] {
        display: flex;
    }

    .hamburger-toggle[b-96u1bxb223] {
        display: none;
    }

    /* En desktop ".sidebar" sí mide 100vh completo, así que aquí "sticky"
       tiene contenedor de sobra para pegarse; volvemos al comportamiento
       original en vez del "fixed" de ancho completo que usa móvil. */
    .top-row[b-96u1bxb223] {
        position: sticky;
        left: auto;
        right: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3t55xnbqr3],
.components-reconnect-repeated-attempt-visible[b-3t55xnbqr3],
.components-reconnect-failed-visible[b-3t55xnbqr3],
.components-pause-visible[b-3t55xnbqr3],
.components-resume-failed-visible[b-3t55xnbqr3],
.components-rejoining-animation[b-3t55xnbqr3] {
    display: none;
}

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


#components-reconnect-modal[b-3t55xnbqr3] {
    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-3t55xnbqr3 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-3t55xnbqr3 {
    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;
    }
}
