/* Client portal — hand-written, no framework, no JavaScript.
   Colours are the Q-95 PDF's (reports/q95.css), so the screen and the paper look like one lab. */

:root {
  --navy: #163A5C;
  --accent: #1E8FCB;
  --ink: #1F2933;
  --muted: #6B7780;
  --line: #C9D1D9;
  --band: #F6F8FA;
  --card: #EEF2F5;
  --normal: #DDF2E4;
  --attention: #FFF1D6;
  --critical: #F8DCDA;
  --error: #B42318;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; font-size: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Liberation Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--band);
}

a { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

h1 { font-size: 1.5rem; color: var(--navy); margin: 24px 0 4px; }
.subtitle { color: var(--muted); margin: 0 0 16px; }

/* --- navigation bar ------------------------------------------------------------------------ */
.nav { background: var(--navy); color: #fff; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: bold; letter-spacing: 0.04em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: bold; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .who { color: var(--line); overflow-wrap: anywhere; }
.nav-links form { margin: 0; }

/* --- reports table ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line);
  margin-bottom: 24px; }
table.reports { border-collapse: collapse; width: 100%; }
.reports th, .reports td { padding: 8px 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); }
.reports th { background: var(--navy); color: #fff; font-size: 0.85rem; white-space: nowrap; }
.reports tbody tr:last-child td { border-bottom: 0; }
.reports .num { text-align: right; }
.reports .nowrap { white-space: nowrap; }

.status { font-weight: bold; text-align: center; white-space: nowrap; }
.status-normal { background: var(--normal); }
.status-attention { background: var(--attention); }
.status-critical { background: var(--critical); }

.empty { background: #fff; border: 1px solid var(--line); padding: 16px; color: var(--muted); }

/* --- forms (sign in, password) ------------------------------------------------------------- */
.form-page { max-width: 360px; margin: 0 auto 32px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: bold; color: var(--navy); margin-bottom: 4px; }
.field input { width: 100%; padding: 8px 10px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 3px; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0;
  border-color: var(--accent); }
.help { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.help ul { margin: 0; padding-left: 18px; }

ul.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--error);
  font-size: 0.9rem; }
ul.errorlist.nonfield { background: var(--critical); color: var(--ink); padding: 8px 10px;
  margin: 0 0 14px; border-radius: 3px; }

button { font: inherit; font-weight: bold; color: #fff; background: var(--navy); border: 0;
  border-radius: 3px; padding: 9px 18px; cursor: pointer; }
button:hover { background: var(--accent); }
button.link { background: none; padding: 0; color: #fff; text-decoration: underline; }
button.link:hover { background: none; color: var(--line); }
