.topbar {
  min-height: 96px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo-frame {
  width: 180px;
  height: 48px;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 180px;
  height: auto;
  transform: translateY(-2px);
}

.company-name {
  margin: 0 0 5px;
  color: #bfe5f7;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand h1 {
  margin: 0;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin: -6px 0 22px;
  background: #eef6fb;
  color: #516876;
  font-size: 13px;
}

.example-button {
  border: 1px solid #a9c4d5;
  border-radius: 999px;
  padding: 6px 11px;
  background: #ffffff;
  color: #174e73;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.example-button:hover {
  border-color: #1e5d88;
  background: #e2f1f9;
}

.template-select {
  min-width: 150px;
  border: 1px solid #a9c4d5;
  border-radius: 999px;
  padding: 6px 32px 6px 12px;
  background: #ffffff;
  color: #174e73;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  min-height: 48px;
  padding: 14px 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #10283c;
  color: #b9cfdd;
  font-size: 13px;
}

.print-report { display: none; }

@page { size: A4 portrait; margin: 12mm 14mm 14mm; }

@media print {
  html, body { background: #fff !important; color: #172733; font-size: 10pt; }
  body > .topbar, body > .notice, body > .app-shell, body > .site-footer { display: none !important; }
  .print-report { display: block !important; }
  .report-page { min-height: 270mm; page-break-after: always; position: relative; }
  .report-page:last-child { page-break-after: auto; }
  .report-cover { display: flex; flex-direction: column; }
  .report-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid #195d8c; }
  .report-brand img { width: 102px; height: 44px; object-fit: cover; object-position: center 22%; }
  .report-brand div { display: flex; flex-direction: column; gap: 3px; }
  .report-brand strong { font-size: 13pt; color: #173b58; }
  .report-brand span { color: #61717d; font-size: 8pt; }
  .report-title { margin: 42mm 0 28mm; text-align: center; }
  .report-title p { margin: 0 0 8px; color: #3b6d8e; font-size: 15pt; letter-spacing: .18em; }
  .report-title h1 { margin: 0 0 12px; font-size: 30pt; color: #163c59; letter-spacing: .08em; }
  .report-title span { color: #6a7780; letter-spacing: .3em; }
  .report-meta, .report-table, .sign-table { width: 100%; border-collapse: collapse; }
  .report-meta th, .report-meta td, .report-table th, .report-table td { border: 1px solid #afbec8; padding: 7px 8px; text-align: left; vertical-align: top; }
  .report-meta th { width: 22%; background: #edf4f8; color: #294e68; }
  .report-decision { margin-top: 18px; border-left: 5px solid #1f6695; padding: 14px 18px; background: #edf5fa; }
  .report-decision span { display: block; color: #667680; }
  .report-decision strong { display: block; margin: 5px 0; font-size: 22pt; color: #173b58; }
  .report-decision p { margin: 0; }
  .report-disclaimer { margin-top: auto; padding: 11px 13px; background: #fff4df; border: 1px solid #e8d3aa; color: #6f511d; line-height: 1.55; }
  .report-page-head { display: flex; justify-content: space-between; padding-bottom: 7px; margin-bottom: 16px; border-bottom: 1px solid #9eb0bb; color: #667680; font-size: 8.5pt; }
  .report-page h2 { margin: 17px 0 8px; padding-left: 8px; border-left: 4px solid #1f6695; color: #173b58; font-size: 14pt; }
  .report-page h3 { margin: 13px 0 7px; color: #284e68; font-size: 11pt; }
  .report-table th { background: #e8f1f6; color: #234d68; font-weight: 700; }
  .report-table.compact { font-size: 8.2pt; }
  .report-table.compact th, .report-table.compact td { padding: 4px 5px; }
  .report-note { padding: 10px 12px; background: #f3f6f8; border-left: 3px solid #6f8ea1; line-height: 1.6; }
  .report-conclusion { padding: 18px; border: 2px solid #1f6695; }
  .report-conclusion strong { font-size: 20pt; color: #173b58; }
  .report-conclusion p { margin-bottom: 0; }
  #reportIssues, #reportActions { line-height: 1.7; }
  .sign-table { margin-top: 16px; }
  .sign-table td { width: 33.33%; height: 88px; border: 1px solid #9eb0bb; padding: 10px; vertical-align: top; }
  .report-footer-note { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; border-top: 1px solid #afbec8; color: #596a74; font-size: 8.5pt; line-height: 1.5; }
}

@media (max-width: 760px) {
  .brand { gap: 10px; }
  .brand-logo-frame { width: 118px; height: 35px; }
  .brand img { width: 124px; transform: translate(-3px, -2px); }
  .company-name { font-size: 11px; }
  .brand h1 { font-size: 18px; }
  .site-footer { display: block; padding: 12px 18px; }
  .site-footer span { display: block; margin: 3px 0; }
}

@media print {
  .site-footer { display: none !important; }
}
