/* studio/reports.css: Reports in the new look (SPEC 2026-11-03 sections 3 and 4; panel 1 section 3 job 4; panel 2 section 4 Tables, Summary strip, Filter row).
   Every rule starts with html[data-ui="studio"] and copies the Classic selector from public/css/reports.css verbatim, inside the same media block as the
   Classic rule it overrides. Every colour and size is a token of studio/tokens.css. Slice 2A (build/20-ledger-reports.md).
   The index loses its cards (a group is a section on a hairline, its reports rows as lines), the grey filter panel becomes a row of controls on the void with a
   hairline under it, the group bands in a table become bold text rows on a hairline (no fill), the aged columns keep a faint band (the panel grey on the void:
   reports.browser.test.mjs:251 reads it in both looks), totals keep their accounting rules (1px, 3px double), and the one second-level title on a page (a
   statement's head, an empty state, an index group) is 18 and never a second 28. On a phone the Export button takes its own line at the right and its menu
   hangs from the right edge, so the menu never leaves the screen whatever the title's length (the 390 red slice 0 found).
   No transition or animation shorthand is written here (a later studio rule would outrank the keyboard flag in tokens.css); Classic's durations stay. */
html[data-ui="studio"] .rep-filters,html[data-ui="studio"] .rep-body{--rep-grey:transparent;--rep-col:var(--bg-panel)}

/* ---- The first row of a report page: the way back is a quiet word, Export is a secondary button (primitives) ---- */
html[data-ui="studio"] .rep-back{min-height:var(--control-s);margin-left:0;padding:0;border-radius:0;color:var(--text-secondary);font-size:var(--type-m);font-weight:400}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .rep-back:hover{background:none;color:var(--text-primary);text-decoration:underline}}

/* ---- The index: a section per group on a hairline, the blurb at the left, the reports as 48px rows at the right ---- */
html[data-ui="studio"] .rep-cards{gap:40px}
html[data-ui="studio"] .rep-card{gap:16px;padding:24px 0 0;background:none;border:0;border-top:1px solid var(--divider);border-radius:0}
html[data-ui="studio"] .rep-card-head h2{font-size:var(--type-l);line-height:28px}
html[data-ui="studio"] .rep-card-head p{margin-top:4px}
html[data-ui="studio"] .rep-link{min-height:var(--row);padding:0;row-gap:0;border-top:1px solid var(--divider)}
html[data-ui="studio"] .rep-links li:first-child .rep-link{border-top:0;padding-top:0}
html[data-ui="studio"] .rep-link-t{font-size:var(--type-m);font-weight:700;line-height:22px;color:var(--text-primary)}
html[data-ui="studio"] .rep-link-d{font-size:var(--type-xs);line-height:18px}
html[data-ui="studio"] .rep-chev{color:var(--text-tertiary)}
@media (min-width:960px){
  html[data-ui="studio"] .rep-card{gap:40px;padding:24px 0 0}
  html[data-ui="studio"] .rep-card-head h2{font-size:var(--type-l)}
}

/* ---- The filter row: controls on the void, Update Report at the right, a hairline under the row ---- */
html[data-ui="studio"] .rep-filters{gap:16px;padding:0 0 24px;background:none;border-radius:0;border-bottom:1px solid var(--divider)}
@media (max-width:959px){
  html[data-ui="studio"] .rep-filters{padding:0 0 16px}
  /* Export takes a line of its own, as wide as the page, with the button at the right and its list hanging from the right edge: inside the screen whatever the
     title's length and whatever else the head holds (the wrap sits inside .head-actions, which is only as wide as its content, so the width is stated) */
  html[data-ui="studio"] .rep-export{display:flex;justify-content:flex-end;flex:1 0 100%;width:calc(100vw - 2 * var(--gutter))}
  html[data-ui="studio"] .rep-export>.menu.pop.right{left:auto;right:0;transform-origin:top right}
}

/* ---- The report under the row: the group band is a bold text row on a hairline, totals keep their rules, figures in mono (primitives) ---- */
html[data-ui="studio"] .table.rep td .sub{margin-top:0}
html[data-ui="studio"] .table.rep td.band{height:var(--row);padding:0;background:none;border-bottom:1px solid var(--divider)}
@media (min-width:960px){
  html[data-ui="studio"] .table.rep th.name,html[data-ui="studio"] .table.rep td.name{min-width:140px;padding-left:0}
}

/* ---- Customer Statements: the statement head and the empty state, at 18 under the 28 page title ---- */
html[data-ui="studio"] .stmt-head h2{font-size:var(--type-l);line-height:28px}
html[data-ui="studio"] .stmt-who{font-size:var(--type-m)}
html[data-ui="studio"] .stmt-close{font-family:var(--font-ui);font-variant-numeric:tabular-nums}   /* a sentence with a figure in it, not a figure: the words stay in Lato (review R) */
html[data-ui="studio"] .rep-empty{gap:8px;padding:40px 0}
html[data-ui="studio"] .rep-empty-icon{display:none}   /* an empty state is a title and a line, no picture (panel 2; review R) */
html[data-ui="studio"] .rep-empty h2{font-size:var(--type-l);line-height:28px}
@media (max-width:959px){html[data-ui="studio"] .rep-empty{padding:32px 0}html[data-ui="studio"] .rep-empty h2,html[data-ui="studio"] .stmt-head h2{font-size:var(--type-l)}}

/* ---- Phone: the band row keeps no inset; an index row whose line wraps gets 8px above and below (seen in the first 390 picture) ---- */
@media (max-width:959px){
  html[data-ui="studio"] .table.rep td.band{padding:0;height:var(--row)}
  html[data-ui="studio"] .rep-link{padding:8px 0}
  html[data-ui="studio"] .rep-links li:first-child .rep-link{padding-top:0}
  html[data-ui="studio"] .rep-links li:last-child .rep-link{padding-bottom:0}
}

/* ---- Checks and Exports: one recipe for the whole Reports area, sections on hairlines, no cards (review R, 3 Nov 2026: the Bookkeeper panel was flat by
   primitives' filter rule while Export everything kept a card; Export everything is two facts and a button, Earlier exports a list, so all three sit on the page
   like the findings on Checks) ---- */
html[data-ui="studio"] .panel.finds,html[data-ui="studio"] .rep-pair>.panel{background:none;border:0;border-top:1px solid var(--divider);border-radius:0;padding:24px 0 0;gap:8px}
html[data-ui="studio"] .rep-pair>.panel{gap:16px}
html[data-ui="studio"] .find{gap:2px;padding:12px 0}
html[data-ui="studio"] .fact-v.sum{font-family:var(--font-num);font-variant-numeric:tabular-nums}
/* History and the Money log (1.5.14, F35 ruling 3): a refused or mismatched step reads in ink with the flag triangle (red is a shape, never a word on a panel);
   the trail sits in the well in the numbers face. */
html[data-ui="studio"] .mh-bad .mh-out::before{content:"";display:inline-block;width:12px;height:11px;margin:0 6px 0 4px;background:var(--flag);clip-path:polygon(50% 0,100% 100%,0 100%)}
html[data-ui="studio"] .mh-facts dt{font-weight:400}
html[data-ui="studio"] .mh-h{font-size:var(--type-l)}
html[data-ui="studio"] .mh-trail{font-size:var(--type-xs);background:var(--bg-inset);border:1px solid var(--divider)}
