/* The reports pages in the pass-3 look (PC 1, Oct 16 2026): the list behind "Reports" (reports.html) and one
   report (report.html), with the Simple / Breakdown switch and the cleanup report.
   Loads after portal.css and client-pass3.css. Layout and sizes only: every colour is a name from those two
   files (the four looks fill them in), every big heading and figure uses the serif of the look.
   Text: 18px and more up to 699 wide, 16px and more above. Everything you press: 48px tall and more.
   Pictures it follows: chatgpt-pass5\M2-client-report-phone.png (Simple),
   chatgpt-pass5-pc1\R2-monthly-breakdown-top-phone.png and -bottom (Breakdown), R2-cleanup-report-phone.png. */


/* LOOK A WORDS: the aurora look's sans for body words now lives in client-pass3.css for every pass-3 page
   (PC 2 shared step, Oct 17); this page no longer carries its own copy. */


/* ==========================================================================
   BOTH PAGES
   ========================================================================== */

/* "Back to home" (and the owner's way back) at the top of the page */
.rp-backs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.rp-backs > .btn {
  width: auto;
}

/* "Customize" (contract section 8): at the right end of the top row (PC 2 fix step, Oct 17) */
.rp-backs > .rp-customize {
  margin-left: auto;
}

/* LEFT EDGE (review, Oct 17): the soft grounds behind words on the art (Back to home, the kicker, "Every
   change is compared with July.", the cleanup period) reach out to the left by their own padding, so the
   first letter of every line of the header starts on the same edge as the title. */
.rp-backs > .p3-back {
  margin-inline-start: -12px;
}

/* waiting for the server: a small turning ring and one plain line */
.rs-wait {
  justify-content: center;
  min-height: 140px;
}

.rs-wait-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rs-spin {
  flex: none;
  width: 28px;
  height: 28px;
  border: 3px solid var(--p3-gold);
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-turn .9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rs-spin {
    animation: none;
  }
}

.rs-slow {
  color: var(--soft);
}

/* could not load, no report yet, an address that names a report this client cannot see */
.rs-empty .empty {
  border: 0;
  padding: 28px 12px;
}

.rs-empty .actions {
  justify-content: center;
  margin-top: 8px;
}

/* the gold line icons of the Breakdown and the cleanup report (report-pass3.js draws them) */
.rp-ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   ONE REPORT (report.html)
   ========================================================================== */

.rp-report {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.rp-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* the kicker ("Monthly report") sits on the art: its own soft ground */
.rp-head > .p3-kicker {
  width: fit-content;
  margin-inline-start: -10px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--p3-chip-ground);
}

/* the gold "Checked" pill is a button: one press says what it means */
.rp-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 5px 16px 5px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--p3-chip-ground);
  color: var(--ink);
  font: var(--w-ui) var(--text-quiet)/1.2 var(--font-ui);
  cursor: pointer;
}

.rp-check-what {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* on a phone "What this means" becomes a small info sign beside the pill, so the pill fits on the title
   line as in the approved picture (the button's name still says "Checked. What this means") */
.rp-check-i {
  display: none;
}

.rp-check:hover {
  border-color: var(--p3-gold);
}

.rp-check:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.rp-switch-mount {
  display: block;
}

.rp-view,
.rp-breakdown,
#cleanup-body,
.rp-cl-cols,
.rp-cl-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---- THE CLEANUP, LEFT AND RIGHT (Oct 18 2026, live check as Dana: it was one middle column on a computer).
   report-pass3.js drawCleanup puts the photo and the figures in .rp-cl-left, what we fixed and the months in
   .rp-cl-right. A phone stacks them; from 1024 wide they stand side by side and the photo stretches so both
   columns end on the same line. reports.js puts .rp-wide on the page for it, like the monthly dashboard. ---- */
@media (min-width: 700px) {
  .rp-cleanup .rp-tiles {
    grid-template-columns: repeat(var(--rp-n, 3), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rp-cl-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: var(--gap);
  }

  .rp-cl-left > .rp-photo {
    flex: 1 1 auto;
    width: 100%;
    min-height: 190px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .rp-cl-right > .rp-bcard:last-child {
    flex: 1 1 auto;
  }

  .rp-cl-right .rp-months {
    grid-template-columns: repeat(var(--rp-m, 9), minmax(0, 1fr));
  }
}

.rp-view[hidden],
.rp-breakdown[hidden] {
  display: none;
}

/* the three figures: label above, one under the other on a phone, three across from 900 wide */
.rp-sum {
  gap: 18px;
}

.rp-figs .p3-fig-l {
  font-size: 1.25rem;
}

.rp-figs .is-short .p3-fig-n,
.rp-figs .p3-fig.kept.is-short .p3-fig-n {
  color: var(--ink);
}

.rep-short {
  margin: 0;
}

.rp-lists {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.rp-list .p3-row-amt {
  font: var(--w-fig, 660) 1.375rem/1.2 var(--serif);
}

/* where you stand: the bank figure large, what is still owed under it */
.rp-bank {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}

.rp-bank .p3-fig-n {
  font-size: 2.375rem;
}

.rp-bank-l {
  color: var(--soft);
}

.rp-stand .p3-row-amt {
  font-weight: var(--w-strong);
}

/* the buttons under the report sit on a quiet panel (no frame line), so the words under the teal button
   read on any art and in every look (cream paper in Engraved cream) */
.rp-actions {
  gap: 14px;
}

.rp-pdf {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-pdf[hidden],
.rp-dl-row[hidden] {
  display: none;
}

.rp-pdf .btn {
  width: 100%;
}

.rp-pdf-note {
  color: var(--ink);
  font-size: var(--text-quiet);
  text-align: center;
}

.rp-pair.is-one {
  grid-template-columns: minmax(0, 1fr);
}

.rp-dl-row,
.rp-all {
  align-self: center;
}

.rp-dl-row {
  display: flex;
  justify-content: center;
}

.rp-dl,
.rp-all {
  color: var(--ink);
}

.rp-dl .icon,
.rp-all .icon {
  color: var(--p3-gold-ink);
}

.rep-dl-soon {
  margin: 0;
}

.rep-dl-words {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rep-dl-words .actions {
  margin: 0;
}


/* ---- BREAKDOWN (report-pass3.js draws it) ---- */

/* "Every change is compared with July." sits on the art: its own soft ground */
.rp-bintro {
  width: fit-content;
  max-width: calc(100% + 14px);
  margin-inline-start: -14px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--p3-chip-ground);
  color: var(--ink);
  font-size: var(--text-quiet);
}

.rp-bcard {
  gap: 12px;
}

/* the card head: a gold line icon, the serif heading, the total on the right */
.rp-bhead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.rp-bhead-ico {
  width: 38px;
  height: 38px;
  color: var(--p3-gold-ink);
}

.rp-bhead-title {
  font-size: 2rem;
}

.rp-bhead-total {
  color: var(--ink);
  font: var(--w-fig, 660) 2.375rem/1.1 var(--serif);
  white-space: nowrap;
}

.rp-gold,
.rp-bhead-total.rp-gold {
  color: var(--p3-gold-ink);
}

.rp-brows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-brows-more {
  border-top: 1px solid var(--rule);
}

/* one row: icon | name | amount, then the thin bar under the name and the amount (so every bar of the
   list has the same track), then the change pill (and the taxes line) */
.rp-brow {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  grid-template-areas:
    "ic name amt"
    "ic chg  chg";
  align-items: center;
  gap: 8px 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}

.rp-brows > .rp-brow:first-child {
  border-top: 0;
}

/* on a phone the pill gets its own line under the amount (it spans both columns, so a long pill such as
   "down $1,400" never squeezes the name), the bar runs under the name and the amount */
.rp-brow.has-bar {
  grid-template-areas:
    "ic name amt"
    "ic bar  bar"
    "ic chg  chg";
}

/* the taxes row: its line ("Payroll taxes $590, sales tax $412") gets the whole width under the pill */
.rp-brow.has-bar.is-tax {
  grid-template-areas:
    "ic name amt"
    "ic bar  bar"
    "ic chg  chg"
    "ic det  det";
}

.rp-brow-ico {
  grid-area: ic;
  align-self: start;
  padding-top: 2px;
  color: var(--p3-gold-ink);
}

.rp-brow-ico .rp-ico {
  width: 32px;
  height: 32px;
}

.rp-brow-name {
  grid-area: name;
  min-width: 0;
}

.rp-brow-amt {
  grid-area: amt;
  justify-self: end;
  color: var(--ink);
  font: var(--w-fig, 660) 1.5rem/1.2 var(--serif);
  white-space: nowrap;
}

.rp-brow-bar {
  grid-area: bar;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--p3-bar-track);
}

.rp-brow-bar > span {
  display: block;
  width: var(--p3-part, 0%);
  min-width: 6px;
  height: 100%;
  border-radius: 999px;
  background: var(--p3-bar-out);
}

.rp-brow.is-tax .rp-brow-bar > span {
  background: var(--p3-bar-kept);
}

.rp-brow-chg {
  grid-area: chg;
  justify-self: end;
}

.rp-brow-det {
  grid-area: det;
  color: var(--soft);
  font-size: var(--text-quiet);
}

/* the change pill: neutral, a cream outline with a small arrow. Never green or red (a cost that went down
   is good news). */
.rp-chg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 2px 13px;
  border: 1.5px solid var(--soft);
  border-radius: 999px;
  background: var(--p3-line-bg);
  color: var(--ink);
  font: 600 1.125rem/1.15 var(--font-ui);
  white-space: nowrap;
}

.rp-chg-arrow {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
  color: var(--p3-gold-ink);
}

/* "See all 7": opens the rest of the list in place */
.rp-seeall {
  align-self: flex-start;
  gap: 8px;
  color: var(--ink);
}

.rp-seeall-ico {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  color: var(--p3-gold-ink);
}

.rp-seeall.is-open .rp-seeall-ico {
  transform: rotate(180deg);
}

/* the plain sentence inside the Kept card */
.rp-bquote {
  margin: 0;
}

/* the books check list: round gold checks; an open item shows an empty ring AND the words "Not yet" */
/* "Almost up to date: 1 thing left" wraps evenly, never with "left" alone */
.rp-books .p3-h2 {
  text-wrap: balance;
}

.rp-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-check-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.rp-check-ico {
  width: 32px;
  height: 32px;
  color: var(--p3-gold-ink);
}

.rp-check-row.is-open .rp-check-ico {
  color: var(--soft);
}

.rp-check-not {
  padding: 2px 12px;
  border: 1.5px dashed var(--soft);
  border-radius: 999px;
  color: var(--ink);
  font: 600 1.125rem/1.3 var(--font-ui);
  white-space: nowrap;
}

/* "Ready for your tax preparer": the ring drawn from the data (8 of 12), the words beside it */
.rp-ready {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rp-ring {
  flex: none;
  width: 80px;
  height: 80px;
}

.rp-ring-track {
  fill: none;
  stroke: var(--p3-bar-track);
  stroke-width: 6;
}

.rp-ring-fill {
  fill: none;
  stroke: var(--p3-gold);
  stroke-width: 6;
  stroke-linecap: round;
}

.rp-ready-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.rp-ready-title {
  color: var(--ink);
  font: var(--w-head) 1.5rem/1.2 var(--serif);
}

.rp-ready-sub {
  color: var(--soft);
}

/* Payroll and Taxes paid */
.rp-lines {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 7px 0;
}

.rp-line b {
  font: var(--w-fig, 660) 1.5rem/1.2 var(--serif);
}

.rp-pay-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.rp-pay-total-l {
  color: var(--ink);
  font: var(--w-head) 2rem/1.15 var(--serif);
}

.rp-pay-total b {
  font: var(--w-fig, 660) 2.375rem/1.1 var(--serif);
  white-space: nowrap;
}

.rp-tax-line {
  color: var(--ink);
  font: var(--w-head) 1.875rem/1.25 var(--serif);
}

.rp-tax-line b {
  font-weight: var(--w-fig, 660);
  white-space: nowrap;
}

.rp-quietline {
  color: var(--soft);
  font-size: var(--text-quiet);
}


/* ---- THE CLEANUP REPORT (a cleanup-only client) ---- */

/* "January to September 2026" sits on the art: its own soft ground */
.rp-period {
  width: fit-content;
  max-width: calc(100% + 12px);
  margin-inline-start: -12px;
  padding: 2px 12px;
  border-radius: 10px;
  background: var(--p3-chip-ground);
  color: var(--ink);
  font: var(--w-head) 1.5rem/1.25 var(--serif);
}

.rp-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* the numbers of a row of tiles share one line (each tile starts at its top), the words wrap evenly
   ("months / caught up", never "up" alone) */
.rp-tile {
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 18px 10px;
  text-align: center;
}

.rp-tile-n {
  color: var(--p3-gold-ink);
  font: var(--w-fig, 660) 2.875rem/1.05 var(--serif);
}

.rp-tile-l {
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
}

.rp-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
  gap: 14px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rp-month-ico {
  width: 32px;
  height: 32px;
  color: var(--p3-gold-ink);
}

.rp-month.is-open .rp-month-ico {
  color: var(--soft);
}

.rp-month-l {
  color: var(--ink);
  font: 500 1.25rem/1.2 var(--serif);
}

.rp-cleanup .rp-actions > .btn {
  width: 100%;
}

/* "Download cleanup report (PDF)" on one line on a phone (review, R2-cleanup): a little less room around
   the words, and the words at 18px, the phone floor */
@media (max-width: 699px) {
  .rp-cleanup #cl-pdf {
    gap: 8px;
    padding-inline: 12px;
    font-size: var(--text-quiet);
  }
}

/* ---- the notes ---- */
.rep-thread,
.rep-note {
  gap: 14px;
}

.rep-note-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.rep-note-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* the lines typed in a note stay lines; a very long word breaks instead of leaving the box */
.rep-thread .talk-q,
.rep-thread .talk-a {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.rep-note-final {
  margin: 0;
}

/* the three figures again, at the top of the note box */
.rep-note-about {
  color: var(--soft);
}

/* the pop-up that says what "Checked" means: a little wider than a plain pop-up */
#pop-checked .popup-box {
  width: min(100%, 640px);
}


/* ==========================================================================
   THE LIST (reports.html)
   ========================================================================== */

.rl-hello-2 {
  display: block;
  margin-top: 6px;
  font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--font-body);
  letter-spacing: 0;
}

.rl-new {
  gap: 16px;
}

.rl-new-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl-new-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.rl-new-fig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}

.rl-new-fig .p3-fig-n {
  color: var(--p3-gold-ink);
}

.rl-new-fig.is-short .p3-fig-n {
  color: var(--ink);
}

.rl-new-open .icon.small {
  width: 22px;
  height: 22px;
}

/* our answer to a note on an older report: one line and one button, inside the newest report's card */
.rl-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.rl-answer[hidden] {
  display: none;
}

.rl-answer > .icon {
  width: 26px;
  height: 26px;
  color: var(--p3-gold-ink);
}

.rl-answer > p {
  flex: 1 1 14rem;
}

.rl-next .icon {
  flex: none;
}

.rl-lists {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.rl-lists:empty {
  display: none;
}

.rl-list {
  gap: 10px;
}

.rl-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-rows > li + li,
.rl-older {
  border-top: 1px solid var(--rule);
}

.rl-row.p3-row {
  align-items: center;
  border-top: 0;
}

.rl-when {
  font-weight: var(--w-strong);
}

.rl-row .p3-row-amt {
  font: var(--w-fig, 660) 1.375rem/1.2 var(--serif);
}

.rl-kept-l .icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  vertical-align: -3px;
  color: var(--p3-gold-ink);
}

.rl-go {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--p3-gold-ink);
}

/* a period still being worked on: the words go under the dates when they do not fit beside them */
.rl-li.is-waiting .p3-row {
  flex-wrap: wrap;
}

.rl-wait {
  margin-left: auto;
  color: var(--soft);
  white-space: nowrap;
}

.rl-more {
  margin-top: 4px;
}

/* our invoices: a short month in front of each row */
.rl-inv {
  gap: 10px;
}

.rl-invs {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-invs-more {
  border-top: 1px solid var(--rule);
}

.rp-inv {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.rl-invs > .rp-inv:first-child {
  border-top: 0;
}

.rp-inv:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.rp-inv-mon {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 2px 4px;
  border: 1.5px solid var(--p3-gold);
  border-radius: 10px;
  color: var(--p3-gold-ink);
  font: 600 1.25rem/1.1 var(--serif);
  text-align: center;
}

.rp-inv-what {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rp-inv-name {
  font-weight: var(--w-strong);
}

.rp-inv-when,
.rp-inv-num {
  color: var(--soft);
  font-size: var(--text-quiet);
}

.rp-inv-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.rp-inv-amt {
  font: var(--w-fig, 660) 1.375rem/1.2 var(--serif);
  white-space: nowrap;
}

/* an invoice not paid in time: a cream outline with a small alert sign (never the gold of Checked and
   Done), and one way to ask about it */
.rp-inv-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 2px 12px 2px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--p3-line-bg);
  color: var(--ink);
  font: 600 1.125rem/1.15 var(--font-ui);
  white-space: nowrap;
}

.rp-inv-flag-ico {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  color: var(--warn, var(--ink));
}

.rp-inv-ask {
  grid-column: 2 / -1;
  justify-self: start;
  min-height: 48px;
}


/* ==========================================================================
   SIZES
   ========================================================================== */

/* a computer: the Breakdown rows as in the picture (bar under the name, the pill under the amount),
   with a fixed right column so every bar of a list has the same track */
@media (min-width: 700px) {
  .rp-brow {
    grid-template-columns: 2.5rem minmax(0, 1fr) 11rem;
    grid-template-areas:
      "ic name amt"
      "ic det  chg";
  }

  .rp-brow.has-bar,
  .rp-brow.has-bar.is-tax {
    grid-template-areas:
      "ic name amt"
      "ic bar  chg"
      "ic det  det";
  }

  .rp-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .rp-backs > .btn {
    width: 100%;
  }

  /* a narrower icon column, so a name such as "Supplies and materials" stays on one line beside its amount
     (R2: a Went out row is two lines, the name, then the bar with the pill) */
  .rp-brow {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .rp-bhead {
    gap: 10px;
  }

  .rp-bhead-ico {
    width: 32px;
    height: 32px;
  }

  .rp-bhead-title {
    font-size: 1.6875rem;
  }

  .rp-bhead-total {
    font-size: 1.875rem;
  }

  .rp-brow-amt,
  .rp-line b {
    font-size: 1.375rem;
  }

  .rp-pay-total-l {
    font-size: 1.6875rem;
  }

  .rp-pay-total b {
    font-size: 2rem;
  }

  .rp-tax-line {
    font-size: 1.5625rem;
  }

  .rp-ring {
    width: 68px;
    height: 68px;
  }

  .rp-ready-title {
    font-size: 1.3125rem;
  }

  .rp-tile-n {
    font-size: 2.5rem;
  }

  .rp-bank .p3-fig-n {
    font-size: 2rem;
  }

  /* THE FIRST SCREEN (review, Oct 17): on a phone the three figures, Kept too, show above the tab bar,
     as in the approved picture M2. The Checked pill sits on the title line with a small info sign, and the
     photo is a low band (3 to 1). */
  .rp-head .p3-title-row {
    column-gap: 12px;
  }

  .rp-check {
    gap: 6px;
    padding: 0 6px 0 0;
    border-radius: 999px;
  }

  .rp-check-what {
    display: none;
  }

  .rp-check-i {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: var(--p3-gold-ink);
  }

  .rp-photo {
    aspect-ratio: 3 / 1;
  }
}

/* a phone 360 wide and more: rows like "Your month" (PC 2 fix step, Oct 17: the bar beside the pill was only
   about 125px long at 390, too short to compare). The name and the amount on the first line; the change pill
   under the amount, on its own line, so a wide pill ("down $1,400") never squeezes a long name ("Equipment
   rental"); then the bar across the whole row, so every bar of the list has the same long track. */
@media (min-width: 360px) and (max-width: 699px) {
  .rp-brow.has-bar {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    grid-template-areas:
      "ic name amt"
      "ic chg  chg"
      "ic bar  bar";
    row-gap: 6px;
  }

  .rp-brow.has-bar.is-tax {
    grid-template-areas:
      "ic name amt"
      "ic chg  chg"
      "ic bar  bar"
      "ic det  det";
  }

  .rp-brow.has-bar .rp-brow-name {
    align-self: start;
    padding-top: 2px;
  }

  .rp-brow.has-bar .rp-brow-chg {
    display: flex;
    justify-content: flex-end;
  }

  .rp-brow.has-bar .rp-brow-bar {
    align-self: center;
    margin-top: 6px;
  }
}

/* a small phone: the invoice amount and its status go under the words */
@media (max-width: 479px) {
  .rp-inv {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .rp-inv-right {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .rp-ready {
    gap: 14px;
  }

  .rp-ready-words {
    padding-left: 14px;
  }
}


/* ==========================================================================
   ON PAPER
   One white Letter page for Simple and a week: the title, the three figures side by side, the lists, the
   bank figure, and the line that says what was checked. No art, no photo, no switch, no buttons, no notes.
   The Breakdown prints when it is the view on the screen, in two columns, on two pages at most.
   tools\pass3-pc1\report-fix-check.mjs prints each one and counts the pages.
   ========================================================================== */

@media print {
  .rp-backs,
  .rp-actions,
  .rp-check-what,
  .rp-bintro,
  .rp-seeall {
    display: none !important;
  }

  .rp-head > .p3-kicker,
  .rp-check,
  .rp-period {
    background: none !important;
  }

  .p3-title {
    font-size: 24pt !important;
    text-shadow: none !important;
  }

  .p3-title::before {
    display: none !important;
  }

  .rp-figs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .rp-figs .p3-fig-n {
    font-size: 22pt !important;
  }

  .rp-brows-more {
    display: flex !important;
  }

  .rp-brow-amt,
  .rp-bhead-total,
  .rp-gold,
  .rp-tile-n,
  .rp-inv-mon {
    color: var(--ink) !important;
  }

  .rp-chg {
    border-color: var(--line) !important;
    background: none !important;
  }

  .rp-brow-bar,
  .rp-ring {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .rep-paper {
    font-size: 11pt;
    line-height: 1.4;
  }

  /* PAPER SIZES (review, Oct 17): the screen spacing made every card start a new sheet. On paper the cards
     may break, the spacing is tight, the type is paper type: Simple and a week fit on one Letter page, the
     Breakdown on two. */
  .rp-report,
  .rp-view,
  .rp-breakdown:not([hidden]),
  .rp-lists,
  #cleanup-body {
    gap: 6pt !important;
  }

  .rp-report .p3-card,
  .rp-report .rp-bcard {
    break-inside: auto !important;
    margin: 0 !important;
    padding: 6pt 10pt !important;
  }

  .rp-photo,
  .rp-switch-mount,
  .rp-check-i {
    display: none !important;
  }

  .rp-head {
    gap: 2pt !important;
  }

  .rp-sum {
    gap: 6pt !important;
  }

  .rp-figs .p3-fig-l,
  .p3-split-labels,
  .p3-row,
  .rp-brow,
  .rp-check-row,
  .rp-line,
  .rp-quietline,
  .rp-brow-det,
  .rp-bank-l,
  .rp-tile-l,
  .rp-month-l,
  .rp-ready-sub,
  .p3-quote p {
    font-size: 10.5pt !important;
    line-height: 1.3 !important;
  }

  .p3-row,
  .rp-brow,
  .rp-check-row,
  .rp-line {
    min-height: 0 !important;
    padding-block: 2pt !important;
    break-inside: avoid;
  }

  .rp-brow {
    gap: 2pt 8pt !important;
  }

  .rp-brow-ico .rp-ico,
  .rp-check-ico,
  .rp-month-ico,
  .rp-bhead-ico {
    width: 14pt !important;
    height: 14pt !important;
  }

  .p3-h2,
  .rp-bhead-title,
  .rp-ready-title,
  .rp-pay-total-l {
    font-size: 13pt !important;
  }

  .rp-bhead {
    padding-bottom: 3pt !important;
  }

  .rp-bhead-total,
  .rp-pay-total b,
  .rp-tax-line,
  .rp-bank .p3-fig-n,
  .rp-tile-n {
    font-size: 15pt !important;
  }

  .rp-brow-amt,
  .rp-line b,
  .rp-list .p3-row-amt,
  .p3-row-amt {
    font-size: 11pt !important;
  }

  .rp-chg {
    min-height: 0 !important;
    padding: 0 6pt !important;
    font-size: 9.5pt !important;
  }

  .rp-chg-arrow {
    width: 9pt !important;
    height: 9pt !important;
  }

  .rp-brow-bar {
    height: 5pt !important;
  }

  .rp-ring {
    width: 36pt !important;
    height: 36pt !important;
  }

  .p3-split-bar {
    height: 10pt !important;
  }

  .p3-quote {
    padding: 4pt 8pt !important;
  }

  /* the Breakdown on paper: two columns, so it fits on two sheets */
  .rp-breakdown:not([hidden]) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .rp-breakdown > .rp-bintro {
    grid-column: 1 / -1;
  }

  .rp-stand {
    break-inside: avoid;
  }
}

/* "Customize" on a phone (PC 2 fix step, Oct 17): it stays beside "Back to home" in the same row, as tall as the
   back link (48px), so the three figures keep their place on the first screen */
@media (max-width: 699px) {
  .rp-backs > .rp-customize {
    width: auto;
    min-height: 48px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}


/* ==========================================================================
   THE DASHBOARD (his ask, Oct 18 2026; the picture he approved: portal\design\chatgpt-report-dashboard\
   R1-report-dashboard-desktop.png). reports.js dashboard() sets .rp-dash on #report and .rp-wide on #main.
   A phone: the same cards in one column (with the bank tile, the charts and Hide chart). A computer (1024 wide
   and up): two columns, everything on about one screen.
   ========================================================================== */

/* the bank tile: a fourth figure, to the cent (the "to the penny" check), with its day */
.rp-fig-day {
  color: var(--soft);
  font-size: .95rem;
  white-space: nowrap;
}

.rp-bank-fig[hidden] {
  display: none;
}

/* the head row of a list card: the title, and Hide chart / Show chart at its right */
.rp-lhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.rp-lhead > .p3-h2 {
  margin: 0;
}

.rp-chart-btn {
  min-height: 44px;
  gap: 6px;
}

/* a list row with its bar under it */
.rp-dash .rp-list .p3-row {
  flex-wrap: wrap;
  row-gap: 6px;
}

.rp-dash .rp-list .p3-row > .rp-lbar {
  flex: 1 0 100%;
}

/* each card's own Bars | Pie switch stays away: the one switch at the top sets both cards */
.rp-dash .rp-list > .sc-switch {
  display: none;
}

/* a chart the client hid: only the list stays */
.rp-list.rp-chart-off .sc-stage,
.rp-list.rp-chart-off .rp-lbar {
  display: none !important;
}

/* the Bars | Pie switch at the top */
.rp-kinds {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--p3-chip-ground);
}

.rp-kinds[hidden] {
  display: none;
}

.rp-kind {
  min-width: 80px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: var(--w-strong);
  cursor: pointer;
}

.rp-kind[aria-pressed="true"] {
  background: var(--p3-gold);
  color: var(--p3-gold-btn-ink);
}

.rp-kind:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* where you stand: the bank balance of the last reports as a line, every point with its amount */
.rp-bankline {
  margin: 4px 0 0;
}

.rp-bankline svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
}

.rp-bl-base {
  stroke: var(--line);
  stroke-width: 1.5;
}

.rp-bl-line {
  fill: none;
  stroke: var(--sc-1);
  stroke-width: 3.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.rp-bl-stop1 {
  stop-color: var(--sc-1);
  stop-opacity: .34;
}

.rp-bl-stop2 {
  stop-color: var(--sc-1);
  stop-opacity: 0;
}

.rp-bl-dot {
  fill: var(--p3-chip-ground);
  stroke: var(--sc-1);
  stroke-width: 3;
}

.rp-bl-dot.is-now {
  fill: var(--sc-1);
}

.rp-bl-val {
  fill: var(--ink);
  font: 600 16px var(--sans);
}

.rp-bl-val.is-now {
  font-weight: 700;
}

.rp-bl-name {
  fill: var(--soft);
  font: 15px var(--sans);
}

@media (min-width: 1024px) {
  .rp-page.rp-wide {
    max-width: calc(1240px + 2 * var(--gutter));
  }

  .rp-report.rp-dash {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: var(--gap);
  }

  /* every part spans both columns unless named below; the order is the picture's */
  .rp-report.rp-dash > * {
    grid-column: 1 / -1;
    order: 10;
  }

  .rp-report.rp-dash > .rp-head {
    order: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 24px;
  }

  .rp-report.rp-dash > .rp-head > * {
    grid-column: 1;
  }

  .rp-report.rp-dash > .rp-head > .rp-kinds {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }

  .rp-report.rp-dash > #view-simple:not([hidden]) {
    display: contents;
  }

  .rp-dash #view-simple > * {
    grid-column: 1 / -1;
  }

  .rp-dash #view-simple > .rp-photo {
    display: none;
  }

  .rp-dash #view-simple > .rp-sum {
    order: 1;
  }

  .rp-dash #view-simple > .rp-lists {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: var(--gap);
  }

  .rp-dash .rp-lists > .rp-list:only-child {
    grid-column: 1 / -1;
  }

  .rp-report.rp-dash > #rep-stand {
    order: 3;
    grid-column: 1;
  }

  .rp-dash #view-simple > #rep-sentence {
    order: 4;
    grid-column: 2;
  }

  .rp-report.rp-dash:has(#rep-sentence[hidden]) > #rep-stand {
    grid-column: 1 / -1;
  }

  .rp-report.rp-dash:has(#rep-stand[hidden]) #rep-sentence {
    grid-column: 1 / -1;
  }

  /* four tiles in one row */
  .rp-dash .rp-figs.has-bank {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rp-dash .rp-figs .p3-fig-n {
    font-size: clamp(2rem, 2.6vw, 2.75rem);
  }

  /* Pie: the donut beside its list */
  .rp-dash .rp-list.sc-chart[data-sc-kind="pie"]:not(.rp-chart-off) {
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    align-content: start;
    align-items: center;
    column-gap: 26px;
  }

  .rp-dash .rp-list.sc-chart > .rp-lhead {
    grid-column: 1 / -1;
  }

  .rp-dash .rp-list.sc-chart[data-sc-kind="pie"] > .sc-stage {
    grid-column: 1;
  }

  /* the ring fits its column (Oct 18 2026, live check: the ring was 260 px in a 210 px column and lost its
     right side in both cards) */
  .rp-dash .rp-list.sc-chart[data-sc-kind="pie"] > .sc-stage > .sc-donut-wrap {
    width: 100%;
    max-width: 210px;
  }

  .rp-dash .rp-list.sc-chart[data-sc-kind="pie"] > ul {
    grid-column: 2;
  }

  /* the sentence card: the report's photo behind the words, the look's own veil on the side of the words */
  .rp-dash .rp-sentence {
    display: flex;
    align-items: center;
    min-height: 220px;
    margin: 0;
    color: var(--p3-photo-ink, var(--ink));
    background-image:
      linear-gradient(90deg,
        color-mix(in srgb, var(--p3-photo-veil) 94%, transparent) 0%,
        color-mix(in srgb, var(--p3-photo-veil) 78%, transparent) 50%,
        color-mix(in srgb, var(--p3-photo-veil) 22%, transparent) 100%),
      var(--rp-photo, none);
    background-position: center;
    background-size: cover;
  }

  .rp-dash .rp-sentence p {
    max-width: 22ch;
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  }
}

@media print {
  .rp-bankline,
  .rp-kinds,
  .rp-chart-btn,
  .rp-lbar {
    display: none !important;
  }
}
