.report-verification-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 28px;
  align-items: center;
  border-color: #fdba9a;
  background: linear-gradient(135deg, #fff 0%, #fff 62%, #fff6f1 100%);
}
.report-preview-intro { display: flex; gap: 18px; align-items: flex-start; }
.report-preview-intro h3 { font-size: 22px; margin-bottom: 7px; }
.report-preview-intro p { color: var(--muted); margin-bottom: 0; max-width: 640px; }
.report-preview-icon {
  flex: 0 0 58px; height: 72px; display: grid; place-items: center;
  border: 1px solid #f15a24; border-radius: 9px; background: #fff6f1;
  color: #c94415; font-size: 14px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(201, 68, 21, .12);
}
.report-preview-actions {
  display: grid; gap: 12px; padding: 18px; border: 1px solid #fed7c3;
  border-radius: 12px; background: #fff;
}
.report-preview-actions .button, .preview-verification-panel .button { width: 100%; }
.report-preview-actions form, .preview-verification-panel form { margin: 0; }
.report-verification-copy strong { display: block; margin-bottom: 3px; }
.report-verification-copy p, .preview-verification-panel p { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.text-link { color: #b9380f; font-weight: 700; font-size: 12px; text-align: center; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.dev-notice { padding: 14px 16px; border: 1px dashed #e87942; border-radius: 10px; background: #fff8f4; margin-bottom: 16px; }
.dev-notice p { margin: 3px 0 10px; color: #667085; font-size: 13px; }
.report-preview-toolbar { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 24px; }
.report-preview-toolbar > div:first-child { max-width: 680px; }
.report-preview-toolbar h1 { font-size: 32px; }
.report-preview-toolbar > div:first-child p { color: var(--muted); margin-bottom: 0; }
.preview-verification-panel { min-width: 300px; max-width: 380px; padding: 16px; border: 1px solid #fdba9a; border-radius: 12px; background: #fff; }
.preview-verification-panel strong { display: block; }
.report-preview-stage { padding: 34px; border-radius: 18px; background: #e8ebef; box-shadow: inset 0 1px 3px rgba(15, 23, 42, .08); }
.report-preview-paper {
  position: relative; width: min(100%, 794px); min-height: 1123px; margin: 0 auto;
  padding: 76px 72px; background: #fff; color: #111827;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .18); overflow: hidden;
  font-family: Arial, "Helvetica Neue", sans-serif;
}
.report-preview-status {
  position: relative; z-index: 3; margin: -28px 0 30px; padding: 8px 12px;
  border: 1px solid #fdba9a; background: #fff7f3; color: #b9380f;
  text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.report-preview-watermark {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%) rotate(-31deg);
  color: rgba(185, 56, 15, .085); font-size: 34px; font-weight: 800;
  white-space: nowrap; pointer-events: none;
}
.watermark-1 { top: 16%; } .watermark-2 { top: 38%; } .watermark-3 { top: 61%; } .watermark-4 { top: 84%; }
.report-preview-document { position: relative; z-index: 2; }
.report-preview-document p { margin: 0 0 9px; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.report-preview-document h2 { margin: 22px 0 9px; font-size: 15px; line-height: 1.35; text-transform: uppercase; }
.report-preview-document .preview-report-title { text-align: center; font-size: 20px; line-height: 1.35; margin: 0 0 22px; }
.preview-emphasis { font-weight: 700; text-align: center; }
.preview-bullet { padding-left: 18px; }
.preview-bullet::before { content: "•"; margin-left: -13px; margin-right: 8px; }
.report-preview-table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.report-preview-document table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; background: rgba(255, 255, 255, .88); }
.report-preview-document td { border: 1px solid #9ca3af; padding: 6px; vertical-align: top; word-break: break-word; white-space: pre-line; }
.report-preview-document tr:first-child td { font-weight: 700; background: #f3f4f6; }
.report-preview-image { display: block; max-width: 100%; max-height: 360px; object-fit: contain; margin: 8px auto; border-radius: 2px; }
@media (max-width: 850px) {
  .report-verification-gate { grid-template-columns: 1fr; }
  .report-preview-toolbar { display: block; }
  .preview-verification-panel { margin-top: 18px; max-width: none; }
  .report-preview-stage { padding: 12px; }
  .report-preview-paper { padding: 48px 24px; min-height: 0; }
  .report-preview-watermark { font-size: 22px; }
  .report-preview-document table { font-size: 9px; }
}
@media print {
  .report-preview-stage, .report-preview-toolbar { display: none !important; }
  body::after { content: "Bản xem trước chỉ được xem trong hệ thống. Hoàn tất xác minh tài khoản để tạo và tải báo cáo Word."; display: block; padding: 48px; font: 700 18px Arial; color: #172033; }
}
