:root {
  color-scheme: light;
  --navy-950: #0b1729;
  --navy-900: #10243f;
  --navy-800: #173654;
  --navy-700: #214b70;
  --teal-600: #138c7c;
  --teal-500: #20ae98;
  --teal-100: #dff5f0;
  --orange-600: #c86416;
  --orange-100: #fff0df;
  --red-700: #b4232c;
  --red-100: #fde8e9;
  --green-700: #176b43;
  --green-100: #e1f4e9;
  --amber-700: #8a5a00;
  --amber-100: #fff3cd;
  --ink: #172435;
  --muted: #637083;
  --line: #dce3e8;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --shadow: 0 14px 40px rgba(16, 36, 63, 0.09);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.loading-screen,
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loading-screen {
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px 6px 15px 6px;
  background: var(--navy-900);
  color: white;
  font-weight: 850;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 28px rgba(16, 36, 63, 0.22);
}

.auth-shell {
  width: min(100%, 440px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}

.auth-brand h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.45rem;
  line-height: 1.2;
}

.auth-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-card,
.card {
  background: var(--surface);
  border: 1px solid rgba(16, 36, 63, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 24px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.28rem;
}

.auth-card > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.app-shell {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(18px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-inline,
.user-chip,
.topbar-actions,
.inline,
.between,
.status-line,
.report-meta,
.button-row,
.section-title {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
}

.language-control {
  display: inline-flex;
  margin: 0;
}

.language-control select {
  width: auto;
  min-width: 132px;
  min-height: 42px;
  padding: 7px 34px 7px 11px;
  background-color: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.language-control.compact select {
  min-width: 68px;
  min-height: 38px;
}

.auth-language {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.print-only {
  display: none;
}

.brand-inline {
  gap: 10px;
  font-weight: 820;
  color: var(--navy-950);
}

.brand-inline .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px 4px 11px 4px;
  font-size: 0.85rem;
  box-shadow: none;
}

.user-chip {
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  border-radius: 12px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-600);
  font-weight: 800;
}

.main-layout {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 30px 22px 96px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1,
.page-head h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.page-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-button,
.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 680;
}

.nav-button {
  padding: 10px 14px;
  border-radius: 10px;
}

.nav-button:hover,
.nav-button.active {
  background: #eef3f6;
  color: var(--navy-900);
}

.bottom-nav {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(16, 36, 63, 0.09);
  border-radius: 15px;
  background: var(--surface);
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.stat-value {
  display: block;
  margin-top: 10px;
  color: var(--navy-950);
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
}

.stat-card.accept .stat-value { color: var(--green-700); }
.stat-card.reject .stat-value { color: var(--red-700); }

.action-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--navy-900);
  color: white;
  box-shadow: 0 18px 45px rgba(16, 36, 63, 0.18);
}

.action-card h2 {
  margin: 0 0 5px;
  font-size: 1.28rem;
}

.action-card p {
  margin: 0;
  color: #c9d5df;
}

.section-card {
  padding: 22px;
  margin-bottom: 18px;
}

.section-title {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.12rem;
}

.section-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 760;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.primary-button {
  background: var(--teal-500);
  color: #071c19;
  box-shadow: 0 8px 18px rgba(32, 174, 152, 0.24);
}

.primary-button:hover { background: #35c2ab; }
.primary-button:active,
.secondary-button:active,
.ghost-button:active { transform: translateY(1px); }

.primary-button.light {
  background: white;
  color: var(--navy-900);
  box-shadow: none;
}

.secondary-button {
  border-color: #b8c5ce;
  background: white;
  color: var(--navy-900);
}

.ghost-button {
  border-color: transparent;
  background: #eef3f6;
  color: var(--navy-800);
}

.danger-button {
  border-color: #f2bfc3;
  background: var(--red-100);
  color: var(--red-700);
}

.icon-button {
  width: 44px;
  padding: 0;
  background: white;
  border-color: var(--line);
  color: var(--muted);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.button-row {
  flex-wrap: wrap;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.field-label {
  color: #304155;
  font-size: 0.88rem;
  font-weight: 720;
}

.required::after {
  content: " *";
  color: var(--red-700);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9d3db;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(32, 174, 152, 0.15);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f2f5f7;
  color: #748091;
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.alert {
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert.info {
  background: #eaf2f8;
  border-color: #c9ddec;
  color: var(--navy-800);
}

.alert.warning {
  background: var(--amber-100);
  border-color: #efd88f;
  color: var(--amber-700);
}

.alert.error {
  background: var(--red-100);
  border-color: #f2bfc3;
  color: var(--red-700);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.stepper button {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: #e8edf1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  padding: 6px;
}

.stepper button.active {
  background: var(--navy-900);
  color: white;
}

.step-number {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  opacity: 0.72;
}

.form-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin: 20px -8px -8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 28px rgba(16, 36, 63, 0.08);
  backdrop-filter: blur(12px);
}

.plan-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.plan-item {
  padding: 14px;
  background: #f8fafb;
}

.plan-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-item strong {
  display: block;
  margin-top: 4px;
  color: var(--navy-950);
  font-size: 1.05rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f3f6f8;
  color: #415267;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

td {
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.measure-table {
  min-width: 880px;
}

.measure-table input {
  min-width: 80px;
  min-height: 40px;
  padding: 7px 8px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: inherit;
  text-align: left;
}

.report-row:hover {
  border-color: #a9bac7;
  box-shadow: 0 8px 22px rgba(16, 36, 63, 0.07);
}

.report-row strong {
  display: block;
  color: var(--navy-950);
}

.report-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.report-meta {
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.accept { background: var(--green-100); color: var(--green-700); }
.status-badge.reject { background: var(--red-100); color: var(--red-700); }
.status-badge.pending { background: var(--amber-100); color: var(--amber-700); }
.status-badge.draft { background: #e8edf1; color: #59697a; }

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 16px;
  background: #eaf0f4;
  color: var(--navy-700);
  font-weight: 850;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 160px;
  gap: 10px;
  margin-bottom: 16px;
}

.defect-list {
  display: grid;
  gap: 12px;
}

.defect-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-600);
  border-radius: 12px;
  background: #fbfcfd;
}

.defect-grid {
  display: grid;
  grid-template-columns: 110px minmax(150px, 0.7fr) minmax(220px, 1.5fr) 130px;
  gap: 10px;
  padding-right: 46px;
}

.defect-card .remove-button {
  position: absolute;
  top: 16px;
  right: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segment {
  min-height: 42px;
  border: 1px solid #c8d2da;
  border-radius: 9px;
  background: white;
  color: var(--muted);
  font-weight: 700;
}

.segment.selected.pass { border-color: #7fc39f; background: var(--green-100); color: var(--green-700); }
.segment.selected.fail { border-color: #e49399; background: var(--red-100); color: var(--red-700); }
.segment.selected.na { border-color: #aeb9c3; background: #e8edf1; color: #536273; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}

.check-card h4 {
  margin: 0 0 10px;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 20px;
  border: 2px dashed #abc0cd;
  border-radius: 14px;
  background: #f7fafb;
  color: var(--navy-700);
  text-align: center;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-zone strong,
.upload-zone span {
  display: block;
}

.upload-zone span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #e7ecef;
}

.photo-card figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.photo-card button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 23, 41, 0.8);
  color: white;
  font-size: 1.1rem;
}

.decision-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 14px;
}

.decision-panel.accept { background: var(--green-100); color: var(--green-700); }
.decision-panel.reject { background: var(--red-100); color: var(--red-700); }
.decision-panel.pending { background: var(--amber-100); color: var(--amber-700); }

.decision-word {
  min-width: 86px;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.decision-panel p {
  margin: 2px 0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.result-cell {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.result-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-cell strong {
  font-size: 1.15rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.detail-item {
  padding: 13px 15px;
  background: white;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-item strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.user-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.toast-region {
  position: fixed;
  z-index: 100;
  top: 78px;
  right: 18px;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 36px));
}

.toast {
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--navy-950);
  color: white;
  box-shadow: 0 14px 36px rgba(11, 23, 41, 0.28);
  animation: toast-in 180ms ease-out;
}

.toast.error { background: var(--red-700); }
.toast.success { background: var(--green-700); }

@keyframes toast-in {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.between { justify-content: space-between; gap: 14px; }
.stack { display: grid; gap: 14px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

@media (max-width: 780px) {
  .desktop-nav { display: none; }

  .topbar {
    height: 60px;
    padding: 0 15px;
  }

  .main-layout {
    padding: 22px 14px 104px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 68px;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 26px rgba(16,36,63,.08);
  }

  .bottom-nav button {
    min-height: 54px;
    padding: 4px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .bottom-nav button.active {
    background: #eaf1f5;
    color: var(--navy-900);
  }

  .bottom-nav span {
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-height: 104px;
    padding: 16px;
  }

  .stat-value { font-size: 1.7rem; }

  .action-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .action-card .primary-button {
    width: 100%;
  }

  .form-grid,
  .check-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head .primary-button,
  .page-head .secondary-button {
    width: 100%;
  }

  .section-card {
    padding: 17px;
  }

  .stepper {
    gap: 4px;
  }

  .stepper button {
    min-height: 48px;
    font-size: 0.68rem;
  }

  .plan-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-footer {
    bottom: 76px;
    padding: 11px;
  }

  .form-footer button {
    flex: 1;
  }

  .defect-grid {
    grid-template-columns: 1fr;
    padding-right: 42px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .report-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }

  .filters input {
    grid-column: 1 / -1;
  }

  .decision-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .user-chip .user-name { display: none; }
}

@media print {
  @page {
    size: A4;
    margin: 11mm;
  }

  .topbar,
  .bottom-nav,
  .page-head,
  .form-footer,
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .print-report-header {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--navy-900);
  }

  .print-report-header h1 {
    margin: 2px 0 0;
    font-size: 20px;
  }

  .print-report-header span,
  .print-report-footer,
  .report-signatures span {
    color: #5b6775;
    font-size: 10px;
  }

  .print-report-header > div:last-child {
    text-align: right;
  }

  .print-report-header strong {
    display: block;
    font-size: 11px;
  }

  body,
  html {
    background: white;
  }

  .main-layout {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .card,
  .section-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .section-card {
    padding: 12px;
    margin-bottom: 9px;
    border-radius: 6px;
  }

  .section-title {
    margin-bottom: 8px;
  }

  .section-title h2,
  .section-title h3 {
    font-size: 13px;
  }

  .decision-panel {
    padding: 10px;
  }

  .decision-word {
    font-size: 16px;
  }

  .result-cell,
  .detail-item {
    padding: 7px 9px;
  }

  .table-scroll {
    overflow: visible;
  }

  .measure-table {
    min-width: 0;
  }

  th,
  td {
    padding: 6px;
    font-size: 9px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .photo-card figcaption {
    padding: 5px;
    font-size: 9px;
  }

  .report-signatures {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .report-signatures > div {
    min-height: 58px;
    border-top: 1px solid #7b8794;
    padding-top: 6px;
  }

  .report-signatures span {
    display: block;
    margin-top: 18px;
  }

  .print-report-footer {
    text-align: center;
    margin-top: 8px;
  }
}
