/* The report of scripts/report.mjs on screen (/sample, or report.html in the case's directory) and printed: one Letter
   page. A stylesheet, not a <style> element, because the site's CSP admits no inline style. */
@page { size: letter; margin: 0.5in; }
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body {
  margin: 0; background: #fff; color: #0f172a;
  font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
main { max-width: 8in; margin: 0 auto; padding: 28px 20px; }
p { margin: 0 0 8px; }
a { color: inherit; }
h1 { font-size: 21px; line-height: 1.2; margin: 2px 0 6px; }
h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #475569; margin: 0 0 6px; }
.sample { border: 1px solid #a3470b; color: #a3470b; border-radius: 4px; padding: 6px 10px; }
.head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid #0f172a; }
.brand { font-weight: 700; margin: 0; }
.brand a { text-decoration: none; }
.total { flex: none; max-width: 240px; text-align: right; }
.total p { margin: 0; color: #475569; font-size: 12px; }
.total .big { color: #0f172a; font-size: 30px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; margin: 4px 0 14px; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 5px 6px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
th:first-child { width: 34%; }
th { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; }
/* One line for the suppliers, however many: audit.csv names them all. max-width 0 keeps the column at its width. */
td:first-child { max-width: 0; }
td small { display: block; color: #64748b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
tr.flag td { background: #fdf2e9; }
tr.flag td:nth-child(4), tr.flag td:nth-child(6) { color: #a3470b; font-weight: 700; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols ul { margin: 0 0 8px; padding-left: 18px; }
.fine, .fine p { font-size: 11px; color: #475569; }
footer { border-top: 1px solid #e2e8f0; margin-top: 6px; padding-top: 8px; }
footer p { margin-bottom: 4px; }

@media (max-width: 640px) {
  .head { flex-direction: column; gap: 8px; }
  .total { text-align: left; }
  .cols { grid-template-columns: 1fr; }
}
@media print {
  body { font-size: 10.5px; line-height: 1.35; }
  main { max-width: none; padding: 0; }
  h1 { font-size: 19px; }
  table { font-size: 11px; }
  th, td { padding: 3px 5px; }
  td small { font-size: 10px; }
  .fine, .fine p { font-size: 9.5px; }
  a { text-decoration: none; }
  .sample a { display: none; }
}
