/* 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 inline with text (RTL - کنار متن در همان خط) */
table.dataTable thead th {
    position: relative;
}

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 {
    display: none !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 {
    display: none !important;
}

/* For Metronic's dt-ordering classes - آیکون کنار متن در RTL (در همان خط) */
table.dataTable > thead .dt-ordering-asc:after,
table.dataTable > thead .dt-ordering-desc:after {
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
}

