/* brandguide: Default reading size and zoom. Scoped to the measured body pages. */
.body-reflow main {
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.body-reflow .portfolio-access-state { min-width: 0; max-width: 100%; }
.body-reflow .portfolio-access-state h1 { font-size: 2rem; overflow-wrap: anywhere; }
.body-reflow .access-actions { flex-wrap: wrap; }
.body-reflow .access-actions > * { min-width: 0; max-width: 100%; }
.body-reflow .access-actions .action { white-space: normal; }
.body-reflow .panel-heading { flex-wrap: wrap; }
.body-reflow .panel-heading > *,
.body-reflow .metric-card,
.body-reflow .report-drawer,
.body-reflow .report-content { min-width: 0; max-width: 100%; }
.body-reflow .metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.body-reflow .metric-card strong { font-size: 2rem; }
.body-reflow .page-intro h1 { font-size: 2rem; }
.body-reflow .panel h2, .body-reflow .metric-card h2 { font-size: 1.25rem; }
.body-reflow .metric-card span,
.body-reflow .metric-card small,
.body-reflow .report-drawer > summary,
.body-reflow .row-details summary,
.body-reflow .row-details dl,
.body-reflow .subtle,
.body-reflow .mode-pill,
.body-reflow .status-tag { font-size: 1rem; white-space: normal; }
.body-reflow .report-drawer > summary { flex-wrap: wrap; }
.body-reflow .metric-card dd { margin-inline-start: 0; }
.body-reflow form[action="/accounting"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  align-items: end;
}
.body-reflow form[action="/accounting"] label { display: grid; gap: .35rem; min-width: 0; }
.body-reflow form[action="/accounting"] label:has([type="checkbox"]) { display: flex; align-items: center; }
.body-reflow main input,
.body-reflow main select,
.body-reflow main button { min-width: 0; max-width: 100%; min-height: 44px; font: inherit; font-size: 1rem; }
.body-reflow main input:not([type="checkbox"]),
.body-reflow main select { width: 100%; }
/* Keep action weight after the form-control font reset above. */
.body-reflow main :is(.action, .button-link) { font-weight: 600; }
.body-reflow main .button { max-width: 100%; white-space: normal; font-size: 1rem; }
/* Preserve native table semantics and every column at all viewport/font sizes. */
.body-reflow .table-wrap:has(table) {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scrollbar-color: var(--muted) var(--wash);
}
.body-reflow .table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.body-reflow table, .body-reflow .data-table { display: table; min-width: 45rem; font-size: 1rem; }
.body-reflow table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.body-reflow table tbody { display: table-row-group; }
.body-reflow table tr { display: table-row; }
.body-reflow table th, .body-reflow table td {
  display: table-cell;
  position: static;
  width: auto;
  margin: 0;
  padding: .875rem 1rem;
  white-space: normal;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.body-reflow .data-table td::before { content: none; }
.body-reflow .data-table tbody tr { overflow: visible; }
/* A focused reference must fit inside the local viewport, even with long IDs. */
.body-reflow table a { display: inline-block; max-width: min(100%, 12rem, calc(100vw - 4rem)); }
.body-reflow .data-table thead th:first-child,
.body-reflow .data-table tbody th:first-child {
  position: static;
  margin: 0;
  width: auto;
  padding: .875rem 1rem;
  white-space: normal;
}
.body-reflow table { table-layout: fixed; }
.body-reflow .report-trends { min-width: 80rem; }
.body-reflow .data-table .numeric { white-space: normal; }
.body-reflow table meter { max-width: 100%; }
