/* _content/DocumentosApp/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-pnba30xzml] {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar[b-pnba30xzml] {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #061b4f 0%, #2a0050 100%);
    overflow-x: hidden;
}

main[b-pnba30xzml] {
    flex: 1;
    min-width: 0;
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

.content[b-pnba30xzml] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.top-row[b-pnba30xzml] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-pnba30xzml]  a,
    .top-row[b-pnba30xzml]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-pnba30xzml]  a:hover,
        .top-row[b-pnba30xzml]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-pnba30xzml]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .page[b-pnba30xzml] {
        flex-direction: column;
    }

    .sidebar[b-pnba30xzml] {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        height: auto;
        position: relative;
    }

    main[b-pnba30xzml] {
        max-width: 100%;
    }

    .top-row[b-pnba30xzml] {
        justify-content: space-between;
    }

        .top-row[b-pnba30xzml]  a,
        .top-row[b-pnba30xzml]  .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-pnba30xzml] {
        flex-direction: row;
    }

    .sidebar[b-pnba30xzml] {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        flex: 0 0 260px;
        flex-shrink: 0;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    main[b-pnba30xzml] {
        flex: 1;
        min-width: 0;
        max-width: calc(100vw - 260px);
        overflow-x: hidden;
    }

    .top-row[b-pnba30xzml] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-pnba30xzml]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-pnba30xzml],
    article[b-pnba30xzml] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-pnba30xzml] {
    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-pnba30xzml] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/DocumentosApp/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-lxdt04pvy6] {
    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, 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-lxdt04pvy6] {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row[b-lxdt04pvy6] {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.navbar-brand[b-lxdt04pvy6] {
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
}

.nav-scrollable[b-lxdt04pvy6] {
    display: none;
    width: 100%;
    overflow-x: hidden;
}

.navbar-toggler:checked ~ .nav-scrollable[b-lxdt04pvy6] {
    display: block;
}

.nav[b-lxdt04pvy6] {
    width: 100%;
}

.nav-item[b-lxdt04pvy6] {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

    .nav-item:first-of-type[b-lxdt04pvy6] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-lxdt04pvy6] {
        padding-bottom: 1rem;
    }

    /* Importante: NavLink es un componente, por eso se usa ::deep */
    .nav-item[b-lxdt04pvy6]  .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 6px;
        color: #ffffff;
        background: transparent;
        border: none;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-align: left;
        line-height: normal;
    }

        .nav-item[b-lxdt04pvy6]  .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.14);
            color: #ffffff;
        }

        .nav-item[b-lxdt04pvy6]  .nav-link.active {
            background-color: rgba(255, 255, 255, 0.25);
            color: #ffffff;
        }

.nav-icon[b-lxdt04pvy6] {
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .nav-icon i[b-lxdt04pvy6],
    .nav-icon .bi[b-lxdt04pvy6] {
        margin: 0;
        width: auto;
        height: auto;
        position: static;
        top: auto;
    }

.nav-text[b-lxdt04pvy6] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bot�n de cerrar sesi�n */
.logout-button[b-lxdt04pvy6] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #ffffff;
    background: transparent;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    line-height: normal;
}

    .logout-button:hover[b-lxdt04pvy6] {
        background-color: rgba(255, 255, 255, 0.14);
        color: #ffffff;
    }

    .logout-button:focus[b-lxdt04pvy6] {
        box-shadow: none;
    }

/* Pantallas grandes: el men� siempre visible */
@media (min-width: 641px) {
    .navbar-toggler[b-lxdt04pvy6] {
        display: none;
    }

    .nav-scrollable[b-lxdt04pvy6] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
}
