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

main[b-yawv0xumby] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* ── Fondo verde unificado con curvas ovaladas estilo Vista ── */
.sidebar[b-yawv0xumby], .main-area[b-yawv0xumby] {
    background-color: #1e3a2f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Cpath d='M 0 0 Q 300 50 500 200' fill='none' stroke='rgba(255,255,255,0.14)' stroke-width='0.8'/%3E%3Cpath d='M 0 80 Q 280 120 500 280' fill='none' stroke='rgba(255,255,255,0.11)' stroke-width='0.7'/%3E%3Cpath d='M 0 180 Q 250 200 500 360' fill='none' stroke='rgba(255,255,255,0.09)' stroke-width='0.6'/%3E%3Cpath d='M 0 300 Q 200 320 500 450' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3Cpath d='M 60 0 Q 320 100 500 260' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='0.7'/%3E%3Cpath d='M 150 0 Q 380 150 500 320' fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='0.6'/%3E%3Cpath d='M 0 420 Q 200 440 500 500' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.5'/%3E%3Cpath d='M 300 0 Q 450 200 500 380' fill='none' stroke='rgba(255,255,255,0.09)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.main-area[b-yawv0xumby] {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100vh;
}

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

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

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

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

@media (max-width: 640.98px) {
    .top-row[b-yawv0xumby] {
    justify-content: flex-end;
    }

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

@media (min-width: 641px) {
    .page[b-yawv0xumby] {
        flex-direction: row;
    }

    .sidebar[b-yawv0xumby] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-yawv0xumby] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

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

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

/* ── Top bar — transparente, hereda el fondo ───────────── */
.topbar[b-yawv0xumby] {
    background: transparent;
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    justify-content: space-between;
    flex-shrink: 0;
}

.topbar-page[b-yawv0xumby] {
    font-weight: 600;
    font-size: .9rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: .01em;
}

.topbar-sesion[b-yawv0xumby] {
    font-size: .85rem;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: .01em;
}

/* ── Workspace — glass card flotante que sobra por izq ── */
.workspace[b-yawv0xumby] {
    flex: 1;
    min-height: 0;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    margin: -4px -18px 18px -18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar-dot[b-yawv0xumby] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-activo[b-yawv0xumby] {
    background: #22c55e;
    box-shadow: 0 0 0 2px #bbf7d0;
    animation: pulse-dot-b-yawv0xumby 2s infinite;
}

.dot-idle[b-yawv0xumby] {
    background: #94a3b8;
}

@keyframes pulse-dot-b-yawv0xumby {
    0%, 100% { box-shadow: 0 0 0 2px #bbf7d0; }
    50%       { box-shadow: 0 0 0 4px #86efac; }
}

#blazor-error-ui[b-yawv0xumby] {
    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-yawv0xumby] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-g9q9huopss] {
    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-g9q9huopss] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-g9q9huopss] {
    height: 3.5rem;
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.bi[b-g9q9huopss] {
    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-g9q9huopss] {
    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-g9q9huopss] {
    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-g9q9huopss] {
    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-g9q9huopss] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

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

    .nav-item:last-of-type[b-g9q9huopss] {
        padding-bottom: 1rem;
    }

    .nav-item[b-g9q9huopss]  .nav-link {
        color: rgba(255,255,255,0.82);
        background: none;
        border: none;
        border-radius: 8px;
        height: 2.8rem;
        display: flex;
        align-items: center;
        line-height: 2.8rem;
        width: 100%;
        font-size: .88rem;
        font-weight: 500;
        letter-spacing: .01em;
        transition: background .15s, color .15s;
    }

.nav-item[b-g9q9huopss]  a.active {
    background-color: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #a8edca;
}

.nav-item[b-g9q9huopss]  .nav-link:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-scrollable[b-g9q9huopss] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-g9q9huopss] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-g9q9huopss] {
        display: none;
    }

    .nav-scrollable[b-g9q9huopss] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
