/*
 * Full-screen management experience for Meetings + Event Management.
 *
 * The organizer asked that buttons such as RSVP, Edit, Manage Invitees,
 * Schedule/Create, Reschedule, Cancel, QR views, and related event dialogs
 * open as full-page overlays instead of narrow sheets/centered modals.
 *
 * This file is intentionally route-scoped so dialogs elsewhere in the
 * Excellence Center keep their existing presentation.
 */

html[data-route="/meetings"] [role="dialog"],
html[data-route="/eventmanagement"] [role="dialog"] {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: clamp(1rem, 2vw, 2rem) !important;
}

/* RSVP Details is already structured as a fixed header + scrolling body. */
html[data-route="/meetings"] [role="dialog"].flex.flex-col,
html[data-route="/eventmanagement"] [role="dialog"].flex.flex-col {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Preserve readable line lengths on large displays while still using the page. */
html[data-route="/meetings"] [role="dialog"] > form,
html[data-route="/meetings"] [role="dialog"] > .space-y-4,
html[data-route="/meetings"] [role="dialog"] > .space-y-5,
html[data-route="/eventmanagement"] [role="dialog"] > form,
html[data-route="/eventmanagement"] [role="dialog"] > .space-y-4,
html[data-route="/eventmanagement"] [role="dialog"] > .space-y-5 {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* Keep dialog headers and footers visible and comfortable on scaled displays. */
html[data-route="/meetings"] [role="dialog"] > [class*="DialogHeader"],
html[data-route="/eventmanagement"] [role="dialog"] > [class*="DialogHeader"] {
  width: 100%;
}

@supports not (height: 100dvh) {
  html[data-route="/meetings"] [role="dialog"],
  html[data-route="/eventmanagement"] [role="dialog"] {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}
