/* ===========================================================
   CARTEIRA AGRUPADA (categorias)
   =========================================================== */
.cat-list { display: flex; flex-direction: column; gap: var(--sp-1); }

/* Linhas de ativo e de aporte (.ticker-row é a linha da janela "Todos os aportes") */
.cat-pct { font-size: var(--fs-caption); color: var(--ink-3); margin-top: 2px; text-align: right; font-family: 'Geist Mono', monospace; }
.cat-appr { font-family: 'Geist Mono', monospace; font-size: var(--fs-caption); font-weight: 600; min-width: 60px; text-align: right; }
.cat-appr.pos { color: var(--gain); }
.cat-appr.neg { color: var(--loss); }
.ticker-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--border); animation: fadeUp 0.4s var(--ease-out) backwards; }
.ticker-row:last-child { border-bottom: none; }
.ticker-name { font-family: 'Geist Mono', monospace; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-2); }
.ticker-val { font-family: 'Geist Mono', monospace; font-size: var(--fs-caption); font-weight: 600; color: var(--ink); text-align: right; }
.ticker-appr { font-family: 'Geist Mono', monospace; font-size: var(--fs-micro); font-weight: 600; min-width: 58px; text-align: right; }
.ticker-appr.pos { color: var(--gain); }
.ticker-appr.neg { color: var(--loss); }
/* Tag "aporte" (lista de aportes): chip NEUTRO — aporte não é ganho (auditoria 2026-07-07) */
.ticker-appr.contrib-tag { color: var(--ink-2); background: var(--bg-elevated-3); border-radius: 6px; padding: 3px 8px; min-width: 0; justify-self: end; }

/* ===========================================================
   TABELA YEARLY HISTORY
   =========================================================== */
.yearly-table { width: 100%; border-collapse: collapse; font-family: 'Geist Mono', monospace; font-size: var(--fs-caption); }
.yearly-table th { text-align: left; padding: 12px 14px; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.yearly-table th:not(:first-child) { text-align: right; }
.yearly-table td { padding: 14px; color: var(--ink-2); border-bottom: 1px solid var(--border); transition: background 0.15s; }
.yearly-table td:not(:first-child) { text-align: right; }
.yearly-table td:first-child { font-weight: 700; color: var(--ink); }
.yearly-table tr:last-child td { border-bottom: none; }
.yearly-table tr:hover td { background: var(--bg-elevated-2); }
.pos { color: var(--gain); }
.neg { color: var(--loss); }

/* ===========================================================
   CHARTS
   =========================================================== */
.empty-chart { padding: 40px 20px; text-align: center; color: var(--ink-muted); font-size: var(--fs-caption); }
.empty-chart .ico { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }
.empty-chart h4 { color: var(--ink-2); margin: 8px 0 4px; font-size: var(--fs-body); }
.empty-chart p { font-size: var(--fs-micro); }

/* ===========================================================
   ENTRY ANIMATIONS
   =========================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp 0.6s var(--ease-out) backwards; }
.animate-in:nth-of-type(1) { animation-delay: 0.05s; }
.animate-in:nth-of-type(2) { animation-delay: 0.12s; }
.animate-in:nth-of-type(3) { animation-delay: 0.19s; }
.animate-in:nth-of-type(4) { animation-delay: 0.26s; }
.animate-in:nth-of-type(5) { animation-delay: 0.33s; }
.animate-in:nth-of-type(6) { animation-delay: 0.40s; }

