:root {
  --navy: #0f2744;
  --navy-2: #17375e;
  --paper: #f4f7fb;
  --ink: #122033;
  --muted: #5b6d82;
  --line: #d5deea;
  --pass: #157347;
  --pass-bg: #e6f6ec;
  --fail: #b42318;
  --fail-bg: #fde8e6;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.admin-body { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.topbar { margin-bottom: 20px; }
.eyebrow { margin: 0; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
h1, h2 { margin: 4px 0 12px; }
.hint, .muted { color: var(--muted); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }
.row { display: flex; gap: 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
input, button, textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
button {
  background: var(--navy);
  color: var(--white);
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
button.ghost { background: #e8eef6; color: var(--navy); }
.actions { display: flex; gap: 10px; align-items: center; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.badge.pass { background: var(--pass-bg); color: var(--pass); }
.badge.fail { background: #fdecea; color: #c62828; }
a.badge.fail, a.stop-note-link {
  color: #c62828;
  text-decoration: none;
}
a.badge.fail:hover, a.stop-note-link:hover { text-decoration: underline; }
.error { color: var(--fail); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button { padding: 6px 10px; font-size: 13px; }
.qr-group-title {
  margin: 18px 0 0;
  font-size: 15px;
}
.qr-label {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  background: var(--white);
}
.qr-label img { width: 140px; height: 140px; }
.qr-label strong { display: block; margin-top: 6px; font-size: 18px; }
.qr-label .print-qr { margin-top: 10px; width: 100%; }
.warn-card { border-color: #f4c430; background: #fff8e1; }
.scan-steps { margin: 0 0 12px; padding-left: 20px; }
.scan-steps li { margin: 8px 0; }
.home-note { margin: 0; padding: 12px 16px; color: var(--navy); background: #fff8e1; }
.board { display: flex; flex-direction: column; }
.board-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.board-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eef6;
}
.board-thumb.empty { display: block; }
.table-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.machine-photo {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #0b1c30;
  cursor: zoom-in;
}
.incident-preview {
  margin: 8px 0 12px;
  padding: 0;
}
.incident-preview[hidden] { display: none; }
#incidentPhotoPreview {
  height: auto;
  max-height: 420px;
  object-fit: contain;
}
#photoPreview,
#brakeCertPreview,
#editPhotoPreview,
#editBrakeCertPreview,
#addPhotoPreview,
#addBrakeCertPreview {
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}
.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.inline-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.area-assign {
  margin: 0 16px 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
}
.area-assign legend {
  font-weight: 700;
  color: var(--navy);
}
.area-box-list {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.area-box-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-box-row .inline-check { flex: 1; }
.area-box-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.area-box-card select { width: 100%; }
.area-mech-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 0 10px;
}
.area-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.alloc-assign { margin: 12px 0; }
.alloc-list-title { margin: 16px 16px 8px; }
.alloc-list { display: grid; gap: 8px; }
.alloc-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.mechanic-alloc {
  margin: 0 0 18px;
  padding: 12px 0;
}
.mechanic-alloc h3 { margin: 0 16px 8px; }
.admin-activity {
  margin: 0 0 18px;
}
.admin-activity h3 {
  margin: 0 0 8px;
}
.board-row em { font-style: normal; font-weight: 800; }
.board-row.pass em { color: var(--pass); }
.board-row.fail em { color: #c62828; }
.board-row.recall em { color: #e67a00; }

.card-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #d9e3ef;
}
.inspect-card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 39, 68, 0.18);
}
.app-credit {
  background: linear-gradient(160deg, #6b7c90 0%, #3d5470 42%, #17375e 100%);
  color: #d7e3f0;
  text-align: center;
  padding: 18px 16px 14px;
  border-top: 3px solid #7eb3dc;
}
.app-credit-message {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.app-credit-plant {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #d7e3f0;
}
.app-credit-dial {
  display: inline-block;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.app-credit-dial:hover { color: #b8d7f2; }
.app-credit-by {
  margin: 0;
  font-size: 11px;
  color: #b8c6d6;
  font-weight: 500;
}
.app-credit-by a {
  color: #b8d7f2;
  text-decoration: none;
  font-weight: 600;
}
.app-credit-by a:hover { color: #ffffff; }
.accordion-list {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.accordion {
  border-bottom: 1px solid var(--line);
}
.accordion-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #e8eef6;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
}
.accordion-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.accordion-toggle[aria-expanded="true"] {
  background: var(--white);
}
.accordion-toggle[aria-expanded="true"] .accordion-icon {
  background: var(--navy);
}
.accordion-toggle.alert {
  background: var(--fail-bg);
  color: var(--fail);
}
.accordion-toggle.alert[aria-expanded="true"] {
  background: #fff5f4;
}
.accordion-toggle.alert .accordion-icon {
  background: var(--fail);
}
.fact-alert {
  background: var(--fail-bg);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.fact-alert span,
.fact-alert strong { color: var(--fail); }
.accordion-body { background: var(--white); }
.nested-list {
  border-top: 1px solid var(--line);
}
.nested-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #f3f6fa;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
}
.nested-item { border-top: 1px solid var(--line); }
.nested-toggle .accordion-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-size: 18px;
}
.nested-toggle[aria-expanded="true"] { background: var(--white); }
.nested-toggle.nested-parent,
.nested-toggle.nested-parent[aria-expanded="true"] {
  background: #143a66;
  color: #ffffff;
}
.nested-toggle.nested-parent .accordion-icon {
  background: #0a2240;
  color: #ffffff;
}
.nested-body { background: var(--white); }
.nested-body .danger-btn { margin: 0 16px 16px; }
.doc-link {
  display: block;
  margin: 0 16px 8px;
  font-weight: 700;
  color: var(--navy);
}
.tab-note, .pad { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.daily-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}
.camera-btn {
  display: block;
  margin: 0 16px 12px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.camera-btn input { display: none; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 10px 0; }
.sop-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.sop-stack .nested-item { width: 100%; }
.sop-stack .sop-row-toggle {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  padding: 16px;
}
.sop-footer { border-top: 1px solid var(--line); }
.pad-subtabs { padding: 0 16px 8px; }
.mech-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px 0;
}
.mech-summary button,
.mech-summary > div {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.mech-summary strong { display: block; font-size: 20px; }
.mech-summary span { display: block; font-size: 12px; font-weight: 600; }
.mech-filter-all { background: #e8eef6; color: var(--navy); }
.mech-filter-all.active { background: var(--navy); color: #fff; }
.mech-filter-ready { background: #cfead8; color: var(--pass); }
.mech-filter-ready.active { background: var(--pass); color: #fff; }
.mech-filter-stop { background: #f8d4d0; color: var(--fail); }
.mech-filter-stop.active { background: var(--fail); color: #fff; }
.mech-filter-overdue { background: #f8d4d0; color: var(--fail); }
.mech-filter-overdue.active { background: var(--fail); color: #fff; }
.mech-filter-soon { background: #ffe7a3; color: #7a5b00; }
.mech-filter-soon.active { background: #c79200; color: #fff; }
.mech-filter-recall { background: #ffe0c2; color: #c45c00; }
.mech-filter-recall.active { background: #e67a00; color: #fff; }
.mech-filter-offsite { background: #f8d4d0; color: var(--fail); }
.mech-filter-offsite.active { background: var(--fail); color: #fff; }
.mech-filter-wo-ok { background: #cfead8; color: var(--pass); grid-column: 1 / -1; }
.mech-filter-wo-ok.active { background: var(--pass); color: #fff; }
.mech-filter-wo-alert { background: #f8d4d0; color: var(--fail); grid-column: 1 / -1; }
.mech-filter-wo-alert.active { background: var(--fail); color: #fff; }
.wo-card label { display: block; padding: 0 0 10px; font-size: 13px; font-weight: 700; }
.wo-card input, .wo-card textarea { width: 100%; margin-top: 4px; }
.wo-card .wo-transfer,
.detail-reason .wo-transfer,
.stop-note-body .wo-transfer {
  margin: 10px 0 0;
}
.wo-transfer .accordion-toggle {
  width: 100%;
  margin: 0;
  border-radius: 10px;
}
.wo-transfer .accordion-body {
  padding: 8px 0 0;
}
.wo-transfer .wo-transfer-msg { padding: 8px 0 0; }
.mech-filter-usage { background: #d4e8f8; color: #0f4c81; }
.mech-filter-usage.active { background: #1a6fb5; color: #fff; }
.mech-filter-download { background: #0f2744; color: #fff; grid-column: 1 / -1; }
.mech-filter-download.active { background: #1a6fb5; }
.mech-filter-download:active { background: #1a6fb5; }
.hod-generate-wrap {
  padding: 8px 16px 12px;
}
.hod-generate-wrap .mech-filter-download {
  width: 100%;
  border: 0;
  text-align: left;
}
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 8px;
}
.month-nav strong {
  font-size: 14px;
  color: var(--navy);
  text-align: center;
}
.month-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  overflow-x: auto;
  padding: 4px 12px 16px;
  min-height: 180px;
}
.month-col {
  flex: 1 0 16px;
  min-width: 16px;
  max-width: 28px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 0;
  border: 0;
}
.month-val {
  font-size: 8px;
  font-weight: 700;
  color: var(--navy);
  min-height: 12px;
  line-height: 1;
}
.month-track {
  flex: 1;
  width: 100%;
  background: #e8eef6;
  border-radius: 6px 6px 2px 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.month-bar {
  width: 100%;
  background: #1a6fb5;
  border-radius: 6px 6px 2px 2px;
  min-height: 3px;
}
.month-col.active .month-bar { background: var(--navy); }
.month-col.active .month-day { color: var(--navy); font-weight: 800; }
.month-day {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #5b6d82;
}
.day-totals-date {
  margin: 0 16px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.day-totals .mech-summary { grid-template-columns: 1fr; }
.day-totals .mech-filter-usage { grid-column: auto; }
.usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 18px;
  min-height: 240px;
}
.usage-col {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}
.usage-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.2;
}
.usage-track {
  flex: 1;
  width: 28px;
  background: #e8eef6;
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.usage-bar {
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  min-height: 6px;
}
.usage-bar.ready { background: var(--pass); }
.usage-bar.stop,
.usage-bar.overdue { background: var(--fail); }
.usage-bar.soon { background: #c79200; }
.usage-bar.recall { background: #e67a00; }
.usage-label {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  text-align: center;
  word-break: break-all;
}
.subtab {
  flex: 1;
  background: #e8eef6;
  color: var(--navy);
  font-size: 13px;
}
.subtab.active { background: var(--navy); color: var(--white); }
.result-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.result-pass,
.result-fail {
  min-height: 48px;
  font-weight: 800;
  color: var(--white);
}
.result-pass { background: var(--pass); }
.result-fail { background: var(--fail); }
.result-pass.selected,
.result-fail.selected {
  box-shadow: 0 0 0 3px var(--navy);
}
.km-form { display: grid; gap: 10px; padding: 0 16px 16px; }
.service-alert {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}
.service-alert.ok { background: var(--pass-bg); color: var(--pass); }
.service-alert.soon { background: #fff3cd; color: #7a5b00; }
.service-alert.overdue { background: var(--fail-bg); color: var(--fail); }
.service-alert.unknown { background: #eef2f6; color: var(--muted); }
.report-card.service-soon { border-color: #e0b400; }
.report-card.service-overdue { border-color: var(--fail); background: #fff5f4; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions button { flex: 1; }
.danger-btn { color: var(--fail) !important; }
.add-ldv-form h3 { margin: 0 16px; }
.total-fleet-actions { padding: 12px 16px 0; display: grid; gap: 8px; }
.total-fleet-actions button { width: 100%; }
.pin-change {
  margin: 8px 0 0;
  border-bottom: 1px solid var(--line);
}
.pin-change-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #e8eef6;
  color: var(--navy);
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
}
.pin-change-toggle[aria-expanded="true"] {
  background: var(--white);
}
.pin-change-body .km-form {
  padding-top: 4px;
}
.shortcut-help {
  margin: 0;
  padding: 12px 16px;
  color: var(--navy);
  background: #e8f1fb;
  font-size: 14px;
}
.shortcut-steps {
  margin: 0;
  padding: 8px 16px 12px 36px;
  color: var(--muted);
  font-size: 14px;
}
@media (display-mode: standalone) {
  .shortcut-help, .shortcut-steps { display: none; }
}
.fleet-shortcut {
  display: inline-block;
  margin: 8px 16px 0;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.add-ldv-wrap { padding-top: 8px; }
.add-ldv-form .ghost { background: #e8eef6; color: var(--navy); }
.report-list { display: grid; gap: 12px; padding: 0 16px 16px; }
.report-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}
.report-card.has-upload { border-color: #8fd3a8; background: #f3fbf6; }
.report-card header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.report-card header div { flex: 1; }
.report-card header p { margin: 0; color: var(--muted); font-size: 13px; }
.report-card ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 13px; }
.report-shot {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #0b1c30;
  border-radius: 8px;
  margin-top: 8px;
  display: block;
  cursor: zoom-in;
}
.report-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.upload-status { padding: 0 16px 12px; color: var(--navy); font-weight: 600; }
.km-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}
.incident-card .danger-btn { margin-top: 8px; }
.pad-btn { margin: 0 16px 12px; }
.incident-stamp {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #17375e;
  background: repeating-linear-gradient(-18deg, rgba(15, 39, 68, 0.08) 0 8px, rgba(15, 39, 68, 0.02) 8px 16px);
  padding: 6px 8px;
  border-left: 3px solid var(--navy);
}
.shot { margin: 0; }
.shot img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; display: block; }
.shot figcaption { font-size: 12px; color: var(--muted); padding-top: 6px; }
.inspect-head {
  background: var(--navy);
  color: var(--white);
  padding: 20px 20px 16px;
  text-align: center;
}
.inspect-head img { max-height: 64px; max-width: 80%; }
.inspect-head h1 { font-size: 34px; margin: 12px 0 0; letter-spacing: 0.04em; }
.inspect-head p { margin: 4px 0 0; color: #c5d6ea; }
.verdict {
  text-align: center;
  padding: 18px 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.verdict.pass { background: var(--pass); color: var(--white); }
.verdict.fail { background: var(--fail); color: var(--white); }
.verdict.remove-pending { background: #e67a00; color: #fff; }
.face-photo-wrap {
  position: relative;
}
.face-photo-wrap.off-site .face-photo {
  opacity: 0.28;
  filter: grayscale(0.35);
}
.off-site-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--fail);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #fff;
  pointer-events: none;
}
.tick-box {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tick-box legend {
  font-weight: 700;
  color: var(--navy);
}
.tick-box .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-weight: 600;
}
.remove-site-summary {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.remove-site-summary li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.remove-site-summary span {
  font-size: 12px;
  color: var(--muted);
}
.remove-site-summary strong { font-size: 14px; }
button.verdict {
  display: block;
  width: 100%;
  border-radius: 0;
  padding: 18px 12px;
}
.verdict-tap .verdict-note {
  color: #ffd7d2;
}
.stop-note-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  overflow: auto;
}
.stop-note-back {
  display: block;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  background: var(--navy);
}
.stop-note-body {
  padding: 20px 16px 32px;
}
.stop-note-heading {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--fail);
  text-transform: uppercase;
}
.stop-note-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.stop-note-reasons li {
  background: var(--fail-bg);
  color: var(--fail);
  border: 2px solid var(--fail);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}
.verdict-date { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.verdict-note {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
.badge.recall { background: #ffe0c2; color: #c45c00; }
.report-card.recall-card { border-color: #e67a00; background: #fff6eb; }
.recall-pick { cursor: pointer; }
.facts { padding: 8px 20px 20px; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact span { color: var(--muted); }
.fact strong { text-align: right; }
.issues { margin: 0; padding: 12px 20px 20px 36px; color: var(--fail); }
.notify-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0;
}
.notify-head h3 { margin: 0; font-size: 16px; }
.notify-badge {
  background: var(--fail);
  color: var(--white);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.notify-list { display: grid; gap: 8px; padding: 0 16px 16px; }
.hod-block {
  padding: 12px 16px 8px;
}
.hod-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}
.hod-block .notify-list { padding: 0; }
.hod-activity { padding: 8px 0 0; }
.hod-activity .accordion-toggle {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hod-activity-body {
  padding: 12px 16px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.hod-activity-body #hodActivityClose {
  width: 100%;
  margin-bottom: 10px;
}
.hod-request .card-actions { margin-top: 8px; }
.notify-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--white);
}
.notify-item.unread { border-color: #e0b400; background: #fff8e1; }
.notify-item.recall { border-color: #e67a00; background: #fff6eb; }
.notify-item.recall a { color: #c45c00; }
.notify-item time { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.notify-comment {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
}
.notify-toast-host {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 24px));
}
.notify-toast {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.25);
}
.notify-toast p { margin: 6px 0 0; color: #c5d6ea; }
.notify-toast.recall {
  background: #e67a00;
}
.notify-toast.recall p { color: #fff6eb; }
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 28, 48, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.photo-viewer img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}
.photo-viewer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.photo-viewer-open { overflow: hidden; }
.recall-reason {
  margin: 0 16px 10px;
  color: #c45c00;
  font-weight: 700;
  font-size: 14px;
}
.report-shot-wrap { margin: 0; }
.report-shot-wrap figcaption { font-size: 12px; color: var(--muted); padding-top: 4px; }

@media print {
  .admin-body > :not(#adminApp),
  .topbar,
  .card:not(:last-of-type),
  #printBtn,
  .print-qr { display: none !important; }
  #adminApp, .card:last-of-type { display: block !important; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); }
  body.print-single .section-head,
  body.print-single .card > .muted { display: none !important; }
  body.print-single .qr-sheet { grid-template-columns: 1fr; justify-items: center; }
  body.print-single .qr-label:not(.print-this) { display: none !important; }
  body.print-single .qr-label.print-this {
    max-width: 280px;
    border-style: solid;
  }
  body.print-single .qr-group-title { display: none !important; }
  body.print-single .qr-sheet:not(:has(.print-this)) { display: none !important; }
}

.spark-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 40px;
  padding: 0 16px 8px;
}
.spark-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 40px;
}
.spark-bar {
  width: 100%;
  background: #1a6fb5;
  border-radius: 3px 3px 1px 1px;
  min-height: 3px;
}
.detail-docs {
  margin: 0 16px 14px;
  padding-left: 18px;
  font-size: 13px;
}
.detail-card ul { font-size: 13px; }
.detail-reason {
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fail-bg);
  color: var(--fail);
}
.detail-reason p {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-reason ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fail);
  font-weight: 700;
}
.detail-card li.detail-alert {
  color: var(--fail);
  font-weight: 700;
}
.detail-card li.detail-soon {
  color: #7a5b00;
  font-weight: 700;
}
.detail-docs li.detail-alert { color: var(--fail); font-weight: 700; }
.recall-card .detail-reason {
  background: #fff6eb;
  color: #c45c00;
}
.recall-card .detail-reason ul { color: #c45c00; }

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
}
