@import url('./variables.css');

.dt-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    width: 100%;
    --dt-row-selected: 13, 110, 253;
    --dt-row-selected-text: 255, 255, 255;
    --dt-row-selected-link: 228, 228, 228;
    --dt-row-stripe: 0, 0, 0;
    --dt-row-hover: 0, 0, 0;
    --dt-column-ordering: 0, 0, 0;
    --dt-header-align-items: center;
    --dt-header-vertical-align: middle;
    --dt-html-background: white
}

.dt-layout-table {
    overflow: auto;
    flex: 1;
    background: #eee;
}

.dt-layout-row-top,
.dt-layout-row-bottom {
    display: flex;
    justify-content: space-between;
}

.dt-layout-row-bottom {
    flex-wrap: wrap;
    gap: 10px;
}

.dt-layout-row-bottom .dt-layout-start {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.table-overflowdiv {
    overflow: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.dt-search {
    position: relative;
}

.dt-search input {
    padding-left: 30px !important;
}

.dt-search label::before {
    content: "\f002";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    color: #999;
    margin-right: 8px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.dt-length .select2 {
    max-width: 150px ;
    min-width: auto ;
}

/* ==========================================================
   DataTables 2 Pagination
   ========================================================== */

.dt-paging {
    display: flex;
    align-items: center;
}

.dt-paging nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Base button */
.dt-paging-button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px ;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--primary-color) ;
    background: #fff ;
    color: var(--primary-color) ;

    border-radius: 4px;
    box-shadow: none ;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;
}

/* Hover */
.dt-paging-button:not(.current):not(.disabled):hover {
    background: #eaf8f8 ;
    color: var(--primary-color) ;
    border-color: var(--primary-color) ;
}

/* Active page */
.dt-paging-button.current {
    background: var(--primary-color) ;
    border-color: var(--primary-color) ;
    color: #fff ;
    cursor: default;
}

/* Disabled */
.dt-paging-button.disabled,
.dt-paging-button:disabled {
    background: #f8f9fa ;
    border-color: #d9e1e3 ;
    color: #b8c2c5 ;

    cursor: not-allowed;
    opacity: 1;
}

/* Focus */
.dt-paging-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(15, 139, 141, .15);
}

table:not(.datepicker table) {
    background: #fff;
    border-collapse: collapse;
    position: relative;
    width: 100%;
}

table:not(.datepicker table, .nostriped) tbody tr:nth-child(2n) {
    background-color: var(--table-even-row-bg);
}

table:not(.datepicker table, .nostriped) tfoot tr:nth-child(2n) {
    background-color: var(--table-even-row-bg);
}

table:not(.datepicker table, .nostriped) tfoot tr p {
    margin-bottom: 0 ;
}

table:not(.datepicker table, .nostriped) tbody tr:nth-child(2n+1) {
    background-color: #fff;
}

table:not(.datepicker table, .nostriped) tfoot tr:nth-child(2n+1) {
    background-color: #fff;
}

table:not(.datepicker table, .nostriped) tbody tr:hover {
    background-color: var(--table-row-hover-bg);
}

table:not(.datepicker table, .nostriped) tfoot tr:hover {
    background-color: var(--table-row-hover-bg);
}

table:not(.datepicker table, .nostriped) thead tr {
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}

table:not(.datepicker table, .nostriped) tbody tr {
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
}

table:not(.datepicker table, .nostriped) thead th {
    background-color: var(--table-head-bg) ;
    color: #fff;
}

table:not(.datepicker) thead {
    position: sticky;
    top: -1px;
    z-index: 1;
}

table:not(.datepicker table) th {
    padding: 10px;
    text-wrap: nowrap;
    font-size: var(--fs-body);
}

table:not(.datepicker table) td {
    padding: 10px;
    font-size: var(--fs-small);
    padding-right: 27px;
}

/* =========================================================
   TABLE ACTIONS WRAPPER
========================================================= */

.tbl-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 140px;
}


/* =========================================================
   COMMON ACTION BUTTON
========================================================= */

.tbl-action,
.tbl-action-success,
.tbl-action-danger,
.tbl-action-warning,
.tbl-action-info {
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    text-wrap: nowrap;
}


/* =========================================================
   COMMON STATUS STYLE
========================================================= */

.tbl-status-success,
.tbl-status-danger,
.tbl-status-warning,
.tbl-status-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 28px;
    border: 1px solid transparent;
    text-wrap: nowrap;
}


/* =========================================================
   SUCCESS
========================================================= */

.tbl-action-success,
.tbl-status-success {
    background: #edfdf3;
    border-color: #b7ebc6;
    color: #1f7a3d;
}

.tbl-action-success:hover {
    background: #dff7e8;
}


/* =========================================================
   DANGER
========================================================= */

.tbl-action-danger,
.tbl-status-danger {
    background: #fff1f0;
    border-color: #ffccc7;
    color: #cf1322;
}

.tbl-action-danger:hover {
    background: #ffe2df;
}


/* =========================================================
   WARNING
========================================================= */

.tbl-action-warning,
.tbl-status-warning {
    background: #fffbe6;
    border-color: #ffe58f;
    color: #ad6800;
}

.tbl-action-warning:hover {
    background: #fff3cf;
}


/* =========================================================
   INFO
========================================================= */

.tbl-action-info,
.tbl-status-info {
    background: #e6f4ff ;
    border-color: #91caff ;
    color: #0958d9 ;
}

.tbl-action-info:hover {
    background: #d5ecff ;
}


/* =========================================================
   DEFAULT ACTION BUTTON
========================================================= */

.tbl-action {
    background: #198A5E1A;
    border-color: var(--primary-color);
    color: var(--primary-color);
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.tbl-action:hover {
    background: var(--primary-color);
    color: #fff;
}


/* =========================================================
   DISABLED STATE
========================================================= */

.tbl-action:disabled,
.tbl-action-success:disabled,
.tbl-action-danger:disabled,
.tbl-action-warning:disabled,
.tbl-action-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================================
   FOCUS STATE
========================================================= */

.tbl-action:focus,
.tbl-action-success:focus,
.tbl-action-danger:focus,
.tbl-action-warning:focus,
.tbl-action-info:focus {
    outline: none;
    box-shadow: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .tbl-actions-wrapper {
        gap: 6px;
    }

    .tbl-action,
    .tbl-action-success,
    .tbl-action-danger,
    .tbl-action-warning,
    .tbl-action-info,
    .tbl-status-success,
    .tbl-status-danger,
    .tbl-status-warning,
    .tbl-status-info {
        font-size: 11px;
        padding: 3px 8px;
    }
}


table.dataTable thead>tr>th.dt-orderable-asc .dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-asc .dt-column-order:before,
table.dataTable thead>tr>td.dt-orderable-asc .dt-column-order:before,
table.dataTable thead>tr>td.dt-ordering-asc .dt-column-order:before {
    position: absolute;
    display: block;
    bottom: 50%;
     content: "\f0de"; /* fa-sort-up */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}

table.dataTable thead>tr>th.dt-orderable-desc .dt-column-order:after,
table.dataTable thead>tr>th.dt-ordering-desc .dt-column-order:after,
table.dataTable thead>tr>td.dt-orderable-desc .dt-column-order:after,
table.dataTable thead>tr>td.dt-ordering-desc .dt-column-order:after {
    position: absolute;
    display: block;
    top: 50%;
     content: "\f0dd"; /* fa-sort-down */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}

table.dataTable thead>tr>th.dt-orderable-asc .dt-column-order,
table.dataTable thead>tr>th.dt-orderable-desc .dt-column-order,
table.dataTable thead>tr>th.dt-ordering-asc .dt-column-order,
table.dataTable thead>tr>th.dt-ordering-desc .dt-column-order,
table.dataTable thead>tr>td.dt-orderable-asc .dt-column-order,
table.dataTable thead>tr>td.dt-orderable-desc .dt-column-order,
table.dataTable thead>tr>td.dt-ordering-asc .dt-column-order,
table.dataTable thead>tr>td.dt-ordering-desc .dt-column-order {
    position: relative;
    width: 12px;
    height: 20px
}

table.dataTable thead>tr>th.dt-orderable-asc .dt-column-order:before,
table.dataTable thead>tr>th.dt-orderable-asc .dt-column-order:after,
table.dataTable thead>tr>th.dt-orderable-desc .dt-column-order:before,
table.dataTable thead>tr>th.dt-orderable-desc .dt-column-order:after,
table.dataTable thead>tr>th.dt-ordering-asc .dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-asc .dt-column-order:after,
table.dataTable thead>tr>th.dt-ordering-desc .dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-desc .dt-column-order:after,
table.dataTable thead>tr>td.dt-orderable-asc .dt-column-order:before,
table.dataTable thead>tr>td.dt-orderable-asc .dt-column-order:after,
table.dataTable thead>tr>td.dt-orderable-desc .dt-column-order:before,
table.dataTable thead>tr>td.dt-orderable-desc .dt-column-order:after,
table.dataTable thead>tr>td.dt-ordering-asc .dt-column-order:before,
table.dataTable thead>tr>td.dt-ordering-asc .dt-column-order:after,
table.dataTable thead>tr>td.dt-ordering-desc .dt-column-order:before,
table.dataTable thead>tr>td.dt-ordering-desc .dt-column-order:after {
    left: 0;
    opacity: .125;
    line-height: 2px;
    font-size: .8em
}

table.dataTable thead>tr>th.dt-orderable-asc,
table.dataTable thead>tr>th.dt-orderable-desc,
table.dataTable thead>tr>td.dt-orderable-asc,
table.dataTable thead>tr>td.dt-orderable-desc {
    cursor: pointer
}

table.dataTable thead>tr>th.dt-orderable-asc:hover,
table.dataTable thead>tr>th.dt-orderable-desc:hover,
table.dataTable thead>tr>td.dt-orderable-asc:hover,
table.dataTable thead>tr>td.dt-orderable-desc:hover {
    outline: 2px solid rgba(0, 0, 0, 0.05);
    outline-offset: -2px
}

table.dataTable thead>tr>th.dt-ordering-asc .dt-column-order:before,
table.dataTable thead>tr>th.dt-ordering-desc .dt-column-order:after,
table.dataTable thead>tr>td.dt-ordering-asc .dt-column-order:before,
table.dataTable thead>tr>td.dt-ordering-desc .dt-column-order:after {
    opacity: .6
}

table.dataTable thead>tr>th.dt-orderable-none:not(.dt-ordering-asc, .dt-ordering-desc) .dt-column-order:empty,
table.dataTable thead>tr>th.sorting_desc_disabled .dt-column-order:after,
table.dataTable thead>tr>th.sorting_asc_disabled .dt-column-order:before,
table.dataTable thead>tr>td.dt-orderable-none:not(.dt-ordering-asc, .dt-ordering-desc) .dt-column-order:empty,
table.dataTable thead>tr>td.sorting_desc_disabled .dt-column-order:after,
table.dataTable thead>tr>td.sorting_asc_disabled .dt-column-order:before {
    display: none
}


table.dataTable thead>tr>th:active,
table.dataTable thead>tr>td:active {
    outline: none
}

table.dataTable thead>tr>th div.dt-column-header,
table.dataTable thead>tr>th div.dt-column-footer,
table.dataTable thead>tr>td div.dt-column-header,
table.dataTable thead>tr>td div.dt-column-footer,
table.dataTable tfoot>tr>th div.dt-column-header,
table.dataTable tfoot>tr>th div.dt-column-footer,
table.dataTable tfoot>tr>td div.dt-column-header,
table.dataTable tfoot>tr>td div.dt-column-footer {
    display: flex;
    justify-content: space-between;
    align-items: var(--dt-header-align-items);
    gap: 4px
}

table.dataTable thead>tr>th div.dt-column-header .dt-column-title,
table.dataTable thead>tr>th div.dt-column-footer .dt-column-title,
table.dataTable thead>tr>td div.dt-column-header .dt-column-title,
table.dataTable thead>tr>td div.dt-column-footer .dt-column-title,
table.dataTable tfoot>tr>th div.dt-column-header .dt-column-title,
table.dataTable tfoot>tr>th div.dt-column-footer .dt-column-title,
table.dataTable tfoot>tr>td div.dt-column-header .dt-column-title,
table.dataTable tfoot>tr>td div.dt-column-footer .dt-column-title {
    flex-grow: 1
}

table.dataTable thead>tr>th div.dt-column-header .dt-column-title:empty,
table.dataTable thead>tr>th div.dt-column-footer .dt-column-title:empty,
table.dataTable thead>tr>td div.dt-column-header .dt-column-title:empty,
table.dataTable thead>tr>td div.dt-column-footer .dt-column-title:empty,
table.dataTable tfoot>tr>th div.dt-column-header .dt-column-title:empty,
table.dataTable tfoot>tr>th div.dt-column-footer .dt-column-title:empty,
table.dataTable tfoot>tr>td div.dt-column-header .dt-column-title:empty,
table.dataTable tfoot>tr>td div.dt-column-footer .dt-column-title:empty {
    display: none
}

div.dt-scroll-body>table.dataTable>thead>tr>th,
div.dt-scroll-body>table.dataTable>thead>tr>td {
    overflow: hidden
}

table > thead{
    vertical-align: middle !important;
}

@media screen and (max-width: 499px){
    .dt-layout-row-top{
        display: flex;
        flex-direction: column;
    }

    .dt-search{
        margin-bottom: 10px;
    }
}
.mtop{
    margin-top: 8px;
}