/**
 * @file
 * Shared event module page shell and empty-state placement.
 *
 * Keeps module hub pages (Timeline, Contacts, Guests, Layouts, Menus,
 * Checklist, Planning Partners) aligned when switching secondary-header tabs.
 */

/* ========================================
   MODULE PAGE SHELL
   ======================================== */

.ep-timeline-page,
.ep-contacts-overview,
.ep-guests-overview,
.ep-event-layouts-list:not(.ep-events-page):not(.ep-team-hub):not(.ep-templates-hub),
.ep-event-menus-list,
.ep-checklist-landing,
.ep-planning-partners-overview.ep-event-layouts-list {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ep-event-module-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ep-spacing-md);
  padding-right: var(--ep-spacing-md);
}

.ep-timeline-page,
.ep-contacts-overview,
.ep-guests-overview,
.ep-event-layouts-list:not(.ep-events-page):not(.ep-team-hub):not(.ep-templates-hub),
.ep-event-menus-list,
.ep-checklist-landing,
.ep-planning-partners-overview.ep-event-layouts-list {
  margin-top: var(--ep-spacing-lg);
}

/* ========================================
   EMPTY-STATE PAGE STABILITY
   ======================================== */

.ep-timeline-page.ep-module-empty .ep-timeline-intro {
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ep-timeline-page.ep-module-empty .ep-timeline-content,
.ep-contacts-overview:has(.ep-contacts-empty) .ep-contacts-layout,
.ep-guests-overview:has(.ep-contacts-empty) .ep-guests-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ep-contacts-overview:has(.ep-contacts-empty) .ep-contacts-layout {
  gap: 0;
  width: 100%;
}

.ep-contacts-overview:has(.ep-contacts-empty) .ep-contacts-actions:empty {
  display: none;
}

.ep-contacts-overview:has(.ep-contacts-empty) .ep-contacts-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ep-event-layouts-list:not(.ep-events-page):not(.ep-team-hub):not(.ep-templates-hub):has(> .ep-contacts-empty),
.ep-event-menus-list:has(> .ep-contacts-empty),
.ep-checklist-landing:has(.ep-contacts-empty),
.ep-planning-partners-overview:has(> .ep-contacts-empty) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ep-checklist-landing:has(.ep-contacts-empty) .ep-checklist-layout,
.ep-checklist-landing:has(.ep-contacts-empty) .ep-checklist-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
