/* _content/HrExpense.Web/Pages/Dashboard.razor.rz.scp.css */
/* ==========================================================================
   Dashboard scoped styles
   ========================================================================== */

/* ── Year select wrapper (icon + select) ── */
.year-select-wrapper[b-0mejhfxwld] {
    position: relative;
    display: flex;
    align-items: center;
}

.year-select-icon[b-0mejhfxwld] {
    position: absolute;
    left: 0.6rem;
    color: var(--hr-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.year-select[b-0mejhfxwld] {
    padding-left: 2.1rem !important;
    padding-right: 2rem !important;
    min-width: 120px;
}

/* ── KPI grid: 1 col xs → 2 col sm → 3 col md → 4 col lg ── */
.kpi-grid[b-0mejhfxwld] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Đảm bảo nội dung card không tràn ra ngoài cell grid */
.kpi-grid > *[b-0mejhfxwld] {
    min-width: 0;
}

/* 320px – 374px (màn nhỏ nhất): giảm gap để bớt chật */
@media (max-width: 374.98px) {
    .kpi-grid[b-0mejhfxwld] {
        gap: 0.75rem;
    }
}

/* ≥ 375px: bắt đầu 2 cột — 375px đủ rộng cho 2 KPI card cạnh nhau */
@media (min-width: 375px) {
    .kpi-grid[b-0mejhfxwld] { grid-template-columns: 1fr 1fr; }
}

/* Tablet / landscape phone: 3 cột để tránh 2 cột quá rộng */
@media (min-width: 768px) and (max-width: 991.98px) {
    .kpi-grid[b-0mejhfxwld] { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .kpi-grid[b-0mejhfxwld] { grid-template-columns: repeat(4, 1fr); }
}

/* ── KPI card: khi màn nhỏ, thu gọn padding + font-size ── */
@media (max-width: 575.98px) {
    .kpi-card[b-0mejhfxwld] {
        padding: 1rem 0.875rem 1rem 0.75rem;
    }

    /* kpi-value dùng clamp để không bị cắt trên card hẹp */
    .kpi-value[b-0mejhfxwld] {
        font-size: clamp(1.15rem, 4.5vw, 1.65rem);
    }

    .kpi-card-icon[b-0mejhfxwld] {
        width: 36px;
        height: 36px;
    }
}

/* ── Chart card header extras ── */
.chart-card-header-icon[b-0mejhfxwld] {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chart-subtitle[b-0mejhfxwld] {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--hr-text-muted);
    margin-left: 0.25rem;
}

/* ── Percentage bar in table ── */
.pct-bar-track[b-0mejhfxwld] {
    width: 70px;
    height: 5px;
    border-radius: 99px;
    background: var(--hr-border);
    flex-shrink: 0;
    overflow: hidden;
}

.pct-bar-fill[b-0mejhfxwld] {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--hr-accent) 0%, #7c3aed 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pct-label[b-0mejhfxwld] {
    font-size: 0.75rem;
    color: var(--hr-text-muted);
    min-width: 38px;
    text-align: right;
}

/* ── Loading state ── */
.loading-state[b-0mejhfxwld] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--hr-text-muted);
    padding: 3rem 0;
    justify-content: center;
    font-size: 0.875rem;
}

.loading-spinner[b-0mejhfxwld] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--hr-border);
    border-top-color: var(--hr-accent);
    border-radius: 50%;
    animation: spin-b-0mejhfxwld 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin-b-0mejhfxwld {
    to { transform: rotate(360deg); }
}

/* ── Empty state ── */
.empty-state[b-0mejhfxwld] {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--hr-text-muted);
}

.empty-state-icon[b-0mejhfxwld] {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.empty-state-title[b-0mejhfxwld] {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--hr-text-secondary);
    margin-bottom: 1rem;
}

/* ── fw-500 helper ── */
.fw-500[b-0mejhfxwld] { font-weight: 500; }

/* ── Responsive tweaks ── */
@media (max-width: 575.98px) {
    .page-header-actions[b-0mejhfxwld] {
        width: 100%;
        flex-wrap: wrap;
    }
    [b-0mejhfxwld] .e-chart-container {
        min-height: 220px !important;
    }
}

@media (max-width: 767.98px) {
    .page-header-actions[b-0mejhfxwld] {
        width: 100%;
        justify-content: flex-start;
    }
}
/* _content/HrExpense.Web/Pages/Invoices/Detail.razor.rz.scp.css */
/* ==========================================================================
   Invoice Detail scoped styles
   ========================================================================== */

/* ---------- Edit form card ---------- */
@media (max-width: 767.98px) {
    /* Bỏ max-width cứng 640px — full width trên mobile */
    [b-cjy4k1xnhm] .card[style*="max-width: 640px"],
    [b-cjy4k1xnhm] .card[style*="max-width:640px"] {
        max-width: 100% !important;
    }

    /* Compact padding */
    [b-cjy4k1xnhm] .card.p-4 {
        padding: 1rem !important;
    }

    /* dl.row trên mobile: label chiếm 100% không split 2 cột */
    [b-cjy4k1xnhm] dl.row dt,
    [b-cjy4k1xnhm] dl.row dd {
        float: none;
        width: 100%;
        padding: 0;
    }

    [b-cjy4k1xnhm] dl.row dt {
        font-weight: 600;
        margin-top: 0.5rem;
        margin-bottom: 0.1rem;
        color: var(--hr-text-secondary);
    }

    [b-cjy4k1xnhm] dl.row dd {
        margin-bottom: 0;
        padding-left: 0;
    }

    /* Action buttons wrap */
    .d-flex.gap-2[b-cjy4k1xnhm] {
        flex-wrap: wrap;
    }
}
/* _content/HrExpense.Web/Pages/Invoices/List.razor.rz.scp.css */
/* ==========================================================================
   Invoice List scoped styles
   ========================================================================== */

/* ── Search input with icon ── */
.search-input-wrapper[b-rh3snq0dux] {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon[b-rh3snq0dux] {
    position: absolute;
    left: 0.6rem;
    color: var(--hr-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.search-input[b-rh3snq0dux] {
    padding-left: 2.1rem !important;
}

.search-input-wrapper:focus-within .search-input-icon[b-rh3snq0dux] {
    color: var(--hr-accent);
}

/* ── Filter active dot indicator ── */
.filter-active-dot[b-rh3snq0dux] {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hr-accent);
    margin-left: auto;
    flex-shrink: 0;
    animation: pulseDot-b-rh3snq0dux 2s ease infinite;
}

@keyframes pulseDot-b-rh3snq0dux {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.8); }
}

/* ── Grid summary bar ── */
.grid-summary[b-rh3snq0dux] {
    font-size: 0.8rem;
    color: var(--hr-text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.grid-summary-sep[b-rh3snq0dux] {
    color: var(--hr-text-muted);
}

.grid-summary-filter[b-rh3snq0dux] {
    color: var(--hr-accent);
    font-weight: 500;
}

.grid-summary-total[b-rh3snq0dux] {
    color: var(--hr-success);
}

/* ── Month badge ── */
.month-badge[b-rh3snq0dux] {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--hr-text-secondary);
    background: var(--hr-bg-surface-alt);
    border: 1px solid var(--hr-border);
    border-radius: 6px;
    padding: 0.15em 0.5em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ── Provider name ── */
.provider-name[b-rh3snq0dux] {
    font-weight: 500;
    color: var(--hr-text-primary);
    font-size: 0.83rem;
}

/* ── Amount ── */
.amount-value[b-rh3snq0dux] {
    font-weight: 600;
    color: var(--hr-success);
    font-variant-numeric: tabular-nums;
    font-size: 0.83rem;
}

/* ── Monospace for invoice numbers ── */
.font-mono[b-rh3snq0dux] {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

/* ── Action buttons group ── */
.action-buttons[b-rh3snq0dux] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.action-btn[b-rh3snq0dux] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                transform 0.1s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.action-btn:hover[b-rh3snq0dux] {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    text-decoration: none;
}

.action-btn-view[b-rh3snq0dux] {
    color: var(--hr-accent);
    background: var(--hr-accent-light);
    border-color: color-mix(in srgb, var(--hr-accent) 20%, transparent);
}

.action-btn-view:hover[b-rh3snq0dux] {
    background: color-mix(in srgb, var(--hr-accent) 15%, transparent);
    color: var(--hr-accent);
}

.action-btn-edit[b-rh3snq0dux] {
    color: var(--hr-warning);
    background: var(--hr-warning-bg);
    border-color: color-mix(in srgb, var(--hr-warning) 20%, transparent);
}

.action-btn-edit:hover[b-rh3snq0dux] {
    background: color-mix(in srgb, var(--hr-warning) 15%, transparent);
    color: var(--hr-warning);
}

.action-btn-download[b-rh3snq0dux] {
    color: var(--hr-success);
    background: var(--hr-success-bg);
    border-color: color-mix(in srgb, var(--hr-success) 20%, transparent);
}

.action-btn-download:hover[b-rh3snq0dux] {
    background: color-mix(in srgb, var(--hr-success) 15%, transparent);
    color: var(--hr-success);
}

/* ── Invoice grid overrides ── */
[b-rh3snq0dux] .invoice-grid {
    overflow-x: auto !important;
}

[b-rh3snq0dux] .invoice-grid .e-gridcontent {
    overflow-x: auto !important;
}

/* ── Loading + empty state (reuse dashboard pattern) ── */
.loading-state[b-rh3snq0dux] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--hr-text-muted);
    padding: 3rem 0;
    justify-content: center;
    font-size: 0.875rem;
}

.loading-spinner[b-rh3snq0dux] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--hr-border);
    border-top-color: var(--hr-accent);
    border-radius: 50%;
    animation: spin-b-rh3snq0dux 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin-b-rh3snq0dux { to { transform: rotate(360deg); } }

.empty-state[b-rh3snq0dux] {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state-icon[b-rh3snq0dux] {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.empty-state-title[b-rh3snq0dux] {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--hr-text-secondary);
    margin-bottom: 1rem;
}

/* ── Alert styling ── */
.alert[b-rh3snq0dux] {
    display: flex;
    align-items: center;
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
    [b-rh3snq0dux] .invoice-grid .e-rowcell,
    [b-rh3snq0dux] .invoice-grid .e-headercell {
        padding: 0.45rem 0.6rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    [b-rh3snq0dux] .invoice-grid .e-pager {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .page-header-actions[b-rh3snq0dux] {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── Grid empty state (filter returns 0 rows) ── */
.grid-empty-state[b-rh3snq0dux] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: var(--hr-text-muted);
}

.grid-empty-icon[b-rh3snq0dux] {
    margin-bottom: 1.25rem;
    color: var(--hr-text-muted);
    opacity: 0.6;
}

.grid-empty-title[b-rh3snq0dux] {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hr-text-secondary);
    margin: 0 0 0.35rem;
}

.grid-empty-sub[b-rh3snq0dux] {
    font-size: 0.82rem;
    color: var(--hr-text-muted);
    margin: 0 0 0.75rem;
}

/* ── grid-summary-filter ── */
.grid-summary-filter[b-rh3snq0dux] {
    color: var(--hr-accent);
    font-weight: 500;
}
/* _content/HrExpense.Web/Pages/Invoices/Upload.razor.rz.scp.css */
/* ==========================================================================
   Upload scoped styles
   ========================================================================== */

/* ---------- Bước 1: file picker card ---------- */
[b-xgts34mf6q] .card[style*="max-width:520px"],
[b-xgts34mf6q] .card[style*="max-width: 520px"] {
    max-width: 520px;
}

/* ---------- Bước 2: info/form card ---------- */
[b-xgts34mf6q] .card[style*="max-width:620px"],
[b-xgts34mf6q] .card[style*="max-width: 620px"] {
    max-width: 620px;
}

@media (max-width: 767.98px) {
    /* Trên mobile: bỏ max-width cứng, dùng 100% */
    [b-xgts34mf6q] .card[style*="max-width:520px"],
    [b-xgts34mf6q] .card[style*="max-width: 520px"],
    [b-xgts34mf6q] .card[style*="max-width:620px"],
    [b-xgts34mf6q] .card[style*="max-width: 620px"] {
        max-width: 100% !important;
    }

    /* Compact padding trên mobile */
    [b-xgts34mf6q] .card.p-4 {
        padding: 1rem !important;
    }

    /* d-flex gap-2 buttons — stack trên xs */
    [b-xgts34mf6q] .d-flex.gap-2:has(button, a) {
        flex-wrap: wrap;
    }
}
/* _content/HrExpense.Web/Pages/Login.razor.rz.scp.css */
/* ==========================================================================
   Login page scoped styles
   Các class global (login-box, login-brand…) đã khai báo trong site.css.
   File này chứa các style chi tiết cần thêm.
   ========================================================================== */

/* ── Override form-label size for login page ── */
.login-box .form-label[b-2g5leuezif] {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── Input with icon prefix ── */
.login-input-wrapper[b-2g5leuezif] {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon[b-2g5leuezif] {
    position: absolute;
    left: 0.75rem;
    color: var(--hr-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.login-input[b-2g5leuezif] {
    padding-left: 2.5rem !important;
    height: 3rem;
    font-size: 1rem !important;
}

.login-input-wrapper:focus-within .login-input-icon[b-2g5leuezif] {
    color: var(--hr-accent);
}

/* ── Footer note ── */
.login-footer-note[b-2g5leuezif] {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--hr-text-muted);
    line-height: 1.5;
}

/* ── Alert in login box ── */
.login-box .alert[b-2g5leuezif] {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.65rem 0.875rem;
    border-radius: 8px;
}
/* _content/HrExpense.Web/Pages/Reports.razor.rz.scp.css */
/* ==========================================================================
   Reports page scoped styles
   ========================================================================== */

/* ── Month / Year selects in page-header-actions ── */
/* Width cố định nhưng responsive — không dùng inline style */
.report-select-month[b-116h19f9x6] {
    width: 120px;
    min-width: 100px;
    flex-shrink: 0;
}

.report-select-year[b-116h19f9x6] {
    width: 90px;
    min-width: 78px;
    flex-shrink: 0;
}

/* Trên mobile (<576px): cả 2 select stretch full width trong row */
@media (max-width: 575.98px) {
    .report-select-month[b-116h19f9x6],
    .report-select-year[b-116h19f9x6] {
        width: auto;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

/* ── Percentage bar (dùng chung với dashboard) ── */
.pct-bar-track[b-116h19f9x6] {
    width: 70px;
    height: 5px;
    border-radius: 99px;
    background: var(--hr-border);
    flex-shrink: 0;
    overflow: hidden;
}

.pct-bar-fill[b-116h19f9x6] {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--hr-accent) 0%, #7c3aed 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pct-label[b-116h19f9x6] {
    font-size: 0.75rem;
    color: var(--hr-text-muted);
    min-width: 38px;
    text-align: right;
}

/* ── Loading / empty state ── */
.loading-state[b-116h19f9x6] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--hr-text-muted);
    padding: 3rem 0;
    justify-content: center;
    font-size: 0.875rem;
}

.loading-spinner[b-116h19f9x6] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--hr-border);
    border-top-color: var(--hr-accent);
    border-radius: 50%;
    animation: spin-b-116h19f9x6 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin-b-116h19f9x6 {
    to { transform: rotate(360deg); }
}

/* ── Chart card header icon ── */
.chart-card-header-icon[b-116h19f9x6] {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── page-header-actions responsive wrap ── */
@media (max-width: 767.98px) {
    .page-header-actions[b-116h19f9x6] {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
/* _content/HrExpense.Web/Shared/BreadcrumbNav.razor.rz.scp.css */
/* ==========================================================================
   BreadcrumbNav — scoped styles
   ========================================================================== */

.breadcrumb-nav[b-ime2thksxc] {
    margin-bottom: 1.25rem;
}

/* ── Breadcrumb trail ── */
.breadcrumb-list[b-ime2thksxc] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    gap: 0;
}

.breadcrumb-item[b-ime2thksxc] {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
}

.breadcrumb-link[b-ime2thksxc] {
    color: var(--hr-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover[b-ime2thksxc] {
    color: var(--hr-accent-hover);
    text-decoration: underline;
}

.breadcrumb-text[b-ime2thksxc] {
    color: var(--hr-text-muted);
    font-weight: 400;
}

.breadcrumb-item--active .breadcrumb-text[b-ime2thksxc] {
    color: var(--hr-text-secondary);
    font-weight: 500;
}

.breadcrumb-sep[b-ime2thksxc] {
    display: inline-flex;
    align-items: center;
    color: var(--hr-text-muted);
    margin: 0 0.3rem;
    opacity: 0.6;
}

/* ── Page title below breadcrumb ── */
.breadcrumb-page-title[b-ime2thksxc] {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--hr-text-primary);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.25;
}
/* _content/HrExpense.Web/Shared/LoginLayout.razor.rz.scp.css */
/* ==========================================================================
   LoginLayout scoped styles — background decoration
   ========================================================================== */

/* Subtle dot-grid pattern */
.login-bg-grid[b-2t1qdy8n5y] {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    background-image: radial-gradient(circle, var(--hr-border) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .login-bg-grid[b-2t1qdy8n5y] {
    opacity: 0.15;
}

/* Decorative blobs using pseudo-elements on login-page (set in site.css as .login-bg-gradient) */
/* _content/HrExpense.Web/Shared/MainLayout.razor.rz.scp.css */
/* ==========================================================================
   MainLayout scoped styles — dùng CSS tokens từ site.css
   ========================================================================== */

.page[b-vlxzuapajg] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-vlxzuapajg] {
    flex: 1;
    min-width: 0;
    background-color: var(--hr-bg-body);
    transition: var(--hr-transition);
    display: flex;
    flex-direction: column;
}

/* ─────────────────────── Sidebar ─────────────────────── */
.sidebar[b-vlxzuapajg] {
    background: linear-gradient(170deg,
        var(--hr-sidebar-from) 0%,
        var(--hr-sidebar-to) 100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────── Top bar ─────────────────────── */
.top-row[b-vlxzuapajg] {
    background-color: var(--hr-topbar-bg);
    border-bottom: 1px solid var(--hr-topbar-border);
    height: 3.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    transition: var(--hr-transition);
    flex-shrink: 0;
    /* Subtle bottom shadow on light mode */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .top-row[b-vlxzuapajg] {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.topbar-right[b-vlxzuapajg] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* ── User info chip ── */
.topbar-user[b-vlxzuapajg] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--hr-text-primary);
    background: var(--hr-bg-surface-alt);
    border: 1px solid var(--hr-border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem 0.25rem 0.4rem;
    white-space: nowrap;
    transition: var(--hr-transition);
}

.topbar-user-avatar[b-vlxzuapajg] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hr-accent) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.topbar-user-name[b-vlxzuapajg] {
    font-weight: 600;
    font-size: 0.82rem;
}

.topbar-role-badge[b-vlxzuapajg] {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1em 0.5em;
    border-radius: 999px;
    background: var(--hr-accent-light);
    color: var(--hr-accent);
    /* fallback cho browser cũ không hỗ trợ color-mix */
    border: 1px solid rgba(37, 99, 235, 0.2);
    border: 1px solid color-mix(in srgb, var(--hr-accent) 20%, transparent);
}

/* ── Logout button ── */
.btn-logout[b-vlxzuapajg] {
    background: transparent;
    border: 1px solid var(--hr-border);
    color: var(--hr-text-secondary);
    border-radius: var(--hr-radius-sm);
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-logout:hover[b-vlxzuapajg] {
    background: var(--hr-danger-bg);
    color: var(--hr-danger);
    /* fallback cho browser cũ không hỗ trợ color-mix */
    border-color: rgba(220, 38, 38, 0.3);
    border-color: color-mix(in srgb, var(--hr-danger) 30%, transparent);
}

/* ── Hamburger button (mobile) ── */
.btn-hamburger[b-vlxzuapajg] {
    background: transparent;
    border: 1px solid var(--hr-border);
    color: var(--hr-text-primary);
    border-radius: var(--hr-radius-sm);
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-hamburger:hover[b-vlxzuapajg] {
    background-color: var(--hr-bg-hover);
    border-color: var(--hr-accent);
}

.hamburger-icon[b-vlxzuapajg] {
    font-style: normal;
    line-height: 1;
}

/* ── Sidebar backdrop (mobile) ── */
.sidebar-backdrop[b-vlxzuapajg] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: backdropFadeIn-b-vlxzuapajg 0.2s ease;
}

@keyframes backdropFadeIn-b-vlxzuapajg {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─────────────────────── Article ─────────────────────── */
article.content[b-vlxzuapajg] {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   MOBILE  (< 768px)
   ========================================================================== */

@media (max-width: 767.98px) {
    .page[b-vlxzuapajg] {
        flex-direction: column;
    }

    .sidebar[b-vlxzuapajg] {
        position: fixed;
        top: 0;
        left: 0;
        width: 268px;
        height: 100vh;
        transform: translateX(-100%);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .page.sidebar-open .sidebar[b-vlxzuapajg] {
        transform: translateX(0);
    }

    .top-row[b-vlxzuapajg] {
        position: sticky;
        top: 0;
        z-index: 100;
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    article[b-vlxzuapajg] {
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    /* Compact user chip trên mobile — chỉ còn avatar, bỏ padding text thừa */
    .topbar-user[b-vlxzuapajg] {
        /* padding đối xứng quanh avatar 24px: (36px chip height - 24px avatar) / 2 = 6px */
        padding: 0.1875rem;
        gap: 0;
    }

    .topbar-user-name[b-vlxzuapajg] {
        display: none;
    }

    .topbar-role-badge[b-vlxzuapajg] {
        display: none;
    }

    /* Logout: chỉ còn icon, bỏ padding text */
    .btn-logout[b-vlxzuapajg] {
        padding: 0.3rem 0.45rem;
    }
}

/* ==========================================================================
   DESKTOP  (>= 768px)
   ========================================================================== */

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

    .sidebar[b-vlxzuapajg] {
        width: 256px;
        min-height: 100vh;
        position: sticky;
        top: 0;
        height: 100vh;
        flex-shrink: 0;
        overflow: hidden;
    }

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

    .top-row[b-vlxzuapajg],
    article[b-vlxzuapajg] {
        padding-left: 1.75rem !important;
        padding-right: 1.5rem !important;
    }
}
/* _content/HrExpense.Web/Shared/NavMenu.razor.rz.scp.css */
/* ==========================================================================
   NavMenu scoped styles
   ========================================================================== */

/* ── Top row: brand + close button ── */
.nav-top-row[b-teahftljyp] {
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.nav-brand[b-teahftljyp] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    text-decoration: none;
}

.nav-brand-icon[b-teahftljyp] {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(99,179,237,0.35) 0%, rgba(139,92,246,0.35) 100%);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.nav-brand-text-wrap[b-teahftljyp] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.nav-brand-name[b-teahftljyp] {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
}

.nav-brand-hr[b-teahftljyp] {
    color: #ffffff;
}

.nav-brand-expense[b-teahftljyp] {
    color: rgba(167,220,253,0.9);
    font-weight: 600;
}

.nav-brand-tagline[b-teahftljyp] {
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ── Close button (mobile) ── */
.nav-close-btn[b-teahftljyp] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    padding: 0.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.nav-close-btn:hover[b-teahftljyp] {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ── Scrollable nav area ── */
.nav-scrollable[b-teahftljyp] {
    overflow-y: auto;
    overflow-x: hidden;
    /* flex: 1 để chiếm hết không gian còn lại giữa topbar và footer.
       Dùng flex thay vì height calc() — đúng cho cả mobile (fixed) và desktop (sticky). */
    flex: 1;
    min-height: 0; /* bắt buộc cho flex item có overflow */
    overscroll-behavior: contain;
    padding: 0.5rem 0 1rem;
}

.nav-scrollable[b-teahftljyp]::-webkit-scrollbar { width: 3px; }
.nav-scrollable[b-teahftljyp]::-webkit-scrollbar-track { background: transparent; }
.nav-scrollable[b-teahftljyp]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ── Section labels ── */
.nav-section-label[b-teahftljyp] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.875rem 1rem 0.375rem;
    margin-top: 0.25rem;
}

.nav-section-label:first-child[b-teahftljyp] {
    padding-top: 0.625rem;
}

/* ── Nav menu container ── */
.nav-menu[b-teahftljyp] {
    display: flex;
    flex-direction: column;
    padding: 0 0.625rem;
    gap: 1px;
}

/* ==========================================================================
   Nav item links — dùng ::deep vì Blazor <NavLink> render thành <a> bên trong
   component boundary, scoped attribute không tự match được.
   ========================================================================== */

/* Wrapper div bọc NavLink (nếu cần) — ở đây NavLink được dùng trực tiếp,
   nên target thẳng vào thẻ <a> do NavLink render ra. */
[b-teahftljyp] .nav-item-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    position: relative;
    min-height: 2.5rem;
}

[b-teahftljyp] .nav-item-link:hover {
    background-color: var(--hr-sidebar-hover);
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateX(2px);
}

[b-teahftljyp] .nav-item-link.active {
    background-color: var(--hr-sidebar-active);
    color: #ffffff !important;
    font-weight: 600;
}

/* Active indicator stripe */
[b-teahftljyp] .nav-item-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 3px 3px 0;
}

/* ── Icon span ── */
[b-teahftljyp] .nav-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.15s ease;
    /* Ngăn icon bị kéo dãn hoặc co lại */
    min-width: 20px;
}

[b-teahftljyp] .nav-item-link:hover .nav-item-icon,
[b-teahftljyp] .nav-item-link.active .nav-item-icon {
    opacity: 1;
}

/* ── Text span ── */
[b-teahftljyp] .nav-item-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ── External link indicator (opens in new tab) ── */
[b-teahftljyp] .nav-item-ext-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 4px;
}

/* ── Desktop: ẩn close button ── */
@media (min-width: 768px) {
    .nav-close-btn[b-teahftljyp] {
        display: none !important;
    }
}

/* ── Sidebar footer: theme indicator ── */
.nav-footer[b-teahftljyp] {
    flex-shrink: 0;
    height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.15);
}

.nav-theme-indicator[b-teahftljyp] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    user-select: none;
}

.nav-theme-indicator svg[b-teahftljyp] {
    opacity: 0.6;
    flex-shrink: 0;
}
