/* diretório: /assets/css/base.css */
/* criado em: 22/10/2026 às 10:06 | ajuste em: 22/10/2026 às 10:06 | versão: 1.0 */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/figtree-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --abismo: #04213b;
  --profundo: #073457;
  --mare: #0b5e8e;
  --agua: #1fb5c9;
  --agua-clara: #8fe3ec;
  --espuma: #eef7f8;
  --espuma-2: #e2f0f3;
  --sol: #ffc24b;
  --sol-escuro: #e8a114;
  --coral: #ef5a4c;
  --verde: #22a86b;
  --texto: #0b2a40;
  --texto-suave: #4f6b7f;
  --borda: #d3e5ea;
  --branco: #ffffff;
  --sombra-baixa: 0 1px 2px rgba(4, 33, 59, .06), 0 2px 8px rgba(4, 33, 59, .05);
  --sombra-alta: 0 18px 50px -20px rgba(4, 33, 59, .45);
  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio-p: 10px;
  --raio-m: 16px;
  --raio-g: 26px;
  --seg-topo: env(safe-area-inset-top, 0px);
  --seg-base: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--espuma);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--mare); text-underline-offset: 3px; }
a:hover { color: var(--profundo); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; color: inherit; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; border-radius: 6px; }
.oculto-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* botões */
.btn {
  --bf: var(--mare); --bt: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.35em;
  font: 650 1rem/1.1 var(--f-texto);
  color: var(--bt); background: var(--bf);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--bt); background: color-mix(in srgb, var(--bf) 88%, #000); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.desativado { opacity: .5; pointer-events: none; }
.btn-sol { --bf: var(--sol); --bt: var(--abismo); }
.btn-sol:hover { background: #ffcf6e; color: var(--abismo); }
.btn-escuro { --bf: var(--abismo); }
.btn-perigo { --bf: var(--coral); }
.btn-verde { --bf: var(--verde); }
.btn-fantasma { --bf: transparent; --bt: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-fantasma:hover { background: rgba(127, 127, 127, .1); color: inherit; }
.btn-claro { --bf: #fff; --bt: var(--texto); box-shadow: var(--sombra-baixa), inset 0 0 0 1px var(--borda); }
.btn-claro:hover { background: var(--espuma); color: var(--texto); }
.btn-p { min-height: 36px; padding: .45em .95em; font-size: .9rem; }
.btn-icone { width: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
.btn-bloco { width: 100%; }

/* formulários */
.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo > label, .rotulo { font-weight: 650; font-size: .92rem; color: var(--texto); }
.campo small, .ajuda { color: var(--texto-suave); font-size: .85rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input[type=time], input[type=file], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: 400 16px/1.4 var(--f-texto); color: var(--texto);
  background: #fff; border: 1.5px solid var(--borda); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--agua); box-shadow: 0 0 0 4px rgba(31, 181, 201, .18); }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 52px; }
.campo-senha .ver-senha {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 40px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--texto-suave); cursor: pointer; border-radius: 10px;
}
.campo-senha .ver-senha:hover { color: var(--mare); background: var(--espuma); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mare); flex: none; }
.linha-campos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* avisos e toasts */
.aviso { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 550; border: 1px solid; }
.aviso-sucesso { background: #e6f7ef; border-color: #b6e6cd; color: #11603b; }
.aviso-erro { background: #fdecea; border-color: #f6c3bd; color: #8e2318; }
.aviso-info { background: #e7f5fb; border-color: #bfe3f1; color: #0b4a6f; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--seg-base)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: var(--abismo); color: #fff; font-weight: 600; box-shadow: var(--sombra-alta); animation: toastEntra .3s cubic-bezier(.2, .9, .3, 1.2); }
.toast.erro { background: #8e2318; }
.toast.sucesso { background: #0f5a3b; }
@keyframes toastEntra { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* tabela */
.tabela-envolve { overflow-x: auto; border: 1px solid var(--borda); border-radius: var(--raio-m); background: #fff; }
.tabela { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tabela th, .tabela td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela th { font-size: .8rem; font-weight: 700; color: var(--texto-suave); background: #f7fbfc; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela td.num { text-align: right; font-variant-numeric: tabular-nums; }

.etiqueta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--espuma-2); color: var(--profundo); white-space: nowrap; }
.etiqueta.verde { background: #dcf3e8; color: #11603b; }
.etiqueta.coral { background: #fde3e0; color: #8e2318; }
.etiqueta.sol { background: #fff1cf; color: #7a5200; }

/* modal */
dialog.modal { border: 0; padding: 0; border-radius: var(--raio-g); width: min(94vw, 560px); max-height: 90vh; box-shadow: var(--sombra-alta); color: var(--texto); }
dialog.modal::backdrop { background: rgba(4, 33, 59, .55); backdrop-filter: blur(3px); }
.modal-topo { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 0; }
.modal-topo h3 { margin: 0; }
.modal-corpo { padding: 18px 22px 22px; overflow-y: auto; }

.paginacao { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 22px 0; color: var(--texto-suave); }

.vazio { text-align: center; padding: 40px 20px; color: var(--texto-suave); }
.vazio .ic { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--agua); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
