/* =========================================================
   صندوق قرض الحسنه - Light Admin Theme
   ========================================================= */

:root {
    --fund-bg: #f8fafc;
    --fund-surface: #ffffff;
    --fund-surface-soft: #f9fafb;
    --fund-border: #e5e7eb;
    --fund-border-soft: #eef0f2;

    --fund-text: #1f2937;
    --fund-muted: #6b7280;

    --fund-accent: #d97706;
    --fund-accent-soft: #fff7ed;

    --fund-success-soft: #f0fdf4;
    --fund-danger-soft: #fef2f2;

    --fund-radius: 14px;
}

/* ---------- Main background ---------- */

.fi-body {
    background: var(--fund-bg) !important;
}

/* ---------- Sidebar ---------- */

.fi-sidebar {
    background: #ffffff !important;
    border-left: 1px solid var(--fund-border-soft) !important;
}

.fi-sidebar-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--fund-border-soft) !important;
}

.fi-sidebar-group-label {
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.fi-sidebar-item-button {
    border-radius: 10px !important;
    transition:
        background-color .15s ease,
        color .15s ease;
}

.fi-sidebar-item-button:hover {
    background: #fafafa !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background: var(--fund-accent-soft) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active svg {
    color: var(--fund-accent) !important;
}

/* ---------- Topbar ---------- */

.fi-topbar nav {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid var(--fund-border-soft) !important;
}

/* ---------- Page headings ---------- */

.fi-header-heading {
    color: var(--fund-text) !important;
    font-weight: 800 !important;
}

.fi-header-subheading {
    color: var(--fund-muted) !important;
}

/* ---------- Sections / cards ---------- */

.fi-section,
.fi-widget,
.fi-ta-ctn {
    border-radius: var(--fund-radius) !important;
}

.fi-section {
    background: var(--fund-surface) !important;
    border: 1px solid var(--fund-border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025) !important;
}

/* ---------- Tables ---------- */

.fi-ta-ctn {
    background: var(--fund-surface) !important;
    border: 1px solid var(--fund-border) !important;
    box-shadow: none !important;
    overflow: hidden;
}

.fi-ta-header {
    background: #ffffff !important;
    border-bottom-color: var(--fund-border-soft) !important;
}

.fi-ta-header-cell {
    background: var(--fund-surface-soft) !important;
}

.fi-ta-row {
    transition: background-color .12s ease;
}

.fi-ta-row:hover {
    background: #fcfcfd !important;
}

/* ---------- Inputs ---------- */

.fi-input-wrp {
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px var(--fund-border) !important;
}

.fi-input-wrp:focus-within {
    box-shadow:
        0 0 0 1px #f59e0b,
        0 0 0 3px rgba(245, 158, 11, .10) !important;
}

.fi-input,
.fi-select-input {
    color: var(--fund-text) !important;
}

/* ---------- Buttons ---------- */

.fi-btn {
    border-radius: 9px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.fi-btn-color-primary {
    background: #f59e0b !important;
}

.fi-btn-color-primary:hover {
    background: #d97706 !important;
}

/* ---------- Dropdowns / modals ---------- */

.fi-dropdown-panel,
.fi-modal-window {
    border-radius: var(--fund-radius) !important;
    border: 1px solid var(--fund-border) !important;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, .07) !important;
}

/* ---------- Pagination ---------- */

.fi-pagination-item {
    border-radius: 8px !important;
}

/* ---------- Custom report/dashboard boxes ---------- */

.report-filters,
.report-table-box,
.report-card,
.fund-dashboard-card,
.recent-box {
    background: #ffffff !important;
    border-color: var(--fund-border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025) !important;
}

.report-card,
.fund-dashboard-card,
.recent-box {
    border-radius: var(--fund-radius) !important;
}

.report-card-title,
.fund-dashboard-label {
    color: var(--fund-muted) !important;
}

.report-card-value,
.fund-dashboard-value {
    color: var(--fund-text);
}

/* ---------- Report tables ---------- */

.report-table thead th,
.recent-table th {
    background: var(--fund-surface-soft) !important;
    color: #4b5563 !important;
}

.report-table tbody tr:hover,
.recent-table tbody tr:hover {
    background: #fcfcfd !important;
}

/* ---------- Scrollbar: subtle ---------- */

* {
    scrollbar-color: #d1d5db transparent;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================================
   Final visual polish
   ========================================================= */

/* Sidebar: کمی خواناتر */
.fi-sidebar-group-label {
    color: #6b7280 !important;
    font-weight: 700 !important;
}

.fi-sidebar-item-label {
    color: #374151 !important;
    font-weight: 600 !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-button {
    background: #fff7ed !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active svg {
    color: #c65f00 !important;
}

/* Page background */
.fi-body {
    background: #f7f9fb !important;
}

/* کارت‌ها و باکس‌ها کمی مشخص‌تر */
.fi-section,
.fi-ta-ctn,
.report-filters,
.report-table-box,
.report-card,
.fund-dashboard-card,
.recent-box {
    border-color: #dde2e8 !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .025),
        0 3px 10px rgba(15, 23, 42, .025) !important;
}

/* هدر جدول */
.fi-ta-header-cell,
.report-table thead th,
.recent-table th {
    background: #f5f7f9 !important;
    color: #374151 !important;
    font-weight: 700 !important;
}

/* سطرهای جدول */
.report-table tbody td,
.recent-table tbody td {
    color: #1f2937;
}

/* Hover خیلی ملایم */
.fi-ta-row:hover,
.report-table tbody tr:hover,
.recent-table tbody tr:hover {
    background: #f9fafb !important;
}

/* Inputها کمی تمیزتر */
.fi-input-wrp {
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px #d9dee5 !important;
}

.fi-input-wrp:hover {
    box-shadow: 0 0 0 1px #cbd2da !important;
}

.fi-input-wrp:focus-within {
    box-shadow:
        0 0 0 1px #e59a2f,
        0 0 0 3px rgba(229, 154, 47, .10) !important;
}

/* عنوان صفحات */
.fi-header-heading {
    color: #111827 !important;
    letter-spacing: -.2px;
}

/* دکمه اصلی؛ کهربایی ملایم */
.fi-btn-color-primary {
    background: #e9a23b !important;
    color: #ffffff !important;
}

.fi-btn-color-primary:hover {
    background: #d98d26 !important;
}

/* جدول تاریخچه و گزارش‌ها */
.report-table-box {
    overflow: hidden;
}

.report-table th,
.report-table td {
    border-color: #edf0f3 !important;
}

/* اعداد اصلی داشبورد */
.fund-dashboard-value,
.report-card-value {
    color: #111827;
}

/* تراز منفی/مثبت همان رنگ‌های محدود قبلی بماند */
