/* DATATABLE CSS */
.custom-table-thead {
    color: black;
    font-size: 14px;

}

.table {
    color: #343a40 !important;
}

tr.customTr {
    border-bottom: 1px solid;
}

.listTable{
    position: relative !important;
}

table.dataTable td, table.dataTable th{
    font-weight: 400 !important;
}

input.form-control.form-control-sm {
    border-radius: 20px;
    color: black;
}

div#historyTable_info {
    color: black;
}

div#historyTable_wrapper {
    background-color: white;
}

.table tfoot th,
.table th,
.table thead th {
    font-weight: 500;
    padding-left: 40px !important;
}

.table td,
.table th {
    padding-left: 40px !important;
    font-weight: 400;
}

.table td,
.table th {
    padding: .75rem;
    vertical-align: top;
    border-top: none;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: none;
}

.firstTd {
    padding-left: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.lastTd {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.page-item.active .page-link {
    border: 2px solid black !important;
    z-index: 3;
    color: black !important;
    background-color: white !important;
    border-radius: 99px;
    width: 35px;
    height: 35px;
    text-align: center;
    margin: 4px;
    border-color: black !important;
}

.page-link {
    border: none;
    z-index: 3;
    color: black !important;
    background-color: #f3f4f5;
    border-radius: 99px;
    width: 35px;
    height: 35px;
    text-align: center;
    margin: 4px;
}

.previous .page-link,
.next .page-link {
    border: none;
    z-index: 3;
    color: black !important;
    background-color: #f3f4f5;
    border-radius: 99px;
    width: 100px;
    text-align: center;
    margin: 4px;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-top-right-radius: 99px;
    border-bottom-right-radius: 99px;
    border-top-left-radius: 99px;
    border-bottom-left-radius: 99px;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    justify-content: left !important;
    margin-top: 10px !important;
}

.btn-data-download {
    background: black;
    border: 1px solid black;
    border-radius: 99px;
    color: white;
    padding-left: 30px;
    padding-right: 30px;
    transition: 0.3s;
    margin: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 11px;
}

.btn-data-download:hover {
    background: white;
    color: black;
    transition: 0.3s;
}

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 {
    left: 10px;
    position: absolute;
    bottom: 0.8em !important;
    display: block;
    margin-left: 10px !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 {
    left: 10px !important;
    position: absolute;
    bottom: 0.8em !important;
    display: block;
}

/* Laptop */
@media screen and (min-width: 993px) {

    div.dataTables_wrapper div.dataTables_filter {
        width: fit-content;
        position: absolute;
        top: 0px;
        right: 0px;
        color: black;
    }

    .dt-buttons {
        margin-bottom: -10px;
    }

}

/* Tablet */
@media only screen and (max-width: 992px) and (min-width: 601px) {
    div.dataTables_wrapper div.dataTables_filter {
        text-align: left !important;
        color: black !important;
        margin-top: 20px;
    }

    .dt-buttons {
        float: right;
    }

    #historyTableSec {
        overflow: auto;
    }

}


/* Phone */
@media screen and (max-width: 600px) {


    div.dataTables_wrapper div.dataTables_filter {
        text-align: left !important;
        color: black !important;
    }


    #historyTableSec {
        overflow: auto;
    }

    .custom-table-thead {
        color: black;
        font-size: 14px;
    }

    thead tr th {
        max-height: 20px;
    }

    .dt-buttons {
        float: left;
        margin-bottom: 20px;
        margin-top: 20px;
    }

}

/* DATATABLE CSS */