/* Override ALL default DataTables sorting images */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    position: relative;
    background: none !important;
    background-image: none !important;
}

/* Default state - both arrows */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    position: absolute;
    right: 8px;
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

/* Up arrow - top position */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before {
    top: 35%;
    border-bottom: 5px solid #ddd;
}

/* Down arrow - bottom position */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_desc:after {
    bottom: 35%;
    border-top: 5px solid #ddd;
}

/* Active states */
table.dataTable thead .sorting_asc:before {
    border-bottom-color: #333;
}

table.dataTable thead .sorting_desc:after {
    border-top-color: #333;
}

/* Reset any existing images */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: none !important;
    background-image: none !important;
}



/*This CSS is added for datatables that are in the modal,*/
/*what happens is that the background will be duplicated*/
/*which causes a very weird display*/
 table.dataTable thead .sorting,
 table.dataTable thead .sorting_asc,
 table.dataTable thead .sorting_desc {
     background-repeat: no-repeat !important;
     background-position: right center !important;
 }

.dataTables_wrapper .top {
    display: flex;
    justify-content: space-between; /* This spreads the elements to each side */
}

/* Start new dataTable */
.dataTable-container.v2{
    border-radius: 12px;
    margin-top: 15px;
    overflow: hidden;
}
.dataTable-container.v2 td a.btn{
    border-radius: 7px;
}

.dataTable-container.v2 .page-title{
    margin: 26px 30px 20px;
    font-size: 24px;
    letter-spacing: .3px;
    font-weight: 500;
    color: #4a4a4a;
}
table.v2 thead td, table.v2 tbody td {
    font-size: 13px;
    padding: 8px 10px 7px;
    position: relative;
    vertical-align: middle;
    color: #626262;
}
.bottom-info .dataTables_info{
    margin-top: 12px;
    margin-left: 12px;
    color: #898989 !important;
    letter-spacing: .3px;
    font-size: 13px;
}
.bottom-info{
    float: left;
}
.bottom-controls{
    padding: 15px 8px;
    display: flex;
    float: right;
}
.dataTables_length{
    margin-right: 12px;
    margin-top: 2px;
}
table.v2.display tbody tr.odd {
    background-color: #ffffff;
}
table.v2 thead th {
    padding: 13px 10px;
    color: #525252;
    text-transform: capitalize;
    letter-spacing: .3px;
}

table.v2.no-footer, table.v2 thead th, table.v2.display tbody td {
    border-bottom: 1px solid #e7e7e7;
    border-top: none;
}
table.v2.display tbody tr.odd>.sorting_1, table.v2.display tbody tr.even>.sorting_1{
    background-color: #f9f9f9;
}
.dataTables_length label{
    font-weight: 400;
}
.bottom-controls .paginate_button{
    padding: 4px 9px 2px;
    font-size: 12px;
}
.bottom-controls .paginate_button.previous, .bottom-controls .paginate_button.next{
    border-radius: 5px;
    border: none;
    padding: 5px 8px 3px 8px;
    font-size: 10px;
    background: #ffffff !important;
    color: #979797 !important;
}
.bottom-controls .dataTables_paginate .paginate_button.current{
    background: #000 !important;
    color: #fff !important;
    border-radius: 7px;
}
/* End new dataTable */


/* Start customer(v2) dataTable */
.warning-tag{
    font-size: 9px;
    padding: 3px 7px 2px;
    border-radius: 5px;
    color: #fff;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease;
    width: fit-content;
}
.warning-tag.danger{
    background: #a94240;
}
.warning-tag .wt-f{
    display: block;
}
.warning-tag .wt-t{
    display: none;
}
.warning-tag:hover .wt-f{
    display: none;
}
.warning-tag:hover .wt-t{
    display: block;
}
/* End customer(v2) dataTable */

.db-light table.dataTable thead th {
    background: #f9f9f9;
    padding: 10px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #dcdcdc;
}

.db-light .matches span:not(:last-child) {
    border-right: 1px solid #f3f3f3;
    padding-right: 8px;
    margin-right: 4px;
}

.db-light table.dataTable.stripe tbody tr.odd,
.db-light table.dataTable.display tbody tr.odd,
.db-light table.dataTable.display tbody tr.even>.sorting_1,
.db-light table.dataTable.order-column.stripe tbody tr.even>.sorting_1,
.db-light table.dataTable.display tbody tr.odd>.sorting_1,
.db-light table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background-color: #fff;
}
.db-light table.dataTable.display tbody tr {
    border: 1px solid #EAECF0;
    background: #fff;
}

.db-light thead tr {
    color: #1d1d1d;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    letter-spacing: 1px;
}

.db-light tr td:not(:last-child) {
    border-right: 1px solid #f6f6f6;
}

.db-light .dataTables_wrapper .dataTables_paginate .paginate_button:hover{
    background: #337ab712;
    border: none;
    color: #000000 !important;
    border-radius: 8px;
}

.db-light tbody td {
    position: relative;
    padding: 10px 20px;
    text-transform: capitalize;
    font-size: 12px;
}

/*.db-light tbody td:hover{*/
/*    background: #f1f1f1;*/
/*}*/

.db-light tr td:not(:last-child) {
    border-right: 1px solid #ededed;
}

.db-light table.dataTable tbody td {
    padding: 10px 10px;
}

.db-light .dataTables_wrapper .dataTables_paginate{
    border-radius: 5px;
    margin-top: 10px;
    padding-top: 0;
}

.db-light .dataTables_wrapper .dataTables_paginate .paginate_button.current{
    background: #337ab7;
    border: none;
    color: #fff !important;
    margin: 0;
    border-radius: 8px;
}

.db-light .dataTables_wrapper .dataTables_info{
    margin-top: 7px;
    color: #585858;
}

.db-light table.dataTable.no-footer {
    border-bottom: 1px solid #ececec;
}
