/* RECIBO: as cores e as peças comuns ao painel, à assinatura e à conferência. */
:root {
  --bg: #f4f5f2; --card: #ffffff; --text: #1d2420; --muted: #5d6862; --fraco: #8a948e;
  --line: #dde2dd; --line-forte: #c3cbc5; --brand: #1f5f4a; --brand-texto: #ffffff; --brand-fraco: #e3efe9;
  --ok: #1d7a4c; --ok-fundo: #e2f3ea; --aviso: #8a5a00; --aviso-fundo: #fbf0d9; --no: #b3261e; --no-fundo: #fbe5e3;
  --raio: 10px; --sombra: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614; --card: #1a201d; --text: #e6ebe8; --muted: #a3ada7; --fraco: #78837d;
    --line: #2a322e; --line-forte: #3a4540; --brand: #5fb894; --brand-texto: #0d1411; --brand-fraco: #1f3029;
    --ok: #6cc897; --ok-fundo: #18301f; --aviso: #e2b65a; --aviso-fundo: #33290f; --no: #f08a80; --no-fundo: #3a1c19;
    --sombra: none; color-scheme: dark;
  }
}
/* A marca: Ethnocentric (Typodermic), um peso só, servida do disco — o mesmo arquivo do EMISSARIO
   e do COMANDO. Só a palavra RECIBO (barra do topo e entrada): o resto segue a fonte do sistema.
   font-display: block: a palavra espera a fonte em vez de nascer em outra e trocar. */
@font-face { font-family: 'Ethnocentric'; font-weight: 400; font-style: normal; font-display: block;
  src: url('fontes/Ethnocentric-Regular.otf') format('opentype'); }
:root { --fonte-marca: 'Ethnocentric', system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 20px; margin: 0; line-height: 1.25; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--fraco); margin: 0; }
button, .botao { font: inherit; font-size: 14px; border-radius: 8px; padding: 9px 14px; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-texto); display: inline-flex;
  align-items: center; gap: 6px; justify-content: center; white-space: nowrap; }
button:disabled { opacity: .5; cursor: default; }
button.secundario, .botao.secundario { background: transparent; color: var(--text); border-color: var(--line-forte); }
button.perigo { background: transparent; color: var(--no); border-color: var(--no); }
button.pequeno, .botao.pequeno { padding: 5px 9px; font-size: 13px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-forte);
  border-radius: 8px; padding: 8px 10px; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: auto; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
label.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cartao { background: var(--card); border: 1px solid var(--line); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; }
.erro-do-campo { color: var(--no); font-size: 13px; min-height: 0; }
.erro-do-campo:empty { display: none; }
.selo-estado { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.selo-estado.assinado { background: var(--ok-fundo); color: var(--ok); }
.selo-estado.aberto { background: var(--aviso-fundo); color: var(--aviso); }
.selo-estado.recusado, .selo-estado.vencido { background: var(--no-fundo); color: var(--no); }
.selo-estado.cancelado, .selo-estado.fora { background: var(--line); color: var(--muted); }
.carregando { color: var(--muted); padding: 40px 0; text-align: center; }
.topo { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--card); }
.topo img { width: 28px; height: 28px; }
.topo .marca { display: flex; flex-direction: column; line-height: 1.15; }
.topo .marca strong { font-family: var(--fonte-marca); font-weight: 400; font-synthesis: none; text-transform: uppercase;
  font-size: 15px; letter-spacing: .045em; line-height: 1; margin-bottom: 3px;
  position: relative; top: .16em; /* a Ethnocentric senta alta na caixa: desce as maiúsculas para alinhar com o logo */ }
.topo .marca span { font-size: 12px; color: var(--muted); }
.topo .direita { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
