/* تعديل ألوان النص لتحسين الوضوح (محصورة في صفحة التقارير لتجنب التعارض مع الثيم) */
.reports-page .text-white,
.reports-page .text-light,
.reports-page .bg-dark .text-white,
.reports-page .bg-primary .text-white,
.reports-page .bg-secondary .text-white,
.reports-page .bg-success .text-white,
.reports-page .bg-info .text-white,
.reports-page .bg-warning .text-white,
.reports-page .bg-danger .text-white,
.reports-page .card-footer,
.reports-page .card-header,
.reports-page thead.bg-primary,
.reports-page thead.bg-secondary,
.reports-page thead.bg-dark,
.reports-page thead.bg-success,
.reports-page thead.bg-info,
.reports-page thead.bg-warning,
.reports-page thead.bg-danger,
.reports-page tfoot.bg-primary,
.reports-page tfoot.bg-secondary,
.reports-page tfoot.bg-dark,
.reports-page tfoot.bg-success,
.reports-page tfoot.bg-info,
.reports-page tfoot.bg-warning,
.reports-page tfoot.bg-danger,
.reports-page .table-primary,
.reports-page .table-secondary,
.reports-page .table-dark,
.reports-page .table-success,
.reports-page .table-info,
.reports-page .table-warning,
.reports-page .table-danger {
    color: #003366 !important; /* لون أزرق داكن */
}

/* تعديل لون النص في القوائم المنسدلة */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-results__option {
    color: #003366 !important;
}

/* تعديل لون النص في حقول البحث */
.form-control::placeholder,
.select2-search__field::placeholder {
    color: #6c757d !important; /* لون رمادي متوسط للنص الوصفي */
}

/* تعديل لون النص في الأزرار ذات الخلفية الداكنة */
.btn-primary, 
.btn-secondary, 
.btn-success, 
.btn-danger, 
.btn-dark {
    color: #f8f9fa !important; /* إبقاء لون النص فاتح في الأزرار ذات الخلفية الداكنة */
}

/* تعديل لون النص في الجداول */
.table {
    color: #212529 !important; /* لون أسود مائل للرمادي */
}

/* تعديل لون النص في البطاقات */
.card-title, 
.card-text {
    color: #212529 !important;
}

/* تعديل لون النص في العناوين */
h1, h2, h3, h4, h5, h6 {
    color: #003366 !important;
}

/* تعديل لون النص في التنبيهات */
.alert {
    color: #212529 !important;
}

/* استثناء بعض العناصر التي تحتاج إلى لون أبيض للنص */
.bg-dark.text-white-important,
.bg-primary.text-white-important,
.bg-secondary.text-white-important,
.bg-success.text-white-important,
.bg-info.text-white-important,
.bg-warning.text-white-important,
.bg-danger.text-white-important {
    color: white !important;
}

/* تحسينات إضافية لصفحة التقارير */
.reports-page th,
.reports-page td,
.reports-page .card-header,
.reports-page .card-footer,
.reports-page .card-title,
.reports-page .card-text,
.reports-page .table-responsive th,
.reports-page .table-responsive td,
.reports-page .table thead th,
.reports-page .table tfoot td,
.reports-page .bg-primary,
.reports-page .bg-secondary,
.reports-page .bg-success,
.reports-page .bg-info,
.reports-page .bg-warning,
.reports-page .bg-danger,
.reports-page .bg-dark {
    color: #003366 !important;
}

/* تحسين تباين الألوان في الجداول */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
    color: #003366 !important;
}
