/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-o7i5x1hbep] {
    display: flex;
    min-height: 100vh;
    background: var(--bg-app);
}

.sidebar-toggle-input[b-o7i5x1hbep] {
    display: none;
}

.sidebar[b-o7i5x1hbep] {
    width: 268px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0f2f4a 0%, #133B5C 60%, #114c63 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header[b-o7i5x1hbep] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand[b-o7i5x1hbep] {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff;
}

.sidebar-title[b-o7i5x1hbep] {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.1;
}

.sidebar-sub[b-o7i5x1hbep] {
    font-size: .72rem;
    color: #99f6e4;
    font-weight: 600;
    margin-top: 2px;
}

.sidebar-close-btn[b-o7i5x1hbep] {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #cbd5e1;
    padding: .25rem .5rem;
}

.sidebar-nav[b-o7i5x1hbep] {
    flex: 1;
    padding: .85rem .75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.nav-group-label[b-o7i5x1hbep] {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #7dd3fc;
    opacity: .75;
    padding: .85rem .75rem .35rem;
}

.sidebar-nav[b-o7i5x1hbep]  .nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .62rem .8rem;
    border-radius: 10px;
    color: #dbeafe;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.sidebar-nav[b-o7i5x1hbep]  .nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-nav[b-o7i5x1hbep]  .nav-item.active {
    background: rgba(43, 144, 166, 0.42);
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #5eead4;
}

.sidebar-nav[b-o7i5x1hbep]  .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer[b-o7i5x1hbep] {
    padding: .9rem .9rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.user-card-mini[b-o7i5x1hbep] {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
}

.user-avatar[b-o7i5x1hbep] {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #2B90A6;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-mini-info[b-o7i5x1hbep] {
    overflow: hidden;
}

.user-mini-name[b-o7i5x1hbep] {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-mini-role[b-o7i5x1hbep] {
    font-size: .72rem;
    color: #99f6e4;
}

.logout-form[b-o7i5x1hbep] {
    margin: 0;
}

.btn-logout[b-o7i5x1hbep] {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-logout:hover[b-o7i5x1hbep] {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(248, 113, 113, 0.6);
}

.main-area[b-o7i5x1hbep] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar[b-o7i5x1hbep] {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-left[b-o7i5x1hbep], .topbar-right[b-o7i5x1hbep] {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.hamburger-btn[b-o7i5x1hbep] {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: .3rem .55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--navy);
}

.topbar-breadcrumb[b-o7i5x1hbep] {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--muted);
}

.topbar-env[b-o7i5x1hbep] {
    background: #eff7fb;
    color: var(--navy);
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 6px;
    border: 1px solid #cfe6f3;
}

.topbar-mode[b-o7i5x1hbep] {
    font-weight: 600;
    color: var(--teal);
}

.role-pill[b-o7i5x1hbep] {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    font-size: .76rem;
    font-weight: 700;
    padding: .24rem .65rem;
    border-radius: 999px;
}

.topbar-user-link[b-o7i5x1hbep] {
    font-size: .84rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.page-content[b-o7i5x1hbep] {
    padding: 1.5rem;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .hamburger-btn[b-o7i5x1hbep] {
        display: inline-flex;
    }

    .sidebar-close-btn[b-o7i5x1hbep] {
        display: inline-block;
    }

    .sidebar[b-o7i5x1hbep] {
        position: fixed;
        top: 0;
        left: -280px;
        bottom: 0;
        z-index: 50;
        transition: left .2s ease;
    }

    .sidebar-toggle-input:checked ~ .sidebar[b-o7i5x1hbep] {
        left: 0;
    }

    .page-content[b-o7i5x1hbep] {
        padding: 1rem;
    }
}
