@media (width >= 1024px) {
  body:has(.admin-event-summaries) {
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  body:has(.admin-event-summaries) > main {
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  #admin-requests-panel {
    min-height: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
  }

  #admin-requests-panel .admin-desktop-table {
   min-height: 50dvh;
   max-height: 50dvh;
    flex: 1 1 auto;
    overflow: auto;
  }

  .admin-event-summaries {
    flex: 0 0 auto;
    interpolate-size: allow-keywords;
  }

  .admin-event-summaries > .disclosure-card::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition:
      block-size 320ms cubic-bezier(0.2, 0, 0, 1),
      opacity 180ms ease,
      content-visibility 320ms allow-discrete;
  }

  .admin-event-summaries > .disclosure-card[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

.admin-event-summaries:has(> .disclosure-card[open]) {
  padding-block-end: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .admin-event-summaries > .disclosure-card::details-content {
    transition: none;
  }
}


#admin-requests-panel:not(:has([data-bulk-request]:checked)) [data-bulk-bookings],
#bulk-booking-form:not(.htmx-request) [data-bulk-saving-label],
#bulk-booking-form.htmx-request [data-bulk-save-label] {
  display: none;
}
