/* Paleta oficial Vega: #00ADF9, #434C53 e #F4F4F4.
 * Esta folha e carregada por ultimo nas telas de Projetos e Intermitentes.
 * Preserva os estados semanticos (sucesso, aviso, erro e situacao de pagamentos).
 */
:root {
  --vega-brand-blue: #00ADF9;
  --vega-brand-graphite: #434C53;
  --vega-brand-light: #F4F4F4;
  --vega-brand-link: #A5E6FF;
  --navy: var(--vega-brand-graphite);
  --navy2: #303940;
  --green: var(--vega-brand-blue);
  --green2: var(--vega-brand-blue);
  --bg: #303940;
  --surface: var(--vega-brand-graphite);
  --surface-hover: #53616A;
  --line: #697984;
  --text: var(--vega-brand-light);
  --muted: #D6DFE4;
  --white: var(--vega-brand-light);
  --accent-hover: #0093D2;
}
html, body, main { background-color: var(--bg); color: var(--text); }
.metric, .panel, .module-card { border-color: var(--line); }
.module-card:not(.commissions):not(.expenses):not(.field-team):not(.payments) {
  border-top-color: var(--vega-brand-blue);
}
.primary, .nav.active { color: #082330; }
.primary:hover { background: var(--accent-hover); color: #082330; }
.sidebar .brand-mark, .auth-brand .brand-mark { background: var(--vega-brand-blue); color: #082330; }
::selection { background: var(--vega-brand-blue); color: #082330; }
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--vega-brand-blue);
  outline-offset: 2px;
}

/* Intermitentes: somente painel de gestao (.vi-shell).
 * Telas de aceite publico mantem seus estilos e fluxos.
 */
.vi-shell {
  --vi-bg: #303940;
  --vi-surface: var(--vega-brand-graphite);
  --vi-surface-2: #3B454D;
  --vi-line: #697984;
  --vi-text: var(--vega-brand-light);
  --vi-muted: #DAE2E7;
  --vi-accent: var(--vega-brand-blue);
  --vi-accent-soft: #205369;
}
.vi-shell .vi-mark, .vi-shell .vi-primary {
  background: var(--vi-accent);
  color: #082330;
}
.vi-shell .vi-primary:hover { background: #0093D2; color: #082330; }
.vi-loading { background: #303940; color: #DAE2E7; }

/* Logomarca oficial Vega. Arquivo mantido no dominio institucional da empresa. */
.vega-logo-img{display:block;max-width:100%;height:auto;object-fit:contain;object-position:left center;flex-shrink:0}
.auth-brand:has(.vega-logo-img){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;margin-bottom:16px}
.vega-logo-login{width:min(230px,85%);height:auto;aspect-ratio:363/82}
.vega-brand-product{font-family:Manrope,Arial,sans-serif;font-size:11px;letter-spacing:.25em;font-weight:800;color:var(--vega-brand-light,#f4f4f4);line-height:1.45}
.sidebar .brand:has(.vega-logo-img){display:flex;align-items:center;gap:9px;min-width:0}
.vega-logo-mobile{width:142px;aspect-ratio:363/82}
.sidebar .vega-brand-product{font-size:9px;letter-spacing:.13em;color:#bdeafd}
@media(max-width:420px){.vega-logo-login{width:190px}.vega-logo-mobile{width:132px}.sidebar .vega-brand-product{font-size:8px}}
