@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.bundle.scp.css';

/* _content/SasegWeb/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-iewugjvt2g] {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

main[b-iewugjvt2g] {
    flex: 1;
    min-width: 0;  evita que el grid rompa el layout 
    overflow: hidden;
}

article[b-iewugjvt2g] {
    flex: 1;
}

.top-row[b-iewugjvt2g] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-iewugjvt2g]  a, .top-row[b-iewugjvt2g]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-iewugjvt2g]  a:hover, .top-row[b-iewugjvt2g]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-iewugjvt2g]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .top-row[b-iewugjvt2g] {
        justify-content: space-between;
    }

        .top-row[b-iewugjvt2g]  a, .top-row[b-iewugjvt2g]  .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-iewugjvt2g] {
        flex-direction: row;
    }

    .top-row[b-iewugjvt2g] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-iewugjvt2g]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-iewugjvt2g],
    article[b-iewugjvt2g] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-iewugjvt2g] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-iewugjvt2g] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/SasegWeb/Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================
   SIDEBAR
============================ */
.sidebar[b-8ihwytd1ux] {
    width: 250px;
    background: linear-gradient(180deg, rgb(5, 39, 103), #3a0647);
    transition: width .3s ease;
    overflow: hidden;
    position: relative;
}

    /* men� comprimido */
    .sidebar.collapsed[b-8ihwytd1ux] {
        width: 70px;
    }

/* ============================
   BOT�N TOGGLE
============================ */
.menu-toggle[b-8ihwytd1ux] {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.2);
    color: white;
    cursor: pointer;
}

/* ============================
   TOP BAR MENU
============================ */
.top-row[b-8ihwytd1ux] {
    height: 3.5rem;
}

/* ============================
   LINKS DEL MEN�
============================ */
.nav-link[b-8ihwytd1ux] {
    color: #d7d7d7;
    background-color: transparent;
    border-radius: 6px;
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* hover */
.menu-title:hover[b-8ihwytd1ux],
.nav-item > .nav-link:hover[b-8ihwytd1ux] {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* t�tulos */
.menu-title[b-8ihwytd1ux] {
    cursor: default;
}

/* contenedor submenu */
.menu-hover[b-8ihwytd1ux] {
    position: relative;
}

/* submenu oculto */
.submenu[b-8ihwytd1ux] {
    display: none;
    margin-left: 0.5rem;
}

/* mostrar submenu */
.menu-hover:hover > .submenu[b-8ihwytd1ux] {
    display: block;
}

/* submenu links */
.submenu .nav-link[b-8ihwytd1ux] {
    padding-left: 2.5rem;
    width: 100%;
    color: #4da3ff;
}

    /* hover submenu */
    .submenu .nav-link:hover[b-8ihwytd1ux] {
        background-color: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        box-shadow: inset 4px 0 0 #4da3ff;
    }

/* quitar estilos activos */
.nav-link.active[b-8ihwytd1ux],
.nav-link:focus[b-8ihwytd1ux],
.nav-link:active[b-8ihwytd1ux] {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* scrollable */
.nav-scrollable[b-8ihwytd1ux] {
    height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
}

    .nav-scrollable nav[b-8ihwytd1ux] {
        flex: 1;
    }

/* ============================
   COLAPSADO
============================ */

/* ocultar textos */
.sidebar.collapsed .nav-link span[b-8ihwytd1ux],
.sidebar.collapsed .menu-title span[b-8ihwytd1ux],
.sidebar.collapsed .navbar-brand span[b-8ihwytd1ux] {
    display: none;
}

/* centrar elementos */
.sidebar.collapsed .nav-link[b-8ihwytd1ux] {
    justify-content: center;
    padding: 0;
}

/* ocultar submenus */
.sidebar.collapsed .submenu[b-8ihwytd1ux] {
    display: none !important;
}
