/* تعديلات العربي (RTL) للوحة التحكم — تُحمَّل بعد adminlte.rtl.min.css */
body,
h1, h2, h3, h4, h5, h6,
.btn, .form-control, .dropdown-menu, .table,
.select2-container, .swal2-popup, .tooltip, .popover {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

body {
    direction: rtl;
    text-align: right;
}

/* أرقام الهاتف والإيميل والمبالغ تبقى من اليسار لليمين */
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
.ltr {
    direction: ltr;
    text-align: right;
}

/* DataTables */
div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
}
div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0;
    margin-right: .5em;
}
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_info {
    text-align: right;
}
div.dataTables_wrapper div.dataTables_paginate {
    text-align: left;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: flex-start;
}
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc {
    padding-right: .75rem;
    padding-left: 30px;
}
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    right: auto !important;
    left: .5em;
}
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    left: 1em;
}

/* Select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 1px;
    right: auto;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px;
    text-align: right;
}

/* مجموعات الإدخال (أيقونة + حقل) */
.input-group > .input-group-text,
.input-group > .input-group-prepend > .input-group-text {
    border-radius: 0 .25rem .25rem 0;
}
.input-group > .form-control:not(:first-child) {
    border-radius: .25rem 0 0 .25rem;
}
