.dataTables_scrollBody {
    max-height: 30vh !important;
    height: auto !important;
}

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-area {
    flex: 0 0 auto;
}

.table-area {
    flex: 1;
    min-height: 0;
}


.dataTables_scrollBody tr.group-row td {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f5f5f5;
}


@media (max-width: 992px) {

    html,
    body {
        height: 100%;
        margin: 0;
        overflow: auto;
    }

    .dataTables_scrollBody tr.group-row td {
        top: -2px;
    }

    .filter-group {
        width: 42% !important;
    }

    .btn-refresh {
        width: unset !important;
    }
}


/* filter bar về mobile button không tree  */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.popup-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .45);

    opacity: 0;
    visibility: hidden;

    transition: .25s;

    z-index: 9998;

}

/* khi popup mở ra */

.popup-overlay.show {

    opacity: 1;
    visibility: visible;

}

.dataTables_scrollHead {
    border-right: 1px solid #ebebeb;
    border-top: 1px solid #ebebeb;
    box-shadow: 0 6px 8px -4px rgba(0, 0, 0, 0.25);
    z-index: 9;
}

/* .shadown-header {
    clip-path: inset(0 10px -10px 0);
} */

#report_table tbody tr td:last-child {
    border-right: unset !important;
}

@media (max-width:768px) {
    .desktop-only {
        display: none !important;
    }

    .filter-group.column-mobile {
        position: absolute;
        right: 0;
        width: 31px !important;
        bottom: 0;
    }

    .filter-bar {
        position: relative;
    }

    .mobile-only {
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .select-all {
        border-bottom: unset !important;
        padding: 0;
    }

    #filter-column-change .popup-select {
        padding: 0;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%) scale(.9);
        width: 90%;
        max-width: 360px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
        opacity: 0;
        visibility: hidden;
        transition: .25s;
        z-index: 9999;
        display: flex;
        flex-direction: column;
    }

    #filter-column-change .popup-select.show {

        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);

    }

    /* grid checkbox */

    .column-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 25px;
    }

    /* header */

    .popup-header {
        padding: 16px 25px;
        border-bottom: 1px solid #eee;
    }

    .mobile-custom-popup .left-search-main {
        top: 24px !important;
        left: 24px !important;
    }

    .btn-cancel-popup,
    .btn-apply-popup,
    .btn-cancel-tree,
    .btn-apply-tree {
        width: 40%;
    }

    .popup-overlay.show {
        display: block;
    }

    .column-mobile-btn {
        border: 1px solid #163F78;
        border-radius: 8px;
        padding: 0px 8px;
        background-color: #fff;
        color: #163F78;
        font-size: 18px;
        width: 36px;
        height: 30px;
        justify-content: center;
    }

    /* footer */

    .popup-footer {
        display: flex;
        padding: 12px 16px;
        border-top: 1px solid #eee;
        background-color: #e9f0fa;
    }

    .btn-cancel-popup,
    .btn-cancel-tree {
        opacity: 0.5;
    }
}

/* filter bar về mobile có tree  */

@media (max-width:768px) {
    .padding-mobile-show-all {
        padding: 1px 22px;
    }

    #popupLeague {
        padding: 0 !important;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%) scale(.9);
        width: 90%;
        max-width: 380px;
        max-height: 75vh;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
        opacity: 0;
        visibility: hidden;
        transition: .25s;
        overflow: hidden;
        z-index: 9999;
        display: flex;
        flex-direction: column;
    }

    #popupLeague.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    #popupLeague .search-refresh {
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
    }

    #popupLeague .league-list {
        overflow-y: auto;
        max-height: 45vh;

    }
}