.balance-box {
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}
.bg-from {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}
.bg-to {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.main-card {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

#export-pdf,
#export-excel,
#reset-btn {
    height: 28px;
    width: 130px;
    line-height: 2;
}

.card-header-title {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 20px 25px !important;
}

/* --- Icons & Utilities --- */
.header-icon {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #6259ff, #8880ff) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    margin-left: 15px !important;
    box-shadow: 0 4px 12px rgba(98, 89, 255, 0.2) !important;
}

.badge-info-transparent {
    background-color: rgba(1, 98, 232, 0.1);
    color: #0162e8;
    border: 1px solid rgba(1, 98, 232, 0.2);
}

.badge-warning-transparent {
    background-color: rgba(247, 126, 51, 0.1);
    color: #f77e33;
    border: 1px solid rgba(247, 126, 51, 0.2);
}

/* استثناء الـ Textarea من الارتفاع الثابت */
textarea.form-control {
    height: auto !important;
    line-height: 1.5 !important;
    padding: 15px !important;
}

/* --- Labels --- */
.form-group label {
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
}

.form-group label i {
    margin-left: 8px !important;
    color: #6259ff !important;
}

/* --- Unified Form Controls (Inputs) --- */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 15px !important;
    transition: all 0.3s ease !important;
    background-color: #fcfcfc !important;
    height: 50px !important;
    line-height: 50px !important;
}

.form-control:focus {
    background-color: #fff !important;
    border-color: #6259ff !important;
    box-shadow: 0 0 0 4px rgba(98, 89, 255, 0.1) !important;
    outline: none !important;
}

/* --- Select2 Customization --- */

.select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    height: 50px !important;
    background-color: #fcfcfc !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default.select2-container--focus
    .select2-selection--single {
    background-color: #fff !important;
    border-color: #6259ff !important;
    box-shadow: 0 0 0 4px rgba(98, 89, 255, 0.1) !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #4a5568 !important;
    line-height: 50px !important;
    padding-right: 15px !important;
    padding-left: 45px !important; /* مساحة لزر الحذف والسهم */
    width: 100% !important;
    text-align: right !important;
}

/* زر الحذف (x) */
.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    cursor: pointer !important;
    float: left !important; /* لجهة اليسار في الـ RTL */
    font-weight: bold !important;
    margin-left: 10px !important;
    margin-right: auto !important;
    line-height: 48px !important;
    color: #ff4d4f !important; /* لون أحمر للتوضيح */
    font-size: 18px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 50px !important;
    width: 30px !important;
    left: 5px !important; /* السهم جهة اليسار في العربي */
    right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    min-height: 50px !important;
    background-color: #fcfcfc !important;
}

.btn-save {
    border-radius: 10px !important;
    padding: 12px 40px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
}

.btn-save:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(98, 89, 255, 0.3) !important;
}

.header-icon {
    width: 45px !important;
    height: 45px !important;
    background: linear-gradient(135deg, #6259ff, #8880ff) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    margin-left: 15px !important;
    box-shadow: 0 4px 12px rgba(98, 89, 255, 0.2) !important;
}

.card {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-bottom: 1px solid #f1f1f1;
}

.filter-box {
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
}

.table tbody tr:hover {
    background-color: #f4f7fb !important;
    transition: 0.2s;
}

.location-icon {
    color: #e74c3c;
    margin-right: 4px;
}

.amount {
    font-weight: 600;
}

.total-paid {
    font-weight: bold;
    color: #0162e8;
}

.stat-card {
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    font-size: 13px;
    color: #777;
}
