:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#18263c;background:#f4f7fb;font-synthesis:none;--navy:#152943;--navy2:#213d5c;--blue:#315c87;--green:#14795a;--red:#c85150;--text:#1c2b42;--muted:#7f8b9a;--stroke:#e7ecf2;--white:#fff;--radius:15px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8eb9e1;outline-offset:2px}.app-shell{min-height:100vh;display:flex}.sidebar{background:var(--navy);width:254px;min-width:254px;position:sticky;top:0;height:100vh;color:#fff;padding:28px 16px 17px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:#fff;padding:0 14px 38px}.brand-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#355372;color:#fff}.brand-icon svg{width:27px;height:27px}.brand strong{font-size:20px;font-weight:780;letter-spacing:-.7px;display:block}.brand small{display:block;font-size:9px;letter-spacing:1.6px;color:#9cb5ce;margin-top:3px;font-weight:750}.sidebar-label{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#7f9ab7;padding:0 17px 12px}.sidebar-label.second{padding-top:28px}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-link{border:0;color:#b8c7d6;text-align:left;background:transparent;width:100%;padding:14px 15px;border-radius:10px;font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:13px;transition:background .16s,color .16s}.nav-link:hover{background:#28405c;color:#fff}.nav-link.active{background:#365573;color:#fff}.nav-icon{font-size:18px;line-height:1;width:20px;text-align:center;font-weight:400}.sidebar-spacer{flex:1}.privacy-card{border:1px solid #36516f;background:#203852;border-radius:14px;padding:17px}.privacy-emoji{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#315976;color:#c3e1ff;font-size:19px;margin-bottom:13px}.privacy-card strong{font-size:13px;display:block}.privacy-card p{font-size:11.5px;color:#afc2d3;line-height:1.55;margin:9px 0 14px}.privacy-card button{width:100%;border:1px solid #69809a;background:transparent;color:#fff;padding:10px;border-radius:8px;font-size:12px;font-weight:750}.privacy-card button span{margin-left:5px}.sidebar-credit{font-size:10px;color:#7390aa;text-align:center;margin:17px 0 0}.main-content{min-width:0;flex:1;padding:0 clamp(18px,3vw,46px);max-width:1700px;margin:auto;min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:107px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e4eaf1;margin-bottom:31px}.topbar-left{display:flex;align-items:center;gap:12px}.eyebrow,.section-kicker{font-size:10px;letter-spacing:1.3px;font-weight:850;color:#7191b0;margin:0 0 8px}.topbar h1{font-size:24px;letter-spacing:-.7px;margin:0;font-weight:800}.topbar-right{display:flex;align-items:center;gap:15px}.month-navigation{display:flex;align-items:center;gap:1px;background:#fff;border:1px solid #e2e9f0;border-radius:10px;padding:4px}.icon-button{border:0;background:transparent;color:#456380;display:grid;place-items:center;width:32px;height:34px;border-radius:8px;font-size:26px;line-height:1}.icon-button:hover{background:#eef3f7}.month-navigation select,.month-navigation input[type=number]{background:transparent;border:0;color:var(--text);font-weight:750;font-size:12.5px;height:34px;padding:0 3px;cursor:pointer}.month-navigation select{width:101px;appearance:none;text-align:center}.month-navigation input[type=number]{width:63px;text-align:center;appearance:textfield}.month-navigation input[type=number]::-webkit-outer-spin-button,.month-navigation input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.button{border:1px solid transparent;padding:11px 18px;border-radius:9px;font-size:12.5px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:41px;white-space:nowrap}.button-primary{background:#244b72;color:#fff;box-shadow:0 4px 10px #244b721c}.button-primary:hover{background:#183b5f}.button-outline{background:#fff;color:#294b6a;border-color:#dce5ee}.button-outline:hover{background:#edf3f9}.button-danger{background:#fff0ef;color:#ad3f3c;border-color:#ffd6d4}.button-danger:hover{background:#ffe5e3}.button-full{width:100%}.plus{font-size:20px;font-weight:400;line-height:12px}.view{display:none;animation:appear .16s ease-out}.view.active{display:block;flex:1}@keyframes appear{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}.welcome-row,.section-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:24px}.welcome-row h2,.section-heading h2{font-size:23px;margin:0 0 8px;letter-spacing:-.65px;font-weight:800}.welcome-row p:last-child,.section-heading p:last-child{color:var(--muted);font-size:12.5px;margin:0;line-height:1.55}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid #e6ecf3;border-radius:var(--radius);padding:21px 21px 17px;min-width:0;box-shadow:0 2px 8px #253d5905}.stat-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.stat-label{font-size:11.5px;color:#758497;font-weight:700}.stat-icon{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;font-size:19px;font-weight:650}.stat-card strong{display:block;font-size:clamp(19px,2vw,29px);font-weight:810;letter-spacing:-.9px;margin:17px 0 10px;word-break:break-word}.stat-foot{font-size:11px;color:#98a3af}.stat-card.income .stat-icon{background:#e2f6ed;color:#18805b}.stat-card.income strong{color:#16815d}.stat-card.expense .stat-icon{background:#ffedea;color:#c34a43}.stat-card.expense strong{color:#c7514b}.stat-card.balance .stat-icon{background:#e6f0fb;color:#315f8c}.stat-card.balance strong{color:#24496d}.stat-card.pending .stat-icon{background:#fff5e4;color:#a4742a}.stat-card.pending strong{color:#ad782f}.surface{border-radius:var(--radius);border:1px solid #e4eaf2;background:#fff;box-shadow:0 2px 9px #223b5605;padding:21px;min-width:0}.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.95fr);gap:20px;margin-bottom:20px}.surface-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:23px}.surface-header h3,.surface h3{font-size:15px;font-weight:790;margin:0 0 6px;letter-spacing:-.26px}.surface-header p{margin:0;color:#8a98a8;font-size:11px}.mini-label{background:#f2f5fa;padding:6px 11px;border-radius:7px;font-size:12px;color:#6c829a;font-weight:700}.chart-container{height:220px;width:100%;position:relative}.chart-container svg{width:100%;height:100%}.chart-legend{display:flex;gap:19px;font-size:11px;color:#76879a;justify-content:center;margin:9px 0 0}.chart-legend span{display:flex;align-items:center;gap:7px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.income-dot{background:#36987e}.expense-dot{background:#e88b80}.category-surface{min-height:330px}.category-list{display:flex;flex-direction:column;gap:16px}.cat-row{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:8px;font-size:11px;color:#556b80}.cat-title{font-weight:680;display:flex;align-items:center;gap:8px}.cat-title i{display:block;width:9px;height:9px;border-radius:3px;background:var(--cat-color)}.cat-value{font-weight:780;color:#344e66}.cat-track{grid-column:1/-1;height:7px;border-radius:99px;background:#eff3f7;overflow:hidden}.cat-fill{height:100%;width:var(--pct);border-radius:99px;background:var(--cat-color)}.empty-chart{display:grid;place-items:center;height:205px;text-align:center;color:#90a0b0;font-size:12px;line-height:1.8}.empty-chart .empty-illustration{display:block;font-size:38px;color:#cfdae5;margin-bottom:8px}.link-button{background:transparent;border:0;color:#2b6496;font-weight:750;font-size:12px}.recent-list{display:flex;flex-direction:column}.recent-item{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:14px 2px;border-top:1px solid #eff2f6}.recent-item:first-child{border-top:0;padding-top:0}.entry-symbol{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;font-weight:850;font-size:19px}.entry-symbol.income{background:#e8f6ee;color:#17865a}.entry-symbol.expense{background:#fff0ed;color:#ca5b4e}.recent-item h4{font-size:12.5px;font-weight:750;margin:0 0 5px;word-break:break-word}.recent-item p{font-size:11px;color:#96a0aa;margin:0}.recent-amount{text-align:right;font-size:13px;font-weight:780;white-space:nowrap}.recent-amount.income{color:#16815d}.recent-amount.expense{color:#bf514e}.recent-amount small{font-size:10px;font-weight:600;color:#99a7b3;display:block;margin-top:4px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search-wrap{display:flex;align-items:center;gap:7px;border:1px solid #e1e8ef;border-radius:9px;flex:1;min-width:210px;background:#fafcfe;color:#8492a0;padding:0 11px}.search-wrap span{font-size:23px}.toolbar input{width:100%;border:0;background:transparent;outline:0;padding:11px 0;font-size:12px;color:#223b57}.toolbar select{border:1px solid #e1e8ef;border-radius:9px;background:#fff;color:#51677a;min-height:42px;padding:0 13px;font-weight:640;font-size:11.5px}.table-surface{padding-bottom:0}.table-scroll{overflow-x:auto;overflow-y:hidden}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:860px}.data-table thead{background:#e5eef9;color:#47688b}.data-table thead th{font-size:10px;letter-spacing:.4px;padding:13px 13px;white-space:nowrap}.data-table tbody td{border-bottom:1px solid #edf1f5;padding:14px 13px;color:#42556a;font-size:11.5px;vertical-align:middle}.data-table tbody tr:hover{background:#f9fbfd}.data-table tfoot td{padding:15px 13px;border-top:2px solid #d8e3ef;font-size:12px;font-weight:780;background:#f7f9fc}.data-table tbody tr:last-child td{border-bottom:0}.amount-col,.data-table .amount-col{text-align:right}.actions-col{width:118px;text-align:center}.data-table .description-cell{color:#1e3349;font-weight:730;max-width:180px;overflow-wrap:anywhere}.data-table .notes-cell{max-width:210px;overflow-wrap:anywhere;color:#708395}.data-table .currency-income{color:#0f8559;font-weight:800;white-space:nowrap}.data-table .currency-expense{color:#bd5351;font-weight:800;white-space:nowrap}.type-pill,.status-pill{font-size:10px;font-weight:780;border-radius:6px;padding:6px 9px;white-space:nowrap;display:inline-block}.type-pill.income{color:#18815e;background:#e7f6ef}.type-pill.expense{color:#bb4c49;background:#ffefed}.status-pill.paid{color:#287c5e;background:#e8f5ed}.status-pill.pending{color:#a4762c;background:#fff4dc}.action-buttons{display:flex;justify-content:center;gap:4px}.tiny-button{border:1px solid #e1e8ef;border-radius:7px;background:#fff;color:#476780;padding:6px 8px;font-size:11px;white-space:nowrap}.tiny-button:hover{background:#eaf0f7}.tiny-button.remove{color:#c4554d}.table-footer{margin:0 -21px;padding:15px 21px;background:#f7fafd;display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #e7edf3;font-size:11.5px;color:#7e8d9f;border-radius:0 0 15px 15px}.table-footer strong{color:#1d3a5c;font-size:13px}.table-empty{text-align:center;color:#8c9ba9;padding:48px!important}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(265px,.8fr);gap:20px}.calendar-surface{padding:23px}.calendar-title{margin-bottom:25px}.calendar-title h3{font-size:21px}.calendar-hint{font-size:10px;color:#99a8b5}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{border-bottom:1px solid #e6ebf0}.calendar-weekdays span{text-align:center;color:#99a8b5;font-size:11px;font-weight:740;padding-bottom:15px}.calendar-grid{gap:7px;padding-top:13px}.cal-day{min-height:105px;border:1px solid #e6edf3;background:#fff;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:7px;text-align:left;color:#394f65;overflow:hidden}.cal-day:hover{border-color:#9eb6cb;background:#f8fbff}.cal-day.outside{background:#fafbfc;opacity:.5}.cal-day.today{border-color:#7eafce}.cal-day.selected{box-shadow:0 0 0 2px #345f89;border-color:#345f89;background:#f4f9ff}.cal-day .cal-date{font-size:11.5px;font-weight:800}.cal-day.today .cal-date{background:#315f8a;color:#fff;border-radius:50%;width:24px;height:24px;display:grid;place-items:center}.cal-day .cal-amount{font-size:9.5px;font-weight:740;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-amount.income{color:#228966}.cal-amount.expense{color:#cf6460}.cal-day .cal-more{font-size:9px;color:#99a8b5;margin-top:auto}.day-panel{align-self:start}.day-panel h3{font-size:18px;margin-bottom:18px}.day-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.day-number{border:1px solid #e5ecf3;border-radius:9px;padding:12px 9px}.day-number span{display:block;color:#8697a5;font-size:10px;margin-bottom:7px}.day-number strong{font-size:13px}.day-number.income strong{color:#15845b}.day-number.expense strong{color:#c75751}.day-entries{display:flex;flex-direction:column;gap:10px;max-height:330px;overflow-y:auto;margin-bottom:19px}.day-entry{padding:11px;background:#f7fafd;border:1px solid #edf1f5;border-radius:9px;display:flex;gap:9px;align-items:center;justify-content:space-between}.day-entry strong{font-size:11px;display:block;overflow-wrap:anywhere}.day-entry small{font-size:10px;color:#8292a0}.day-entry b{font-size:11px;white-space:nowrap}.day-entry b.income{color:#14875f}.day-entry b.expense{color:#be554d}.day-empty{color:#96a3b0;line-height:1.6;font-size:12px;min-height:55px}.annual-table{min-width:480px}.annual-table td:nth-child(2){color:#18815e}.annual-table td:nth-child(3){color:#c7514b}.annual-table .clickable-month{font-weight:750;color:#2d5b86;cursor:pointer}.annual-table .clickable-month:hover{text-decoration:underline}.report-notes{margin-top:19px}.report-notes p{font-size:12px;color:#788899;line-height:1.7;margin-bottom:0}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.setting-card{padding:25px;min-height:250px}.setting-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;margin-bottom:17px;font-size:24px}.green-bg{background:#e4f6ec;color:#228359}.blue-bg{background:#e4f1fa;color:#295c85}.beige-bg{background:#fff3e0;color:#a77738}.red-bg{background:#ffeeec;color:#c5544e}.setting-card h3{margin:0 0 9px;font-size:15px}.setting-card p{font-size:12px;color:#82919f;line-height:1.7;margin:0 0 22px;min-height:62px}.setting-card small{display:block;margin-top:9px;color:#9aa6b3;font-size:10px}.file-label{width:max-content;max-width:100%}.data-warning{display:flex;gap:13px;background:#eaf2fa;border:1px solid #d5e5f4;border-radius:12px;padding:15px 20px;margin-top:20px;color:#587793}.data-warning span{font-size:22px}.data-warning p{font-size:11.5px;line-height:1.7;margin:0}.page-footer{margin-top:auto;padding:29px 0 20px;display:flex;justify-content:space-between;gap:15px;color:#a0acb9;font-size:10.5px}.floating-add{display:none;position:fixed;right:21px;bottom:22px;background:#244b72;border:0;color:#fff;font-size:30px;width:54px;height:54px;border-radius:17px;box-shadow:0 6px 22px #17355357;z-index:12}.modal-layer[hidden],.sidebar-backdrop[hidden]{display:none!important}.modal-layer{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:15px}.modal-backdrop{position:absolute;inset:0;background:#0e1d30b8;backdrop-filter:blur(2px)}.modal{position:relative;width:min(615px,100%);max-height:95vh;overflow:auto;background:#fff;border-radius:17px;box-shadow:0 15px 80px #0a213c38;padding:26px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.modal-header h2{margin:0;font-size:21px;letter-spacing:-.5px}.modal form{display:flex;flex-direction:column;gap:15px}.modal form label:not(.repeat-option){font-size:11.5px;color:#526678;font-weight:710;display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}.modal input:not([type=checkbox]),.modal select{width:100%;height:43px;background:#fcfdff;border:1px solid #dce4ed;padding:0 12px;border-radius:8px;color:#263f58;font-size:13px}.form-row{display:flex;gap:14px}.repeat-option{display:flex;align-items:flex-start;gap:12px;background:#f7fafd;border:1px solid #e4ebf2;border-radius:10px;padding:15px;cursor:pointer}.repeat-option input{margin-top:4px;accent-color:#315c87}.repeat-option strong{font-size:12px;display:block}.repeat-option small{display:block;margin-top:5px;font-size:11px;color:#8b9cab;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:11px;margin-top:8px}.toast{position:fixed;right:26px;bottom:26px;z-index:60;background:#1e3854;color:#fff;padding:14px 20px;box-shadow:0 8px 35px #152d4f35;border-radius:10px;font-size:12.5px;max-width:360px;opacity:0;pointer-events:none;transform:translateY(12px);transition:transform .2s,opacity .2s}.toast.visible{opacity:1;transform:none}.mobile-menu{display:none}.sidebar-backdrop{z-index:19;position:fixed;inset:0;background:#091725aa}
@media(max-width:1160px){.sidebar{width:220px;min-width:220px}.main-content{padding-left:21px;padding-right:21px}.stats-grid{gap:10px}.stat-card{padding:17px 14px}.overview-grid{grid-template-columns:1.3fr 1fr}.topbar-right{gap:8px}.top-new{padding:10px 12px}}@media(max-width:930px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-110%);transition:transform .2s;height:100dvh;box-shadow:7px 0 24px #10253e20}.sidebar.open{transform:none}.sidebar-backdrop:not([hidden]){display:block}.mobile-menu{display:grid;font-size:19px}.topbar{min-height:83px}.overview-grid{grid-template-columns:1fr}.calendar-layout{grid-template-columns:1fr}.calendar-grid .cal-day{min-height:85px}.day-panel{margin-top:0}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.floating-add{display:grid;place-items:center}.page-footer{padding-bottom:75px}}@media(max-width:570px){.main-content{padding:0 12px}.topbar{display:block;padding:17px 1px;margin-bottom:22px;min-height:auto}.topbar-left{justify-content:space-between}.topbar-right{margin-top:13px;justify-content:space-between}.top-new{display:none}.month-navigation{width:100%;justify-content:space-between}.month-navigation select{width:105px}.month-navigation input[type=number]{width:73px}.welcome-row,.section-heading{align-items:flex-start}.welcome-row h2,.section-heading h2{font-size:19px}.welcome-row .button,.section-heading .button{font-size:10px;padding:8px 10px;min-height:37px}.section-heading{flex-wrap:wrap}.stats-grid{gap:9px}.stat-card{padding:13px}.stat-icon{width:30px;height:30px;font-size:16px}.stat-card strong{font-size:19px;margin:12px 0 7px}.stat-label{font-size:10px}.stat-foot{font-size:10px}.surface{padding:16px}.table-surface{padding-bottom:0}.table-footer{margin:0 -16px;padding:14px 16px}.calendar-surface{padding:11px}.calendar-weekdays span{font-size:9.5px}.calendar-grid{gap:3px;padding-top:10px}.cal-day{min-height:74px!important;padding:6px 4px;border-radius:6px;gap:4px}.cal-day .cal-date{font-size:10px}.cal-day .cal-amount{font-size:8px}.cal-day .cal-more{font-size:8px}.calendar-hint{display:none}.settings-grid{grid-template-columns:1fr}.setting-card{min-height:unset}.setting-card p{min-height:unset}.form-row{flex-direction:column;gap:15px}.modal{padding:18px;max-height:94dvh}.modal-actions .button{flex:1}.toolbar select{flex:1;width:48%}.page-footer{font-size:9px}.chart-container{height:185px}}@media print{body{background:#fff}.sidebar,.topbar,.floating-add,.page-footer,.button,.privacy-card,.toolbar,.actions-col,.action-buttons{display:none!important}.main-content{padding:0}.view{display:none!important}#view-relatorios{display:block!important}.surface{break-inside:avoid;box-shadow:none;border-color:#cbd6e3}.reports-stats{grid-template-columns:repeat(4,1fr)}.data-table{min-width:0}.page-footer{display:none}}


/* Versão 2 — modo tabela como tela principal. Mantém as demais telas do app. */
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 17px}
.sheet-heading h2{font-size:24px;letter-spacing:-.7px;margin:0 0 6px}
.sheet-heading p:last-child{color:#738293;font-size:12px;margin:0;line-height:1.5}
.sheet-actions,.sheet-bottom-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sheet-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:17px}
.sheet-stat{background:#fff;border:1px solid #e2e8ee;border-left:4px solid #9eb0c2;padding:14px 16px;border-radius:10px;box-shadow:0 2px 8px #1a365406;min-width:0}
.sheet-stat span{font-size:12px;font-weight:750;color:#66788a;display:block;margin-bottom:8px}
.sheet-stat strong{font-size:clamp(17px,1.8vw,23px);letter-spacing:-.5px;display:block;white-space:nowrap}
.sheet-stat.income{border-left-color:#25a06e}.sheet-stat.income strong{color:#127951}
.sheet-stat.expense{border-left-color:#e86d63}.sheet-stat.expense strong{color:#c45049}
.sheet-stat.balance{border-left-color:#3b739e}.sheet-stat.balance strong{color:#285d87}
.sheet-stat.pending{border-left-color:#d9a14a}.sheet-stat.pending strong{color:#9c6e26}
.sheet-surface{padding:0;overflow:hidden}
.sheet-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:17px 17px 10px}
.sheet-toolbar .search-wrap{max-width:520px}
.sheet-toolbar>select{border:1px solid #dce5ed;border-radius:8px;min-height:40px;font-size:12px;color:#365068;background:#fff;padding:0 12px}
.sheet-hint{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#eff8f3;border-top:1px solid #e3efe6;color:#446c53;padding:11px 17px;font-size:11.5px}
.sheet-hint strong{font-size:10px;letter-spacing:.7px}
.sheet-hint .scroll-hint{color:#657c71}
.sheet-scroll{overflow:auto;max-height:min(66vh,820px);scrollbar-width:thin}
.sheet-table{min-width:1180px;width:100%;table-layout:auto}
.sheet-table thead{position:sticky;top:0;z-index:3;background:#dbe9f6}
.sheet-table thead th{padding:12px 11px;border-right:1px solid #cfdeec;color:#365c7e;font-size:10.5px;letter-spacing:.35px}
.sheet-table tbody td{font-size:12px;border-right:1px solid #edf0f3;border-bottom:1px solid #e4e9ed;padding:7px 9px;height:45px}
.sheet-table tbody .description-cell{min-width:185px;max-width:340px}.sheet-table tbody .notes-cell{min-width:130px;max-width:260px}
.sheet-table .number-column{width:43px;text-align:center;padding:7px!important}
.sheet-table .row-number{color:#7890a4;background:#f8fafc;font-variant-numeric:tabular-nums;font-weight:650}
.sheet-table .actions-col{min-width:113px;width:113px}
.sheet-table .value-column{min-width:130px}
.sheet-table tbody .sheet-data-row:nth-child(even){background:#fafcff}
.sheet-table tbody .sheet-data-row:hover{background:#eaf4fb}
.sheet-table .sheet-data-row.income .row-number{border-left:3px solid #32a47b}
.sheet-table .sheet-data-row.expense .row-number{border-left:3px solid #e77e75}
.sheet-table .sheet-data-row .action-buttons{gap:5px}
.sheet-table .sheet-data-row .action-buttons .tiny-button{font-size:15px;padding:4px 7px;border-color:transparent;color:#607b93}
.sheet-table .sheet-data-row .action-buttons .tiny-button:hover{border-color:#b9cddd}
.sheet-table .sheet-data-row .action-buttons .tiny-button.remove{color:#c35b54}
.cell-edit{font-size:12px;background:transparent;border:1px solid transparent;border-radius:4px;padding:5px 3px;width:100%;text-align:left;color:inherit;cursor:text;min-height:26px;max-width:100%;overflow-wrap:anywhere}
.cell-edit:hover,.cell-edit:focus-visible{background:#eef6ff;border-color:#b7d8f1;outline:0}
.cell-edit.date-cell,.cell-edit.money-cell{white-space:nowrap}
.cell-edit.money-cell{text-align:right;font-weight:800;font-variant-numeric:tabular-nums}
.cell-edit.type-edit{white-space:nowrap;font-weight:780;cursor:pointer}
.cell-edit.type-edit.income{color:#0e855c}.cell-edit.type-edit.expense{color:#c0554a}
.cell-edit.description-edit{font-weight:750;color:#213c53}
.cell-edit.category-edit{color:#4b6680;cursor:pointer}
.cell-edit.notes-edit{color:#677b8a}.cell-edit.empty-note{color:#9ca8b3}
.recurring-mark{color:#44799a;font-size:13px;display:inline-block;padding-left:2px;cursor:help}
.sheet-table .running-cell{font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap;color:#175b49}
.sheet-table .running-cell.negative{color:#c4514a}
.sheet-table .status-toggle{border:0;background:transparent;padding:2px 0}
.sheet-table .status-pill{font-size:10.5px;font-weight:760;padding:7px 7px}
.sheet-table .quick-row{background:#e9f7eb!important}
.sheet-table .quick-row td{padding:8px 5px;border-top:2px solid #6aaf81;border-bottom:2px solid #afdabb;height:58px}
.quick-star{display:inline-grid;place-items:center;background:#2f9867;color:#fff;border-radius:6px;width:25px;height:25px;font-size:21px}
.sheet-input,.inline-editor{background:#fff;border:1px solid #bedac7;border-radius:6px;padding:7px 7px;min-height:36px;width:100%;font-size:12px;color:#243c52}
.sheet-input:focus,.inline-editor:focus{outline:2px solid #8cbe9f;outline-offset:0;border-color:#53a879}
.sheet-table .quick-row .date-entry{min-width:123px}.sheet-table .quick-row .select-entry{min-width:92px}
.sheet-table .quick-row .amount-entry{min-width:96px}.sheet-table .quick-row .description-entry{min-width:175px}
.sheet-table .quick-row .category-entry{min-width:115px}.sheet-table .quick-row .status-entry{min-width:114px}
.sheet-table .quick-row .notes-entry{min-width:135px}.quick-partial{color:#84a693}
.quick-save{padding:9px 8px;border-radius:7px;background:#208657;color:#fff;font-size:11px;font-weight:800;border:0;white-space:nowrap}
.quick-save:hover{background:#136b42}
.inline-editor{border-color:#5f9cb9;background:#f6fbff;outline:2px solid #cde5f7;width:100%;min-width:80px}
.sheet-table tfoot{position:sticky;bottom:0;z-index:2}
.sheet-table tfoot td{padding:13px 10px;background:#e2effa;color:#2b5273;font-size:12px;font-weight:850;border-top:2px solid #9fbdd8;white-space:nowrap}
.sheet-table tfoot .month-total-text{font-size:12px;color:#425e79}
.quick-controls{padding:11px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #e0e8ef;font-size:11.5px;color:#6c7b89}
.quick-controls label{display:flex;gap:8px;align-items:center;cursor:pointer;color:#33664f;font-weight:730}
.quick-controls input{accent-color:#208657}
.sheet-bottom-actions{justify-content:flex-end;margin:16px 0 28px}
body.table-mode .main-content{max-width:none}
body.table-mode .topbar{margin-bottom:23px}
@media(max-width:1180px){.sheet-stats{gap:7px}.sheet-stat{padding:11px 10px}.sheet-stat strong{font-size:17px}.sheet-table{min-width:1220px}}
@media(max-width:720px){.sheet-heading{align-items:flex-start;flex-wrap:wrap}.sheet-heading h2{font-size:20px}.sheet-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-stat strong{font-size:19px}.sheet-stat{padding:12px}.sheet-hint{font-size:10px}.sheet-toolbar{padding:12px 10px 10px}.sheet-toolbar .search-wrap{width:100%;max-width:none;min-width:0}.sheet-toolbar>select{flex:1;min-width:120px}.sheet-toolbar .sheet-extra{width:100%}.sheet-scroll{max-height:70vh}.sheet-table{min-width:1230px}.sheet-heading,.sheet-bottom-actions{margin-left:2px;margin-right:2px}.sheet-bottom-actions .button{flex:1}.sheet-stat span{font-size:11px}}
@media print{body.table-mode .view{display:none!important}body.table-mode #view-lancamentos{display:block!important}body.table-mode .sheet-toolbar,body.table-mode .quick-row,body.table-mode .quick-controls,body.table-mode .sheet-actions,body.table-mode .sheet-bottom-actions{display:none!important}body.table-mode .sheet-scroll{max-height:none;overflow:visible}body.table-mode .sheet-table{min-width:0;font-size:9px}body.table-mode .sheet-table td,body.table-mode .sheet-table th{font-size:9px;padding:4px}body.table-mode .sheet-table .actions-col{display:none}}

@media print{body.table-mode #view-relatorios{display:none!important}}

/* Refinos de usabilidade e inclusão rápida no celular */
body.table-mode .sidebar{width:218px;min-width:218px}
body.table-mode .main-content{padding-left:20px;padding-right:20px}
.sheet-toolbar .search-wrap{min-width:150px}
.sheet-toolbar .search-wrap input{display:block;width:100%;min-width:0;flex:1;border:0;background:transparent;outline:0;padding:10px 0;font-size:12px;color:#243b51}
.sheet-toolbar .search-wrap:focus-within{outline:2px solid #aed1ec}
.sheet-table tbody td .cell-edit:focus-visible{outline:2px solid #8eb9e1}
.mobile-entry{display:none}
@media(max-width:930px){body.table-mode .sidebar{width:230px;min-width:230px}}
@media(max-width:720px){
  body.table-mode .main-content{padding-left:12px;padding-right:12px}
  .sheet-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .sheet-toolbar .search-wrap{grid-column:1/-1}
  .sheet-toolbar>select{width:100%;min-width:0;font-size:11px;padding:0 4px}
  .sheet-toolbar .sheet-extra{grid-column:1/-1}
  .mobile-entry{display:block;background:#f8fbf9;border-top:1px solid #e0e9e3;padding:15px 14px}
  .mobile-entry-title{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}
  .mobile-entry-title strong{font-size:14px;color:#235a3d}
  .mobile-entry-title small{font-size:11px;color:#7b8a82}
  .mobile-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .mobile-entry-grid label{font-size:11px;color:#4e6b59;font-weight:750;display:flex;flex-direction:column;gap:5px;min-width:0}
  .mobile-entry-grid label.full,.mobile-entry-grid button.full{grid-column:1/-1}
  .mobile-entry-grid input:not([type=checkbox]),.mobile-entry-grid select{width:100%;min-width:0;height:40px;border:1px solid #cbdccf;border-radius:8px;padding:0 9px;background:#fff;color:#263d31;font-size:13px}
  .mobile-entry-grid input:focus,.mobile-entry-grid select:focus{outline:2px solid #acd8b6}
  .mobile-entry-grid label.mobile-repeat{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px}
  .mobile-entry-grid label.mobile-repeat input{accent-color:#21885a}
  .mobile-entry-grid .mobile-save{width:100%;font-size:14px;background:#208657}
  .sheet-table .quick-row{display:none!important}
  body.table-mode .floating-add{display:none}
}
@media print{.mobile-entry{display:none!important}}

@media(max-width:720px){.quick-controls label{display:none}.sheet-hint>span:first-child{display:none}.sheet-hint{padding:9px 14px}.sheet-hint .scroll-hint{font-size:11px}}

/* Marca Nexo: responsiva e legível sem sobreposição */
.brand{padding-left:7px;padding-right:5px;gap:9px}.brand-icon{flex-shrink:0}.brand strong{font-size:17px;letter-spacing:-.65px;line-height:1.1;white-space:nowrap}.brand small{font-size:8px;letter-spacing:.8px;white-space:nowrap}.brand>span:last-child{min-width:0}

/* Login obrigatório e sessão privada */
[hidden]{display:none!important}
.auth-screen{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 5% 10%,#dce9e7 0,transparent 36%),linear-gradient(120deg,#e9eef5,#f6f7f9);padding:28px 18px;color:#1b2b3d;font-family:inherit}
.auth-wrap{width:min(100%,446px)}
.auth-brand{display:flex;gap:13px;align-items:center;justify-content:center;margin-bottom:28px}.auth-brand strong{display:block;font-size:23px;letter-spacing:-.6px}.auth-brand small{font-size:10px;letter-spacing:2px;color:#60758a;font-weight:700}.auth-logo{width:49px;height:49px;display:grid;place-items:center;border-radius:14px;background:#162b46;color:white;font-size:29px}
.auth-panel{border:1px solid #e1e7ee;border-radius:21px;background:white;padding:36px;box-shadow:0 24px 70px #1738531f}.auth-eyebrow{color:#2f8b73;font-size:11px;letter-spacing:1.8px;font-weight:800}.auth-panel h1{margin:11px 0 8px;font-size:30px;letter-spacing:-1px}.auth-desc{color:#687a8b;line-height:1.5;font-size:14px;margin:0 0 22px}.auth-panel form{display:grid;gap:10px}.auth-panel label{font-size:12px;font-weight:750;margin-top:8px}.auth-panel input{height:48px;border:1px solid #cfdae3;border-radius:11px;padding:0 14px;outline:0;font:inherit;background:#fff;color:#152a3d}.auth-panel input:focus{border-color:#328f79;box-shadow:0 0 0 3px #c8e9de}.auth-login-btn{margin-top:17px;min-height:48px;border:0;border-radius:11px;background:#207c68;color:white;font-weight:800;cursor:pointer;font-size:15px}.auth-login-btn:hover{background:#166957}.auth-login-btn:disabled{opacity:.6;cursor:wait}.auth-message{font-size:12px;min-height:22px;color:#60758a;margin:6px 0 0}.auth-message.error{color:#b33131}.auth-footer{text-align:center;font-size:12px;color:#677a8b;margin-top:22px}
.signed-email{font-size:11px;color:#728398;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout-btn{font-size:12px!important;padding:8px 11px!important}
@media(max-width:900px){.signed-email{display:none}.logout-btn{padding:8px!important}.auth-panel{padding:27px 20px}.auth-panel h1{font-size:26px}}
