/* Method Budget: printable reports (js/report.js).
   Loaded for all media. Every report rule is scoped to .method-report, so nothing
   here touches the app. A report is a column of Letter-sized page boxes
   (.rpt-page), each exactly one sheet of paper with its own header and
   footer bands. On screen, #print-root is always hidden; in print, when
   <html> has the "printing" class, only #print-root is shown. Sizes inside
   the report are in em, so the report's font size (small, medium, large)
   scales everything together. */

#print-root {
  display: none;
}

@media print {
  @page {
    margin: 0;
  }

  html.printing,
  html.printing body {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #000 !important;
    color-scheme: light;
  }

  html.printing body > *:not(#print-root) {
    display: none !important;
  }

  html.printing #print-root {
    display: block !important;
  }

  /* Each sheet is exactly one page of paper. Its width must be the page's
     own, not clipped: WebKit lays a printed document out at least 1.25 times
     as wide as the paper (in CSS pixels) and scales it down to fit, so a
     document exactly 96 px to the inch wide prints at exactly 100%. */
  html.printing #print-root .rpt-sheet {
    width: 816px;
    height: 1056px;
    overflow: visible;
    break-after: page;
    page-break-after: always;
  }

  html.printing #print-root .landscape .rpt-sheet {
    width: 1056px;
    height: 816px;
  }

  html.printing #print-root .rpt-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/* ------------------------------------------------------------------------- */
/* The report: black on white, system font, tabular figures.                 */

.method-report {
  color-scheme: light;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 8.5pt;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  text-align: left;
}

.method-report.fs-small { font-size: 7.5pt; }
.method-report.fs-medium { font-size: 8.5pt; }
.method-report.fs-large { font-size: 10pt; }

.method-report *,
.method-report *::before,
.method-report *::after {
  box-sizing: border-box;
}

/* Pages: Letter at 96 px to the inch. js/report.js uses the same numbers. */

.method-report .rpt-sheet {
  overflow: hidden;
}

.method-report .rpt-page {
  display: flex;
  flex-direction: column;
  width: 816px;
  height: 1056px;
  padding: 40px 48px 36px;
  overflow: hidden;
  background: #fff;
  transform-origin: 0 0;
}

.method-report.landscape .rpt-page {
  width: 1056px;
  height: 816px;
}

.method-report .rpt-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Rows are measured here before they are dealt onto pages. */
.method-report.rpt-measure {
  position: absolute;
  top: 0;
  left: -30000px;
  width: 720px;
  visibility: hidden;
  pointer-events: none;
}

.method-report.rpt-measure.landscape {
  width: 960px;
}

/* Header and footer bands: three slots across the page, one line each. */

.method-report .rpt-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12pt;
  align-items: baseline;
  flex: 0 0 auto;
  font-size: 0.88em;
  line-height: 1.3;
  color: #333;
}

.method-report .rpt-band.rpt-head {
  margin-bottom: 10pt;
  padding-bottom: 3pt;
  border-bottom: 0.75pt solid #000;
}

.method-report .rpt-band.rpt-foot {
  margin-top: 8pt;
}

.method-report .rpt-slot {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-report .rpt-slot.center {
  text-align: center;
  max-width: 60ch;
}

.method-report .rpt-slot.right {
  text-align: right;
}

.method-report .rpt-slot.strong {
  font-weight: 700;
  color: #000;
}

/* Title block, on the first page */

.method-report .rpt-intro {
  padding-bottom: 14pt;
}

.method-report .rpt-kicker {
  font-size: 0.94em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
}

.method-report .rpt-title {
  margin: 2pt 0 8pt;
  font-size: 2.35em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.method-report .rpt-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4pt 18pt;
  margin: 0;
}

.method-report.landscape .rpt-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-report .rpt-fact {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.method-report .rpt-fact dt {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.method-report .rpt-fact dd {
  margin: 0;
  font-size: 1.06em;
  overflow-wrap: anywhere;
}

.method-report .rpt-warning {
  margin-top: 10pt;
  padding: 6pt 8pt;
  border: 1.5pt solid #000;
  background: #eee;
  overflow-wrap: anywhere;
}

/* Tables */

.method-report .rpt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.method-report .rpt-table th,
.method-report .rpt-table td {
  padding: 1.6pt 4pt;
  vertical-align: baseline;
  overflow-wrap: anywhere;
}

.method-report .rpt-table .num {
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
}

.method-report .rpt-table .muted {
  color: #666;
  font-style: italic;
}

.method-report .rpt-cols th {
  padding-top: 0;
  padding-bottom: 3pt;
  border-bottom: 0.75pt solid #000;
  font-size: 0.82em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-report .rpt-cols th.num {
  text-align: right;
}

.method-report .rpt-row.empty td {
  padding-top: 6pt;
  color: #666;
  font-style: italic;
}

.method-report .cat-code,
.method-report .acct-code {
  display: inline-block;
  margin-right: 8pt;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------------- */
/* Topsheet and account level                                                */

/* In em, so the columns grow with the type size and big figures always fit. */
.method-report .rpt-ts col.c-code,
.method-report .rpt-al col.c-code { width: 7em; }
.method-report .rpt-ts col.c-name,
.method-report .rpt-al col.c-name { width: auto; }
.method-report .rpt-ts col.c-money,
.method-report .rpt-al col.c-money { width: 12em; }
.method-report .rpt-ts.has-baseline col.c-money,
.method-report .rpt-al.has-baseline col.c-money { width: 11em; }
.method-report .rpt-ts.has-baseline col.c-code,
.method-report .rpt-al.has-baseline col.c-code { width: 5.5em; }
/* The topsheet's optional page column (where each category's detail starts). */
.method-report .rpt-ts col.c-page { width: 4.5em; }
/* With the page or fringes column as well, the figures columns give a little. */
.method-report .rpt-ts.has-extra col.c-money { width: 10em; }
.method-report .rpt-ts.has-extra col.c-code { width: 5em; }

.method-report .rpt-ts td.muted-fig {
  color: #333;
}

.method-report .rpt-ts td,
.method-report .rpt-al td {
  padding-top: 2.4pt;
  padding-bottom: 2.4pt;
  font-size: 1.06em;
}

.method-report .rpt-ts tr.cat td,
.method-report .rpt-al tr.rpt-al-acct td {
  border-bottom: 0.5pt solid #d6d6d6;
}

.method-report .rpt-ts td.code,
.method-report .rpt-al td.code {
  color: #333;
}

.method-report .rpt-ts tr.posted td {
  font-style: italic;
  color: #333;
}

.method-report .rpt-ts tr.level td {
  padding-top: 3.5pt;
  padding-bottom: 6pt;
  border-top: 0.75pt solid #000;
  font-weight: 700;
}

.method-report td.base,
.method-report td.var {
  color: #333;
}

.method-report .rpt-ts tr.sum.first td {
  padding-top: 10pt;
  border-top: 1.5pt solid #000;
}

.method-report .rpt-ts tr.sum.strong td {
  font-weight: 600;
}

.method-report .rpt-ts tr.sum.charge td.name,
.method-report .rpt-ts tr.sum.credit td.name {
  padding-left: 12pt;
}

.method-report .rpt-ts tr.sum.grand td {
  padding-top: 4pt;
  padding-bottom: 4pt;
  border-top: 0.75pt solid #000;
  border-bottom: 2.25pt double #000;
  font-size: 1.18em;
  font-weight: 700;
}

.method-report .rpt-ts tr.sum.grand + tr.sum.credit td {
  padding-top: 6pt;
}

.method-report .rpt-ts tr.sum.display td {
  color: #333;
}

.method-report .rpt-ts tr.sum.display.first td {
  padding-top: 8pt;
  border-top: 0;
}

.method-report .rpt-al tr.rpt-al-cat td.cat {
  padding-top: 10pt;
  padding-bottom: 3pt;
  border-bottom: 0.75pt solid #000;
  font-size: 1.18em;
  font-weight: 700;
}

.method-report .rpt-al tr.rpt-al-cat:first-child td.cat {
  padding-top: 2pt;
}

.method-report .rpt-al tr.rpt-al-fa td {
  font-weight: 600;
}

.method-report .rpt-al tr.rpt-al-total td {
  padding-bottom: 6pt;
  border-top: 0.75pt solid #000;
  font-weight: 700;
}

/* ------------------------------------------------------------------------- */
/* Detail (column widths come from report.js: report-detail-cols)            */

.method-report .rpt-dt td {
  border-bottom: 0;
}

.method-report .rpt-cat-head td.cat {
  padding: 2pt 4pt 6pt;
  font-size: 1.41em;
  font-weight: 700;
}

.method-report .rpt-acct-head td.acct {
  padding-top: 7pt;
  padding-bottom: 2.5pt;
  border-bottom: 0.5pt solid #000;
  font-size: 1.06em;
  font-weight: 700;
}

.method-report .rpt-row td {
  border-bottom: 0.5pt solid #e2e2e2;
}

.method-report .rpt-row td.no {
  color: #777;
  font-size: 0.88em;
}

.method-report .rpt-row td.formula {
  font-size: 0.88em;
  font-style: italic;
  white-space: normal;
  overflow-wrap: break-word;
}

.method-report .rpt-row .unit,
.method-report .rpt-row td.unit-col,
.method-report .rpt-row td.cur {
  color: #444;
}

.method-report .rpt-row td.fr,
.method-report .rpt-dt .rpt-row td.txt {
  font-size: 0.82em;
  color: #444;
}

.method-report .rpt-row td.total {
  font-weight: 500;
}

.method-report .rpt-row .local {
  display: block;
  font-size: 0.76em;
  font-weight: 400;
  color: #555;
}

.method-report .rpt-row.subtotal td {
  font-style: italic;
  font-weight: 600;
  border-top: 0.5pt solid #000;
  border-bottom: 0.5pt solid #bbb;
}

.method-report .rpt-row.subtotal td.no {
  font-weight: 400;
}

.method-report .rpt-row.adjustment td {
  font-style: italic;
  background: #f2f2f2;
}

.method-report .rpt-row.adjustment td.no {
  font-style: normal;
}

/* The amount an adjustment is a percentage of, in the rate column. */
.method-report .rpt-row.adjustment td.adj-base {
  font-size: 0.88em;
}

/* Lines not counted in the total */

.method-report .rpt-row.excluded td {
  color: #8a8a8a;
}

.method-report .rpt-row.excluded .desc-text {
  text-decoration: line-through;
  text-decoration-thickness: 0.5pt;
}

.method-report .rpt-row .flag {
  display: inline-block;
  margin-left: 6pt;
  padding: 0 3pt;
  border: 0.5pt solid #8a8a8a;
  border-radius: 2pt;
  font-size: 0.76em;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.method-report .rpt-row .flag.issue {
  border-color: #000;
  color: #000;
  font-weight: 600;
}

.method-report .rpt-row td.issue {
  outline: 1pt dashed #000;
  outline-offset: -1.5pt;
}

.method-report .rpt-row td.cur,
.method-report .rpt-row td.unit-col {
  white-space: nowrap;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
}

/* Notes: a marker on the line, the note under the account's totals. */

.method-report sup.rpt-fn {
  margin-left: 2pt;
  font-size: 0.72em;
  font-weight: 700;
  font-style: normal;
  line-height: 0;
}

.method-report .rpt-fnote td {
  padding-top: 0.8pt;
  padding-bottom: 0.8pt;
  font-size: 0.88em;
  color: #222;
}

.method-report .rpt-fnote:first-of-type td,
.method-report .rpt-sum + .rpt-fnote td,
.method-report .rpt-note-row + .rpt-fnote td {
  padding-top: 3pt;
}

.method-report .rpt-fnote .rpt-fn {
  display: inline-block;
  min-width: 1.2em;
  margin-right: 0.5em;
  font-weight: 700;
}

.method-report .rpt-fnote .fn-body {
  font-style: italic;
  white-space: pre-line;
}

/* Account and category totals */

.method-report .rpt-sum td {
  padding-top: 1.6pt;
  padding-bottom: 1.6pt;
}

.method-report .rpt-sum td.label {
  text-align: right;
  padding-right: 8pt;
}

.method-report .rpt-sum .note {
  font-size: 0.82em;
  color: #555;
}

.method-report .rpt-sum.sub td {
  color: #222;
}

.method-report .rpt-sum.first td.total,
.method-report .rpt-sum.first td.label {
  padding-top: 3pt;
}

.method-report .rpt-sum.acct-total td.label,
.method-report .rpt-sum.acct-total td.total {
  font-weight: 700;
}

.method-report .rpt-sum.acct-total td.total {
  border-top: 0.75pt solid #000;
}

.method-report .rpt-note-row td.note {
  padding-top: 1pt;
  font-size: 0.82em;
  font-style: italic;
  color: #555;
}

.method-report .rpt-sum.fringe-acct.first td,
.method-report .rpt-sum.cat-total.first td {
  padding-top: 10pt;
}

.method-report .rpt-sum.fringe-acct td.label {
  font-weight: 600;
}

.method-report .rpt-sum.cat-total td {
  font-weight: 700;
}

.method-report .rpt-sum.cat-total td.label {
  font-size: 1.12em;
}

.method-report .rpt-sum.cat-total td.num {
  font-size: 1.04em;
}

.method-report .rpt-sum.cat-total td.total {
  border-top: 0.75pt solid #000;
  border-bottom: 2.25pt double #000;
}

/* Row styles and separators (js/report.js rowStyle). */

.method-report .rpt-row.row-bold td {
  font-weight: 700;
}

.method-report .rpt-row.row-italic td {
  font-style: italic;
}

.method-report .rpt-row.indent-1 td.desc { padding-left: 14pt; }
.method-report .rpt-row.indent-2 td.desc { padding-left: 24pt; }
.method-report .rpt-row.indent-3 td.desc { padding-left: 34pt; }
.method-report .rpt-row.indent-4 td.desc { padding-left: 44pt; }

.method-report .rpt-row.separator td.rule {
  padding-top: 0;
  padding-bottom: 0;
  height: 7pt;
  background-image: linear-gradient(#000, #000);
  background-size: 100% 0.5pt;
  background-position: center;
  background-repeat: no-repeat;
}

/* One line per account (collapse details). */

.method-report .rpt-dt.collapsed tr.rpt-cat-head:not(:first-child) td.cat {
  padding-top: 14pt;
}

.method-report .rpt-dt.collapsed .rpt-row.acct-line td {
  padding-top: 2.4pt;
  padding-bottom: 2.4pt;
  font-size: 1.06em;
}

/* ------------------------------------------------------------------------- */
/* Setup tables: fringes, globals, groups, notes, budget information         */

.method-report .rpt-st col.c-name2 { width: 18%; }
.method-report .rpt-st col.c-desc { width: auto; }
.method-report .rpt-st col.c-short { width: 8%; }
.method-report .rpt-st col.c-num { width: 11%; }
.method-report .rpt-st col.c-mid { width: 14%; }
.method-report .rpt-st col.c-money { width: 11em; }
.method-report .rpt-st col.c-mark { width: 5%; }
.method-report .rpt-st col.c-wide { width: auto; }
.method-report .rpt-st col.c-label { width: 26%; }
.method-report .rpt-notes col.c-mid { width: 20%; }
.method-report .rpt-st col.c-code2 { width: 7em; }
.method-report .rpt-locations col.c-name2 { width: 16%; }

/* Chart of accounts: categories bold, their accounts indented under them. */

.method-report .rpt-chart tr.rpt-chart-cat td {
  padding-top: 6pt;
  border-bottom: 0.75pt solid #000;
  font-weight: 700;
}

.method-report .rpt-chart tr.rpt-chart-acct td.txt {
  padding-left: 14pt;
}

.method-report .rpt-chart tr.rpt-chart-level td {
  padding-top: 6pt;
  font-style: italic;
  font-weight: 600;
  border-bottom: 1.5pt solid #000;
}

.method-report .rpt-st td {
  padding-top: 2.4pt;
  padding-bottom: 2.4pt;
}

.method-report .rpt-st td.name {
  font-weight: 600;
}

.method-report .rpt-st tr.rpt-st-total td {
  padding-top: 4pt;
  border-top: 0.75pt solid #000;
  font-weight: 700;
}

.method-report .rpt-st tr.rpt-st-total td.name {
  text-align: right;
}

.method-report .rpt-notes td.mark {
  font-weight: 700;
}

/* Cost report (js/report.js costReportSection): six or seven figures
   columns, in em so big figures fit at every type size; landscape gives the
   description the most room. Over-budget variances print bold. */

.method-report .rpt-cost col.c-code2 { width: 5em; }
.method-report .rpt-cost col.c-cm { width: 7.2em; }
.method-report .rpt-cost col.c-pct { width: 5.6em; }

.method-report .rpt-cost tr.rpt-cost-cat td {
  padding-top: 7pt;
  border-bottom: 0.75pt solid #000;
  font-weight: 700;
}

.method-report .rpt-cost tr.rpt-cost-sum.first td {
  padding-top: 6pt;
  border-top: 1.5pt solid #000;
}

.method-report .rpt-cost tr.rpt-cost-grand td {
  border-top: 1.5pt solid #000;
}

.method-report .rpt-cost td.over {
  font-weight: 700;
}

.method-report .rpt-notes td.note-text {
  white-space: pre-line;
}

.method-report .rpt-notes tr.more td {
  border-top: 0;
  padding-top: 0;
}

.method-report .rpt-info tr.rpt-info-head td {
  padding-top: 10pt;
  padding-bottom: 3pt;
  border-bottom: 0.75pt solid #000;
  font-size: 0.82em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-report .rpt-info tr.rpt-info-head:first-child td {
  padding-top: 0;
}

.method-report .rpt-info td.label {
  color: #444;
}

/* Tables from other screens (printHtml): their own colgroup, our type. */

.method-report .rpt-custom td,
.method-report .rpt-custom th {
  border-bottom: 0.5pt solid #e2e2e2;
}

/* ------------------------------------------------------------------------- */
/* Shading and line colors (layout options)                                  */

.method-report.shaded .rpt-row.alt td,
.method-report.shaded .rpt-st .rpt-row:nth-child(even) td,
.method-report.shaded .rpt-al tr.rpt-al-acct:nth-child(even) td,
.method-report.shaded .rpt-ts tr.cat:nth-child(even) td {
  background: #f1f1f1;
}

.method-report.shaded .rpt-sum.acct-total td,
.method-report.shaded .rpt-sum.cat-total td,
.method-report.shaded .rpt-ts tr.level td,
.method-report.shaded .rpt-ts tr.sum.grand td,
.method-report.shaded .rpt-al tr.rpt-al-total td,
.method-report.shaded .rpt-st tr.rpt-st-total td {
  background: #dedede;
}

/* Vertical rules between columns (layout option). Cells spanning several
   columns get one rule at their left like any other. */

.method-report.rules .rpt-table th + th,
.method-report.rules .rpt-table td + td {
  border-left: 0.5pt solid #b5b5b5;
}

/* ------------------------------------------------------------------------- */
/* On screen: the setup dialog's preview (js/reportsetup.js) and the harness */

@media screen {
  .rpt-preview .method-report.rpt-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .rpt-preview .method-report .rpt-sheet {
    flex: 0 0 auto;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.06);
  }
}

/* Dated notes: the notes list shows when each was written and by whom
   above its text. */
.method-report .rpt-notes .note-meta {
  font-size: 0.85em;
  color: #555;
}
