/* _brand.css — Brakko Reembolso
   Tokens da identidade visual Brakko, extraídos do Manual da Marca (Platform Guidelines):
   - Azul Brakko profundo: #0D3978 / #084BA0   (fundos institucionais, headers)
   - Azul médio / accent:  #006AFE / #15A4FF   (destaques, links, botões primários)
   - Vermelho Brakko:      #D40230             (CTAs, alertas, ações de impacto)
   - Cinza Brakko:         #868E96             (labels, textos secundários)
   - Fundos claros:        #F8F9FA / #F1F3F5   (nunca branco puro)
   - Tipografia:           Albert Sans (700/800 títulos, 400/500 corpo)
   Regras do guia: margem segura ampla, sem branco/preto puro, sem sombras pesadas. */

:root {
  --azul-profundo: #0D3978;
  --azul:          #084BA0;
  --azul-medio:    #006AFE;
  --azul-claro:    #15A4FF;
  --vermelho:      #D40230;
  --cinza:         #868E96;
  --cinza-claro:   #ADB5BD;
  --bg:            #F8F9FA;
  --bg-2:          #F1F3F5;
  --surface:       #FFFFFF;
  --texto:         #212529;
  --borda:         #E1E5EA;
  --raio:          12px;
  --sombra:        0 4px 16px rgba(13, 57, 120, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; color: var(--azul-profundo); margin: 0; }

a { color: var(--azul-medio); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ───── Botões ───── */
.btn {
  font-family: inherit; font-weight: 700; font-size: .92rem;
  border: none; border-radius: 10px; padding: .65rem 1.2rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; transition: filter .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary   { background: var(--azul-medio); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-vermelho  { background: var(--vermelho); color: #fff; }
.btn-vermelho:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost     { background: var(--bg-2); color: var(--azul-profundo); }
.btn-ghost:hover:not(:disabled) { background: #E6E9ED; text-decoration: none; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; border-radius: 8px; }

/* ───── Cartões / superfícies ───── */
.card { background: var(--surface); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); }

/* ───── Inputs ───── */
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--texto);
  background: var(--surface); border: 1px solid var(--borda); border-radius: 10px;
  padding: .6rem .75rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--azul-medio); box-shadow: 0 0 0 3px rgba(0,106,254,.12);
}
.label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--cinza); margin-bottom: .35rem; }

/* ───── Header app ───── */
.app-header {
  background: linear-gradient(120deg, var(--azul-profundo) 0%, var(--azul) 100%);
  color: #fff; box-shadow: 0 2px 12px rgba(13,57,120,.18);
}
.app-header a, .app-header .muted { color: #C9D6EA; }

/* ───── Tag chip ───── */
.tag-chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700;
  color: #fff; padding: .18rem .55rem; border-radius: 999px; line-height: 1;
}

/* ───── Badges status ───── */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 999px; }
.badge-ok   { background: #E7F7EE; color: #16a34a; }
.badge-wait { background: #FFF4E5; color: #B26A00; }
.badge-proc { background: #E5F0FF; color: var(--azul-medio); }
.badge-err  { background: #FCE8EC; color: var(--vermelho); }

.muted { color: var(--cinza); }
.spin { animation: brk-spin .7s linear infinite; display: inline-block; }
@keyframes brk-spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
