/* ============================================
   SHAHAB RAH - INDEX FILE CSS v3
   Completely Rebuilt from Scratch - 2026
   Modern Blue-Green (Teal) Theme
   ============================================ */

/* ============================================
   BASE RESET
   ============================================ */
* {
    box-sizing: border-box;
}

/* ============================================
   CSS VARIABLES - TEAL/BLUE PALETTE
   ============================================ */
:root {
    --sr-primary: #0d9488;
    --sr-primary-light: #14b8a6;
    --sr-primary-dark: #0f766e;
    --sr-primary-50: #f0fdfa;
    --sr-primary-100: #ccfbf1;
    --sr-primary-200: #99f6e4;
    --sr-primary-300: #5eead4;

    --sr-secondary: #2563eb;
    --sr-secondary-light: #3b82f6;
    --sr-secondary-dark: #1d4ed8;
    --sr-secondary-50: #eff6ff;
    --sr-secondary-100: #dbeafe;

    --sr-accent: #06b6d4;
    --sr-accent-light: #22d3ee;

    --sr-surface: #ffffff;
    --sr-surface-elevated: #f8fafc;
    --sr-surface-hover: #f0fdfa;

    --sr-text-primary: #0f172a;
    --sr-text-secondary: #334155;
    --sr-text-muted: #64748b;
    --sr-text-inverse: #ffffff;

    --sr-border: #e2e8f0;
    --sr-border-light: #f1f5f9;

    --sr-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --sr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --sr-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --sr-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --sr-shadow-primary: 0 4px 16px rgba(13, 148, 136, 0.15);
    --sr-shadow-secondary: 0 4px 16px rgba(37, 99, 235, 0.12);

    --sr-radius-sm: 8px;
    --sr-radius-md: 12px;
    --sr-radius-lg: 16px;
    --sr-radius-xl: 20px;

    --sr-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --sr-transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.sr-page-wrapper {
    direction: rtl;
    text-align: right;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #f0fdfa);
    min-height: 100vh;
}

/* ============================================
   TITLE AREA - HERO SECTION
   ============================================ */
.titleArea {
    background: linear-gradient(135deg, var(--sr-primary-50), var(--sr-secondary-50));
    border-radius: var(--sr-radius-lg);
    padding: 20px 28px;
    border: 1px solid var(--sr-border);
    margin-bottom: 24px;
    box-shadow: var(--sr-shadow-sm);
    position: relative;
    overflow: hidden;
}

.titleArea::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--sr-primary), var(--sr-secondary));
    border-radius: var(--sr-radius-lg) 0 0 var(--sr-radius-lg);
}

.titleArea h2 {
    color: var(--sr-text-primary);
    font-weight: 800;
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.titleArea h2::before {
    content: '';
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, var(--sr-primary-light), var(--sr-secondary));
    border-radius: 4px;
}

/* ============================================
   FORM AREA - FILTER CARD
   ============================================ */
.formArea {
    background: var(--sr-surface);
    border-radius: var(--sr-radius-lg);
    border: 1px solid var(--sr-border);
    box-shadow: var(--sr-shadow-md);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.formArea::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-secondary), var(--sr-primary));
    border-radius: 0 0 4px 4px;
    opacity: 0.6;
}

.base-info {
    background: linear-gradient(135deg, var(--sr-surface-elevated), var(--sr-primary-50));
    border-radius: var(--sr-radius-md);
    padding: 20px;
    border: 1px solid var(--sr-border);
    margin-bottom: 16px;
}

.base-info label {
    color: var(--sr-text-secondary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.base-info label i {
    color: var(--sr-primary);
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sr-primary-50);
    border-radius: 6px;
}

.base-info select,
.base-info input {
    border-radius: var(--sr-radius-sm);
    border: 1px solid var(--sr-border);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--sr-transition);
    background: var(--sr-surface);
    color: var(--sr-text-primary);
}

.base-info select:focus,
.base-info input:focus {
    border-color: var(--sr-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    outline: none;
}

/* ============================================
   BUTTONS - PRIMARY & SECONDARY
   ============================================ */
.bottom, .addButton {
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-secondary)) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: var(--sr-transition) !important;
    color: var(--sr-text-inverse) !important;
    border: none !important;
    border-radius: var(--sr-radius-sm) !important;
    padding: 10px 24px !important;
    box-shadow: var(--sr-shadow-primary) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bottom:hover, .addButton:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25) !important;
    filter: brightness(1.05);
}

.bottom:active, .addButton:active {
    transform: translateY(0) !important;
}

.addBar:hover {
    background: linear-gradient(135deg, var(--sr-primary-light), var(--sr-secondary-light));
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-secondary)) !important;
    color: var(--sr-text-inverse) !important;
    border: none !important;
    border-radius: var(--sr-radius-sm) !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    transition: var(--sr-transition) !important;
    box-shadow: var(--sr-shadow-primary) !important;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25) !important;
    filter: brightness(1.05);
}

.btn-clear {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: var(--sr-text-inverse) !important;
    border: none !important;
    border-radius: var(--sr-radius-sm) !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    transition: var(--sr-transition) !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2) !important;
    cursor: pointer;
}

.btn-clear:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3) !important;
    filter: brightness(1.05);
}

/* ============================================
   MODAL - MODERN DIALOG
   ============================================ */
.modal-header {
    height: 60px;
    background: linear-gradient(135deg, var(--sr-primary-50), var(--sr-secondary-50));
    border-bottom: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg) var(--sr-radius-lg) 0 0 !important;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

#exampleModalLabel {
    color: var(--sr-primary-dark);
    font-weight: 800;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#exampleModalLabel::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--sr-primary), var(--sr-secondary));
    border-radius: 2px;
}

.modal-content {
    height: auto;
    border-radius: var(--sr-radius-lg);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sr-border);
    overflow: hidden;
}

.modal-body {
    padding: 24px;
}

.modal-body > div > p {
    font-size: 14px;
    color: var(--sr-text-secondary);
    margin: 0 0 12px;
    line-height: 1.6;
}

.modal-body > .items > div {
    margin: 0;
}

.modal-body > .items > div > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: var(--sr-radius-sm);
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: var(--sr-transition);
    color: var(--sr-text-inverse) !important;
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-secondary));
    text-decoration: none;
    padding: 0 20px;
    margin-bottom: 8px;
    box-shadow: var(--sr-shadow-primary);
}

.modal-body > .items > div > a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25);
    filter: brightness(1.05);
}

/* ============================================
   TABLE & GRIDVIEW CONTAINER
   ============================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--sr-radius-md);
    border: 1px solid var(--sr-border);
    background: var(--sr-surface);
    box-shadow: var(--sr-shadow-sm);
}

.inner-body {
    margin-left: 15px;
    margin-right: 15px;
}

/* ============================================
   CUSTOM CARD - MAIN CONTENT CARD
   ============================================ */
.custom-card {
    border-radius: var(--sr-radius-lg);
    padding: 0;
    background: var(--sr-surface);
    border: 1px solid var(--sr-border);
    box-shadow: var(--sr-shadow-md);
    overflow: hidden;
    position: relative;
}

.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-secondary), var(--sr-accent));
    opacity: 0.7;
}

.baseColor {
    background: var(--sr-surface) !important;
}

/* ============================================
   GRIDVIEW HEADER - PRESERVED COLORS
   ============================================ */
.header-gridView {
    border-radius: 4px 4px 0 0 !important;
}

.allRecord {
    /* ==== رنگ‌های قابل شخصی‌سازی ==== */
    --ar-primary: #0ea5e9;      /* آبی اصلی */
    --ar-secondary: #10b981;    /* سبز اصلی */

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 28px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ar-primary) 0%, var(--ar-secondary) 100%);
    box-shadow:
            0 4px 6px -1px rgba(14, 165, 233, 0.2),
            0 10px 15px -3px rgba(16, 185, 129, 0.15),
            inset 0 1px 0 rgba(255,255,255,0.15);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0;
}

/* افکت درخشش متحرک */
.allRecord::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,0.12) 50%,
            transparent 100%
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.allRecord:hover::before {
    left: 140%;
}

.allRecord:hover {
    transform: translateY(-2px);
    box-shadow:
            0 8px 12px -2px rgba(14, 165, 233, 0.25),
            0 16px 24px -4px rgba(16, 185, 129, 0.2);
}

/* ==== استایل متن تعداد رکورد ==== */
.allRecord > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ==== استایل دکمه رفرش ==== */
.allRecord > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 14px;
}

.allRecord > a:hover {
    background: rgba(255,255,255,0.28);
    transform: rotate(180deg);
    box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.allRecord > a:active {
    transform: rotate(180deg) scale(0.92);
}

/* ==== آیکون رفرش ==== */
.allRecord > a i,
.allRecord > a svg {
    color: #fff;
    font-size: 14px;
}

/* ============================================
   DOCUMENTS & UPLOAD
   ============================================ */
#documents {
    border: none !important;
    box-shadow: none;
    background: transparent;
}

#upload-file, .upload-file {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--sr-text-inverse);
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-secondary));
    box-shadow: var(--sr-shadow-primary);
    text-shadow: none;
    transition: var(--sr-transition);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#upload-file:hover, .upload-file:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

/* ============================================
   DRIVERS CARD
   ============================================ */
.drivers-card {
    background: linear-gradient(135deg, var(--sr-primary-50), var(--sr-secondary-50));
    border-radius: var(--sr-radius-md);
    border: 1px solid var(--sr-border);
    padding: 16px;
    box-shadow: var(--sr-shadow-sm);
}

/* ============================================
   SECTION TITLE - MODERN HEADER
   ============================================ */
.section-title {
    height: auto;
    color: var(--sr-text-primary);
    text-shadow: none;
    font-weight: 800;
    border-radius: var(--sr-radius-md);
    margin: 0 0 24px 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--sr-primary-50), var(--sr-secondary-50));
    border: 1px solid var(--sr-border);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--sr-shadow-sm);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--sr-primary), var(--sr-secondary));
    border-radius: 2px;
}

.section-title > div {
    display: none;
}

/* ============================================
   TABLE ROWS & HEADERS
   ============================================ */
.tblrow > th {
    vertical-align: middle !important;
    background: linear-gradient(135deg, var(--sr-surface-elevated), var(--sr-primary-50)) !important;
    color: var(--sr-text-primary) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--sr-border) !important;
    padding: 14px !important;
    font-size: 13px;
    white-space: nowrap;
}

.tblrow > th:first-child {
    border-radius: 8px 0 0 0;
}

.tblrow > th:last-child {
    border-radius: 0 8px 0 0;
}

/* ============================================
   SELECT2 - MODERN DROPDOWN
   ============================================ */
.select2-dropdown {
    z-index: 9999;
    border-radius: var(--sr-radius-md);
    border: 1px solid var(--sr-border);
    box-shadow: var(--sr-shadow-lg);
    overflow: hidden;
}

.select2-results {
    text-align: right !important;
}

.select2-container {
    z-index: 999;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: var(--sr-radius-sm) !important;
    border: 1px solid var(--sr-border) !important;
    min-height: 42px !important;
    padding: 4px 8px;
    transition: var(--sr-transition);
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--sr-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-secondary)) !important;
    color: var(--sr-text-inverse) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--sr-text-primary) !important;
    line-height: 32px !important;
    padding-right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

/* ============================================
   BOX & BOX-BODY
   ============================================ */
.box, .box-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.box {
    background: var(--sr-surface);
    border-radius: var(--sr-radius-md);
    border: 1px solid var(--sr-border);
    box-shadow: var(--sr-shadow-sm);
    overflow: hidden;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-control, input, select, textarea {
    border-radius: var(--sr-radius-sm);
    border: 1px solid var(--sr-border);
    transition: var(--sr-transition);
    font-size: 14px;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--sr-primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
    outline: none !important;
}

/* ============================================
   STATUS CARDS - DASHBOARD STATS
   ============================================ */
.status {
    height: 100px;
    overflow-y: hidden;
    box-shadow: var(--sr-shadow-md);
    margin: 10px;
    border-radius: var(--sr-radius-md);
    background: var(--sr-surface);
    border: 1px solid var(--sr-border);
    transition: var(--sr-transition);
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-secondary));
    opacity: 0.5;
}

.status:hover {
    transform: translateY(-4px);
    box-shadow: var(--sr-shadow-lg);
}

.status > div:first-of-type {
    height: 100%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sr-text-inverse);
    position: relative;
    overflow: hidden;
}

.status > div:first-of-type::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.status > div:nth-of-type(2) > p {
    height: 50%;
    font-size: 13px;
    color: var(--sr-text-muted);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 12px;
}

.status > div:nth-of-type(2) > span {
    height: 50%;
    color: var(--sr-text-primary);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    padding: 0 12px;
    direction: ltr;
    font-family: 'Vazirmatn', monospace;
}

/* Status colors - PRESERVED */
.status:nth-of-type(1) > div:nth-of-type(1) {
    background: #F7C04A;
}

.status:nth-of-type(2) > div:nth-of-type(1) {
    background: #799470;
}

.status:nth-of-type(3) > div:nth-of-type(1) {
    background: #e1b7fc;
}

.statusDebt > div:nth-of-type(1) {
    background: #e1b7fc !important;
}

.status:nth-of-type(4) > div:nth-of-type(1) {
    background: #8bb9f5;
}

.orange {
    background: #fd9b49 !important;
}

.red {
    background: #ef3030 !important;
}

/* ============================================
   ALERT BOX - WARNING
   ============================================ */
.alert {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border: 1px solid #fecdd3;
    border-radius: var(--sr-radius-md);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.alert > div:nth-of-type(1) {
    height: auto !important;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sr-text-inverse);
    padding: 20px;
    min-width: 80px;
}

.alert > div:nth-of-type(2) {
    padding: 20px;
    flex: 1;
}

.alert h5 {
    color: #991b1b;
    font-weight: 800;
    font-size: 16px;
    margin: 0 0 8px;
}

.alert p {
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   NOTICE BOX - INFO ALERT
   ============================================ */
.sr-notice-box {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--sr-primary-50), var(--sr-secondary-50));
    border-radius: var(--sr-radius-lg);
    border: 1px solid var(--sr-border);
    box-shadow: var(--sr-shadow-sm);
    position: relative;
    overflow: hidden;
}

.sr-notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--sr-primary), var(--sr-secondary));
}

.sr-notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    position: relative;
    z-index: 1;
}

.sr-notice-icon i {
    font-size: 22px;
    color: var(--sr-text-inverse);
    position: static;
    cursor: default;
}

.sr-notice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.sr-notice-content h5 {
    color: var(--sr-text-primary);
    font-weight: 800;
    font-size: 16px;
    margin: 0;
}

.sr-notice-content p {
    color: var(--sr-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    text-align: right;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--sr-primary);
    text-decoration: none;
    transition: var(--sr-transition);
}

a:hover {
    color: var(--sr-primary-dark);
    text-decoration: none;
}

/* GridView links preserved */
a[style*="color:#2751f7"] {
    color: var(--sr-secondary) !important;
    font-weight: 600;
}

a[style*="color:#2751f7"]:hover {
    color: var(--sr-secondary-dark) !important;
    text-decoration: underline;
}

/* ============================================
   HOVERED LINK (GridView actions)
   ============================================ */


/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 16px 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-secondary)) !important;
    border-color: var(--sr-primary) !important;
    color: var(--sr-text-inverse) !important;
    font-weight: 700;
    box-shadow: var(--sr-shadow-primary);
}

.pagination .page-link {
    color: var(--sr-primary) !important;
    border: 1px solid var(--sr-border) !important;
    border-radius: var(--sr-radius-sm) !important;
    padding: 8px 14px !important;
    font-weight: 600;
    transition: var(--sr-transition);
    min-width: 36px;
    text-align: center;
}

.pagination .page-link:hover {
    background: var(--sr-primary-50) !important;
    color: var(--sr-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--sr-shadow-sm);
}

/* ============================================
   SCROLLBAR - TEAL TINT
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sr-surface-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sr-primary-200), var(--sr-secondary-200));
    border-radius: 4px;
    border: 2px solid var(--sr-surface-elevated);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--sr-primary-300), var(--sr-secondary-300));
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes srFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes srSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes srPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sr-page-wrapper {
        padding: 16px;
    }

    .titleArea {
        padding: 16px 20px;
    }

    .titleArea h2 {
        font-size: 18px;
    }

    .formArea {
        padding: 16px;
    }

    .section-title {
        font-size: 14px;
        padding: 12px 16px;
    }

    .status {
        margin: 6px;
        height: 90px;
    }

    .status > div:nth-of-type(2) > p {
        font-size: 11px;
    }

    .status > div:nth-of-type(2) > span {
        font-size: 16px;
    }

    .sr-notice-box {
        padding: 16px;
        gap: 12px;
    }

    .sr-notice-icon {
        width: 40px;
        height: 40px;
    }

    .sr-notice-icon i {
        font-size: 18px;
    }

    .sr-notice-content h5 {
        font-size: 14px;
    }

    .sr-notice-content p {
        font-size: 13px;
    }

    .modal-body > .items > div > a {
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .status {
        margin: 4px;
    }

    .bottom, .addButton, .btn-submit, .btn-clear {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   STATUS CARDS - Modern Dashboard Stats
   Blue-Green Theme | RTL | Glassmorphism touches
   ========================================================================== */

.status-cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    margin: 16px 0;
    padding: 0;
}

.status-card {
    flex: 1 1 calc(25% - 16px);
    min-width: 220px;
    max-width: 320px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3B82F6 0%, #10B981 100%);
    border-radius: 0 16px 16px 0;
    opacity: 0.8;
    transition: width 0.3s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
    border-color: #BFDBFE;
}

.status-card:hover::before {
    width: 6px;
}

/* Icon circle */
.status-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.status-card:hover .status-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* Color variants */
.status-card.red .status-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.status-card.red:hover .status-icon {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}
.status-card.red::before {
    background: linear-gradient(180deg, #EF4444 0%, #F87171 100%);
}
.status-card.red:hover {
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.12);
    border-color: #FECACA;
}

.status-card.orange .status-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.status-card.orange:hover .status-icon {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.status-card.orange::before {
    background: linear-gradient(180deg, #F59E0B 0%, #FBBF24 100%);
}
.status-card.orange:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12);
    border-color: #FDE68A;
}

.status-card.green .status-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.status-card.green:hover .status-icon {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.status-card.green::before {
    background: linear-gradient(180deg, #10B981 0%, #34D399 100%);
}
.status-card.green:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
    border-color: #A7F3D0;
}

/* Content area */
.status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.status-content p {
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    direction: rtl;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-content span {
    color: #0F172A;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    direction: ltr;
    text-align: right;
    letter-spacing: -0.5px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

/* Debt variant */
.status-card.status-debt .status-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.status-card.status-debt:hover .status-icon {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
.status-card.status-debt::before {
    background: linear-gradient(180deg, #8B5CF6 0%, #A78BFA 100%);
}
.status-card.status-debt:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.12);
    border-color: #DDD6FE;
}

/* Responsive */
@media (max-width: 1200px) {
    .status-card {
        flex: 1 1 calc(33.333% - 16px);
    }
}

@media (max-width: 991px) {
    .status-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .status-cards-row {
        gap: 12px;
    }
    .status-card {
        flex: 1 1 100%;
        min-width: auto;
        padding: 16px 14px;
    }
    .status-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
    }
    .status-content span {
        font-size: 16px;
    }
}


/* ==========================================================================
   AUTO STATUS CARDS - Styles old .status structure automatically
   No HTML changes needed. Targets existing classes.
   ========================================================================== */

/* ====== ROW CONTAINER ====== */
.col-12.d-flex.justify-content-center.align-items-center.align-content-center.my-2.py-4.px-0 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin: 16px 0 !important;
    padding: 16px 0 !important;
}

/* ====== INDIVIDUAL STATUS CARD ====== */
.status,
.status.col-3,
.statusDebt.status.col-3 {
    flex: 1 1 calc(25% - 16px) !important;
    min-width: 220px !important;
    max-width: 320px !important;
    width: auto !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 20px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    position: relative !important;
    overflow: hidden !important;
    direction: rtl !important;
    text-align: right !important;
    margin: 0 !important;
}

/* Right accent bar */
.status::before,
.status.col-3::before,
.statusDebt.status.col-3::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: linear-gradient(180deg, #3B82F6 0%, #10B981 100%) !important;
    border-radius: 0 16px 16px 0 !important;
    opacity: 0.8 !important;
    transition: width 0.3s ease !important;
}

.status:hover::before,
.status.col-3:hover::before {
    width: 6px !important;
}

/* Hover effect */
.status:hover,
.status.col-3:hover,
.statusDebt.status.col-3:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12) !important;
    border-color: #BFDBFE !important;
}

/* ====== ICON COLUMN ====== */
.status > .col-3:first-child,
.status > div:first-child,
.statusDebt.status > div:first-child {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    transition: all 0.35s ease !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

.status:hover > .col-3:first-child,
.status:hover > div:first-child {
    transform: scale(1.1) rotate(-5deg) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35) !important;
}

/* Red variant */
.status.red > .col-3:first-child,
.status.red > div:first-child {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}
.status.red:hover > .col-3:first-child {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
}
.status.red::before {
    background: linear-gradient(180deg, #EF4444 0%, #F87171 100%) !important;
}
.status.red:hover {
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.12) !important;
    border-color: #FECACA !important;
}

/* Orange variant */
.status.orange > .col-3:first-child,
.status.orange > div:first-child {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}
.status.orange:hover > .col-3:first-child {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
}
.status.orange::before {
    background: linear-gradient(180deg, #F59E0B 0%, #FBBF24 100%) !important;
}
.status.orange:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12) !important;
    border-color: #FDE68A !important;
}

/* Green variant */
.status.green > .col-3:first-child,
.status.green > div:first-child {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}
.status.green:hover > .col-3:first-child {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}
.status.green::before {
    background: linear-gradient(180deg, #10B981 0%, #34D399 100%) !important;
}
.status.green:hover {
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12) !important;
    border-color: #A7F3D0 !important;
}

/* statusDebt variant (purple) */
.statusDebt.status > .col-3:first-child,
.statusDebt.status > div:first-child,
.status.statusDebt > .col-3:first-child,
.status.statusDebt > div:first-child {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25) !important;
}
.statusDebt.status:hover > div:first-child,
.status.statusDebt:hover > div:first-child {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35) !important;
}
.statusDebt.status::before,
.status.statusDebt::before {
    background: linear-gradient(180deg, #8B5CF6 0%, #A78BFA 100%) !important;
}
.statusDebt.status:hover,
.status.statusDebt:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.12) !important;
    border-color: #DDD6FE !important;
}

/* ====== CONTENT COLUMN ====== */
.status > .col-9,
.status > div:nth-child(2),
.statusDebt.status > div:nth-child(2) {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
}

/* Title paragraph */
.status > .col-9 > p,
.status > div:nth-child(2) > p,
.status > .col-9 p,
.status > div:nth-child(2) p,
.statusDebt.status > div:nth-child(2) > p {
    color: #64748B !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    direction: rtl !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Value span */
.status > .col-9 > span,
.status > div:nth-child(2) > span,
.status > .col-9 span,
.status > div:nth-child(2) span,
.statusDebt.status > div:nth-child(2) > span {
    color: #0F172A !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    direction: ltr !important;
    text-align: right !important;
    letter-spacing: -0.5px !important;
    font-family: 'Vazir', 'Tahoma', sans-serif !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .status,
    .status.col-3,
    .statusDebt.status.col-3 {
        flex: 1 1 calc(33.333% - 16px) !important;
    }
}

@media (max-width: 991px) {
    .status,
    .status.col-3,
    .statusDebt.status.col-3 {
        flex: 1 1 calc(50% - 16px) !important;
        min-width: 200px !important;
    }
}

@media (max-width: 576px) {
    .col-12.d-flex.justify-content-center.align-items-center.align-content-center.my-2.py-4.px-0 {
        gap: 12px !important;
        padding: 12px 0 !important;
    }
    .status,
    .status.col-3,
    .statusDebt.status.col-3 {
        flex: 1 1 100% !important;
        min-width: auto !important;
        padding: 16px 14px !important;
    }
    .status > .col-3:first-child,
    .status > div:first-child {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }
    .status > .col-9 > span,
    .status > div:nth-child(2) > span {
        font-size: 16px !important;
    }
}


/* ============================================
   GLOBAL CUSTOM SCROLLBAR — بزرگ‌تر
   ============================================ */

::-webkit-scrollbar {
    width: 16px;        /* بزرگ‌تر شد */
    height: 16px;       /* بزرگ‌تر شد */
}

::-webkit-scrollbar-track {
    background: #f0f9ff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 10px;
    border: 3px solid #f0f9ff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0284c7 0%, #059669 100%);
    border-color: #e0f2fe;
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #0369a1 0%, #047857 100%);
}

::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
}

::-webkit-scrollbar-thumb:horizontal:hover {
    background: linear-gradient(90deg, #0284c7 0%, #059669 100%);
}

::-webkit-scrollbar-corner {
    background: #f0f9ff;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #0ea5e9 #f0f9ff;
}