/* Supervisor booking surface (MEA-16): the bookings list, the participant
   lookup, the booking form, and the confirmation. Built from design-system
   components; this sheet only places them. Structure in @layer layout,
   paint in @layer design. */

@layer layout {
  /* Participant lookup: the search field and its button on one line, wrapping
     on a narrow screen. */
  .supervisor-booking .lookup { display: flex; flex-wrap: wrap; align-items: end;
                                gap: var(--t-space-3); }
  .supervisor-booking .lookup .field { flex: 1; min-inline-size: 12rem; }

  /* The booking form's two steps. */
  .supervisor-booking .booking-step { display: grid; gap: var(--t-space-3); }
  .supervisor-booking .booking-confirm { display: grid; gap: var(--t-space-3); }
  /* The confirm is the step's one action, so it spans the form. */
  .supervisor-booking .booking-confirm .confirm { inline-size: 100%; }

  .supervisor-booking .for, .supervisor-booking .hint { margin: 0; }

  /* The bookings list: its rows run to the pane's edges, so the trailing
     create action and the empty message pad themselves. */
  .supervisor-bookings .pane .action { margin: 0;
                                       padding: var(--t-space-4) var(--t-space-5); }
  .supervisor-bookings .pane .empty-note { margin: var(--t-space-4) var(--t-space-5); }
}

@layer design {
  .supervisor-booking .for { color: var(--c-surface-text-color-base);
                             font-weight: var(--t-font-weight-semibold); }
  .supervisor-booking .hint { color: var(--c-surface-text-color-muted); }
}
