.ticket-buyers { display: grid; gap: var(--space-4); min-inline-size: 0; overflow-wrap: anywhere; }
.ticket-buyers__filters, .ticket-buyers__pages { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: end; }
.ticket-buyers__filters .field { min-inline-size: 0; max-inline-size: 100%; }
.ticket-buyers__filters select { max-inline-size: 100%; }
.ticket-buyers__link { display: inline-flex; align-items: center; min-block-size: var(--target-min); overflow-wrap: anywhere; }
.ticket-buyers__contacts dd { margin-inline-start: 0; margin-block-end: var(--space-3); }

/* A buyer's page: LTV KPI strip and Office VIP bar at the top, who they are (standing and campus beside the office's
   contacts on a wide screen), then the orders as one calm list whose tables share their columns, so dates, seats and
   amounts line up from order to order. */
.buyer-page { container: buyer-page / inline-size; gap: var(--density-block); }
.buyer-ltv { display: grid; gap: var(--space-3); min-inline-size: 0; }
.buyer-ltv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  margin: 0;
}
.buyer-ltv__tile {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.buyer-ltv__label {
  color: var(--fg2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.buyer-ltv__value {
  margin: 0;
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
@container buyer-page (min-width: 24rem) {
  .buyer-ltv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container buyer-page (min-width: 52rem) {
  .buyer-ltv__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.buyer-vip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}
.buyer-vip-bar__badge .pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.buyer-vip-bar__icon {
  inline-size: 0.9rem;
  block-size: 0.9rem;
  flex-shrink: 0;
}
.buyer-vip-bar__reason {
  flex: 1 1 14rem;
  min-inline-size: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}
.buyer-page__who,
.buyer-page__identity { display: grid; gap: var(--density-block); align-items: start; min-inline-size: 0; }
@container buyer-page (min-width: 52rem) {
  .buyer-page__who { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

.report-campus-line__fact { color: var(--fg1); }
.person-panel .person-panel-body > .report-campus-line__fact { color: var(--fg1); font-size: var(--person-data); }

.buyer-contacts__list { display: grid; margin: 0; }
.buyer-contacts__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem var(--space-3);
  min-inline-size: 0;
  padding-block: var(--person-row-y);
  border-block-start: 1px solid var(--rule);
}
.buyer-contacts__row:first-child { border-block-start: 0; padding-block-start: 0; }
.buyer-contacts__row:last-child { padding-block-end: 0; }
.buyer-contacts__kind {
  color: var(--fg2);
  font-size: var(--person-label);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.buyer-contacts__value { display: grid; margin: 0; color: var(--fg1); font-weight: 600; overflow-wrap: anywhere; }
.buyer-contacts__source { display: grid; margin: 0; color: var(--fg2); font-size: var(--person-meta); }
@container panel (min-width: 22rem) {
  .buyer-contacts__row { grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr); align-items: baseline; }
  .buyer-contacts__kind { grid-row: 1 / span 2; }
  .buyer-contacts__value,
  .buyer-contacts__source { grid-column: 2; }
}

.buyer-tickets .person-panel-body { gap: var(--space-4); }
.person-panel .person-panel-body > .buyer-tickets__caveat { max-inline-size: 80ch; }
.buyer-tickets__group { display: grid; gap: var(--space-2); min-inline-size: 0; }
.buyer-tickets__heading { margin: 0; color: var(--fg2); }
.buyer-tickets__empty,
.person-panel .person-panel-body > .buyer-contacts__empty { margin: 0; color: var(--fg2); font-size: var(--person-data); }

.buyer-orders { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: clip; }
.buyer-order { display: grid; min-inline-size: 0; }
.buyer-order + .buyer-order { border-block-start: 1px solid var(--rule-strong); }
.buyer-order__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-sunken);
}
.buyer-order__number { margin: 0; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 700; color: var(--fg1); }
.buyer-order__meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; color: var(--fg2); font-size: var(--person-meta); }
.buyer-order__totals { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0; margin-inline-start: auto; font-size: var(--person-meta); }
.buyer-order__totals > div { display: flex; gap: var(--space-1); align-items: baseline; }
.buyer-order__totals dt { color: var(--fg2); }
.buyer-order__totals dd { margin: 0; color: var(--fg1); font-weight: 650; }

/* The line tables of every order share one set of column widths, so the columns line up down the list. */
.buyer-order .data-table-region { border: 0; border-radius: 0; }
.buyer-order__lines { inline-size: 100%; table-layout: fixed; }
.buyer-order__lines :is(th, td) { padding-block: var(--density-row); vertical-align: baseline; }
.buyer-order__lines thead th:nth-child(1) { inline-size: 26%; }
.buyer-order__lines thead th:nth-child(2) { inline-size: 18%; }
.buyer-order__lines thead th:nth-child(3) { inline-size: 11%; }
.buyer-order__lines thead th:nth-child(4),
.buyer-order__lines thead th:nth-child(5) { inline-size: 6%; }
.buyer-order__lines thead th:nth-child(6) { inline-size: 11%; }
.buyer-order__lines thead th:nth-child(7) { inline-size: 11%; }
.buyer-order__lines thead th:nth-child(8) { inline-size: 11%; }
.buyer-order__lines thead th { padding-block: 0.2rem; }
.buyer-tickets__group > .data-table-region { border: 1px solid var(--rule); border-radius: var(--radius-md); }
.buyer-tickets__packages { inline-size: 100%; table-layout: fixed; }
.buyer-tickets__packages :is(th, td) { padding-block: var(--density-row); }
.buyer-tickets__packages thead th:nth-child(1) { inline-size: 44%; }
.buyer-tickets__packages thead th:nth-child(2) { inline-size: 11%; }
.buyer-tickets__packages thead th:nth-child(3),
.buyer-tickets__packages thead th:nth-child(4) { inline-size: 6%; }

/* Where the tables fall to cards (a phone, a narrow panel), a line is a flat row between hairlines inside its order, not a card within a card. */
@container (max-width: 48rem) {
  table.data.data-table[data-cards]:is(.buyer-order__lines, .buyer-tickets__packages) thead tr { padding: 0; }
  table.data.data-table[data-cards]:is(.buyer-order__lines, .buyer-tickets__packages) tbody tr {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border: 0;
    border-block-start: 1px solid var(--rule);
    border-radius: 0;
    background: transparent;
    gap: 0 var(--space-3);
  }
  table.data.data-table[data-cards]:is(.buyer-order__lines, .buyer-tickets__packages) tbody tr:first-child { border-block-start: 0; }
  table.data.data-table[data-cards]:is(.buyer-order__lines, .buyer-tickets__packages) tbody th[scope="row"] { padding: 0 0 var(--space-1); }
  table.data.data-table[data-cards]:is(.buyer-order__lines, .buyer-tickets__packages) tbody td { font-size: var(--person-data); }
}

/* Data values keep the `identifier` mark (they are not translated) but read in the page's own face here, not the mono one. */
.buyer-page .identifier,
.buyer-tickets .identifier {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
