/* Faketides photo record (Faketides branding). */
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}
.report-sheet {
  --rpt-ink: #1b2430;
  --rpt-muted: #5b6570;
  --rpt-line: #c9d8df;
  --rpt-band: #eef6f8;
  --rpt-accent: #2f6f7a;
  --rpt-accent-2: #7a4a7a;
  --rpt-paper: #fffcf7;
  --rpt-rule: #3d8a96;
  background: var(--rpt-paper);
  color: var(--rpt-ink);
  width: 8.5in;
  max-width: 100%;
  margin: 0 auto 48px;
  padding: 0.55in 0.6in 0.5in;
  box-shadow: 0 10px 36px rgba(23, 22, 20, 0.08);
  border: 1px solid #e4ddd2;
  font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", Calibri, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.report-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.report-brand img.report-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin-top: 2px;
}
.report-title {
  margin: 0;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--rpt-accent);
  line-height: 1;
  text-transform: uppercase;
}
.report-wordmark {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--rpt-accent-2);
  text-transform: uppercase;
}
.report-contact {
  text-align: right;
  color: var(--rpt-accent);
  font-size: 13px;
  line-height: 1.55;
  padding-top: 4px;
  flex: 0 0 auto;
}
.report-contact a { color: var(--rpt-accent); text-decoration: none; }
.report-rule {
  height: 2px;
  background: var(--rpt-rule);
  border: 0;
  margin: 14px 0 18px;
}
.report-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.report-task .k {
  font-size: 13px;
  color: var(--rpt-accent);
  font-weight: 650;
  margin-right: 8px;
}
.report-task .num {
  display: inline-block;
  background: var(--rpt-band);
  padding: 3px 12px 2px;
  font-weight: 650;
  letter-spacing: 0.04em;
  min-width: 7em;
}
.report-dates {
  text-align: right;
  font-size: 14px;
  color: var(--rpt-accent);
}
.report-dates .row { margin: 0 0 4px; }
.report-dates .lab { margin-right: 6px; }
.report-dates .val { color: var(--rpt-ink); }
.report-fields { margin: 8px 0 16px; }
.report-field {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 6px;
}
.report-field .k {
  color: var(--rpt-accent);
  font-weight: 650;
  font-size: 14px;
}
.report-field .v {
  background: var(--rpt-band);
  padding: 3px 10px 2px;
  min-height: 1.5em;
}
.report-sec { margin: 16px 0 0; }
.report-sec > .h {
  margin: 0 0 6px;
  color: var(--rpt-accent);
  font-weight: 650;
  font-size: 14px;
}
.report-sec > .h span { font-weight: 400; }
.report-box {
  background: var(--rpt-band);
  padding: 8px 10px;
  min-height: 2.4em;
}
.report-results-wrap {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: start;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--rpt-rule);
}
.report-table th, .report-table td {
  border: 1px solid var(--rpt-rule);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
.report-table th {
  background: var(--rpt-band);
  color: var(--rpt-accent);
  font-weight: 650;
  font-size: 13px;
}
.report-table td.test { width: 70%; font-weight: 600; }
.report-table td.obs { min-height: 1.6em; }
.report-judge {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--rpt-muted);
  font-style: italic;
}
.report-qr {
  text-align: center;
}
.report-qr img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto;
  background: #fff;
}
.report-sign-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-top: 18px;
}
.report-sign-row .k { color: var(--rpt-accent); font-weight: 650; }
.report-sign {
  min-width: 42%;
  text-align: left;
}
.report-sign img {
  display: block;
  max-height: 64px;
  max-width: 240px;
  object-fit: contain;
  margin: 4px 0;
}
.report-sign .script {
  font-family: "Segoe Script", "Brush Script MT", "Apple Chancery", "Palatino Linotype", cursive;
  font-size: 28px;
  line-height: 1.1;
  color: var(--rpt-ink);
  padding: 4px 0 0;
}
.report-sign .sig-line {
  border-bottom: 1px solid var(--rpt-line);
  min-height: 42px;
  min-width: 180px;
}
.report-verify {
  margin: 22px 0 0;
  text-align: center;
  color: var(--rpt-ink);
  font-size: 13px;
}
.report-verify .key {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 16px;
}
.report-flow { margin-top: 26px; }
.report-flow .h { margin-bottom: 8px; }
.report-flow table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--rpt-rule); }
.report-flow th, .report-flow td {
  border: 1px solid var(--rpt-line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}
.report-flow th {
  background: var(--rpt-band);
  color: var(--rpt-accent);
  font-size: 12px;
  font-weight: 650;
}
.report-flow td.rpt-step { width: 46%; font-weight: 600; white-space: normal; word-break: normal; display: table-cell; background: transparent; border-radius: 0; padding: 8px 10px; grid-template-columns: none; }
.report-flow td.rpt-when, .report-flow td.rpt-sig { min-height: 1.6em; white-space: nowrap; display: table-cell; background: transparent; border-radius: 0; padding: 8px 10px; }
.report-flow td.blank { color: transparent; border-bottom: 1px solid var(--rpt-line); }
.report-photos { margin-top: 28px; }
.report-photos .h { margin-bottom: 10px; }
.report-photos .photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.report-photos figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rpt-line);
}
.report-photos img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f3f1ec;
}
.report-photos figcaption {
  padding: 8px 10px 10px;
  font-size: 12px;
  color: var(--rpt-muted);
}
.report-photos figcaption strong { display: block; color: var(--rpt-ink); font-size: 13px; }
.report-disc {
  margin-top: 22px;
  color: var(--rpt-muted);
  font-size: 11px;
  line-height: 1.45;
}
.report-disc p { margin: 0 0 6px; }

/* Admin photo-record inputs */
.admin-report .rpt-grid { display: grid; gap: 14px; }
.admin-report label.fld { display: block; }
.admin-report label.fld span {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 4px;
}
.admin-report input[type="text"],
.admin-report input[type="datetime-local"],
.admin-report textarea {
  width: 100%;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line, #ddd6c8);
  border-radius: 8px;
  background: #fff;
}
.admin-report textarea { min-height: 90px; resize: vertical; }
.admin-report .vial-obs { display: grid; gap: 8px; margin: 8px 0 0; }
.workflow-admin { margin-top: 8px; }
.workflow-admin table { width: 100%; border-collapse: collapse; }
.workflow-admin th, .workflow-admin td {
  border-bottom: 1px solid var(--line, #ddd6c8);
  padding: 8px 6px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}
.workflow-admin .btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sig-preview { max-height: 72px; max-width: 240px; display: block; margin: 8px 0; background: #fff; }

@page { size: letter; margin: 0.45in; }
@media print {
  .test-banner, .open-banner, .site-header, .site-footer,
  .theme-fab, .snow-fab, .chat-dock, .flash, .report-toolbar,
  #theme-toggle, #snow-toggle, #chat-dock {
    display: none !important;
  }
  body, html { background: #fff !important; }
  .wrap { max-width: none; padding: 0; margin: 0; }
  .report-sheet {
    box-shadow: none;
    border: 0;
    margin: 0;
    width: auto;
    max-width: none;
    padding: 0;
  }
  .report-sheet::before { display: none; }
  .report-photos img { height: 2.4in; }
  a { color: inherit; text-decoration: none; }
}
@media (max-width: 800px) {
  .report-sheet { padding: 22px 18px 28px; }
  .report-head, .report-meta, .report-results-wrap, .report-sign-row, .report-field {
    display: block;
  }
  .report-contact, .report-dates { text-align: left; margin-top: 10px; }
  .report-field .k { margin-bottom: 2px; }
}
