/* ViareApp — Reset + elementos base */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; color: var(--viare-teal-dark); }
h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.015em; color: var(--viare-teal-dark); }
h3 { font-size: var(--fs-lg); font-weight: 650; color: var(--viare-teal-dark); }
h4 { font-size: var(--fs-md); font-weight: 650; }

a { color: var(--viare-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-5) 0; }

:focus-visible {
  outline: 2px solid var(--viare-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Rolagem discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); background-clip: content-box; }

/* Utilitários */
.u-muted { color: var(--text-muted); }
.u-soft { color: var(--text-soft); }
.u-sm { font-size: var(--fs-sm); }
.u-xs { font-size: var(--fs-xs); }
.u-bold { font-weight: 650; }
.u-right { text-align: right; }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.u-num { font-variant-numeric: tabular-nums; }
.u-hidden { display: none !important; }
.u-pos { color: var(--success); }
.u-neg { color: var(--danger); }

.u-row { display: flex; align-items: center; gap: var(--sp-3); }
.u-row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.u-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.u-wrap { flex-wrap: wrap; }
.u-grow { flex: 1; min-width: 0; }
.u-gap-1 { gap: var(--sp-1); }
.u-gap-2 { gap: var(--sp-2); }
.u-gap-4 { gap: var(--sp-4); }
.u-gap-6 { gap: var(--sp-6); }
.u-mt-2 { margin-top: var(--sp-2); }
.u-mt-4 { margin-top: var(--sp-4); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mb-4 { margin-bottom: var(--sp-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
