@page { size: A4; margin: 12mm; }
body:has(#annual-print:not([hidden])) { margin: 0; padding: 0; color-scheme: light; background: white; }
body:has(#annual-print:not([hidden])) > :not(#annual-print) { display: none; }
.annual-print {
  color: #17243a;
  background: white;
  font: 10pt/1.4 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.annual-print h1 { margin: 0 0 .3em; font-size: 20pt; }
.annual-print p { margin: 0 0 .5em; }
.annual-print table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.annual-print caption {
  text-align: start;
  font-weight: 700;
  font-size: 12pt;
  margin: 0 0 .35em;
  break-after: avoid;
}
.annual-print th, .annual-print td {
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid #b9c3d2;
  padding: .3em .4em;
}
.annual-print thead { display: table-header-group; }
.annual-print tr { break-inside: avoid; }
.annual-print {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.annual-brand { color: #1c4386; font-size: 10pt; font-weight: 700; border-bottom: 2px solid #244ecb; padding-bottom: 3mm; }
.annual-summary h1 { font-size: 26pt; margin-top: 4mm; }
.annual-print h2 { font-size: 12pt; margin: 3mm 0 1.5mm; }
.annual-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2mm; margin: 3mm 0 4mm; }
.annual-totals > div { padding: 2.6mm; background: #eff3fb; border: 1px solid #cfdbef; border-radius: 2mm; }
.annual-totals > div:last-child { background: #183a81; color: white; border-color: #183a81; }
.annual-totals span,.annual-totals strong { display: block; overflow-wrap: anywhere; }
.annual-totals strong { font-size: 14pt; margin-top: .8mm; }
.annual-chart,.annual-categories { break-inside: avoid; }
.annual-legend { display: flex; gap: 5mm; font-size: 8pt; }
.annual-legend span::before {
  display: inline-block;
  content: '';
  width: 2mm;
  height: 2mm;
  margin-inline-end: 1mm;
  border-radius: .4mm;
  background: #3159b5;
}
.annual-legend span + span::before { background: #a85d20; }
.annual-chart-layout { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 2mm; }
.annual-axis { display: flex; flex-direction: column; justify-content: space-between; height: 32mm; text-align: end; font-size: 7pt; }
.annual-plot {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  text-align: center;
  font-size: 8pt;
  background: repeating-linear-gradient(to bottom,#d7e1f1 0 .25mm,transparent .25mm 6.2mm) top / 100% 32mm no-repeat;
}
.annual-pair { display: flex; justify-content: center; align-items: end; gap: .5mm; height: 31mm; }
.annual-pair > div { width: min(37%,3mm); border-radius: .4mm .4mm 0 0; }
.annual-pair .income { background: #3159b5; }
.annual-pair .expense, .annual-category-track .expense { background: #a85d20; }
.annual-categories { margin-top: 4mm; padding: 2.5mm 3mm 3mm; background: #f1f4fa; border-radius: 2mm; }
.annual-categories h2 { margin-top: 0; }
.annual-category { margin-block-start: 1.5mm; }
.annual-category > div:first-child { display: flex; justify-content: space-between; gap: 2mm; font-size: 8pt; }
.annual-category strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.annual-category span { flex: none; }
.annual-category-track { margin-top: .7mm; height: 2mm; border-radius: .6mm; background: #dee5f1; overflow: hidden; }
.annual-category-track .expense { height: 100%; border-radius: .6mm; }
.annual-missing th:nth-child(2), .annual-missing td:nth-child(2) { max-width: 75mm; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.annual-print thead th { background: #edf2fa; }
.annual-print tbody tr:nth-child(even) { background: #f6f8fc; }
.annual-appendix { break-before: page; page-break-before: always; }
