/* Painel de ferramentas dentro das etapas do roteiro.
 *
 * Aparece ao lado da pergunta da etapa, com a informação contextual e o
 * acesso à ferramenta. A separação entre "estado de revisão", "fonte
 * alterada" e "lacuna" é visual antes de ser conceitual: cada um tem sua
 * classe, e não se misturam na mesma linha sem distinção. Quem lê a
 */

.painel-ferramentas {
  border-left: 4px solid #cfd8dc;
  margin-top: 1rem;
}

.painel-ferramentas h2 {
  font-size: 1rem;
  margin-top: 0;
}

.lista-painel {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.linha-painel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.linha-vazia {
  color: #777;
}

.linha-rotulo {
  font-weight: 600;
  min-width: 12rem;
}

.linha-valor {
  color: #333;
}

.linha-detalhe {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: #555;
}

.lacuna-painel {
  font-size: 0.9rem;
  color: #8a4310;
  background: #fdf3e7;
  border-radius: 0.2rem;
  padding: 0.3rem 0.5rem;
}

.lista-painel-relacoes {
  list-style: none;
  margin: 0.4rem 0;
  padding: 0;
}

.relacao-painel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.acesso-ferramentas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.3rem;
}

/* No mapa, a faixa por perspectiva e a lista são a mesma informação. A faixa
 * usa cor apenas para distinguir a perspectiva; nunca para sugerir prioridade
 * ou qualidade, que o sistema não avalia. */
.faixa-mapa {
  border: 1px solid #ddd;
  border-radius: 0.3rem;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  background: #fcfcfc;
}

.faixa-mapa h4 {
  margin-top: 0;
  font-size: 0.95rem;
}

.lista-nos {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.no-mapa {
  border-left: 3px solid #90a4ae;
  padding: 0.3rem 0 0.3rem 0.5rem;
  margin-bottom: 0.4rem;
}

.no-em-ciclo {
  border-left-color: #d98b3a;
  background: #fdf8f2;
}

.no-texto {
  font-weight: 600;
}

.lista-partidas {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: #444;
}

.aresta {
  padding: 0.1rem 0;
}

.hipotese-aresta {
  color: #666;
  font-style: italic;
}

.aviso-ciclo {
  background: #fdf3e7;
  border-left: 4px solid #d98b3a;
  padding: 0.5rem 0.7rem;
  border-radius: 0.2rem;
  margin: 0.5rem 0;
}

.lista-ciclos {
  list-style: none;
  margin: 0.3rem 0;
  padding: 0;
  font-size: 0.9rem;
}

.ciclo {
  padding: 0.2rem 0;
}

.no-em-ciclo {
  font-weight: 600;
}

/* A matriz SWOT: quatro quadrantes, natureza exigida visível. A natureza é
 * mostrada porque ela decide o que pode entrar — e a validação está no
 * servidor, mas a pessoa precisa ver a regra antes de errar. */
.matriz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.quadrante {
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  padding: 0.6rem;
  background: #fdfdfd;
}

.quadrante h4 {
  margin-top: 0;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
}

.interpretacao {
  margin: 0.3rem 0;
  padding-left: 0.5rem;
  border-left: 2px solid #cfd8dc;
}

.possibilidade {
  font-weight: 500;
}

.lista-fatores-relacionados {
  list-style: none;
  margin: 0.3rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* PESTEL: a distinção entre "sem registros" e "avaliada" é o ponto da tela. */
.bloco-categoria {
  border: 1px solid #ddd;
  border-radius: 0.3rem;
  padding: 0.6rem;
  margin-bottom: 0.7rem;
}

.bloco-categoria h4 {
  margin-top: 0;
}

.selo-avaliacao {
  font-size: 0.9rem;
}

.selo-pendente {
  color: #8a4310;
  background: #fdf3e7;
  border-radius: 0.2rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.85rem;
}

.selo-revisao {
  color: #666;
  font-size: 0.8rem;
}

.selo-registro {
  font-size: 0.85rem;
  color: #555;
}

.origem-rotulo {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.3rem 0 0.2rem;
}

.origem-atual {
  border-left-color: #d98b3a;
  background: #fdf8f2;
}

.meta-indicador {
  margin: 0.3rem 0;
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.1rem 0.5rem;
  font-size: 0.9rem;
}

.meta-indicador dt {
  color: #555;
  font-weight: 600;
}

.meta-indicador dd {
  margin: 0;
}

.meta-recorte {
  margin: 0.4rem 0;
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.1rem 0.5rem;
  font-size: 0.9rem;
}

.meta-recorte dd {
  margin: 0;
}

.subtitulo {
  font-size: 0.9rem;
  margin: 0.6rem 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #555;
}

.registro {
  border: 1px solid #ddd;
  border-radius: 0.3rem;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  background: #fff;
}

.registro-fonte-alterada {
  border-left: 4px solid #d98b3a;
}

.registro-texto,
.subregistro-texto {
  margin: 0.25rem 0;
  white-space: pre-wrap;
}

.lista-registros,
.lista-subregistros {
  list-style: none;
  margin: 0.4rem 0;
  padding: 0;
}

.lista-subregistros {
  padding-left: 0.8rem;
  border-left: 2px solid #e0e0e0;
}

.subregistro {
  margin-bottom: 0.4rem;
}

.subregistro-nome {
  font-weight: 600;
}

/* Critérios SMART: a tabela por objetivo, e a nota de que o cálculo é da
 * pessoa. A ausência aparece como traço, e não como zero. */
.tabela-criterios,
.tabela-relacoes {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.tabela-criterios th,
.tabela-criterios td,
.tabela-relacoes th,
.tabela-relacoes td {
  border: 1px solid #ddd;
  padding: 0.3rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.tabela-criterios thead th,
.tabela-relacoes thead th {
  background: #f4f4f4;
}

.lista-criterios {
  list-style: none;
  margin: 0.4rem 0;
  padding: 0;
}

.criterio {
  margin-bottom: 0.6rem;
}

.criterio-nome {
  margin: 0;
  font-size: 0.95rem;
}

/* Visível apenas para leitores de tela. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Erros junto ao campo. A cor sozinha não é o aviso: o texto também diz. */
.campo-com-erro label {
  color: #8a2f2f;
}

.erro-campo {
  display: block;
  color: #8a2f2f;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.erros {
  border-left: 4px solid #8a2f2f;
  background: #fdf0f0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.2rem;
  margin-bottom: 0.6rem;
}

.erros-titulo {
  margin: 0 0 0.3rem;
  font-weight: 600;
}
