.report-open .app-shell { width: min(100%, 1120px); }
.event-report { padding: clamp(18px, 3vw, 30px); background: rgba(255,254,251,.98); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgba(68,53,19,.055); font-family: Roboto, Inter, ui-sans-serif, system-ui, sans-serif; }
.report-heading { padding-bottom: 17px; margin-bottom: 15px; border-bottom: 1px solid var(--gold-soft); }
.report-heading .eyebrow { display: block; margin-bottom: 9px; }
.report-heading h1 { font: 600 clamp(1.75rem, 4.5vw, 2.35rem)/1.13 Roboto, Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.022em; margin: 0 0 10px; color: var(--ink); }
.report-heading p { margin: 5px 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.report-scope, .report-footnote { font-size: .84rem; line-height: 1.55; padding: 10px 12px; background: #fbf7ea; border-left: 2px solid var(--gold); color: #5f5849; }
.report-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.report-print-button { width: auto; min-height: 45px; margin: 0; padding: 0 22px; border: 1px solid var(--gold); border-radius: 12px; background: var(--white); color: var(--gold-dark); font-size: .78rem; font-weight: 600; letter-spacing: .07em; }
.report-print-button:hover, .report-print-button:focus-visible { background: #fbf5e4; }
.report-schedule-panel { margin-top: 15px; padding: 17px; border: 1px solid var(--gold-soft); border-radius: 14px; background: #fffefb; }
.report-schedule-panel h2 { margin: 0 0 5px; color: var(--gold-dark); font-size: .94rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.report-schedule-panel h3 { margin: 18px 0 6px; color: var(--gold-dark); font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.report-schedule-panel p { margin: 6px 0; color: var(--muted); font-size: .83rem; line-height: 1.48; }
.schedule-summary-line { color: var(--ink) !important; font-weight: 500; }
.schedule-summary-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.schedule-summary-meta span { color: var(--muted); font-size: .8rem; }
.schedule-form { display: grid; gap: 13px; margin-top: 14px; }
.schedule-form label { display: grid; gap: 6px; color: var(--ink); font-size: .84rem; font-weight: 500; }
.schedule-form input, .schedule-form select { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: #fffefb; color: var(--ink); padding: 0 10px; font: inherit; }
.schedule-toggle, .schedule-final-toggle { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; }
.schedule-toggle input, .schedule-final-toggle input { width: 18px; min-height: 18px; accent-color: var(--gold-dark); }
.schedule-conditional { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-recipient { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 11px 0; border-top: 1px solid var(--gold-soft); }
.schedule-recipient label { font-size: .76rem; }
.schedule-recipient input { min-width: 0; }
.schedule-remove { min-height: 42px; padding: 0 10px; border: 1px solid var(--gold-soft); border-radius: 10px; background: transparent; color: var(--gold-dark); font: 600 .72rem/1 Roboto, Inter, ui-sans-serif, sans-serif; letter-spacing: .04em; }
.schedule-form-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 3px; }
.schedule-form-actions .primary-button { width: auto; min-height: 45px; padding-inline: 20px; }
.schedule-form-actions .outline-wide-button { width: auto; min-height: 45px; padding-inline: 18px; }
.schedule-status { min-height: 1.2em; }
@media (max-width: 540px) { .schedule-conditional, .schedule-recipient { grid-template-columns: 1fr; } .schedule-remove { justify-self: start; padding-inline: 14px; } }
.print-help { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 8px 0 0; }
.report-group, .report-combined, .report-screen-disclosure { margin: 40px 0; }
.report-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.report-group h2, .report-combined h2 { font-size: .91rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 8px; }
.report-section-heading h2 { margin: 0; }
.report-section-heading p, .report-group > p { color: var(--muted); font-size: .8rem; margin: 0; }
.report-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.report-table { border-collapse: collapse; width: 100%; min-width: 820px; table-layout: fixed; font-size: .875rem; }
.report-table caption { text-align: left; padding: 10px 12px; font-size: .8rem; font-weight: 600; color: #51492f; background: #fdf9ed; border-bottom: 1px solid var(--gold-soft); }
.report-table th, .report-table td { padding: 12px 10px; border-bottom: 1px solid #e7dec6; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.report-table thead, .report-table tfoot { background: #f2ead1; }
.report-table th:first-child { width: 22%; }
.report-table .amount { text-align: right; font-variant-numeric: tabular-nums; }
.report-table small { display: block; font-size: .75rem; margin-top: 5px; font-weight: 400; color: var(--muted); }
.report-record-link { padding: 0; border: 0; background: none; text-align: left; color: #4f4020; font-weight: 600; text-decoration: underline; text-decoration-color: #d5c188; text-underline-offset: 3px; font-size: inherit; }
.report-gifts { padding-left: 15px; margin: 0; }
.report-gifts li + li { margin-top: 8px; }
.report-combined { padding-top: 21px; border-top: 1px solid var(--gold-soft); }
.report-combined dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.report-combined dl > div { padding: 13px 12px; border: 1px solid var(--gold-soft); border-radius: 11px; background: #fcfaf3; }
.report-combined dl > div:last-child { background: #f2ead1; }
.report-combined dt { font-size: .77rem; color: var(--muted); }
.report-combined dd { margin: 7px 0 0; font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-combined > p { color: var(--muted); font-size: .8rem; margin: 11px 0 0; }
.report-footer { text-align: right; color: var(--gold-dark); font-size: .875rem; border-top: 1px solid var(--line); padding-top: 16px; }
.gift-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gift-summary-grid > div { background: #fdfaf1; border: 1px solid var(--gold-soft); border-radius: 11px; padding: 13px; }
.gift-summary-grid h3, .report-entry-details h3 { font-size: .88rem; font-weight: 600; letter-spacing: .025em; margin: 0 0 10px; color: var(--gold-dark); }
.report-entry-details { padding: 15px; margin: 12px 0; border: 1px solid var(--gold-soft); border-radius: 11px; background: #fffefb; }
.report-entry-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.report-entry-details .wide { grid-column: 1 / -1; }
.report-entry-details dt { font-size: .875rem; color: var(--muted); }
.report-entry-details dd { margin: 4px 0 0; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-added-note { font-size: .875rem; white-space: pre-wrap; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; }
.report-detail-title { font-size: .98rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; color: var(--gold-dark); margin: 36px 0 7px; }
.report-screen-disclosure { border-top: 1px solid var(--gold-soft); padding-top: 20px; }
.report-screen-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--gold-dark); font-size: .91rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; list-style: none; }
.report-screen-disclosure summary::-webkit-details-marker { display: none; }
.report-screen-disclosure summary::after { content: "+"; margin-left: auto; font-size: 1.15rem; font-weight: 400; line-height: 1; }
.report-screen-disclosure[open] summary::after { content: "−"; }
.report-screen-disclosure .report-detail-title { margin: 0; }
.report-disclosure-cue { color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.report-disclosure-body { padding-top: 13px; }
.report-disclosure-body > p { margin: 0 0 12px; color: var(--muted); font-size: .8rem; }
.report-disclosure-body .report-group:first-child { margin-top: 22px; }
@media (max-width: 430px) { .gift-summary-grid, .report-entry-details dl { grid-template-columns: 1fr; } }
@media (max-width: 430px) {
  .event-report { padding: 14px; }
  .report-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .report-combined dl { gap: 6px; }
  .report-combined dl > div { min-width: 0; padding: 11px 8px; }
  .report-combined dt { font-size: .69rem; }
  .report-combined dd { font-size: .88rem; }
  .report-screen-disclosure { margin: 34px 0; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: white; padding: 0; color: black; }
  body.report-open .app-shell { width: 100%; min-height: 0; border: 0; margin: 0; padding: 0; background: white; }
  .report-open .topbar, .report-open .records-nav, .report-open .report-actions, .report-open .report-schedule-panel, .report-open .print-help { display: none !important; }
  .report-open .private-family-report { display: none !important; }
  .event-report { border: 0; padding: 0; border-radius: 0; background: white; }
  .report-table-scroll { overflow: visible; border: 0; border-radius: 0; }
  .report-table { min-width: 0; width: 100%; font-size: 9pt; }
  .report-table th, .report-table td { padding: 7px; }
  .report-table thead { display: table-header-group; }
  .report-table tfoot { display: table-row-group; }
  .report-table tr { break-inside: avoid; }
  .report-group h2 { break-after: avoid; }
  .report-screen-disclosure { display: block; border: 0; padding: 0; margin: 28px 0; }
  details.report-screen-disclosure:not([open]) > * { display: block; }
  .report-screen-disclosure summary { display: block; cursor: default; }
  .report-screen-disclosure summary::after, .report-disclosure-cue { display: none; }
  .report-disclosure-body { padding-top: 8px; }
  .report-combined { break-inside: avoid; }
  /* Keep each received/returned pair readable as one gift-summary section. */
  .report-group:has(.gift-summary-grid), .gift-summary-grid, .gift-summary-grid > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .gift-summary-grid h3, .report-gifts, .report-gifts li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-entry-details h3 { break-after: avoid; }
  .report-entry-details dl > div { break-inside: avoid; }
  /* Supporting records can use a natural remaining space on the current page. */
  .report-detail-title { break-before: auto; page-break-before: auto; break-after: avoid; }
  /* Let consecutive detail cards share a page.  Their heading and individual
     field rows still avoid orphaning, while a long card may continue only when
     keeping it whole would leave an unnecessarily large blank area. */
  .report-entry-details { border-radius: 0; break-inside: auto; page-break-inside: auto; }
  .report-record-link { color: black; text-decoration: none; }
  .report-scope, .report-footnote { padding: 6px; font-size: 9pt; }
}
