:root {
  --navy: #072249;
  --orange: #fe7d53;
  --pink: #9f0066;
  --light: #f5f6f8;
  --muted: #667085;
  --success: #15803d;
  --danger: #b42318;
  --border: #e4e7ec;
  --text: #101828;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--light); color: var(--navy); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 3px solid rgba(254, 125, 83, .24); outline-offset: 2px; }

.shell { max-width: 1080px; margin: 0 auto; padding: 24px; }
.hidden { display: none !important; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.brand { font-size: 26px; font-weight: 900; }
.brand span { background: linear-gradient(135deg, var(--orange), var(--pink)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.badge { display: inline-block; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; }

.card { background: #fff; border: 1px solid #eaecf0; border-radius: 20px; padding: 28px; box-shadow: 0 8px 24px rgba(7, 34, 73, .06); }
.hero { min-height: 75vh; display: grid; place-items: center; }
.hero .card { max-width: 720px; width: 100%; text-align: center; padding: 50px; }
.login-card { max-width: 480px !important; }
.home-card { max-width: 760px !important; }

h1 { font-size: 38px; line-height: 1.1; margin: 0 0 14px; }
h2 { font-size: 27px; margin: 0 0 10px; }
h3 { margin: 0 0 8px; }
p { line-height: 1.6; }
.lead { color: var(--muted); font-size: 17px; }

.btn { border: 0; border-radius: 12px; padding: 13px 19px; font-weight: 750; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--orange), var(--pink)); }
.btn-secondary { color: var(--navy); background: #fff; border: 1px solid #d0d5dd; }
.btn-danger { color: var(--danger); background: #fff; border: 1px solid #fda29b; }
.btn-small { padding: 8px 11px; border-radius: 8px; font-size: 12px; }
.btn-block { width: 100%; margin-top: 22px; }
.btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.home-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.saved-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.file-input { display: none; }
.import-status { margin-top: 14px; font-size: 14px; color: var(--muted); }
.login-field { text-align: left; margin-top: 16px; }
.login-field:first-child { margin-top: 24px; }
.label-spaced { margin-top: 16px; }

.progress { height: 8px; background: #e4e7ec; border-radius: 99px; overflow: hidden; margin: 16px 0 28px; }
.progress > div { height: 100%; background: linear-gradient(135deg, var(--orange), var(--pink)); transition: width .2s ease; }
.question {
  padding: 26px 0;

  border-top:
    1px solid #eaecf0;
}

.question:first-of-type {
  border-top: 0;
}

.question-title {
  max-width: 900px;

  margin-bottom: 16px;

  color: var(--navy);

  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.options {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 8px;
}

.option {
  min-height: 40px;

  padding: 9px 12px;

  border:
    1px solid #d0d5dd;

  border-radius: 9px;

  background: #fff;
  color: #344054;

  font-size: 14px;
  font-weight: 650;

  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.option:hover {
  border-color:
    #98a2b3;

  background:
    #f9fafb;
}

.option.selected {
  border-color:
    var(--orange);

  background:
    #fff3ee;

  color:
    #9f2900;

  font-weight:
    750;
}

textarea, input, select { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: 12px; color: var(--text); background: #fff; }
textarea { min-height: 84px; margin-top: 10px; resize: vertical; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 700; color: #475467; margin-bottom: 6px; }

.review-section { border-top: 1px solid #eee; padding: 18px 0; }
.review-section:first-child { border-top: 0; }
.review-line { display: flex; justify-content: space-between; gap: 12px; color: #475467; margin-top: 6px; }
.warning { background: #fff7ed; border: 1px solid #fed7aa; padding: 14px; border-radius: 12px; color: #9a3412; margin: 16px 0; }

.history-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, .55fr) auto; gap: 14px; align-items: end; margin-top: 22px; }
.history-clear-wrap { display: flex; align-items: end; }
.history-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; border: 1px solid #eaecf0; border-radius: 14px; padding: 18px; margin-top: 14px; background: #fff; }
.history-title { font-weight: 800; font-size: 17px; }
.history-meta, .result-meta { color: var(--muted); font-size: 13px; margin-top: 5px; }
.history-score { font-size: 28px; font-weight: 900; text-align: right; }
.history-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.empty-state { text-align: center; padding: 34px; color: var(--muted); border: 1px dashed #d0d5dd; border-radius: 14px; margin-top: 20px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 14px; }

.report-card { padding: 36px; }
.report-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #eaecf0; }
.score-main { text-align: center; padding: 34px 20px; }
.score-number { font-size: 76px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--orange), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: #eef2ff; font-weight: 800; }
.report-section { border-top: 1px solid #eaecf0; padding-top: 28px; margin-top: 28px; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-card { border: 1px solid #eaecf0; border-radius: 12px; padding: 14px; background: #fcfcfd; }
.detail-card.wide { grid-column: 1 / -1; }
.detail-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.detail-value { margin-top: 6px; color: var(--text); overflow-wrap: anywhere; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card { border: 1px solid #eaecf0; border-radius: 14px; padding: 16px; text-align: center; }
.summary-card strong { display: block; font-size: 28px; margin-bottom: 4px; }
.summary-card span { color: var(--muted); font-size: 13px; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.score-card { background: #fff; border: 1px solid #eaecf0; border-radius: 16px; padding: 18px; }
.score-card strong { font-size: 30px; display: block; margin-top: 8px; }
.rec { background: #fff; border-left: 4px solid var(--orange); border-radius: 12px; padding: 18px; margin: 14px 0; box-shadow: 0 2px 8px rgba(7, 34, 73, .04); }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rec small { color: var(--muted); }
.severity { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.severity-critical { background: #fee4e2; color: #b42318; }
.severity-high { background: #ffead5; color: #c4320a; }
.severity-medium { background: #fef0c7; color: #93370d; }
.severity-low { background: #ecfdf3; color: #027a48; }
.evidence-list { margin: 12px 0 0; padding-left: 20px; color: #475467; }
.evidence-list li { margin-top: 8px; line-height: 1.45; }

.status-toast { position: fixed; right: 16px; bottom: 16px; max-width: min(360px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 9px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .15); font-size: 12px; z-index: 9999; color: #475569; }
.status-toast.success { color: var(--success); border: 1px solid #abefc6; }
.status-toast.error { color: var(--danger); border: 1px solid #fecdca; }
.status-toast.info { color: #475569; border: 1px solid #d0d5dd; }

@media (max-width: 820px) {
  .history-toolbar { grid-template-columns: 1fr 1fr; }
  .history-clear-wrap { grid-column: 1 / -1; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid, .score-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .shell { padding: 14px; }
  .hero .card { padding: 30px 20px; }
  h1 { font-size: 30px; }
  .options, .grid, .history-toolbar, .details-grid, .summary-grid, .score-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .topbar-actions { justify-content: flex-start; }
  .history-item { grid-template-columns: 1fr; }
  .history-score { text-align: left; }
  .history-actions { justify-content: flex-start; }
  .detail-card.wide { grid-column: auto; }
  .report-card { padding: 22px; }
  .report-header { align-items: flex-start; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; }
  .topbar, .report-actions, .status-toast { display: none !important; }
  .shell { max-width: none; padding: 0; }
  #screen-result { display: block !important; }
  .report-card { border: 0; box-shadow: none; padding: 0; }
  .report-section, .score-card, .detail-card, .summary-card, .rec { break-inside: avoid; page-break-inside: avoid; }
  .rec { box-shadow: none; }
}

/* =========================================================
   ÁREA DE REVISÃO DO CONSULTOR
   ========================================================= */

.review-workspace {
  padding: 0;
  overflow: hidden;
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-bottom: 1px solid #eaecf0;
  background:
    linear-gradient(
      135deg,
      rgba(254, 125, 83, 0.08),
      rgba(159, 0, 102, 0.06)
    ),
    #ffffff;
}

.review-header h2 {
  margin-top: 14px;
}

.review-header .lead {
  max-width: 690px;
  margin-bottom: 0;
}

.review-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 13px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 750;
}

.review-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  padding: 28px 32px 32px;
  background: #f8fafc;
}

.review-main {
  min-width: 0;
}

.review-panel {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(7, 34, 73, 0.04);
}

.review-panel:last-child {
  margin-bottom: 0;
}

.review-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.review-panel-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-panel-header h3 {
  margin: 0;
  color: #072249;
  font-size: 18px;
}

.review-step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #fe7d53,
      #9f0066
    );
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(159, 0, 102, 0.16);
}

.review-panel-description {
  margin: 0 0 18px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.review-content-preview {
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #f9fafb;
}

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

.review-risk-item {
  padding: 16px;
  border: 1px solid #fecdca;
  border-left: 4px solid #b42318;
  border-radius: 12px;
  background: #fffafa;
}

.review-risk-item.partial {
  border-color: #fed7aa;
  border-left-color: #f97316;
  background: #fffaf5;
}

.review-risk-item.unknown {
  border-color: #d0d5dd;
  border-left-color: #667085;
  background: #f9fafb;
}

.review-risk-item h4 {
  margin: 0 0 6px;
  color: #344054;
  font-size: 15px;
}

.review-risk-item p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.review-risk-answer {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fee4e2;
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
}

.review-risk-item.partial .review-risk-answer {
  background: #ffead5;
  color: #c2410c;
}

.review-risk-item.unknown .review-risk-answer {
  background: #eaecf0;
  color: #475467;
}

.review-final-text {
  width: 100%;
  min-height: 190px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #ffffff;
  color: #101828;
  line-height: 1.65;
  resize: vertical;
}

.review-final-text:focus {
  border-color: #fe7d53;
  outline: 3px solid rgba(254, 125, 83, 0.16);
}

.review-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-checklist-card,
.review-info-card {
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(7, 34, 73, 0.04);
}

.review-checklist-card {
  position: sticky;
  top: 20px;
}

.review-checklist-card h3,
.review-info-card strong {
  color: #072249;
}

.review-checklist-card > p,
.review-info-card p {
  margin: 8px 0 18px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.review-check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid #f2f4f7;
  color: #344054;
  cursor: pointer;
}

.review-check-item:first-of-type {
  border-top: 0;
}

.review-check-item input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #9f0066;
}

.review-check-item span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.review-info-card {
  border-color: rgba(7, 34, 73, 0.16);
  background:
    linear-gradient(
      145deg,
      rgba(7, 34, 73, 0.98),
      rgba(15, 49, 94, 0.96)
    );
}

.review-info-card strong,
.review-info-card p {
  color: #ffffff;
}

.review-info-card p {
  margin-bottom: 0;
  opacity: 0.82;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid #eaecf0;
  background: #ffffff;
}

.review-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty-state.compact {
  margin-top: 0;
  padding: 20px;
  font-size: 13px;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.15);
}

/* Melhor organização do conteúdo atual da revisão */

#reviewContent .review-section {
  padding: 14px 0;
}

#reviewContent .review-section:first-child {
  padding-top: 0;
  border-top: 0;
}

#reviewContent .review-line {
  padding: 6px 0;
}

#reviewContent .review-line strong {
  color: #072249;
}

/* Responsividade */

@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-sidebar {
    order: -1;
  }

  .review-checklist-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .review-header {
    flex-direction: column;
    padding: 24px 20px;
  }

  .review-layout {
    padding: 20px;
  }

  .review-panel {
    padding: 20px;
  }

  .review-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .review-panel-header > div:first-child {
    align-items: flex-start;
  }

  .review-panel-header .btn {
    width: 100%;
  }

  .review-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 20px;
  }

  .review-footer-actions {
    flex-direction: column;
  }

  .review-footer .btn {
    width: 100%;
  }
}

/* =========================================================
   RELATÓRIO DO CLIENTE
   ========================================================= */

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(7, 34, 73, 0.06);
}

.report-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-toolbar-label {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-toolbar strong {
  color: #072249;
  font-size: 16px;
}

.report-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.client-report {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(7, 34, 73, 0.1);
}

/* Capa */

.report-cover {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(254, 125, 83, 0.35),
      transparent 28%
    ),
    radial-gradient(
      circle at 75% 30%,
      rgba(159, 0, 102, 0.26),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #051a38 0%,
      #072249 58%,
      #0f315e 100%
    );
  color: #ffffff;
}

.report-cover-decoration {
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.report-cover-decoration::before,
.report-cover-decoration::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.report-cover-decoration::before {
  inset: 55px;
}

.report-cover-decoration::after {
  inset: 115px;
}

.report-cover-top,
.report-cover-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.report-confidential {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.report-cover-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 0;
}

.report-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #fe7d53;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.report-cover-content .report-eyebrow {
  color: #ffffff;
  opacity: 0.82;
}

.report-cover-content h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.report-cover-description {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.65;
}

.report-cover-meta {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.report-cover-footer {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

/* Seções */

.client-report .report-section {
  padding: 52px 48px;
  border-top: 1px solid #eaecf0;
}

.client-report .report-section:first-of-type {
  border-top: 0;
}

.report-section-light {
  background: #f8fafc;
}

.report-section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.report-section-heading h2 {
  margin: 0;
  color: #072249;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.report-section-heading p {
  margin: 12px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.65;
}

/* Score geral */

.report-score-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.report-score-layout .score-main {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      #072249,
      #0f315e
    );
  color: #ffffff;
}

.score-label {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.report-score-layout .score-number {
  color: #ffffff;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.report-score-layout .level {
  margin-top: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #fe7d53,
    #9f0066
  );
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.report-maturity-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #ffffff;
}

.report-maturity-description h3 {
  margin: 0 0 14px;
  color: #072249;
  font-size: 20px;
}

.report-maturity-description .lead {
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.75;
}

/* Considerações finais */

.report-considerations {
  background:
    linear-gradient(
      135deg,
      rgba(254, 125, 83, 0.08),
      rgba(159, 0, 102, 0.05)
    ),
    #ffffff;
}

.final-considerations-output {
  padding: 28px;
  border-left: 5px solid #fe7d53;
  border-radius: 0 16px 16px 0;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(7, 34, 73, 0.06);
}

.final-considerations-output p {
  margin: 0 0 16px;
  color: #344054;
  font-size: 16px;
  line-height: 1.8;
}

.final-considerations-output p:last-child {
  margin-bottom: 0;
}

/* Cards de pontuação */

.client-report .score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.client-report .score-card {
  position: relative;
  min-height: 142px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #ffffff;
}

.client-report .score-card::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(254, 125, 83, 0.1);
  content: "";
}

.client-report .score-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.client-report .score-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 22px;
  color: #072249;
  font-size: 34px;
  line-height: 1;
}

/* Resumo */

.client-report .summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.client-report .summary-card {
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.client-report .summary-card strong {
  display: block;
  color: #072249;
  font-size: 32px;
}

.client-report .summary-card span {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

/* Recomendações */

.report-recommendations #recommendations {
  display: grid;
  gap: 18px;
}

.client-report .rec {
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-left: 5px solid #fe7d53;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(7, 34, 73, 0.04);
}

.client-report .rec:nth-child(even) {
  border-left-color: #9f0066;
}

.client-report .rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.client-report .rec small {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.client-report .rec h3 {
  margin: 0 0 10px;
  color: #072249;
  font-size: 19px;
}

.client-report .rec p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
}

.client-report .evidence-list {
  margin: 18px 0 0;
  padding: 16px 16px 16px 34px;
  border-radius: 12px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

/* Dados do diagnóstico */

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

.client-report .detail-card {
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #ffffff;
}

.client-report .detail-card.wide {
  grid-column: 1 / -1;
}

.client-report .detail-label {
  margin-bottom: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.client-report .detail-value {
  color: #072249;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

/* Próximos passos */

.report-next-steps {
  padding: 56px 48px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(254, 125, 83, 0.32),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #072249,
      #0f315e
    );
  color: #ffffff;
}

.report-next-steps-content {
  max-width: 780px;
}

.report-next-steps .report-eyebrow {
  color: #fe7d53;
}

.report-next-steps h2 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.2;
}

.report-next-steps p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.report-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.report-service-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.report-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}

.report-contact strong {
  color: #ffffff;
  font-size: 20px;
}

.report-contact span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

/* Rodapé */

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 48px;
  border-top: 1px solid #eaecf0;
  background: #ffffff;
}

.report-footer-brand {
  color: #072249;
  font-size: 23px;
}

.report-footer-brand span {
  color: #fe7d53;
}

.report-footer > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.report-footer strong {
  color: #072249;
  font-size: 12px;
}

.report-footer span {
  color: #667085;
  font-size: 11px;
}

/* =========================================================
   RESPONSIVIDADE DO RELATÓRIO
   ========================================================= */

@media (max-width: 900px) {
  .report-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-toolbar-actions {
    justify-content: flex-start;
  }

  .report-score-layout {
    grid-template-columns: 1fr;
  }

  .client-report .score-grid,
  .client-report .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .report-toolbar-actions {
    width: 100%;
    flex-direction: column;
  }

  .report-toolbar-actions .btn {
    width: 100%;
  }

  .report-cover {
    min-height: 540px;
    padding: 30px 24px;
  }

  .report-cover-top,
  .report-cover-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-cover-content {
    padding: 55px 0;
  }

  .report-cover-content h1 {
    font-size: 40px;
  }

  .report-cover-description {
    font-size: 16px;
  }

  .client-report .report-section,
  .report-next-steps {
    padding: 38px 24px;
  }

  .report-section-heading h2,
  .report-next-steps h2 {
    font-size: 27px;
  }

  .client-report .score-grid,
  .client-report .summary-grid,
  .client-report .details-grid {
    grid-template-columns: 1fr;
  }

  .client-report .detail-card.wide {
    grid-column: auto;
  }

  .report-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 24px;
  }

  .report-footer > div:last-child {
    align-items: flex-start;
  }
}

/* =========================================================
   IMPRESSÃO / PDF
   ========================================================= */

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

@media print {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  #reportContent,
  #reportContent * {
    visibility: visible !important;
  }

  #reportContent {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .no-print,
  .report-toolbar,
  .topbar,
  #supabase-status {
    display: none !important;
  }

  .report-cover {
    min-height: 255mm !important;
    padding: 18mm !important;
    break-after: page;
    page-break-after: always;
  }

  .client-report .report-section {
    padding: 14mm 12mm !important;
  }

  .report-next-steps {
    padding: 16mm 12mm !important;
  }

  .report-score-layout {
    grid-template-columns: 68mm 1fr !important;
    gap: 8mm !important;
  }

  .report-score-layout .score-main {
    min-height: 72mm !important;
  }

  .client-report .score-grid,
  .client-report .summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .client-report .details-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .client-report .rec,
  .client-report .score-card,
  .client-report .summary-card,
  .client-report .detail-card,
  .final-considerations-output,
  .report-maturity-description {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-section-heading,
  .client-report .rec h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .report-footer {
    padding: 8mm 12mm !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}

/* =========================================================
   DETALHES DAS RECOMENDAÇÕES
   ========================================================= */

.recommendation-description {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
}

.recommendation-detail {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
}

.recommendation-detail strong {
  display: block;
  margin-bottom: 7px;
  color: #072249;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recommendation-detail p {
  margin: 0 !important;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.recommendation-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(254, 125, 83, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(254, 125, 83, 0.08),
      rgba(159, 0, 102, 0.04)
    );
}

.recommendation-deadline span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.recommendation-deadline strong {
  color: #9f0066;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

/* =========================================================
   SEVERIDADES
   ========================================================= */

.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.severity-low {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.severity-medium {
  border: 1px solid #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.severity-high {
  border: 1px solid #fec84b;
  background: #fff6ed;
  color: #c4320a;
}

.severity-critical {
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
}

/* Destaque visual de acordo com a severidade */

.client-report .rec:has(.severity-critical),
.review-content-preview .rec:has(.severity-critical) {
  border-left-color: #b42318;
}

.client-report .rec:has(.severity-high),
.review-content-preview .rec:has(.severity-high) {
  border-left-color: #f97316;
}

.client-report .rec:has(.severity-medium),
.review-content-preview .rec:has(.severity-medium) {
  border-left-color: #f5b700;
}

.client-report .rec:has(.severity-low),
.review-content-preview .rec:has(.severity-low) {
  border-left-color: #15803d;
}

/* =========================================================
   RECOMENDAÇÕES NA TELA DE REVISÃO
   ========================================================= */

.review-content-preview {
  display: grid;
  gap: 16px;
}

.review-content-preview .rec {
  margin: 0;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-left: 5px solid #fe7d53;
  border-radius: 14px;
  background: #ffffff;
}

.review-content-preview .rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-content-preview .rec small {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.review-content-preview .rec h3 {
  margin: 0 0 10px;
  color: #072249;
  font-size: 17px;
  line-height: 1.35;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 680px) {
  .recommendation-deadline {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .recommendation-deadline strong {
    text-align: left;
  }

  .review-content-preview .rec-head,
  .client-report .rec-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {
  .recommendation-detail,
  .recommendation-deadline {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .recommendation-detail {
    background: #f8fafc !important;
  }

  .recommendation-deadline {
    background:
      linear-gradient(
        135deg,
        rgba(254, 125, 83, 0.08),
        rgba(159, 0, 102, 0.04)
      ) !important;
  }

  .client-report .rec {
    margin-bottom: 6mm;
  }

  .severity,
  .recommendation-detail,
  .recommendation-deadline {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* =========================================================
   AVISOS DA REVISÃO
   ========================================================= */

.review-warning {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e4e7ec;
  border-left: 5px solid #667085;
  border-radius: 12px;
  background: #f8fafc;
  color: #344054;
  font-size: 14px;
  line-height: 1.6;
}

.review-warning.hidden {
  display: none;
}

.review-warning-error {
  border-color: #fecdca;
  border-left-color: #b42318;
  background: #fef3f2;
  color: #912018;
}

.review-warning-attention {
  border-color: #fedf89;
  border-left-color: #f79009;
  background: #fffaeb;
  color: #93370d;
}

.review-warning-title {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 850;
}

.review-warning-list {
  margin: 0;
  padding-left: 20px;
}

.review-warning-list li {
  margin: 4px 0;
}

@media print {
  .review-warning {
    display: none !important;
  }
}

/* =========================================================
   STATUS DE APROVAÇÃO
   ========================================================= */

.history-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.approval-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.approval-approved {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.approval-draft {
  border: 1px solid #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.history-approved-by {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

@media print {
  .approval-badge {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* =========================================================
   EDIÇÃO DAS RECOMENDAÇÕES
   ========================================================= */

.recommendation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  margin-top: 16px;
  padding-top: 14px;

  border-top: 1px solid #e4e7ec;
}

.recommendation-actions .btn {
  min-height: 34px;
  padding: 7px 12px;

  font-size: 12px;
}

/* Editor dentro do card */

.recommendation-editor {
  display: grid;
  gap: 16px;
}

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

.recommendation-editor-field label {
  color: #072249;

  font-size: 12px;
  font-weight: 800;
}

.recommendation-editor-field input,
.recommendation-editor-field select,
.recommendation-editor-field textarea {
  width: 100%;

  padding: 11px 12px;

  border: 1px solid #d0d5dd;
  border-radius: 9px;

  background: #ffffff;
  color: #344054;

  font: inherit;
  font-size: 13px;
}

.recommendation-editor-field textarea {
  resize: vertical;

  line-height: 1.55;
}

.recommendation-editor-field input:focus,
.recommendation-editor-field select:focus,
.recommendation-editor-field textarea:focus {
  outline: none;

  border-color: #fe7d53;

  box-shadow:
    0 0 0 3px
    rgba(254, 125, 83, 0.12);
}

.recommendation-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 4px;
}

/* Mobile */

@media (max-width: 680px) {
  .recommendation-actions,
  .recommendation-editor-actions {
    justify-content: stretch;
  }

  .recommendation-actions .btn,
  .recommendation-editor-actions .btn {
    flex: 1;
  }
}

/* Os controles internos nunca aparecem no PDF */

@media print {
  .recommendation-actions,
  .recommendation-editor-actions {
    display: none !important;
  }
}

/* =========================================================
   LOGO OFICIAL STMGO
   ========================================================= */

.app-logo {
  display: flex;
  align-items: center;
}

.app-logo img {
  display: block;

  width: auto;
  height: 34px;

  object-fit: contain;
}

.report-logo-area {
  display: flex;
  align-items: center;
}

.report-logo {
  display: block;

  width: auto;
  height: 42px;
  max-width: 180px;

  object-fit: contain;
}

@media (max-width: 680px) {
  .app-logo img {
    height: 29px;
  }

  .report-logo {
    height: 36px;
  }
}

@media print {
  .report-logo {
    width: auto;
    height: 12mm;
    max-width: 48mm;
  }
}

/* =========================================================
   RELATÓRIO DO CLIENTE - MODELO STMGO
   ========================================================= */

.report-document {
  width: 100%;
  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
}


/* =========================================================
   PÁGINAS
   ========================================================= */

.pdf-page {
  position: relative;

  width: 794px;
  min-height: 1123px;

  margin: 0 auto 32px;

  overflow: hidden;

  background: #ffffff;
  color: #4b4b4b;

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  box-shadow:
    0 8px 32px
    rgba(7, 34, 73, 0.12);
}

.pdf-page-body {
  padding:
    46px 58px;
}


/* =========================================================
   TÍTULOS DAS SEÇÕES
   ========================================================= */

.pdf-section-kicker {
  margin-bottom: 9px;

  color: #fe7d53;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 4px;

  text-transform: uppercase;
}

.pdf-section-title {
  margin: 0 0 10px;

  color: #082653;

  font-size: 28px;
  font-weight: 850;

  line-height: 1.15;

  letter-spacing: -0.8px;
}

.pdf-section-description {
  max-width: 680px;

  margin: 0;

  color: #666666;

  font-size: 13px;
  font-weight: 400;

  line-height: 1.65;
}


/* =========================================================
   PÁGINA 1 - CAPA
   ========================================================= */

.pdf-cover {
  height: 332px;

  background:
    #082653;

  color: #ffffff;
}

.pdf-cover-content {
  padding:
    50px 58px
    38px;
}

.pdf-cover-logo {
  display: block;

  width: 165px;
  height: auto;

  margin-bottom: 32px;

  object-fit: contain;
}

.pdf-cover-kicker {
  margin-bottom: 12px;

  color:
    rgba(
      255,
      255,
      255,
      0.58
    );

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 4px;
}

.pdf-cover-title {
  max-width: 550px;

  margin:
    0 0 17px;

  color: #ffffff;

  font-size: 36px;
  font-weight: 900;

  line-height: 1.12;

  letter-spacing: -1.2px;
}

.pdf-cover-company {
  margin-top: 6px;

  color: #fe7d53;

  font-size: 17px;
  font-weight: 800;

  text-transform: uppercase;
}

.pdf-cover-meta {
  margin-top: 4px;

  color:
    rgba(
      255,
      255,
      255,
      0.44
    );

  font-size: 11px;
}


/* =========================================================
   PÁGINA 1 - SCORE GLOBAL
   ========================================================= */

.pdf-global-section {
  padding-top: 40px;
}

.pdf-global-score {
  display: flex;

  align-items: center;
  justify-content: center;

  margin:
    45px 0
    30px;
}


/* MEDIDOR */

.pdf-gauge {
  --gauge-progress: 0deg;

  position: relative;

  width: 220px;
  height: 180px;
}

.pdf-gauge-track {
  position: absolute;

  top: 0;
  left: 20px;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background:
    conic-gradient(
      from 270deg,

      #fe7d53
        0deg,

      #a4006d
        var(--gauge-progress),

      #e9e9e9
        var(--gauge-progress),

      #e9e9e9
        180deg,

      transparent
        180deg,

      transparent
        360deg
    );

  clip-path:
    inset(
      0
      0
      50%
      0
    );
}

.pdf-gauge-track::after {
  content: "";

  position: absolute;

  inset: 14px;

  border-radius: 50%;

  background: #ffffff;
}

.pdf-gauge-content {
  position: absolute;

  top: 88px;
  left: 0;

  width: 100%;

  text-align: center;
}

.pdf-global-score .score-number {
  margin: 0;

  background: none;

  color: #e97a12;

  font-size: 50px;
  font-weight: 900;

  line-height: 1;

  -webkit-text-fill-color:
    initial;
}

.pdf-global-score .level {
  display: inline-block;

  min-width: 78px;

  margin-top: 8px;

  padding:
    7px 16px;

  border-radius: 999px;

  background: #e97a12;
  color: #ffffff;

  font-size: 11px;
  font-weight: 750;
}


/* DESCRIÇÃO DA MATURIDADE */

.pdf-maturity-box {
  margin-top: 8px;

  padding:
    19px 26px;

  border-left:
    4px solid #e97a12;

  border-radius: 11px;

  background: #fff8f4;
}

.pdf-maturity-box p {
  margin: 0;

  color: #595959;

  font-size: 13px;

  line-height: 1.65;
}


/* =========================================================
   PÁGINA 2 - ÁREAS
   ========================================================= */

.pdf-page-2 .pdf-page-body {
  padding-top: 48px;
}

.pdf-area-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 18px;

  margin-top: 34px;
}


/* compatibilidade com os cards atuais */

.pdf-area-grid .score-card {
  position: relative;

  min-height: 140px;

  padding:
    24px 27px;

  border:
    1px solid #ededed;

  border-left:
    4px solid #e97a12;

  border-radius: 15px;

  background: #ffffff;

  text-align: left;

  box-shadow:
    0 2px 8px
    rgba(
      0,
      0,
      0,
      0.025
    );
}

.pdf-area-grid .score-card span {
  display: block;

  margin-bottom: 7px;

  color: #a0a0a0;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.pdf-area-grid .score-card strong {
  display: block;

  margin: 0;

  color: #e97a12;

  font-size: 36px;
  font-weight: 900;

  line-height: 1;
}


/* versão que vamos usar no JS */

.pdf-area-score-value {
  display: block;

  margin-top: 4px;

  color: #e97a12;

  font-size: 36px;
  font-weight: 900;

  line-height: 1;
}

.pdf-area-progress {
  height: 6px;

  margin:
    13px 0
    8px;

  overflow: hidden;

  border-radius: 999px;

  background: #eeeeee;
}

.pdf-area-progress-bar {
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #fe7d53,
      #9f0066
    );
}

.pdf-area-level {
  color: #e97a12;

  font-size: 11px;
  font-weight: 800;
}


/* cores por nível */

.pdf-area-card.level-critical {
  border-left-color:
    #c43830;
}

.pdf-area-card.level-critical
.pdf-area-score-value,
.pdf-area-card.level-critical
.pdf-area-level {
  color: #c43830;
}

.pdf-area-card.level-initial {
  border-left-color:
    #e97a12;
}

.pdf-area-card.level-initial
.pdf-area-score-value,
.pdf-area-card.level-initial
.pdf-area-level {
  color: #e97a12;
}

.pdf-area-card.level-moderate {
  border-left-color:
    #c7a500;
}

.pdf-area-card.level-moderate
.pdf-area-score-value,
.pdf-area-card.level-moderate
.pdf-area-level {
  color: #c7a500;
}

.pdf-area-card.level-conscious,
.pdf-area-card.level-optimized {
  border-left-color:
    #15803d;
}

.pdf-area-card.level-conscious
.pdf-area-score-value,
.pdf-area-card.level-conscious
.pdf-area-level,
.pdf-area-card.level-optimized
.pdf-area-score-value,
.pdf-area-card.level-optimized
.pdf-area-level {
  color: #15803d;
}


/* =========================================================
   PÁGINA 3 - AÇÕES
   ========================================================= */

.pdf-page-3 .pdf-page-body {
  padding-top: 46px;
}

.pdf-actions-list {
  margin-top: 27px;
}

.pdf-actions-list .rec {
  margin:
    0 0
    15px;

  padding:
    17px 21px
    18px;

  border: 0;

  border-left:
    4px solid #fe7d53;

  border-radius: 11px;

  background: #fff4f1;

  box-shadow: none;

  color: #505050;
}

.pdf-actions-list .rec-head {
  margin-bottom: 4px;
}

.pdf-actions-list .rec-head small {
  color: #fe7d53;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.pdf-actions-list .severity {
  display: none;
}

.pdf-actions-list .rec h3 {
  margin:
    0 0
    5px;

  color: #082653;

  font-size: 14px;
  font-weight: 800;

  line-height: 1.35;
}

.pdf-actions-list
.recommendation-description {
  margin: 0;

  color: #595959;

  font-size: 12.5px;

  line-height: 1.65;
}


/*
  Estas informações continuam existindo
  internamente para o consultor,
  mas não entram no PDF do cliente.
*/

.pdf-actions-list
.recommendation-detail,
.pdf-actions-list
.recommendation-deadline,
.pdf-actions-list
.recommendation-actions {
  display: none !important;
}


/* =========================================================
   CONSIDERAÇÕES
   ========================================================= */

.pdf-considerations {
  margin-top: 40px;

  padding-top: 39px;

  border-top:
    1px solid #f0f0f0;
}

.pdf-considerations-text {
  margin-top: 20px;
}

.pdf-considerations-text p {
  margin:
    0 0
    14px;

  color: #505050;

  font-size: 13px;

  line-height: 1.75;
}


/* =========================================================
   PÁGINA 4 - PRÓXIMOS PASSOS
   ========================================================= */

.pdf-page-4 {
  background: #ffffff;
}

.pdf-next-steps {
  height: 690px;

  display: flex;

  justify-content: center;

  padding:
    58px 80px;

  background: #082653;

  color: #ffffff;

  text-align: center;
}

.pdf-next-content {
  width: 100%;
  max-width: 610px;
}

.pdf-next-kicker {
  margin-bottom: 18px;

  color: #fe7d53;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 4px;

  text-transform: uppercase;
}

.pdf-next-title {
  margin:
    0 auto 21px;

  color: #ffffff;

  font-size: 36px;
  font-weight: 900;

  line-height: 1.12;

  letter-spacing: -1px;
}

.pdf-next-description {
  max-width: 570px;

  margin:
    0 auto;

  color:
    rgba(
      255,
      255,
      255,
      0.72
    );

  font-size: 13px;

  line-height: 1.7;
}

.pdf-next-highlight {
  margin:
    27px 0
    19px;

  color: #fe7d53;

  font-size: 14px;
  font-weight: 800;
}


/* TAGS */

.pdf-service-tags {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap:
    10px 12px;

  margin:
    0 auto;

  max-width: 600px;
}

.pdf-service-tag {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 39px;

  padding:
    9px 20px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.18
    );

  border-radius: 999px;

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );

  color: #ffffff;

  font-size: 11px;
  font-weight: 700;
}

.pdf-service-symbol {
  color: #fe7d53;

  font-size: 11px;
}


/* BOTÃO */

.pdf-contact-button {
  width: 300px;

  margin:
    32px auto
    0;

  padding:
    14px 24px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #fe7d53,
      #d50070
    );

  color: #ffffff;

  font-size: 13px;
  font-weight: 800;
}


/* CONTATO */

.pdf-contact-details {
  display: flex;

  flex-direction: column;

  gap: 5px;

  margin-top: 23px;

  color:
    rgba(
      255,
      255,
      255,
      0.38
    );

  font-size: 10px;
}


/* =========================================================
   RODAPÉ DA ÚLTIMA PÁGINA
   ========================================================= */

.pdf-final-footer {
  height: 76px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    17px 58px;

  background: #fafafa;

  border-bottom:
    1px solid #f1f1f1;
}

.pdf-footer-logo {
  display: block;

  width: 100px;
  height: auto;

  object-fit: contain;
}

.pdf-footer-info {
  color: #b0b0b0;

  font-size: 9px;

  line-height: 1.55;

  text-align: right;
}

.pdf-footer-info strong {
  font-weight: 500;
}


/* =========================================================
   ELEMENTOS DE COMPATIBILIDADE
   ========================================================= */

.report-compatibility-data {
  display: none !important;
}


/* =========================================================
   PREVIEW EM TELAS MENORES
   ========================================================= */

@media (max-width: 900px) {

  .pdf-page {
    width: 100%;
    min-height: auto;

    margin-bottom: 20px;

    box-shadow: none;
  }

  .pdf-cover {
    height: auto;
    min-height: 330px;
  }

  .pdf-page-body {
    padding:
      40px 32px;
  }

  .pdf-area-grid {
    grid-template-columns:
      1fr;
  }

  .pdf-next-steps {
    height: auto;
    min-height: 650px;

    padding:
      50px 28px;
  }

  .pdf-final-footer {
    height: auto;

    align-items: flex-start;

    flex-direction: column;

    padding:
      20px 28px;
  }

  .pdf-footer-info {
    text-align: left;
  }
}

/* =========================================================
   AJUSTE FINO - PDF STMGO DE REFERÊNCIA
   Deve ficar no FINAL do styles.css
   ========================================================= */


/* ---------------------------------------------------------
   BASE DAS PÁGINAS
   --------------------------------------------------------- */

.pdf-page {
  width: 794px;
  height: 1123px;
  min-height: 1123px;
  max-height: 1123px;

  margin: 0 auto 32px;

  overflow: hidden;

  background: #ffffff;

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;
}

.pdf-page-body {
  padding: 48px 60px;
}


/* ---------------------------------------------------------
   HIERARQUIA DE TÍTULOS
   --------------------------------------------------------- */

.pdf-section-kicker {
  margin-bottom: 10px;

  color: #fe7d53;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.pdf-section-title {
  margin: 0 0 8px;

  color: #072249;

  font-size: 28px;
  font-weight: 900;

  line-height: 1.2;

  letter-spacing: -0.6px;
}

.pdf-section-description {
  max-width: 680px;

  margin: 0;

  color: #666666;

  font-size: 14px;

  line-height: 1.75;
}


/* =========================================================
   PÁGINA 1 - CAPA
   ========================================================= */

.pdf-cover {
  position: relative;
  height: 420px;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      #0a1f4e 0%,
      #072249 60%,
      #0d1f3c 100%
    );
  color: #ffffff;
}

.pdf-cover::after {
  content: "";

  position: absolute;

  top: -100px;
  right: -100px;

  width: 450px;
  height: 450px;

  background:
    radial-gradient(
      circle,
      rgba(159, 0, 102, 0.30) 0%,
      transparent 70%
    );

  pointer-events: none;
}

.pdf-cover-content {
  position: relative;
  z-index: 1;

  padding: 56px 60px 60px;
}

.pdf-cover-logo {
  display: block;

  width: auto;
  height: 44px;

  margin: 0 0 32px;

  object-fit: contain;
  object-position: left center;
}

.pdf-cover-kicker {
  margin-bottom: 10px;

  color:
    rgba(
      255,
      255,
      255,
      0.55
    );

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.pdf-cover-title {
  max-width: 600px;

  margin: 0 0 20px;

  color: #ffffff;

  font-size: 38px;
  font-weight: 900;

  line-height: 1.15;

  letter-spacing: -1px;
}

.pdf-cover-company {
  margin: 0 0 4px;

  color: #fe7d53;

  font-size: 18px;
  font-weight: 700;

  text-transform: uppercase;
}

.pdf-cover-meta {
  margin: 0;

  color:
    rgba(
      255,
      255,
      255,
      0.40
    );

  font-size: 12px;
}


/* =========================================================
   PÁGINA 1 - SCORE GLOBAL
   ========================================================= */

.pdf-global-section {
  padding: 36px 60px 28px;
}


/*
   Agora o gauge usa a mesma composição do
   modelo original:
   arco
   percentual
   badge
*/

.pdf-global-score {
  display: flex;

  align-items: center;
  justify-content: center;

  margin: 28px 0 36px;
}

.pdf-gauge {
  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: flex-start;

  width: 240px;
  height: auto;
}

.pdf-gauge > svg {
  display: block;

  width: 240px;
  height: 128px;

  overflow: visible;
}

.pdf-gauge-content {
  position: static;

  width: auto;

  margin-top: -4px;

  text-align: center;
}

.pdf-global-score
.score-number {
  margin: 0;

  font-size: 52px;
  font-weight: 900;

  line-height: 1;

  background: none;

  -webkit-text-fill-color:
    initial;
}

.pdf-global-score
.level {
  display: inline-block;

  min-width: 0;

  margin-top: 10px;

  padding: 7px 22px;

  border-radius: 50px;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.5px;
}


/* caixa da maturidade */

.pdf-maturity-box {
  margin-top: 16px;

  padding: 22px 26px;

  border-left-width: 5px;
  border-left-style: solid;

  border-radius: 14px;
}

.pdf-maturity-box p {
  margin: 0;

  color: #555555;

  font-size: 13px;

  line-height: 1.75;
}


/* =========================================================
   PÁGINA 2
   ========================================================= */

.pdf-page-2 {
  background: #fafafa;
}

.pdf-page-2
.pdf-page-body {
  padding: 48px 60px;
}

.pdf-area-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 18px;

  margin-top: 24px;
}

.pdf-area-grid
.pdf-area-card {
  min-height: 0;

  padding: 26px;

  border:
    1.5px solid #efefef;

  border-left-width: 5px;

  border-radius: 16px;

  background: #ffffff;

  box-shadow: none;
}

.pdf-area-grid
.pdf-area-card > span {
  display: block;

  margin-bottom: 8px;

  color: #aaaaaa;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.pdf-area-score-value {
  margin: 0 0 12px !important;

  font-size: 36px !important;
  font-weight: 900 !important;

  line-height: 1 !important;
}

.pdf-area-progress {
  height: 7px;

  margin:
    0 0
    8px;

  overflow: hidden;

  border-radius: 4px;

  background: #efefef;
}

.pdf-area-progress-bar {
  height: 100%;

  border-radius: 4px;

  background:
    linear-gradient(
      135deg,
      #fe7d53,
      #9f0066
    );
}

.pdf-area-level {
  font-size: 12px;
  font-weight: 700;
}


/* =========================================================
   PÁGINA 3 - AÇÕES
   ========================================================= */

.pdf-page-3
.pdf-page-body {
  padding: 48px 60px;
}

.pdf-actions-list {
  margin-top: 24px;
}

.pdf-actions-list
.rec {
  margin: 0 0 14px;

  padding: 20px 22px;

  border: 0;

  border-left:
    4px solid #fe7d53;

  border-radius: 12px;

  background:
    rgba(
      254,
      125,
      83,
      0.07
    );

  box-shadow: none;
}

.pdf-actions-list
.rec-head {
  margin: 0 0 4px;
}

.pdf-actions-list
.rec-head small {
  color: #fe7d53;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.pdf-actions-list
.rec h3 {
  margin: 0 0 6px;

  color: #072249;

  font-size: 15px;
  font-weight: 700;

  line-height: 1.4;
}

.pdf-actions-list
.recommendation-description {
  margin: 0;

  color: #555555;

  font-size: 13px;

  line-height: 1.75;
}


/* elementos internos não entram no PDF */

.pdf-actions-list
.severity,
.pdf-actions-list
.recommendation-detail,
.pdf-actions-list
.recommendation-deadline,
.pdf-actions-list
.recommendation-actions {
  display: none !important;
}


/* ---------------------------------------------------------
   CONSIDERAÇÕES
   --------------------------------------------------------- */

.pdf-considerations {
  margin-top: 42px;

  padding-top: 42px;

  border-top:
    1px solid #efefef;
}

.pdf-considerations-text {
  margin-top: 16px;
}

.pdf-considerations-text p {
  margin: 0;

  color: #444444;

  font-size: 14px;

  line-height: 1.85;
}

.pdf-considerations-text
p + p {
  margin-top: 14px;
}


/* =========================================================
   PÁGINA 4
   ========================================================= */

.pdf-page-4 {
  background: #ffffff;
}


/* área azul */

.pdf-next-steps {
  position: relative;

  height: 624px;

  overflow: hidden;

  padding: 64px 60px;

  background:
    linear-gradient(
      160deg,
      #0a1f4e 0%,
      #072249 100%
    );

  color: #ffffff;

  text-align: center;
}

.pdf-next-steps::before {
  content: "";

  position: absolute;

  top: -80px;
  left: -80px;

  width: 320px;
  height: 320px;

  background:
    radial-gradient(
      circle,
      rgba(
        254,
        125,
        83,
        0.15
      ) 0%,
      transparent 70%
    );

  pointer-events: none;
}

.pdf-next-steps::after {
  content: "";

  position: absolute;

  right: -60px;
  bottom: -60px;

  width: 280px;
  height: 280px;

  background:
    radial-gradient(
      circle,
      rgba(
        159,
        0,
        102,
        0.15
      ) 0%,
      transparent 70%
    );

  pointer-events: none;
}

.pdf-next-content {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 580px;

  margin: 0 auto;
}

.pdf-next-kicker {
  margin-bottom: 14px;

  color: #fe7d53;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.pdf-next-title {
  margin: 0 0 18px;

  color: #ffffff;

  font-size: 36px;
  font-weight: 900;

  line-height: 1.2;
}

.pdf-next-description {
  max-width: 580px;

  margin: 0 auto 24px;

  color:
    rgba(
      255,
      255,
      255,
      0.70
    );

  font-size: 14px;

  line-height: 1.8;
}

.pdf-next-highlight {
  margin:
    0 0
    20px;

  color: #fe7d53;

  font-size: 15px;
  font-weight: 700;
}


/* serviços */

.pdf-service-tags {
  display: flex;

  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 12px;

  max-width: 620px;

  margin:
    0 auto 32px;
}

.pdf-service-tag {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 0;

  padding: 10px 22px;

  border:
    1.5px solid
    rgba(
      255,
      255,
      255,
      0.20
    );

  border-radius: 50px;

  background:
    rgba(
      255,
      255,
      255,
      0.10
    );

  color: #ffffff;

  font-size: 13px;
  font-weight: 600;
}


/* CTA */

.pdf-contact-button {
  display: inline-block;

  width: auto;

  margin: 0;

  padding: 18px 44px;

  border-radius: 50px;

  background:
    linear-gradient(
      135deg,
      #fe7d53,
      #9f0066
    );

  color: #ffffff;

  font-size: 15px;
  font-weight: 800;

  letter-spacing: 0.3px;
}

.pdf-contact-details {
  display: flex;

  flex-direction: column;

  gap: 2px;

  margin-top: 20px;

  color:
    rgba(
      255,
      255,
      255,
      0.40
    );

  font-size: 12px;

  line-height: 1.8;
}


/* =========================================================
   RODAPÉ FINAL
   ========================================================= */

.pdf-final-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  min-height: 70px;

  padding: 20px 60px;

  border-top:
    1px solid #e8e8e8;

  background: #f4f4f6;
}

.pdf-footer-logo {
  display: block;

  width: auto;
  height: 26px;

  object-fit: contain;
  object-position: left center;
}

.pdf-footer-info {
  color: #aaaaaa;

  font-size: 11px;

  line-height: 1.6;

  text-align: right;
}


/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {

  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;

    background:
      #ffffff !important;
  }

  .report-document {
    margin: 0 !important;
    padding: 0 !important;

    box-shadow:
      none !important;
  }

  .pdf-page {
    width:
      210mm !important;

    height:
      297mm !important;

    min-height:
      297mm !important;

    max-height:
      297mm !important;

    margin:
      0 !important;

    overflow:
      hidden !important;

    box-shadow:
      none !important;

    break-after:
      page !important;

    page-break-after:
      always !important;
  }

  .pdf-page:last-child {
    break-after:
      auto !important;

    page-break-after:
      auto !important;
  }

  .pdf-area-card,
  .pdf-actions-list .rec,
  .pdf-maturity-box,
  .pdf-gauge {
    break-inside:
      avoid !important;

    page-break-inside:
      avoid !important;
  }
}

/* =========================================================
   LINKS E ÍCONES - PRÓXIMOS PASSOS
   ========================================================= */

.pdf-service-icon {
  width: 17px;
  height: 17px;

  flex: 0 0 17px;

  color: #fe7d53;
}

.pdf-contact-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;
}

.pdf-contact-button:hover {
  color: #ffffff;

  transform:
    translateY(-1px);
}

.pdf-contact-details a {
  display: block;

  color:
    rgba(
      255,
      255,
      255,
      0.42
    );

  text-decoration: none;
}

.pdf-contact-details a:hover {
  color: #ffffff;

  text-decoration: underline;
}

@media print {

  .pdf-contact-button,
  .pdf-contact-details a {
    text-decoration: none !important;
  }

}

/* =========================================================
   PROTEÇÃO CONTRA TEXTOS LONGOS NO RELATÓRIO
   ========================================================= */

.report-document *,
.pdf-page * {
  min-width: 0;
}

.pdf-considerations-text,
.pdf-considerations-text p,
.pdf-actions-list .rec,
.pdf-actions-list .rec h3,
.pdf-actions-list .recommendation-description,
.pdf-section-description,
.pdf-maturity-box,
.pdf-maturity-box p,
.pdf-cover-company,
.pdf-footer-info {
  max-width: 100%;

  white-space: normal;

  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;

  hyphens: auto;
}

.report-document p,
.report-document h1,
.report-document h2,
.report-document h3,
.report-document span,
.report-document strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   PÁGINA 2 - SCORE + PLANO DE AÇÃO
   ========================================================= */

.pdf-page-analysis-actions .pdf-page-body {
  padding: 38px 60px 32px;
}

/* Score por área mais compacto */
.pdf-page-analysis-actions .pdf-area-grid {
  margin-top: 18px;
  gap: 10px;
}

.pdf-page-analysis-actions .pdf-area-card {
  padding: 18px 20px;
  min-height: 0;
}

.pdf-page-analysis-actions .pdf-area-card h3 {
  margin-bottom: 4px;
}

.pdf-page-analysis-actions .pdf-area-card .score-number {
  margin: 2px 0 6px;
}


/* Separador entre score e ações */
.pdf-combined-divider {
  height: 1px;
  margin: 28px 0 24px;
  background: #e7e9ee;
}


/* Plano de ação */
.pdf-page-analysis-actions .pdf-actions-description {
  margin-bottom: 16px;
}

.pdf-page-analysis-actions .pdf-actions-list {
  display: grid;
  gap: 9px;
}

.pdf-page-analysis-actions .pdf-actions-list .rec {
  margin: 0;
  padding: 14px 18px;
}

.pdf-page-analysis-actions .pdf-actions-list .rec h3 {
  margin: 3px 0 5px;
  font-size: 13px;
}

.pdf-page-analysis-actions .pdf-actions-list .rec p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}


/* Considerações finais */
.pdf-page-analysis-actions .pdf-considerations {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7e9ee;
}

.pdf-page-analysis-actions .pdf-considerations .pdf-section-title {
  margin-bottom: 10px;
}

.pdf-page-analysis-actions .pdf-considerations-text {
  font-size: 11px;
  line-height: 1.55;
}

.pdf-page-analysis-actions .pdf-considerations-text p {
  margin: 0 0 7px;
}

/* =========================================================
   PÁGINA FINAL COM CONSIDERAÇÕES + BLOCO AZUL EMBAIXO
   ========================================================= */

.pdf-page-final {
  height: 1123px;
  min-height: 1123px;
  max-height: 1123px;
}

.pdf-page-final-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pdf-final-considerations {
  padding: 44px 60px 24px;
  background: #ffffff;
}

.pdf-final-considerations .pdf-section-title {
  margin-bottom: 12px;
}

.pdf-final-considerations .pdf-considerations-text {
  font-size: 13px;
  line-height: 1.75;
}

.pdf-final-considerations .pdf-considerations-text p {
  margin: 0 0 10px;
}

.pdf-final-bottom {
  margin-top: auto;
}

.pdf-final-bottom .pdf-next-steps {
  height: 600px;
  min-height: 600px;
  padding: 52px 60px;
}

.pdf-final-bottom .pdf-final-footer {
  min-height: 74px;
  padding: 20px 60px;
}