/* Vinera Finance System 2.6 — navegação e gráficos sem bibliotecas externas. */
.expense-subnav{display:flex;align-items:center;gap:6px;padding:5px;margin:4px 0 18px;max-width:450px;background:#0f1c2c;border:1px solid #334a5e;border-radius:13px}
.expense-subtab{flex:1;border:1px solid transparent;border-radius:9px;padding:11px 13px;background:transparent;color:#a8bdcd;font-weight:680;font-size:14px;min-height:43px;white-space:nowrap}
.expense-subtab:hover{color:#eaf8f4;background:#203447}
.expense-subtab.active{border-color:#356e64;background:#1a473e;color:#c1ffe8;box-shadow:0 2px 8px #0003}
.chart-card{padding:24px 28px 19px;overflow:hidden}
.chart-card .section-heading{align-items:flex-start;gap:14px;flex-wrap:wrap}
.chart-card h2{margin:0!important}
.chart-card .section-heading .note{margin:7px 0 0;line-height:1.6}
.chart-heading{margin-bottom:12px}
.chart-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;font-size:12px;font-weight:650;color:#c2d4e0;padding-top:4px}
.legend-dot{display:inline-flex;align-items:center;gap:7px}
.legend-dot::before{content:"";width:9px;height:9px;border-radius:50%;display:block}
.legend-dot.green-dot::before{background:#45dfb4}
.legend-dot.red-dot::before{background:#fb8796}
.chart-viewport{width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#36566b transparent}
.financial-trend{display:block;width:100%;height:auto;min-width:530px;max-height:300px;overflow:visible}
.financial-trend .chart-ylabel{font-size:16px;fill:#91aebf;font-weight:550}
.financial-trend .chart-xlabel{font-size:15px;fill:#adcad8;font-weight:650}
.chart-period{color:#bed4df;background:#203548;border:1px solid #334e5d;padding:5px 10px;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap}
.chart-empty{text-align:center;color:#b3cad8;padding:44px 15px 32px;line-height:1.6;font-size:14px;border:1px dashed #354d5e;border-radius:12px;background:#102032}
.chart-empty .quicklinks{justify-content:center;max-width:450px;margin:16px auto 0}
.category-chart{display:grid;gap:19px;margin-top:23px}
.category-chart-item{display:grid;gap:7px}
.category-chart-line{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:14px;color:#d5e7f0}
.category-chart-line strong{white-space:nowrap;font-size:15px;font-variant-numeric:tabular-nums;color:#f2f8ff}
.category-track{height:12px;border-radius:99px;background:#23384b;overflow:hidden}
.category-track span{display:block;height:100%;border-radius:99px;max-width:100%;transition:width .15s ease}
.chart-footnote{border-top:1px solid #2d4255;margin:24px 0 0;padding-top:12px}
.finance-page-total{display:flex;flex-direction:column;gap:9px;padding:20px 24px;border-radius:16px;border:1px solid #2d6759;background:linear-gradient(120deg,#143a33,#142c38);margin-bottom:16px}
.finance-page-total span{color:#a9dbcb;font-size:13px}
.finance-page-total strong{color:#55e9bd;font-size:clamp(1.85rem,4vw,2.5rem);font-weight:810;line-height:1.14;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.ledger-row .ledger-description{min-width:0;overflow-wrap:anywhere}
.ledger-row .ledger-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:110px}
.ledger-row .ledger-actions .value{font-size:15px}
.revenue-context{margin:17px 3px}
@media(max-width:899px){
 .chart-card{padding:19px 17px}
 .financial-trend{min-width:565px}
 .chart-card .chart-legend{gap:12px}
 .finance-page-total{padding:19px}
}
@media(max-width:599px){
 .expense-subnav{max-width:none;width:100%}
 .expense-subtab{font-size:13px;padding:10px 8px}
 .chart-card{padding:19px 14px}
 .chart-card .section-heading{gap:8px}
 .chart-card h2{font-size:1.07rem}
 .chart-empty{padding:32px 13px}
 .category-chart-line{font-size:13px}
 .category-chart-line strong{font-size:13px}
 .chart-period{font-size:11px}
 .ledger-row .ledger-actions{min-width:80px}
 .app-topbar .system-name h1{font-size:clamp(15px,4vw,18px);white-space:normal;line-height:1.15}
}
@media(max-width:365px){.expense-subtab{font-size:12px}.chart-card .chart-period{margin-left:auto}}
