/* ============================================================
   Vapula — Falling Angel Resources operations portal
   v0.1.0 · 2026-07-08
   Brand: FA black + crimson; division accents (Aerial Arena blue,
   Rooftop Safety green). Self-contained, responsive, no external deps.
   ============================================================ */
:root {
  --fa-black:   #17171a;
  --fa-ink:     #23242a;
  --fa-crimson: #c8102e;
  --fa-crimson-dk: #9d0c24;
  --aa-blue:    #1f7fce;
  --rss-green:  #4faa79;
  --rss-blue:   #2f6fb0;
  --bg:         #eef0f3;
  --card:       #ffffff;
  --line:       #dfe2e7;
  --muted:      #6b7280;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(20,20,30,.06), 0 6px 20px rgba(20,20,30,.07);
  /* Report type scale — points, print-native. 12pt headings / 10pt body. */
  --fs-display:    16pt;   /* report title, compliance verdict headline */
  --fs-cert-title: 13pt;   /* certificate title */
  --fs-heading:    12pt;   /* section headings */
  --fs-body:       10pt;   /* all running prose */
  --fs-data:        9pt;   /* tables, cover meta, dense blocks */
  --fs-caption:     8pt;   /* fine print, captions, foot */
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fa-ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, #fff 0%, var(--bg) 60%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.masthead {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 40px 20px 8px;
}
.masthead img.logo { width: 132px; height: auto; }
.masthead h1 {
  margin: 14px 0 2px; font-size: 1.55rem; letter-spacing: .01em;
  font-weight: 800; color: var(--fa-black);
}
.masthead h1 .accent { color: var(--fa-crimson); }
.masthead p.tag {
  margin: 0; color: var(--muted); font-size: .95rem; letter-spacing: .02em;
}
.rule {
  width: 64px; height: 4px; border-radius: 3px; margin: 18px auto 0;
  background: var(--fa-crimson);
}

/* ---------- function grid ---------- */
main { max-width: 960px; margin: 0 auto; padding: 26px 18px 60px; }
.section-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 700; margin: 10px 6px 14px;
}
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 20px 18px; overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent, var(--fa-crimson));
}
.card .divlogo {
  height: 30px; width: auto; max-width: 190px;
  align-self: flex-start;      /* stop the flex column stretching it wide */
  object-fit: contain; margin-bottom: 12px; opacity: .95;
}
.card h2 { margin: 0 0 6px; font-size: 1.16rem; font-weight: 750; color: var(--fa-black); }
.card p { margin: 0 0 16px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.card .spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 16px;
  font-size: .92rem; font-weight: 650; cursor: pointer; text-decoration: none;
  background: var(--accent, var(--fa-crimson)); color: #fff;
  transition: filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.card.active:hover { transform: translatey(-2px); box-shadow: 0 2px 4px rgba(20,20,30,.08), 0 14px 34px rgba(20,20,30,.12); }

.card.soon { opacity: .78; }
.card.soon::before { background: #c3c8d0; }
.badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: #f0f2f5; border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 999px;
}
.btn.disabled { background: #c3c8d0; cursor: not-allowed; pointer-events: none; }

footer {
  text-align: center; color: var(--muted); font-size: .78rem;
  padding: 22px 16px 40px;
}
footer .dot { color: var(--line); margin: 0 6px; }

/* ---------- Theatre Audit app ---------- */
.masthead.compact { padding: 26px 20px 4px; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.msg { color: var(--muted); font-size: .86rem; min-height: 1.1em; margin: 10px 0 0; }
.linkbtn {
  background: none; border: 0; color: var(--aa-blue); cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; padding: 4px 2px;
}
.linkbtn:hover { text-decoration: underline; }
.topnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }

/* shared navigation bar — breadcrumb (left) + Staff / Sign out (right) */
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 6px 0 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.crumbs2 { display: flex; align-items: center; flex-wrap: wrap; gap: 1px; min-width: 0; }
.crumb { font-size: .84rem; padding: 3px 4px; border: 0; background: none; }
.crumb-link { color: var(--aa-blue); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; }
.crumb-link:hover { text-decoration: underline; }
.crumb-cur { color: var(--fa-ink); font-weight: 700; }
.crumb-sep { color: var(--muted); padding: 0 1px; }
.navbar-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.auth .fld, .card > .fld { display: flex; flex-direction: column; gap: 5px; margin: 12px 0 0; font-size: .8rem; font-weight: 650; color: var(--fa-ink); }
.auth input, .card > .fld input {
  font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fbfcfd;
}
.auth input:focus, .card > .fld input:focus { outline: 2px solid var(--aa-blue); border-color: transparent; }
.auth input:disabled, .card > .fld input:disabled { color: var(--muted); background: #f1f3f5; }
.auth .btn { margin-top: 18px; }

.hidden { display: none !important; }
.msg.err { color: #b3261e; font-weight: 600; }
/* Show/Hide password toggle — button overlaid on the right of the field */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 64px; box-sizing: border-box; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 6px 8px;
  font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.pw-toggle:hover { color: var(--aa-blue); }
.auth-alt { margin-top: 16px; text-align: center; }
.invite-link {
  margin: 10px 0; padding: 10px 12px; background: #f4f7fb; border: 1px solid var(--line);
  border-radius: 8px; font-family: ui-monospace, Menlo, monospace; font-size: .76rem; word-break: break-all;
}

.apphead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.apphead .crumbs { font-weight: 800; color: var(--fa-black); font-size: 1.25rem; }
.apphead .sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }

.grp { margin: 0 0 22px; }
.grp-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 2px 10px;
}
.grp-h span:first-child { font-weight: 700; color: var(--fa-black); font-size: .98rem; }
.grp-meta { color: var(--muted); font-size: .74rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer;
  min-width: 46px; padding: 10px 12px; border-radius: 10px;
  background: #fff; color: var(--aa-blue); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .1s ease, border-color .1s ease;
}
.chip:hover { transform: translatey(-1px); border-color: var(--aa-blue); }
.chip-mute { color: var(--muted); box-shadow: none; }
.chip-mute:hover { border-color: var(--line); }

.qpreview { margin: 12px 0 0; padding-left: 20px; color: var(--fa-ink); }
.qpreview li { margin: 0 0 9px; line-height: 1.4; font-size: .92rem; }
.qtype { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; margin-left: 4px; }
.chip-done { background: #eaf6ef; color: var(--rss-green); border-color: #bfe3cd; }
.chip-done::after { content: " ✓"; }

/* ---------- wizard ---------- */
.wizbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 8px; }
.wprog { color: var(--muted); font-size: .78rem; display: flex; gap: 12px; }
.wprog span:last-child { font-weight: 700; color: var(--aa-blue); }
.wtrack { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 0 2px 16px; }
.wfill { height: 100%; background: var(--aa-blue); transition: width .2s ease; }
.wizq .qnum { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.qlabel { margin: 8px 0 20px; font-size: 1.3rem; line-height: 1.35; color: var(--fa-black); font-weight: 700; }

.yesno { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.opt {
  font: inherit; cursor: pointer; padding: 26px 8px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; color: var(--fa-ink);
  font-size: 1.1rem; transition: transform .08s ease, border-color .1s, background .1s;
}
.opt b { display: block; font-size: 1.15rem; }
.opt:hover { transform: translatey(-2px); }
.opt-y.primary { border-color: var(--rss-green); }
.opt-y:hover, .opt-y.sel { background: #eaf6ef; border-color: var(--rss-green); color: #1f7d4d; }
.opt-n:hover, .opt-n.sel { background: #fdecef; border-color: var(--fa-crimson); color: var(--fa-crimson-dk); }
.opt-na:hover, .opt-na.sel { background: #eef1f5; border-color: var(--muted); color: var(--muted); }
.opt.sel { font-weight: 800; }
.hint { color: var(--muted); font-size: .8rem; margin: 16px 0 0; }

.wfld { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--fa-ink); margin-bottom: 14px; }
.wfld input, .wfld textarea, .wfld select { font: inherit; font-weight: 400; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.wfld input:focus, .wfld textarea:focus, .wfld select:focus { outline: 2px solid var(--aa-blue); border-color: transparent; }
.wfld .hint { font-weight: 400; color: var(--muted); }
.chk-list { display: flex; flex-direction: column; gap: 2px; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; cursor: pointer; }
.chk input { width: auto; padding: 0; margin: 0; border-radius: 0; accent-color: var(--aa-blue); }
.chk input:focus { outline: 2px solid var(--aa-blue); }
.addrow { display: flex; gap: 8px; margin-top: 6px; }
.addrow input { flex: 1; }
.addrow .linkbtn { white-space: nowrap; }
.wizq .btn, .card > .btn { width: 100%; margin-top: 4px; padding: 15px; font-size: 1rem; }
.wnav { display: flex; justify-content: space-between; margin-top: 14px; }

.flag-line { color: var(--fa-crimson-dk); font-weight: 650; background: #fdecef; padding: 10px 12px; border-radius: 10px; }
.ok-line { color: #1f7d4d; font-weight: 650; background: #eaf6ef; padding: 10px 12px; border-radius: 10px; }
.sumlist { margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sumrow { border-top: 1px solid var(--line); }
.sumrow:first-child { border-top: 0; }
.sumrow-no { background: #fdf4f6; }
.sumrow-h { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; align-items: baseline; }
.sumrow-h:hover { background: rgba(0,0,0,.02); }
.sq { font-size: .86rem; line-height: 1.35; color: var(--fa-ink); }
.sv { font-weight: 750; font-size: .9rem; white-space: nowrap; }
.sv-yes { color: var(--rss-green); }
.sv-no { color: var(--fa-crimson); }
.evid { padding: 0 14px 14px; }
.cambtn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .86rem; font-weight: 650; color: var(--aa-blue); border: 1px dashed var(--aa-blue); border-radius: 10px; padding: 10px 14px; background: #f5f9fd; }
.cambtn-lg { display: flex; justify-content: center; width: 100%; margin-top: 6px; padding: 18px 14px; font-size: .95rem; }
/* offline-sync badge — floats over everything so unsynced work is always visible */
.syncbadge { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999;
  padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: pointer;
  color: #7a4d00; background: #ffedcc; border: 1px solid #f0c069; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.syncbadge.syncing { color: #08467a; background: #d9ecff; border-color: #8cc2f0; cursor: default; }
.syncbadge.synced { color: #0a6b2e; background: #d8f3df; border-color: #86d6a0; cursor: default; }
.tagthumb { margin-top: 12px; }
.tagthumb img { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; border: 1px solid var(--aa-line, #e3e8ee); }
.btn.small { width: auto; margin-top: 14px; padding: 10px 16px; font-size: .9rem; }

/* ---------- element registers ---------- */
.reg-h { display: flex; align-items: baseline; gap: 9px; margin: 24px 4px 9px; font-weight: 750; color: var(--fa-ink); font-size: .95rem; }
.reg-h:first-of-type { margin-top: 8px; }
.reg-h span { color: var(--muted); font-weight: 600; font-size: .78rem; }
.ftable { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ftrow {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer;
}
.c-id { color: var(--muted); font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.ftrow:first-child { border-top: 0; }
.ftrow:not(.fthead):hover { background: #f7f9fb; }
.fthead {
  cursor: default; background: #f4f6f8; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 9px 14px;
}
.fthead:hover { background: #f4f6f8; }
.c-num { font-weight: 750; color: var(--fa-black); font-variant-numeric: tabular-nums; }
.c-what b { display: block; font-size: .95rem; color: var(--fa-black); font-weight: 650; line-height: 1.2; }
.c-sub { font-size: .72rem; color: var(--muted); }
.c-stat { display: flex; align-items: center; gap: 8px; justify-self: end; white-space: nowrap; }
.st { font-size: .78rem; font-weight: 700; }
.st-none { color: var(--muted); font-weight: 500; }
.st-pass { color: var(--rss-green); }
.st-amber { color: #c98a12; }
.st-fail { color: var(--fa-crimson); }
.r-pass { border-left: 4px solid var(--rss-green); }
.r-amber { border-left: 4px solid #e6a817; background: #fdfaf1; }
.r-fail { border-left: 4px solid var(--fa-crimson); background: #fdf7f8; }
/* defect severity traffic-light toggle (on a "No" in the review) */
.sevpick { display: flex; gap: 8px; padding: 0 14px 8px; }
.sev { flex: 1; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font-size: .82rem; font-weight: 650; color: var(--muted); }
.sev-amber.sel { background: #fdfaf1; border-color: #e6a817; color: #a9740d; }
.sev-red.sel { background: #fdf7f8; border-color: var(--fa-crimson); color: var(--fa-crimson); }
.wfld.gnote { margin-top: 4px; }
.caret { color: var(--muted); transition: transform .15s ease; display: inline-block; }
.ftrow.expanded .caret { transform: rotate(90deg); }

.facc { display: none; padding: 0 14px; background: #fbfcfd; border-top: 0; }
.facc.open { display: block; border-top: 1px solid var(--line); }
.facc-in { padding: 6px 0 16px; }
.facc-note { color: var(--muted); font-size: .86rem; padding: 12px 2px; }
.facc-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; background: #fff; }
.facc-q { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: .84rem; }
.facc-q:first-child { border-top: 0; }
.facc-q > span:first-child { color: var(--fa-ink); line-height: 1.35; }
.fv { font-weight: 700; white-space: nowrap; }
.fv.v-pass { color: var(--rss-green); }
.fv.v-fail { color: var(--fa-crimson); }
.facc-qnote { padding: 0 12px 9px 22px; font-size: .8rem; color: var(--fa-crimson-dk); background: #fdf4f6; }
.facc-grp, .sum-grp {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800;
  color: var(--aa-blue); background: #eef4fb; padding: 7px 12px; border-top: 1px solid var(--line);
}
.facc-grp:first-child, .sum-grp:first-child { border-top: 0; }
.topnav-r { display: flex; align-items: center; gap: 16px; }

/* ---------- report ---------- */
.rep-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
/* on-screen the report renders as an actual A4 page with Word "Normal" 1-inch
   (25.4mm) margins, so the view matches the print output */
.rep-doc { background: #fff; box-shadow: var(--shadow); color: var(--fa-ink);
  width: 210mm; max-width: 100%; margin: 0 auto; padding: 25.4mm; box-sizing: border-box; }
.rep-cover { text-align: center; border-bottom: 3px solid var(--fa-crimson); padding-bottom: 20px; margin-bottom: 6px; }
.rep-logo { width: 84px; height: auto; }
.rep-cover h1 { font-size: var(--fs-display); font-weight: 800; color: var(--fa-black); margin: 10px 0 4px; }
.rep-venue { font-size: var(--fs-body); color: var(--fa-ink); }
.rep-meta { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: var(--fs-data); }
.rep-meta th { text-align: left; color: var(--muted); font-weight: 700; padding: 5px 10px; width: 15%; white-space: nowrap; }
.rep-meta td { padding: 5px 10px; }
.rep-verdict { text-align: center; margin: 22px 0; padding: 18px; border-radius: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rep-verdict.ok { background: #eaf6ef; }
.rep-verdict.no { background: #fdecef; }
.rep-verdict-b { font-size: var(--fs-display); font-weight: 900; letter-spacing: .04em; }
.rep-verdict.ok .rep-verdict-b { color: #1f7d4d; }
.rep-verdict.no .rep-verdict-b { color: var(--fa-crimson); }
.rep-verdict p { margin: 6px 0 0; font-size: var(--fs-body); color: var(--fa-ink); }
.rep-sec { margin-top: 22px; }
.rep-sec h2 { font-size: var(--fs-heading); font-weight: 700; color: var(--fa-black); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin: 0 0 10px; }
.rep-p { font-size: var(--fs-body); line-height: 1.55; color: var(--fa-ink); margin: 0; }
.rep-grp { font-size: var(--fs-data); text-transform: uppercase; letter-spacing: .1em; color: var(--aa-blue); font-weight: 800; margin: 14px 0 6px; }
.finding { border-left: 3px solid var(--fa-crimson); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.finding.cls-managed { border-left-color: #b26a00; }
.finding.cls-forward_plan { border-left-color: var(--aa-blue); }
.finding.cls-observation { border-left-color: var(--muted); }
.finding-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.finding-h span:first-child { font-weight: 700; color: var(--fa-black); }
.finding p { margin: 4px 0 0; font-size: var(--fs-body); line-height: 1.45; }
.finding .rec { color: var(--fa-ink); }
.prio { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: #f0f2f5; color: var(--muted); }
.prio-immediate { background: #fdecef; color: var(--fa-crimson); }
.prio-within_12_months { background: #fff4e6; color: #b26a00; }
.ncrow { margin: 0 0 9px; font-size: .86rem; }
.ncrow b { color: var(--fa-black); }
.ncrow ul { margin: 3px 0 0; padding-left: 20px; }
.ncrow li { margin: 1px 0; }
.ncrow i { color: var(--muted); font-style: normal; }
.ncrow-red i { color: var(--fa-crimson-dk); }
.rep-tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-data); }
.rep-tbl th { text-align: left; background: #f4f6f8; color: var(--muted); font-weight: 700; padding: 6px 9px; border: 1px solid var(--line); }
.rep-tbl td { padding: 6px 9px; border: 1px solid var(--line); }
.rep-note { color: #8a6d00; font-size: var(--fs-body); background: #fffbe6; padding: 10px 12px; border-radius: 8px; }
.rep-scroll { overflow-x: auto; }
/* fixed layout so every register table shares identical column widths (they align) */
.rep-reg { table-layout: fixed; font-size: var(--fs-data); }
.rep-reg td, .rep-reg th { overflow-wrap: break-word; }
.rep-reg td:first-child, .rep-reg th:first-child { text-align: center; width: 3.8em; overflow-wrap: normal; white-space: nowrap; }
.rep-reg td:last-child, .rep-reg th:last-child { width: 6em; white-space: nowrap; }
/* issue/note tier tables: No. · Item · Note(detail) — same clean look as the register */
.rep-notetbl { table-layout: fixed; font-size: var(--fs-data); }
.rep-notetbl td, .rep-notetbl th { overflow-wrap: break-word; }
.rep-notetbl td:first-child, .rep-notetbl th:first-child { width: 3.8em; text-align: center; white-space: nowrap; }
.rep-notetbl td:nth-child(2), .rep-notetbl th:nth-child(2) { width: 26%; }
.rep-inote { color: var(--muted); font-size: .92em; }
.issue-ul { margin: 4px 0 0; padding-left: 18px; font-size: .86rem; line-height: 1.5; }
/* traffic-light status chip */
.tl { display: inline-block; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tl-green { color: var(--rss-green); }
.tl-amber { color: #b0800f; }
.tl-red { color: var(--fa-crimson); }
.tl-none { color: var(--muted); font-weight: 500; }
.reg-idle td { color: var(--muted); background: #fafbfc; }
.rep-nr { color: var(--muted); font-size: var(--fs-data); font-style: italic; margin: 2px 0 0; }
.rep-sys { font-weight: 700; font-size: var(--fs-body); margin: 12px 0 4px; color: var(--fa-black); }
/* certificate of compliance — mirrors the RSS/TSS two-column certificate */
.cert-doc { display: grid; grid-template-columns: 180px 1fr; gap: 0; }
.cert { page-break-inside: avoid; break-inside: avoid; }
.cert-side { border-right: 1px solid var(--line); padding-right: 16px; text-align: right; font-size: var(--fs-caption); color: var(--fa-ink); display: flex; flex-direction: column; }
.cert-side-logo { width: 84px; height: auto; margin-left: auto; margin-bottom: 12px; }
.cert-side-svc { line-height: 1.7; margin-bottom: auto; }
.cert-side-contact { margin-top: 24px; line-height: 1.6; color: var(--fa-ink); }
.cert-main { padding-left: 24px; }
.cert .cert-title { font-style: italic; font-weight: 800; font-size: var(--fs-cert-title); color: var(--fa-black); margin: 0 0 10px; }
.cert-statement { font-size: var(--fs-body); line-height: 1.5; margin: 0 0 8px; }
.cert-cond { font-size: var(--fs-data); line-height: 1.45; padding-left: 18px; margin: 4px 0 0; }
.cert-cond li { margin-bottom: 5px; }
.cert-sign { margin-top: 20px; font-size: var(--fs-data); line-height: 1.4; }
.cert-sign-space { height: 48px; }
.cert-sig-img { display: block; height: 56px; width: auto; margin-bottom: 2px; }
.cert-sign b { font-style: italic; }
.cert-foot { margin-top: 14px; padding-top: 7px; border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--muted); }

/* report footer — shown once at the end on screen (so the text is visible),
   fixed and repeated on every page in print. */
.rep-print-foot { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); text-align: center; font-size: 8pt; line-height: 1.45; color: #555; }

@media print {
  @page { margin: 25.4mm 25.4mm 22mm; }   /* bottom room for the running footer */
  .masthead, footer, .rep-actions, main > p { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; margin: 0; }
  .rep-doc { box-shadow: none; border: 0; border-radius: 0; padding: 0; width: auto; max-width: none; }
  .rep-sec, .finding, .ncrow { page-break-inside: avoid; }
  .rep-reg tr { page-break-inside: avoid; }
  .rep-pagebreak { page-break-before: always; }
  .rep-print-foot { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 4pt 0 2pt; background: #fff; border-top: .5pt solid #999; }
  /* Save-PDF (Paged.js) mode: only the paginated output prints. */
  body.pdfmode > *:not(#pdf-pages) { display: none !important; }
  body.pdfmode .rep-print-foot { display: none !important; }
}
#pdf-pages { background: #f4f5f7; }
.r-empty { background: #fafbfc; }
.r-empty b { font-weight: 500; color: var(--muted); }
.r-empty .c-num { color: var(--muted); font-weight: 500; }
