:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #eeeeee;
  --border: #e5e5e5;
  --border-strong: #000000;
  --text: #000000;
  --text-dim: #6b6b6b;
  --text-muted: #8e8e93;
  --brand-color: #ff4f1f;
  --brand-soft: #ffe8e0;
  --positive: #1a8754;
  --negative: #ff4f1f;
  --grid: #ececec;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --bg: #000000;
  --surface: #0c0c0c;
  --surface-2: #181818;
  --surface-3: #222222;
  --border: #2a2a2a;
  --border-strong: #ffffff;
  --text: #ffffff;
  --text-dim: #999999;
  --text-muted: #666666;
  --brand-soft: #2a1410;
  --positive: #4ade80;
  --negative: #ff4f1f;
  --grid: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

/* Identidades das Empresas */
[data-company="NOSSA"] {
  --brand-color: #ff4f1f;
  --brand-soft: rgba(255, 79, 31, 0.12);
}
[data-company="MOSSA"] {
  --brand-color: #0066cc;
  --brand-soft: rgba(0, 102, 204, 0.12);
}
[data-company="CHLICK"] {
  --brand-color: #7928ca;
  --brand-soft: rgba(121, 40, 202, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.container {
  padding: 24px 32px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Tipografia */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Utilitários */
.num { text-align: right; font-variant-numeric: tabular-nums; }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.hidden { display: none !important; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-pos { background: var(--positive); color: #ffffff; }
.badge-neg { background: var(--negative); color: #ffffff; }
.badge-role {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-role.admin {
  background: var(--brand-soft);
  color: var(--brand-color);
  border-color: var(--brand-color);
}
