/* SZIA FIX: browse/search találatszám dropdown kattinthatóság.
   Ok: a találati .row elemek ráfeküdtek a nyitott dropdownra. */

ds-object-list,
ds-themed-object-list,
ds-pagination,
ds-themed-pagination,
ds-pagination-options,
ds-themed-pagination-options,
.pagination-masked,
.pagination-masked.top,
.pagination-masked.bottom {
  position: relative !important;
  overflow: visible !important;
}

/* A dropdownot tartalmazó felső/alsó pagination blokk legyen a találati sorok felett */
.pagination-masked,
.pagination-masked .row,
.pagination-masked .col,
.pagination-masked .dropdown,
.pagination-masked [ngbdropdown],
.pagination-masked .btn-group {
  position: relative !important;
  overflow: visible !important;
  z-index: 300000 !important;
  pointer-events: auto !important;
}

/* Maga a lenyíló menü legyen legfelül és teljes felületén kattintható */
.pagination-masked .dropdown-menu.show,
.pagination-masked .show > .dropdown-menu,
ds-pagination .dropdown-menu.show,
ds-themed-pagination .dropdown-menu.show {
  position: absolute !important;
  z-index: 300010 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.pagination-masked .dropdown-menu.show *,
ds-pagination .dropdown-menu.show * {
  pointer-events: auto !important;
}

.pagination-masked .dropdown-menu.show .dropdown-item,
.pagination-masked .dropdown-menu.show button,
.pagination-masked .dropdown-menu.show a {
  position: relative !important;
  z-index: 300011 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Amíg nyitva van a találatszám/rendezés dropdown, a találati sorok ne feküdjenek rá */
body:has(.pagination-masked .dropdown-menu.show) ds-object-list .row,
body:has(ds-pagination .dropdown-menu.show) ds-object-list .row {
  z-index: 0 !important;
}

/* De a pagination saját sora maradjon felül */
body:has(.pagination-masked .dropdown-menu.show) .pagination-masked .row,
body:has(ds-pagination .dropdown-menu.show) .pagination-masked .row {
  z-index: 300000 !important;
}
