:root {
  --report-green-950: #06482f;
  --report-green-800: #087143;
  --report-green-700: #0a8250;
  --report-green-100: #eaf6ef;
  --report-green-50: #f4faf6;
  --report-red-700: #c82f38;
  --report-red-100: #fff0f1;
  --report-amber-700: #ad6500;
  --report-amber-100: #fff7e7;
  --report-blue-700: #245ea9;
  --report-blue-100: #edf4ff;
  --report-border: #dfe7e2;
  --report-ink: #111c2a;
  --report-muted: #607083;
  --report-surface: #fff;
  --report-canvas: #f7faf8;
  --report-shadow: 0 8px 26px rgb(24 58 42 / 7%);
}

.report-page {
  display: grid;
  gap: 1rem;
  min-width: 0;
  color: var(--report-ink);
}

.report-breadcrumbs {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--report-muted);
  font-size: .76rem;
}

.report-breadcrumbs a {
  color: var(--report-green-800);
  font-weight: 750;
  text-decoration: none;
}

.report-breadcrumbs span[aria-hidden="true"] { color: #a0aaa4; }

.report-hero {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.report-heading { min-width: 0; }
.report-heading h1 {
  margin: 0;
  color: var(--report-ink);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.report-heading p {
  margin: .42rem 0 0;
  color: var(--report-muted);
  font-size: .88rem;
}

.report-toolbar,
.report-filter-bar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: wrap;
}

.report-filter-bar.report-period-filter { align-items: start; }

.report-period-filter {
  display: grid;
  align-items: start;
  gap: .75rem;
  grid-template-columns: minmax(9.5rem, .55fr) minmax(25rem, 2fr) auto;
}

.report-period-preset-fields,
.report-period-custom-fields {
  display: grid;
  min-width: 0;
  gap: .75rem;
}

.report-period-preset-fields { grid-template-columns: repeat(2, minmax(12rem, 1fr)); }
.report-period-custom-fields { grid-template-columns: repeat(4, minmax(9rem, 1fr)); }
.report-period-preset-fields[hidden],
.report-period-custom-fields[hidden] { display: none; }
.report-period-filter .report-filter { min-width: 0; }
.report-period-filter .report-filter small {
  min-height: 1.1rem;
  color: var(--report-muted);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.35;
}
.report-period-actions { display: grid; align-self: start; gap: .22rem; }
.report-period-action-label {
  display: flex;
  min-height: 1.35rem;
  align-items: center;
  visibility: hidden;
  color: var(--report-muted);
  font-size: .66rem;
  font-weight: 750;
}
.report-period-settings-link {
  color: var(--report-green-800);
  font-size: .62rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.report-period-settings-link:hover,
.report-period-settings-link:focus-visible { text-decoration: underline; }

.report-filter-bar {
  align-items: flex-end;
  justify-content: flex-start;
  padding: .8rem;
  background: var(--report-surface);
  border: 1px solid var(--report-border);
  border-radius: .8rem;
  box-shadow: 0 3px 12px rgb(24 58 42 / 4%);
}

.report-filter {
  display: grid;
  min-width: 9.5rem;
  gap: .22rem;
  margin: 0;
  color: var(--report-muted);
  font-size: .66rem;
  font-weight: 750;
}

.report-filter input,
.report-filter select,
.report-search {
  min-height: 2.75rem;
  margin: 0;
  padding: .62rem .75rem;
  color: var(--report-ink);
  background: #fff;
  border: 1px solid #cfd9d3;
  border-radius: .62rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
}

.report-filter-wide { min-width: min(21rem, 100%); flex: 1 1 17rem; }
.report-filter-wide input { width: 100%; }

.report-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .9rem;
  color: var(--report-ink);
  background: #fff;
  border: 1px solid #cfd9d3;
  border-radius: .62rem;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.report-button:hover,
.report-button:focus-visible {
  color: var(--report-green-950);
  border-color: #8bb99d;
  box-shadow: 0 0 0 3px rgb(10 130 80 / 12%);
}

.report-button-primary {
  color: #fff;
  background: var(--report-green-800);
  border-color: var(--report-green-800);
}
.report-button-primary:hover,
.report-button-primary:focus-visible { color: #fff; background: var(--report-green-950); }

.report-button svg,
.report-tile-icon svg,
.report-kpi-icon svg,
.report-section-title svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
}

.report-export {
  position: relative;
}
.report-export summary { list-style: none; }
.report-export summary::-webkit-details-marker { display: none; }
.report-export-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + .35rem);
  right: 0;
  display: grid;
  min-width: 10rem;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--report-border);
  border-radius: .65rem;
  box-shadow: var(--report-shadow);
}
.report-export-menu a {
  padding: .65rem .75rem;
  color: var(--report-ink);
  border-radius: .45rem;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.report-export-menu a:hover,
.report-export-menu a:focus-visible { color: var(--report-green-950); background: var(--report-green-50); }

.report-kpi-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-kpi {
  display: grid;
  min-width: 0;
  min-height: 7.7rem;
  align-items: center;
  gap: .75rem;
  padding: .95rem;
  background: var(--report-surface);
  border: 1px solid var(--report-border);
  border-radius: .8rem;
  box-shadow: 0 4px 16px rgb(24 58 42 / 5%);
  grid-template-columns: 2.7rem minmax(0, 1fr);
}

.report-kpi-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  color: var(--report-green-800);
  background: var(--report-green-100);
  border-radius: 50%;
}
.report-kpi.is-danger .report-kpi-icon { color: var(--report-red-700); background: var(--report-red-100); }
.report-kpi.is-warning .report-kpi-icon { color: var(--report-amber-700); background: var(--report-amber-100); }
.report-kpi.is-info .report-kpi-icon { color: var(--report-blue-700); background: var(--report-blue-100); }

.report-kpi-copy { display: grid; min-width: 0; gap: .18rem; }
.report-kpi-copy small { color: #344456; font-size: .7rem; font-weight: 800; }
.report-kpi-copy strong {
  overflow: hidden;
  color: var(--report-ink);
  font-size: clamp(1rem, 1.45vw, 1.38rem);
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-kpi-copy span { color: var(--report-muted); font-size: .65rem; line-height: 1.4; }
.report-kpi-copy b { color: var(--report-green-800); font-size: .66rem; }
.report-kpi.is-danger .report-kpi-copy b { color: var(--report-red-700); }
.report-cash-flow-kpis .report-kpi-copy strong {
  overflow: visible;
  font-size: clamp(.88rem, 1.2vw, 1.15rem);
  line-height: 1.15;
  white-space: normal;
}

.report-section,
.report-chart-card,
.report-insight,
.report-panel {
  min-width: 0;
  padding: 1rem;
  background: var(--report-surface);
  border: 1px solid var(--report-border);
  border-radius: .82rem;
  box-shadow: 0 4px 16px rgb(24 58 42 / 4%);
}

.report-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}
.report-section-header h2,
.report-section-header h3 {
  margin: 0;
  font-size: .94rem;
  letter-spacing: -.015em;
}
.report-section-header a { color: var(--report-green-800); font-size: .72rem; font-weight: 800; text-decoration: none; }

.report-grid {
  display: grid;
  min-width: 0;
  gap: .8rem;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .85fr);
}
.report-grid-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-grid-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.report-table-wrap { min-width: 0; overflow-x: auto; }
.report-table {
  width: 100%;
  min-width: 48rem;
  margin: 0;
  border-collapse: collapse;
  font-size: .72rem;
}
.report-table th,
.report-table td {
  padding: .62rem .7rem;
  border-bottom: 1px solid #e7ede9;
  text-align: left;
  vertical-align: middle;
}
.report-table thead th {
  color: #526173;
  background: #fbfcfb;
  font-size: .63rem;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.report-table tbody tr:hover { background: #fbfdfb; }
.report-table a { color: var(--report-green-800); font-weight: 800; text-decoration: none; }
.report-table .amount,
.report-table th.amount { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.report-table tfoot th,
.report-table tfoot td {
  color: var(--report-green-950);
  background: var(--report-green-50);
  border-top: 1px solid #cfe1d6;
  font-weight: 850;
}
.report-table .section-row th { color: var(--report-green-950); background: #eef7f1; }
.report-table .danger-row td { background: #fff8f8; }

.status-pill {
  display: inline-flex;
  min-height: 1.45rem;
  align-items: center;
  gap: .28rem;
  padding: .23rem .48rem;
  color: #526173;
  background: #f0f3f1;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill::before {
  width: .36rem;
  height: .36rem;
  background: currentcolor;
  border-radius: 50%;
  content: "";
}
.status-success { color: var(--report-green-800); background: var(--report-green-100); }
.status-danger { color: var(--report-red-700); background: var(--report-red-100); }
.status-warning { color: var(--report-amber-700); background: var(--report-amber-100); }
.status-info { color: var(--report-blue-700); background: var(--report-blue-100); }

.report-catalog-section { display: grid; gap: .7rem; }
.report-catalog-section > h2 { margin: .35rem 0 0; font-size: 1rem; }
.report-catalog {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-catalog.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-tile {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 7.1rem;
  align-content: start;
  gap: .4rem;
  padding: .9rem .95rem .85rem 3.8rem;
  color: var(--report-ink);
  background: #fff;
  border: 1px solid var(--report-border);
  border-radius: .76rem;
  box-shadow: 0 3px 13px rgb(24 58 42 / 4%);
  text-decoration: none;
}
.report-tile:hover,
.report-tile:focus-visible {
  color: var(--report-ink);
  border-color: #9fc5ae;
  box-shadow: var(--report-shadow);
  transform: translateY(-1px);
}
.report-tile:focus-visible { outline: 3px solid rgb(10 130 80 / 16%); outline-offset: 2px; }
.report-tile-icon {
  position: absolute;
  top: .85rem;
  left: .85rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--report-green-800);
  background: var(--report-green-100);
  border-radius: .55rem;
}
.report-tile strong { font-size: .77rem; line-height: 1.28; }
.report-tile p { margin: 0; color: var(--report-muted); font-size: .67rem; line-height: 1.45; }
.report-tile-arrow { position: absolute; right: .8rem; bottom: .6rem; color: var(--report-green-800); font-weight: 900; }

.report-feature-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .85fr);
}
.report-feature {
  min-height: 8.7rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--report-border);
  border-radius: .8rem;
}
.report-feature h2 { margin: 0 0 .7rem; font-size: .86rem; }
.report-quick-links { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-quick-links a {
  display: grid;
  gap: .18rem;
  padding: .7rem;
  color: var(--report-ink);
  background: #fbfdfb;
  border: 1px solid var(--report-border);
  border-radius: .6rem;
  text-decoration: none;
}
.report-quick-links strong { font-size: .7rem; }
.report-quick-links small { color: var(--report-muted); font-size: .61rem; }
.report-diagnostics-feature {
  display: grid;
  align-content: center;
  gap: .45rem;
  background: linear-gradient(135deg, #fff 0%, #f3faf6 100%);
}
.report-diagnostics-feature p { margin: 0; color: var(--report-muted); font-size: .7rem; }

.report-chart {
  display: grid;
  min-height: 12rem;
  align-content: end;
  gap: .65rem;
  padding: .5rem 0;
}
.report-chart-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: .6rem;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) minmax(4.5rem, auto);
}
.report-chart-row > span { overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.report-chart-row > strong { font-size: .65rem; text-align: right; white-space: nowrap; }
.report-bar-track {
  position: relative;
  height: .62rem;
  overflow: hidden;
  background: #eaf0ec;
  border-radius: 999px;
}
.report-bar {
  display: block;
  width: var(--bar-width, 0%);
  max-width: 100%;
  height: 100%;
  background: var(--report-green-800);
  border-radius: inherit;
}
.report-bar.is-soft { background: #a9d3b8; }
.report-bar.is-danger { background: #e4494f; }
.report-bar.is-warning { background: #e9a12b; }

.report-comparison-bars {
  display: grid;
  min-height: 13rem;
  align-items: end;
  gap: 1rem;
  padding: 1rem .5rem .4rem;
  border-bottom: 1px solid var(--report-border);
  grid-template-columns: repeat(3, 1fr);
}
.report-comparison-group {
  display: flex;
  min-width: 0;
  height: 10rem;
  align-items: end;
  justify-content: center;
  gap: .38rem;
}
.report-vertical-bar {
  display: grid;
  width: clamp(1.25rem, 3vw, 2rem);
  min-height: .25rem;
  height: var(--bar-height, 0%);
  place-items: start center;
  color: #fff;
  background: var(--report-green-800);
  border-radius: .35rem .35rem 0 0;
}
.report-vertical-bar.is-comparison { background: #b8d9c4; }
.report-comparison-labels {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.report-comparison-labels span { color: var(--report-muted); font-size: .62rem; text-align: center; }

.report-insight {
  display: grid;
  gap: .7rem;
  align-content: start;
}
.report-insight.is-success { color: var(--report-green-950); background: var(--report-green-50); border-color: #b8d9c4; }
.report-insight.is-warning { color: #6f4708; background: var(--report-amber-100); border-color: #efd39b; }
.report-insight.is-danger { color: #84262c; background: var(--report-red-100); border-color: #f0b9bd; }
.report-insight h3 { margin: 0; font-size: .8rem; }
.report-insight p,
.report-insight li { margin: 0; font-size: .68rem; line-height: 1.55; }
.report-insight ul { display: grid; gap: .38rem; margin: 0; padding-left: 1.1rem; }

.position-grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.position-panel { display: grid; min-width: 0; align-content: start; padding: 0; overflow: hidden; }
.position-panel h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0;
  padding: .82rem;
  color: var(--report-green-950);
  font-size: .88rem;
  border-bottom: 1px solid var(--report-border);
}
.position-subtitle { padding: .48rem .8rem; color: var(--report-green-950); background: #eef7f1; font-size: .68rem; font-weight: 850; }
.position-line,
.position-total-line {
  display: grid;
  gap: .5rem;
  padding: .5rem .8rem;
  border-bottom: 1px solid #edf1ee;
  font-size: .67rem;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
}
.position-line a { color: var(--report-ink); text-decoration: none; }
.position-line strong,
.position-total-line strong { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.position-total-line { color: var(--report-green-950); background: var(--report-green-50); font-weight: 850; grid-template-columns: minmax(0, 1fr) auto; }
.position-grand-total { grid-column: 1 / -1; }

.ledger-group {
  margin: 0;
  border-bottom: 1px solid var(--report-border);
}
.ledger-group summary {
  display: grid;
  align-items: center;
  gap: .7rem;
  padding: .68rem .75rem;
  color: var(--report-ink);
  background: #f8fbf9;
  cursor: pointer;
  font-size: .69rem;
  font-weight: 850;
  list-style: none;
  grid-template-columns: minmax(0, 1fr) auto;
}
.ledger-group summary > span:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: .45rem;
}
.ledger-group summary > span:first-child small {
  color: var(--report-muted);
  font-weight: 700;
  white-space: nowrap;
}
.ledger-group summary > span:last-child {
  text-align: right;
  white-space: nowrap;
}
.ledger-group summary::-webkit-details-marker { display: none; }
.ledger-group[open] summary { color: var(--report-green-950); background: #eef7f1; }
.ledger-row-details summary { color: var(--report-green-800); cursor: pointer; font-size: .64rem; font-weight: 800; }
.ledger-row-details > div {
  display: grid;
  gap: .35rem;
  margin-top: .45rem;
  padding: .65rem;
  color: var(--report-muted);
  background: #f8faf9;
  border-radius: .45rem;
  font-size: .63rem;
}

.statement-table .statement-label { padding-left: 1.6rem; }
.statement-total td { color: var(--report-green-950); background: var(--report-green-50); font-weight: 850; }
.statement-total.is-danger td { color: var(--report-red-700); background: var(--report-red-100); }
.report-account-movement strong,
.report-account-movement small { display: block; white-space: nowrap; }
.report-account-movement strong { color: var(--report-ink); font-size: .68rem; }
.report-account-movement small { margin-top: .18rem; color: var(--report-muted); font-size: .64rem; font-weight: 750; }
.report-account-movement.is-increase { box-shadow: inset .18rem 0 0 #8bbf9d; }
.report-account-movement.is-decrease { box-shadow: inset .18rem 0 0 #e1b46d; }
.report-related-accounts summary { color: var(--report-green-800); cursor: pointer; font-size: .65rem; font-weight: 800; }
.report-related-accounts ul { display: grid; gap: 0; margin: .45rem 0 0; padding: 0; color: var(--report-muted); font-size: .62rem; list-style: none; }
.report-contribution-breakdown { min-width: 16rem; }
.report-contribution-breakdown li,
.report-contribution-breakdown > p { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .42rem 0; border-bottom: 1px solid var(--report-border); }
.report-contribution-breakdown li > span { display: grid; min-width: 0; gap: .08rem; }
.report-contribution-breakdown li > span > strong { overflow-wrap: anywhere; color: var(--report-ink); }
.report-contribution-breakdown li small { color: var(--report-muted); }
.report-contribution-breakdown li > strong,
.report-contribution-breakdown > p > strong { color: var(--report-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-contribution-breakdown > p { margin: 0; color: var(--report-green-800); border-bottom: 0; font-weight: 850; }

.report-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  color: var(--report-muted);
  background: #fbfcfb;
  border: 1px solid var(--report-border);
  border-radius: .72rem;
  font-size: .65rem;
}

.report-empty {
  display: grid;
  min-height: 11rem;
  place-items: center;
  padding: 1.5rem;
  color: var(--report-muted);
  text-align: center;
}
.report-empty strong { color: var(--report-ink); }

.report-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--report-green-800);
  font-weight: 850;
}
.report-check.is-danger { color: var(--report-red-700); }

.report-account-group {
  overflow: hidden;
  padding: 0;
}
.report-account-group h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .65rem .85rem;
  color: var(--report-green-950);
  background: #eef7f1;
  border-bottom: 1px solid var(--report-border);
  font-size: .78rem;
}
.report-account-group h2 span {
  padding: .15rem .4rem;
  color: var(--report-muted);
  background: #fff;
  border-radius: 999px;
  font-size: .58rem;
}

.screen-reader-report-data {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .report-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr; }
  .position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .report-hero { display: grid; }
  .report-toolbar { justify-content: flex-start; }
  .report-feature-grid,
  .report-grid-equal,
  .report-grid-thirds,
  .position-grid { grid-template-columns: 1fr; }
  .position-panel:last-child { grid-column: auto; }
  .report-catalog,
  .report-catalog.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-group summary { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-group summary span:nth-of-type(n+2) { display: none; }
}

@media (max-width: 560px) {
  .report-kpi-grid,
  .report-catalog,
  .report-catalog.is-three,
  .report-quick-links { grid-template-columns: 1fr; }
  .report-filter { width: 100%; }
  .report-filter input,
  .report-filter select { width: 100%; }
  .report-button { min-height: 2.9rem; }
  .report-table { min-width: 42rem; }
  .report-kpi { min-height: 6.7rem; }
  .report-meta { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .report-tile,
  .report-button { transition: none; }
}

@media print {
  .app-sidebar,
  .app-topbar,
  .report-breadcrumbs,
  .report-toolbar,
  .report-filter-bar,
  .report-export,
  .report-print-hidden,
  .pagination { display: none !important; }
  .app-surface,
  .page-content { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .report-page { gap: .5rem; }
  .report-section,
  .report-chart-card,
  .report-insight,
  .report-panel,
  .report-kpi { box-shadow: none; break-inside: avoid; }
  .report-table-wrap { overflow: visible; }
  .report-table { min-width: 0; font-size: 8pt; }
  .report-table thead { display: table-header-group; }
  .report-table tr { break-inside: avoid; }
}

.report-eyebrow { margin: 0 0 .35rem; color: var(--report-green-800); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.report-table-subtitle { display: block; margin-top: .2rem; color: var(--report-muted); font-size: .7rem; }

.page-content:has(.journal-register-page) { width: min(100%, 100rem); padding-block: 1.3rem; }
.journal-register-page { gap: .9rem; }
.journal-register-hero { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 1rem; }
.journal-register-hero-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
.journal-register-hero-actions .report-export { margin: 0; }
.journal-register-hero-actions .report-button { min-height: 2.45rem; padding: .45rem .72rem; }
.journal-register-hero-actions .report-check { margin-right: .5rem; white-space: nowrap; }
.journal-register-filters { display: grid; min-width: 0; align-items: end; gap: .55rem; padding: .75rem; background: #fff; border: 1px solid var(--report-border); border-radius: .75rem; box-shadow: var(--report-shadow); grid-template-columns: minmax(13rem,1.35fr) repeat(2,minmax(8.7rem,.72fr)) minmax(8.5rem,.75fr) minmax(8.5rem,.75fr) auto; }
.journal-register-filters label { display: grid; min-width: 0; gap: .2rem; color: #34443a; font-size: .59rem; font-weight: 750; }
.journal-register-filters input,.journal-register-filters select { width: 100%; min-width: 0; min-height: 2.35rem; padding: .38rem .55rem; font-size: .68rem; }
.journal-filter-search-field { position: relative; display: block; }
.journal-filter-search-field svg { position: absolute; z-index: 1; top: 50%; left: .6rem; width: .82rem; height: .82rem; color: #748178; transform: translateY(-50%); pointer-events: none; }
.journal-filter-search-field input { padding-left: 1.9rem; }
.journal-register-filter-actions { display: flex; gap: .35rem; }
.journal-register-filter-actions .report-button { min-height: 2.35rem; padding: .4rem .65rem; font-size: .65rem; }
.journal-register-advanced { margin: 0; grid-column: 1 / -1; }
.journal-register-advanced > summary { width: max-content; color: var(--report-green-800); list-style: none; font-size: .62rem; }
.journal-register-advanced > summary::-webkit-details-marker { display: none; }
.journal-register-advanced > summary::after { margin-left: .35rem; content: "▾"; }
.journal-register-advanced > summary span { margin-left: .4rem; padding: .12rem .35rem; color: var(--report-green-800); background: var(--report-green-100); border-radius: 999px; font-size: .52rem; }
.journal-register-advanced > div { display: grid; gap: .55rem; margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--report-border); grid-template-columns: minmax(14rem,1.4fr) repeat(2,minmax(10rem,1fr)); }
.journal-register-section { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--report-border); border-radius: .8rem; box-shadow: var(--report-shadow); }
.journal-register-list { display: grid; min-width: 0; }
.journal-register-column-head,.journal-register-entry-header { display: grid; min-width: 0; align-items: center; gap: .45rem; grid-template-columns: 5.7rem 7.5rem minmax(7rem,1.2fr) minmax(5.5rem,.65fr) minmax(6.4rem,.72fr) 5.2rem minmax(5.9rem,.58fr) minmax(5.9rem,.58fr) .9rem; }
.journal-register-column-head { padding: .62rem .8rem; color: #536176; background: #f6f8f7; border-bottom: 1px solid var(--report-border); font-size: .54rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.journal-register-column-head span:nth-child(7),.journal-register-column-head span:nth-child(8) { text-align: right; }
.journal-register-entry { min-width: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--report-border); }
.journal-register-entry:last-child { border-bottom: 0; }
.journal-register-entry summary { list-style: none; cursor: pointer; }
.journal-register-entry summary::-webkit-details-marker { display: none; }
.journal-register-entry-header { min-height: 3.35rem; padding: .55rem .8rem; }
.journal-register-entry-header:hover { background: #fbfdfc; }
.journal-register-entry[open] .journal-register-entry-header { background: #f7fbf8; border-bottom: 1px solid var(--report-border); }
.journal-register-date,.journal-register-identity,.journal-register-description,.journal-register-origin-cell,.journal-register-account,.journal-register-line-detail,.journal-register-native { display: grid; min-width: 0; gap: .1rem; }
.journal-register-date { font-size: .65rem; font-weight: 750; white-space: nowrap; }
.journal-register-description span,.journal-register-origin-cell span,.journal-register-account small,.journal-register-line-detail small,.journal-register-native small { overflow: hidden; color: var(--report-muted); font-size: .55rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.journal-register-identity a,.journal-register-account-code a { color: var(--report-green-800); font-weight: 850; text-decoration: none; }
.journal-register-attachment { width: max-content; padding: .12rem .3rem; color: var(--report-blue-700); background: var(--report-blue-100); border-radius: 999px; font-size: .48rem; font-weight: 800; }
.journal-register-description strong,.journal-register-origin-cell strong,.journal-register-reference { overflow: hidden; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.journal-register-entry-header > .status-pill { justify-self: start; padding: .18rem .4rem; font-size: .52rem; }
.journal-register-total { overflow: hidden; font-size: .64rem; font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.journal-register-chevron { display: grid; place-items: center; }
.journal-register-chevron svg { width: .78rem; height: .78rem; transition: transform .16s; }
.journal-register-entry:not([open]) .journal-register-chevron svg { transform: rotate(-90deg); }
.journal-register-lines { min-width: 0; margin: .45rem .65rem .6rem; overflow: hidden; border: 1px solid #e1e8e4; border-radius: .55rem; }
.journal-register-line { display: grid; min-width: 0; align-items: center; gap: .5rem; padding: .45rem .58rem; border-bottom: 1px solid #e8eeea; grid-template-columns: minmax(5rem,.5fr) minmax(7rem,.9fr) minmax(8rem,1.2fr) minmax(6rem,.68fr) minmax(6rem,.68fr) minmax(7.2rem,.78fr); }
.journal-register-line-head { color: #526173; background: #f7f9f8; font-size: .51rem; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.journal-register-line-head span:nth-child(4),.journal-register-line-head span:nth-child(5) { text-align: right; }
.journal-register-account strong,.journal-register-line-detail strong,.journal-register-native strong { overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.journal-register-amount { font-size: .61rem; font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; white-space: nowrap; }
.journal-register-line-total { display: grid; align-items: center; gap: .5rem; padding: .48rem .58rem; color: var(--report-green-950); background: #fbfdfc; grid-template-columns: minmax(5rem,.5fr) minmax(7rem,.9fr) minmax(8rem,1.2fr) minmax(6rem,.68fr) minmax(6rem,.68fr) minmax(7.2rem,.78fr); font-size: .62rem; }
.journal-register-line-total strong { grid-column: 1 / 4; }
.journal-register-line-total span { font-variant-numeric: tabular-nums; font-weight: 850; text-align: right; }
.journal-register-footer { display: flex; min-height: 3.2rem; align-items: center; gap: 1rem; padding: .55rem .8rem; color: var(--report-muted); background: #fbfcfb; border-top: 1px solid var(--report-border); font-size: .6rem; }
.journal-register-footer > span:first-child { margin-right: auto; }
.journal-register-footer label { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.journal-register-footer select { min-height: 2rem; padding: .25rem 1.7rem .25rem .45rem; font-size: .6rem; }
.journal-register-pagination { display: flex; align-items: center; gap: .28rem; }
.journal-register-pagination > * { display: grid; min-width: 1.8rem; min-height: 1.8rem; place-items: center; padding: .2rem; border: 1px solid var(--report-border); border-radius: .38rem; text-decoration: none; }
.journal-register-pagination strong { color: var(--report-green-800); border-color: #9ac9ad; }
.journal-register-pagination span:nth-child(3) { border: 0; }
@media(max-width:76rem){.journal-register-hero{align-items:flex-start;flex-direction:column}.journal-register-hero-actions{width:100%;justify-content:flex-end}.journal-register-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.journal-filter-search{grid-column:span 2}.journal-register-filter-actions{justify-content:flex-end}.journal-register-column-head{display:none}.journal-register-entry{margin:.5rem;border:1px solid var(--report-border);border-radius:.65rem}.journal-register-entry-header{grid-template-columns:6.5rem minmax(8rem,.8fr) minmax(10rem,1.2fr) 5.5rem}.journal-register-reference{display:none}.journal-register-origin-cell{grid-column:3}.journal-register-entry-header>.status-pill{grid-column:4}.journal-register-total{text-align:left}.journal-register-total::before{display:block;color:var(--report-muted);font-size:.49rem;content:attr(data-label);text-transform:uppercase}.journal-register-chevron{grid-row:1;grid-column:4;justify-self:end}.journal-register-lines{overflow:visible}.journal-register-line-head{display:none}.journal-register-line{grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem;padding:.65rem}.journal-register-line>span{min-width:0;text-align:left;white-space:normal}.journal-register-line>span::before{display:block;margin-bottom:.1rem;color:var(--report-muted);font-size:.48rem;font-weight:800;content:attr(data-label);text-transform:uppercase}.journal-register-line-detail,.journal-register-native{grid-column:1/-1}.journal-register-line-total{grid-template-columns:1fr 1fr}.journal-register-line-total strong{grid-column:1/-1}}
@media(max-width:58rem){.journal-register-hero-actions{align-items:stretch;flex-wrap:wrap}.journal-register-hero-actions .report-check{width:100%;margin:0}.journal-register-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-filter-search{grid-column:1/-1}.journal-register-filter-actions{grid-column:1/-1}.journal-register-advanced>div{grid-template-columns:1fr}.journal-register-entry-header{grid-template-columns:1fr 1fr}.journal-register-description,.journal-register-origin-cell{grid-column:1/-1}.journal-register-entry-header>.status-pill{grid-column:1}.journal-register-chevron{grid-column:2}.journal-register-footer{align-items:flex-start;flex-wrap:wrap}.journal-register-footer>span:first-child{width:100%;margin:0}}
.report-opening-row, .report-group-row { background: var(--report-green-50); }
.report-group-row-expense { background: var(--report-red-100); }
.report-definition-list { display: grid; gap: .1rem; margin: .75rem 0; grid-template-columns: 1fr !important; }
.report-definition-list > div { display: grid; min-width: 0; align-items: start; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--report-border); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.report-definition-list dt,
.report-definition-list dd { min-width: 0; overflow-wrap: anywhere; }
.report-definition-list dt { color: var(--report-muted); }
.report-definition-list dd { margin: 0; font-weight: 750; text-align: right; }
.report-statement-table { width: 100%; min-width: 0; table-layout: fixed; }
.report-statement-table th:first-child, .report-statement-table td:first-child { width: 40%; }
.report-statement-section th {
  background: var(--finance-surface-muted, #f5f8f6);
  color: var(--finance-green-800, #075d37);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.report-direct-cash-flow td:first-child small {
  color: var(--finance-text-muted, #627080);
  display: block;
  font-size: .75rem;
  font-weight: 400;
  margin-top: .15rem;
}
.report-callout, .report-equation { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--report-border); border-radius: 14px; background: var(--report-green-50); }
.report-callout-success, .report-equation-success { border-color: #bfe3ce; }
.report-callout-danger, .report-equation-danger { border-color: #f1c4c7; background: var(--report-red-100); }
.report-position-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.report-position-panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.report-position-panel h3 { margin: 0; padding: .75rem 1rem; background: var(--report-green-50); font-size: .82rem; }
.report-position-title, .report-position-row, .report-position-subtotal, .report-position-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.report-position-title { padding: 1rem; }
.report-position-title h2 { margin: 0; }
.report-position-row { padding: .62rem 1rem; border-top: 1px solid var(--report-border); color: var(--report-ink); text-decoration: none; }
.report-position-row span { display: flex; gap: .55rem; min-width: 0; }
.report-position-row small { color: var(--report-muted); }
.report-position-subtotal { padding: .75rem 1rem; color: var(--report-green-800); border-top: 1px solid var(--report-border); }
.report-position-total { margin-top: auto; padding: .85rem 1rem; color: var(--report-green-800); background: var(--report-green-50); border-top: 1px solid #cfe5d7; font-size: .9rem; }
.report-equation { grid-template-columns: 1fr auto; align-items: center; }
.report-equation small { grid-column: 1 / -1; }
.report-mix-list { display: grid; gap: .15rem; }
.report-mix-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--report-border); }
.report-mix-list span { display: flex; align-items: center; gap: .5rem; }
.report-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--report-green-700); }
.report-result-count { margin: 0 0 .75rem; color: var(--report-muted); }
.report-account-group-title { display: flex; align-items: center; gap: .55rem; padding: 1rem; background: var(--report-green-50); }
.report-account-group-title h2 { margin: 0; }
.report-account-group-title span { padding: .15rem .5rem; border-radius: 999px; background: #fff; }
@media (max-width: 1100px) { .report-position-grid { grid-template-columns: 1fr; } }
/* Report template contract v2 */
.page-content:has(.report-page) {
  width: min(100%, 100rem);
  padding: clamp(1rem, 2vw, 2rem);
}

.report-page { gap: 1.15rem; }
.report-hero > div:first-child { min-width: 0; }
.report-hero h1 {
  margin: 0;
  color: var(--report-ink);
  font-size: clamp(1.85rem, 2.7vw, 2.55rem);
  letter-spacing: -.045em;
  line-height: 1.04;
}
.report-hero > div:first-child > p:last-child {
  margin: .42rem 0 0;
  color: var(--report-muted);
  font-size: .88rem;
}
.report-actions {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}
.report-actions svg,
.report-quick-links svg,
.report-diagnostics-feature svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
}

.report-filter-bar > label:not(.report-check) {
  display: grid;
  min-width: 9.5rem;
  gap: .22rem;
  margin: 0;
  color: var(--report-muted);
  font-size: .66rem;
  font-weight: 750;
}
.report-filter-bar > label:not(.report-check) input,
.report-filter-bar > label:not(.report-check) select {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: .58rem .7rem;
  color: var(--report-ink);
  background: #fff;
  border: 1px solid #cfd9d3;
  border-radius: .6rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
}
.report-filter-grow { flex: 1 1 17rem; }
.report-check { margin: 0; font-size: .7rem; }

.report-kpis { display: grid; gap: .75rem; }
.report-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-positive { color: var(--report-green-800) !important; }
.report-negative { color: var(--report-red-700) !important; }

.report-layout-2 {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.report-layout-wide { grid-template-columns: minmax(0, 1.6fr) minmax(17rem, .8fr); }
.report-insights { display: grid; min-width: 0; gap: .8rem; align-content: start; }
.report-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}
.report-section-heading h2,
.report-section-heading h3 { margin: 0; font-size: .94rem; letter-spacing: -.015em; }
.report-section-heading p { margin: .18rem 0 0; color: var(--report-muted); font-size: .67rem; }

.report-status {
  display: inline-flex;
  min-height: 1.45rem;
  align-items: center;
  gap: .28rem;
  padding: .23rem .48rem;
  color: #526173;
  background: #f0f3f1;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 800;
  white-space: nowrap;
}
.report-status-success { color: var(--report-green-800); background: var(--report-green-100); }
.report-status-danger { color: var(--report-red-700); background: var(--report-red-100); }
.report-status-warning { color: var(--report-amber-700); background: var(--report-amber-100); }
.report-status-info { color: var(--report-blue-700); background: var(--report-blue-100); }

.report-progress {
  width: 100%;
  min-width: 5rem;
  height: .45rem;
  overflow: hidden;
  background: #e8eeea;
  border-radius: 999px;
}
.report-progress span { display: block; height: 100%; background: var(--report-green-800); border-radius: inherit; }
.report-bars { display: grid; gap: .58rem; }
.report-bar-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: .6rem;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) minmax(5rem, auto);
}
.report-bar-row > span { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.report-bar-row > div { height: .62rem; overflow: hidden; background: #e7f0ea; border-radius: 999px; }
.report-bar-row i { display: block; height: 100%; background: var(--report-green-800); border-radius: inherit; }
.report-bar-row strong { font-size: .65rem; text-align: right; white-space: nowrap; }
.report-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem .85rem;
  color: var(--report-muted);
  background: #fbfcfb;
  border: 1px solid var(--report-border);
  border-radius: .7rem;
  font-size: .64rem;
}
.report-code { color: #435568; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .66rem; font-weight: 700; }
.report-table .number { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.report-hero .report-heading { flex: 1 1 auto; }
.report-hero .report-toolbar { flex: 0 0 auto; }
.report-diagnostics-feature h2 { display: flex; align-items: center; gap: .5rem; }
.report-quick-links a { position: relative; padding-left: 2.8rem; }
.report-quick-link-icon {
  position: absolute;
  top: .65rem;
  left: .65rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  color: var(--report-green-800);
  background: var(--report-green-100);
  border-radius: .4rem;
}

@media (max-width: 1180px) {
  .report-hero { display: grid; }
  .report-toolbar { justify-content: flex-start; }
  .report-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-layout-2,
  .report-layout-wide { grid-template-columns: 1fr; }
  .report-period-filter { grid-template-columns: minmax(9.5rem, .55fr) minmax(22rem, 2fr); }
  .report-period-actions { grid-column: 1 / -1; justify-items: start; }
}
@media (max-width: 760px) {
  .report-actions { min-width: 0; justify-content: flex-start; }
  .report-kpis-4 { grid-template-columns: 1fr; }
  .report-position-grid { grid-template-columns: 1fr; }
  .report-filter-bar > label:not(.report-check) { width: 100%; }
  .report-period-filter { grid-template-columns: 1fr; }
  .report-period-preset-fields,
  .report-period-custom-fields { grid-template-columns: 1fr; }
  .report-period-actions { width: 100%; }
  .report-period-action-label { display: none; }
  .report-period-actions .report-button { width: 100%; }
}
/* Report account icon details */
.report-position-title h2 { display: flex; align-items: center; gap: .5rem; color: var(--report-green-950); }
.report-position-title h2 svg,
.report-account-group-icon svg,
.report-account-row-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
}
.report-account-group-title .report-account-group-icon,
.report-account-row-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  place-items: center;
  color: var(--report-green-800);
  background: var(--report-green-100);
  border-radius: .45rem;
}
.report-account-row-icon { width: 1.55rem; height: 1.55rem; margin-right: .45rem; vertical-align: middle; }
.report-account-group-title .report-account-group-icon svg { width: 1.05rem; height: 1.05rem; }
/* Primary report buttons retain legible contrast */
.report-button.report-button-primary,
.report-button.report-button-primary:hover,
.report-button.report-button-primary:focus-visible {
  color: #fff;
}

/* Specialist report identity and compact table empty states */
.report-specialist-heading {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}
.report-specialist-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--report-green-800);
  background: var(--report-green-50);
  border-radius: .75rem;
  place-items: center;
}
.report-specialist-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}
.report-table td.report-empty {
  display: table-cell;
  height: 5.5rem;
  min-height: 0;
  padding: 1.25rem;
  vertical-align: middle;
}
