/* ── Page header + breadcrumb ─────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-block: 1rem 1.5rem;
}
.page-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--text);
  margin: 0 0 0.4rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0;
  gap: 0;
  font-size: var(--fs-sm);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-inline: 0.5rem;
  color: var(--text-subtle);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current="page"] { color: var(--primary); font-weight: var(--fw-medium); }
.page-header-actions { display: flex; gap: var(--space-2); }

/* ── Booklet table ───────────────────────────────────────── */
.booklet-table-wrap { overflow-x: auto; }
.booklet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.booklet-table thead th {
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: var(--fw-semibold);
}
.booklet-table tbody .data-table-row:last-of-type th,
.booklet-table tbody .data-table-row:last-of-type td { border-block-end: none; }
.booklet-table .data-table-row:hover { background: var(--surface-hover); }
.booklet-table .data-table-row:nth-child(4n+3) { background: var(--surface-2); }
.booklet-table .data-table-row:nth-child(4n+3):hover { background: var(--surface-hover); }

/* ── Detail sub-row ──────────────────────────────────────── */
/* Toggle button, hidden-row, and detail-cell padding are generic (page.css);
   only the booklet detail backdrop is page-specific. */
.booklet-table .data-table-detail-cell { background: var(--surface-2); }

/* Two stacked sections inside the detail cell: appointments + door access. */
.booklet-detail-section { padding-block: var(--space-2); }
.booklet-detail-section + .booklet-detail-section {
  border-block-start: 1px solid var(--border);
}
.booklet-detail-title {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.booklet-detail-empty {
  margin: 0;
  padding: 0 var(--space-4) var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.booklet-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.booklet-detail-table th,
.booklet-detail-table td {
  padding: var(--space-2) var(--space-4);
  text-align: start;
  border-block-end: 1px solid var(--border);
  vertical-align: middle;
}
.booklet-detail-table thead th {
  background: var(--surface-3, rgba(var(--primary-rgb), 0.08));
  color: var(--text);
  font-weight: var(--fw-semibold);
}
.booklet-detail-table tbody tr:last-child th,
.booklet-detail-table tbody tr:last-child td { border-block-end: none; }
.booklet-detail-table tbody tr:hover { background: var(--surface-hover); }
