/* Printing any page (Ctrl+P), after Time Audit's print.css: light colours whatever Display › Theme or Windows says;
   no app bar, menus, filters, buttons or forms; whole tables (not the scrolling box on screen), each row kept on one
   page and the header row repeated on every page; status colours kept. Linked with media="print" (base.html), so it
   never touches the screen. */
@media print {
  /* The light theme (app.css :root), over any dark one. */
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #ffffff; --surface: #ffffff; --surface-2: #f8f7f4; --surface-3: #ecebe6; --line: #dedbd4; --line-strong: #b9b4aa;
    --field-line: #8a8579; --ink: #1c1e20; --ink-2: #474a4f; --muted: #5f6266;
    --accent: #0b5f73; --accent-hover: #084b5b; --accent-tint: #e2eff1; --accent-ink: #ffffff;
    --review: #a3301c; --review-tint: #f8e8e3; --warn: #7f4f00; --warn-tint: #faefd9; --ok: #2d6a38; --ok-tint: #e5efe5;
    --info: #0b5f73; --info-tint: #e2eff1; --neutral-tint: #efeee9;
    --chart-ok: #4a9a86; --chart-warn: #f2b84b; --chart-bad: #a3201c;
    --row-h: 24px; --cell-pad: 3px;
  }
  @page { margin: 12mm; }
  html, body { background: #fff !important; font-size: 11px; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  /* Only what the page is about: no navigation, filters, paging or anything to click, nor the panels of tools
     (upload, individual requirements, a manual record). Cells keep their place (so the columns stay lined up) and
     lose their buttons and forms. */
  .skip, .devstrip, .asbar, .appbar, .bottombar, .navmenu, .subnav, .subnav-menu, .menu, .flashes,
  form.toolbar, form.filters, .per-page, .pager, .views, .statetabs, .page-head .tools, .sheet-head .tools,
  details.panel, .row-actions, td form, td details, td .btn, button, .btn, .go, .sort .arrow,
  .mail-body iframe { display: none !important; }
  .page { padding: 0 !important; max-width: none !important; gap: 10px !important; }
  .settings { display: block !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .chips .chip { border: 1px solid var(--line-strong); }
  .chips .chip [aria-hidden="true"], .chips > a:not(.chip) { display: none; }

  /* Whole tables, a row never split, the header on every page; nothing sticky. */
  .tablewrap, .sheet { overflow: visible !important; }
  th, .grid-table tbody th { position: static !important; }
  thead { display: table-header-group; }
  tr, .setup li, .mails > li, .log > li, .todo li { break-inside: avoid; }
  h1, h2, h3, .sheet-head { break-after: avoid; }
  /* A person's requirements print as a table, not the phone's cards. */
  table.cards { display: table !important; } table.cards thead { display: table-header-group !important; }
  table.cards tbody { display: table-row-group !important; } table.cards tr { display: table-row !important; }
  table.cards td { display: table-cell !important; } table.cards td[data-label]::before { content: none !important; }

  /* The dashboard: its panels side by side, and the figure or department picked as plain text. */
  .overview { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important; }
  .weeks { overflow: visible !important; }
  .facts > a[aria-current], .bars a.row[aria-current], a.wk[aria-current] { background: none !important; }
}
