/* Componentes utilizados pelas telas e pelos formulários da aplicação. */
.welcome{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:center;gap:38px;padding:52px 42px;background:linear-gradient(120deg,#edf4e7,#fff 80%);overflow:hidden}.welcome .welcome-art{position:relative;width:220px;height:220px;margin:0;display:grid;place-items:center}.welcome-orbit{width:170px;height:170px;border:1px solid #bcd5bd;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 25px #e2edda,0 0 0 48px #edf3e8}.welcome-orbit span{display:grid;place-items:center;width:100px;height:100px;border-radius:28px;background:#174c3c;color:#fff;font-size:38px;font-weight:700;box-shadow:0 14px 30px #153b2c26;transform:rotate(-8deg)}.welcome .welcome-art i{position:absolute;width:15px;height:15px;border-radius:5px;background:#cfad72;right:4px;top:38px;transform:rotate(20deg)}.welcome .welcome-art i:nth-of-type(2){left:10px;top:auto;bottom:28px;width:20px;height:20px;background:#84ac86}.welcome .welcome-art i:nth-of-type(3){right:16px;top:auto;bottom:17px;width:10px;height:10px;background:#174c3c}.welcome-copy h2{font-size:clamp(25px,3vw,36px);line-height:1.18;letter-spacing:-1px;margin:14px 0}.welcome-copy>p{font-size:14px;line-height:1.8;color:var(--muted);max-width:510px}.welcome-copy .inline-actions{margin:22px 0 18px}.welcome-copy>p.field-note{font-size:11px}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:23px}.feature-grid h3{margin:14px 0 9px}.feature-grid p{font-size:13px;line-height:1.8}.loading-state{padding:70px 24px;display:grid;place-items:center;gap:15px;color:var(--muted)}.spinner{width:25px;height:25px;border:3px solid #dbe6d8;border-top-color:#2f8264;border-radius:50%;animation:spin .8s linear infinite}.kpi-card>.kpi-value{display:block}.kpi-card>.kpi-foot{display:block}.legend-row{gap:12px}.legend-row>span:first-child{display:flex;align-items:center;gap:9px}.legend-row>span:last-child{flex-shrink:0}.legend-row>div>p{margin-top:5px}.legend-list button.legend-row{width:100%;text-align:left;border:0;background:transparent;padding:7px 0;color:inherit;border-radius:5px}.legend-list button.legend-row:hover{background:#f5f7f0}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}.tone-0{background:#276c55}.tone-1{background:#68a78a}.tone-2{background:#b5ca90}.tone-3{background:#e0bb73}.tone-4{background:#cc8d78}.tone-5{background:#8195a3}.progress-fill.over{background:#bd705d}.goal-item{padding-block:15px;border-bottom:1px solid var(--line)}.goal-item:last-child{border-bottom:0}.goal-item>.field-note{margin-top:8px}.tx-amount{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.tx-amount .inline-actions{justify-content:flex-end;gap:2px}.tx-amount .button.small{padding:3px 5px;min-height:26px;font-size:10px}.tx-main{min-width:0}.tx-main>strong{overflow-wrap:anywhere}.tx-main .tx-meta{display:block;margin-top:5px}.cancelled{opacity:.55}.cancelled .amount{text-decoration:line-through}.negative,.amount.negative{color:#b95f4d}.positive,.amount.positive{color:#2a7e5a}.summary-strip>span{font-size:11px;color:var(--muted);display:grid;gap:7px;flex:1}.summary-strip>span strong{font-size:18px;color:var(--text)}.settings-grid .stack{margin-top:23px}.settings-grid h2{margin:11px 0}.settings-grid .inline-actions{margin-block:16px}.settings-grid>section>p{line-height:1.8}.filter-bar>p{flex:2;min-width:180px}.stack .field-note{margin-top:0}.modal-body>p{line-height:1.7}.checkbox-row input{accent-color:var(--emerald);width:18px;height:18px}.segmented .choice{display:flex;gap:7px;align-items:center;justify-content:center;cursor:pointer}.choice input{width:14px;height:14px}.field>span:first-child{font-size:12px;font-weight:600}.field:has(>input),.field:has(>select){font-size:12px;font-weight:600}.field-note{font-weight:400}.table-wrap{max-width:100%}.chart-privacy{text-align:center}.settings-grid code{user-select:all}#connection-status{overflow-wrap:anywhere}#pending-banner{display:flex;align-items:center;justify-content:space-between;gap:15px}.form-section:not([open]){display:block}.form-section[open]{display:block}.form-section .field-grid{margin-top:15px}.section-heading h2{font-size:21px;margin-top:6px}.account-card .kpi-value{display:block}.account-card>p{line-height:1.7}.account-card>.field-note{margin-top:12px}.notice.warning{border-color:#e6cf9d}.kpi-card.primary .kpi-foot{color:#d4e7d5}
@media(max-width:1100px){.welcome{grid-template-columns:170px minmax(0,1fr);gap:30px;padding:40px 30px}.welcome .welcome-art{width:170px;height:180px}.welcome-orbit{width:130px;height:130px;box-shadow:0 0 0 17px #e2edda,0 0 0 33px #edf3e8}.welcome-orbit span{width:85px;height:85px;font-size:30px}.feature-grid{gap:14px}}
@media(max-width:720px){.welcome{display:flex;flex-direction:column;text-align:center;padding:30px 22px;gap:20px}.welcome .welcome-art{width:155px;height:155px}.welcome-orbit{width:110px;height:110px;box-shadow:0 0 0 15px #e2edda,0 0 0 29px #edf3e8}.welcome-orbit span{width:77px;height:77px;font-size:29px;border-radius:22px}.welcome-copy h2{font-size:27px}.welcome-copy>p{font-size:12px}.welcome-copy .inline-actions{justify-content:center;flex-wrap:wrap;gap:10px}.welcome-copy .inline-actions .button{width:100%}.feature-grid{grid-template-columns:1fr;margin-top:18px;gap:12px}.feature-grid .panel{padding:22px}.feature-grid h3{margin-top:10px}.feature-grid p{font-size:12px}.summary-strip>span strong{font-size:15px}.section-heading h2{font-size:18px}.transaction-row{align-items:start}.tx-amount .inline-actions{flex-direction:column;align-items:flex-end}.tx-main .tx-meta{line-height:1.5}.tx-amount{max-width:130px}.settings-grid>.panel>h2{font-size:22px}.settings-grid form .inline-actions{display:grid;grid-template-columns:1fr;gap:10px}.settings-grid .button{min-height:42px}#pending-banner{flex-direction:column;align-items:flex-start}.summary-strip{flex-wrap:wrap}.summary-strip>span{min-width:100px}}

/* Contraste e histórico acessível. */
/* O balanço compara o mês do orçamento; o saldo das contas continua abaixo. */
.monthly-balance{background:linear-gradient(115deg,#fbfdf9,#fff 75%);border-color:#d6e4d3;min-width:0}.monthly-balance-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}.monthly-balance-heading h2{margin-top:5px;font-size:22px}.monthly-balance-heading .eyebrow{text-transform:uppercase;letter-spacing:1.1px}.monthly-balance-heading .badge{white-space:normal;text-align:right;flex-shrink:0}.monthly-balance-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(210px,1fr);gap:28px}.monthly-balance-figures{min-width:0}.monthly-balance-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0 0 21px}.monthly-balance-totals dt,.monthly-balance-label{font-size:12px;color:var(--muted)}.monthly-balance-totals dd{margin:5px 0 0;font-size:24px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.25}.monthly-balance-result{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px}.monthly-balance-value{display:block;margin-top:3px;font-size:36px;line-height:1.2;letter-spacing:-1.2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.monthly-balance-status{font-size:11px;font-weight:650;padding:6px 10px;border-radius:8px;background:#edf1ec;color:#53655a}.monthly-balance-result>p{flex:1 1 100%;font-size:12px;color:var(--muted);line-height:1.6}.monthly-balance-result.is-positive .monthly-balance-value{color:#216c4f}.monthly-balance-result.is-positive .monthly-balance-status{background:#e7f2e8;color:#216c4f}.monthly-balance-result.is-negative .monthly-balance-value{color:#a8493f}.monthly-balance-result.is-negative .monthly-balance-status{background:#fbeee9;color:#a8493f}.monthly-balance-result.is-warning .monthly-balance-status{background:#fff3d9;color:#815a13}.monthly-balance-consumption{background:#f0f5ec;border:1px solid #dfe9d7;border-radius:13px;padding:21px 23px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.monthly-balance-consumption h3{font-size:12px;font-weight:600;color:#516853;letter-spacing:0}.monthly-balance-percentage{font-size:42px;line-height:1.1;letter-spacing:-1.5px;margin-top:13px;color:#216c4f;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}.monthly-balance-ratio-message{font-size:11px;line-height:1.6;color:#536b59;margin:6px 0 15px;min-height:35px}.monthly-balance-track{height:7px;background:#d8e4d0;border-radius:20px;width:100%;overflow:hidden;margin-top:auto}.monthly-balance-track>span{display:block;height:100%;border-radius:inherit;background:#438364}.monthly-balance-track.is-unavailable{opacity:.5;background:#dfe5dc}.monthly-balance-formula{font-size:10px;color:#5c715f;margin-top:9px;line-height:1.6}.monthly-balance-consumption.is-negative{background:#fbf2ee;border-color:#eedbd4}.monthly-balance-consumption.is-negative .monthly-balance-percentage{color:#a8493f}.monthly-balance-consumption.is-negative .monthly-balance-track>span{background:#b36655}.monthly-balance-consumption.is-warning{background:#fbf7ec;border-color:#e9e1cb}.monthly-balance-consumption.is-neutral{background:#f2f5f0;border-color:#e0e6dc}.monthly-balance-consumption.is-neutral .monthly-balance-percentage{color:#526b5b}.monthly-balance-note{border-top:1px solid var(--line);padding-top:15px;margin-top:21px;font-size:11px;color:var(--muted);line-height:1.7}.monthly-balance-unavailable h2{margin:6px 0 12px}.monthly-balance-unavailable>p{font-size:12px;color:var(--muted);line-height:1.7}
@media(max-width:1000px){.monthly-balance-layout{grid-template-columns:minmax(0,1.5fr) minmax(190px,1fr);gap:22px}.monthly-balance-totals{gap:14px}.monthly-balance-totals dd{font-size:21px}.monthly-balance-value{font-size:31px}.monthly-balance-consumption{padding:19px}.monthly-balance-percentage{font-size:37px}}
@media(max-width:720px){.monthly-balance-heading{gap:12px;margin-bottom:20px;flex-direction:column}.monthly-balance-heading h2{font-size:20px}.monthly-balance-heading .badge{text-align:left}.monthly-balance-layout{grid-template-columns:minmax(0,1fr);gap:20px}.monthly-balance-totals{gap:12px;margin-bottom:18px}.monthly-balance-totals dt,.monthly-balance-label{font-size:11px}.monthly-balance-totals dd{font-size:21px}.monthly-balance-value{font-size:32px}.monthly-balance-result{gap:8px 12px;padding-top:16px}.monthly-balance-result>p{font-size:11px}.monthly-balance-status{font-size:10px;padding:5px 8px}.monthly-balance-consumption{padding:17px 19px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 13px;align-items:center}.monthly-balance-consumption h3{grid-column:1}.monthly-balance-percentage{grid-column:2;grid-row:1/3;margin:0;font-size:35px}.monthly-balance-ratio-message{grid-column:1;margin:0;min-height:0;font-size:10px}.monthly-balance-track{grid-column:1/-1;margin-top:9px}.monthly-balance-formula{grid-column:1/-1;font-size:9px;margin-top:3px}.monthly-balance-note{font-size:10px;margin-top:18px;padding-top:13px}}
@media(max-width:390px){.monthly-balance-totals dd{font-size:19px}.monthly-balance-value{font-size:29px}.monthly-balance-consumption{padding:15px}.monthly-balance-percentage{font-size:31px}.monthly-balance-heading .eyebrow{font-size:9px}}
:root{--muted:#5f7065}.mobile-nav button,.data-table th,.workspace-footer{color:#5f7065}.data-table th[scope="row"]{text-transform:none;font-size:inherit;letter-spacing:normal}.history-details{margin-top:15px}.history-details summary{cursor:pointer;color:#276c55;font-size:12px;font-weight:600;padding:8px 0}.history-details .data-table{min-width:0;width:100%}.history-details .data-table th,.history-details .data-table td{font-size:11px}.history-details .table-wrap{margin-top:10px}

.forecast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.forecast-grid>.panel{padding:18px;min-width:0}.forecast-grid h3{margin:0 0 18px}.forecast-grid .legend-row{font-size:12px;margin:10px 0;flex-wrap:wrap}.month-forecast details{margin-top:18px}.month-forecast summary{cursor:pointer;font-weight:600}@media(max-width:900px){.forecast-grid{grid-template-columns:1fr}}

.income-history .panel-heading,.pending-agenda .panel-heading,.budget-comparison .panel-heading{gap:16px;flex-wrap:wrap}.income-history .field{min-width:170px}.insight-mini{display:block;font-size:10px;color:var(--muted);margin-top:5px;white-space:normal}.insight-filters{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0}.insight-filters>.field{min-width:180px;flex:1}.pending-agenda td .badge{display:block;width:max-content;margin-top:6px}.budget-comparison .data-table,.pending-agenda .data-table{min-width:580px}.pending-agenda .summary-strip{margin:18px 0}.income-history .chart-box{height:310px}.income-history .data-table{min-width:700px}@media(max-width:720px){.income-history .panel-heading,.pending-agenda .panel-heading,.budget-comparison .panel-heading{align-items:flex-start}.income-history .field{width:100%}.insight-filters{gap:10px}.insight-filters>.field{min-width:100%;}.income-history .chart-box{height:300px}}
