/* Layout matched to the approved Graphite reference. */
body .referenceReady{gap:18px!important}
body .referenceReady>.balanceHero,body .referenceReady>.dashboardSectionLabel,body .referenceReady>.dashboardMetrics,body .referenceReady>.uixQuickActions{display:none!important}
body .referenceTop{margin-bottom:4px!important}.referenceTop h1{font-size:28px!important;letter-spacing:-.6px}.referenceNewTx{white-space:nowrap}.referenceTop .dashboardRefreshButton{min-width:40px}
#referenceDashboard{display:flex;flex-direction:column;gap:18px}.referenceMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body .referenceMetric{position:relative;overflow:hidden;padding:20px!important;min-height:136px;background:linear-gradient(120deg,#22272a,#1a1e21)!important;border:1px solid #30373a!important;border-radius:12px!important}.referenceMetric:before{content:'';position:absolute;top:0;left:16px;width:24px;height:2px;background:#2aadb0;opacity:.6}.referenceMetric .k{font-size:12px!important;letter-spacing:.01em}.referenceMetric strong{display:block;color:#f6f8f9;font-size:clamp(20px,2vw,30px);font-weight:750;letter-spacing:-.8px;margin:12px 0 8px;font-variant-numeric:tabular-nums}.referenceMetric small{font-size:10px!important;line-height:1.5;display:block}.referenceMetricIcon{position:absolute;right:16px;top:16px;color:#a3b2ba;font-size:18px}
.referenceMainGrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:18px}.referenceCardHead{display:flex;align-items:center;justify-content:space-between;gap:10px}.referenceCardHead h2{font-size:15px;letter-spacing:-.25px;margin:0}.referencePeriod{font-size:10px;border:1px solid #353c41;background:#23292d;padding:6px 9px;border-radius:6px;white-space:nowrap}.referenceChartCard,.referenceUpcoming{min-width:0;padding:20px!important}.referenceLegend{display:flex;justify-content:flex-end;gap:16px;margin:16px 0 4px;font-size:10px;color:#c7d0d5}.referenceLegend span:before{content:'';display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%}.legendIncome:before{background:#29bbd0}.legendExpenses:before{background:#ef737b}.legendNet:before{background:#2388ff}.referenceChartWrap{position:relative;height:242px}.referenceChartWrap canvas{width:100%;height:100%;display:block}.referenceChartWrap p{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);margin:0;text-align:center;font-size:12px;color:#a4afb6;background:#1b2024e8;padding:10px;border-radius:6px}.referenceChartWrap p:empty{display:none}.referenceChartData{font-size:11px;margin-top:6px;color:#a5afb6}.referenceChartData>div{overflow:auto}.referenceTextAction{background:transparent;border:0;color:#c5cdd2;cursor:pointer;font-size:11px;white-space:nowrap}.referenceUpcoming>small{display:block;margin:8px 0 12px;font-size:10px}
.referenceCommitment{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:14px 0;border:0;border-bottom:1px solid #2d3439;background:transparent;color:#eef0f2;cursor:pointer}.referenceCommitment:last-child{border:0}.referenceCommitment>span:nth-child(2){min-width:0;flex:1}.referenceCommitment b{font-size:12px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.referenceCommitment small{font-size:10px;display:block;margin-top:5px}.referenceCommitment strong{font-size:12px;color:#ff7b83;white-space:nowrap}.referenceEmpty{min-height:230px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center}.referenceEmpty>span{font-size:30px;color:#778993}.referenceEmpty b{font-size:13px}.referenceEmpty small{font-size:11px}
.referenceBankLogo{width:40px;height:40px;flex:0 0 40px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:9px;filter:none!important;color:white;font-size:13px;font-weight:700;background:#394751}.referenceBankLogo img{width:100%;height:100%;object-fit:contain;filter:none!important}.bank-nubank{background:#820ad1}.bank-bb{background:#f9e323}.bank-bradesco{background:#cc092f}.bank-santander{background:#ec0000}.bank-inter{background:#ff7a00}.bank-caixa{background:#0067aa}
.referenceAccountsHead{margin:0 0 -6px}.referenceAccounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.referenceAccount{display:flex;gap:14px;align-items:center;text-align:left;cursor:pointer;color:var(--text);padding:17px!important;min-width:0}.referenceAccount>span:last-child{min-width:0}.referenceAccount small{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.referenceAccount b{display:block;font-size:18px;margin:5px 0;font-variant-numeric:tabular-nums}.referenceAddAccount{display:flex;align-items:center;justify-content:center;gap:10px;min-height:100px;color:#aeb8bf;cursor:pointer}.referenceAddAccount>span{font-size:25px}.referenceAppMark{display:flex;width:26px;height:30px;flex-shrink:0}.referenceAppMark svg{width:100%}.side .brandrow>.referenceAppMark~.avatar{display:none}.referenceReady>.marketToday{margin-top:2px!important}.graphiteNavIcon{filter:none!important}
body :is(.utilityIconGlyph,.uixQuickActions .uixQuickActionIcon,.mobileBottomNav span){filter:none!important}
@media(min-width:901px){body .shell{grid-template-columns:220px minmax(0,1fr)!important}body .side{width:220px!important}body .content{max-width:1500px;padding:26px 28px!important}.brand{font-size:17px}.nav button{font-size:12px}}
@media(min-width:901px) and (max-width:1200px){body .shell{grid-template-columns:76px minmax(0,1fr)!important}body .side{width:76px!important}.referenceMainGrid{grid-template-columns:1fr}.referenceMetrics{grid-template-columns:repeat(3,minmax(0,1fr))}.side .referenceAppMark{display:none}}
@media(max-width:900px){.referenceMainGrid{grid-template-columns:1fr}.referenceMetrics{grid-template-columns:repeat(3,minmax(0,1fr))}.referenceAccounts{grid-template-columns:repeat(2,minmax(0,1fr))}.referenceTop .dashboardTopActions{flex-wrap:wrap}.referenceMetric{min-width:0}.referenceMetric strong{font-size:23px}.referenceChartWrap{height:220px}}
@media(max-width:480px){.referenceMetrics{grid-template-columns:1fr;gap:10px}.referenceMetrics .referenceMetric{padding:16px 12px!important;min-height:127px}.referenceMetric strong{font-size:21px}.referenceMetricIcon{font-size:14px;right:10px;top:12px}.referenceAccounts{grid-template-columns:1fr}.referencePeriod{font-size:9px}.referenceLegend{gap:10px}.referenceUpcoming,.referenceChartCard{padding:16px!important}.referenceCommitment strong{font-size:11px}.referenceTop .dashboardRefreshButton{display:none!important}}
body .referenceReady>#monthPulseCard{display:none!important}
.referenceTop .top{min-width:0}
/* Per-user accent, with Graphite surfaces preserved. */
:root{--user-accent:#4388ff;--user-accent-ink:#fff;--user-sidebar:#101828}
body{--brand:var(--user-accent)!important;--ui-brand:var(--user-accent)!important}
body :is(.side,.mobileNavDrawer){background:color-mix(in srgb,var(--user-sidebar) 24%,#141518)!important}
body :is(.nav button.active,.mobileNav button.active,.sectionTabs button.active,.wealthTabs button.active){background:color-mix(in srgb,var(--user-accent) 22%,#1a1c20)!important;color:#f4f5f7!important;border-color:var(--user-accent)!important;box-shadow:inset 3px 0 var(--user-accent)!important}
body :is(.btn,.btn.green,.btn.red,.btn.orange,.bottomCreate){background:var(--user-accent)!important;color:var(--user-accent-ink)!important;border-color:color-mix(in srgb,var(--user-accent) 75%,#fff)!important}
body :is(.btn.gray,.btn.small.gray){background:#282c33!important;border-color:#414650!important;color:var(--text)!important}
body :is(.utilityDotBadge,.notificationBadge){background:var(--user-accent)!important}
body :focus-visible{outline-color:var(--user-accent)!important}
body #settingsAppearanceCard.graphiteAppearance .form{display:grid!important}
body #settingsAppearanceCard.graphiteAppearance .settingsCardActions{display:flex!important}
body #settingsAppearanceCard.graphiteAppearance .graphiteFixedMode{display:none!important}
body .graphiteAppearance:after{content:'Sua cor aparece em ações e seleção. Fundos e cards mantêm a base Graphite.';font-size:12px}
body .referenceAppMark{display:flex!important;width:32px;height:32px;flex:0 0 32px}
.referenceAppMark img{width:100%;height:100%;border-radius:8px;object-fit:contain}
.mobileBrand>.referenceAppMark~.avatar{display:none!important}
.loginAppLogo{display:inline-block;width:44px;height:44px;margin-right:12px;vertical-align:middle;border-radius:10px}
@media(min-width:901px){body .side{overflow:visible!important;min-height:0}.side .nav{flex:1;min-height:0}}
@media(min-width:901px) and (max-height:760px){body .side .nav button{min-height:32px;padding:7px 10px!important;margin:0!important}body .side .nav h6{margin-top:10px!important}body .side .brand{padding-bottom:10px!important}body .sideUtilityBar{margin-top:8px!important}}
@media(max-width:900px){.mobileAppMark{width:28px!important;height:28px!important;flex-basis:28px!important}}
.referenceDemoBanner{padding:9px 12px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:11px;background:#191d21}
@media(min-width:901px){body .side .nav{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin}body .side :is(.brand,.sideUtilityBar,.appVersion){flex-shrink:0}body .side .graphiteTooltip{display:none!important}}
.graphiteFloatingTooltip{position:fixed;z-index:1500;background:#30343c;color:#fff;padding:9px 12px;border-radius:8px;font-size:12px;pointer-events:none;box-shadow:0 4px 18px #0008}
.graphiteFloatingTooltip[hidden]{display:none!important}
@media(min-width:901px) and (max-width:1200px){body .side .nav{scrollbar-width:none}}
/* Explicit desktop menu control, saved independently for each user. */
.graphiteSidebarToggle{display:flex;align-items:center;gap:9px;justify-content:flex-start;margin:0 4px 12px;padding:8px 10px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff06;color:#d6dde3;cursor:pointer;font-size:11px;min-height:34px}.graphiteSidebarToggle>span:first-child{font-size:21px;line-height:1}.graphiteSidebarToggle:hover{background:#ffffff12}
@media(min-width:901px){body.sidebarExpanded .shell{grid-template-columns:220px minmax(0,1fr)!important}body.sidebarExpanded .side{width:220px!important;padding:18px 12px!important}body.sidebarExpanded .side .brandrow>div{display:block!important}body.sidebarExpanded .side .nav h6,body.sidebarExpanded .side .appVersion{display:block!important}body.sidebarExpanded .side .graphiteNavLabel{display:inline!important}body.sidebarExpanded .side .nav button{justify-content:flex-start!important;text-align:left}body.sidebarExpanded .sideUtilityBar{flex-direction:row!important}
body.sidebarCollapsed .shell{grid-template-columns:76px minmax(0,1fr)!important}body.sidebarCollapsed .side{width:76px!important;padding:14px 10px!important}body.sidebarCollapsed .side .brandrow>div,body.sidebarCollapsed .side .nav h6,body.sidebarCollapsed .side .appVersion,body.sidebarCollapsed .side .graphiteNavLabel,body.sidebarCollapsed .sidebarToggleLabel{display:none!important}body.sidebarCollapsed .side .brand{padding:8px 0!important}body.sidebarCollapsed .side .brandrow{justify-content:center}body.sidebarCollapsed .side .nav button{display:flex;justify-content:center!important;padding:9px 8px!important;min-height:38px}body.sidebarCollapsed .sideUtilityBar{flex-direction:column!important}body.sidebarCollapsed .graphiteSidebarToggle{justify-content:center;margin:0 0 10px;padding:6px}
}
/* Planning follows the same grid and typography as the dashboard above. */
body.uix2 #p-dash .dashboardMoreDetails{background:transparent!important;border:0!important;overflow:visible;border-radius:12px;margin-top:10px!important;box-shadow:none!important}
body.uix2 #p-dash .dashboardMoreDetails>summary{padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:var(--card);min-height:68px}
body.uix2 #p-dash .dashboardMoreDetails[open]>summary{margin-bottom:18px}
body.uix2 #p-dash .dashboardMoreContent{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;padding:0;border:0;align-items:start}
body.uix2 #p-dash .dashboardMoreContent>*{margin:0!important;min-width:0;grid-column:1/-1}
body.uix2 #p-dash .dashboardMoreContent>#monthPulseCard{grid-column:1;align-self:stretch}
body.uix2 #p-dash .dashboardMoreContent>.nextMonthCommitmentCard{grid-column:2;align-self:stretch}
body.uix2 #p-dash .dashboardMoreContent>.card{padding:20px!important;border-radius:12px;border:1px solid var(--line)!important;box-shadow:none!important}
body.uix2 #p-dash .dashboardMoreContent :is(.monthPulseCard,.nextMonthCommitmentCard,.spendingAnalysisCard)::before{display:none!important}
body.uix2 #p-dash .dashboardMoreContent .sectionTitle{font-size:15px;letter-spacing:-.25px;margin-bottom:8px}
body.uix2 #p-dash .dashboardMoreContent .sub{font-size:11px;line-height:1.5}
body.uix2 #p-dash :is(.monthPulseMetric,.spendingAnalysisMetric){background:linear-gradient(120deg,#22272a,#1a1e21)!important;border:1px solid #30373a;border-radius:10px;padding:14px!important;min-width:0;box-shadow:none}
body.uix2 #p-dash :is(.monthPulseMetric,.spendingAnalysisMetric) .k{text-transform:none;letter-spacing:0;font-size:11px}
body.uix2 #p-dash :is(.monthPulseMetric,.spendingAnalysisMetric) .v{color:var(--text)!important;font-size:22px;letter-spacing:-.5px;font-weight:720;font-variant-numeric:tabular-nums}
body.uix2 #p-dash .monthPulseMetric .hint{font-size:10px;margin-top:7px}
body.uix2 #p-dash .monthPulseInsights{grid-template-columns:1fr;gap:0;margin-top:12px}
body.uix2 #p-dash .monthPulseInsight{border:0;border-top:1px solid var(--line);border-radius:0;padding:10px 0;background:transparent}
body.uix2 #p-dash .monthPulseInsight b{font-size:11px}body.uix2 #p-dash .monthPulseInsight span:last-child{font-size:10px;line-height:1.5}
body.uix2 #p-dash .monthPulseBadge{background:#242c30!important;color:#b9c3c9!important;border-color:var(--line)!important}
body.uix2 #p-dash .nextMonthMetrics{display:flex;flex-direction:column;gap:0;margin-top:16px}
body.uix2 #p-dash .nextMonthMetric{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent!important;padding:14px 0!important;min-width:0;min-height:0}
body.uix2 #p-dash .nextMonthMetric .k{font-size:12px}body.uix2 #p-dash .nextMonthMetric .v{font-size:22px;color:var(--text)!important;margin:0;font-weight:720}
body.uix2 #p-dash .dashboardCashDetails{border-style:solid!important;padding:0!important}
body.uix2 #p-dash .dashboardCashDetails>summary{padding:18px 20px;font-size:13px;font-weight:650}body.uix2 #p-dash .dashboardCashDetails[open]{padding:0 20px 20px!important}
body.uix2 #p-dash .spendingAnalysisCard{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);column-gap:22px;row-gap:16px}
body.uix2 #p-dash .spendingAnalysisCard>*{min-width:0;grid-column:1/-1}
body.uix2 #p-dash .spendingAnalysisControlBar{margin:0;padding:0 0 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
body.uix2 #p-dash .spendingControlLabel{font-size:10px;text-transform:none;letter-spacing:0}
body.uix2 #p-dash .spendingAnalysisMetrics{margin:0;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.uix2 #p-dash .spendingAnalysisChartHeader{grid-column:1;grid-row:4;margin:0}
body.uix2 #p-dash .spendingAnalysisChartWrap{grid-column:1;grid-row:5;align-self:start;background:transparent!important;border:0!important;padding:0!important;margin:0}
body.uix2 #p-dash .spendingAnalysisChart{height:275px!important}
body.uix2 #p-dash .spendingAnalysisBreakdown{grid-column:2;grid-row:4/6;margin:0;padding-left:20px;border-left:1px solid var(--line)}
body.uix2 #p-dash .spendingBreakdownGrid{display:flex;flex-direction:column;gap:0}
body.uix2 #p-dash .spendingBreakdownRow{background:transparent!important;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0}
body.uix2 #p-dash .spendingBreakdownTitle{font-size:10px;letter-spacing:.04em;margin-bottom:8px}
body.uix2 #p-dash .spendingAnalysisSelect{background:#14161a!important;color:var(--text)!important}
body.uix2 #p-dash .spendingSegmented{background:#14171b;border-color:var(--line);border-radius:8px;padding:3px}
body.uix2 #p-dash .spendingSegmented button{border-radius:6px;font-size:11px;min-height:32px;padding:7px 12px;color:var(--muted);background:transparent;box-shadow:none}
body.uix2 #p-dash .spendingSegmented button.active{background:color-mix(in srgb,var(--user-accent) 22%,#1a1c20)!important;color:#edf3ff!important;box-shadow:none!important}
body.uix2 #p-dash .uixSpendingAdvanced>summary{background:transparent;font-weight:500}
@media(max-width:1100px){body.uix2 #p-dash .dashboardMoreContent{grid-template-columns:1fr}body.uix2 #p-dash .dashboardMoreContent :is(#monthPulseCard,.nextMonthCommitmentCard){grid-column:1/-1}body.uix2 #p-dash .spendingAnalysisCard{grid-template-columns:1fr}body.uix2 #p-dash .spendingAnalysisCard>:is(.spendingAnalysisChartHeader,.spendingAnalysisChartWrap,.spendingAnalysisBreakdown){grid-column:1;grid-row:auto}body.uix2 #p-dash .spendingAnalysisBreakdown{padding-left:0;border-left:0}body.uix2 #p-dash .spendingAnalysisMetrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.uix2 #p-dash .dashboardMoreContent>.card{padding:16px!important}body.uix2 #p-dash .monthPulseGrid{grid-template-columns:1fr}body.uix2 #p-dash .spendingAnalysisMetrics{grid-template-columns:1fr 1fr!important}body.uix2 #p-dash :is(.spendingAnalysisMetric,.monthPulseMetric) .v{font-size:19px}body.uix2 #p-dash .spendingAnalysisChart{height:225px!important}body.uix2 #p-dash .spendingAnalysisHeader{gap:16px}}
body.uix2 #p-dash .referenceSpendingPlot{grid-column:1;grid-row:4;min-width:0;align-self:start}
body.uix2 #p-dash .referenceSpendingPlot .spendingAnalysisChartHeader{margin:0 0 14px}
body.uix2 #p-dash .spendingAnalysisBreakdown{grid-row:4}
body.uix2 #p-dash .spendingAnalysisCard:has(.spendingCalendar:not(.hidden)) .referenceSpendingPlot{grid-column:1/-1}
body.uix2 #p-dash .spendingAnalysisCard:has(.spendingCalendar:not(.hidden)) .spendingAnalysisBreakdown{grid-column:1/-1;grid-row:auto;padding:0;border:0}
body.uix2 #p-dash .dashboardAlertsList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.uix2 #p-dash .dashboardAlertsList .alert{margin:0!important;border-left:1px solid var(--line)!important;border-radius:9px!important;padding:14px!important;background:#171b1f!important}
body.uix2 #p-dash .dashboardAlertsList .alert h3{font-size:13px;letter-spacing:-.1px;margin:10px 0 6px}
body.uix2 #p-dash .dashboardAlertsList .alert>div{font-size:11px;color:var(--muted);line-height:1.5}
body.uix2 #p-dash .dashboardAlertsList .alertCategoryTag{font-size:9px;background:#242b33!important;color:#b4c5d3!important;border-radius:5px;padding:3px 6px}
@media(max-width:1100px){body.uix2 #p-dash :is(.referenceSpendingPlot,.spendingAnalysisBreakdown){grid-column:1/-1;grid-row:auto}}
@media(max-width:620px){body.uix2 #p-dash .dashboardAlertsList{grid-template-columns:1fr}}
