/*--------------------------------------------------------------
This is your custom stylesheet.

Add your own styles here to make theme updates easier.
To override any styles from other stylesheets, simply copy them into here and edit away.

Make sure to respect the media queries! Otherwise you may
accidentally add desktop styles to the mobile layout.
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
--------------------------------------------------------------*/
/*--------------------------------------------------------------
Fix: DataTables Buttons Column Visibility dropdown not scrollable
The default CSS sets overflow:hidden on .dt-button-collection which
prevents scrolling when there are many columns (62 columns = 2148px tall).
--------------------------------------------------------------*/

div.dt-button-collection {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 70vh !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 99999 !important;
    width: 818px !important;
    border-radius: 8px !important;
}

div.dt-button-collection > :last-child {
    max-height: calc(70vh - 20px) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0.5rem !important;
}

div.dt-button-collection > :last-child .dt-button {
    min-width: 200px !important;
    flex: 0 1 auto !important;
    margin: 2px !important;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem !important;
}