@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';
@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.25o87uqmvr.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-jxa9kp056n] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-jxa9kp056n] {
    flex: 1;
}

.sidebar[b-jxa9kp056n] {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 2px 0 15px rgba(0,0,0,0.15);
}

.top-row[b-jxa9kp056n] {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    justify-content: space-between;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

    .top-row[b-jxa9kp056n]  a, .top-row[b-jxa9kp056n]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-jxa9kp056n]  a:hover, .top-row[b-jxa9kp056n]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-jxa9kp056n]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.content[b-jxa9kp056n] {
    background-color: #f1f5f9;
}

@media (max-width: 640.98px) {
    .top-row[b-jxa9kp056n] {
        justify-content: space-between;
    }

    .top-row[b-jxa9kp056n]  a, .top-row[b-jxa9kp056n]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-jxa9kp056n] {
        flex-direction: row;
    }

    .sidebar[b-jxa9kp056n] {
        width: 260px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-jxa9kp056n] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-jxa9kp056n]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-jxa9kp056n], article[b-jxa9kp056n] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-jxa9kp056n] {
    color-scheme: light only;
    background: #fffbeb;
    border-top: 2px solid #d97706;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.875rem;
}

    #blazor-error-ui .dismiss[b-jxa9kp056n] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Brand ── */
.sidebar-brand[b-2ue9gbb409] {
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-link[b-2ue9gbb409] { display: flex; align-items: center; gap: 0.5rem; text-decoration: none !important; color: #fff !important; }
.brand-icon[b-2ue9gbb409] { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: linear-gradient(135deg, #059669, #10b981); border-radius: 8px; color: #fff; font-size: 0.875rem; flex-shrink: 0; }
.brand-text[b-2ue9gbb409] { font-size: 0.9rem; font-weight: 700; color: #f1f5f9; white-space: nowrap; }
.brand-accent[b-2ue9gbb409] { font-weight: 400; color: #94a3b8; }

/* ── Sidebar Scroll ── */
.sidebar-nav[b-2ue9gbb409] {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem 0 2rem 0;
}
.sidebar-nav[b-2ue9gbb409]::-webkit-scrollbar { width: 3px; }
.sidebar-nav[b-2ue9gbb409]::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav[b-2ue9gbb409]::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── Details/Summary Group ── */
.nav-group[b-2ue9gbb409] {
    margin: 0;
    border: none;
}
.nav-group summary[b-2ue9gbb409] { list-style: none; }
.nav-group summary[b-2ue9gbb409]::-webkit-details-marker { display: none; }

.nav-group-toggle[b-2ue9gbb409] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.nav-group-toggle:hover[b-2ue9gbb409] { background: rgba(255,255,255,0.05); color: #f1f5f9; }

/* Chevron rotation */
.nav-group-toggle .toggle-icon[b-2ue9gbb409] {
    font-size: 0.6rem;
    color: #64748b;
    transition: transform 0.2s ease;
}
.nav-group[open] .nav-group-toggle .toggle-icon[b-2ue9gbb409] {
    transform: rotate(90deg);
}

/* ── Sub Items ── */
.nav-group-items[b-2ue9gbb409] {
    padding: 0 0 0.25rem 0;
    margin-left: 1.25rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

/* ── Nav Items ── */
.nav-item[b-2ue9gbb409] { font-size: 0.8125rem; padding: 1px 0.375rem 1px 0.375rem; }

.nav-item[b-2ue9gbb409]  .nav-link {
    color: #94a3b8;
    background: none;
    border: none;
    border-radius: 6px;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    width: 100%;
    transition: all 0.12s ease;
    font-weight: 400;
    font-size: 0.8125rem;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Top-level Home item */
.nav-top[b-2ue9gbb409]  .nav-link {
    padding: 0.375rem 1rem;
    font-weight: 500;
    color: #cbd5e1;
    min-height: 2.25rem;
    font-size: 0.875rem;
}

/* Active state */
.nav-item[b-2ue9gbb409]  a.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-weight: 500;
}
.nav-top[b-2ue9gbb409]  a.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Hover */
.nav-item[b-2ue9gbb409]  .nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

/* Icons */
.bi[b-2ue9gbb409] { display: inline-block; position: relative; width: 1rem; height: 1rem; top: -1px; }
.nav-item[b-2ue9gbb409]  a.active .bi { color: #34d399; }

@media (max-width: 767.98px) {
    .sidebar-brand[b-2ue9gbb409] {
        padding: 0 0.875rem;
    }

    .brand-text[b-2ue9gbb409] {
        font-size: 0.84rem;
    }

    .nav-group-toggle[b-2ue9gbb409] {
        min-height: 2.5rem;
    }

    .nav-item[b-2ue9gbb409] {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .nav-item[b-2ue9gbb409]  .nav-link {
        min-height: 2.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
/* /Components/Pages/Inventory/ItemForm.razor.rz.scp.css */
/* Later siblings + sticky footer paint on top unless this section stacks above (overflow fix in app.css .card.gl-accounts-card). */
.gl-accounts-card[b-d9l2vrppwx] {
    position: relative;
    z-index: 200;
    isolation: isolate;
}

.gl-accounts-card .card-body[b-d9l2vrppwx] {
    overflow: visible;
}

.gl-account-dropdown[b-d9l2vrppwx] {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    z-index: 1090;
    max-height: 220px;
    overflow-y: auto;
    width: 100%;
}
