:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#f6f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px}a{color:inherit}#root{height:100%;overflow:hidden}*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background-color:#f1f5f9;color:#1e293b}.app{display:flex;height:100vh;overflow:hidden;--sidebar-width: calc(280px / var(--ui-zoom, 1));--page-header-height: 48px}.sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width);max-width:var(--sidebar-width);background:#0f172a;color:#fff;font-size:14px;display:flex;flex-direction:column;flex-shrink:0;position:fixed;top:0;left:0;bottom:0;height:100vh;overflow:hidden;border-right:1px solid #1e293b;box-shadow:2px 0 12px #0f172a40;contain:layout paint style;will-change:initial;z-index:30}.main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden;height:100vh;margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));padding-top:var(--page-header-height)}.brand{padding:20px 16px;border-bottom:1px solid #1e293b;display:flex;flex-direction:column;gap:2px}.brand h1{font-size:18px;font-weight:700;color:#fff;margin:0}.brand span{font-size:12px;color:#94a3b8}.nav{flex:1;padding:12px 8px;overflow:hidden;display:flex;flex-direction:column;gap:6px}.nav-item{position:relative;display:flex;align-items:center;gap:10px;padding:10px 12px;color:#94a3b8;text-decoration:none;transition:background .2s,color .2s,box-shadow .2s;cursor:pointer;border-radius:8px}.nav-item:hover{background:#94a3b81a;color:#fff}.nav-item.active{background:#2563eb2e;color:#fff;box-shadow:inset 0 0 0 1px #2563eb59}.nav-item.active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:2px;background:#2563eb}.content{flex:1;overflow-y:auto;height:calc(100vh - var(--page-header-height));padding:8px 12px}.header{display:flex;justify-content:space-between;align-items:center;position:fixed;top:0;left:var(--sidebar-width);right:0;height:var(--page-header-height);padding:0 12px;margin:0;background:#f1f5f9;z-index:20}.header-left{display:flex;align-items:center;gap:8px}.menu-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font-size:18px;line-height:1}.menu-toggle:hover{background:#f8fafc}.mobile-backdrop{position:fixed;inset:0;background:#0f172a73;z-index:25}.header h2{margin:0;line-height:1.2}h1{margin:0;font-size:24px;color:#0f172a}button{cursor:pointer;padding:8px 16px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-weight:500;transition:all .2s}button:hover{background:#f8fafc}button.primary{background:#2563eb;color:#fff;border-color:#2563eb}button.primary:hover{background:#1d4ed8}button.ghost{background:transparent;border-color:transparent;color:#64748b}button.ghost:hover{background:#f1f5f9;color:#0f172a}.modal .modal-actions button.ghost{border-color:#cbd5e1;color:#475569}.modal .modal-actions button.ghost:hover{border-color:#94a3b8;background:#f8fafc}button.danger{background:#ef4444;color:#fff;border-color:#ef4444}button.danger:hover{background:#dc2626}input,select{width:100%;padding:8px 12px;border-radius:6px;border:1px solid #cbd5e1;font-size:14px}input:focus,select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:#475569}.manual-toggle{display:flex;align-items:center;gap:8px;font-size:.9em;margin-top:6px;cursor:pointer;align-self:flex-start;white-space:nowrap}.manual-toggle input{margin:0}.months-grid-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start}@media(min-width:480px){.months-grid-mini{grid-template-columns:repeat(4,minmax(0,1fr))}}.select-all{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.checkbox-card{display:inline-flex;align-items:center;gap:6px;width:100%;min-height:32px;padding:6px 8px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;color:#0f172a}.checkbox-card.small{font-size:.9em;min-height:28px;padding:4px 6px}.checkbox-card input{margin:0;width:16px;height:16px;flex:0 0 auto;vertical-align:middle}.checkbox-card span{flex:1;line-height:1.2}.filters-panel{display:flex;flex-direction:column;gap:8px}.panel-header{display:flex;justify-content:space-between;align-items:center}.panel-header h2{margin:0;font-size:1.25rem}.table-header{background:#f8fafc;font-weight:600;color:#64748b;border-bottom:1px solid #e2e8f0}.table-row{padding:12px 16px;border-bottom:1px solid #f1f5f9;display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr auto;gap:6px;align-items:center;font-size:14px}.table-row:last-child{border-bottom:none}.table.list-table-wrapper{display:block;overflow-x:auto}.list-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.list-table th,.list-table td{padding:6px 16px;border-bottom:1px solid #f1f5f9;font-size:14px;text-align:left}.list-table__head th{background:#f8fafc;font-weight:700;font-size:14.5px;color:#64748b;border-bottom:1px solid #e2e8f0}.list-table__head th:last-child{text-align:center}.list-table--config-periodos .list-table__head .list-table__head-actions,.list-table--config-cartoes .list-table__head .list-table__head-actions,.list-table--config-categorias .list-table__head .list-table__head-actions,.list-table--config-gastos .list-table__head .list-table__head-actions,.list-table--config-receitas .list-table__head .list-table__head-actions{text-align:right}.list-table__row:last-child td{border-bottom:none}.list-table__row--empty td{text-align:left}.list-table__cell--actions{text-align:right}.list-table__col--date{width:120px}.list-table__col--desc{width:32%}.list-table__col--cat{width:22%}.list-table__col--valor,.list-table__col--status{width:12%}.list-table__col--acoes{width:16%}.list-table__col--nome{width:70%}.list-table__col--periodo{width:30%}.list-table__col--meses{width:50%}.list-table__col--tipo{width:22%}.list-table__col--recorrente{width:20%}.list-table--config-periodos .list-table__col--acoes,.list-table--config-cartoes .list-table__col--acoes,.list-table--config-categorias .list-table__col--acoes,.list-table--config-gastos .list-table__col--acoes,.list-table--config-receitas .list-table__col--acoes{width:140px}.list-table--cartao .list-table__col--date{width:120px}.list-table--cartao .list-table__col--desc{width:34%}.list-table--cartao .list-table__col--tipo{width:22%}.list-table--cartao .list-table__col--valor{width:12%}.list-table--cartao .list-table__col--acoes{width:130px}.table-row.cols-3{grid-template-columns:1.5fr 1fr 1fr}.table-row.cols-4{grid-template-columns:2fr 1fr 1fr 1fr}.table-row.cols-7{grid-template-columns:1.3fr 1fr 1fr 1fr 1fr 1fr 1fr}.table-row.cols-8{grid-template-columns:1.4fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr}.table-row.cols-5-report{grid-template-columns:2.2fr .9fr 1fr 1fr 1fr}.table-row.cols-6{grid-template-columns:2fr 1fr 1fr 1fr 1fr auto}.table-row.cols-5{grid-template-columns:1fr 2fr 1fr 1fr auto}.table-row.cols-5-finance{grid-template-columns:minmax(260px,2.6fr) minmax(200px,1.6fr) .9fr .9fr auto}.receitas-header>span,.despesas-header>span{text-align:left;justify-self:start;display:block;width:100%}.list-header{display:grid;grid-template-columns:1.5fr 1fr auto;gap:16px;padding:12px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-weight:600;font-size:13px;color:#64748b}.list-row{display:grid;grid-template-columns:1.5fr 1fr auto;gap:16px;padding:12px 16px;border-bottom:1px solid #f1f5f9;align-items:center}.list-header.cols-2,.list-row.cols-2{grid-template-columns:1fr auto}.list-row .actions,.table .actions{display:flex;justify-content:flex-end;gap:6px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid #e2e8f0;background:#fff;color:#64748b;box-shadow:0 1px 2px #0f172a14;transition:background .2s,border-color .2s,color .2s,box-shadow .2s,transform .1s}.icon-button svg{width:16px;height:16px}.icon-button.success{color:#15803d;border-color:#86efac;background:#f0fdf4}.icon-button.success:hover{background:#dcfce7;border-color:#4ade80}.icon-button.info{color:#2563eb;border-color:#93c5fd;background:#eff6ff}.icon-button.info:hover{background:#dbeafe;border-color:#60a5fa}.icon-button.danger{color:#dc2626;border-color:#fca5a5;background:#fef2f2}.icon-button.danger:hover{background:#fee2e2;border-color:#f87171}.icon-button:hover{color:#0f172a}.icon-button:focus-visible{outline:none;box-shadow:0 0 0 3px #2563eb40}.icon-button:active{transform:translateY(1px)}.status-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.success{background:#dcfce7;color:#166534}.status-badge.pending{background:#fef9c3;color:#854d0e}.status-badge.error{background:#fee2e2;color:#991b1b}.modal-backdrop{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}.modal{width:100%;max-width:560px;background:#fff;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;display:flex;flex-direction:column;max-height:90vh}.modal-header{padding:16px 20px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}.modal-header h3{margin:0;font-size:18px}.modal-body{padding:12px;overflow-y:auto}.modal-grid{display:grid;gap:10px;grid-template-columns:1fr}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;grid-column:1 / -1}.modal-alert{display:flex;gap:12px;align-items:flex-start;padding:6px 8px}.modal-alert__icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:0 0 48px}.modal-alert__icon svg{width:26px;height:26px}.modal-alert__message{margin:0;font-size:14px;line-height:1.4;color:#0f172a;white-space:pre-line}.modal--info .modal-alert__icon{background:#bfdbfe;color:#1e40af}.modal--success .modal-alert__icon{background:#bbf7d0;color:#15803d}.modal--warning .modal-alert__icon{background:#fde68a;color:#92400e}.modal--danger .modal-alert__icon{background:#fecaca;color:#b91c1c}.modal--compact{width:fit-content;max-width:460px;min-width:280px}@media(max-width:480px){.modal--compact{width:100%;min-width:0}}.modal .field{gap:3px}.modal input,.modal select,.modal textarea{padding:5px 8px}.modal .manual-toggle{margin-top:2px}.page-grid{display:flex;flex-direction:column;gap:10px;max-width:none;margin:0;padding:0;width:100%}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.panel{background:#fff;padding:10px 12px;border-radius:8px;border:1px solid #e2e8f0;box-shadow:0 1px 3px #0000001a}.panel h2{margin-top:0;margin-bottom:8px;font-size:18px;color:#0f172a}.panel h3{margin-top:0!important;margin-bottom:6px!important;padding-bottom:4px!important;border-bottom:1px solid #eee!important}.form-inline{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.table{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.summary{display:flex;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}.summary-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;min-width:200px}.saldo-mes-card{padding:8px 10px}.saldo-mes-card .saldo-row{display:flex;justify-content:space-between;margin-bottom:1px;line-height:1.1}.saldo-mes-card .saldo-row:last-child{margin-bottom:0}.summary-card .summary-title{font-size:13px;color:#64748b}.summary-card .summary-value{font-size:20px;font-weight:600;color:#0f172a}.badge-month,.badge-year{display:inline-block;padding:2px 8px;border-radius:6px;font-weight:700;font-size:.9em}.badge-month{background:#2563eb;color:#fff}.badge-year{background:#16a34a;color:#fff}@media(max-width:900px){html,body{overflow-x:hidden!important}.summary-card[style]{padding:8px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}.dashboard-grid>div[style]{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}.dashboard-grid .summary-card[style]{padding:8px!important}.panel .dashboard-grid>div[style]{padding:6px!important}.app{--sidebar-width: clamp(280px, 88vw, 360px)}.sidebar{transform:translate(-100%)!important;transition:transform .3s ease}.app.mobile-menu-open .sidebar{transform:translate(0)!important}.main{margin-left:0!important;width:100%!important}.header{left:0!important;padding:0 12px!important;z-index:40}.header-left{gap:12px!important}.header h2{font-size:15px!important}.menu-toggle{display:inline-flex!important}.content{padding:10px 6px!important;overflow-x:hidden!important}.panel{padding:10px 8px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}.panel h2{font-size:16px!important;word-break:break-word!important;overflow-wrap:break-word!important}.panel h3{font-size:14px!important;word-break:break-word!important;overflow-wrap:break-word!important}.panel-header{flex-direction:column!important;align-items:flex-start!important;gap:10px!important}.panel-header h2{font-size:14px!important;line-height:1.4!important}.panel-header p{font-size:12px!important}.panel-header .actions{width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}.panel-header .actions button{flex:1!important;min-width:120px!important}.form-inline{flex-direction:column!important;align-items:stretch!important;gap:12px!important}.brand{padding:14px 12px!important;gap:4px!important}.brand h1{font-size:16px!important}.brand span{font-size:11px!important}.nav{padding:10px 8px!important;gap:6px!important}.nav-item{white-space:normal!important;line-height:1.4!important;padding:10px 12px!important;font-size:14px!important}.dashboard-grid{grid-template-columns:1fr!important;gap:8px!important;width:100%!important;max-width:100%!important}.summary{flex-direction:column!important;gap:8px!important;width:100%!important}.summary-card{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:8px!important;overflow:hidden!important}.summary-card .summary-title{font-size:12px!important;word-break:break-word!important}.summary-card .summary-value{font-size:16px!important;word-break:break-word!important;overflow-wrap:break-word!important}button{padding:8px 12px!important;font-size:13px!important}.field{font-size:13px!important}input,select{font-size:14px!important;padding:8px 10px!important}.table.list-table-wrapper{overflow-x:auto!important;-webkit-overflow-scrolling:touch;width:100%!important;max-width:100%!important;box-sizing:border-box!important}.list-table{min-width:600px!important;table-layout:auto!important}.list-table th,.list-table td{padding:8px 12px!important;font-size:13px!important}.list-table__head th{font-size:13px!important;padding:10px 12px!important}.actions .icon-button{width:32px!important;height:32px!important}.actions .icon-button svg{width:14px!important;height:14px!important}.modal{max-width:95%!important;max-height:95vh!important}.modal-header{padding:12px 16px!important}.modal-header h3{font-size:16px!important}.modal-body{padding:10px!important}.modal input,.modal select{padding:6px 8px!important;font-size:14px!important}.months-grid-mini{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}.checkbox-card.small{font-size:12px!important;min-height:32px!important;padding:4px 8px!important}.status-badge{font-size:11px!important;padding:2px 6px!important}.saldo-mes-card .saldo-row{font-size:12px!important}}@media(max-width:600px){body{font-size:14px!important}h1{font-size:20px!important}.header{padding:0 10px!important}.header h2{font-size:14px!important}.content,.panel{padding:10px 8px!important}.panel h2{font-size:15px!important}.panel h3{font-size:13px!important}.panel-header{flex-direction:column!important;align-items:flex-start!important;gap:8px!important;width:100%!important;box-sizing:border-box!important}.panel-header h2{font-size:14px!important;line-height:1.4!important;word-break:break-word!important;overflow-wrap:break-word!important;max-width:100%!important}.panel-header p{font-size:12px!important;word-break:break-word!important;overflow-wrap:break-word!important}.panel-header .actions{width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;box-sizing:border-box!important}.panel-header .actions button{flex:1!important;min-width:90px!important;font-size:12px!important;padding:6px 8px!important}input,select{font-size:13px!important;padding:7px 9px!important}.summary-card{padding:8px 10px!important}.summary-card .summary-title{font-size:11px!important}.summary-card .summary-value{font-size:15px!important}.list-table th,.list-table td{padding:6px 10px!important;font-size:12px!important}.list-table__head th{font-size:12px!important;padding:8px 10px!important}.icon-button{width:30px!important;height:30px!important}.icon-button svg{width:13px!important;height:13px!important}.modal-header h3{font-size:15px!important}.modal input,.modal select{font-size:13px!important}.checkbox-card.small{font-size:11px!important;min-height:30px!important;padding:3px 6px!important}.status-badge{font-size:10px!important;padding:1px 5px!important}}.monthly-summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:12px}.monthly-summary-card{background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:14px;transition:all .2s ease;box-shadow:0 2px 4px #0000000f}.monthly-summary-card.current-month{border-color:#2563eb;border-width:2px;background:#eff6ff;box-shadow:0 4px 8px #2563eb26}.monthly-summary-card__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:10px;border-bottom:2px solid #e2e8f0}.monthly-summary-card.current-month .monthly-summary-card__header{border-bottom-color:#bfdbfe}.monthly-summary-card__title{margin:0;font-size:.95em;font-weight:600;color:#0f172a}.monthly-summary-card__badges{display:flex;gap:4px}.monthly-summary-card__badge{padding:2px 8px;border-radius:12px;font-size:.7em;font-weight:600}.monthly-summary-card__badge.current{background:#dbeafe;color:#1e40af}.monthly-summary-card__badge.closed{background:#fee2e2;color:#991b1b}.monthly-summary-card__content{display:flex;flex-direction:column;gap:4px}.monthly-summary-card__row{display:flex;justify-content:space-between;align-items:center;font-size:.85em}.monthly-summary-card__row .label{color:#64748b}.monthly-summary-card__row .value{font-weight:600;color:#0f172a}.monthly-summary-card__row .value.positive{color:#16a34a}.monthly-summary-card__row .value.negative{color:#dc2626}.monthly-summary-card__row.total{margin-top:8px;padding-top:8px;border-top:2px solid #cbd5e1}.monthly-summary-card.current-month .monthly-summary-card__row.total{border-top-color:#93c5fd}.monthly-summary-card__row.total .value{font-size:1.15em;color:#dc2626}@media(max-width:900px){.monthly-summary-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}.monthly-summary-card{padding:10px}.monthly-summary-card__title{font-size:.9em}.monthly-summary-card__row{font-size:.8em}}@media(max-width:480px){.monthly-summary-grid{grid-template-columns:1fr}.monthly-summary-card{padding:10px}}.sidebar-footer{padding:12px;border-top:1px solid #1e293b;display:flex;flex-direction:column;gap:10px}.user-card{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:#94a3b814}.user-avatar{width:36px;height:36px;border-radius:10px;background:#1e293b;color:#e2e8f0;display:flex;align-items:center;justify-content:center;font-weight:600}.user-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.user-meta strong{font-size:13px;color:#fff}.user-meta span{font-size:11px;color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}.logout-button{width:100%;border-color:#1e293b;color:#e2e8f0}.logout-button:hover{background:#94a3b81f;color:#fff}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 16px;background:radial-gradient(circle at top left,#1e293b,#0f172a 45%,#0b1020);color:#e2e8f0}.auth-screen--loading{align-items:center;justify-content:center}.auth-card{background:#fff;color:#0f172a;border-radius:24px;padding:36px;width:min(480px,92%);align-self:center;justify-self:center;box-shadow:0 24px 48px #0f172a59}.auth-card--loading{width:min(360px,90%);text-align:center}.auth-header{display:flex;flex-direction:column;gap:8px;margin-bottom:24px}.auth-badge{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:#64748b}.auth-header h1{font-size:28px;margin:0}.auth-header p{margin:0;color:#64748b}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#475569}.auth-field input{padding:10px 12px;border-radius:10px;border:1px solid #e2e8f0;background:#f8fafc}.auth-input{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:0 8px}.auth-input input{border:none;background:transparent;padding:10px 4px;flex:1}.auth-input input:focus{box-shadow:none}.auth-toggle{border:none;background:transparent;color:#2563eb;font-size:12px;padding:6px 8px}.auth-remember{display:flex;align-items:center;gap:8px;font-size:13px;color:#475569}.auth-remember input{width:16px;height:16px}.auth-error{background:#fee2e2;color:#991b1b;padding:10px 12px;border-radius:10px;font-size:13px}.auth-submit{width:100%;padding:10px 16px;border-radius:10px;font-size:15px}.auth-loading{display:flex;flex-direction:column;align-items:center;gap:12px;color:#475569}.auth-spinner{width:32px;height:32px;border-radius:50%;border:3px solid #e2e8f0;border-top-color:#2563eb;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.auth-card{width:calc(100% - 32px);margin:24px 16px;padding:24px;border-radius:18px}}
