/*=========================================================
    DataTables 2 + Bootstrap 5 RTL
=========================================================*/

/*---------- Wrapper ----------*/

#tbl_list_wrapper .row{
    margin-top:0 !important;
    margin-bottom:0 !important;
}

.dt-buttons{
    margin:0 !important;
    gap:3px;
}

.dt-length{
    margin-left:10px;
}

.dt-info{
    font-size:12px;
}

.dt-paging{
    margin:0 !important;
}

/*---------- Table ----------*/

table.dataTable{
    width:100% !important;
    border-collapse:collapse !important;
    border:1px solid #bdbdbd !important;
    font-family:server_yekan,server_zar;
    font-size:13px;
}

/*---------- Header ----------*/

table.dataTable thead th{
    background:#FFFFEA !important;
    /*color:#fff !important;*/
    border:1px solid #9aa3ad !important;

    /*padding:0 !important;*/
    height:26px;
    /*line-height:26px;*/

    text-align:center;
    vertical-align:middle;
    white-space:nowrap;
}

/*---------- Footer ----------*/

table.dataTable tfoot th{

    background:#e9ecef !important;

    border:1px solid #bdbdbd !important;

    padding:0 !important;

    height:24px;

    vertical-align:middle;

}

/*---------- Body ----------*/

table.dataTable tbody td{

    border:1px solid #d7d7d7 !important;

    /*padding:0 !important;*/
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    margin:0 !important;

    height:24px;

    line-height:24px;

    vertical-align:middle;

}

/*---------- Alternate ----------*/

table.dataTable tbody tr:nth-child(odd){

    background:#f9f9f9;

}

table.dataTable tbody tr:nth-child(even){

    background:#fff;

}

/*---------- Hover ----------*/

table.dataTable tbody tr:hover{

    background:#fff5c8 !important;

}

/*---------- Footer Search ----------*/

table.dataTable tfoot input,select{

    width:100%;

    height:27px;

    margin:2px;

    /*padding:0 3px;*/

    border:1px solid #bbb;

    font-size:12px;

    text-align:right;

}

/*---------- Buttons ----------*/

.dt-button.buttons-copy,
.dt-button.buttons-excel,
.dt-button.buttons-print,
.dt-button.buttons-page-length{
    padding:2px 8px;
    font-size:11px;
}
/*---------- Length ----------*/

.dt-length select{

    height:24px;

    font-size:11px;

    /*padding:0 2px;*/

}

.dt-length label{

    margin:0;

    font-size:11px;

}
.dt-button-collection .button-page-length .dropdown-item{
    direction:ltr;
    text-align:left;
}
/*---------- Search ----------*/

.dt-search input{

    height:24px;

    font-size:11px;

}

/*---------- Paging ----------*/

.page-link{

    padding:2px 8px;

    font-size:11px;

}

/*---------- Processing ----------*/

.dt-processing{

    z-index:9999;

}

/*---------- LTR ----------*/

.dt-ltr{

    direction:ltr !important;

    text-align:center !important;

}

/*---------- Setting Button ----------*/

.btn_setting_datatable{

    width:18px;

    height:18px;

    padding:0;

    line-height:18px;

}
.dt-buttons .buttons-copy,
.dt-buttons .buttons-excel,
.dt-buttons .buttons-print {
    --bs-btn-padding-y: .10rem;
    --bs-btn-padding-x: .35rem;
    --bs-btn-font-size: .80rem;
}

/*---------- No Wrap ----------*/

.nowrap{

    white-space:nowrap;

}

/* وسط چین کردن سلول ها */
table.dataTable td.dt-body-center,
table.dataTable th.dt-body-center {
    text-align: center !important;
}

/* راست چین */
table.dataTable td.dt-body-right,
table.dataTable th.dt-body-right {
    text-align: right !important;
}

/* چپ چین */
table.dataTable td.dt-body-left,
table.dataTable th.dt-body-left {
    text-align: left !important;
}

table.dataTable tbody td.sorting_1{
    background-color:#f1f1f1 !important;
}

table.dataTable tbody td.sorting_2{
    background-color:#edf4ff !important;
}

table.dataTable tbody td.sorting_3{
    background-color:#f7faff !important;
}