/* ==========================================================
   BIZGIX DATATABLE
========================================================== */

.dataTables_wrapper {
    width: 100%;
}


/* ==========================================================
   TOP CONTROLS
========================================================== */

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    min-height: 38px;
    border: 1px solid var(--bgx-border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 220px;
    padding: 8px 12px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #18afd0;
    box-shadow: 0 0 0 3px rgba(24,175,208,.10);
}


/* ==========================================================
   EXPORT BUTTON
========================================================== */

.dataTables_wrapper .bgx-table-export {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;

    gap: 7px;

    height: 38px !important;
    min-height: 38px !important;

    padding: 0 12px !important;

    border: 1px solid #dce3e8 !important;
    border-radius: 10px !important;

    background: #fff !important;

    color: #374151 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    box-shadow: none !important;
}

.dataTables_wrapper .bgx-table-export:hover {
    border-color: #18afd0 !important;
    color: #0ea5c6 !important;
    background: #ecfbfe !important;
}


/* ==========================================================
   EXPORT DROPDOWN
========================================================== */

div.dt-button-collection {
    padding: 7px !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;

    background: #fff !important;

    box-shadow:
        0 12px 30px rgba(15,23,42,.12) !important;
}

div.dt-button-collection .dt-button {
    display: flex !important;
    align-items: center;
    gap: 9px;

    width: 100% !important;

    padding: 9px 12px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;

    color: #374151 !important;

    font-size: 13px !important;

    text-align: left !important;
}

div.dt-button-collection .dt-button:hover {
    background: #ecfbfe !important;
    color: #0ea5c6 !important;
}


/* ==========================================================
   TABLE FOOTER
========================================================== */

.dataTables_wrapper .dataTables_info {
    padding-top: 18px !important;

    color: #6b7280;

    font-size: 13px;
}


/* ==========================================================
   PAGINATION
========================================================== */

.dataTables_wrapper .dataTables_paginate {
    padding-top: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 5px;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    padding: 0 10px;

    border: 1px solid #e5e7eb;
    border-radius: 9px !important;

    background: #fff;

    color: #4b5563;

    font-size: 13px;

    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover {
    border-color: #18afd0;

    background: #ecfbfe;

    color: #0ea5c6;
}

.dataTables_wrapper
.dataTables_paginate
.page-item.active
.page-link {

    border-color: #18afd0;

    background: #18afd0;

    color: #fff;
}

.dataTables_wrapper
.dataTables_paginate
.page-item.disabled
.page-link {

    background: #f8fafc;

    color: #c1c7d0;
}


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

@media (max-width: 767px) {

    .dataTables_wrapper .dataTables_filter input {
        min-width: 160px;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center;
        margin-top: 8px;
    }

}

/* ==========================================================
   DATATABLE FILTER CONTROLS
========================================================== */

.bgx-table-filter {
    height: 38px !important;
    min-height: 38px !important;

    padding: 0 12px;

    border: 1px solid #dce3e8;
    border-radius: 10px;

    background-color: #fff;

    color: #374151;

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

    line-height: 1.2;

    box-shadow: none;
    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


/* SELECT */

select.bgx-table-filter {
    padding-right: 36px;
    cursor: pointer;
}


/* INPUT */

input.bgx-table-filter {
    padding-left: 12px;
    padding-right: 12px;
}


/* FOCUS */

.bgx-table-filter:focus {
    border-color: #18afd0;

    box-shadow:
        0 0 0 3px rgba(24, 175, 208, .10);

    outline: none;
}


/* DISABLED */

.bgx-table-filter:disabled {
    background-color: #f8fafc;
    color: #9ca3af;
    cursor: not-allowed;
}

/* ==========================================================
   BIZGIX DATATABLE
========================================================== */

.dataTables_wrapper {
    width: 100%;
}


/* ==========================================================
   TOP CONTROLS
========================================================== */

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    min-height: 38px;
    border: 1px solid var(--bgx-border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 220px;
    padding: 8px 12px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #18afd0;
    box-shadow: 0 0 0 3px rgba(24,175,208,.10);
}


/* ==========================================================
   EXPORT BUTTON
========================================================== */

.dataTables_wrapper .bgx-table-export {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;

    gap: 7px;

    height: 38px !important;
    min-height: 38px !important;

    padding: 0 12px !important;

    border: 1px solid #dce3e8 !important;
    border-radius: 10px !important;

    background: #fff !important;

    color: #374151 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    box-shadow: none !important;
}

.dataTables_wrapper .bgx-table-export:hover {
    border-color: #18afd0 !important;
    color: #0ea5c6 !important;
    background: #ecfbfe !important;
}


/* ==========================================================
   EXPORT DROPDOWN
========================================================== */

div.dt-button-collection {
    padding: 7px !important;

    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;

    background: #fff !important;

    box-shadow:
        0 12px 30px rgba(15,23,42,.12) !important;
}

div.dt-button-collection .dt-button {
    display: flex !important;
    align-items: center;
    gap: 9px;

    width: 100% !important;

    padding: 9px 12px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;

    color: #374151 !important;

    font-size: 13px !important;

    text-align: left !important;
}

div.dt-button-collection .dt-button:hover {
    background: #ecfbfe !important;
    color: #0ea5c6 !important;
}


/* ==========================================================
   TABLE FOOTER
========================================================== */

.dataTables_wrapper .dataTables_info {
    padding-top: 18px !important;

    color: #6b7280;

    font-size: 13px;
}


/* ==========================================================
   PAGINATION
========================================================== */

.dataTables_wrapper .dataTables_paginate {
    padding-top: 12px !important;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 5px;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    padding: 0 10px;

    border: 1px solid #e5e7eb;
    border-radius: 9px !important;

    background: #fff;

    color: #4b5563;

    font-size: 13px;

    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover {
    border-color: #18afd0;

    background: #ecfbfe;

    color: #0ea5c6;
}

.dataTables_wrapper
.dataTables_paginate
.page-item.active
.page-link {

    border-color: #18afd0;

    background: #18afd0;

    color: #fff;
}

.dataTables_wrapper
.dataTables_paginate
.page-item.disabled
.page-link {

    background: #f8fafc;

    color: #c1c7d0;
}


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

@media (max-width: 767px) {

    .dataTables_wrapper .dataTables_filter input {
        min-width: 160px;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center;
        margin-top: 8px;
    }

}

/* ==========================================================
   DATATABLE FILTER CONTROLS
========================================================== */

.bgx-table-filter {
    height: 38px !important;
    min-height: 38px !important;

    padding: 0 12px;

    border: 1px solid #dce3e8;
    border-radius: 10px;

    background-color: #fff;

    color: #374151;

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

    line-height: 1.2;

    box-shadow: none;
    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


/* SELECT */

select.bgx-table-filter {
    padding-right: 36px;
    cursor: pointer;
}


/* INPUT */

input.bgx-table-filter {
    padding-left: 12px;
    padding-right: 12px;
}


/* FOCUS */

.bgx-table-filter:focus {
    border-color: #18afd0;

    box-shadow:
        0 0 0 3px rgba(24, 175, 208, .10);

    outline: none;
}


/* DISABLED */

.bgx-table-filter:disabled {
    background-color: #f8fafc;
    color: #9ca3af;
    cursor: not-allowed;
}
/* ==========================================================
   TOP CONTROL ROW: PAGE LENGTH, SEARCH AND EXPORT
========================================================== */

.dataTables_wrapper > .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
}

.dataTables_wrapper > .row:first-child > [class*="col-"] {
    width: auto;
    max-width: none;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.dataTables_wrapper .dt-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.dataTables_wrapper .dt-layout-row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
}

.dataTables_wrapper .dt-layout-row:first-child .dt-layout-cell {
    display: flex;
    align-items: center;
    min-width: 0;
}

.dataTables_wrapper .dt-layout-row:first-child .dt-layout-end,
.dataTables_wrapper .dt-layout-row:first-child .dt-search {
    justify-content: flex-end;
}

.dataTables_wrapper .dt-layout-row:first-child .dt-length,
.dataTables_wrapper .dt-layout-row:first-child .dt-search,
.dataTables_wrapper .dt-layout-row:first-child .dt-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

@media (max-width: 767px) {
    .dataTables_wrapper > .row:first-child {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dataTables_wrapper > .row:first-child > [class*="col-"] {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter {
        justify-content: flex-start;
    }

    .dataTables_wrapper .dt-layout-row:first-child {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}
