/* apex/src/css/bright-tables.css · Bright 2 · one type standard for the cells of every table (owner, 16 Nov 2026:
   "Standardize font, size, bold etc for fonts in table columns according to the various use cases such as if its a
   link, primary column etc."). Loaded after bright.css and bright-forms.css by the theme style "Bright"
   (apex/tools/tables_css.py), so these rules win over bright.css's table rules; pages carry no table font sizes of
   their own. The sizes are the ones the owner settled on for the bill run's tables on 3 Nov 2026 (names were larger
   than the figures): text 13 px, figures 12 px in the mono face, which reads the same size.

   Use case                                        Face                 Size   Weight  Colour
   Column header, whatever its alignment           Plus Jakarta Sans    11.5   700     muted, upper case
   Text                                            Plus Jakarta Sans    13     400     ink
   Figures: money, counts, readings, dates, codes  IBM Plex Mono        12     400     ink, tabular figures
     (td.u-tR right-aligned; td.bright-num left)
   Link: the value that opens its record           its column's face    -      600     ink, underlined on hover
   Bold: the row's name or number, a total         its column's face    -      600     ink
   Second line under a value                       Plus Jakarta Sans    12     400     muted
   Status                                          pill (bright.css)    12     600

   Tables: the hand-built ones (.bright-table), the interactive reports of Reports (.a-IRR-table) and the sales
   ticket (.sale-tk). */

/* the mono face's bold: bright.css loads 400 and 500 only, so a bold figure was drawn as a fake bold */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@600&display=swap');

/* column headers: one look; a right-aligned header was set in the mono face */
.bright-table th, .bright-table th.u-tR, .bright-table th.bright-num,
.a-IRR-table th, .sale-tk th {
  font-family: var(--bright-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--bright-muted); font-variant-numeric: normal;
}
.bright-table th a, .a-IRR-table th a { font-family: inherit; font-weight: inherit; }

/* text (the face, weight and colour are the page's: a muted or void row keeps its colour) */
.bright-table td, .a-IRR-table td, .sale-tk td { font-size: 13px; }

/* figures */
.bright-table td.u-tR, .bright-table td.bright-num, .bright-table td.bright-date,
.bright-keygrid td.rdv, .bright-keygrid td.kwh, .a-IRR-table td.u-tR, .sale-tk td.r {
  font-family: var(--bright-mono); font-size: 12px; font-variant-numeric: tabular-nums;
}
.bright-table td.u-tR, .a-IRR-table td.u-tR, .sale-tk td.r { text-align: right; }

/* links open their record: bold, ink, underlined on hover */
.bright-table td a, .a-IRR-table td a, .sale-tk td a { color: var(--bright-fg); font-weight: 600; text-decoration: none; }
.bright-table td a:hover, .a-IRR-table td a:hover, .sale-tk td a:hover { text-decoration: underline; }

/* bold: the row's name or number, a total; one weight whether or not it is a link */
.bright-table td b, .bright-table td strong, .a-IRR-table td b, .sale-tk td b { font-weight: 600; }

/* the row's name over a second line: the text size everywhere (the till's receipts had 15 px) */
.bright-table td.bright-who > b { font-size: 13px; }
/* a second line under a value: text, smaller, muted, also under a figure (a pill keeps its look) */
.bright-table td.bright-who > span:not([class]), .bright-table td br + span:not([class]) {
  font-family: var(--bright-ui); font-size: 12px; font-weight: 400; color: var(--bright-muted);
}

/* an action in a cell keeps its button look (bright.css .bright-act) */
.bright-table td a.bright-act { font-family: var(--bright-ui); }
