/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-1ddwzf67bx] {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Color por proceso (12/11): cada "proceso-xxx" de abajo redefine estas
       tres variables. Por defecto (y para "proceso-admin"), gris neutro.
         --proceso-fondo  : fondo de toda la pantalla (pastel muy suave)
         --proceso-barra  : barra superior (el mismo tono, un paso más fuerte)
         --proceso-acento : ícono del proceso activo en la barra (tono oscuro
                            del mismo color, con el ícono en blanco) */
    --proceso-fondo: #F3F4F6;
    --proceso-barra: #E2E5E9;
    --proceso-acento: #4B5563;
    background-color: var(--proceso-fondo);
    min-height: 100vh;
}

/* Para cambiar un color alcanza con tocar su línea acá. */
.page.proceso-notificaciones[b-1ddwzf67bx] { --proceso-fondo: #FFF8E6; --proceso-barra: #FBEBC0; --proceso-acento: #8A5A00; } /* amarillo manteca */
.page.proceso-locales[b-1ddwzf67bx]        { --proceso-fondo: #EAF4FD; --proceso-barra: #CFE5F8; --proceso-acento: #1B5E96; } /* celeste */
.page.proceso-auditorias[b-1ddwzf67bx]     { --proceso-fondo: #EAF6EC; --proceso-barra: #CDE8D2; --proceso-acento: #2E6B3A; } /* verde menta */
.page.proceso-operaciones[b-1ddwzf67bx]    { --proceso-fondo: #FFF0E8; --proceso-barra: #FADCCB; --proceso-acento: #9A4A22; } /* durazno */
.page.proceso-reuniones[b-1ddwzf67bx]      { --proceso-fondo: #F3EEFB; --proceso-barra: #E0D5F5; --proceso-acento: #5B3F9E; } /* lavanda */
.page.proceso-procedimientos[b-1ddwzf67bx] { --proceso-fondo: #E6F6F4; --proceso-barra: #C6E9E4; --proceso-acento: #1F6B63; } /* aguamarina */
.page.proceso-mantenimiento[b-1ddwzf67bx]  { --proceso-fondo: #FDEEF2; --proceso-barra: #F7D3DD; --proceso-acento: #96354F; } /* rosa */

main[b-1ddwzf67bx] {
    flex: 1;
}

.top-row[b-1ddwzf67bx] {
    background-color: var(--proceso-barra);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .top-row[b-1ddwzf67bx]  a, .top-row[b-1ddwzf67bx]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-1ddwzf67bx]  a:hover, .top-row[b-1ddwzf67bx]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-1ddwzf67bx]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* Checkbox oculto usado como interruptor 100% CSS para mostrar/ocultar el
   menú (ver MainLayout.razor) -- no depende de Blazor/@onclick porque este
   layout se renderiza de forma estática. Colapsado por defecto en
   cualquier tamaño de pantalla; se muestra cuando el checkbox está
   "checked" (el <label for="menu-toggle"> lo tildea al tocarlo). */
.menu-toggle-checkbox[b-1ddwzf67bx] {
    display: none;
}

/* Botón/link/ícono circular usado en la barra superior: menú, inicio y
   cerrar sesión comparten este mismo estilo para verse consistentes. Se
   aplica a <label>, <a> y <button> por igual -- por eso se resetean el
   border, background, padding y color heredados del <button>. */
.top-bar-icon-btn[b-1ddwzf67bx] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

    .top-bar-icon-btn:hover[b-1ddwzf67bx] {
        background-color: rgba(0, 0, 0, 0.06);
    }

    /* Ícono del proceso en el que está parado el usuario. */
    .top-bar-icon-btn.activo[b-1ddwzf67bx],
    .top-bar-icon-btn.activo:hover[b-1ddwzf67bx] {
        background-color: var(--proceso-acento);
        color: #fff;
    }

/* Ícono de Notificaciones cuando hay alguna vigente sin leer (ver
   MainLayout.razor, _hayNotificacionesNuevas) -- parpadeo simple de opacidad,
   no depende de JS ni de un circuito interactivo (este layout es estático). */
@keyframes parpadeo-notificacion-b-1ddwzf67bx {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.top-bar-icon-btn.parpadea[b-1ddwzf67bx] {
    color: var(--mud-palette-error, #d32f2f);
    animation: parpadeo-notificacion-b-1ddwzf67bx 1.1s ease-in-out infinite;
}

/* Parado en Notificaciones y con avisos vigentes: sigue parpadeando, pero
   en blanco (el rojo no se lee sobre el fondo oscuro del ícono activo). */
.top-bar-icon-btn.activo.parpadea[b-1ddwzf67bx] {
    color: #fff;
}

.sidebar[b-1ddwzf67bx] {
    display: none;
}

@media (max-width: 640.98px) {
    .top-row[b-1ddwzf67bx] {
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 30;
        /* Celular (12/11): con los 9 íconos la barra no entraba en un
           teléfono angosto (360 px) con el padding de escritorio. Se achica
           el padding lateral y la separación; si aun así no entran (más
           íconos a futuro), la barra se desliza de costado en vez de
           cortarse. */
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .top-row[b-1ddwzf67bx]::-webkit-scrollbar {
            display: none;
        }

    .top-bar-icon-btn[b-1ddwzf67bx] {
        flex: 0 0 auto;
        width: 2.375rem;
        height: 2.375rem;
    }

    /* Menos margen lateral para el contenido: en un celular cada píxel de
       ancho cuenta. */
    article.content[b-1ddwzf67bx] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

        .top-row[b-1ddwzf67bx]  a, .top-row[b-1ddwzf67bx]  .btn-link {
            margin-left: 0;
        }

    /* Fuera del flujo normal: así el menú NUNCA empuja el contenido hacia
       abajo (antes había que scrollear pasando todo el menú para llegar al
       contenido), y la topbar con el botón de colapsar queda siempre
       visible arriba de todo, no debajo del menú. Cuando está abierto,
       flota como panel encima del contenido en vez de ocupar su lugar. */
    .menu-toggle-checkbox:checked ~ .sidebar[b-1ddwzf67bx] {
        display: block;
        position: fixed;
        top: 3.5rem;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        overflow-y: auto;
        background-color: var(--mud-palette-background, #fff);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

@media (min-width: 641px) {
    .page[b-1ddwzf67bx] {
        flex-direction: row;
    }

    .menu-toggle-checkbox:checked ~ .sidebar[b-1ddwzf67bx] {
        display: block;
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
    }

    .top-row[b-1ddwzf67bx] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-1ddwzf67bx]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-1ddwzf67bx], article[b-1ddwzf67bx] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-1ddwzf67bx] {
    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-1ddwzf67bx] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Al imprimir no se pinta el fondo del proceso. */
@media print {
    .page[b-1ddwzf67bx] {
        background-color: transparent;
        min-height: 0;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-lwkd6mcf2p],
.components-reconnect-repeated-attempt-visible[b-lwkd6mcf2p],
.components-reconnect-failed-visible[b-lwkd6mcf2p],
.components-pause-visible[b-lwkd6mcf2p],
.components-resume-failed-visible[b-lwkd6mcf2p],
.components-rejoining-animation[b-lwkd6mcf2p] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-retrying[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-failed[b-lwkd6mcf2p],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-lwkd6mcf2p] {
    display: block;
}


#components-reconnect-modal[b-lwkd6mcf2p] {
    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-lwkd6mcf2p 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-lwkd6mcf2p 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-lwkd6mcf2p 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-lwkd6mcf2p]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-lwkd6mcf2p 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-lwkd6mcf2p {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-lwkd6mcf2p {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-lwkd6mcf2p {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-lwkd6mcf2p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-lwkd6mcf2p] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-lwkd6mcf2p] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-lwkd6mcf2p] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-lwkd6mcf2p] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-lwkd6mcf2p] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-lwkd6mcf2p] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-lwkd6mcf2p 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-lwkd6mcf2p] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-lwkd6mcf2p {
    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;
    }
}
