/* Admin: report picker */
.report-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid #E5E4DD;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(10, 10, 8, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.report-link:hover { border-color: #CFCEC5; box-shadow: 0 4px 16px rgba(10, 10, 8, 0.08); }
.report-link:focus-visible { outline: 2px solid #0F6B5A; outline-offset: 2px; }
.report-link__title { font-weight: 600; color: #0A0A08; }
.report-link__desc { font-size: 0.8125rem; color: #3A3A35; }
.report-link__cta { margin-top: 0.35rem; font-size: 0.8125rem; font-weight: 600; color: #0F6B5A; }

/* Printable report */
.report-page { min-height: 100vh; background: #EFEEE7; padding-bottom: 2rem; }

.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #E5E4DD;
  background: #fff;
  padding: 0.6rem 1rem;
}

.report-sheet {
  max-width: 210mm;
  margin: 1.25rem auto 0;
  background: #fff;
  padding: 14mm;
  color: #0A0A08;
  font-size: 10.5pt;
  line-height: 1.4;
  box-shadow: 0 8px 32px rgba(10, 10, 8, 0.10);
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0A0A08;
}
.report-header__meta { text-align: right; }
.report-couple { margin: 0; font: 400 22pt/1.1 'Cormorant Garamond', 'Amiri', serif; }
.report-amp { font-style: italic; color: #7A2E3A; }
.report-title { margin: 0; font-size: 15pt; font-weight: 700; }
.report-h2 { margin: 0 0 0.5rem; font-size: 11.5pt; font-weight: 700; }
.report-muted { margin: 0; color: #5E5D57; font-size: 9pt; }
.report-empty { padding: 0.75rem 0; }
.report-note { margin-top: 1rem; }
.report-stack > * + * { margin-top: 1.25rem; }

.report-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.report-table th { text-align: start; font-weight: 600; border-bottom: 1px solid #0A0A08; padding: 4px 6px; }
.report-table td { border-bottom: 1px solid #E1E0D9; padding: 4px 6px; vertical-align: top; }
.report-table tfoot td { border-top: 1px solid #0A0A08; border-bottom: 0; font-weight: 700; }
.report-table--kv { max-width: 320px; }
.report-table tr { break-inside: avoid; }
.report-table td[dir="auto"] { text-align: left; }
.report-num { text-align: end !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

.report-status[data-status="approved"]::before { content: "✓ "; }
.report-status[data-status="pending"]::before { content: "… "; }
.report-status[data-status="declined"]::before { content: "✕ "; }

.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.report-kpi { display: flex; flex-direction: column; border: 1px solid #E1E0D9; border-radius: 4px; padding: 8px 10px; }
.report-kpi__label { font-size: 8.5pt; text-transform: uppercase; letter-spacing: 0.04em; color: #5E5D57; }
.report-kpi__value { font-size: 20pt; font-weight: 600; line-height: 1.2; }

.report-columns { margin: 0; padding: 0; list-style: none; columns: 3; column-gap: 1.5rem; font-size: 9.5pt; }
.report-columns li { break-inside: avoid; padding: 1px 0; }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-table-card { border: 1px solid #C9C8BF; border-radius: 4px; padding: 8px 10px; break-inside: avoid; }
.report-table-card__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #E1E0D9; padding-bottom: 4px; margin-bottom: 4px; }
.report-table-card__number { font-size: 12pt; font-weight: 700; }
.report-table-card__list { margin: 0; padding-inline-start: 1.2rem; list-style: decimal; font-size: 9.5pt; }
.report-table-card__list li { padding: 1px 0; }
.report-table-card__list li > .report-muted { float: inline-end; margin-inline-start: 8px; }

.report-door { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.report-door__row { display: flex; align-items: baseline; gap: 6px; break-inside: avoid; padding: 3px 0; font-size: 13pt; }
.report-door__name { font-weight: 500; }
.report-door__leader { flex: 1; min-width: 1rem; border-bottom: 1px dotted #9A9990; transform: translateY(-3px); }
.report-door__table { min-width: 2ch; text-align: end; font-size: 15pt; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .report-sheet { padding: 1rem; margin: 0; box-shadow: none; }
  .report-grid, .report-door { grid-template-columns: 1fr; columns: 1; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-header__meta { text-align: left; }
}

@page { size: A4; margin: 12mm; }

@media print {
  html, body { background: #fff !important; }
  .no-print { display: none !important; }
  .report-page { min-height: 0; background: #fff; padding: 0; }
  .report-sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  .report-grid { display: block; columns: 2; column-gap: 10px; }
  .report-table-card { margin-bottom: 10px; }
  thead { display: table-header-group; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
