/**
 * YSM_OCT-11419: Magento 2.4.6+ set .admin__data-grid-wrap { overflow-x: visible },
 * so wide admin grids (Products etc.) scroll the whole page and leave blank space /
 * table protruding past the white page-wrapper into the gray body.
 *
 * Restore grid-local horizontal scrolling and keep wide tables clipped inside the
 * content column (including sticky header clone).
 */
.admin__data-grid-outer-wrap {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.admin__data-grid-wrap {
    overflow-x: auto !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Sticky header clones the wide table; Magento sets overflow-x: visible here which
   lets the header stick out past the content column when many columns are enabled. */
.sticky-header {
    overflow-x: hidden;
    box-sizing: border-box;
}

.sticky-header .admin__data-grid-wrap {
    overflow-x: hidden !important;
    max-width: 100%;
}
