.financial-summary { display: grid; gap: 24px; padding-block: 36px 64px; }
.financial-summary > * { min-width: 0; }
.summary-heading h1 { margin: 8px 0 16px; }
.summary-heading p { overflow-wrap: anywhere; }
.summary-controls, .summary-controls form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.summary-controls label { display: grid; gap: 6px; }
.summary-controls input { width: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.summary-scope { padding: 22px; border-radius: 16px; background: #e9f1ed; }
.summary-scope h2 { margin-top: 0; font-size: 1.15rem; }
.summary-scope p { max-width: 90ch; line-height: 1.6; }
.summary-notice { border-left: 3px solid var(--coral); padding-left: 12px; }
.summary-totals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }
.summary-totals div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.summary-totals dt { color: var(--muted); font-size: .85rem; }
.summary-totals dd { margin: 8px 0 0; font-weight: 750; font-size: 1.2rem; }
.summary-totals .summary-net { background: #e9f1ed; }
.summary-table { overflow-x: auto; }
.summary-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.summary-table th, .summary-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-table th { font-weight: 700; }
.summary-table .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-table small { display: block; min-width: 170px; color: var(--muted); margin-top: 5px; }
.financial-summary .staff-access-card { width: min(100%, 600px); margin: auto; }
@media(max-width:620px) { .financial-summary { gap: 16px; } .summary-controls > a, .summary-controls > button { width: 100%; } .summary-scope { padding: 16px; } .summary-totals { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 15mm; }
  html, body.leader-body { background: white; color: black; }
  .skip-link, .summary-controls, .site-header, .site-footer { display: none !important; }
  .financial-summary.shell { width: 100%; max-width: none; padding: 0; display: block; }
  .financial-summary h1 { font-size: 24pt; }
  .financial-summary .leader-card, .summary-scope { border: 0; box-shadow: none; background: white; padding: 0; margin-bottom: 24px; }
  .summary-totals { display: block; }
  .summary-totals div { display: flex; justify-content: space-between; padding: 5px 0; border: 0; }
  .summary-totals dd { margin: 0; font-size: 11pt; }
  .summary-table { overflow: visible; }
  .summary-table table { font-size: 9pt; table-layout: fixed; }
  .summary-table small { min-width: 0; }
  .summary-table td, .summary-table th { overflow-wrap: anywhere; padding: 6px; }
  .summary-table .amount { white-space: normal; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
}

.summary-controls [aria-current="page"] { background: #e9f1ed; border-color: var(--ink); }
.summary-location { white-space: pre-line; overflow-wrap: anywhere; }
/* Compact event records: one row per event, with a separate print worksheet column. */
.in-person-report { display: grid; gap: 20px; min-width: 0; }
.in-person-report > * { min-width: 0; }
.in-person-screen-heading p { margin-block: 8px; }
.in-person-attendance { padding: 14px 16px; border-left: 3px solid var(--emerald); background: #e9f1ed; }
.in-person-attendance p { margin: 6px 0 0; line-height: 1.45; }
.in-person-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; line-height: 1.4; }
.in-person-table caption { text-align: left; padding: 0 0 8px; color: var(--muted); font-size: .8rem; }
.in-person-table th, .in-person-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.in-person-table th { background: #e9f1ed; font-size: .8rem; }
.in-person-event-column { width: 36%; }
.in-person-location-column, .in-person-people-column { width: 32%; }
.in-person-event td > span, .in-person-event small, .in-person-title { display: block; }
.in-person-title { margin-bottom: 4px; }
.in-person-event small { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.in-person-event ul { list-style: none; padding: 0; margin: 0; }
.in-person-event li + li { margin-top: 8px; }
.in-person-event li span { display: block; }
.in-person-event li span, .in-person-date { color: var(--muted); }
.in-person-table .in-person-print-heading, .in-person-table .in-person-travel, .in-person-table .in-person-field-label { display: none; }
.in-person-scope { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.in-person-scope h2 { font-size: 1rem; margin: 0 0 8px; }
.in-person-scope p { margin: 6px 0 0; }
@media screen and (max-width: 680px) {
  .in-person-table, .in-person-table tbody, .in-person-table tr, .in-person-table td { display: block; width: 100%; }
  .in-person-table thead, .in-person-table colgroup { display: none; }
  .in-person-table caption { display: block; }
  .in-person-table tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .in-person-table td { border: 0; padding: 4px 0; }
  .in-person-table .in-person-field-label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
  .in-person-report { gap: 16px; }
}
@media print {
  @page in-person { margin: 10mm; }
  .in-person-report { page: in-person; display: block; font-family: Arial, sans-serif; color: black; }
  .in-person-report .in-person-screen-heading, .in-person-report .in-person-attendance { display: none; }
  .in-person-report:has(.leader-card) .in-person-screen-heading { display: block; }
  .in-person-sheet + .in-person-sheet { break-before: page; }
  .in-person-table { font-size: 9pt; line-height: 1.15; }
  .in-person-table caption { display: none; }
  .in-person-table th, .in-person-table td { padding: 2pt 4pt; border-color: #aaa; }
  .in-person-table th { font-size: 8pt; background: white; }
  .in-person-table .in-person-print-heading { display: table-row; }
  .in-person-print-heading td { padding: 0 0 8pt; border: 0; }
  .in-person-print-heading strong { font-size: 14pt; }
  .in-person-print-heading p { margin: 4pt 0 0; font-size: 8pt; font-weight: normal; }
  .in-person-table .in-person-travel { display: table-cell; width: 16%; }
  .in-person-table col.in-person-travel { display: table-column; }
  .in-person-event-column, .in-person-location-column { width: 27%; }
  .in-person-people-column { width: 30%; }
  .in-person-title { margin-bottom: 0; }
  .in-person-event small { font-size: 8pt; margin-top: 0; }
  .in-person-event li + li { margin-top: 4pt; }
  .in-person-event small, .in-person-event li span, .in-person-date { color: black; }
  .in-person-travel div { display: flex; align-items: baseline; gap: 3pt; margin-bottom: 7pt; font-size: 8pt; }
  .in-person-travel div:last-child { margin-bottom: 0; }
  .in-person-write-line { flex: 1; border-bottom: 1px solid #aaa; min-width: 12pt; }
  .in-person-scope { margin-top: 8pt; font-size: 8pt; line-height: 1.2; color: black; }
  .in-person-scope h2 { font-size: 9pt; margin-bottom: 3pt; }
  .in-person-scope p { margin: 3pt 0 0; }
}

/* Leaders scan a ledger: keep amounts aligned and each entry on one compact row where possible. */
.leader-financial-report { gap: 18px; }
.leader-financial-report .summary-heading h1 { font-size: 2rem; margin: 4px 0 8px; }
.leader-financial-report .summary-heading p { margin: 6px 0; }
.leader-financial-report .leader-card { padding: 16px; border-radius: 12px; }
.leader-financial-report h2 { margin: 0 0 10px; font-size: 1.15rem; }
.leader-financial-report h3 { margin: 0 0 8px; font-size: .85rem; }
.leader-financial-report .financial-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: 28px; align-items: start; }
.leader-financial-report .summary-totals { display: block; margin: 0; }
.leader-financial-report .summary-totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.leader-financial-report .summary-totals dt { font-size: .8rem; }
.leader-financial-report .summary-totals dd { font-size: .875rem; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leader-financial-report .summary-totals .summary-net { padding: 8px; margin-top: 4px; }
.leader-financial-report .summary-table table { font-size: .8rem; line-height: 1.25; }
.leader-financial-report .summary-table th, .leader-financial-report .summary-table td { padding: 5px 8px; }
.leader-financial-report .summary-table th { font-size: .75rem; vertical-align: bottom; }
.leader-financial-report .financial-months th:not(:first-child) { text-align: right; }
.leader-financial-report .summary-scope { padding: 12px 16px; border-radius: 10px; font-size: .8rem; }
.leader-financial-report .summary-scope h2 { font-size: .9rem; margin-bottom: 6px; }
.leader-financial-report .summary-scope p { margin: 4px 0; line-height: 1.4; max-width: none; }
.leader-financial-report .summary-notice { padding-left: 8px; }
.financial-ledger-intro p { font-size: .8rem; margin: 0 0 10px; color: var(--muted); }
.leader-financial-report .financial-ledger-table { min-width: 930px; table-layout: fixed; }
.financial-ledger-table .ledger-recorded { width: 12%; }
.financial-ledger-table .ledger-event { width: 32%; }
.financial-ledger-table .ledger-event-date { width: 13%; }
.financial-ledger-table .ledger-order { width: 14%; }
.financial-ledger-table .ledger-activity { width: 18%; }
.financial-ledger-table .ledger-amount { width: 11%; }
.leader-financial-report .financial-ledger-table td { overflow-wrap: anywhere; }
.financial-ledger-table tbody tr:nth-child(even) { background: #f5f7f6; }
.financial-ledger-table tbody tr:hover { background: #e9f1ed; }
.financial-print-heading { display: none; }
@media screen and (max-width: 800px) {
  .leader-financial-report .financial-overview { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .leader-financial-report .leader-card { padding: 12px; }
  .leader-financial-report .financial-months table { min-width: 510px; }
}
@media print {
  @page leader-financial { margin: 10mm; }
  .financial-summary.leader-financial-report { page: leader-financial; font-family: Arial, sans-serif; color: black; }
  .leader-financial-report .summary-heading { margin-bottom: 10pt; }
  .leader-financial-report .summary-heading h1 { font-size: 15pt; margin: 3pt 0; }
  .leader-financial-report .summary-heading p { font-size: 8pt; margin: 3pt 0; }
  .leader-financial-report .leader-card { border: 0; border-radius: 0; padding: 0; margin-bottom: 12pt; box-shadow: none; }
  .leader-financial-report h2 { font-size: 11pt; margin-bottom: 6pt; }
  .leader-financial-report h3 { font-size: 8pt; margin-bottom: 4pt; }
  .leader-financial-report .financial-currency { break-inside: avoid; }
  .leader-financial-report .financial-overview { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); gap: 14pt; }
  .leader-financial-report .summary-totals div { padding: 4pt 0; gap: 6pt; }
  .leader-financial-report .summary-totals dt, .leader-financial-report .summary-totals dd { font-size: 8pt; color: black; }
  .leader-financial-report .summary-totals .summary-net { padding: 5pt 0; margin-top: 3pt; background: white; border-top: 1px solid black; }
  .leader-financial-report .summary-table table { font-size: 8.5pt; line-height: 1.15; }
  .leader-financial-report .summary-table th, .leader-financial-report .summary-table td { padding: 2pt 3pt; border-color: #bbb; }
  .leader-financial-report .summary-table th { font-size: 8pt; }
  .leader-financial-report .summary-table .amount { white-space: normal; overflow-wrap: anywhere; }
  .leader-financial-report .summary-scope { padding: 0; margin: 8pt 0 0; background: white; border: 0; border-radius: 0; }
  .leader-financial-report .summary-scope h2 { font-size: 9pt; margin: 0 0 3pt; }
  .leader-financial-report .summary-scope p { font-size: 8pt; line-height: 1.2; margin: 3pt 0; }
  .leader-financial-report .financial-ledger { margin-top: 10pt; }
  .financial-ledger-intro { display: none; }
  .leader-financial-report .financial-ledger-table { min-width: 0; line-height: 1.1; }
  .leader-financial-report .financial-ledger-table th, .leader-financial-report .financial-ledger-table td { padding: 1.5pt 3pt; }
  .financial-print-heading { display: table-row; }
  .leader-financial-report .financial-print-heading td { padding: 0 0 6pt; border: 0; }
  .financial-print-heading strong { font-size: 10pt; }
  .financial-print-heading p { font-size: 8pt; font-weight: normal; margin: 3pt 0 0; }
  .financial-ledger-table tbody tr:nth-child(even), .financial-ledger-table tbody tr:hover { background: white; }
}

@media screen {
  .leader-financial-report .financial-ledger .summary-table { max-height: 70vh; overflow: auto; }
  .leader-financial-report .financial-ledger-table thead th { position: sticky; top: 0; z-index: 1; background: #e9f1ed; }
}
