/* Base das duas telas. Fica em /aprovar/ porque a página do cliente fica fora do login. */
:root {
  --fundo: #fafaf8;
  --papel: #ffffff;
  --tom: #f1f1ec;
  --verde: #0f3d2e;
  --verde-forte: #082a1f;
  --verde-claro: #e6eeea;
  --texto: #141414;
  --suave: #5c5c5c;
  --linha: #e2e2dc;
  --linha-forte: #c6c6bd;
  --alerta: #7a4b00;
  --alerta-fundo: #fbf0d9;
  --erro: #9b1c1c;
  --erro-fundo: #fbe9e9;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 0.9375rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  accent-color: var(--verde);
  caret-color: var(--verde);
}
[hidden] { display: none !important; }
::selection { background: var(--verde); color: #fff; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--verde); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
.marca { font-weight: 800; letter-spacing: 0.02em; color: var(--verde); font-size: 0.9375rem; }
.suave { color: var(--suave); }
.pequeno { font-size: 0.8125rem; }

button, .botao {
  font: inherit;
  font-weight: 600;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--linha-forte);
  background: var(--papel);
  color: var(--texto);
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
button:hover, a.botao:hover { background: var(--tom); }
a.botao { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.principal { background: var(--verde); border-color: var(--verde); color: #fff; }
button.principal:hover { background: var(--verde-forte); }
button.perigo { color: var(--erro); }
button.perigo.principal { background: var(--erro); border-color: var(--erro); color: #fff; }
button:disabled { cursor: default; opacity: 0.55; }
input, select, textarea {
  font: inherit;
  color: var(--texto);
  background: var(--papel);
  border: 1px solid var(--linha-forte);
  border-radius: 6px;
  min-height: 40px;
  padding: 0.5rem 0.625rem;
  max-width: 100%;
}
textarea { width: 100%; min-height: 7rem; resize: vertical; }
label { font-weight: 600; font-size: 0.875rem; }

.selo { display: inline-block; padding: 0.125rem 0.625rem; border-radius: 99px; font-size: 0.8125rem; font-weight: 600; background: var(--tom); color: var(--texto); white-space: nowrap; }
.selo.agir { background: var(--alerta-fundo); color: var(--alerta); }
.selo.bom { background: var(--verde-claro); color: var(--verde); }
.selo.ruim { background: var(--erro-fundo); color: var(--erro); }

.aviso { padding: 0.75rem 1rem; border-radius: 8px; background: var(--alerta-fundo); color: var(--alerta); }
.aviso.erro { background: var(--erro-fundo); color: var(--erro); }
.aviso.bom { background: var(--verde-claro); color: var(--verde); }
.aviso > p + p { margin-top: 0.5rem; }
.aviso ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }

.texto { max-width: 68ch; overflow-wrap: anywhere; }
.texto > * + * { margin-top: 1rem; }
.texto h1, .texto h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--verde); }
.texto h3 { margin-top: 1.5rem; }
.texto > :first-child { margin-top: 0; }
.texto ul, .texto ol { padding-left: 1.375rem; }
.texto li + li { margin-top: 0.375rem; }
.texto table { display: block; overflow-x: auto; border-collapse: collapse; }
.texto th, .texto td { border-bottom: 1px solid var(--linha); padding: 0.5rem 0.75rem; text-align: left; }
.texto pre { overflow-x: auto; background: var(--tom); padding: 0.75rem; border-radius: 6px; }

.campos { margin: 0; display: grid; gap: 0.875rem; }
.campos dt { font-size: 0.8125rem; color: var(--suave); }
.campos dd { margin: 0.125rem 0 0; overflow-wrap: anywhere; max-width: 68ch; }
.campos ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }

.carregando { display: grid; gap: 0.75rem; }
.carregando span { display: block; height: 1rem; border-radius: 4px; background: var(--tom); animation: pulso 1.2s ease-in-out infinite alternate; }
.carregando span:nth-child(2) { width: 70%; }
.carregando span:nth-child(3) { width: 85%; }
@keyframes pulso { to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (pointer: coarse) { button, a.botao, input, select { min-height: 44px; } }
