*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,sans-serif;font-size:14px;background:#f0f2f5;color:#1a1a1a;height:100vh;display:flex;flex-direction:column}#app{display:flex;flex-direction:column;height:100vh;overflow:hidden}#app-shell{flex:1;display:flex;flex-direction:column;min-height:0}.app-header{display:flex;align-items:center;gap:1rem;background:#1a1a2e;color:#fff;padding:0 1.5rem;height:52px;flex-shrink:0;z-index:10}.app-header h1{margin:0;font-size:1.1rem;font-weight:600;letter-spacing:.02em}.app-title-link{color:inherit;text-decoration:none}.app-title-link:hover{text-decoration:underline}.sidebar-toggle{background:none;border:none;color:#fff;cursor:pointer;padding:6px;border-radius:4px;display:flex;align-items:center;font-size:1.2rem;line-height:1}.sidebar-toggle:hover{background:#ffffff1a}.layout{display:flex;flex:1;min-height:0;overflow:hidden}.sidebar{width:220px;background:#fff;border-right:1px solid #e5e7eb;overflow-y:auto;flex-shrink:0;transition:width .2s ease,opacity .2s ease}.sidebar.collapsed{width:0;opacity:0;overflow:hidden}.nav-group{padding:.5rem 0}.nav-group-label{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;cursor:pointer;-webkit-user-select:none;user-select:none}.nav-group-label:hover{color:#374151}.nav-group-arrow{font-size:.65rem;transition:transform .2s}.nav-group.open .nav-group-arrow{transform:rotate(90deg)}.nav-items{display:none}.nav-group.open .nav-items{display:block}.nav-item{display:block;padding:.45rem 1rem .45rem 1.75rem;color:#374151;text-decoration:none;border-left:3px solid transparent;transition:background .15s,border-color .15s}.nav-item:hover{background:#f3f4f6;color:#111827}.nav-item.active{background:#eff6ff;border-left-color:#3b82f6;color:#1d4ed8;font-weight:500}#content{flex:1;overflow-y:auto;padding:1.5rem}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.page-header h2{margin:0;font-size:1.15rem;font-weight:600}.btn{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem 1rem;border:none;border-radius:6px;font-size:.85rem;font-weight:500;cursor:pointer;transition:background .15s,opacity .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:#3b82f6;color:#fff}.btn-primary:hover:not(:disabled){background:#2563eb}.btn-secondary{background:#e5e7eb;color:#374151}.btn-secondary:hover:not(:disabled){background:#d1d5db}.btn-danger{background:#fee2e2;color:#b91c1c}.btn-danger:hover:not(:disabled){background:#fecaca}.btn-sm{padding:.3rem .65rem;font-size:.78rem}.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.875rem}thead{background:#f9fafb}th{padding:.65rem 1rem;text-align:left;font-weight:600;color:#6b7280;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e5e7eb}td{padding:.75rem 1rem;border-bottom:1px solid #f3f4f6;color:#374151}tr:last-child td{border-bottom:none}tr:hover td{background:#f9fafb}.td-actions{display:flex;gap:.4rem;align-items:center}.empty-row td{text-align:center;color:#9ca3af;padding:2rem}.balance-amount{font-variant-numeric:tabular-nums;font-weight:500}.balance-date{font-size:.75rem;color:#9ca3af;margin-top:2px}.form-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1.5rem;max-width:520px}.form-card h3{margin:0 0 1.25rem;font-size:1rem;font-weight:600}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.detail-head h3{margin-bottom:0}.form-group{margin-bottom:1rem}.form-group label{display:block;font-size:.8rem;font-weight:500;color:#374151;margin-bottom:.35rem}.form-group input,.form-group select{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;color:#111827;background:#fff;transition:border-color .15s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.inline-bank-form{margin-top:.75rem;padding:.75rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;display:flex;flex-direction:column;gap:.5rem}.inline-bank-form .inline-row{display:flex;gap:.5rem}.inline-bank-form input{flex:1;padding:.4rem .6rem;border:1px solid #d1d5db;border-radius:5px;font-size:.8rem}.inline-bank-form input:focus{outline:none;border-color:#3b82f6}.form-actions{display:flex;gap:.5rem;margin-top:1.25rem}.form-error{color:#b91c1c;font-size:.8rem;margin-top:.5rem}.tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.tile{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1.1rem 1.25rem;display:flex;flex-direction:column;gap:.35rem}.tile-label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}.tile-value{font-size:1.45rem;font-weight:700;color:#111827;font-variant-numeric:tabular-nums}.tile-sub{font-size:.75rem;color:#9ca3af}.tile-label--bank{display:flex;align-items:center;gap:.4rem}.tile-bank-logo{width:18px;height:18px;object-fit:contain;border-radius:3px;flex:none}.bank-name-cell{display:inline-flex;align-items:center;gap:.5rem}.bank-logo{width:20px;height:20px;object-fit:contain;border-radius:3px}.bank-swatch{width:14px;height:14px;border-radius:3px;border:1px solid #e5e7eb;display:inline-block}.color-row{display:flex;align-items:center;gap:.6rem}.color-row input[type=color]{width:42px;height:34px;padding:2px;cursor:pointer}.color-row input[type=text]{flex:1}.logo-row{display:flex;align-items:center;gap:.9rem}.logo-preview{width:56px;height:56px;border:1px solid #e5e7eb;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.7rem;text-align:center;overflow:hidden;flex:none}.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}.logo-controls{display:flex;flex-direction:column;gap:.4rem}.nav-item.nav-standalone{margin-top:.5rem}.settings-preview{display:inline-block;margin-left:.75rem;color:#6b7280;font-variant-numeric:tabular-nums}.form-success{color:#059669}.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:1rem}.filter-bar input,.filter-bar select{padding:.4rem .5rem;border:1px solid #e5e7eb;border-radius:6px;font-size:.85rem;background:#fff}.filter-bar #flt-search{flex:1;min-width:160px}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.audit-summary{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;margin-bottom:1rem;font-size:.9rem;color:#374151}.audit-flag{color:#b91c1c;font-weight:600}.audit-ok{color:#059669;font-weight:600}.checkpoint-row td{background:#f9fafb;font-size:.85rem}.checkpoint-row.checkpoint-ok td{color:#047857}.checkpoint-row.checkpoint-mismatch td{background:#fef2f2;color:#b91c1c}.tile-total{border-left:4px solid #3b82f6}.tile-total .tile-value{color:#1d4ed8}.tile-prediction,.tile-investment{border-left:4px solid #8b5cf6}.tile-investment .tile-value{color:#6d28d9}.tile-networth{border-left:4px solid #0d9488}.tile-networth .tile-value{color:#0f766e}.tile-value--pos{color:#15803d}.tile-value--neg{color:#b91c1c}.btn-icon{display:inline-flex;align-items:center;justify-content:center;padding:.3rem .5rem}.btn-icon svg{display:block}.fab{position:fixed;right:1.25rem;width:52px;height:52px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #00000040;z-index:30;transition:background .15s,transform .1s}.fab:active{transform:scale(.94)}.fab svg{display:block}.fab-hide{bottom:1.25rem;background:#e5e7eb;color:#374151}.fab-hide:hover{background:#d1d5db}.fab-add{bottom:5.25rem;background:#3b82f6;color:#fff}.fab-add:hover{background:#2563eb}@media(max-width:768px){.tiles-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem}.tile{padding:.7rem .85rem}.tile-value{font-size:1.05rem}}.section-title{font-size:.85rem;font-weight:600;color:#374151;margin:0 0 .75rem}.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 .75rem}.section-head .section-title{margin:0}.status-filters{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.75rem}.chip{padding:.25rem .75rem;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#374151;font-size:.8rem;font-weight:500;cursor:pointer}.chip:hover{border-color:#9ca3af}.chip-active{background:#1a1a2e;border-color:#1a1a2e;color:#fff}.cc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin-bottom:1.5rem}.cc-card{--cc-color: #334155;position:relative;text-align:left;border:none;cursor:pointer;border-radius:14px;padding:1rem 1.1rem;min-height:160px;color:#fff;display:flex;flex-direction:column;gap:.5rem;background:linear-gradient(135deg,var(--cc-color) 0%,rgba(0,0,0,.55) 145%);box-shadow:0 4px 14px #00000038;transition:transform .12s,box-shadow .12s}.cc-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #00000047}.cc-card--active{outline:3px solid var(--cc-color);outline-offset:2px}.cc-card-top{display:flex;align-items:center;justify-content:space-between}.cc-card-bank{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;text-shadow:0 1px 2px rgba(0,0,0,.35)}.cc-card-logo{width:22px;height:22px;border-radius:4px;background:#fff;object-fit:contain}.cc-chip{width:34px;height:24px;border-radius:5px;background:linear-gradient(135deg,#e9d38a,#b8912f);box-shadow:inset 0 0 0 1px #00000026}.cc-card-dots{font-size:1rem;letter-spacing:2px;opacity:.85;text-shadow:0 1px 2px rgba(0,0,0,.35)}.cc-card-foot{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:.5rem}.cc-card-name{font-size:.9rem;opacity:.95}.cc-card-invoice{display:flex;flex-direction:column;align-items:flex-end}.cc-card-invoice-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;opacity:.85}.cc-card-invoice-amount{font-size:1.15rem;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.35)}.cc-invoices-section{margin-top:.5rem}.cc-invoice-list{display:flex;flex-direction:column;gap:.5rem}.cc-invoice-row{display:flex;align-items:center;gap:.75rem;width:100%;text-align:left;cursor:pointer;padding:.7rem .9rem;border:1px solid #e5e7eb;border-radius:8px;background:#fff;transition:background .12s,border-color .12s}.cc-invoice-row:hover{background:#f9fafb;border-color:#d1d5db}.cc-invoice-month{font-weight:600}.cc-invoice-count{flex:1;font-size:.8rem}.cc-invoice-total{font-weight:600}.cc-total{display:flex;align-items:baseline;gap:.5rem;margin:0 0 1rem}.cc-total-label{font-size:.75rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.cc-total-value{font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums;color:#b91c1c}.invoice-block{margin-bottom:1.5rem}.invoice-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.5rem}.invoice-title{font-weight:600;margin-right:.5rem}.invoice-head .text-muted{font-size:.8rem;margin-left:.5rem}.invoice-head-right{display:flex;align-items:center;gap:.75rem}.invoice-total{font-weight:600;font-variant-numeric:tabular-nums}.invoice-status{padding:.2rem .4rem;font-size:.8rem}.badge-invoice-open{background:#fef3c7;color:#b45309}.badge-invoice-closed{background:#f3f4f6;color:#6b7280}.badge-invoice-paid{background:#dcfce7;color:#15803d}.receipt-drop input[type=file]{display:block;margin-top:.5rem}.btn-file{display:inline-flex;margin-top:.5rem;cursor:pointer}.btn-file.disabled{opacity:.5;pointer-events:none}.receipt-thumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 .25rem}.receipt-thumb{position:relative;width:84px;height:84px}.receipt-thumb img{width:100%;height:100%;object-fit:cover;border-radius:6px;border:1px solid #e5e7eb}.thumb-remove{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border:none;border-radius:50%;background:#b91c1c;color:#fff;font-size:.75rem;line-height:1;cursor:pointer;box-shadow:0 1px 3px #0000004d}.thumb-remove:disabled{opacity:.5;cursor:not-allowed}.form-row{display:flex;gap:1rem}.form-row .form-group{flex:1}.line-item-card{border:1px solid #e5e7eb;border-radius:8px;padding:.6rem;margin-bottom:.6rem;background:#fafafa}.line-item-card .li-head{display:flex;gap:.5rem;align-items:center;margin-bottom:.4rem}.line-item-card .li-name{flex:1;font-weight:600}.line-item-card .li-desc{width:100%;margin-bottom:.4rem}.li-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}.li-fields label{display:flex;flex-direction:column;gap:.15rem;font-size:.7rem;color:#6b7280}.li-fields input{width:100%}@media(max-width:768px){.li-fields{grid-template-columns:repeat(2,1fr)}}@media(max-width:768px){.form-row{flex-direction:column;gap:0}}.month-nav{display:flex;align-items:center;gap:.75rem;margin:1.5rem 0 .75rem}.month-nav-label{margin:0;min-width:10rem}.badge{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.badge-income{background:#dcfce7;color:#15803d}.badge-expense{background:#fee2e2;color:#b91c1c}.badge-status-paid{background:#dbeafe;color:#1d4ed8}.badge-status-pending{background:#fef3c7;color:#b45309}.badge-status-extra{background:#f3f4f6;color:#6b7280}.badge-status-approved{background:#d1fae5;color:#047857}.badge-status-rejected{background:#fee2e2;color:#b91c1c}.badge-status-disabled{background:#f3f4f6;color:#6b7280}.auth-switch{margin-top:1rem;text-align:center;font-size:.85rem}.auth-switch a{color:#2563eb}.auth-divider{display:flex;align-items:center;gap:.75rem;margin:1rem 0;color:#9ca3af;font-size:.8rem}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:#e5e7eb}.btn-social{width:100%;display:flex;align-items:center;justify-content:center;gap:.6rem}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.asset-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1.1rem 1.25rem;display:flex;flex-direction:column;gap:.6rem}.asset-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.asset-title{font-weight:600}.asset-figures{display:flex;flex-wrap:wrap;gap:1rem}.asset-figures>div{display:flex;flex-direction:column}.asset-fig-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;color:#9ca3af}.asset-fig-value{font-size:1.25rem;font-weight:700;color:#111827;font-variant-numeric:tabular-nums}.asset-fig-sub{font-size:.95rem;color:#374151;font-variant-numeric:tabular-nums}.asset-neg{color:#b91c1c}.asset-sub{font-size:.78rem}.asset-progress{height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden}.asset-progress-bar{height:100%;background:#059669;border-radius:999px}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer}.financing-card{max-width:none;margin-top:.5rem;background:#f9fafb}.badge-transfer{background:#dbeafe;color:#1d4ed8}.badge-regular{background:#f3f4f6;color:#6b7280}.badge-investment{background:#ede9fe;color:#6d28d9}.amount-transfer{color:#1d4ed8;font-variant-numeric:tabular-nums;font-weight:500}.amount-income{color:#15803d;font-variant-numeric:tabular-nums;font-weight:500}.amount-expense{color:#b91c1c;font-variant-numeric:tabular-nums;font-weight:500}.text-muted{color:#9ca3af}.hidden{display:none!important}.home-welcome{color:#6b7280}@media(max-width:768px){.sidebar{position:fixed;top:52px;bottom:0;left:0;z-index:20;width:240px;box-shadow:2px 0 8px #00000026}.sidebar.collapsed{width:240px;opacity:1;transform:translate(-100%)}#content{padding:1rem}.page-header{flex-direction:column;align-items:stretch;gap:.75rem}.page-header .btn{width:100%}.month-nav{flex-wrap:wrap}.table-wrap{overflow-x:visible}.table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}.table-wrap thead{position:absolute;left:-9999px}.table-wrap tbody tr{border:1px solid #e5e7eb;border-radius:8px;background:#fff;margin-bottom:.75rem;overflow:hidden}.table-wrap tbody tr:last-child{margin-bottom:0}.table-wrap td{display:flex;justify-content:space-between;align-items:center;gap:1rem;text-align:right;padding:.6rem 1rem;border-bottom:1px solid #f3f4f6}.table-wrap tr td:last-child{border-bottom:none}.table-wrap td:before{content:attr(data-label);flex-shrink:0;text-align:left;font-weight:600;font-size:.75rem;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.table-wrap td.cell-actions{padding:.75rem 1rem}.table-wrap td.cell-actions:before{content:none}.cell-actions .td-actions{width:100%;justify-content:stretch}.cell-actions .td-actions .btn{flex:1}.table-wrap .empty-row td{justify-content:center;text-align:center}.table-wrap .empty-row td:before{content:none}}
