/* НИ-КАЙ — the base of the page: the colour names, the box model, the page's background, and the printouts on the
   screen (lib/texttable.js renderReport in the print preview, web/ux/print.js). The pages themselves: web/ux/ux.css. */
:root {
  /* the colours: the roles of the active theme (web/theme.css) */
  --bg: var(--c-bg);
  --panel: var(--c-surface);
  --panel-2: var(--c-surface-2);
  --text: var(--c-text);
  --line: var(--c-line);
  --accent: var(--c-accent);
  --accent-soft: var(--c-accent-soft);
  --mono: "DejaVu Sans Mono", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Segoe UI", "Noto Sans", "DejaVu Sans", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* the size (rem) and the pages' frame (#app): web/ux/ux.css */
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 1rem/1.35 var(--sans); }

/* a printout on the screen: tables (texttable.js) or the original text */
.rpt { padding: 0.6rem 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.rpt-text { margin: 0; font: 0.95rem/1.3 var(--mono); white-space: pre; color: var(--text); }
.rpt-page { width: 100%; border: 0; border-top: 2px dashed var(--line); margin: 0.6rem 0; }
.rpt-table-wrap { max-width: 100%; }
.rpt-table { border-collapse: collapse; font-size: 0.92rem; background: var(--panel); }
.rpt-table th { background: var(--accent-soft); color: var(--accent); font-weight: 600; padding: 0.3rem 0.6rem; border: 1px solid var(--line);
  text-align: center; vertical-align: bottom; }
.rpt-table td { padding: 0.18rem 0.6rem; border-left: 1px solid var(--line); border-right: 1px solid var(--line); white-space: pre; }
.rpt-table td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rpt-table tbody tr:nth-child(even) td { background: var(--panel-2); }
.rpt-table tr.sep td { border-top: 1px solid var(--line); }
.rpt-table tr.total td { font-weight: 700; border-top: 2px solid var(--line); background: var(--accent-soft); }
.rpt-table tr.full td { font-weight: 600; color: var(--accent); }
.rpt-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
@media print { #app { display: none; } }
