/* Filtros, cards de resumo, gráficos e tabela de lançamentos */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; }
.filter-select, .search-box { color: #d7d9e2; background: #171d21; border: 1px solid var(--border); min-height: 39px; border-radius: 10px; padding: 0 12px; outline: none; }
.filter-select { min-width: 142px; }
.search-box { width: min(250px, 100%); display: flex; align-items: center; gap: 8px; }
.search-box svg { width: 16px; height: 16px; color: #7d8592; flex: 0 0 auto; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; color: white; background: transparent; }
.filter-spacer { flex: 1; }
.active-filter { background: #6259ed20; color: #aaa4ff; border: 1px solid #766df038; border-radius: 9px; padding: 9px 11px; font-size: 12px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 25px 0 13px; }
.section-title h2 { font-size: 15px; margin: 0; letter-spacing: -.25px; }
.section-title p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.quiet-link { color: #a8a2ff; background: transparent; border: 0; padding: 5px 0; font-size: 12px; font-weight: 650; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.stat-card { min-width: 0; padding: 18px 17px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-card { transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.stat-card:hover { transform:translateY(-4px); border-color:rgba(129,120,255,.30); box-shadow:0 18px 36px rgba(0,0,0,.20),0 0 0 1px rgba(129,120,255,.04); }
.stat-icon { transition:transform .24s cubic-bezier(.2,.75,.3,1.3),box-shadow .24s ease; }
.stat-card:hover .stat-icon { transform:translateY(-2px) rotate(-7deg) scale(1.08); box-shadow:0 0 20px currentColor; }
.nav-button svg { transition:transform .2s ease,filter .2s ease; }
.nav-button:hover svg { transform:translateY(-1px) scale(1.12) rotate(-4deg); filter:drop-shadow(0 0 5px currentColor); }
.panel { transition:border-color .22s ease,transform .22s ease,box-shadow .22s ease; }
.panel:hover { border-color:rgba(129,120,255,.13); box-shadow:0 12px 30px rgba(0,0,0,.10); }
.bar { transform-origin:bottom; animation:bar-appear .55s cubic-bezier(.2,.7,.2,1) both; }
.bar-month:nth-child(3n) .bar { animation-delay:.04s; }
.bar-month:nth-child(3n + 1) .bar { animation-delay:.08s; }
@keyframes bar-appear { from { transform:scaleY(.08); opacity:.45; } to { transform:scaleY(1); opacity:1; } }
.btn-primary { transition:transform .18s ease,filter .18s ease,box-shadow .18s ease; }
.btn-primary:hover { box-shadow:0 12px 28px rgba(102,92,246,.30); }
.stat-top { display: flex; justify-content: space-between; gap: 7px; align-items: start; }
.stat-label { color: #a6adb7; font-size: 12px; font-weight: 550; }
.stat-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; flex: 0 0 auto; }
.stat-icon svg { width: 16px; height: 16px; }
.icon-purple { color: #a49fff; background: #7168ff24; }
.icon-green { color: #47dfa0; background: #22c98720; }
.icon-pink { color: #fa88dc; background: #e84ec821; }
.icon-yellow { color: #ffd66a; background: #ffc8461d; }
.stat-value { margin: 12px 0 9px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 780; letter-spacing: -.7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-footer { color: #858d98; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.trend-up { color: #48d99a; }
.trend-down { color: #ff8197; }
.sparkline { height: 26px; width: 80px; position: absolute; right: 12px; bottom: 10px; opacity: .5; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 14px; margin-top: 14px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 19px; min-width: 0; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-header h2 { margin: 0; font-size: 14px; letter-spacing: -.2px; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; color: #9ea5b0; font-size: 10px; }
.legend span { display: flex; gap: 6px; align-items: center; }
.legend i { width: 7px; height: 7px; border-radius: 3px; display: inline-block; }
.chart-wrap { width: 100%; overflow: hidden; }
.bar-chart { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; height: 235px; }
.y-labels { display: flex; flex-direction: column; justify-content: space-between; padding: 5px 0 24px; color: #737c87; font-size: 9px; text-align: right; }
.plot { min-width: 0; position: relative; display: flex; flex-direction: column; }
.grid-lines { position: absolute; inset: 5px 0 25px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.grid-lines span { width: 100%; height: 1px; background: #ffffff0b; }
.bar-columns { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: clamp(3px, .8vw, 11px); flex: 1; z-index: 1; min-height: 0; }
.bar-month { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; min-width: 0; }
.bars { height: calc(100% - 26px); width: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; padding-top: 5px; }
.bar { width: min(13px, 42%); min-height: 2px; border-radius: 5px 5px 2px 2px; transition: height .35s ease; position: relative; }
.bar.income { background: linear-gradient(180deg,#7770ff,#4c48ce); box-shadow: 0 0 12px #665cf626; }
.bar.expense { background: linear-gradient(180deg,#f06bd8,#bd3ba2); }
.month-label { color: #838b96; font-size: 9px; line-height: 13px; text-align: center; }
.donut-layout { display: flex; align-items: center; gap: 16px; min-height: 195px; }
.donut { width: 156px; height: 156px; flex: 0 0 156px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; width: 62%; height: 62%; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1px #ffffff06; }
.donut-center { position: relative; z-index: 1; text-align: center; display: grid; gap: 4px; }
.donut-center strong { font-size: 20px; letter-spacing: -.6px; }
.donut-center span { color: #929aa6; font-size: 9px; line-height: 1.35; max-width: 75px; margin: 0 auto; }
.category-legend { display: grid; gap: 9px; min-width: 0; flex: 1; }
.category-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #a6adb8; font-size: 10px; min-width: 0; }
.category-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.category-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.category-item strong { color: #dce0e8; font-size: 10px; font-weight: 650; white-space: nowrap; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.progress-list { display: grid; gap: 15px; }
.progress-row { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(80px, 1.5fr) auto; align-items: center; gap: 11px; }
.progress-name { color: #abb2bc; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-track { height: 7px; background: #0e1316; border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg,#514bcb,#7970ff); }
.progress-value { color: #cbd0d8; font-size: 10px; white-space: nowrap; }
.line-chart { width: 100%; height: auto; display: block; overflow: visible; }
.line-chart text { fill: #7e8792; font-size: 9px; font-family: inherit; }
.transactions-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.transactions-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 19px 12px; }
.transactions-top h2 { margin: 0; font-size: 14px; }
.transactions-top p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 650px; }
th { text-transform: uppercase; letter-spacing: .7px; color: #747d89; font-size: 9px; font-weight: 750; padding: 12px 19px; border-top: 1px solid #ffffff08; border-bottom: 1px solid #ffffff08; }
td { padding: 13px 19px; color: #bac1cb; font-size: 11px; border-bottom: 1px solid #ffffff07; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #ffffff04; }
.tx-title { color: #e7e9ef; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.tx-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #ffffff08; color: #b2acff; }
.tx-icon svg { width: 15px; height: 15px; }
.tx-subtitle { color: #7f8894; font-size: 10px; margin-top: 3px; font-weight: 450; }
.type-tag { display: inline-flex; border-radius: 6px; padding: 5px 7px; font-size: 9px; font-weight: 700; }
.tag-receita { background: #20c9871a; color: #51dda1; }
.tag-despesa { background: #ee5a801a; color: #ff8a9f; }
.tag-investimento { background: #766bff20; color: #aaa3ff; }
.amount { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.receita { color: #55dca1; }
.amount.despesa { color: #ff8298; }
.amount.investimento { color: #aaa3ff; }
.row-actions { display: flex; gap: 5px; }
.icon-btn { border: 1px solid transparent; color: #87909c; background: transparent; width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { color: #fff; background: #ffffff0a; border-color: #ffffff0b; }
.icon-btn svg { width: 14px; height: 14px; }
.empty-state { text-align: center; padding: 34px 15px; color: #8e97a2; font-size: 12px; }
.empty-state strong { display: block; color: #e0e3eb; font-size: 14px; margin-bottom: 7px; }
.table-footer { padding: 12px 19px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid #ffffff08; color: #7f8894; font-size: 10px; }
.footer { margin-top: 20px; color: #515a65; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
