/* Shared production/admin controls: dropdown stacking + date inputs.
   Root cause of combo-under-content: nice-select .list uses z-index:9 while
   later siblings (grids, form-groups with their own stacking, cards) paint on top.
   Fix the stacking context of the open combo instead of a one-page 999999 hack. */

.nice-select {
    float: none;
    overflow: visible;
}

.nice-select.open {
    position: relative;
    z-index: 40;
}

.nice-select .list {
    z-index: 41;
}

.form-group,
.filter-card,
.filter-grid,
.filter-grid > div,
.profile-user-page,
.profile-user-page .col-md-4,
.profile-user-page form,
.modal-body,
.mb-3 {
    overflow: visible;
}

.form-group {
    position: relative;
    z-index: 1;
}

.form-group:has(.nice-select.open),
.filter-grid > div:has(.nice-select.open),
.mb-3:has(.nice-select.open) {
    z-index: 40;
}

#grid-wrapper,
.gridjs-wrapper,
.gridjs-container {
    position: relative;
    z-index: 0;
}

.filter-card {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.filter-card.open,
.filter-card:has(.nice-select.open) {
    z-index: 50;
}

.filter-card .nice-select,
.pmk-filter-card .nice-select {
    width: 100%;
    display: block;
    float: none;
}

.filter-card .nice-select.open {
    z-index: 60;
}

.filter-card .nice-select .list {
    z-index: 61;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
}

.pmk-filter-card {
    overflow: visible;
}

.content-section,
.content-section.default,
.order_delivered_sec {
    position: relative;
    z-index: 0;
    overflow: visible;
}

.filter-card + * {
    position: relative;
    z-index: 0;
}

.pmk-table-wrap {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 0;
    max-width: 100%;
}

.pdp-default {
    z-index: 5000;
}
