:root { color-scheme: light; --navy: #172c43; --ink: #23374c; --muted: #66768a; --line: #e2e7ed; --amber: #e9b86b; --paper: #f6f8fb; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, main:focus-visible { outline: 3px solid #b47718; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; padding: 10px 18px; background: white; color: var(--navy); z-index: 20; border-radius: 6px; }
.skip-link:focus { top: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.divider { margin: 0 9px; color: #9ba9b6; }
.topbar strong { font-weight: 600; }
.private-label, .muted { color: var(--muted); font-size: 14px; }
.page-heading { padding: 34px 0 26px; }
.eyebrow { margin: 0 0 7px; color: #7d633c; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
h1 { margin: 0; font-size: clamp(32px, 3vw, 42px); letter-spacing: -1.5px; font-weight: 650; line-height: 1.2; }
h1 > span { color: #c48b38; }
.description { margin: 11px 0 0; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 16px; border: 1px solid #d4dce5; border-radius: 7px; background: white; color: #425568; font-size: 14px; font-weight: 600; white-space: nowrap; }
.button:hover:not(:disabled) { background: #f0f4f8; border-color: #a8b6c4; }
.button-primary { color: white; background: var(--navy); border-color: var(--navy); }
.button-primary:hover:not(:disabled) { color: white; background: #29445f; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.month-controls { display: flex; align-items: center; gap: 16px; }
.month-controls label { display: grid; gap: 4px; color: #596c7f; font-size: 13px; font-weight: 600; }
.month-controls input { max-width: 100%; min-height: 32px; padding: 2px 0; border: 0; color: var(--ink); background: transparent; font-size: 17px; font-weight: 600; }
.icon-button { width: 36px; min-height: 38px; padding: 0; font-size: 25px; font-weight: 400; }
.report-status { margin: 11px 0 23px; color: var(--muted); font-size: 13px; }
.state-panel { padding: 45px 24px; text-align: center; border: 1px dashed #d5dfe8; border-radius: 9px; background: #ffffffb3; }
.state-panel h2 { margin: 12px 0 5px; font-size: 20px; font-weight: 600; }
.state-panel p { margin: 0 0 20px; color: var(--muted); }
.spinner { display: inline-block; width: 27px; height: 27px; border: 2px solid #dce4ec; border-top-color: #b8904f; border-radius: 50%; animation: spin 1s linear infinite; }
.error-state { border-color: #d7b99b; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.summary-card { display: flex; flex-direction: column; gap: 8px; min-height: 137px; padding: 19px 18px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.summary-label { font-size: 14px; font-weight: 600; }
.summary-value { font-size: 33px; letter-spacing: -.7px; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; }
.summary-caption { margin-top: auto; color: var(--muted); font-size: 12px; }
.summary-featured { color: white; border-color: var(--navy); background: var(--navy); }
.summary-featured .summary-value { color: #f0c17b; }
.summary-featured .summary-caption { color: #c9d4df; }
.month-details { display: flex; flex-wrap: wrap; gap: 12px 34px; padding: 16px 3px 0; }
.month-details p { display: flex; flex-wrap: wrap; gap: 6px 11px; margin: 0; font-size: 14px; }
.month-details strong { font-weight: 600; }
.month-details span { color: var(--muted); }
.report-note { margin: 22px 0 25px; padding: 15px 18px; color: #725328; background: #fff8ed; border: 1px solid #eadcc4; border-radius: 8px; font-size: 13px; }
.report-note strong { font-weight: 650; }
.report-note p { margin: 3px 0 0; }
.report-card { margin-bottom: 25px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
h2 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; }
.section-description { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 21px; color: var(--muted); font-size: 12px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 14px; height: 10px; border-radius: 2px; }
.observed { background: var(--navy); }
.future { background: #f4d8aa; border: 1px dashed #b48135; }
.missing { border: 1px dashed #9dacbb; background: #f4f6f9; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.incomplete { background: white; border: 2px solid #365773; }
.legend-line { display: inline-block; width: 22px; height: 0; border-top: 2px solid #365773; }
.legend-line.prior { border-color: #b48032; border-top-style: dashed; }
.comparison-note { margin: 16px 0 0; color: #5a6f83; font-size: 13px; }
.annual-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.annual-stats > div { display: flex; flex-direction: column; gap: 4px; }
.annual-stats span { color: var(--muted); font-size: 12px; }
.annual-stats strong { color: var(--ink); font-size: 25px; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.annual-stats small { color: #8c6c3d; font-size: 11px; }
.chart-container { margin: 20px 0 10px; overflow-x: auto; }
.chart-container svg { display: block; width: 100%; min-width: 450px; overflow: visible; }
.trend-container svg { min-width: 660px; }
.chart-container text { font-family: inherit; font-size: 13px; fill: #617388; }
.chart-container .chart-value { fill: var(--ink); font-size: 16px; font-weight: 600; }
.chart-container .chart-muted { fill: #738597; font-size: 12px; }
.chart-container .chart-future { fill: #95631f; }
.empty-note { padding: 13px 16px; border-radius: 7px; background: #f5f7fa; color: var(--muted); font-size: 14px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e9edf2; text-align: left; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { color: #687c90; font-size: 12px; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: #294b6c; text-underline-offset: 3px; }
.status-badge { display: inline-flex; padding: 3px 8px; border-radius: 5px; color: #4d6d5c; background: #eff5f0; font-size: 12px; }
.status-missing { color: #687b8f; background: #f0f3f7; }
.status-future { color: #946522; background: #fcf3e3; }
.metric-options { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7fa; }
.metric-options button { padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; color: #66798d; background: transparent; font-size: 12px; font-weight: 600; }
.metric-options button[aria-pressed="true"] { color: var(--navy); background: white; border-color: #dce3eb; box-shadow: 0 1px 3px #172c4309; }
.trend-details { margin-top: 18px; border-top: 1px solid var(--line); }
.trend-details summary { padding: 15px 0 0; color: #3c5871; cursor: pointer; font-size: 14px; font-weight: 600; }
.trend-details[open] summary { margin-bottom: 10px; }
.updated-at { margin: 5px 0; color: var(--muted); font-size: 12px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 24px 0; border-top: 1px solid var(--line); color: #7e8c9b; font-size: 13px; }
.noscript-message { padding: 16px; color: #725328; background: #fff8ed; text-align: center; }
.report-views { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.report-view { padding: 11px 19px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-size: 15px; font-weight: 600; }
.report-view[aria-pressed="true"] { color: var(--navy); border-bottom-color: #c18a39; }
.followup-summary { display: grid; grid-template-columns: minmax(190px, .6fr) 1.6fr; align-items: stretch; gap: 18px; margin-bottom: 20px; }
.followup-summary .report-note { margin: 0; display: flex; justify-content: center; flex-direction: column; }
.coverage-note { margin: 0 0 20px; padding: 13px 17px; color: #5d6e80; background: #edf2f7; border: 1px solid #dbe4ed; border-radius: 7px; font-size: 13px; }
.coverage-note p { margin: 4px 0 0; }
.followup-filters { display: flex; gap: 12px; margin-bottom: 17px; }
.followup-filters label:first-child { flex: 1; }
.followup-filters input, .followup-filters select, .followup-form input:not([type="checkbox"]), .followup-form select { width: 100%; min-height: 43px; padding: 9px 12px; color: var(--ink); background: white; border: 1px solid #d2dce6; border-radius: 6px; }
.followup-reminders { display: grid; gap: 16px; margin-bottom: 25px; }
.followup-card { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.followup-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.followup-card h3 { margin: 0 0 5px; font-size: 20px; font-weight: 650; letter-spacing: -.3px; }
.followup-card .status-badge { margin: 0 5px 3px 0; }
.followup-reason { margin: 13px 0 5px; font-size: 15px; }
.followup-dates { margin: 0; color: var(--muted); font-size: 13px; }
.followup-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.followup-contact { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.followup-contact summary { color: #35516d; cursor: pointer; font-size: 14px; font-weight: 600; }
.followup-contact-grid { display: grid; gap: 10px; margin-top: 14px; }
.followup-channel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink); font-size: 14px; }
.followup-channel strong { min-width: 46px; font-weight: 600; }
.followup-channel a, .member-link { color: #315779; text-underline-offset: 3px; }
.contact-detail-note { width: 100%; margin: 0; color: var(--muted); font-size: 12px; }
.contact-blocked { color: #915144; background: #faeee9; border-radius: 4px; padding: 2px 7px; font-size: 12px; }
.followup-detail { padding: 20px 23px; }
.followup-detail > summary { color: #304c67; font-size: 16px; font-weight: 600; cursor: pointer; }
.followup-detail[open] > summary { margin-bottom: 12px; }
.followup-form { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 19px; }
.form-grid label { display: grid; gap: 7px; color: #465e74; font-size: 13px; font-weight: 600; }
.field-help { color: var(--muted); font-size: 12px; font-weight: 400; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #425c73; font-size: 14px; }
.checkbox-label input { margin-top: 5px; accent-color: #294b6a; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 19px; }
.form-status { color: #5d7488; font-size: 13px; }
.form-error { color: #984d3b; }
.enrollment-list { margin-top: 24px; }
.enrollment-row, .dismissed-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; }
.enrollment-row strong, .dismissed-row strong { display: block; }
.enrollment-row p, .dismissed-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.review-summary { margin: 20px 0 0; padding: 17px; border-radius: 7px; border: 1px solid var(--line); background: #f7f9fc; }
.review-summary h3 { margin: 0 0 7px; font-size: 17px; }
.review-summary p { margin: 7px 0; font-size: 14px; }
.review-summary a { color: #315779; text-underline-offset: 3px; }
.review-summary .checkbox-label { margin: 16px 0; }
@media (max-width: 700px) { .followup-summary { grid-template-columns: 1fr; } .followup-summary .summary-card { min-height: 115px; } .followup-filters { flex-wrap: wrap; } .followup-filters label { width: 100%; } .followup-card-heading { flex-wrap: wrap; } .form-grid { grid-template-columns: 1fr; gap: 15px; } .followup-card, .followup-detail { padding: 18px 15px; } .followup-card-actions .button { white-space: normal; text-align: center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .summary-card { padding: 17px 13px; } .summary-caption { font-size: 11px; } .summary-label { font-size: 13px; } }
@media (max-width: 900px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .summary-card { min-height: 125px; } .summary-caption { font-size: 12px; } .annual-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topbar { padding: 17px 0; } .page-heading { padding: 27px 0 23px; } h1 { font-size: 32px; letter-spacing: -1.1px; } .description { font-size: 15px; } .report-toolbar { padding: 13px 10px; gap: 8px; flex-wrap: wrap; } .month-controls { gap: 7px; min-width: 0; } .month-controls input { font-size: 15px; width: 153px; } .icon-button { width: 29px; min-height: 35px; flex-shrink: 0; } #refresh-button { padding: 8px; min-height: 36px; margin-left: auto; font-size: 12px; } .summary-grid { gap: 9px; } .summary-card { padding: 15px 12px; min-height: 125px; } .summary-value { font-size: 31px; } .report-card { padding: 19px 15px; } h2 { font-size: 21px; } .month-details { gap: 8px; } .month-details p { width: 100%; } .report-note { padding: 13px 14px; } .chart-legend { gap: 8px 12px; } th, td { padding: 12px 10px; } footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.report-print-brand { display: none; }
@media print {
  @page { size: landscape; margin: 12mm; }
  body.reports-page { background: white; color: #111; font-size: 11pt; }
  .reports-page .report-print-brand { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 0 8mm; break-inside: avoid; }
  .reports-page .topbar, .reports-page .report-toolbar,
  .reports-page button, .reports-page .metric-options,
  .reports-page #load-state, .reports-page #error-state { display: none; }
  .reports-page .page-heading { padding: 0 0 16px; }
  .reports-page h1 { font-size: 25pt; }
  .reports-page .summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reports-page .summary-card, .reports-page .report-card { box-shadow: none; border-color: #aaa; }
  .reports-page .summary-card { min-height: 0; }
  .reports-page .report-card { margin-top: 14px; padding: 12px; }
  .reports-page .chart-container, .reports-page .table-scroll { overflow: visible; }
  .reports-page .chart-container svg { min-width: 0; max-width: 100%; break-inside: avoid; }
  .reports-page table { width: 100%; min-width: 0; font-size: 9pt; }
  .reports-page th, .reports-page td { padding: 7px 5px; }
  .reports-page thead { display: table-header-group; }
  .reports-page tr, .reports-page .summary-card { break-inside: avoid; }
  .reports-page .trend-details summary { font-weight: 600; }
  .reports-page a { color: #111; text-decoration: none; }
  .reports-page footer { margin-top: 14px; }
}

.report-types { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-block: 16px; }
.giving-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; max-width: 440px; margin-block: 16px; }
.giving-toolbar label { display: grid; grid-template-rows: auto 44px; align-content: start; gap: 4px; min-width: 0; }
.giving-toolbar input, .giving-toolbar select { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; }
@media print { .report-types { display: none !important; } }
.giving-table { width: 100%; border-collapse: collapse; text-align: left; }
.giving-table th, .giving-table td { padding: 10px 6px; border-bottom: 1px solid #d7e0e9; }
.giving-table td { font-variant-numeric: tabular-nums; }
#giving-sample { color: #613904; background: #fff5db; padding: 10px; }
@media print {
  body.printing-giving .sidebar, body.printing-giving .topbar, body.printing-giving footer,
  body.printing-giving .report-types, body.printing-giving .giving-report-controls { display: none !important; }
  body.printing-giving .app-shell { display: block !important; }
  body.printing-giving #reports { margin: 0 !important; width: auto !important; padding: 0 !important; }
  body.printing-giving #offering-givers .report-card { border: 0; padding: 0; }
  body.printing-giving .giving-table th button { border: 0; min-height: auto; padding: 0; }
  body.printing-giving .giving-table tr { break-inside: avoid; }
}

.giving-statement-print { display: none; }
@media print {
  @page annual-statement { size: 8.5in 11in; margin: 0.65in; }
  body.printing-statement #reports { page: annual-statement; }
  body.printing-statement #offering-givers > .page-heading,
  body.printing-statement #giving-report-note,
  body.printing-statement #giving-detail-title,
  body.printing-statement #giving-detail > .giving-table { display: none !important; }
  body.printing-statement .giving-statement-print { display: block; }
  body.printing-statement .giving-statement-print .giving-table { width: 2.65in; max-width: 100%; }
  body.printing-statement .giving-table th:last-child, body.printing-statement .giving-table td:last-child { text-align: right; }
  body.printing-statement .giving-table th, body.printing-statement .giving-table td { padding: 4px 6px; }
  body.printing-statement .giving-signature { display: grid; grid-template-columns: minmax(0, 4in); row-gap: 3px; margin-top: 28px; break-inside: avoid; }
  body.printing-statement .signature-line { display: block; height: 0.3in; margin-bottom: 8px; border-bottom: 1px solid #111; }
}
