/* Custom DataTable Styles - RTL Support */
table.dataTable thead th,
table.dataTable thead td {
    text-align: right !important;
}

table.dataTable tbody th,
table.dataTable tbody td {
    text-align: right !important;
}

/* Ensure sorting icons are on the right side */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc_disabled:before {
    right: 1em !important;
    left: auto !important;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    right: 0.5em !important;
    left: auto !important;
}

