html { scroll-behavior: smooth; }

.overflow-y-auto::-webkit-scrollbar { width: 6px; }
.overflow-y-auto::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.overflow-y-auto::-webkit-scrollbar-track { background: transparent; }

.card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
}
.input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px #0f766e;
}

.label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #0f766e;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s;
}
.btn-primary:hover { background: #115e59; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: #f1f5f9;
  color: #1e293b;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s;
}
.btn-secondary:hover { background: #e2e8f0; }

/* =====================================================================
   Relatório NR-1 — usado na aba Relatório e no PDF (mesmo markup).
   ===================================================================== */
.report-section { margin-bottom: 4rem; }

.report-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 1rem 0;
  padding-left: 0.875rem;
  border-left: 5px solid #0e7c72;
  line-height: 1.25;
}

/* Cabeçalho da seção (consolidado geral / por área) — card próprio */
.report-section-head {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.report-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0;
}
.report-pill {
  display: inline-block;
  padding: 0.3125rem 0.875rem;
  border: 1px solid;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
}

.report-gargalos {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.875rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0 0;
}
.report-gargalos-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 0.75rem;
}
.report-gargalos ol { margin: 0; padding-left: 1.25rem; font-size: 0.9375rem; color: #334155; }
.report-gargalos li { margin-bottom: 0.5rem; line-height: 1.5; }
.report-gargalos li:last-child { margin-bottom: 0; }

/* Cada bloco vira um card */
.report-bloco {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 5px solid var(--nivel, #94a3b8);
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.07);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.report-bloco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  padding: 0;
  margin-bottom: 1.25rem;
}
.report-bloco-head h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.25;
}
.report-bloco-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.625rem;
  background: #0e7c72;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}
.report-badge {
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.3125rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Chips com o escore de cada indicador do bloco */
.report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.report-chip {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.report-chip strong { font-weight: 800; }

.report-indicador {
  padding: 1.5rem 0 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  page-break-inside: avoid;
}
.report-chips + .report-indicador { padding-top: 1.75rem; margin-top: 0; border-top: 0; }
.report-indicador-nome {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.625rem;
  letter-spacing: -0.005em;
}
.report-definicao {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 1.25rem 0;
}
.report-status-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.report-status {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #334155;
  margin: 0;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--nivel-ind, #cbd5e1);
  background: #f8fafc;
}
.report-status strong { font-weight: 800; }
