@import '_content/ComunaClick.SharedUI/ComunaClick.SharedUI.e2rl7yo31h.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-d5rts7g85q] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-d5rts7g85q] {
    flex: 1;
}

.sidebar[b-d5rts7g85q] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-d5rts7g85q] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-d5rts7g85q]  a, .top-row[b-d5rts7g85q]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-d5rts7g85q]  a:hover, .top-row[b-d5rts7g85q]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-d5rts7g85q]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-d5rts7g85q] {
        justify-content: space-between;
    }

    .top-row[b-d5rts7g85q]  a, .top-row[b-d5rts7g85q]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-d5rts7g85q] {
        flex-direction: row;
    }

    .sidebar[b-d5rts7g85q] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-d5rts7g85q] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-d5rts7g85q]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-d5rts7g85q], article[b-d5rts7g85q] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* #blazor-error-ui se movió a App.razor y su estilo a wwwroot/app.css: el CSS aislado de este
   layout no podía alcanzarlo (y el aviso sólo existía en las páginas con este layout). */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-jlwfr6q22j] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-jlwfr6q22j] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-jlwfr6q22j] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-jlwfr6q22j] {
    font-size: 1.1rem;
}

.bi[b-jlwfr6q22j] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-jlwfr6q22j] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-jlwfr6q22j] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-jlwfr6q22j] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-jlwfr6q22j] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-jlwfr6q22j] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-jlwfr6q22j] {
        padding-bottom: 1rem;
    }

    .nav-item[b-jlwfr6q22j]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-jlwfr6q22j]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-jlwfr6q22j]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-jlwfr6q22j] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-jlwfr6q22j] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-jlwfr6q22j] {
        display: none;
    }

    .nav-scrollable[b-jlwfr6q22j] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ===== Aviso de reconexión del circuito Blazor =====
   Deliberadamente tolerante a la versión del runtime. Cada versión de blazor.web.js avisa de
   un modo distinto y la app apunta a net8.0 (con rollForward, el runtime que la hospeda puede
   ser mayor), así que la visibilidad no depende de ningún mecanismo único:

     · .NET 8  alterna las clases components-reconnect-{show|hide|failed|rejected}.
     · .NET 9+ agrega -retrying / -paused / -resume-failed y abre el <dialog> con showModal(),
       lo que pone el atributo [open].

   Se contemplan TODOS esos casos. El bug anterior era exactamente esto: el CSS sólo hacía
   visible el diálogo con [open] (y dejaba opacity:0 sin él), así que bajo .NET 8 el aviso
   nunca se veía y la página quedaba muda sin explicación. */

/* Reset de los estilos que el navegador aplica por defecto a <dialog>. */
#components-reconnect-modal[b-92r6oxzsy7] {
    display: none;
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 1.25rem;
    border: 0;
    box-sizing: border-box;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
    color: #1f2937;
}

/* Estados visibles: por clase (cualquier versión) o por [open] (showModal en .NET 9+).
   La ausencia de clase y components-reconnect-hide mantienen el display:none de arriba. */
#components-reconnect-modal[open][b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-show[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-retrying[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-failed[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-rejected[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-paused[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-resume-failed[b-92r6oxzsy7] {
    display: flex;
}

/* components-reconnect-hide gana siempre: es el estado "ya reconectó". */
#components-reconnect-modal.components-reconnect-hide[b-92r6oxzsy7] {
    display: none;
}

/* El dim lo pinta el propio elemento (sirve con y sin showModal), así que el backdrop
   del navegador se deja transparente para no oscurecer dos veces. */
#components-reconnect-modal[b-92r6oxzsy7]::backdrop {
    background-color: transparent;
}

.components-reconnect-container[b-92r6oxzsy7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: auto;
    width: 100%;
    max-width: 20rem;
    box-sizing: border-box;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: components-reconnect-modal-appear-b-92r6oxzsy7 0.35s ease both;
}

/* Cada mensaje se muestra sólo en su estado. */
.components-reconnect-first-attempt-visible[b-92r6oxzsy7],
.components-reconnect-failed-visible[b-92r6oxzsy7],
.components-reconnect-rejected-visible[b-92r6oxzsy7],
.components-rejoining-animation[b-92r6oxzsy7] {
    display: none;
}

/* "show" y "retrying" son el mismo mensaje: reintentando. */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-92r6oxzsy7],
#components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected-visible[b-92r6oxzsy7] {
    display: block;
}

/* Si el runtime abrió el diálogo pero todavía no marcó ninguna clase, igual se muestra
   el mensaje de reintento en vez de una tarjeta vacía. */
#components-reconnect-modal[open]:not(.components-reconnect-failed):not(.components-reconnect-rejected) .components-reconnect-first-attempt-visible[b-92r6oxzsy7],
#components-reconnect-modal[open]:not(.components-reconnect-failed):not(.components-reconnect-rejected) .components-rejoining-animation[b-92r6oxzsy7] {
    display: block;
}

#components-reconnect-modal p[b-92r6oxzsy7] {
    margin: 0;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.4;
}

#components-reconnect-modal button[b-92r6oxzsy7] {
    border: 0;
    background-color: #2d9e4f;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-92r6oxzsy7] {
    background-color: #1f7a3b;
}

@keyframes components-reconnect-modal-appear-b-92r6oxzsy7 {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* Animación de "reintentando": dos aros que se expanden. */
.components-rejoining-animation[b-92r6oxzsy7] {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div[b-92r6oxzsy7] {
    position: absolute;
    border: 3px solid #2d9e4f;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-92r6oxzsy7 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-92r6oxzsy7] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-92r6oxzsy7 {
    0%, 4.9% {
        top: 32px;
        left: 32px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 32px;
        left: 32px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 64px;
        height: 64px;
        opacity: 0;
    }
}
