/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-j11e8l440z] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-j11e8l440z] {
    flex: 1;
}

.sidebar[b-j11e8l440z] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-j11e8l440z] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-j11e8l440z]  a, .top-row[b-j11e8l440z]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-j11e8l440z]  a:hover, .top-row[b-j11e8l440z]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-j11e8l440z]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-j11e8l440z] {
        justify-content: space-between;
    }

    .top-row[b-j11e8l440z]  a, .top-row[b-j11e8l440z]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-j11e8l440z] {
        flex-direction: row;
    }

    .sidebar[b-j11e8l440z] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-j11e8l440z] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-j11e8l440z]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-j11e8l440z], article[b-j11e8l440z] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-qjzt7bbwq5] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-qjzt7bbwq5] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-qjzt7bbwq5] {
    font-size: 1.1rem;
}

.bi[b-qjzt7bbwq5] {
    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-qjzt7bbwq5] {
    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-qjzt7bbwq5] {
    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-qjzt7bbwq5] {
    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-qjzt7bbwq5] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-qjzt7bbwq5] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-qjzt7bbwq5] {
        padding-bottom: 1rem;
    }

    .nav-item[b-qjzt7bbwq5]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-qjzt7bbwq5]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-qjzt7bbwq5]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-qjzt7bbwq5] {
        display: none;
    }

    .collapse[b-qjzt7bbwq5] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-qjzt7bbwq5] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Shared/MainLayout.razor.rz.scp.css */
/* ── Layout root ─────────────────────────────────────────────── */
.layout-root[b-zua19l48ms] {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar[b-zua19l48ms] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #1b2838;
    color: #c8d6e5;
    display: flex;
    flex-direction: column;
    z-index: 110;
    transition: width .2s ease;
    overflow: hidden;
}

.sidebar.collapsed[b-zua19l48ms] {
    width: var(--sidebar-collapsed);
}

.sidebar-brand[b-zua19l48ms] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
    min-height: 52px;
}

.sidebar-brand i[b-zua19l48ms] {
    font-size: 22px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.sidebar.collapsed .brand-text[b-zua19l48ms] {
    display: none;
}

.sidebar-nav[b-zua19l48ms] {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-item[b-zua19l48ms] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #a0b3c9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all .15s;
    border-left: 3px solid transparent;
}

.sidebar-item i[b-zua19l48ms] {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.sidebar-item:hover[b-zua19l48ms] {
    background: rgba(255,255,255,.06);
    color: #e0e8f0;
}

.sidebar-item.active[b-zua19l48ms] {
    background: rgba(16,124,16,.15);
    color: #4caf50;
    border-left-color: #4caf50;
}

.sidebar.collapsed .sidebar-label[b-zua19l48ms] {
    display: none;
}

.sidebar-toggle[b-zua19l48ms] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #a0b3c9;
    cursor: pointer;
    font-size: 16px;
    transition: color .15s;
}

.sidebar-toggle:hover[b-zua19l48ms] {
    color: #fff;
}

/* ── Main area ───────────────────────────────────────────────── */
.main-area[b-zua19l48ms] {
    flex: 1;
    min-width: 0;               /* prevent flex child overflow */
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: margin-left .2s ease;
    /* no min-height:100vh — let layout-root handle it */
}

.main-area.sidebar-collapsed[b-zua19l48ms] {
    margin-left: var(--sidebar-collapsed);
}

/* Override fixed header from app.css — inside sidebar layout it's static */
.main-area .app-header[b-zua19l48ms] {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex-shrink: 0;
}

/* ── Mobile sidebar toggle (hidden on desktop) ───────────────── */
.sidebar-mobile-toggle[b-zua19l48ms] {
    display: none;
    background: transparent;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

/* ── Search overlay ──────────────────────────────────────────── */
.search-overlay[b-zua19l48ms] {
    position: fixed;
    top: 52px;
    left: var(--sidebar-width);
    right: 0;
    background: var(--neutral-100);
    padding: 8px 16px;
    z-index: 99;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--neutral-70);
    transition: left .2s ease;
}

.main-area.sidebar-collapsed .search-overlay[b-zua19l48ms] {
    left: var(--sidebar-collapsed);
}

/* ── Bottom nav (mobile only) ────────────────────────────────── */
.bottom-nav[b-zua19l48ms] {
    display: none;
}

/* ── User menu ───────────────────────────────────────────────── */
.user-menu-dropdown[b-zua19l48ms] {
    position: fixed;
    top: 52px;
    right: 8px;
    background: var(--neutral-100);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-70);
    z-index: 150;
    min-width: 180px;
    padding: 8px 0;
}

.user-menu-header[b-zua19l48ms] {
    padding: 8px 16px;
    border-bottom: 1px solid var(--neutral-70);
    font-size: 12px;
    color: var(--neutral-40);
}

.user-menu-item[b-zua19l48ms] {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--neutral-20);
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-family);
}

.user-menu-item i[b-zua19l48ms] {
    width: 20px;
}

.user-menu-item:hover[b-zua19l48ms] {
    background: var(--neutral-80);
}

.user-menu-logout[b-zua19l48ms] {
    color: var(--danger);
}

.user-menu-backdrop[b-zua19l48ms] {
    position: fixed;
    inset: 0;
    z-index: 149;
}

/* ── Main content padding ────────────────────────────────────── */
.main-content[b-zua19l48ms] {
    flex: 1;
    padding-bottom: 0;
    min-width: 0;
    overflow-x: hidden;
}

/* ── Responsive: mobile (< 768px) ────────────────────────────── */
@media (max-width: 767.98px) {
    .main-content[b-zua19l48ms] {
        padding-bottom: var(--nav-height);
    }
    .sidebar[b-zua19l48ms] {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        transition: transform .25s ease;
    }

    .sidebar.collapsed[b-zua19l48ms] {
        transform: translateX(0);
        width: var(--sidebar-width);
    }

    .sidebar.collapsed .brand-text[b-zua19l48ms],
    .sidebar.collapsed .sidebar-label[b-zua19l48ms] {
        display: inline;
    }

    .sidebar-toggle[b-zua19l48ms] {
        display: none;
    }

    .sidebar-mobile-toggle[b-zua19l48ms] {
        display: flex;
    }

    .main-area[b-zua19l48ms] {
        margin-left: 0;
    }

    .main-area.sidebar-collapsed[b-zua19l48ms] {
        margin-left: 0;
    }

    .search-overlay[b-zua19l48ms] {
        left: 0;
    }

    .main-area.sidebar-collapsed .search-overlay[b-zua19l48ms] {
        left: 0;
    }

    .bottom-nav[b-zua19l48ms] {
        display: flex;
    }
}

/* ── Responsive: desktop (>= 768px) ───────────────────────────── */
@media (min-width: 768px) {
    .sidebar.collapsed ~ .main-area .sidebar-mobile-toggle[b-zua19l48ms] {
        display: none;
    }

    .sidebar:not(.collapsed) .sidebar-mobile-toggle[b-zua19l48ms] {
        display: none;
    }

    .bottom-nav[b-zua19l48ms] {
        display: none;
    }

    .main-content[b-zua19l48ms] {
        padding: var(--space-xl) var(--space-xxl);
        max-width: 100%;
    }

    .kpi-grid[b-zua19l48ms] {
        grid-template-columns: repeat(4, 1fr);
    }
}
