.finance-subnav{display:flex;gap:8px;margin:0 0 20px;padding:5px;width:fit-content;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--white)}.finance-subnav button{min-height:42px;padding:9px 16px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:800}.finance-subnav button.active{background:var(--videre-indigo);color:#fff}#finance{max-width:1680px;margin:0 auto;overflow-x:clip}.finance-heading{align-items:center}.finance-heading-actions{display:flex;align-items:center;gap:14px}.finance-period{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.finance-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 18px}.finance-stat{position:relative;min-width:0;overflow:hidden}.finance-stat:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:2px;background:#6672a8}.finance-stat>span{text-transform:uppercase;letter-spacing:.08em;font-weight:800}.finance-stat>b{font-size:clamp(22px,2.2vw,34px);white-space:nowrap}.finance-stat.income:before{background:#62bd43}.finance-stat.income>b{color:#43a82d}.finance-stat.expense:before,.finance-stat.payable:before{background:#df7d48}.finance-stat.expense>b,.finance-stat.payable>b{color:#c65f35}.finance-overview{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:18px;margin-bottom:26px}.finance-balance-card{min-height:280px;padding:26px!important;display:grid;grid-template-columns:minmax(210px,.55fr) minmax(0,1.45fr);align-items:center;gap:24px;background:linear-gradient(135deg,var(--videre-navy),#20245c)!important;color:#fff}.finance-balance-card h3{font-size:18px}.finance-balance-card>div:first-child>b{display:block;margin:14px 0 8px;font-size:clamp(31px,4vw,52px);line-height:1;color:#74dd54}.finance-balance-card small{color:#c5ccef}.finance-line-chart{min-width:0}.finance-line-chart svg{display:block;width:100%;height:190px;overflow:visible}.finance-line-chart>div{display:grid;grid-template-columns:repeat(6,1fr);text-align:center;color:#aeb7d9;text-transform:uppercase}.finance-summary-card{padding:24px!important}.finance-summary-list{display:grid;margin-top:18px}.finance-summary-list>span{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.finance-summary-list>span:last-child{border:0}.finance-summary-list small,.finance-summary-list b{display:block}.finance-summary-list b{margin-top:4px}.finance-summary-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--mint);color:var(--videre-indigo);font-style:normal;font-weight:900}.finance-accounts-head,.finance-cards-head{margin:8px 0 13px}.financial-account-list,.credit-card-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px;max-width:none}.financial-account-list article,.credit-card-list article{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 5px 25px rgba(9,16,39,.05)}.financial-account-list article{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px}.financial-account-list article>span small,.financial-account-list article>span b{display:block}.financial-account-list article>span small{margin-bottom:4px;color:var(--muted);font-size:10px;text-transform:uppercase}.financial-account-list article>strong{font-size:17px;white-space:nowrap}.financial-account-list article>button{grid-column:2/4;justify-self:start}.bank-badge{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#20245c;color:#42edde;font-size:12px;font-style:normal;font-weight:900}.bank-badge.cash{background:#262d68}.credit-card-list{grid-template-columns:repeat(3,minmax(0,1fr))}.credit-card-list article{display:flex;flex-direction:column;gap:15px;min-height:275px;background:linear-gradient(145deg,#111936,#20245c)!important;color:#eef1ff}.credit-card-head{display:flex;align-items:center;gap:12px}.credit-card-head span small,.credit-card-head span b{display:block}.credit-card-head small{color:#aeb7d9;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.credit-card-available small,.credit-card-available strong,.credit-card-available span{display:block}.credit-card-available strong{margin:5px 0;font-size:28px;color:#74dd54}.credit-card-available span,.credit-card-list article>p{color:#aeb7d9;font-size:11px}.credit-card-details{display:grid;grid-template-columns:1fr 1fr;gap:10px}.credit-card-details>span{padding:11px;border:1px solid rgba(255,255,255,.1);border-radius:10px}.credit-card-details small,.credit-card-details b,.credit-card-details em{display:block}.credit-card-details small,.credit-card-details em{color:#aeb7d9;font-size:10px;font-style:normal}.credit-card-details b{margin:5px 0;font-size:13px}.credit-card-actions{display:flex;gap:8px;margin-top:auto}.credit-card-actions button{flex:1;min-height:40px}.credit-card-list .empty-state,.financial-account-list .empty-state{grid-column:1/-1}.finance-grid{margin:0 0 28px;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr)}.finance-chart{height:245px;padding-top:24px}.chart-bars{height:185px}.chart-bar{width:min(22px,38%)}.category-row{border-color:var(--line);padding:14px 0}.finance-statement{margin-top:5px}.finance-statement-head{align-items:end;margin-bottom:14px}.finance-tabs{display:flex;gap:7px}.finance-tabs button{border:1px solid var(--line);border-radius:9px;padding:10px 13px;background:var(--white);color:var(--muted);font-weight:800}.finance-tabs button.active{border-color:#5967d9;background:#242d70;color:#eef1ff}.finance-filters{margin:0 0 12px}.finance-table-wrap{border-radius:15px}.finance-table-wrap td:nth-child(6),.finance-table-wrap td:last-child{white-space:nowrap}.financial-income{color:#3c9d28!important}.financial-expense{color:#c96338!important}
html[data-theme="dark"] #finance .panel,html[data-theme="dark"] #finance .finance-stat,html[data-theme="dark"] #finance .financial-account-list article,html[data-theme="dark"] #finance .finance-table-wrap{background:var(--videre-dark-surface);border-color:var(--videre-dark-line);box-shadow:0 12px 30px rgba(0,0,0,.18)}html[data-theme="dark"] #finance .finance-balance-card,html[data-theme="dark"] #finance .credit-card-list article{background:linear-gradient(145deg,var(--videre-navy),#20245c)!important}html[data-theme="dark"] #finance .finance-tabs button{background:#0e1732;border-color:#2e3a6a}html[data-theme="dark"] #finance .finance-tabs button.active{background:#242d70;border-color:#5967d9;color:#eef1ff}html[data-theme="dark"] #finance th{background:#0d1530}html[data-theme="dark"] #finance .empty-state{background:#0e1732;border-color:#2e3a6a;color:#aab3d0}html[data-theme="dark"] #finance .status-pill{background:#4d4223;color:#f4d878}html[data-theme="dark"] #finance .status-pill.paid{background:#24452c;color:#8bdf79}html[data-theme="dark"] #finance .status-pill.cancelled{background:#343c38;color:#b7c0bc}
@media(max-width:1200px){.financial-account-list{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-card-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.finance-heading{align-items:flex-start}.finance-heading-actions{align-items:flex-end;flex-direction:column}.finance-stats{grid-template-columns:1fr 1fr}.finance-overview,.finance-grid{grid-template-columns:1fr}.finance-balance-card{grid-template-columns:1fr}.finance-line-chart svg{height:150px}}@media(max-width:580px){#finance{padding-left:14px;padding-right:14px}.finance-heading{display:grid}.finance-heading-actions{align-items:stretch}.finance-period{order:2}.finance-stats,.financial-account-list,.credit-card-list{grid-template-columns:1fr}.finance-overview{gap:12px}.finance-balance-card{padding:20px!important;min-height:0}.finance-line-chart svg{height:125px}.finance-summary-card{padding:18px!important}.finance-statement-head{align-items:stretch;flex-direction:column}.finance-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.finance-tabs button{padding:10px 6px;font-size:11px}.finance-filters{flex-direction:column}.finance-chart{overflow-x:auto}.chart-month{min-width:52px}.finance-table-wrap{max-width:100%;overflow-x:auto}.credit-card-details{grid-template-columns:1fr}.credit-card-actions{display:grid;grid-template-columns:1fr 1fr}.financial-account-list article{grid-template-columns:42px minmax(0,1fr)}.financial-account-list article>strong{grid-column:2}.financial-account-list article>button{grid-column:2}}

.finance-overview{grid-template-columns:minmax(0,1.5fr) minmax(230px,.65fr) minmax(280px,.85fr)}.finance-summary-card,.finance-due-card{min-width:0}.finance-due-card{padding:24px!important}.finance-upcoming{display:grid;margin-top:12px}.finance-due-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.finance-due-item:last-child{border-bottom:0}.finance-due-item time{width:38px;height:42px;border-radius:9px;display:grid;place-content:center;text-align:center;background:#f5e9e3;color:#b85c35}.finance-due-item.receive time{background:#e5f4df;color:#397f29}.finance-due-item.card time{background:#eee7f6;color:#70459b}.finance-due-item time b,.finance-due-item time small,.finance-due-item>span b,.finance-due-item>span small{display:block}.finance-due-item time b{font-size:14px;line-height:1}.finance-due-item time small{margin-top:3px;font-size:8px;font-weight:900}.finance-due-item>span{min-width:0}.finance-due-item>span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.finance-due-item>span small{margin-top:3px;color:var(--muted);font-size:9px;text-transform:uppercase}.finance-due-item>strong{font-size:11px;white-space:nowrap}.bank-badge{overflow:hidden;border:1px solid rgba(255,255,255,.13)}.bank-badge svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.bank-bradesco{background:#b21f2d;color:#fff}.bank-sicoob{background:#075e55;color:#fff}.bank-inter{background:#ff6b00;color:#fff}.bank-cora{background:#ff4c71;color:#fff}.bank-nubank{background:#820ad1;color:#fff}.bank-caixa{background:#1768a5;color:#fff}.bank-itau{background:#ec7000;color:#fff}.bank-santander{background:#cc0000;color:#fff}.bank-bb{background:#f8d719;color:#173b77}.bank-generic{background:#20245c;color:#42edde}.bank-cash{background:#262d68;color:#dbe0ff}
html[data-theme="dark"] #finance .finance-due-item time{background:#3d2b24;color:#f0a47f}html[data-theme="dark"] #finance .finance-due-item.receive time{background:#233f29;color:#8bd87a}html[data-theme="dark"] #finance .finance-due-item.card time{background:#362b43;color:#c7a4ec}
@media(max-width:1200px){.finance-overview{grid-template-columns:1fr 1fr}.finance-balance-card{grid-column:1/-1}}@media(max-width:900px){.finance-overview{grid-template-columns:1fr}.finance-balance-card{grid-column:auto}}@media(max-width:580px){.finance-due-card{padding:18px!important}.finance-due-item{grid-template-columns:42px minmax(0,1fr)}.finance-due-item>strong{grid-column:2}}
.finance-balance-card{grid-template-columns:1fr;align-items:start;gap:12px}.finance-line-chart svg{height:220px}
.receivable-list{display:grid;gap:10px;margin-bottom:26px}.receivable-card{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(110px,.7fr)) auto auto;align-items:center;gap:14px;padding:16px 18px;background:var(--white);border:1px solid var(--line);border-radius:14px}.receivable-card span small,.receivable-card span b{display:block}.receivable-card span small{color:var(--muted);font-size:10px;text-transform:uppercase}.receivable-card .status-pill.partial{background:#fff0cc;color:#7b5510}.receivable-card .status-pill.paid{background:#dff7d6;color:#266b15}@media(max-width:900px){.receivable-card{grid-template-columns:1fr 1fr 1fr}.receivable-card>button{grid-column:1/-1}}@media(max-width:580px){.receivable-card{grid-template-columns:1fr 1fr}.receivable-card>span:first-child,.receivable-card>button{grid-column:1/-1}}
.receivable-history{grid-column:1/-1;padding-top:8px;border-top:1px solid var(--line)}.receivable-history summary{cursor:pointer;font-weight:800}.receivable-history p{margin:8px 0 0;color:var(--muted)}
/* Histórico financeiro v1.8.0 */
.finance-history{margin-top:28px}.history-totals{grid-template-columns:repeat(4,1fr);margin:14px 0}.history-chart{height:220px;display:grid;grid-template-columns:repeat(12,1fr);gap:8px;align-items:end;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--card,#fff)}.history-chart>div{height:100%;display:flex;flex-direction:column;justify-content:flex-end;min-width:0}.history-chart>div>span{height:170px;display:flex;align-items:flex-end;justify-content:center;gap:2px}.history-chart i{display:block;width:20%;min-height:2px;border-radius:4px 4px 0 0}.history-chart .sales{background:#6488d5}.history-chart .income{background:#62bd43}.history-chart .expense{background:#df7d48}.history-chart .result{background:#8b6cc1}.history-chart small{text-align:center;margin-top:7px}.history-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin:8px}.history-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px}.history-legend .sales:before{background:#6488d5}.history-legend .income:before{background:#62bd43}.history-legend .expense:before{background:#df7d48}.history-legend .result:before{background:#8b6cc1}.history-months{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.history-months button{display:flex;flex-direction:column;gap:5px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);color:inherit}.history-months button:hover,.history-months button.active{border-color:#5967d9;box-shadow:0 0 0 2px rgba(61,67,253,.16)}.history-months span{display:flex;justify-content:space-between;gap:8px;font-size:12px}.png-export-stage{position:fixed;left:-100000px;top:0;width:1120px;background:#fff}.png-export-stage .print-os{width:1120px;box-sizing:border-box}
html[data-theme="dark"] .history-chart,html[data-theme="dark"] .history-months button{background:var(--videre-dark-surface)}
@media(max-width:900px){.history-totals{grid-template-columns:1fr 1fr}.history-months{grid-template-columns:1fr 1fr}.history-chart{overflow-x:auto;grid-template-columns:repeat(12,minmax(48px,1fr))}}
@media(max-width:580px){.history-months{grid-template-columns:1fr}.history-chart{padding:12px}.finance-history .table-wrap{overflow:visible}.finance-history table,.finance-history tbody,.finance-history tr,.finance-history td{display:block;width:100%}.finance-history thead{display:none}.finance-history tr{padding:10px;border-bottom:1px solid var(--line)}.finance-history td{padding:3px 0;border:0}.service-preview-actions{flex-wrap:wrap}.service-preview-actions button{flex:1;min-width:110px}}
.history-entry-income{background:rgba(98,189,67,.045)}.history-entry-expense{background:rgba(223,125,72,.045)}.history-entry-income:hover{background:rgba(98,189,67,.075)}.history-entry-expense:hover{background:rgba(223,125,72,.075)}.history-entry-income td:first-child{box-shadow:inset 3px 0 #62bd43}.history-entry-expense td:first-child{box-shadow:inset 3px 0 #df7d48}.history-entry-type{font-weight:800}html[data-theme="dark"] .history-entry-income{background:rgba(98,189,67,.07)}html[data-theme="dark"] .history-entry-expense{background:rgba(223,125,72,.07)}html[data-theme="dark"] .history-entry-income:hover{background:rgba(98,189,67,.1)}html[data-theme="dark"] .history-entry-expense:hover{background:rgba(223,125,72,.1)}
@media(max-width:580px){.finance-history .history-entry-income,.finance-history .history-entry-expense{border-left:3px solid}.finance-history .history-entry-income{border-left-color:#62bd43}.finance-history .history-entry-expense{border-left-color:#df7d48}.finance-history .history-entry-income td:first-child,.finance-history .history-entry-expense td:first-child{box-shadow:none}}

.finance-balance-card{background:linear-gradient(135deg,#101735,#171f46)!important;border-color:rgba(91,111,220,.32)!important;box-shadow:0 16px 34px rgba(9,16,39,.18)!important}.finance-balance-card>div:first-child>b{color:#eafcff}.finance-line-chart>div{color:#b9c6ec}html[data-theme="dark"] #finance .finance-balance-card{background:linear-gradient(135deg,#111a3b,#1a2450)!important;border-color:rgba(82,104,211,.42)!important;box-shadow:0 18px 38px rgba(0,0,0,.28)!important}
.finance-summary-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.finance-payroll{display:grid;gap:18px}.payroll-toolbar{padding:20px 22px;border:1px solid var(--line);border-radius:15px;background:var(--white);box-shadow:0 5px 25px rgba(9,16,39,.05)}.payroll-toolbar .section-head{align-items:center;margin:0 0 14px}.payroll-filters{display:grid;grid-template-columns:minmax(130px,180px) minmax(200px,240px) minmax(220px,360px);align-items:end;margin:0}.payroll-filters label{display:grid;gap:6px;margin:0;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.payroll-filters select,.payroll-filters input{width:100%}.payroll-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.payroll-chart-panel{padding:24px}.payroll-chart{display:grid;gap:14px;margin-top:18px}.payroll-bar{display:grid;grid-template-columns:minmax(120px,220px) minmax(120px,1fr) auto;align-items:center;gap:14px}.payroll-bar>b{overflow:hidden;text-overflow:ellipsis}.payroll-bar>span{height:14px;overflow:hidden;border-radius:999px;background:var(--mint)}.payroll-bar i{display:block;height:100%;min-width:3px;border-radius:inherit;background:linear-gradient(90deg,var(--videre-indigo),#42edde)}.payroll-table{overflow-x:auto}html[data-theme="dark"] #finance .payroll-toolbar,html[data-theme="dark"] #finance .payroll-chart-panel,html[data-theme="dark"] #finance .payroll-table{background:var(--videre-dark-surface);border-color:var(--videre-dark-line)}html[data-theme="dark"] #finance .payroll-bar>span{background:#20294f}@media(max-width:700px){.finance-subnav{width:100%;display:grid;grid-template-columns:1fr 1fr}.payroll-stats{grid-template-columns:1fr}.payroll-bar{grid-template-columns:1fr auto}.payroll-bar>span{grid-column:1/-1;grid-row:2}.payroll-toolbar{padding:16px}.payroll-toolbar .section-head{align-items:flex-start;flex-wrap:wrap}.payroll-filters{grid-template-columns:1fr}}

