/* _content/EhsanWeb/Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================================
   MAIN LAYOUT SCOPED CSS — EHSAN SYSTEM
   کاملاً هماهنگ با MudBlazor و دارک‌مود سراسری
   ============================================================ */

.page[b-4do1aynjjq] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-body, #f5f7f6);
    color: var(--text-primary, #0f1f1a);
}

main[b-4do1aynjjq] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 🚨 نوار پیام خطای بلزور در انتهای صفحه (پشتیبانی از دارک‌مود) */
#blazor-error-ui[b-4do1aynjjq] {
    background: #fef3c7;
    color: #92400e;
    bottom: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    font-size: 12.5px;
    font-weight: 700;
    border-top: 2px solid #f59e0b;
}

.mud-theme-dark #blazor-error-ui[b-4do1aynjjq] {
    background: #451a03;
    color: #fde68a;
    border-top-color: #d97706;
}

#blazor-error-ui .dismiss[b-4do1aynjjq] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.6rem;
    font-size: 16px;
}

#blazor-error-ui .reload[b-4do1aynjjq] {
    color: #b45309;
    text-decoration: underline;
    margin-right: 8px;
    font-weight: 900;
}

.mud-theme-dark #blazor-error-ui .reload[b-4do1aynjjq] {
    color: #fbbf24;
}
/* _content/EhsanWeb/Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================================================
   NAV MENU SCOPED CSS — EHSAN SYSTEM
   کاملاً هماهنگ با MudBlazor و سیستم دارک‌مود تم
   ============================================================ */

.ehsan-nav-menu[b-t37vitcsvg] {
    padding: var(--sp-2) 0 !important;
}

/* عناوین بخش‌های منو */
.nav-heading-sec[b-t37vitcsvg] {
    font-size: 10.5px !important;
    font-weight: 900 !important;
    color: var(--text-disabled, #64748b) !important;
    text-transform: uppercase;
    padding: 14px 16px 4px 16px;
    letter-spacing: 0.5px;
    text-align: right;
    user-select: none;
}

.text-danger-sec[b-t37vitcsvg] {
    color: #ef4444 !important;
}

/* لینک‌های منو */
.ehsan-nav-menu .mud-nav-link[b-t37vitcsvg] {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    border-radius: var(--r-xs, 8px) !important;
    margin: 2px 8px !important;
    transition: all 0.2s ease !important;
}

    .ehsan-nav-menu .mud-nav-link:hover[b-t37vitcsvg] {
        background-color: var(--bg-muted) !important;
        color: var(--text-primary) !important;
    }

    .ehsan-nav-menu .mud-nav-link.active[b-t37vitcsvg] {
        background-color: var(--brand-glow, rgba(5, 150, 105, 0.12)) !important;
        color: var(--brand, #059669) !important;
        font-weight: 800 !important;
        border-right: 3px solid var(--brand, #059669) !important;
    }

/* اسکرول‌بار نرم برای منوهای بلند */
.ehsan-nav-menu[b-t37vitcsvg] {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

    .ehsan-nav-menu[b-t37vitcsvg]::-webkit-scrollbar {
        width: 4px;
    }

    .ehsan-nav-menu[b-t37vitcsvg]::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }
/* _content/EhsanWeb/Components/Pages/Branches.razor.rz.scp.css */
/* ============================================================
   BRANCHES PAGE CSS (100% DARK MODE & LIGHT MODE COMPATIBLE)
   ============================================================ */
[b-kbmdupogvp] .page-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

[b-kbmdupogvp] .responsive-header {
    margin-bottom: 20px;
}

[b-kbmdupogvp] .district-icon-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: rgba(5, 150, 105, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-kbmdupogvp] .btn-premium {
    white-space: nowrap !important;
}

[b-kbmdupogvp] .cell-action-btn {
    text-align: center;
}

    [b-kbmdupogvp] .cell-action-btn .d-flex {
        justify-content: center;
        align-items: center;
        gap: 6px !important;
    }

/* ============================================================
   BOTTOM SHEET MOBILE (DARK & LIGHT MODE)
   ============================================================ */
[b-kbmdupogvp] .mobile-bottom-sheet {
    align-self: flex-end !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 22px 22px 0 0 !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25) !important;
    animation: slideUpBranches-b-kbmdupogvp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-top: 6px !important;
}

    [b-kbmdupogvp] .mobile-bottom-sheet::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background-color: var(--bg-muted-strong);
        border-radius: 4px;
        margin: 6px auto 8px;
    }

@keyframes slideUpBranches-b-kbmdupogvp {
    from {
        transform: translateY(100%);
        opacity: .5;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

[b-kbmdupogvp] .mobile-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

[b-kbmdupogvp] .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background-color: var(--bg-muted) !important;
    border-radius: 12px;
    font-size: 12.5px;
}

    [b-kbmdupogvp] .detail-row .label {
        color: var(--text-secondary) !important;
        font-weight: 600;
        flex-shrink: 0;
    }

    [b-kbmdupogvp] .detail-row .value {
        color: var(--text-primary) !important;
        font-weight: 800;
        text-align: left;
        word-break: break-word;
    }

/* ============================================================
   FIX: رفع خط افتادن روی لیبل فرم‌ها (Outlined Label Fix)
   ============================================================ */
[b-kbmdupogvp] .mud-input-control > .mud-input-label.mud-input-label-outlined.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    padding: 0 6px !important;
    z-index: 5 !important;
    width: auto !important;
}

[b-kbmdupogvp] .mud-dialog .mud-input-control > .mud-input-label.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* ============================================================
   MOBILE CARD RESPONSIVE & DARK MODE
   ============================================================ */
@media (max-width: 767px) {
    [b-kbmdupogvp] .mt-2-mobile {
        margin-top: 8px;
    }

    [b-kbmdupogvp] .w-100-mobile {
        width: 100% !important;
    }

    [b-kbmdupogvp] .hide-on-mobile {
        display: none !important;
    }

    [b-kbmdupogvp] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    [b-kbmdupogvp] .modern-table table,
    [b-kbmdupogvp] .modern-table thead,
    [b-kbmdupogvp] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-kbmdupogvp] .modern-table thead {
        display: none !important;
    }

    [b-kbmdupogvp] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background-color: var(--bg-card) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
        padding: 12px !important;
        box-shadow: var(--shadow-xs) !important;
    }

    [b-kbmdupogvp] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-kbmdupogvp] .modern-table .mud-table-cell.cell-main-info,
        [b-kbmdupogvp] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-kbmdupogvp] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

        [b-kbmdupogvp] .modern-table .cell-main-info > div {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            width: 100%;
            min-width: 0;
        }
}

@media (min-width: 768px) {
    [b-kbmdupogvp] .mobile-only-btn,
    [b-kbmdupogvp] .mobile-only-subtitle {
        display: none !important;
    }
}
/* _content/EhsanWeb/Components/Pages/Cities.razor.rz.scp.css */
/* ============================================================
   CITIES PAGE — CSS Isolation (100% Light & Dark Compatible)
   ============================================================ */

[b-ikcdge2h5e] .page-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

[b-ikcdge2h5e] .responsive-header {
    margin-bottom: 20px;
}

[b-ikcdge2h5e] .mt-2-mobile {
    margin-top: 0;
}

/* آیکون شهر در جدول */
[b-ikcdge2h5e] .district-icon-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: rgba(5, 150, 105, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تگ بنفش شعب */
[b-ikcdge2h5e] .tag-purple {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

/* دکمه‌های تک‌خطی */
[b-ikcdge2h5e] .btn-premium {
    white-space: nowrap !important;
}

/* وسط‌چین کردن دکمه عملیات در دسکتاپ */
[b-ikcdge2h5e] .cell-action-btn {
    text-align: center;
}

    [b-ikcdge2h5e] .cell-action-btn .d-flex {
        justify-content: center;
        align-items: center;
    }

/* ============================================================
   MOBILE BOTTOM SHEET (DARK & LIGHT SUPPORT)
   ============================================================ */
[b-ikcdge2h5e] .mobile-bottom-sheet {
    align-self: flex-end !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 22px 22px 0 0 !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25) !important;
    animation: slideUpCities-b-ikcdge2h5e 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-top: 6px !important;
}

    [b-ikcdge2h5e] .mobile-bottom-sheet::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background-color: var(--bg-muted-strong);
        border-radius: 4px;
        margin: 6px auto 8px;
    }

@keyframes slideUpCities-b-ikcdge2h5e {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

[b-ikcdge2h5e] .mobile-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

[b-ikcdge2h5e] .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background-color: var(--bg-muted) !important;
    border-radius: 12px;
    font-size: 12.5px;
}

    [b-ikcdge2h5e] .detail-row .label {
        color: var(--text-secondary) !important;
        font-weight: 600;
    }

    [b-ikcdge2h5e] .detail-row .value {
        color: var(--text-primary) !important;
        font-weight: 800;
    }

[b-ikcdge2h5e] .mobile-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================================
   FIX: رفع خط افتادن روی لیبل فیلدها در دارک‌مود
   ============================================================ */
[b-ikcdge2h5e] .mud-input-control > .mud-input-label.mud-input-label-outlined.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    padding: 0 6px !important;
    margin-right: -4px !important;
    z-index: 5 !important;
    width: auto !important;
    border-radius: 4px;
}

[b-ikcdge2h5e] .mud-dialog .mud-input-control > .mud-input-label.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* ============================================================
   MOBILE RESPONSIVE & DARK MODE
   ============================================================ */
@media (max-width: 767px) {
    [b-ikcdge2h5e] .mt-2-mobile {
        margin-top: 8px;
    }

    [b-ikcdge2h5e] .w-100-mobile {
        width: 100% !important;
    }

    [b-ikcdge2h5e] .hide-on-mobile {
        display: none !important;
    }

    /* جدول → کارت افقی */
    [b-ikcdge2h5e] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    [b-ikcdge2h5e] .modern-table table,
    [b-ikcdge2h5e] .modern-table thead,
    [b-ikcdge2h5e] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-ikcdge2h5e] .modern-table thead {
        display: none !important;
    }

    [b-ikcdge2h5e] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background-color: var(--bg-card) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        box-shadow: var(--shadow-xs) !important;
        gap: 10px !important;
    }

    [b-ikcdge2h5e] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

        [b-ikcdge2h5e] .modern-table .mud-table-cell.cell-main-info,
        [b-ikcdge2h5e] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-ikcdge2h5e] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

        [b-ikcdge2h5e] .modern-table .cell-main-info > div {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            width: 100%;
            min-width: 0;
        }

    [b-ikcdge2h5e] .mobile-only-subtitle {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    [b-ikcdge2h5e] .mobile-only-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25) !important;
        white-space: nowrap !important;
    }

    /* فیلتر بالا در موبایل */
    [b-ikcdge2h5e] .premium-card .mud-input-control {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    [b-ikcdge2h5e] .mobile-only-btn,
    [b-ikcdge2h5e] .mobile-only-subtitle {
        display: none !important;
    }
}
/* _content/EhsanWeb/Components/Pages/Clients.razor.rz.scp.css */
/* ============================================================
   CLIENTS / HOUSEHOLDS — CSS ISOLATION (DARK & LIGHT)
   فایل: Clients.razor.css
   ============================================================ */

.page-container[b-76dirctn96] {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 12px 16px;
}

/* ─── دکمه‌ها ─── */
[b-76dirctn96] .btn-premium {
    font-weight: 800 !important;
    border-radius: 8px !important;
    height: 38px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

[b-76dirctn96] .header-actions-grid {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

[b-76dirctn96] .excel-import-wrapper {
    display: inline-block;
}

/* ─── کارت خانوار ─── */
[b-76dirctn96] .household-main-card {
    border: 1px solid var(--border, var(--mud-palette-lines-default)) !important;
    background-color: var(--bg-card, var(--mud-palette-surface)) !important;
    color: var(--text-primary, var(--mud-palette-text-primary)) !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    [b-76dirctn96] .household-main-card:hover {
        border-color: rgba(5, 150, 105, 0.45) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

[b-76dirctn96] .household-header-responsive {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(16, 185, 129, 0.03));
    border-bottom: 1px solid var(--border, var(--mud-palette-lines-default));
}

[b-76dirctn96] .household-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand, #059669), var(--brand-dark, #047857));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

[b-76dirctn96] .meta-line-1,
[b-76dirctn96] .meta-line-2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

[b-76dirctn96] .household-actions-responsive {
    display: flex;
    gap: 8px;
}

/* ═══ هدر جدول — سبز برند یکدست (مثل households) ═══ */
.modern-table[b-76dirctn96] {
    border: 1px solid var(--border, var(--mud-palette-lines-default)) !important;
    border-radius: 10px !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    background: var(--bg-card, var(--mud-palette-surface)) !important;
}

    .modern-table th[b-76dirctn96] {
        background: linear-gradient(135deg, var(--brand, #059669), var(--brand-dark, #047857)) !important;
        color: #ffffff !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        text-align: center !important;
        border: none !important;
        padding: 12px 14px !important;
    }

        .modern-table th:first-child[b-76dirctn96] {
            border-top-right-radius: 9px !important;
        }

        .modern-table th:last-child[b-76dirctn96] {
            border-top-left-radius: 9px !important;
        }

/* دارک‌مود */
.mud-theme-dark .modern-table th[b-76dirctn96],
[data-mud-theme="dark"] .modern-table th[b-76dirctn96] {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #6ee7b7 !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.modern-table td[b-76dirctn96] {
    color: var(--text-primary, var(--mud-palette-text-primary)) !important;
    border-bottom: 1px solid var(--border, var(--mud-palette-lines-default)) !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 12.5px !important;
    padding: 10px 12px !important;
    background: transparent !important;
}

/* 🌙 2️⃣ حالت تاریک (Dark Mode) برای هدر */
[b-76dirctn96] .mud-theme-dark .member-table .mud-table-head .mud-table-cell,
:host-context(.mud-theme-dark)[b-76dirctn96]  .member-table .mud-table-head .mud-table-cell {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #6ee7b7 !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* بدنه و سلول‌های ردیف‌های جدول اعضا */
[b-76dirctn96] .member-table .mud-table-body .mud-table-cell {
    color: var(--text-primary, var(--mud-palette-text-primary)) !important;
    border-bottom: 1px solid var(--border, var(--mud-palette-lines-default)) !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 12.5px !important;
    padding: 10px 12px !important;
}

/* ─── پنل فیلتر ─── */
[b-76dirctn96] .filter-panel {
    background-color: var(--bg-muted, var(--mud-palette-background)) !important;
    border: 1px solid var(--border, var(--mud-palette-lines-default)) !important;
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-primary, var(--mud-palette-text-primary)) !important;
}

[b-76dirctn96] .filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand, var(--mud-palette-primary));
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    margin-right: 6px;
    height: 18px;
    min-width: 18px;
}

/* ─── ابزارهای عمومی ─── */
[b-76dirctn96] .border-top {
    border-top: 1px dashed var(--border, var(--mud-palette-lines-default)) !important;
}

[b-76dirctn96] .bg-light {
    background-color: var(--bg-muted, var(--mud-palette-background)) !important;
}

[b-76dirctn96] .text-success {
    color: var(--brand, var(--mud-palette-success)) !important;
}

[b-76dirctn96] .text-warning {
    color: var(--accent-amber, #f59e0b) !important;
}

[b-76dirctn96] .text-error {
    color: var(--accent-rose, #f43f5e) !important;
}

[b-76dirctn96] .page-title,
[b-76dirctn96] .fw-black,
[b-76dirctn96] .fw-bold {
    color: var(--text-primary, var(--mud-palette-text-primary)) !important;
}

[b-76dirctn96] .page-subtitle,
[b-76dirctn96] .text-muted {
    color: var(--text-secondary, var(--mud-palette-text-secondary)) !important;
}

[b-76dirctn96] .page-title {
    font-size: 16px;
    font-weight: 900 !important;
    margin-bottom: 2px;
}

[b-76dirctn96] .page-subtitle {
    font-size: 11px;
}

[b-76dirctn96] .font-mono {
    font-family: 'Vazirmatn', sans-serif !important;
    font-variant-numeric: tabular-nums !important;
}

[b-76dirctn96] .premium-card {
    background-color: var(--bg-card, var(--mud-palette-surface)) !important;
    border: 1px solid var(--border, var(--mud-palette-lines-default)) !important;
    border-radius: 12px !important;
    color: var(--text-primary, var(--mud-palette-text-primary)) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* ─── تگ‌ها ─── */
[b-76dirctn96] .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    line-height: 1.4;
}

[b-76dirctn96] .tag-amber {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

[b-76dirctn96] .tag-blue {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

[b-76dirctn96] .tag-green {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

[b-76dirctn96] .tag-red {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

[b-76dirctn96] .tag-gray {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, 0.3) !important;
}

[b-76dirctn96] .tag-purple {
    background: rgba(124, 58, 237, 0.12) !important;
    color: #6d28d9 !important;
    border: 1px solid rgba(124, 58, 237, 0.35) !important;
}

/* دارک‌مود تگ‌ها */
[b-76dirctn96] .mud-theme-dark .tag-amber,
:host-context(.mud-theme-dark)[b-76dirctn96]  .tag-amber {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fde047 !important;
}

[b-76dirctn96] .mud-theme-dark .tag-blue,
:host-context(.mud-theme-dark)[b-76dirctn96]  .tag-blue {
    background: rgba(59, 130, 246, 0.22) !important;
    color: #93c5fd !important;
}

[b-76dirctn96] .mud-theme-dark .tag-green,
:host-context(.mud-theme-dark)[b-76dirctn96]  .tag-green {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #6ee7b7 !important;
}

[b-76dirctn96] .mud-theme-dark .tag-red,
:host-context(.mud-theme-dark)[b-76dirctn96]  .tag-red {
    background: rgba(239, 68, 68, 0.22) !important;
    color: #fda4af !important;
}

[b-76dirctn96] .mud-theme-dark .tag-gray,
:host-context(.mud-theme-dark)[b-76dirctn96]  .tag-gray {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
}

[b-76dirctn96] .mud-theme-dark .tag-purple,
:host-context(.mud-theme-dark)[b-76dirctn96]  .tag-purple {
    background: rgba(124, 58, 237, 0.22) !important;
    color: #c4b5fd !important;
}

/* چیپ کد عضویت */
[b-76dirctn96] .member-code-chip {
    font-size: 12px;
    direction: rtl;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
}

    [b-76dirctn96] .member-code-chip.head-code {
        background: rgba(59, 130, 246, 0.12);
        color: #1d4ed8;
    }

[b-76dirctn96] .mud-theme-dark .member-code-chip.head-code,
:host-context(.mud-theme-dark)[b-76dirctn96]  .member-code-chip.head-code {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

[b-76dirctn96] .member-code-chip.member-code {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

[b-76dirctn96] .mud-theme-dark .member-code-chip.member-code,
:host-context(.mud-theme-dark)[b-76dirctn96]  .member-code-chip.member-code {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

/* ─── موبایل ─── */
@media (max-width: 767px) {
    [b-76dirctn96] .header-actions-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

        [b-76dirctn96] .header-actions-grid .btn-premium,
        [b-76dirctn96] .excel-import-wrapper {
            width: 100% !important;
        }

        [b-76dirctn96] .header-actions-grid .btn-premium {
            padding: 6px 8px !important;
            font-size: 11.5px !important;
            justify-content: center !important;
        }

    [b-76dirctn96] .search-btn-mobile,
    [b-76dirctn96] .clear-btn-mobile {
        width: 100% !important;
    }

    [b-76dirctn96] .meta-line-1,
    [b-76dirctn96] .meta-line-2 {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        gap: 4px !important;
    }

        [b-76dirctn96] .meta-line-1::-webkit-scrollbar,
        [b-76dirctn96] .meta-line-2::-webkit-scrollbar {
            display: none;
        }

        [b-76dirctn96] .meta-line-1 .tag,
        [b-76dirctn96] .meta-line-2 .tag {
            font-size: 10px !important;
            padding: 2px 5px !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
        }

    [b-76dirctn96] .household-header-responsive {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    [b-76dirctn96] .household-actions-responsive {
        width: 100% !important;
        border-top: 1px dashed var(--border, var(--mud-palette-lines-default));
        padding-top: 10px !important;
    }

        [b-76dirctn96] .household-actions-responsive .btn-premium {
            flex: 1 !important;
            justify-content: center !important;
        }

    [b-76dirctn96] .household-title-text {
        font-size: 13.5px !important;
    }

    [b-76dirctn96] .household-icon-box {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
}
/* _content/EhsanWeb/Components/Pages/DashboardFacilitator.razor.rz.scp.css */
/* ============================================================
   BENTO KPI GRID & RESPONSIVE LAYOUT (DARK & LIGHT MODE)
   ============================================================ */
.page-container[b-bq9mk17pho] {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.responsive-header[b-bq9mk17pho] {
    margin-bottom: 20px;
}

.mt-2-mobile[b-bq9mk17pho] {
    margin-top: 0;
}

.badge-custom-alert[b-bq9mk17pho] {
    background: #f43f5e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    margin-right: 6px;
    display: inline-block;
}

/* ============================================================
   TABLE-TO-CARD STYLING
   ============================================================ */
.client-row-layout[b-bq9mk17pho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.client-right[b-bq9mk17pho] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.client-meta-box[b-bq9mk17pho] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    text-align: right;
}

.client-name-title[b-bq9mk17pho] {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-only-subtitle[b-bq9mk17pho] {
    display: none;
}

/* ============================================================
   ELEMENT CARDS
   ============================================================ */
.campaign-progress-card[b-bq9mk17pho] {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.2s;
}

    .campaign-progress-card:hover[b-bq9mk17pho] {
        transform: translateY(-2px);
    }

.mini-list-card[b-bq9mk17pho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    padding: 10px 12px;
}

.notification-item-card[b-bq9mk17pho] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
}

.unread-notification[b-bq9mk17pho] {
    background: rgba(59, 130, 246, 0.08) !important;
    border-right: 4px solid var(--brand, #059669) !important;
}

.notif-text[b-bq9mk17pho] {
    font-size: 12.5px;
    font-weight: 700;
    display: block;
    text-align: right;
    color: var(--text-primary) !important;
}

.notif-time[b-bq9mk17pho] {
    font-size: 10px;
    color: var(--text-secondary) !important;
    display: block;
    text-align: right;
    margin-top: 2px;
}

/* ============================================================
   FOOTER STATISTICS
   ============================================================ */
.stats-footer-grid[b-bq9mk17pho] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.stat-footer-box[b-bq9mk17pho] {
    text-align: center;
    padding: 14px 6px;
    border-radius: 12px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.stat-val[b-bq9mk17pho] {
    font-size: 24px;
    font-weight: 800;
}

.stat-lbl[b-bq9mk17pho] {
    font-size: 11px;
    color: var(--text-secondary) !important;
    margin-top: 4px;
}

.stat-success[b-bq9mk17pho] {
    border-bottom: 4px solid #10b981 !important;
}

    .stat-success .stat-val[b-bq9mk17pho] {
        color: #10b981 !important;
    }

.stat-info[b-bq9mk17pho] {
    border-bottom: 4px solid #3b82f6 !important;
}

    .stat-info .stat-val[b-bq9mk17pho] {
        color: #3b82f6 !important;
    }

.stat-primary[b-bq9mk17pho] {
    border-bottom: 4px solid var(--brand) !important;
}

    .stat-primary .stat-val[b-bq9mk17pho] {
        color: var(--brand) !important;
    }

.stat-warning[b-bq9mk17pho] {
    border-bottom: 4px solid #f59e0b !important;
}

    .stat-warning .stat-val[b-bq9mk17pho] {
        color: #f59e0b !important;
    }

.stat-emerald[b-bq9mk17pho] {
    border-bottom: 4px solid #059669 !important;
}

    .stat-emerald .stat-val[b-bq9mk17pho] {
        color: #059669 !important;
    }

.stat-red[b-bq9mk17pho] {
    border-bottom: 4px solid #f43f5e !important;
}

    .stat-red .stat-val[b-bq9mk17pho] {
        color: #f43f5e !important;
    }

/* ============================================================
   MOBILE RESPONSIVE (چیدمان ۲×۲ و کارت‌های عریض)
   ============================================================ */
@media (max-width: 767px) {
    .mt-2-mobile[b-bq9mk17pho] {
        margin-top: 8px;
    }

    .w-100-mobile[b-bq9mk17pho] {
        width: 100% !important;
    }

    .hide-on-mobile[b-bq9mk17pho] {
        display: none !important;
    }

    /* KPI Grid تبدیل به چیدمان ۲×۲ */
    .bento-grid[b-bq9mk17pho] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .bento-hero[b-bq9mk17pho] {
        grid-column: span 1 !important;
        min-height: auto !important;
    }

    .hero-kpi-card[b-bq9mk17pho] {
        padding: 16px !important;
    }

    .hero-kpi-value[b-bq9mk17pho] {
        font-size: 30px !important;
    }

    .bento-stack[b-bq9mk17pho] {
        grid-column: span 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .mini-kpi-card[b-bq9mk17pho] {
        padding: 12px !important;
        min-height: 100px !important;
        border-radius: 12px !important;
    }

    .mini-kpi-value[b-bq9mk17pho] {
        font-size: 20px !important;
    }

    /* تغییر جداول به کارت‌های عریض موبایل */
    [b-bq9mk17pho] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    [b-bq9mk17pho] .modern-table table,
    [b-bq9mk17pho] .modern-table thead,
    [b-bq9mk17pho] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-bq9mk17pho] .modern-table thead {
        display: none !important;
    }

    [b-bq9mk17pho] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-card) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
    }

    [b-bq9mk17pho] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-bq9mk17pho] .modern-table .mud-table-cell.cell-main-info,
        [b-bq9mk17pho] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-bq9mk17pho] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .mobile-only-subtitle[b-bq9mk17pho] {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600;
        color: var(--text-secondary) !important;
        margin-top: 3px;
    }

    /* گرید خلاصه ماه به صورت ۳ ستونه در گوشی */
    .stats-footer-grid[b-bq9mk17pho] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}
/* _content/EhsanWeb/Components/Pages/DashboardWorker.razor.rz.scp.css */
/* ============================================================
   WORKER DASHBOARD CSS — ISOLATION (100% LIGHT & DARK MODE)
   ============================================================ */
.page-container[b-luynpx9gsg] {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.responsive-header[b-luynpx9gsg] {
    margin-bottom: 20px;
}

.mt-2-mobile[b-luynpx9gsg] {
    margin-top: 0;
}

.badge-custom-alert[b-luynpx9gsg] {
    background: #f43f5e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    margin-right: 6px;
    display: inline-block;
}

/* 👥 چیدمان دو ستونه قرینه روی کامپیوتر (PC) */
.dashboard-pc-grid[b-luynpx9gsg] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.search-box-worker[b-luynpx9gsg] {
    max-width: 380px;
    width: 100%;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.client-card-item[b-luynpx9gsg] {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs) !important;
}

.client-row-layout[b-luynpx9gsg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.client-right[b-luynpx9gsg] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.client-meta-box[b-luynpx9gsg] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    text-align: right;
}

.client-name-title[b-luynpx9gsg] {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary) !important;
}

.mobile-subtitle-text[b-luynpx9gsg] {
    font-size: 11px;
    color: var(--text-secondary) !important;
}

.campaign-progress-card[b-luynpx9gsg] {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 14px;
}

.list-item-container[b-luynpx9gsg] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-list-card[b-luynpx9gsg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
    padding: 10px 12px;
}

.clickable-item[b-luynpx9gsg] {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .clickable-item:hover[b-luynpx9gsg] {
        transform: translateY(-2px);
        border-color: var(--brand) !important;
    }

.notification-item-card[b-luynpx9gsg] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
}

.unread-notification[b-luynpx9gsg] {
    background: rgba(59, 130, 246, 0.08) !important;
    border-right: 4px solid var(--brand) !important;
}

.stats-footer-grid[b-luynpx9gsg] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.stat-footer-box[b-luynpx9gsg] {
    text-align: center;
    padding: 14px 6px;
    border-radius: 12px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.stat-val[b-luynpx9gsg] {
    font-size: 24px;
    font-weight: 800;
}

.stat-lbl[b-luynpx9gsg] {
    font-size: 11px;
    color: var(--text-secondary) !important;
    margin-top: 4px;
}

.stat-success[b-luynpx9gsg] {
    border-bottom: 4px solid #10b981 !important;
}

    .stat-success .stat-val[b-luynpx9gsg] {
        color: #10b981 !important;
    }

.stat-info[b-luynpx9gsg] {
    border-bottom: 4px solid #3b82f6 !important;
}

    .stat-info .stat-val[b-luynpx9gsg] {
        color: #3b82f6 !important;
    }

.stat-primary[b-luynpx9gsg] {
    border-bottom: 4px solid var(--brand) !important;
}

    .stat-primary .stat-val[b-luynpx9gsg] {
        color: var(--brand) !important;
    }

.stat-warning[b-luynpx9gsg] {
    border-bottom: 4px solid #f59e0b !important;
}

    .stat-warning .stat-val[b-luynpx9gsg] {
        color: #f59e0b !important;
    }

.stat-emerald[b-luynpx9gsg] {
    border-bottom: 4px solid #059669 !important;
}

    .stat-emerald .stat-val[b-luynpx9gsg] {
        color: #059669 !important;
    }

.stat-red[b-luynpx9gsg] {
    border-bottom: 4px solid #f43f5e !important;
}

    .stat-red .stat-val[b-luynpx9gsg] {
        color: #f43f5e !important;
    }

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-pc-grid[b-luynpx9gsg] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .mt-2-mobile[b-luynpx9gsg] {
        margin-top: 8px;
    }

    .w-100-mobile[b-luynpx9gsg] {
        width: 100% !important;
    }

    .hide-on-mobile[b-luynpx9gsg] {
        display: none !important;
    }

    .search-box-worker[b-luynpx9gsg] {
        max-width: 100%;
    }

    .bento-grid[b-luynpx9gsg] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .bento-hero[b-luynpx9gsg] {
        grid-column: span 1 !important;
        min-height: auto !important;
    }

    .hero-kpi-card[b-luynpx9gsg] {
        padding: 16px !important;
    }

    .hero-kpi-value[b-luynpx9gsg] {
        font-size: 30px !important;
    }

    .bento-stack[b-luynpx9gsg] {
        grid-column: span 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .mini-kpi-card[b-luynpx9gsg] {
        padding: 12px !important;
        min-height: 100px !important;
        border-radius: 12px !important;
    }

    .mini-kpi-value[b-luynpx9gsg] {
        font-size: 20px !important;
    }

    [b-luynpx9gsg] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    [b-luynpx9gsg] .modern-table table, [b-luynpx9gsg] .modern-table thead, [b-luynpx9gsg] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-luynpx9gsg] .modern-table thead {
        display: none !important;
    }

    [b-luynpx9gsg] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-card) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
    }

    [b-luynpx9gsg] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-luynpx9gsg] .modern-table .mud-table-cell.cell-main-info,
        [b-luynpx9gsg] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-luynpx9gsg] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .mobile-only-subtitle[b-luynpx9gsg] {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600;
        color: var(--text-secondary) !important;
        margin-top: 3px;
        line-height: 1.4;
    }

    .stats-footer-grid[b-luynpx9gsg] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}
/* _content/EhsanWeb/Components/Pages/Districts.razor.rz.scp.css */
/* ============================================================
   DISTRICTS PAGE CSS — Isolation & Full Dark/Light Theme Support
   ============================================================ */

[b-wsne5uldtt] .page-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

[b-wsne5uldtt] .responsive-header {
    margin-bottom: 20px;
}

[b-wsne5uldtt] .mt-2-mobile {
    margin-top: 0;
}

[b-wsne5uldtt] .badge-custom-alert {
    background: #f43f5e !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    margin-right: 6px;
    display: inline-block;
}

/* ============================================================
   TABLE & DISTRICT AVATAR STYLING
   ============================================================ */
[b-wsne5uldtt] .district-icon-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(5, 150, 105, 0.12) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-wsne5uldtt] .geo-status-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background-color: var(--brand);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

[b-wsne5uldtt] .tag-purple {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

[b-wsne5uldtt] .cell-action-btn .d-flex {
    justify-content: center;
    align-items: center;
}

[b-wsne5uldtt] .btn-premium {
    white-space: nowrap !important;
}

[b-wsne5uldtt] .mobile-stats-container {
    display: none;
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
[b-wsne5uldtt] .map-container-wrapper {
    height: 280px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border) !important;
    background-color: var(--bg-card) !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

[b-wsne5uldtt] .map-instructions {
    font-size: 11px;
    color: var(--text-secondary) !important;
    background: var(--bg-muted) !important;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   MOBILE BOTTOM SHEET
   ============================================================ */
[b-wsne5uldtt] .mobile-bottom-sheet {
    align-self: flex-end !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25) !important;
    animation: slideUpDistricts-b-wsne5uldtt 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-top: 6px !important;
}

    [b-wsne5uldtt] .mobile-bottom-sheet::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background: var(--bg-muted-strong);
        border-radius: 4px;
        margin: 6px auto 8px;
    }

@keyframes slideUpDistricts-b-wsne5uldtt {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

[b-wsne5uldtt] .mobile-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

[b-wsne5uldtt] .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-muted) !important;
    border-radius: 12px;
    font-size: 12.5px;
}

    [b-wsne5uldtt] .detail-row .label {
        color: var(--text-secondary) !important;
        font-weight: 600;
    }

    [b-wsne5uldtt] .detail-row .value {
        color: var(--text-primary) !important;
        font-weight: 800;
    }

[b-wsne5uldtt] .mobile-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================================
   DISTRICT ROW LAYOUT
   ============================================================ */
[b-wsne5uldtt] .district-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

[b-wsne5uldtt] .district-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

[b-wsne5uldtt] .district-title-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

[b-wsne5uldtt] .district-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-wsne5uldtt] .district-city {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

[b-wsne5uldtt] .district-center {
    display: none;
}

[b-wsne5uldtt] .district-stat {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
    white-space: nowrap !important;
}

/* ============================================================
   FIX: OUTLINED INPUT LABEL HOLE IN DARK MODE
   ============================================================ */
[b-wsne5uldtt] .mud-input-control > .mud-input-label.mud-input-label-outlined.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    padding: 0 6px !important;
    z-index: 5 !important;
    width: auto !important;
}

[b-wsne5uldtt] .mud-dialog .mud-input-control > .mud-input-label.mud-shrink {
    background-color: var(--bg-card) !important;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    [b-wsne5uldtt] .mt-2-mobile {
        margin-top: 8px;
    }

    [b-wsne5uldtt] .w-100-mobile {
        width: 100% !important;
    }

    [b-wsne5uldtt] .hide-on-mobile {
        display: none !important;
    }

    /* DASHBOARD CARDS 2x2 */
    [b-wsne5uldtt] .bento-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    [b-wsne5uldtt] .bento-hero {
        grid-column: span 1 !important;
        min-height: auto !important;
    }

    [b-wsne5uldtt] .hero-kpi-card {
        min-height: auto !important;
        padding: 16px 18px !important;
    }

    [b-wsne5uldtt] .hero-kpi-value {
        font-size: 32px !important;
    }

    [b-wsne5uldtt] .bento-stack {
        grid-column: span 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    [b-wsne5uldtt] .mini-kpi-card {
        padding: 14px !important;
        min-height: 108px !important;
        border-radius: 14px !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
    }

    [b-wsne5uldtt] .mini-kpi-value {
        font-size: 22px !important;
        color: var(--text-primary) !important;
    }

    /* TABLE TO CARD */
    [b-wsne5uldtt] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    [b-wsne5uldtt] .modern-table table,
    [b-wsne5uldtt] .modern-table thead,
    [b-wsne5uldtt] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-wsne5uldtt] .modern-table thead {
        display: none !important;
    }

    [b-wsne5uldtt] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        box-shadow: var(--shadow-xs) !important;
    }

    [b-wsne5uldtt] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-wsne5uldtt] .modern-table .mud-table-cell.cell-main-info,
        [b-wsne5uldtt] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-wsne5uldtt] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

        [b-wsne5uldtt] .modern-table .cell-main-info > div {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            width: 100%;
            min-width: 0;
        }

    [b-wsne5uldtt] .mobile-only-subtitle {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        margin-top: 4px;
        line-height: 1.4;
    }

    [b-wsne5uldtt] .mobile-only-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 6px rgba(5,150,105,0.25) !important;
    }

    [b-wsne5uldtt] .mobile-stats-container {
        display: block;
    }

    /* چیدمان موبایل: راست اسم | وسط آمار */
    [b-wsne5uldtt] .district-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
    }

    [b-wsne5uldtt] .district-right {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    [b-wsne5uldtt] .district-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex: 0 0 auto !important;
        min-width: 78px !important;
    }

    [b-wsne5uldtt] .district-name {
        font-size: 13.5px !important;
    }

    [b-wsne5uldtt] .district-city {
        font-size: 11px !important;
    }
}

@media (min-width: 768px) {
    [b-wsne5uldtt] .mobile-only-btn {
        display: none !important;
    }
}
/* _content/EhsanWeb/Components/Pages/ManageHousehold.razor.rz.scp.css */
/* ============================================================
   MANAGE HOUSEHOLD PAGE CSS (100% DARK & LIGHT MODE SUPPORT)
   ============================================================ */

/* محدود ساختن عرض صفحه در دسکتاپ و جلوگیری از اسکرول افقی کل صفحه */
[b-98x8o7vyg0] .page-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ============================================================
   FIX: رفع مشکل خط افتادن روی عنوان/لیبل ورودی‌ها (Outlined Label Fix)
   ============================================================ */
[b-98x8o7vyg0] .mud-input-control > .mud-input-label.mud-input-label-outlined.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    padding: 0 6px !important;
    margin-right: -4px !important;
    z-index: 5 !important;
    width: auto !important;
    border-radius: 4px;
}

[b-98x8o7vyg0] .mud-dialog .mud-input-control > .mud-input-label.mud-shrink,
[b-98x8o7vyg0] .mobile-bottom-sheet .mud-input-control > .mud-input-label.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* ============================================================
   STICKY SECTION NAV (نوار تب چسبان بالا - کاملاً فیکس بدون بیرون زدن)
   ============================================================ */
.sticky-section-nav[b-98x8o7vyg0] {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 64px !important; /* دقیقا زیر هدر ۶۴ پیکسلی اصلی سایت */
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important; /* اسکرول افقی نرم در داخل خود نوار */

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #059669 !important; /* سبز برند امین */
    border-radius: 12px !important;
    padding: 6px !important;
    margin-top: 4px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

    .sticky-section-nav[b-98x8o7vyg0]::-webkit-scrollbar {
        display: none !important;
    }

/* کلید‌های تب */
.sec-nav-item[b-98x8o7vyg0] {
    flex: 0 0 auto !important; /* مانع کِش آمدن تب‌ها و بیرون زدن از صفحه */
    padding: 9px 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
}

    .sec-nav-item:hover[b-98x8o7vyg0] {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

    /* 🟢 تب فعال (Active) 🟢 */
    .sec-nav-item.active[b-98x8o7vyg0] {
        background: var(--bg-card) !important;
        color: #059669 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

.mud-theme-dark .sec-nav-item.active[b-98x8o7vyg0] {
    color: #10b981 !important;
}

/* ============================================================
   FORM SECTIONS (بخش‌های فرم)
   ============================================================ */
[b-98x8o7vyg0] .form-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

[b-98x8o7vyg0] .form-section {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg);
    overflow: hidden;
    scroll-margin-top: 130px !important;
    box-shadow: var(--shadow-xs) !important;
}

[b-98x8o7vyg0] .section-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-muted) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary) !important;
}

[b-98x8o7vyg0] .section-badge {
    margin-right: auto;
    background: var(--brand-glow) !important;
    color: var(--brand) !important;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--r-full);
}

[b-98x8o7vyg0] .section-body {
    padding: 16px;
}

/* ============================================================
   MEMBER CARDS (کارت اعضای خانواده)
   ============================================================ */
[b-98x8o7vyg0] .member-modern-card {
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg);
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    transition: border-color 0.2s ease;
}

[b-98x8o7vyg0] .member-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

[b-98x8o7vyg0] .member-title-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

[b-98x8o7vyg0] .member-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary) !important;
}

[b-98x8o7vyg0] .member-code {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    color: var(--text-secondary) !important;
    margin-top: 3px;
    direction: ltr;
    display: inline-block;
    text-align: right;
}

[b-98x8o7vyg0] .member-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    background: var(--bg-muted) !important;
    padding: 10px 12px;
    border-radius: var(--r-xs);
    margin-bottom: 12px;
}

[b-98x8o7vyg0] .detail-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    [b-98x8o7vyg0] .detail-item span {
        color: var(--text-disabled) !important;
        font-weight: 500;
        margin-left: 2px;
    }

[b-98x8o7vyg0] .member-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
   DOCUMENT UPLOAD BOX (آپلود مدارک و شناسنامه)
   ============================================================ */
[b-98x8o7vyg0] .doc-upload-box {
    position: relative;
    border: 2px dashed var(--border) !important;
    border-radius: var(--r-md);
    padding: 16px 12px;
    background: var(--bg-muted) !important;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    [b-98x8o7vyg0] .doc-upload-box:hover {
        border-color: var(--brand) !important;
        background: var(--brand-glow) !important;
    }

    [b-98x8o7vyg0] .doc-upload-box.has-file {
        border-color: var(--brand) !important;
        border-style: solid;
        background: rgba(5, 150, 105, 0.12) !important;
    }

[b-98x8o7vyg0] .doc-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

[b-98x8o7vyg0] .doc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    pointer-events: none;
}

[b-98x8o7vyg0] .doc-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary) !important;
}

[b-98x8o7vyg0] .doc-hint {
    font-size: 10.5px;
    color: var(--text-disabled) !important;
}

[b-98x8o7vyg0] .doc-filename {
    font-size: 10.5px;
    color: var(--brand) !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

/* ============================================================
   SAVE BAR BOTTOM (دکمه ذخیره چسبان پایین)
   ============================================================ */
[b-98x8o7vyg0] .save-bar-bottom {
    position: -webkit-sticky !important;
    position: sticky !important;
    bottom: 0px !important;
    z-index: 99 !important;
    padding: 10px;
    background: var(--bg-body) !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: var(--r-md) var(--r-md) 0 0;
    border-top: 1px solid var(--border) !important;
}

[b-98x8o7vyg0] .btn-premium {
    white-space: nowrap !important;
}

/* ============================================================
   RESPONSIVE (موبایل و تبلت)
   ============================================================ */
@media (max-width: 767px) {
    [b-98x8o7vyg0] .mud-input-control > .mud-input-label.mud-shrink {
        font-size: 11.5px !important;
    }

    .sticky-section-nav[b-98x8o7vyg0] {
        top: 56px !important; /* هدر در موبایل ۵۶ پیکسل است */
        border-radius: 10px !important;
        padding: 4px 6px !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
    }

    .sec-nav-item[b-98x8o7vyg0] {
        padding: 8px 11px !important;
        font-size: 12px !important;
    }

    [b-98x8o7vyg0] .member-details-grid {
        grid-template-columns: 1fr;
    }

    [b-98x8o7vyg0] .section-body {
        padding: 12px;
    }

    [b-98x8o7vyg0] .form-section {
        scroll-margin-top: 105px !important;
    }
}
/* _content/EhsanWeb/Components/Pages/Provinces.razor.rz.scp.css */
/* ============================================================
   PROVINCES & GREEN TABS CSS — ISOLATION (100% DARK & LIGHT)
   ============================================================ */
[b-04xrvxj9l7] .page-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

[b-04xrvxj9l7] .responsive-header {
    margin-bottom: 20px;
}

[b-04xrvxj9l7] .mt-2-mobile {
    margin-top: 0;
}

/* ============================================================
   TABLE STYLING
   ============================================================ */
[b-04xrvxj9l7] .district-icon-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(5, 150, 105, 0.12) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-04xrvxj9l7] .geo-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

[b-04xrvxj9l7] .tag-purple {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

[b-04xrvxj9l7] .cell-action-btn .d-flex {
    justify-content: center;
    align-items: center;
}

[b-04xrvxj9l7] .btn-premium {
    white-space: nowrap !important;
}

[b-04xrvxj9l7] .mobile-stats-container {
    display: none;
}

/* ============================================================
   MOBILE BOTTOM SHEET
   ============================================================ */
[b-04xrvxj9l7] .mobile-bottom-sheet {
    align-self: flex-end !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25) !important;
    animation: slideUpProvince-b-04xrvxj9l7 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-top: 6px !important;
}

    [b-04xrvxj9l7] .mobile-bottom-sheet::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background: var(--bg-muted-strong);
        border-radius: 4px;
        margin: 6px auto 8px;
    }

@keyframes slideUpProvince-b-04xrvxj9l7 {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

[b-04xrvxj9l7] .mobile-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

[b-04xrvxj9l7] .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-muted) !important;
    border-radius: 12px;
    font-size: 12.5px;
}

    [b-04xrvxj9l7] .detail-row .label {
        color: var(--text-secondary) !important;
        font-weight: 600;
    }

    [b-04xrvxj9l7] .detail-row .value {
        color: var(--text-primary) !important;
        font-weight: 800;
    }

/* ============================================================
   FIX: OUTLINED INPUT LABEL HOLE IN DARK MODE
   ============================================================ */
[b-04xrvxj9l7] .mud-input-control > .mud-input-label.mud-input-label-outlined.mud-shrink {
    background-color: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    padding: 0 6px !important;
    z-index: 5 !important;
    width: auto !important;
}

[b-04xrvxj9l7] .mud-dialog .mud-input-control > .mud-input-label.mud-shrink {
    background-color: var(--bg-card) !important;
}

/* ============================================================
   GREEN TABS (نوار تب سبز برند امین — انطباق ۱۰۰٪ با دارک‌مود)
   ============================================================ */
[b-04xrvxj9l7] .modern-tabs .mud-tabs-toolbar {
    background: #059669 !important; /* سبز برند */
    border-radius: 14px 14px 0 0 !important;
    padding: 6px 8px 0 8px !important;
    min-height: 46px !important;
}

[b-04xrvxj9l7] .modern-tabs .mud-tab {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.85) !important; /* تب غیرفعال: سفید */
    border-radius: 12px 12px 0 0 !important;
    text-transform: none !important;
    min-height: 40px !important;
    padding: 0 18px !important;
}

    /* 🟢 تب فعال در حالت روشن و دارک‌مود به صورت پویا */
    [b-04xrvxj9l7] .modern-tabs .mud-tab.mud-tab-active {
        background: var(--bg-card) !important;
        color: var(--brand) !important;
        font-weight: 800 !important;
    }

[b-04xrvxj9l7] .modern-tabs .mud-tab-slider {
    display: none !important;
}

[b-04xrvxj9l7] .modern-tabs .mud-badge {
    background: #f59e0b !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 10.5px !important;
}

[b-04xrvxj9l7] .modern-tabs .mud-tab.mud-tab-active .mud-badge {
    background: #059669 !important;
    color: #ffffff !important;
}

[b-04xrvxj9l7] .modern-tabs .mud-tabs-panels {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    [b-04xrvxj9l7] .mt-2-mobile {
        margin-top: 8px;
    }

    [b-04xrvxj9l7] .w-100-mobile {
        width: 100% !important;
    }

    [b-04xrvxj9l7] .hide-on-mobile {
        display: none !important;
    }

    /* DASHBOARD CARDS 2x2 */
    [b-04xrvxj9l7] .bento-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    [b-04xrvxj9l7] .bento-hero {
        grid-column: span 1 !important;
        min-height: auto !important;
    }

    [b-04xrvxj9l7] .hero-kpi-card {
        min-height: auto !important;
        padding: 16px 18px !important;
    }

    [b-04xrvxj9l7] .hero-kpi-value {
        font-size: 32px !important;
    }

    [b-04xrvxj9l7] .bento-stack {
        grid-column: span 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    [b-04xrvxj9l7] .mini-kpi-card {
        padding: 14px !important;
        min-height: 108px !important;
        border-radius: 14px !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
    }

    [b-04xrvxj9l7] .mini-kpi-value {
        font-size: 22px !important;
        color: var(--text-primary) !important;
    }

    /* TABLE TO CARD */
    [b-04xrvxj9l7] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    [b-04xrvxj9l7] .modern-table table, [b-04xrvxj9l7] .modern-table thead, [b-04xrvxj9l7] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-04xrvxj9l7] .modern-table thead {
        display: none !important;
    }

    [b-04xrvxj9l7] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        box-shadow: var(--shadow-xs) !important;
    }

    [b-04xrvxj9l7] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-04xrvxj9l7] .modern-table .mud-table-cell.cell-main-info,
        [b-04xrvxj9l7] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-04xrvxj9l7] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

        [b-04xrvxj9l7] .modern-table .cell-main-info > div {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            width: 100%;
            min-width: 0;
        }

    [b-04xrvxj9l7] .mobile-only-subtitle {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        margin-top: 4px;
        line-height: 1.4;
    }

    [b-04xrvxj9l7] .mobile-only-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 6px rgba(5,150,105,0.25) !important;
    }

    [b-04xrvxj9l7] .mobile-stats-container {
        display: block;
    }
}

@media (min-width: 768px) {
    [b-04xrvxj9l7] .mobile-only-btn, [b-04xrvxj9l7] .mobile-only-subtitle {
        display: none !important;
    }
}
/* _content/EhsanWeb/Components/Pages/WarehouseDashboard.razor.rz.scp.css */
/* ============================================================
   WAREHOUSE DASHBOARD STYLES (100% LIGHT & DARK MODE SUPPORT)
   سیستم استایل یکپارچه داشبورد انبارداری و چیدمان ریسپانسیو
   ============================================================ */

/* ═══ ظرف اصلی صفحه و هدر ═══ */
.page-container[b-am2x057gho] {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.responsive-header[b-am2x057gho] {
    margin-bottom: 16px;
}

.mt-2-mobile[b-am2x057gho] {
    margin-top: 0;
}

/* ═══ چیدمان دو ستونه قرینه روی مانیتور (PC Grid) ═══ */
.dashboard-pc-grid[b-am2x057gho] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bg-white-select[b-am2x057gho] {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-radius: var(--r-xs) !important;
}

/* ============================================================
   TABLE-TO-CARD & ITEM CARDS (کارت‌های لیست و اقلام)
   ============================================================ */
.client-card-item[b-am2x057gho] {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-xs) !important;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-xs) !important;
    transition: all 0.2s ease;
}

    .client-card-item:hover[b-am2x057gho] {
        border-color: var(--border-hover, var(--brand-light)) !important;
    }

/* خط نشانگر اخطار / کسری موجودی در حالت RTL */
.border-left-danger[b-am2x057gho],
.border-danger-custom[b-am2x057gho] {
    border-right: 4px solid var(--accent-rose, #f43f5e) !important;
    background-color: rgba(244, 63, 94, 0.06) !important;
}

.border-warning-custom[b-am2x057gho] {
    border-right: 4px solid var(--accent-amber, #f59e0b) !important;
    background-color: rgba(245, 158, 11, 0.06) !important;
}

.border-success-custom[b-am2x057gho] {
    border-right: 4px solid var(--brand-light, #10b981) !important;
    background-color: rgba(16, 185, 129, 0.06) !important;
}

.client-row-layout[b-am2x057gho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.client-right[b-am2x057gho] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.client-meta-box[b-am2x057gho] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    text-align: right;
}

.client-name-title[b-am2x057gho] {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary) !important;
}

.mobile-subtitle-text[b-am2x057gho] {
    font-size: 11px;
    color: var(--text-secondary) !important;
}

.district-icon-avatar[b-am2x057gho] {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    color: var(--brand-light);
}

/* ============================================================
   BENTO INTERNAL ELEMENTS (المان‌های شبکه‌ای بنتو)
   ============================================================ */
.campaign-progress-card[b-am2x057gho] {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-md) !important;
    padding: 14px;
    box-shadow: var(--shadow-xs) !important;
}

.list-item-container[b-am2x057gho] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-list-card[b-am2x057gho] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-xs) !important;
    padding: 10px 12px;
}

/* ============================================================
   RESPONSIVE DESIGN (موبایل و تبلت)
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-pc-grid[b-am2x057gho] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .mt-2-mobile[b-am2x057gho] {
        margin-top: 8px;
    }

    .w-100-mobile[b-am2x057gho] {
        width: 100% !important;
    }

    .hide-on-mobile[b-am2x057gho] {
        display: none !important;
    }

    .search-box-worker[b-am2x057gho] {
        max-width: 100%;
    }

    /* KPI Grid ۲×۲ موبایل */
    .bento-grid[b-am2x057gho] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .bento-hero[b-am2x057gho] {
        grid-column: span 1 !important;
        min-height: auto !important;
    }

    .hero-kpi-card[b-am2x057gho] {
        padding: 16px !important;
        border-radius: var(--r-md) !important;
    }

    .hero-kpi-value[b-am2x057gho] {
        font-size: 28px !important;
    }

    .bento-stack[b-am2x057gho] {
        grid-column: span 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .mini-kpi-card[b-am2x057gho] {
        padding: 12px !important;
        min-height: 90px !important;
        border-radius: var(--r-sm) !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
    }

    .mini-kpi-value[b-am2x057gho] {
        font-size: 20px !important;
        color: var(--text-primary) !important;
    }

    /* ═══ تبدیل هوشمند جدول MudTable به کارت‌های موبایل ═══ */
    [b-am2x057gho] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    [b-am2x057gho] .modern-table table,
    [b-am2x057gho] .modern-table thead,
    [b-am2x057gho] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-am2x057gho] .modern-table thead {
        display: none !important;
    }

    [b-am2x057gho] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-card) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--r-sm) !important;
        margin-bottom: 8px !important;
        padding: 12px !important;
        box-shadow: var(--shadow-xs) !important;
    }

    [b-am2x057gho] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-am2x057gho] .modern-table .mud-table-cell.cell-main-info,
        [b-am2x057gho] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-am2x057gho] .modern-table .cell-main-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .mobile-only-subtitle[b-am2x057gho] {
        display: block !important;
        font-size: 11px !important;
        font-weight: 600;
        color: var(--text-secondary) !important;
        margin-top: 3px;
        line-height: 1.4;
    }
}
/* _content/EhsanWeb/Components/Pages/Workers.razor.rz.scp.css */
/* ============================================================
   WORKERS PAGE CSS — ISOLATION (100% LIGHT & DARK MODE SUPPORT)
   ============================================================ */

[b-31xud12e05] .page-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================================
   MODERN TABS (تب‌های فوقانی مددکاران)
   ============================================================ */
[b-31xud12e05] .modern-tabs .mud-tabs-toolbar {
    background: #059669 !important; /* سبز برند امین */
    border-radius: var(--r-md) var(--r-md) 0 0 !important;
    padding: 6px 8px 0 8px !important;
    min-height: 46px !important;
}

[b-31xud12e05] .modern-tabs .mud-tabs-toolbar,
[b-31xud12e05] .modern-tabs .mud-tabs-tabbar-inner {
    justify-content: center !important;
}

[b-31xud12e05] .modern-tabs .mud-tab {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: var(--r-md) var(--r-md) 0 0 !important;
    text-transform: none !important;
    min-height: 40px !important;
    padding: 0 18px !important;
}

    [b-31xud12e05] .modern-tabs .mud-tab.mud-tab-active {
        background: var(--bg-card) !important;
        color: var(--brand) !important;
        font-weight: 800 !important;
    }

[b-31xud12e05] .modern-tabs .mud-tab-slider {
    display: none !important;
}

[b-31xud12e05] .modern-tabs .mud-badge {
    background: var(--accent-amber) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 10.5px !important;
}

[b-31xud12e05] .modern-tabs .mud-tab.mud-tab-active .mud-badge {
    background: #059669 !important;
    color: #ffffff !important;
}

/* ============================================================
   TABLE ACTIONS & CENTER ALIGNMENT (تراز دقیق جدول)
   ============================================================ */
[b-31xud12e05] .modern-table th,
[b-31xud12e05] .modern-table td {
    text-align: center !important;
}

    [b-31xud12e05] .modern-table td .d-flex {
        justify-content: center !important;
    }

[b-31xud12e05] .cell-action-btn .btn-premium {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
}

[b-31xud12e05] .cell-action-btn .d-flex {
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
}

/* ============================================================
   BOTTOM SHEET (پاپ‌آپ حرفه‌ای موبایل)
   ============================================================ */
[b-31xud12e05] .mobile-bottom-sheet {
    align-self: flex-end !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25) !important;
    animation: slideUpMobile-b-31xud12e05 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-top: 6px !important;
}

    /* دستگیره بالای پاپ‌آپ */
    [b-31xud12e05] .mobile-bottom-sheet::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background: var(--bg-muted-strong);
        border-radius: 4px;
        margin: 6px auto 8px;
    }

@keyframes slideUpMobile-b-31xud12e05 {
    from {
        transform: translateY(100%);
        opacity: 0.5;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* لیست جزئیات درون Bottom Sheet */
[b-31xud12e05] .mobile-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

[b-31xud12e05] .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-muted) !important;
    border-radius: 12px;
    font-size: 12.5px;
}

    [b-31xud12e05] .detail-row .label {
        color: var(--text-secondary) !important;
        font-weight: 600;
    }

    [b-31xud12e05] .detail-row .value {
        color: var(--text-primary) !important;
        font-weight: 800;
    }

    [b-31xud12e05] .detail-row.rejection-box {
        background: rgba(244, 63, 94, 0.12) !important;
        border: 1px dashed rgba(244, 63, 94, 0.35) !important;
    }

/* ============================================================
   RESPONSIVE (موبایل و تبلت)
   ============================================================ */
@media (max-width: 767px) {

    /* --- داشبورد KPI: چیدمان مرتب 2×2 در موبایل --- */
    [b-31xud12e05] .bento-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    [b-31xud12e05] .bento-hero {
        grid-column: span 1 !important;
        min-height: auto !important;
    }

    [b-31xud12e05] .hero-kpi-card {
        min-height: auto !important;
        padding: 16px 18px !important;
    }

    [b-31xud12e05] .hero-kpi-value {
        font-size: 32px !important;
    }

    /* چهار کارت زیر شبکه 2×2 */
    [b-31xud12e05] .bento-stack {
        grid-column: span 1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    [b-31xud12e05] .mini-kpi-card {
        padding: 14px !important;
        min-height: 108px !important;
        border-radius: 14px !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
    }

    [b-31xud12e05] .mini-kpi-value {
        font-size: 22px !important;
        color: var(--text-primary) !important;
    }

    [b-31xud12e05] .mini-kpi-label {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: var(--text-secondary) !important;
    }

    [b-31xud12e05] .icon-box-sm {
        width: 34px !important;
        height: 34px !important;
    }

    /* --- عمومی موبایل --- */
    [b-31xud12e05] .w-100-mobile {
        width: 100% !important;
    }

    [b-31xud12e05] .hide-on-mobile {
        display: none !important;
    }

    /* --- جدول → کارت افقی در موبایل --- */
    [b-31xud12e05] .modern-table .mud-table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    [b-31xud12e05] .modern-table table,
    [b-31xud12e05] .modern-table thead,
    [b-31xud12e05] .modern-table tbody {
        display: block !important;
        width: 100% !important;
    }

    [b-31xud12e05] .modern-table thead {
        display: none !important;
    }

    [b-31xud12e05] .modern-table .mud-table-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        box-shadow: var(--shadow-xs) !important;
    }

    [b-31xud12e05] .modern-table .mud-table-cell {
        display: none !important;
        border: none !important;
        padding: 0 !important;
    }

        [b-31xud12e05] .modern-table .mud-table-cell.cell-main-info,
        [b-31xud12e05] .modern-table .mud-table-cell.cell-action-btn {
            display: flex !important;
            align-items: center !important;
        }

    [b-31xud12e05] .mobile-only-subtitle {
        display: block !important;
        font-size: 11px !important;
        color: var(--text-secondary) !important;
        margin-top: 2px;
    }

    [b-31xud12e05] .mobile-only-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 6px rgba(5,150,105,0.25) !important;
    }
}

@media (min-width: 768px) {
    [b-31xud12e05] .mobile-only-btn,
    [b-31xud12e05] .mobile-only-subtitle {
        display: none !important;
    }
}
