/* Auditor — estilos minimalistas. Sem dependencias externas. */
:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #666;
  --borda: #ddd;
  --ok: #146c2e;
  --erro: #a71226;
  --atencao: #8a6d00;
  --link: #2058c7;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.4;
}
.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--borda);
  background: white;
}
.topo h1 { font-size: 1.1rem; margin: 0; }
.topo a { color: var(--fg); text-decoration: none; }
.topo .quem { color: var(--muted); margin-right: 0.75rem; font-size: 0.9rem; }
.topo .inline { display: inline; }
.topo .link {
  background: none; border: none; color: var(--link); cursor: pointer;
  padding: 0; font-size: 0.9rem;
}
main { padding: 1.5rem; max-width: 960px; margin: 0 auto; }
h2 { margin-top: 0; font-size: 1.15rem; }
section { margin-bottom: 2rem; }
label { display: block; margin-bottom: 0.75rem; }
input[type=email], input[type=password], input[type=file] {
  display: block; width: 100%; max-width: 24rem; padding: 0.4rem;
  border: 1px solid var(--borda); border-radius: 3px; margin-top: 0.2rem;
}
button {
  padding: 0.4rem 0.9rem; background: var(--link); color: white;
  border: none; border-radius: 3px; cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.erro { color: var(--erro); }
.aviso { padding: 0.75rem 1rem; border-radius: 3px; margin-top: 1rem; }
.aviso.ok { background: #e6f4ea; border-left: 4px solid var(--ok); }
.aviso.erro { background: #fbe6e9; border-left: 4px solid var(--erro); }
.aviso.atencao { background: #fff7d9; border-left: 4px solid var(--atencao); }
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--borda); }
th { background: #f0f0f0; font-weight: 600; font-size: 0.9rem; }
.vazio { color: var(--muted); font-style: italic; }
.expirado { color: var(--muted); font-style: italic; font-size: 0.9em; }
.estado { text-transform: capitalize; }
.estado-concluido { color: var(--ok); }
.estado-falhou { color: var(--erro); }
.estado-processando, .estado-na_fila { color: var(--atencao); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; }
dt { font-weight: 600; color: var(--muted); }
a { color: var(--link); }

/* Indicador HTMX: por padrao invisivel; visivel durante o request.
   HTMX aplica a classe `htmx-request` no elemento com hx-post enquanto
   a chamada esta em andamento. `.htmx-indicator` fica opaco a partir
   dai. Fallback nativo (sem HTMX) nao mostra o indicador — o browser
   navega e a proxima pagina traz o resultado. */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms;
  margin-left: 0.5rem;
  color: var(--atencao);
  font-size: 0.9rem;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}
.progresso::before { content: "⏳ "; }

