.parecer-v4-container {
  background: var(--color-card-background);
  line-height: 1.6;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1100px;
}

.parecer-v4-container * {
  box-sizing: border-box;
}

/* HEADER GLOBAL (Escuro e com Gradiente) */
.p4-header {
  background: var(--color-background);
  padding: 48px 20px 56px;
  text-align: center;
}
.p4-header img {
  height: 38px;
  margin-bottom: 20px;
  opacity: 0.95;
}
.score-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  background: var(--badge-bg, #00a7b5);
}
.p4-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}
.p4-header p {
  font-size: 13px;
  opacity: 0.78;
  margin: 2px 0 0 0;
}

/* CONTAINER DO CORPO */
.p4-body {
  padding: 48px 32px 32px;
}
.p4-section {
  margin-bottom: 44px;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #00a7b5;
}

/* RESUMO EXECUTIVO */
.summary {
  background: var(--color-background);
  padding: 32px 34px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #00a7b5;
}
.summary p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.summary p + p {
  margin-top: 12px;
}

/* ALERTA BAIXA EXPOSIÇÃO */
.alerta-baixa {
  background: #fef9c3;
  border-left: 4px solid #ca8a04;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
  color: #713f12 !important;
  font-size: 14px;
  line-height: 1.65;
}
.alerta-baixa strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.alerta-baixa p {
  margin: 0;
}

/* SNAPSHOT ESTRATÉGICO E ESTATÍSTICAS */
.snapshot-card {
  background: var(--linear-gradient);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border-top: 3px solid #00a7b5;
}
.stats-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f1f5f9;
}
.stat-block {
  flex: 1;
  padding: 22px 32px;
}
.stat-divider {
  width: 1px;
  background: #e2e8f0;
  align-self: stretch;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 500;
}
.stat-value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}
.stat-suffix {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-gray-light) !important;
  margin-left: 2px;
}

/* GRID DE VARIÁVEIS (ÍNDICE) */
.variaveis-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-background);
  border-bottom: 1px solid #f1f5f9;
}
.var-mini {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 80px;
  justify-content: center;
}
.var-mini + .var-mini {
  border-left: 1px solid #eef2f6;
}
.var-mini-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.var-mini-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ESPAÇO DO CHART JS */
.chart-block {
  padding: 28px 30px 24px;
}
.chart-block h2 {
  font-size: 16px;
  margin: 0 0 4px 0;
  font-weight: 600;
  text-align: center;
}
.chart-subtitle {
  font-size: 12px;
  text-align: center;
  margin-bottom: 12px;
}
.chart-wrapper {
  position: relative;
  height: 360px;
  padding: 0 20px;
}

/* RESPONSIVIDADE DO SNAPSHOT E CHART */
@media (max-width: 980px) {
  .variaveis-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .var-mini + .var-mini {
    border-left: none;
  }
  .var-mini:nth-child(odd) {
    border-right: 1px solid #eef2f6;
  }
  .var-mini:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid #eef2f6;
  }
}
@media (max-width: 700px) {
  .stats-strip {
    flex-direction: column;
  }
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  .stat-block {
    padding: 18px 24px;
  }
}

/* PILARES EM DETALHE */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--color-background);
  padding: 26px 26px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #00a7b5;
}
.pillar-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px 0;
}
.pillar-card p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* DESDOBRAMENTOS */
.desdobramentos {
  background: var(--color-background);
  padding: 32px 34px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #fd7e14;
}
.desdobramentos .lead {
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 8px 0;
}
.topico {
  padding: 18px 0 4px;
  border-top: 1px solid #f1f5f9;
  margin-top: 14px;
}
.topico:first-of-type {
  margin-top: 18px;
}
.topico h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.topico p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* RECOMENDAÇÕES */
.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.rec-item {
  padding: 22px 22px 20px;
  border-radius: 10px;
  background: var(--color-background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #00a7b5;
  display: flex;
  flex-direction: column;
}
.rec-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  align-self: flex-start;
}
.rec-titulo {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.rec-item p {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

/* FOOTER INFORMATIVO */
.p4-footer {
  background: var(--color-background);
  padding: 32px 20px 28px;
  text-align: center;
  margin-top: 16px;
}
.p4-footer img {
  height: 28px;
  margin-bottom: 14px;
  opacity: 0.75;
}
.p4-footer p {
  font-size: 12.5px;
  opacity: 0.65;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}
.p4-footer p + p {
  margin-top: 6px;
}
