/* SAAS 报告预览 · SOP-SAAS报告导出（预览 ≡ Word） */

.report-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border, #334155);
}
.report-brand-bar img {
  max-height: 2.5rem;
  max-width: 5.5rem;
  object-fit: contain;
}
.report-brand-bar .brand-company {
  font-weight: 700;
  font-size: 0.9rem;
  text-align: right;
  flex: 1;
}
.report-brand-ph {
  opacity: 0.45;
  font-weight: 500;
  font-style: italic;
}

.report-sign-section,
.hist-sign-section {
  margin-top: 0.75rem;
  text-align: center;
}
.report-sign-section .report-sign-table,
.hist-sign-section .hist-sign-table {
  margin-left: auto;
  margin-right: auto;
  width: auto;
  min-width: 70%;
}
.report-sign-table,
.hist-sign-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.report-sign-table th,
.report-sign-table td,
.hist-sign-table th,
.hist-sign-table td {
  border: 1px solid var(--border, #334155);
  padding: 0.45rem;
  text-align: center;
  vertical-align: middle;
}
.report-sign-table th,
.hist-sign-table th {
  width: 18%;
  font-weight: 600;
  color: var(--accent, #0f766e);
  background: color-mix(in srgb, var(--accent, #0f766e) 8%, var(--surface-deep, #0f172a) 92%);
}

/* 结果区报告表格 · 全格居中（M） */
.result-card .meta-table th,
.result-card .meta-table td,
.result-card .data-table th,
.result-card .data-table td,
.result-card .hist-table th,
.result-card .hist-table td,
.result-card .layout-table th,
.result-card .layout-table td,
.report-table th,
.report-table td {
  text-align: center;
  vertical-align: middle;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 0.35rem 0;
}
.report-table th,
.report-table td {
  border: 1px solid var(--border, #334155);
  padding: 0.38rem 0.5rem;
}
.report-table th {
  background: color-mix(in srgb, var(--accent, #0f766e) 10%, transparent);
  font-weight: 600;
}

/* ── Report-style preview (matches Word/PDF report) ── */
.report-preview .report-main-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.report-preview .report-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.report-preview .grade-badge-wrap {
  text-align: center;
  margin-bottom: 0.75rem;
}
.report-preview .grade-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-btn-text, #fff);
  font-weight: 700;
}
.report-preview .sec-title {
  font-size: 1rem;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.report-preview .report-info-table th {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-deep) 92%);
  font-weight: 600;
  color: var(--accent);
}
.report-preview .report-eval-section {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: var(--surface-deep);
  border-radius: 8px;
}
.report-preview .report-eval-section p {
  margin: 0.25rem 0;
}

/* ── Chart containers inside report preview ── */
.report-preview .chart-container {
  width: 100%;
  max-width: 700px;
  margin: 0.75rem auto;
  padding: 0.5rem;
  background: var(--surface-deep, #0f172a);
  border-radius: 8px;
  border: 1px solid var(--border, #334155);
}
.report-preview .chart-container canvas {
  display: block;
  width: 100% !important;
  height: 240px !important;
}
