/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-vycwvjg8i4] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-vycwvjg8i4] {
    flex: 1;
}

.sidebar[b-vycwvjg8i4] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.top-row[b-vycwvjg8i4] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-vycwvjg8i4]  a, .top-row[b-vycwvjg8i4]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-vycwvjg8i4]  a:hover, .top-row[b-vycwvjg8i4]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-vycwvjg8i4]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-vycwvjg8i4] {
        justify-content: space-between;
    }

    .top-row[b-vycwvjg8i4]  a, .top-row[b-vycwvjg8i4]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .top-row[b-vycwvjg8i4] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-vycwvjg8i4]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-vycwvjg8i4], article[b-vycwvjg8i4] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-vycwvjg8i4] {
    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-vycwvjg8i4] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-aup7sp7s2y] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-aup7sp7s2y] {
    font-size: 1.1rem;
}

.navbar-toggler[b-aup7sp7s2y] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.375rem;
    color: #fff;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1200;
}

.navbar-toggler:hover[b-aup7sp7s2y] {
    background-color: rgba(255, 255, 255, 0.22);
}

.navbar-toggler:focus[b-aup7sp7s2y] {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon[b-aup7sp7s2y] {
    display: block !important;
    width: auto;
    height: auto;
    background: transparent !important;
    background-image: none !important;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 700;
    filter: none !important;
    opacity: 1 !important;
}

.bi[b-aup7sp7s2y] {
    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-aup7sp7s2y] {
    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");
}

.nav-item[b-aup7sp7s2y] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-aup7sp7s2y] {
        padding-top: 1rem;
    }

    .nav-item[b-aup7sp7s2y]  .nav-link {
        color: #050000;
        background: grey;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

    .nav-item[b-aup7sp7s2y]  a.active {
        background-color: rgba(53, 50, 50, 0.986);
        color: rgb(77, 76, 76);
    }

    .nav-item[b-aup7sp7s2y]  .nav-link:hover {
        background-color: rgba(19, 2, 2, 0.87);
        color: rgba(26, 4, 4, 0.87);
    }

/* --- CONTROL DEL MENÚ DESPLEGABLE Y FOOTER --- */

/* Fondo oscuro detrás del panel, para cerrar tocando fuera */
.nav-overlay[b-aup7sp7s2y] {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.nav-scrollable[b-aup7sp7s2y] {
    /* Panel anclado a la izquierda, fuera de pantalla por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 18rem;
    max-width: 85vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 220ms ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    /* Al abrir, se despliega de izquierda a derecha (entra desde el borde izquierdo) */
    .nav-scrollable.nav-menu-open[b-aup7sp7s2y] {
        transform: translateX(0);
    }

/* Área de los enlaces */
.nav-items-container[b-aup7sp7s2y] {
    flex: 1;
    overflow-y: auto;
    padding-top: 3.5rem;
}

/* Pie del menú donde reside Cerrar Sesión, siempre al fondo */
.sidebar-footer[b-aup7sp7s2y] {
    margin-top: auto;
    border-top: 1px solid rgba(15, 10, 10, 0.973);
    background-color: rgba(0, 0, 0, 0.801);
}

/* El comportamiento es el mismo en móvil y en escritorio: */
/* panel deslizante de izquierda a derecha, no una barra fija permanente. */
@media (min-width: 641px) {
    .navbar-toggler[b-aup7sp7s2y] {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
