﻿/* ========================================================
   🎨 UPGRADED THEME – مدرن + پرانرژی
   نام کلاس‌ها تغییر نکرده‌اند
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

/* ========== متغیرهای پایه ========== */
:root {
    --primary: #5B21B6; /* بنفش پررنگ‌تر */
    --primary-dark: #4338CA;
    --primary-light: #C4B5FD;
    --secondary: #0F172A;
    --accent: #10B981; /* سبز زنده */
    --accent-2: #F59E0B;
    --accent-3: #EF4444; /* قرمز تند */
    --accent-4: #0EA5E9;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #0F172A;
    --light-bg: #F1F5F9;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-hover: rgba(255, 255, 255, 0.98);
    --border-light: rgba(91, 33, 182, 0.12);
    --text-main: #111827;
    --text-soft: #374151;
    --shadow-card: 0 6px 24px rgba(91, 33, 182, 0.12), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 45px rgba(91, 33, 182, 0.25), 0 6px 18px rgba(0,0,0,0.08);
    --shadow-btn: 0 6px 18px rgba(91, 33, 182, 0.35);
    --radius-xl: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 100px;
}

/* ========== تنظیمات عمومی ========== */
body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    font-size: 16.5px;
    background: linear-gradient(135deg, #F0F2FF 0%, #F8FAFF 50%, #EEF9F5 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* ========== پس‌زمینه (Finance Pattern) ========== */
.finance-bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #F0F2FF;
    background-image: radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.06) 1px, transparent 1px), radial-gradient(circle at 80% 80%, rgba(6, 214, 160, 0.05) 1px, transparent 1px), repeating-linear-gradient(45deg, rgba(108,99,255,0.03) 0px, rgba(108,99,255,0.03) 1px, transparent 1px, transparent 12px), repeating-linear-gradient(-45deg, rgba(6,214,160,0.025) 0px, rgba(6,214,160,0.025) 1px, transparent 1px, transparent 12px);
    background-size: 80px 80px, 80px 80px, 40px 40px, 40px 40px;
    pointer-events: none;
}

/* ========== کارت‌ها ========== */
.card-bordered,
.card {
    background: var(--surface) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-light) !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .card:hover,
    .card-bordered:hover {
        background: var(--surface-hover) !important;
        box-shadow: var(--shadow-hover);
        transform: translateY(-4px);
    }

.card-inner {
    padding: 1.6rem;
    overflow: visible !important;
}

/* ========== عنوان صفحه ========== */
.nk-block-title {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6C63FF 0%, #06D6A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

    .nk-block-title.page-title {
        font-size: 1.85rem;
        font-weight: 800;
        background: linear-gradient(135deg, #6C63FF 0%, #EF476F 60%, #FFD166 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1.5rem;
    }

/* ========== دکمه‌ها ========== */
.btn {
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.55rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0);
        transition: background 0.2s;
        border-radius: inherit;
    }

    .btn:hover::before {
        background: rgba(255,255,255,0.12);
    }

.btn-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #9B59F5 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(108, 99, 255, 0.38);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(108, 99, 255, 0.5) !important;
    }

.btn-success {
    background: linear-gradient(135deg, #06D6A0, #04A877) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(6, 214, 160, 0.35);
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(6, 214, 160, 0.48) !important;
    }

.btn-warning {
    background: linear-gradient(135deg, #FFD166, #FF9F43) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(255, 159, 67, 0.38);
}

    .btn-warning:hover {
        transform: translateY(-2px);
    }

.btn-danger {
    background: linear-gradient(135deg, #EF476F, #C0392B) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(239, 71, 111, 0.35);
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #d63060, #a93226) !important;
        transform: translateY(-2px);
    }

.btn-outline-primary {
    border: 2px solid #6C63FF !important;
    color: #6C63FF !important;
    background: transparent !important;
}

    .btn-outline-primary:hover {
        background: #6C63FF !important;
        color: #fff !important;
        box-shadow: 0 6px 18px rgba(108,99,255,0.35);
    }

.btn-sm {
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
}

/* ========== فیلدهای ورودی ========== */
.form-control,
.form-select {
    border: 2px solid rgba(108, 99, 255, 0.12) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 1rem !important;
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(4px);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    font-family: 'Vazirmatn', sans-serif;
    border: 2px solid rgba(91, 33, 182, 0.18) !important;
    border-radius: 12px !important;
    padding: 0.7rem 1.1rem !important;
    font-size: 0.95rem !important;
    color: #111827;
    background: #ffffff !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #5B21B6 !important;
        box-shadow: 0 0 0 5px rgba(91, 33, 182, 0.18) !important;
        background: #fff !important;
        outline: none;
    }

.form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.3rem;
    letter-spacing: 0.01em;
}

/* ========== بج ========== */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    padding: 0.3em 0.7em;
    letter-spacing: 0.02em;
}

    .badge.bg-success {
        background: linear-gradient(135deg, #06D6A0, #04A877) !important;
        border-radius: 100px;
        padding: 0.3em 0.75em;
        font-weight: 600;
    }

small, .small {
    font-size: 0.83rem;
}

/* ========== جداول ========== */
.table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        background: linear-gradient(135deg, #5B21B6, #7C3AED) !important;
        color: #ffffff !important;
        font-weight: 700;
        font-size: 0.88rem;
        padding: 1rem 0.9rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        border-bottom: 2px solid rgba(108,99,255,0.15);

    }

    .table tbody tr {
        border-bottom: 1px solid rgba(108,99,255,0.06);
        transition: all 0.18s ease;
    }

        .table tbody tr:hover {
            background: rgba(91, 33, 182, 0.06) !important;
        }

    .table th,
    .table td {
        padding: 0.85rem 0.9rem;
        font-size: 1.0rem;
        color: #1F2937;
        vertical-align: middle;
        border-right: 1px solid rgba(108,99,255,0.07);
    }

        .table th:last-child,
        .table td:last-child {
            border-right: none;
        }

/* ========== صفحه‌بندی ========== */
.pagination .page-link {
    border-radius: var(--radius-pill) !important;
    margin: 0 3px;
    border: none;
    background: rgba(255,255,255,0.85);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

    .pagination .page-link:hover {
        background: rgba(108,99,255,0.1);
        color: #6C63FF;
        transform: translateY(-1px);
    }

.pagination .active .page-link {
    background: linear-gradient(135deg, #6C63FF, #9B59F5) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.4);
}

/* ========== تب‌ها ========== */
.nav-tabs {
    border-bottom: 2px solid rgba(108,99,255,0.1);
    gap: 0.4rem;
    flex-wrap: wrap;
}

    .nav-tabs .nav-link {
        border: none;
        border-radius: var(--radius-pill);
        padding: 0.6rem 1.4rem;
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-soft);
        background: transparent;
        transition: all 0.22s ease;
    }

        .nav-tabs .nav-link:hover {
            background: rgba(108,99,255,0.08);
            color: #6C63FF;
        }

        .nav-tabs .nav-link.active {
            background: linear-gradient(135deg, #5B21B6, #7C3AED);
            color: #fff;
            box-shadow: 0 6px 18px rgba(91, 33, 182, 0.4);
        }

        .nav-tabs .nav-link .badge {
            background: rgba(0,0,0,0.12);
            margin-right: 0.4rem;
            padding: 0.18rem 0.5rem;
            border-radius: 100px;
            font-size: 0.68rem;
        }

        .nav-tabs .nav-link.active .badge {
            background: rgba(255,255,255,0.22);
            color: white;
        }

/* ========== حالت خالی ========== */
.empty-state {
    text-align: center;
    padding: 2.5rem;
    background: rgba(108,99,255,0.03);
    border-radius: var(--radius-xl);
    border: 1.5px dashed rgba(108,99,255,0.2);
    color: var(--text-soft);
}

    .empty-state .icon {
        font-size: 2.8rem;
        margin-bottom: 0.75rem;
        display: inline-block;
        filter: drop-shadow(0 4px 8px rgba(108,99,255,0.2));
    }

/* ========== DatePicker ========== */
.rmdp-container .rmdp-input,
.rmdp-input {
    border: 2px solid rgba(108,99,255,0.12) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.92rem !important;
    transition: all 0.25s;
    font-family: 'Vazirmatn', sans-serif;
}

    .rmdp-input:focus {
        border-color: #6C63FF !important;
        box-shadow: 0 0 0 4px rgba(108,99,255,0.12) !important;
    }

.rmdp-calendar {
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    overflow: hidden;
}

.rmdp-header {
    background: linear-gradient(135deg, #6C63FF, #9B59F5);
}

.rmdp-day.rmdp-selected span {
    background: linear-gradient(135deg, #6C63FF, #9B59F5) !important;
}

.rmdp-container {
    position: relative;
    width: 100%;
}

.rmdp-wrapper {
    z-index: 9999 !important;
}

.rmdp-time-picker {
    border-top: 1px solid rgba(108,99,255,0.1);
    background: #fff;
    padding: 8px 12px;
    direction: ltr;
}

    .rmdp-time-picker input {
        text-align: center;
        font-family: monospace;
    }

@media (max-width: 768px) {
    .rmdp-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 350px;
    }
}

/* ========== کارت‌های آیتم ========== */
.item-card {
    background: var(--surface) !important;
    border-radius: var(--radius-xl) !important;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light) !important;
    transition: all 0.25s ease;
    overflow: visible !important;
    box-shadow: var(--shadow-card);
}

    .item-card:hover {
        border-color: rgba(108,99,255,0.25) !important;
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .item-card .card-header {
        background: linear-gradient(135deg, rgba(108,99,255,0.05), rgba(108,99,255,0.01));
        padding: 0.85rem 1.3rem;
        font-weight: 700;
        border-bottom: 1px solid rgba(108,99,255,0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .item-card .card-body {
        padding: 1.3rem;
    }

/* ========== دکمه افزودن ========== */
.add-new-btn {
    background: transparent;
    border: 1.5px dashed rgba(108,99,255,0.4) !important;
    color: #6C63FF;
    border-radius: var(--radius-pill);
    padding: 0.42rem 1.1rem;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .add-new-btn:hover {
        background: rgba(108,99,255,0.08);
        border-style: solid;
        transform: translateY(-1px);
        color: #4F46E5;
    }

/* ========== دکمه آیکونی ========== */
.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius-sm) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .btn-icon:hover {
        transform: scale(1.08);
    }

/* ========== دکمه‌های Lookup ========== */
.lookup-action-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(108,99,255,0.15);
    color: #64748b;
    box-sizing: border-box;
}

    .lookup-action-btn:hover {
        background: rgba(108,99,255,0.08);
        border-color: #6C63FF;
        color: #6C63FF;
        transform: translateY(-1px);
    }

    .lookup-action-btn:active {
        transform: translateY(1px);
    }

.lookup-action-btn-primary {
    background: linear-gradient(135deg, #6C63FF, #9B59F5) !important;
    border-color: transparent !important;
    color: white !important;
}

    .lookup-action-btn-primary:hover {
        box-shadow: 0 6px 16px rgba(108,99,255,0.4);
        color: white !important;
    }

.lookup-action-btn-edit {
    background: linear-gradient(135deg, #fff9e6, #fff3cc) !important;
    border-color: rgba(255,209,102,0.4) !important;
    color: #b45309 !important;
}

    .lookup-action-btn-edit:hover {
        background: linear-gradient(135deg, #fff3cc, #ffe99a) !important;
        color: #92400e !important;
        border-color: rgba(255,209,102,0.7) !important;
    }

.lookup-btn-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

    .lookup-btn-group .form-control {
        flex: 1;
    }

/* ========== دکمه‌های اکشن ========== */
.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

    .action-buttons .btn {
        padding: 0.55rem 1.6rem;
        border-radius: var(--radius-pill);
    }

/* ========== مودال‌ها ========== */
.modal.show.d-block {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 1050;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(24px);
}

.modal-header {
    border-bottom: 1px solid rgba(108,99,255,0.08);
    padding: 1.3rem 1.6rem;
}

.modal-body {
    overflow: visible !important;
}

.account-selector-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto !important;
    padding: 1rem;
}

/* ========== یادآور وظایف ========== */
.task-notification {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 30px rgba(255,159,67,0.25);
    background: linear-gradient(135deg, #FFF9E6, #FFF0CC);
    border-left: 5px solid #FFD166;
}

.task-reminder-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    max-width: 400px;
    background: linear-gradient(135deg, #FFF9E6, #FFEED4);
    border-right: 4px solid #FFD166;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(255,159,67,0.2);
    padding: 0.85rem 1.1rem;
}

    .task-reminder-alert .btn-close {
        font-size: 0.7rem;
    }

/* ========== تایم‌لاین ========== */
.timeline {
    position: relative;
    padding: 0.5rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1rem;
    direction: rtl;
}

.timeline-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(108,99,255,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108,99,255,0.1);
}

.timeline-content {
    flex: 1;
    background: rgba(255,255,255,0.75);
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    border-right: 3px solid #6C63FF;
    box-shadow: var(--shadow-card);
}

/* ========== وظایف ========== */
.bg-danger-soft {
    background: linear-gradient(135deg, #fff0f3, #ffe6ec);
    border-right: 5px solid #EF476F;
}

.bg-warning-soft {
    background: linear-gradient(135deg, #fffbf0, #fff4d0);
    border-right: 5px solid #FFD166;
}

.task-item {
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

    .task-item:hover {
        background-color: rgba(108,99,255,0.03);
        transform: translateX(-3px);
    }

/* ========== نمودارها ========== */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 280px;
    margin: 0 auto;
}

.card-chart {
    transition: all 0.25s ease;
}

    .card-chart:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

    .card-chart .card-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2.5px solid rgba(108,99,255,0.2);
        display: inline-block;
        color: var(--text-main);
    }

.doughnut-container,
.pie-container {
    max-width: 260px;
    margin: 0 auto;
}

.line-chart-wrapper,
.bar-chart-wrapper {
    height: 260px;
    width: 100%;
}

.chartjs-tooltip {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

/* ========== KPI Cards (Stat Cards) ========== */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    border-radius: 22px !important;
    color: #fff !important;
}

    .stat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 48px rgba(0,0,0,0.22) !important;
    }

    .stat-card::after {
        content: '';
        position: absolute;
        bottom: -25px;
        right: -25px;
        width: 110px;
        height: 110px;
        background: rgba(255,255,255,0.12);
        border-radius: 50%;
        z-index: 0;
        transition: all 0.35s;
    }

    .stat-card:hover::after {
        transform: scale(1.25);
        right: -18px;
        bottom: -18px;
    }

    .stat-card .card-inner {
        position: relative;
        z-index: 2;
    }

    .stat-card .nk-wg-title,
    .stat-card h6 {
        color: rgba(255,255,255,0.82) !important;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .stat-card .nk-wg-number,
    .stat-card .nk-wg-title,
    .stat-card .nk-wg-text,
    .stat-card h3,
    .stat-card h2 {
        color: #ffffff !important;
        font-size: 2rem;
        font-weight: 800;
    }

    .stat-card .nk-wg-text,
    .stat-card small {
        color: rgba(255,255,255,0.72) !important;
    }

    .stat-card .btn-outline-primary {
        border-color: rgba(255,255,255,0.6) !important;
        color: rgba(255,255,255,0.9) !important;
    }

        .stat-card .btn-outline-primary:hover {
            background: rgba(255,255,255,0.2) !important;
            color: #fff !important;
        }

/* رنگ‌های Stat Cards */
.stat-card-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #9B59F5 100%) !important;
    box-shadow: 0 10px 30px rgba(108,99,255,0.4) !important;
}

    .stat-card-primary:hover {
        background: linear-gradient(135deg, #6C63FF 0%, #9B59F5 100%) !important;
    }

.stat-card-success {
    background: linear-gradient(135deg, #06D6A0 0%, #00B884 100%) !important;
    box-shadow: 0 10px 30px rgba(6,214,160,0.4) !important;
}

    .stat-card-success:hover {
        background: linear-gradient(135deg, #06D6A0 0%, #00B884 100%) !important;
    }

.stat-card-warning {
    background: linear-gradient(135deg, #FF6B9D 0%, #EF476F 100%) !important;
    box-shadow: 0 10px 30px rgba(239,71,111,0.38) !important;
}

    .stat-card-warning:hover {
        background: linear-gradient(135deg, #FF6B9D 0%, #EF476F 100%) !important;
    }

.stat-card-info {
    background: linear-gradient(135deg, #118AB2 0%, #06D6E8 100%) !important;
    box-shadow: 0 10px 30px rgba(17,138,178,0.4) !important;
}

    .stat-card-info:hover {
        background: linear-gradient(135deg, #118AB2 0%, #06D6E8 100%) !important;
    }

.stat-card-full,
.stat-card-dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
}

    .stat-card-full:hover,
    .stat-card-dark:hover {
        background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    }

/* ========== KPI Cards ========== */
.kpi-card {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-radius: 22px !important;
    padding: 1.5rem !important;
    color: #ffffff !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

    .kpi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 45px rgba(0,0,0,0.22);
    }

    .kpi-card .kpi-icon {
        font-size: 2.5rem;
        opacity: 0.22;
    }

    .kpi-card .kpi-title {
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: rgba(255,255,255,0.8);
        margin-bottom: 0.5rem;
    }

    .kpi-card .kpi-number {
        font-size: 2.1rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        letter-spacing: -0.02em;
    }

    .kpi-card .kpi-text {
        font-size: 0.83rem;
        color: rgba(255,255,255,0.7);
    }

    .kpi-card .kpi-link {
        color: #ffffff;
        text-decoration: underline;
        font-weight: 600;
        font-size: 0.83rem;
    }

.kpi-card-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #9B59F5 100%) !important;
}

.kpi-card-success {
    background: linear-gradient(135deg, #06D6A0 0%, #00B884 100%) !important;
}

.kpi-card-warning {
    background: linear-gradient(135deg, #FF6B9D 0%, #EF476F 100%) !important;
}

.kpi-card-info {
    background: linear-gradient(135deg, #118AB2 0%, #06D6E8 100%) !important;
}

.kpi-card-full {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
}

/* ========== تاریخچه ارجاع (Assignment Timeline) ========== */
.assignment-timeline {
    position: relative;
    padding: 1rem 0;
    direction: rtl;
}

    .assignment-timeline::before {
        content: '';
        position: absolute;
        right: 20px;
        top: 20px;
        bottom: 20px;
        width: 3px;
        background: linear-gradient(to bottom, #6C63FF, #06D6A0, #FFD166, #EF476F, #118AB2);
        border-radius: 3px;
        box-shadow: 0 0 10px rgba(108,99,255,0.25);
    }

.assignment-item {
    position: relative;
    margin-bottom: 1.8rem;
    padding-right: 55px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    transition: transform 0.2s;
}

    .assignment-item:hover {
        transform: translateX(-4px);
    }

.assignment-badge {
    position: absolute;
    right: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6C63FF, #9B59F5);
    border: 2.5px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(108,99,255,0.18), 0 6px 14px rgba(0,0,0,0.12);
    animation: pulseGlow 2.5s infinite;
}

    .assignment-badge i {
        font-size: 1.2rem;
        color: #fff;
    }

.assignment-item:nth-child(1) .assignment-badge {
    background: linear-gradient(135deg, #6C63FF, #9B59F5);
}

.assignment-item:nth-child(2) .assignment-badge {
    background: linear-gradient(135deg, #FF6B9D, #EF476F);
}

.assignment-item:nth-child(3) .assignment-badge {
    background: linear-gradient(135deg, #118AB2, #06D6E8);
}

.assignment-item:nth-child(4) .assignment-badge {
    background: linear-gradient(135deg, #06D6A0, #00B884);
}

.assignment-item:nth-child(5) .assignment-badge {
    background: linear-gradient(135deg, #FFD166, #FF9F43);
}

.assignment-item:nth-child(6) .assignment-badge {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
}

.assignment-card {
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-xl);
    padding: 0.9rem 1.2rem;
    flex: 1;
    box-shadow: var(--shadow-card);
    border-right: 5px solid;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.assignment-item:nth-child(1) .assignment-card {
    border-right-color: #6C63FF;
}

.assignment-item:nth-child(2) .assignment-card {
    border-right-color: #EF476F;
}

.assignment-item:nth-child(3) .assignment-card {
    border-right-color: #06D6E8;
}

.assignment-item:nth-child(4) .assignment-card {
    border-right-color: #06D6A0;
}

.assignment-item:nth-child(5) .assignment-card {
    border-right-color: #FFD166;
}

.assignment-item:nth-child(6) .assignment-card {
    border-right-color: #A78BFA;
}

.assignment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.assignment-arrow {
    font-size: 1.3rem;
    color: #6C63FF;
    margin: 0 8px;
    filter: drop-shadow(0 2px 6px rgba(108,99,255,0.3));
}

.assignment-users {
    font-weight: 700;
    font-size: 1rem;
}

    .assignment-users span:first-child {
        color: #EF476F;
        background: #fff0f3;
        padding: 0.2rem 0.6rem;
        border-radius: 100px;
    }

    .assignment-users span:last-child {
        color: #118AB2;
        background: #e6f4ff;
        padding: 0.2rem 0.6rem;
        border-radius: 100px;
    }

.assignment-date {
    font-size: 0.74rem;
    background: rgba(108,99,255,0.07);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    margin-right: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
}

.assignment-assigned-by {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #fffbf0, #fff4d0);
    padding: 0.2rem 0.85rem;
    border-radius: 100px;
    margin-right: 0.5rem;
    font-weight: 600;
    color: #b45309;
}

/* ========== تعاملات (Interaction Timeline) ========== */
.interaction-timeline {
    padding: 0.5rem 0;
}

.interaction-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.85);
    border-radius: 24px;
    padding: 1.1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border-right: 5px solid;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

    .interaction-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 0% 50%, rgba(255,255,255,0.35) 0%, transparent 70%);
        pointer-events: none;
    }

    .interaction-item:hover {
        transform: translateX(-6px);
        box-shadow: var(--shadow-hover);
    }

    .interaction-item:nth-child(1) {
        border-right-color: #6C63FF;
        background: linear-gradient(135deg, rgba(108,99,255,0.04), rgba(255,255,255,0.9));
    }

    .interaction-item:nth-child(2) {
        border-right-color: #FFD166;
        background: linear-gradient(135deg, rgba(255,209,102,0.06), rgba(255,255,255,0.9));
    }

    .interaction-item:nth-child(3) {
        border-right-color: #06D6E8;
        background: linear-gradient(135deg, rgba(6,214,232,0.05), rgba(255,255,255,0.9));
    }

    .interaction-item:nth-child(4) {
        border-right-color: #06D6A0;
        background: linear-gradient(135deg, rgba(6,214,160,0.05), rgba(255,255,255,0.9));
    }

    .interaction-item:nth-child(5) {
        border-right-color: #EF476F;
        background: linear-gradient(135deg, rgba(239,71,111,0.04), rgba(255,255,255,0.9));
    }

    .interaction-item:nth-child(6) {
        border-right-color: #A78BFA;
        background: linear-gradient(135deg, rgba(167,139,250,0.05), rgba(255,255,255,0.9));
    }

.interaction-icon {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.interaction-content {
    flex: 1;
}

.interaction-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.5rem;
}

.interaction-subject {
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.8);
    padding: 0.22rem 0.85rem;
    border-radius: 100px;
}

.interaction-date {
    font-size: 0.7rem;
    color: #FF9F43;
    background: rgba(255,159,67,0.1);
    padding: 0.22rem 0.85rem;
    border-radius: 100px;
    font-weight: 600;
}

.interaction-details {
    color: var(--text-main);
    margin-top: 6px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.interaction-followup {
    margin-top: 8px;
    font-size: 0.7rem;
    background: rgba(255,209,102,0.2);
    display: inline-block;
    padding: 0.22rem 1rem;
    border-radius: 100px;
    color: #b45309;
    font-weight: 600;
}

/* ========== درختواره ========== */
.tree-node {
    position: relative;
    margin-bottom: 0.8rem;
    padding-right: 1rem;
}

    .tree-node::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, #6C63FF, #FFD166, #06D6A0, #EF476F);
        border-radius: 4px;
    }

.accounts-tree .tree-node {
    transition: all 0.2s ease;
}

    .accounts-tree .tree-node:hover {
        transform: translateX(-2px);
    }

.accounts-tree .tree-children {
    margin-right: 20px;
    border-right: 1px dashed rgba(108,99,255,0.2);
}

.tree-card {
    background: white;
    border-radius: 18px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    border-right: 4px solid;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

    .tree-card:hover {
        transform: translateX(-4px);
        box-shadow: var(--shadow-hover);
    }

    .tree-card.level-0 {
        border-right-color: #EF476F;
        background: linear-gradient(135deg, rgba(239,71,111,0.04), white);
    }

    .tree-card.level-1 {
        border-right-color: #FFD166;
        background: linear-gradient(135deg, rgba(255,209,102,0.05), white);
    }

    .tree-card.level-2 {
        border-right-color: #06D6E8;
        background: linear-gradient(135deg, rgba(6,214,232,0.04), white);
    }

    .tree-card.level-3 {
        border-right-color: #06D6A0;
        background: linear-gradient(135deg, rgba(6,214,160,0.04), white);
    }

    .tree-card.level-4 {
        border-right-color: #A78BFA;
        background: linear-gradient(135deg, rgba(167,139,250,0.04), white);
    }

.tree-subject {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.tree-date {
    font-size: 0.65rem;
    color: #FF9F43;
    background: rgba(255,159,67,0.1);
    padding: 0.12rem 0.6rem;
    border-radius: 100px;
    font-weight: 500;
}

.accounts-tree .border-bottom {
    border-bottom: 1px solid rgba(108,99,255,0.08) !important;
}

.accounts-tree .badge {
    margin-right: 8px;
}

/* ========== React Select & Table Fixes ========== */
.react-select__menu-portal,
.react-select__menu {
    z-index: 9999 !important;
}

.table-responsive {
    overflow: visible !important;
}

.card, .card-inner, .item-card,
.card-inner,
.nk-tb-item,
.nk-tb-col {
    overflow: visible !important;
}

/* ========== نوار جداول NioKit ========== */
.nk-tb-list,
.nk-tb-item {
    background: var(--surface) !important;
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-light) !important;
}

/* ========== NavbarTop ========== */
.navbar-top {
    background: rgba(10, 15, 40, 0.90) !important;
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ========== Help Assistant ========== */
.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 40, 0.78);
    backdrop-filter: blur(14px);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: helpFadeIn 0.25s ease;
}

    .help-overlay.closing {
        animation: helpFadeOut 0.2s ease forwards;
    }

.help-container {
    width: 1050px;
    max-width: 96vw;
    max-height: 92vh;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(28px);
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.6) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: helpSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.3s, opacity 0.3s;
}

.help-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #2D1B69 100%);
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.help-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-header-icon {
    width: 46px;
    height: 46px;
    background: rgba(108,99,255,0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(108,99,255,0.2);
}

.help-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.help-header-actions {
    display: flex;
    gap: 0.5rem;
}

.help-header-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .help-header-btn:hover {
        background: rgba(108,99,255,0.3);
        transform: scale(1.05);
        border-color: rgba(108,99,255,0.5);
    }

.help-search {
    padding: 0.85rem 2rem;
    border-bottom: 1px solid rgba(108,99,255,0.1);
}

    .help-search input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.8rem;
        border: 2px solid rgba(108,99,255,0.12);
        border-radius: 14px;
        font-size: 0.94rem;
        background: rgba(108,99,255,0.03);
        transition: all 0.2s;
        outline: none;
        font-family: 'Vazirmatn', sans-serif;
    }

        .help-search input:focus {
            border-color: #6C63FF;
            box-shadow: 0 0 0 4px rgba(108,99,255,0.12);
            background: #fff;
        }

.help-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.help-sidebar {
    width: 250px;
    background: rgba(248,250,255,0.9);
    border-left: 1px solid rgba(108,99,255,0.08);
    overflow-y: auto;
    padding: 1.2rem 0;
}

.help-sidebar-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.4rem;
}

.help-sidebar-item {
    padding: 0.62rem 1.4rem;
    cursor: pointer;
    font-size: 0.87rem;
    color: var(--text-main);
    transition: all 0.2s;
    border-right: 3px solid transparent;
    margin-bottom: 2px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

    .help-sidebar-item:hover {
        background: rgba(108,99,255,0.06);
        color: #4F46E5;
        border-right-color: rgba(108,99,255,0.3);
    }

    .help-sidebar-item.active {
        background: rgba(108,99,255,0.08);
        color: #4F46E5;
        font-weight: 700;
        border-right-color: #6C63FF;
        box-shadow: inset 0 0 0 1px rgba(108,99,255,0.1);
    }

.help-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.8rem 2.4rem;
}

    .help-content h3 {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 1.8rem;
        letter-spacing: -0.01em;
    }

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(108,99,255,0.06);
    opacity: 0;
    animation: helpFadeInUp 0.4s ease forwards;
}

    .step-item:last-child {
        border-bottom: none;
    }

.step-number {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #6C63FF, #9B59F5);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(108,99,255,0.35);
    transition: transform 0.2s;
}

.step-item:hover .step-number {
    transform: scale(1.12);
}

.step-text {
    flex: 1;
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 0.2rem;
}

/* دکمه شناور (FAB) */

.help-fab {
    position: fixed;
    bottom: 24px; /* هم‌تراز با Chat */
    right: 88px; /* فاصله مناسب از راست */
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6C63FF, #9B59F5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(108,99,255,0.5);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .help-fab:hover {
        transform: scale(1.1);
        box-shadow: 0 16px 36px rgba(108,99,255,0.6);
    }

    .help-fab:active {
        transform: scale(0.96);
    }

/* ========== Modal Body Fix ========== */
.modal-dialog {
    margin: 1.75rem auto;
}

/* ========== Badge BG Success ========== */
.badge.bg-success {
    background: linear-gradient(135deg, #06D6A0, #04A877) !important;
    border-radius: 100px;
    padding: 0.28em 0.75em;
    font-weight: 700;
}

/* ========== کارت‌های والد تعاملات ========== */
.parent-interaction-card .card-inner {
    word-break: break-word;
    overflow-wrap: break-word;
}

.parent-interaction-card .ni-calendar {
    margin-left: 0.25rem;
}

/* ========== انیمیشن‌ها ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(108,99,255,0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(108,99,255,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108,99,255,0);
    }
}

@keyframes helpFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes helpFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes helpSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes helpFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nk-content {
    position: relative;
    z-index: 1;
    animation: none !important;
    margin-bottom:100px;
}

/* ========== واکنش‌گرایی ========== */
@media (max-width: 768px) {
    .nk-block-title {
        font-size: 1.35rem;
    }

        .nk-block-title.page-title {
            font-size: 1.45rem;
        }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.25rem;
    }

        .nav-tabs .nav-link {
            white-space: nowrap;
            font-size: 0.78rem;
            padding: 0.4rem 0.9rem;
        }

    .item-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .item-card .card-body .row {
        flex-direction: column;
    }

    .item-card .card-body [class*="col-"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

        .action-buttons .btn {
            width: 100%;
        }

    .chart-container {
        min-height: 220px;
    }

    .doughnut-container,
    .pie-container {
        max-width: 200px;
    }

    .line-chart-wrapper,
    .bar-chart-wrapper {
        height: 200px;
    }

    .card-chart .card-title {
        font-size: 0.9rem;
    }

    .stat-card .ni,
    .kpi-card .kpi-icon {
        font-size: 2rem;
    }

    .kpi-card .kpi-number {
        font-size: 1.6rem;
    }

    .task-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .task-reminder-alert {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .assignment-item {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 45px;
    }

    .assignment-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }

    .assignment-card {
        width: 100%;
    }

    .help-sidebar {
        display: none;
    }

    .help-content {
        padding: 1.2rem;
    }

    .help-container {
        max-height: 95vh;
    }

    @media (max-width: 576px) {
        .parent-interaction-card .d-flex {
            flex-direction: column;
        }
    }
}




.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
    white-space: nowrap;
}

    .menu-item:hover {
        background: #f4f6f9;
        color: #0f172a;
    }

    .menu-item .icon,
    .menu-item .ni {
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: #64748b;
        transition: color 0.2s ease;
    }

    .menu-item:hover .icon,
    .menu-item:hover .ni {
        color: #0f172a;
    }

    .menu-item.danger {
        color: #ef4444;
    }

        .menu-item.danger .icon,
        .menu-item.danger .ni {
            color: #ef4444;
        }

        .menu-item.danger:hover {
            background: #fee2e2;
        }

.menu-divider {
    height: 1px;
    background: #e8ecf1;
    margin: 6px 0;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-right: 1px solid #e2e8f0;
    user-select: none;
}

    .tab-item.active {
        background: white;
        border-bottom: 2px solid #4f46e5;
    }

.tab-close {
    margin-left: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}


.nk-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e2e6ed;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-group {
    border-bottom: 1px solid #f1f3f5;
}

.sidebar-group-title {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
}

    .sidebar-group-title:hover {
        background: #f8fafc;
    }

    .sidebar-group-title .icon {
        margin-left: 0.5rem;
        font-size: 1.2rem;
    }

    .sidebar-group-title .chevron {
        margin-right: auto;
        transition: transform 0.2s;
    }

.sidebar-submenu {
    padding-right: 1rem;
}

.sidebar-subgroup {
    margin-bottom: 0.75rem;
}

.sidebar-subgroup-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem 0.25rem;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: block;
    width: 100%;
    text-align: right;
    padding: 0.5rem 2rem;
    background: transparent;
    border: none;
    color: #334155;
    font-size: 0.9rem;
    cursor: pointer;
}

    .sidebar-item:hover {
        background: #f1f5f9;
        color: #1d4ed8;
    }


.step-border-1 {
    border: 2px solid #cbd5e1 !important;
}

.step-border-2 {
    border: 2px solid #0ea5e9 !important;
}

.step-border-3 {
    border: 2px solid #22c55e !important;
}

.step-border-4 {
    border: 2px solid #f97316 !important;
}
.permission-node {
    font-size: 0.9rem;
}

    .permission-node .form-check-input {
        cursor: pointer;
    }

    .permission-node .ni-chevron-up,
    .permission-node .ni-chevron-down {
        transition: transform 0.2s;
    }

    .permission-node .form-check-input:indeterminate {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }
.permission-tree {
    max-height: 400px;
    overflow-y: auto;
}


.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%) !important;
}

.card-body-transparent {
    background: transparent !important;
}

.customers-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

    .customers-pagination .pagination-summary {
        font-size: 0.9rem;
    }

    .customers-pagination .pagination-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.page-size-select {
    min-width: 70px;
}

.customers-pagination .pagination .page-link {
    border: none;
    background: #fff;
    color: #1e293b;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s;
    margin: 0 2px;
}

.customers-pagination .pagination .page-item.active .page-link {
    background: #4f46e5;
    color: #fff;
}

.customers-pagination .pagination .page-link:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.customers-pagination .pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #94a3b8;
    pointer-events: none;
}

