*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden; /* quem rola de lado é o componente (.table-wrap), nunca a página */
}
button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: var(--blue-text); }
a.btn, a.chip { text-decoration: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

/* Scrollbar temática (Firefox + Chromium) */
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* Utilitários pequenos */
.muted  { color: var(--text3); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-amber { color: var(--amber); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text3); font-size: 14px; }
.empty-state i { font-size: 32px; display: block; margin-bottom: 8px; opacity: .6; }
