/* Estilo simples, sem depender de bibliotecas externas (funciona sem internet). */
:root {
  --vermelho-simas: #C00000;
  --amarelo-simas: #FFF2CC;
  --cinza-escuro: #333;
  --cinza-borda: #ccc;
  --cinza-fundo: #f5f5f5;
}
* { box-sizing: border-box; }
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background: var(--cinza-fundo);
  color: #222;
}
header.topo {
  background: var(--vermelho-simas);
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
header.topo a { color: white; text-decoration: none; }
header.topo .marca { font-weight: bold; font-size: 1.1em; display:flex; align-items:center; gap:8px;}
header.topo img.logo { height: 32px; background: white; border-radius: 4px; padding: 2px; }
nav.menu { display: flex; gap: 14px; flex-wrap: wrap; }
nav.menu a { padding: 4px 6px; border-radius: 4px; }
nav.menu a:hover { background: rgba(255,255,255,0.15); }
.usuario-info { font-size: 0.85em; }
main.conteudo { max-width: 1100px; margin: 20px auto; padding: 0 16px 40px; }
h1 { font-size: 1.4em; }
h2 { font-size: 1.15em; margin-top: 1.6em; }
.caixa {
  background: white;
  border: 1px solid var(--cinza-borda);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}
.barra-secao {
  background: var(--vermelho-simas);
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px 4px 0 0;
  margin-top: 18px;
}
table { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
table.form-tabela td, table.form-tabela th { border: 1px solid var(--cinza-borda); padding: 6px 8px; vertical-align: top; }
table.form-tabela th { background: #eee; text-align: left; width: 30%; }
table.lista { background: white; }
table.lista th, table.lista td { border: 1px solid var(--cinza-borda); padding: 8px; text-align: left; }
table.lista th { background: #eee; }
input[type=text], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 6px; border: 1px solid var(--cinza-borda); border-radius: 4px; font-family: inherit; font-size: 0.95em;
}
textarea { min-height: 60px; resize: vertical; }
label { font-weight: bold; display: block; margin-bottom: 4px; font-size: 0.9em; }
.linha { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 10px;}
form.linha > div { flex: 1; min-width: 160px; }
.indicador-autosave { font-style: italic; }
.botao, button, input[type=submit] {
  background: var(--vermelho-simas); color: white; border: none; padding: 8px 14px;
  border-radius: 4px; cursor: pointer; font-size: 0.95em; text-decoration: none; display: inline-block;
}
.botao.secundario, button.secundario { background: #555; }
.botao.perigo, button.perigo { background: #8a1f1f; }
.botao.pequeno, button.pequeno { padding: 4px 8px; font-size: 0.85em; }
.botao:hover, button:hover { opacity: 0.9; }
.selo { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.8em; color: white; font-weight: bold; }
.selo.RASCUNHO { background: #888; }
.selo.EM_APROVACAO { background: #B36B00; }
.selo.REPROVADO { background: #8a1f1f; }
.selo.APROVADO { background: #1f7a1f; }
.selo.pendente { background: #2f5fa8; margin-left: 6px; }
.flashes { list-style: none; padding: 0; margin: 0 0 14px; }
.flashes li { padding: 8px 12px; border-radius: 4px; margin-bottom: 6px; }
.flashes li.sucesso { background: #dff0d8; color: #3c763d; }
.flashes li.erro { background: #f2dede; color: #a94442; }
.flashes li.aviso { background: #fcf8e3; color: #8a6d3b; }
.ajuda { color: #666; font-size: 0.85em; margin-top: 2px; }
.grade-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grade-campos.uma-coluna { grid-template-columns: 1fr; }
.campo { margin-bottom: 10px; }
.miniatura { max-width: 140px; max-height: 140px; display: block; margin-bottom: 6px; border: 1px solid var(--cinza-borda); }
.acoes-rapidas { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
