@media screen{.print-weekly-values{display:none}}
@media print{
 .print-weekly-values{display:block;font:11px/1.4 Arial,sans-serif}
 .print-weekly-values table{width:100%;border-collapse:collapse}
 .print-weekly-values th,.print-weekly-values td{padding:4px 8px;border-bottom:1px solid #bbb;text-align:left}
 .print-weekly-values td{text-align:right}
 .print-weekly-values tr{break-inside:avoid}
 .print-weekly-values thead{display:table-header-group}
 #weekly-scroll,.weekly-average-key{display:none!important}
 .chart-grid{display:block!important}
 .panel{transform:none!important;box-shadow:none!important;margin-bottom:18px}
 .weekly-panel,.trend{break-inside:auto}
 .panel h3,.panel h4,.panel-head{break-after:avoid}
 .household-scroll{overflow:visible!important;max-width:100%;width:100%}
 .bars.paired-chart{display:flex!important;width:100%!important;max-width:100%;height:225px!important;gap:0!important}
 .bars.paired-chart .month-pair{flex:1 1 0!important;width:auto!important;min-width:0!important;padding-top:25px}
 .paired-bars{height:160px!important;gap:1px!important}
 .paired-bar{width:14px!important;min-width:0!important;transition:none!important}
 .paired-bar b{font-size:8px!important;writing-mode:horizontal-tb!important}
 .pair-date{font-size:9px!important}
 .member-trend,.month-comparison,.food,.year-card,.snapshot,.demographic-card{break-inside:avoid}
 .reveal{opacity:1!important;transform:none!important}
 .fade-in{animation:none!important;opacity:1!important;transform:none!important}
 .chart-controls,.controls{break-inside:avoid}
}

/* Keep printed statistics together and retain chart marks without relying on
   the browser's optional background-graphics setting. Screen styles are unchanged. */
@media print {
 .stats,.stat,.snapshot-item,.market-section,.sources>p,.annual-section {
  break-inside:avoid-page;
  page-break-inside:avoid;
 }
 .section-head,.panel-head,h2,h3,h4 {
  break-after:avoid-page;
  page-break-after:avoid;
 }
 .paired-bar {
  border:1px solid #953f29!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
 }
 .paired-bar.single,.single-key {
  background:#953f29!important;
  border:1px solid #953f29!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
 }
 .paired-bar.returning,.returning-key {
  background:#dfac51!important;
  border:1px solid #9b731b!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
 }
 .paired-bar b {color:#392b22!important}
 .market-row {break-inside:avoid;page-break-inside:avoid}
 .market-track {border:1px solid #b5b5a0}
 .market-track span {
  background:#657047!important;
  border:1px solid #657047!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
 }
}

/* Compact the complete Walk-In Market block on paper, without changing screen layout. */
@media print {
 .market-section {display:block!important;gap:0!important;padding:16px!important;margin:16px 0!important}
 .market-section>div:first-child p {font-size:13px!important;line-height:1.4!important;margin:10px 0!important;max-width:none!important}
 .market-section h2 {margin-bottom:12px!important}
 .market-section .panel {padding:14px!important;break-inside:avoid-page;page-break-inside:avoid}
 .market-row {grid-template-columns:105px minmax(0,1fr) 35px!important;margin:8px 0!important;gap:10px!important;line-height:1.3!important}
 .market-track {height:16px!important}
 .market-section .caption {font-size:12px!important;line-height:1.4!important;margin:10px 0 0!important}
 .sources {padding-top:20px!important}
 footer {break-inside:avoid-page;page-break-inside:avoid;margin-top:20px!important;padding:16px 0!important}
}

/* Start the completed-month pair of charts on a fresh sheet. */
@media print {.trend{break-before:page;page-break-before:always}}

/* Retain verified running-month attendance on paper as a separate partial period. */
@media print {
 .review-addition.partial-attendance {display:block!important;font-size:11px;line-height:1.3;margin:8px 0;padding:8px;break-inside:avoid-page}
 .partial-attendance h3 {font-size:16px;margin:0 0 4px}
 .partial-attendance p {margin:4px 0}
}

/* Retain the November weekly table on two sheets and keep the three available
   demographic charts together. These rules affect paper only. */
@media print {
 .print-weekly-values th,.print-weekly-values td {padding:2.5px 8px}
 #demographic-charts:has(> .demographic-card:nth-child(3):last-child) {gap:14px!important;align-items:start;break-inside:avoid-page}
 #demographic-charts:has(> .demographic-card:nth-child(3):last-child)> .demographic-card:first-child {grid-row:span 2}
 #demographic-charts:has(> .demographic-card:nth-child(3):last-child)> .demographic-card {padding:18px!important;margin-bottom:0!important}
 #demographic-charts:has(> .demographic-card:nth-child(3):last-child) .demographic-row {margin:9px 0}
 #demographic-charts:has(> .demographic-card:nth-child(3):last-child) .demographic-label {font-size:12px;line-height:1.35}
 #demographic-charts:has(> .demographic-card:nth-child(3):last-child) .demographic-track {height:10px;margin-top:4px}
}

@media print { .sources {break-before:page;page-break-before:always} }
