/* ===================== Financeiro — estilo vidro ===================== */
.fin-page {
  contain: paint;
  --glass: rgba(255, 255, 255, .10);
  --glass-2: rgba(255, 255, 255, .19);
  --glass-line: rgba(255, 255, 255, .18);
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .72);
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; padding: 28px 32px 32px; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .08);
  font-weight: 300;
  background: #111a1d;
}
/* céu: nuvens, luz e um toque da cor do tema */
.fin-page::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 34% 26% at 48% 22%, rgba(220, 235, 240, .22), transparent 70%),
    radial-gradient(ellipse 45% 30% at 30% 18%, rgba(70, 100, 110, .55), transparent 70%),
    radial-gradient(ellipse 40% 34% at 62% 30%, rgba(40, 60, 70, .7), transparent 70%),
    radial-gradient(ellipse 30% 22% at 82% 52%, rgba(255, 214, 150, .28), transparent 70%),
    radial-gradient(ellipse 55% 40% at 15% 60%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 10%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%),
    linear-gradient(180deg, #213238 0%, #2b3f44 38%, #4b5a4c 58%, #2a3a26 70%, #18240f 100%);
}
/* campo no horizonte + granulado */
.fin-page::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 48%; z-index: -1;
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  background:
    repeating-linear-gradient(172deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 16px) 0 60px / 100% 100% no-repeat,
    radial-gradient(ellipse 60% 50% at 75% 0%, rgba(255, 220, 160, .16), transparent 70%),
    linear-gradient(180deg, rgba(63, 90, 46, 0) 0%, rgba(63, 90, 46, .85) 18%, #2a4220 38%, #182a12 72%, #0d170a 100%);
}

.glass {
  background: linear-gradient(145deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px rgba(0, 0, 0, .18);
}

.fin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.fin-eyebrow { color: var(--ink-2); font-size: 12px; }
.fin-who { font-weight: 600; font-size: 16px; margin-top: 2px; }
.fin-actions { display: flex; gap: 10px; align-items: center; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--glass); border: 1px solid var(--glass-line);
}
.round-btn:hover { background: var(--glass-2); }
.glass-seg { background: var(--glass); border-color: var(--glass-line); border-radius: 999px; }
.glass-seg button { color: var(--ink-2); border-radius: 999px; padding: 6px 12px; }
.glass-seg button.on { background: rgba(255, 255, 255, .92); color: #13201f; }

.fin-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.glass-pill {
  display: inline-block; font-size: 12px; font-weight: 500; padding: 7px 13px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--glass-line);
}
.fin-title { font-size: clamp(34px, 4.6vw, 58px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 16px; }
.fin-title span { font-weight: 300; }
.fin-desc { max-width: 470px; font-size: 13px; line-height: 1.65; color: var(--ink-2); margin: 0 0 30px; }

/* gráfico em onda */
.wave { position: relative; }
.wave-vals, .wave-labels { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.wave-col { background: none; border: 0; color: var(--ink-2); padding: 0 0 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.wave-col .wv { font-size: clamp(16px, 2vw, 26px); font-weight: 300; letter-spacing: -.02em; }
.wave-col .wdot { width: 7px; height: 7px; border-radius: 50%; opacity: .85; }
.wave-col.on, .wave-col:hover { color: #fff; }
.wave-col.on .wv { font-weight: 600; }
.wave[style*="--n:12"] .wave-col .wv { font-size: 14px; }
.wave-svg { display: block; width: 100%; height: 150px; overflow: visible; }
.wave-labels { margin-top: 16px; }
.wave-labels button { background: none; border: 0; color: var(--ink-2); font-size: 13px; padding: 6px 0; }
.wave-labels button.on { color: #fff; font-weight: 600; }
.wave-labels button:hover { color: #fff; }

/* coluna da direita */
.fin-side { display: flex; flex-direction: column; gap: 14px; }
.glass-main { padding: 20px 22px; }
.gm-head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.gm-big { font-size: 44px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; margin-top: 14px; white-space: nowrap; }
.gm-big small { font-size: 20px; color: var(--ink-2); }
.gm-sub { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.gm-metrics { display: flex; gap: 14px; margin-top: 16px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.gm-metrics span { display: inline-flex; align-items: center; gap: 5px; }
.gm-metrics .ico { width: 14px; height: 14px; }
.glass-row { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.glass-row small { display: block; font-size: 11px; color: var(--ink-2); }
.glass-row b { display: block; font-weight: 600; font-size: 15px; margin: 4px 0 2px; }
.glass-row span { font-size: 12px; color: var(--ink-2); }
.gr-val { font-size: 26px; font-weight: 300; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.gr-val i { width: 8px; height: 8px; border-radius: 50%; }

/* painéis de baixo */
.fin-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.panel { padding: 20px 22px; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.panel-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); }
.panel-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mini-label { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; display: flex; justify-content: space-between; }
.fin-page .cat-row .hbar { background: rgba(255, 255, 255, .12); }
.fin-page .cat-row .val small, .fin-page .muted { color: var(--ink-2); }
.settle { display: flex; flex-direction: column; }
.settle-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.settle-row:last-child { border-bottom: 0; }
.settle-row b { display: block; font-weight: 600; }
.settle-row span { font-size: 12px; color: var(--ink-2); }
.tag { font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: rgba(52, 211, 153, .18); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, .35); }
.tag.bad { background: rgba(248, 113, 113, .18); color: #fecaca; border: 1px solid rgba(248, 113, 113, .35); }
.fin-page .avatar { border-color: rgba(255, 255, 255, .25); }

.glass-table th { color: var(--ink-2); border-bottom-color: rgba(255, 255, 255, .14); font-weight: 500; }
.glass-table td { border-bottom-color: rgba(255, 255, 255, .08); }
.glass-table tr.clickable:hover td { background: rgba(255, 255, 255, .06); }
.glass-table tr.sel td { background: rgba(255, 255, 255, .1); }
.glass-table .totals-row td { border-top: 1px solid rgba(255, 255, 255, .2); }
.fin-page .amount-in { color: #6ee7b7; }
.fin-page .amount-out { color: #fca5a5; }
.tx-desc { display: flex; align-items: center; gap: 10px; }
.tx-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.tx-ico .ico { width: 14px; height: 14px; }
.tx-ico.in { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.tx-ico.out { background: rgba(248, 113, 113, .18); color: #fca5a5; }
.fin-page .fin-filters select { background: rgba(255, 255, 255, .1); border-color: var(--glass-line); color: #fff; border-radius: 999px; padding: 7px 12px; }
.fin-page .fin-filters select option { background: #1c2a2c; }
.fin-page .link { color: var(--ink-2); }
.fin-page .card-actions button { color: var(--ink-2); }
.fin-page .card-actions button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fin-page .empty { color: var(--ink-2); }

@media (max-width: 1100px) {
  .fin-hero { grid-template-columns: 1fr; }
  .fin-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .glass-main { grid-row: span 3; }
}
@media (max-width: 760px) {
  .fin-page { padding: 20px 16px; border-radius: 20px; }
  .fin-side { display: flex; }
  .fin-lower, .panel-split { grid-template-columns: 1fr; }
  .wave-col .wv { font-size: 14px !important; }
  .wave-col .wdot { display: none; }
  .wave-labels button { font-size: 11px; }
}
