/* reports.css : item 08, the reports page (#page-reports), build-wave-7b bw7b-016. Carried BY VALUE from the design
   stage's 08-reports/reports.css (dw7-008 / dw7-019, CONTRACT 08 section 3): tokens only, no colour, size or motion
   value of its own (D-W7-08-01). Changed in the carry, and only this: the rules the mock wrote unscoped (.print-only,
   .pending-box, the chart's .ch-* parts) are scoped to #page-reports; the mock harness's body.print-view rules are
   not carried (the product prints with @media print); the print block also hides the chassis; the page's own
   person-code rule is the shell's (c.8); the head line of #reports-open stays seen on the desk (MF-08-1). */

/* ======================================================================== the paper (as face-desk.css, carried) */
#page-reports .terms { max-width: 44rem; margin: var(--s-2) 0 0; color: var(--ink-2); }
#page-reports .limit { font-style: italic; }
#page-reports h3 {
  margin: var(--s-7) 0 var(--s-2); padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
}
#page-reports h4 { margin: var(--s-5) 0 var(--s-2); font-size: var(--step-0); font-weight: 700; color: var(--ink); }
#page-reports .rsec:first-of-type h3 { margin-top: var(--s-6); }
#page-reports .desk-tno { font-weight: 800; white-space: nowrap; }
#page-reports .absent { color: var(--ink-2); font-weight: 600; }
#page-reports ul.plain, #page-reports ol.plain { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
#page-reports ul.plain > li, #page-reports ol.plain > li {
  padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere;
}
#page-reports .sub { display: block; color: var(--ink-2); font-weight: 400; }
#page-reports .print-only { display: none; }

/* The pencil and ink marks on a paper (D-W7-08-04): every figure block carries data-mark (the contract: pencil until
   the reports route answers), but an answered page is ONE ink block whose one continuous rule is the 3 px rule under
   the terms sentence: so an ink figure block draws no frame of its own and keeps its own weights; pencil keeps the
   chassis's dashed frame and its word. */
#page-reports [data-mark="ink"] { border: 0; font-weight: inherit; }

/* ======================================================================== 1 · the terms bar: the page's headline */
/* The filters folded into one sentence (the P1-1 fold): what is counted, where, which jobs. The record answered: ink,
   over one continuous 3 px rule (the #owner-standing grammar). Not answered yet: pencil words over a dashed rule. */
#page-reports .terms-bar { margin: var(--s-2) 0 0; }
#page-reports #reports-terms {
  max-width: 48rem; margin: 0; padding-bottom: var(--s-3);
  border: 0; border-bottom: 3px solid var(--ink);
  font-size: var(--step-2); font-weight: 700; line-height: 1.25;
}
#page-reports #reports-terms[data-mark="pencil"] { color: var(--pencil); font-weight: 500; border: 0; border-bottom: 2px dashed var(--pencil); }
#reports-terms .mark-word { font-weight: 700; }
#page-reports .reports-keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap) var(--s-3); margin: var(--s-4) 0 0; }
#reports-filter-key[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
#page-reports .reports-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-2);
  font-weight: 700;
}

/* ======================================================================== the filter panel (opened by its one key) */
#reports-filter-panel {
  margin: var(--s-4) 0 0; padding: var(--s-4);
  border: 2px solid var(--ink); border-radius: var(--radius);
}
#reports-filter-panel h3 { margin: 0; padding: 0; border: 0; }
#reports-filter-panel fieldset { margin: var(--s-4) 0 0; padding: 0; border: 0; min-width: 0; }
#reports-filter-panel legend { padding: 0; font-weight: 700; color: var(--ink); }
#reports-filter-panel .choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
#reports-filter-panel label { display: grid; gap: var(--s-1); color: var(--ink-2); font-weight: 600; }
#reports-filter-panel label select, #reports-filter-panel label input { margin-top: 0; width: 100%; }
#reports-filter-panel .sel { margin-top: var(--s-3); max-width: 24rem; }
#reports-filter-panel .cut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
#reports-filter-panel .range { display: grid; grid-template-columns: repeat(2, minmax(0, 14rem)); gap: var(--s-3); margin-top: var(--s-3); }
#reports-filter-panel .range .terms { grid-column: 1 / -1; margin: 0; }
#reports-filter-panel .panel-readback {
  margin: var(--s-4) 0 0; padding: var(--s-2) var(--s-3);
  border: 2px dashed var(--pencil); border-radius: var(--radius-s);
  color: var(--pencil); font-weight: 500;
}
#reports-filter-panel .panel-readback .mark-word { font-weight: 700; }
#reports-filter-panel .panel-keys { margin-top: var(--s-4); }
#reports-filter-panel .panel-keys button { flex: 0 1 auto; min-width: 12rem; }

/* ======================================================================== 2 · the counts: a ruled register */
/* D-W7-08-16 (dw7-019; the critic's P1-1; back to this item's CONCEPT Type row, a count at step 1 700): the five counts in the record's
   own order as a ruled register, one row per stamp: its word, its count at step 1 700, what it counts. Never a
   display numeral, never a strip of figures, never a box per figure. */
#page-reports #reports-counts {
  display: block; max-width: 46rem; margin: var(--s-3) 0 0; padding: 0;
  border-top: 2px solid var(--ink);
}
#reports-counts .count-row {
  display: grid; grid-template-columns: 9rem 3.5rem minmax(0, 1fr); column-gap: var(--s-4); align-items: baseline;
  padding: var(--s-2) 0; border-bottom: 1px solid var(--rule);
}
#reports-counts .count-row dt { margin: 0; color: var(--ink); font-weight: 600; }
#page-reports #reports-counts dd { margin: 0; }
#page-reports #reports-counts .count-n {
  font-size: var(--step-1); font-weight: 700; line-height: 1.2; text-align: right; font-variant-numeric: tabular-nums;
}
#reports-counts .count-terms { color: var(--ink-2); }
#page-reports #reports-counts[data-mark="pencil"] { border: 0; border-top: 2px dashed var(--pencil); }
#reports-counts[data-mark="pencil"] .pending-box { width: 2.5rem; height: 1.4rem; vertical-align: middle; }
#page-reports .pending-box {
  display: inline-block; width: 3rem; height: 2.1rem;
  border: 2px dashed var(--pencil); border-radius: var(--radius-s);
}
#page-reports .pencil-block {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-3) 0 0; padding: var(--s-3);
  border: 2px dashed var(--pencil); border-radius: var(--radius-s);
  color: var(--pencil); font-weight: 500;
}
#page-reports .pencil-block .pending-box { width: 2rem; height: 1.4rem; }

/* the folds: a section's heading and its one line; open on the desk, folded on the phone (D-W7-08-08) */
#page-reports .rsec-fold > summary { list-style: none; cursor: pointer; min-height: 48px; }
#page-reports .rsec-fold > summary::-webkit-details-marker { display: none; }
#page-reports .rsec-fold > summary h3 { position: relative; padding-right: 2.5rem; }
#page-reports .rsec-fold > summary h3::after {
  content: "\2212" / ""; position: absolute; right: 0; top: var(--s-4);
  width: 2rem; text-align: center; font-weight: 800; color: var(--ink);
}
#page-reports .rsec-fold:not([open]) > summary h3::after { content: "+" / ""; }
#page-reports .fold-line { display: block; margin: 0 0 var(--s-2); color: var(--ink-2); font-weight: 600; }
#page-reports .rsec-fold[open] .fold-line { display: none; }
#page-reports .rsec-fold:not([open]) > summary h3 { margin-bottom: var(--s-1); }
#page-reports .fold-line[data-mark="pencil"] { border: 0; color: var(--pencil); font-weight: 500; }

/* ======================================================================== 3 · the charts: one count, one ink line */
/* Hand-drawn inline SVG (ADR-008: no chart library). Drawn at its own size (the viewBox in px, never scaled), so
   its words keep the type scale: the desk's 640 x 248 at 900 px and above, the phone's 320 x 232 below. */
#page-reports .figure-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: var(--s-3) var(--s-6); align-items: start;
  margin: var(--s-5) 0 0;
}
#page-reports .chart-box h4 { margin-top: 0; }
#page-reports .chart { display: block; max-width: 100%; height: auto; margin: var(--s-2) 0 0; overflow: visible; }
#page-reports .chart-phone { display: none; }
#page-reports .ch-grid { stroke: var(--rule); stroke-width: 1; }
#page-reports .ch-axis { stroke: var(--ink); stroke-width: 2; }
#page-reports .ch-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
#page-reports .ch-pt { fill: var(--ink); }
/* D-W7-08-17 (P1-2): the segment to the bucket still being counted: pencil, dashed, never the solid ink line */
#page-reports .ch-line-partial { fill: none; stroke: var(--pencil); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-linecap: round; }
#page-reports .ch-pt-open { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; }
#page-reports .ch-tick, #page-reports .ch-x { fill: var(--ink-2); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
#page-reports .ch-val { fill: var(--ink); font-size: var(--step--1); font-weight: 700; font-variant-numeric: tabular-nums; }
#page-reports .ch-partial { font-weight: 600; }
#page-reports .ch-empty { fill: var(--ink-2); font-size: var(--step-0); font-weight: 600; }

/* the chart's table: every value the chart draws, the chart never the only carrier */
#page-reports table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
#page-reports .tally { width: 100%; }
#page-reports .tally caption { text-align: left; font-weight: 700; padding-bottom: var(--s-1); }
#page-reports .tally th, #page-reports .tally td { padding: var(--s-1) 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
#page-reports .tally td { text-align: right; font-weight: 700; padding-left: var(--s-3); white-space: nowrap; }
#page-reports .tally thead th { color: var(--ink-2); font-weight: 600; border-bottom: 2px solid var(--ink); }
#page-reports .tally thead th:last-child { text-align: right; }
#page-reports .tally tfoot th, #page-reports .tally tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
#page-reports .tally tr.partial th, #page-reports .tally tr.partial td { color: var(--ink-2); }
#page-reports .to-now { font-weight: 600; white-space: nowrap; }
#page-reports .tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s-5) var(--s-6); align-items: start; margin: var(--s-4) 0 0; }
#page-reports .tally-box .sum-line { margin: var(--s-1) 0 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ======================================================================== 4 · the registers: ruled rows, no cards */
#page-reports .register { width: 100%; margin: var(--s-3) 0 0; }
#page-reports .register.narrow { max-width: 40rem; }
#page-reports .register th, #page-reports .register td {
  padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--rule);
  text-align: left; vertical-align: baseline;
}
#page-reports .register thead th { color: var(--ink-2); font-weight: 600; border-bottom: 2px solid var(--ink); line-height: 1.3; }
#page-reports .register tbody th { font-weight: 600; overflow-wrap: anywhere; }
#page-reports .register td { font-weight: 700; }
#page-reports .register td.absent { font-weight: 600; color: var(--ink-2); }
#page-reports .register td.none { font-weight: 400; color: var(--ink-2); }
#page-reports .register .to-arrow { color: var(--ink-2); font-weight: 400; }
#page-reports .register.wide { font-size: var(--step-0); }
#page-reports .register.wide thead th { font-size: var(--step-0); }

/* the counted stage line (DK-3), as the plant page draws it */
#reports-stages { margin-top: var(--s-4); }
#reports-stages .stage-count { font-size: var(--step-0); font-weight: 700; }
#reports-stages .stage-count.is-zero { font-weight: 600; }
#reports-stages > li.holds::before { background: var(--ink); border-color: var(--ink); }
#reports-stages .stage-name { overflow-wrap: anywhere; }
#reports-stages .stage-flag { grid-column: 2 / -1; margin-top: var(--s-1); padding: 0 var(--s-1); border: 1.5px solid var(--ink); border-radius: var(--radius-s); }
#reports-stages .flag-glyph { font-weight: 800; }
@media (min-width: 900px) {
  #reports-stages .stage-name { padding: 0 var(--s-1); }
  #reports-stages > li:nth-child(5) .stage-name { margin-top: calc(var(--s-2) + 0.75rem); }
}
#reports-sum { margin: var(--s-4) 0 0; }
#reports-sum .sum-figure { font-weight: 700; }

/* the late list: lateness, the page's one colour, with its words and the board's own rule */
#reports-late { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
#reports-late .late-line {
  position: relative; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-1) var(--s-4);
  padding: var(--s-3) 0 calc(var(--s-3) + 8px);
}
#reports-late .late-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px; background: var(--late); border-bottom: 2px solid var(--ink);
}
#reports-late .since, #reports-late .what { margin: 0; }
#reports-late .since-word { display: block; color: var(--ink-2); }
#reports-late .since-time { color: var(--late-ink); font-size: var(--step-1); }
#reports-late .late-word { display: block; }
#reports-late .limit-at { color: var(--late-ink); font-weight: 600; }
#page-reports .prio {
  display: inline-block; min-width: 2.5rem; padding: 0 var(--s-2);
  border: 2px solid var(--ink); border-radius: var(--radius-s);
  font-weight: 700; line-height: 1.5; text-align: center; white-space: nowrap;
}
#page-reports .prio-1 { background: var(--ink); color: var(--bg); }

/* what the record does not hold, under every interval figure: the desk's italic "does not prove" (S03 D-04) */
#reports-not-observable { margin: var(--s-3) 0 0; padding-left: var(--s-5); color: var(--ink-2); font-style: italic; max-width: 44rem; }
#reports-not-observable b { font-style: normal; color: var(--ink); }

/* ======================================================================== 5 · people: the caption and the refusal */
/* The sentence on every people figure, set first, ink-2 italic as the desk sets what a figure does not prove;
   upright in Devanagari and Gurmukhi (no synthetic slant on those scripts). */
#page-reports .stamp-caption { margin: var(--s-2) 0 0; max-width: 44rem; color: var(--ink); font-style: italic; font-weight: 600; }
#page-reports .stamp-caption:lang(hi), #page-reports .stamp-caption:lang(pa) { font-style: normal; }
#page-reports .refusal {
  max-width: 44rem; margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-3);
  border: 2px solid var(--ink); border-radius: var(--radius-s);
  font-weight: 700;
}
#reports-named-key { margin-top: var(--s-3); }

/* ======================================================================== 6 · the comparison */
#page-reports .col-terms { display: block; color: var(--ink-2); font-weight: 400; }
#page-reports .compare-table { max-width: 52rem; }
#page-reports .compare-table td { font-size: var(--step-1); }
#page-reports .variant-col { background: var(--surface); padding-left: var(--s-3); }
#page-reports .variant-flag {
  max-width: 44rem; margin: var(--s-3) 0 0; padding: var(--s-2) var(--s-3);
  border: 1px dashed var(--muted); border-radius: var(--radius-s);
  color: var(--ink); font-weight: 700;
}

/* ======================================================================== 7 · the downloads (as the plant page's) */
#page-reports .exports { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-5); }
#page-reports .export-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-4);
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
#page-reports .export-link::before { content: "\2193" / ""; font-weight: 800; }
#page-reports .export-link:hover { background: var(--surface); }

/* ======================================================================== item 10: the review figures and the pack
   CONTRACT 10 §3 (review.css, the rules marked CONTRACT; this block governs): no new token. Not built: .repeat-pair and
   its desk rule (MF-10-2 drops the wrapper); the file's .caption rule (OPEN-10-5: this build draws no .caption). */
#reports-hear, #reports-clocks, #reports-stamp-times { margin: var(--s-5) 0 0; }
#reports-hear > h4:first-child, #reports-clocks > h4:first-child, #reports-stamp-times > h4:first-child { margin-top: 0; font-size: var(--step-1); }
#page-reports .hear-unheard { margin: var(--s-2) 0 0; font-weight: 600; color: var(--ink); }
#page-reports #reports-hear-refused { margin: var(--s-3) 0 0; padding: var(--s-2) var(--s-3); border: 2px solid var(--ink); border-radius: var(--radius-s); font-weight: 600; }
#page-reports .pack-what { margin: var(--s-2) 0 0; max-width: 44rem; }
#page-reports .pack-last { margin: var(--s-2) 0 0; padding: 0 0 var(--s-2); border-bottom: 3px solid var(--ink); max-width: 44rem; }
#page-reports .pack-last[data-mark="pencil"] { border-bottom: 3px dashed var(--pencil); }
#page-reports .pack-not-in { margin: var(--s-2) 0 0; max-width: 44rem; font-weight: 600; }
#page-reports #reports-pack { margin: 0 0 var(--s-5); }
#page-reports #reports-pack > h4 { margin-top: var(--s-2); }
#reports-hear td, #reports-clocks td, #reports-repeat td { white-space: nowrap; }
/* the fixes that did not hold: one count in the built counts register's grammar; unlike the five counts, its terms stay
   on the phone (the count is meaningless without "of the N Close it stamps", D-W8-10-05) */
#page-reports .repeat-counts { display: block; max-width: 46rem; margin: var(--s-2) 0 0; padding: 0; border-top: 2px solid var(--ink); }
#page-reports .repeat-counts .count-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: baseline;
  padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
#page-reports .repeat-counts dt { margin: 0; color: var(--ink); font-weight: 600; }
#page-reports .repeat-counts dd { margin: 0; }
#page-reports .repeat-counts .count-n { font-size: var(--step-1); font-weight: 700; line-height: 1.2; text-align: right; font-variant-numeric: tabular-nums; }
#page-reports .repeat-counts .count-terms { grid-column: 1 / -1; color: var(--ink-2); font-weight: 400; }
@media (min-width: 900px) {
  #page-reports .repeat-counts .count-row { grid-template-columns: 9rem 3.5rem minmax(0, 1fr); }
  #page-reports .repeat-counts .count-terms { grid-column: 3; }
}
#reports-hear td.absent { white-space: normal; min-width: 8rem; }
/* the modes register's tfoot ("All") reflows on the phone like its rows (the built reflow names tbody only) */
@media (max-width: 899.98px) { #page-reports #reports-repeat-modes tfoot { display: block; } }

/* ======================================================================== the phone (below 900 px) */
@media (max-width: 899.98px) {
  #page-reports #reports-terms { font-size: var(--step-1); }
  /* the counts' second row inside the first screen at 360 x 780: the first section's head sits closer */
  #page-reports .reports-keys { margin-top: var(--s-3); }
  #page-reports #reports-raised h3, #page-reports #reports-compare h3 { margin-top: var(--s-3); padding-top: var(--s-2); }
  #page-reports .reports-keys button { flex: 1 1 100%; }
  #page-reports .reports-keys #reports-print-key { flex: 1 1 45%; }
  #page-reports .reports-link { flex: 1 1 45%; justify-content: center; border: 2px solid var(--ink); border-radius: var(--radius); }
  /* the phone: word and count on one ruled line; what each counts is said once in the terms under the register */
  #reports-counts .count-row { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 0; }
  #reports-counts .count-terms { display: none; }
  #page-reports .figure-pair.stacked .chart-table { max-width: none; }
  #page-reports .figure-pair { display: block; }
  #page-reports .chart-desk { display: none; }
  #page-reports .chart-phone { display: block; }
  #page-reports .chart-table { margin-top: var(--s-3); }
  #reports-filter-panel { padding: var(--s-3); }
  #reports-filter-panel .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #reports-filter-panel .cut-grid, #reports-filter-panel .range { grid-template-columns: minmax(0, 1fr); }
  #reports-filter-panel .panel-keys button { flex: 1 1 100%; min-width: 0; }
  #reports-late .late-line { grid-template-columns: minmax(0, 1fr); }
  /* a register reflows: each row a block, each cell its label beside its value */
  #page-reports .register.reflow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #page-reports .register.reflow, #page-reports .register.reflow tbody, #page-reports .register.reflow tr,
  #page-reports .register.reflow th, #page-reports .register.reflow td { display: block; width: 100%; }
  #page-reports .register.reflow tr { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
  #page-reports .register.reflow tbody tr:first-child { border-top: 2px solid var(--ink); }
  #page-reports .register.reflow th, #page-reports .register.reflow td { border: 0; padding: 2px 0; }
  #page-reports .register.reflow tbody th { font-weight: 700; }
  #page-reports .register.reflow td[data-label] {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3);
  }
  #page-reports .register.reflow td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-weight: 400; }
  #page-reports .variant-col { padding: 2px var(--s-2); }
}

/* the registers' first column: a person or a role and section reads on one or two lines, never four */
#reports-named tbody th { min-width: 13rem; }
#reports-people-table tbody th, #reports-notices-table tbody th { min-width: 14rem; }
@media (max-width: 899.98px) {
  #reports-named tbody th, #reports-people-table tbody th, #reports-notices-table tbody th { min-width: 0; }
}
@media print { #page-reports .rsec-fold > summary h3::after { display: none; } }

/* ======================================================================== dw7-019 refinements */
/* P2-5: a day table longer than ten rows sits under its chart, not beside it */
#page-reports .figure-pair.stacked { display: block; }
#page-reports .figure-pair.stacked .chart-table { margin-top: var(--s-3); max-width: 22rem; }
/* P2-1: a section's name in a role · section cell never breaks inside the name */
#page-reports .register .sec-name { white-space: nowrap; }
/* P1-8 / c.8: the person's code never breaks: the shell's one rule (app.css `.who-code`, item 09) serves this page */

/* ======================================================================== print (the browser's own; no route) */
/* The page alone on the paper: no chassis (the bar, the rail, the person block), no keys, no panel, no downloads,
   every section open (reports.js opens every fold on beforeprint) and the printed line said. */
@media print {
  #tabs, .rail, #who, #more-sheet, body > header, body > footer { display: none !important; }
  #page-reports .no-print, #reports-filter-panel, #page-reports .reports-keys { display: none !important; }
  #page-reports .print-only { display: block; }
  #page-reports .printed { margin: 0 0 var(--s-2); color: var(--ink-2); }
  #page-reports .rsec, #page-reports table, #page-reports .figure-pair { break-inside: avoid; }
  #page-reports h3 { break-after: avoid; }
  #page-reports .rsec-fold > summary h3::after { display: none; }
}

/* ======================================================================== the build's own small parts */
/* MF-08-1: the not-yet-closed head line states both bases; it stays seen when the section is open on the desk */
#page-reports #reports-open .rsec-fold[open] .fold-line { display: block; }
/* the moment the record was counted, under the terms sentence */
#page-reports #reports-terms .terms-note { display: block; margin-top: var(--s-1); font-size: var(--step-0); font-weight: 500; color: var(--ink-2); }
/* a 400 names the field: its words sit in the fieldset of that field */
#reports-filter-panel .field-err { margin: var(--s-2) 0 0; }
/* the caption upright in Devanagari and Gurmukhi (no synthetic slant on those scripts) */
#page-reports .stamp-caption [lang="hi-IN"], #page-reports .stamp-caption [lang="pa-IN"] { font-style: normal; }

/* bw7b-031 (fix round 1) -------------------------------------------------------------------------------------------- */
/* P1-2: a station the record does not count is a flat pencil bar with its words, never the hollow square a zero keeps */
#reports-stages > li.unserved::before { background: var(--pencil); border-color: var(--pencil); transform: scaleY(0.25); }
#reports-stages .stage-count.is-unserved { font-weight: 600; color: var(--ink-2); }
/* P1-1: the terms note has a long form (desk) and a one-line form (phone) */
#page-reports #reports-terms .terms-note .note-short { display: none; }
@media (max-width: 899.98px) {
  #page-reports #reports-terms .terms-note .note-long { display: none; }
  #page-reports #reports-terms .terms-note .note-short { display: inline; }
}

/* item 04 (wave 8; CONTRACT 04 §3): the clock rows in #reports-times, the sub-rows of the time nobody worked it */
#page-reports .register tr.sub-row th { font-weight: 400; padding-left: var(--s-5); }
#page-reports .register tr.sub-row td { font-weight: 600; }
#page-reports .clocks-running { margin: var(--s-2) 0 0; font-weight: 600; }
