:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1020;--panel:#11182a;--panel-2:#151e33;--border:#27324a;--text:#f2f5f9;--muted:#8fa0bd;--accent:#6ea8fe;--good:#71d6a8;--warn:#f6c76b;--danger:#ff9b9b}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}button,input,select{font:inherit}.sheet-shell{width:min(1600px,100% - 24px);margin:0 auto;padding:14px 0 24px}.sync-line{display:none}.access-inline{border:1px solid var(--border);color:var(--muted);margin-top:30px;padding:12px}.analysis-sheet{border:1px solid var(--border);background:var(--panel);grid-template-rows:auto minmax(0,1fr) auto;height:calc(100dvh - 68px);min-height:0;display:grid;overflow:hidden}.filter-bar{border-bottom:1px solid var(--border);z-index:6;background:#0f1627;grid-template-columns:minmax(190px,1.6fr) repeat(4,minmax(118px,1fr)) 132px 132px 88px 88px auto;gap:5px;padding:7px;display:grid;position:relative}.filter-bar input,.filter-bar select{border:1px solid var(--border);width:100%;min-width:0;height:30px;color:var(--text);background:#111a2d;border-radius:2px;outline:none;padding:4px 7px;font-size:11px}.filter-bar input:focus,.filter-bar select:focus{border-color:var(--accent)}.filter-reset{border:1px solid var(--border);height:30px;color:var(--muted);cursor:pointer;background:0 0;border-radius:2px;padding:0 10px;font-size:11px}.filter-reset:hover{color:var(--text);border-color:var(--accent)}.table-wrap{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow:auto}table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1040px}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #202b41;border-right:1px solid #202b41;padding:6px 8px;font-size:11px}th:last-child,td:last-child{border-right:0}th{z-index:5;color:#b9c6dc;text-transform:uppercase;letter-spacing:.035em;background:#162035;font-size:10px;font-weight:650;position:sticky;top:0;box-shadow:0 1px #202b41}th button{width:100%;color:inherit;cursor:pointer;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;text-align:inherit;background:0 0;border:0;justify-content:space-between;align-items:center;gap:8px;padding:0;display:flex}th button:hover{color:var(--text)}th button span{color:#657796;flex:none;font-size:9px}.col-date{width:120px}.col-movement{width:44%}.col-account{width:180px}.col-category{width:170px}.col-status{width:110px}.col-amount{width:120px}tbody tr:nth-child(2n){background:#ffffff03}tbody tr:hover{background:#6ea8fe12}.date-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.movement-cell{overflow:hidden}td strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:650;display:block;overflow:hidden}td small{color:#74839f;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:9px;display:block;overflow:hidden}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}th.num button{justify-content:flex-end}.positive{color:var(--good)}.negative{color:var(--text)}.status{text-align:center;border:1px solid var(--border);border-radius:999px;min-width:52px;padding:2px 5px;font-size:9px;display:inline-block}.status.pending{color:var(--warn)}.status.posted{color:var(--good)}.sheet-statusbar{border-top:1px solid var(--border);z-index:6;background:#0e1524;justify-content:space-between;align-items:center;gap:12px;min-height:32px;padding:5px 7px;display:flex;position:relative}.status-summary{color:var(--muted);flex-wrap:wrap;align-items:center;gap:18px;font-size:10px;display:flex}.status-summary b{color:var(--text);font-variant-numeric:tabular-nums}.status-summary b.positive{color:var(--good)}.status-summary b.negative{color:var(--danger)}.compact-pager{color:var(--muted);align-items:center;gap:4px;font-size:10px;display:flex}.compact-pager button{border:1px solid var(--border);width:25px;height:23px;color:var(--text);cursor:pointer;background:0 0;padding:0}.compact-pager button:disabled{opacity:.3;cursor:default}.app-frame{grid-template-columns:180px minmax(0,1fr);height:100dvh;transition:grid-template-columns .15s;display:grid;overflow:hidden}.app-frame.nav-collapsed{grid-template-columns:50px minmax(0,1fr)}.sidebar{border-right:1px solid var(--border);background:#0d1424;height:100dvh;padding:10px 7px;position:sticky;top:0;overflow:hidden}.nav-toggle{border:1px solid var(--border);width:34px;height:30px;color:var(--muted);cursor:pointer;background:0 0}.brand{color:var(--text);white-space:nowrap;margin:14px 7px 10px;font-size:13px;font-weight:700}.sidebar nav{gap:3px;display:grid}.sidebar nav a{height:32px;color:var(--muted);white-space:nowrap;align-items:center;gap:9px;padding:0 9px;font-size:11px;text-decoration:none;display:flex}.sidebar nav a:hover,.sidebar nav a.active{color:var(--text);background:#151e33}.nav-dot{border:1px solid #5e7194;border-radius:50%;flex:none;width:7px;height:7px}.sidebar nav a.active .nav-dot{background:var(--accent);border-color:var(--accent)}.app-main{grid-template-rows:48px minmax(0,1fr);min-width:0;height:100dvh;display:grid;overflow:hidden}.app-toolbar{border-bottom:1px solid var(--border);z-index:20;background:#0d1424;justify-content:space-between;align-items:center;height:48px;padding:0 14px;display:flex;position:relative}.toolbar-title{font-size:13px;font-weight:700}.profile-wrap{position:relative}.profile-button{border:1px solid var(--border);color:var(--text);cursor:pointer;background:#111a2d;height:30px;padding:0 10px;font-size:11px}.profile-menu{border:1px solid var(--border);z-index:30;background:#10182a;min-width:230px;padding:9px;position:absolute;top:35px;right:0;box-shadow:0 12px 30px #00000059}.profile-email{color:var(--muted);border-bottom:1px solid var(--border);text-overflow:ellipsis;margin-bottom:6px;padding:5px 6px 9px;font-size:11px;overflow:hidden}.profile-menu button{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:0;padding:7px 6px;font-size:11px}.module-content{min-height:0;padding:10px 12px;overflow:auto}.module-content:has(.analysis-sheet){overflow:hidden}.data-panel{border:1px solid var(--border);background:var(--panel);overflow:auto}.panel-title{border-bottom:1px solid var(--border);padding:7px 8px;font-size:11px;font-weight:700}.module-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.kpi{border:1px solid var(--border);background:var(--panel);min-height:68px;padding:10px}.kpi span{color:var(--muted);font-size:10px;display:block}.kpi strong{font-variant-numeric:tabular-nums;margin-top:7px;font-size:18px;display:block}.kpi.primary strong{color:var(--accent)}.wide{grid-column:span 4}.compact-table{min-width:0}.editor{border-bottom:1px solid var(--border);background:#0f1627}.import-editor{display:none}.editor>summary,.row-edit>summary{cursor:pointer;color:var(--muted);-webkit-user-select:none;user-select:none;padding:7px 8px;font-size:10px}.inline-form,.row-form,.grid-form{gap:5px;padding:7px;display:grid}.inline-form{grid-template-columns:repeat(5,minmax(120px,1fr)) auto}.inline-form.slim{grid-template-columns:1.3fr .7fr 1.2fr auto;padding:6px 0}.row-form{grid-template-columns:repeat(4,minmax(90px,1fr)) auto;min-width:520px}.grid-form{grid-template-columns:repeat(4,minmax(140px,1fr))}.inline-form input,.inline-form select,.row-form input,.row-form select,.grid-form input,.grid-form select{border:1px solid var(--border);min-width:0;height:30px;color:var(--text);background:#111a2d;padding:4px 7px;font-size:11px}.inline-form button,.row-form button,.grid-form button{border:1px solid var(--border);height:30px;color:var(--text);cursor:pointer;background:#18243a;padding:0 10px;font-size:11px}.row-edit{position:relative}.row-edit[open]{min-width:120px}.danger-link{color:var(--danger)!important;background:0 0!important;border:0!important;height:auto!important;padding:5px 7px!important}.budget-block{border-bottom:1px solid var(--border);padding:8px}.budget-head{align-items:center;gap:12px;min-height:30px;font-size:11px;display:flex}.budget-head span{color:var(--muted)}.auth-shell{place-items:center;min-height:100vh;padding:24px;display:grid;overflow:auto}.auth-card{background:var(--panel);border:1px solid var(--border);width:min(100%,420px);padding:24px}.auth-card h1{margin:8px 0;font-size:28px}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:700}.subtitle{color:var(--muted);font-size:12px}.auth-form{gap:8px;margin-top:20px;display:grid}.auth-form label{color:var(--muted);font-size:11px}.auth-form input{border:1px solid var(--border);background:var(--panel-2);width:100%;color:var(--text);outline:none;padding:10px}.auth-primary,.auth-secondary{cursor:pointer;width:100%;padding:10px}.auth-primary{background:var(--accent);color:#08111f;border:0;font-weight:700}.auth-secondary{color:var(--text);border:1px solid var(--border);background:0 0}.auth-alert{border:1px solid var(--border);margin-top:14px;padding:9px;font-size:11px}.auth-alert.error{color:var(--danger)}.auth-alert.success{color:var(--good)}.auth-note{color:var(--muted);font-size:10px}@media (min-width:1800px){.app-frame{grid-template-columns:210px minmax(0,1fr)}.app-frame.nav-collapsed{grid-template-columns:52px minmax(0,1fr)}.filter-bar{grid-template-columns:minmax(260px,1.8fr) repeat(4,minmax(145px,1fr)) 145px 145px 100px 100px auto}th,td{padding:7px 9px;font-size:12px}td strong{font-size:12px}}@media (max-width:1200px){.filter-bar{grid-template-columns:repeat(5,minmax(130px,1fr));overflow-x:auto}.module-grid{grid-template-columns:repeat(2,1fr)}.wide{grid-column:span 2}.grid-form{grid-template-columns:repeat(2,1fr)}.analysis-sheet{height:calc(100dvh - 68px)}}@media (max-width:800px){.app-frame,.app-frame.nav-collapsed{grid-template-columns:44px minmax(0,1fr)}.sidebar{padding:8px 4px}.brand{margin:8px 0;font-size:0}.sidebar nav a{justify-content:center;padding:0}.app-toolbar{padding:0 8px}.module-content{padding:6px}.analysis-sheet{height:calc(100dvh - 60px)}.filter-bar{scrollbar-width:thin;gap:5px;padding:6px;display:flex;overflow-x:auto}.filter-bar>*{flex:0 0 150px}.filter-bar>input:first-child{flex-basis:220px}.filter-reset{flex-basis:76px}table{min-width:900px}th,td{padding:6px;font-size:10px}td strong{font-size:10px}.col-date{width:105px}.col-account{width:150px}.col-category{width:145px}.col-status{width:90px}.col-amount{width:105px}.status-summary{white-space:nowrap;flex-wrap:nowrap;gap:8px;overflow-x:auto}.sheet-statusbar{padding:4px 6px}.inline-form,.inline-form.slim,.row-form,.grid-form{grid-template-columns:1fr}}@media (max-width:480px){.toolbar-title{font-size:12px}.profile-button{padding:0 8px}.analysis-sheet{border-left:0;border-right:0}.module-content{padding-left:0;padding-right:0}.filter-bar>*{flex-basis:135px}.filter-bar>input:first-child{flex-basis:190px}.sheet-statusbar{gap:6px}.status-summary,.compact-pager{font-size:9px}}
.module-content:has(.analysis-sheet){padding:0;overflow:hidden}.module-content:has(.analysis-sheet) .analysis-sheet{border:0;height:100%}.filter-bar{grid-template-columns:minmax(190px,1.6fr) repeat(4,minmax(118px,1fr)) 132px 132px 88px 88px auto auto}.quick-filter-bar{grid-template-columns:minmax(260px,1.8fr) minmax(180px,1fr) minmax(190px,1fr) auto auto auto!important;gap:6px!important;display:grid!important;overflow:visible!important}.quick-filter-bar>*{min-width:0}.quick-filter-bar .advanced-trigger{white-space:nowrap}.quick-filter-bar .advanced-trigger.has-filters{color:var(--text);border-color:var(--accent);background:#6ea8fe14}.period-trigger{border:1px solid var(--border);height:30px;color:var(--text);text-align:left;cursor:pointer;background:#111a2d;grid-template-rows:auto auto;grid-template-columns:1fr auto;align-content:center;min-width:0;padding:3px 8px;display:grid}.period-trigger span{color:var(--muted);font-size:8px;line-height:1}.period-trigger strong{white-space:nowrap;text-overflow:ellipsis;font-size:10px;font-weight:600;line-height:1.2;overflow:hidden}.period-trigger b{color:var(--muted);grid-area:1/2/3;align-self:center;font-size:9px}.period-trigger.active{background:#132038;border-color:#47638d}.module-filter{grid-template-columns:minmax(220px,1.8fr) repeat(3,minmax(130px,1fr)) auto auto}.module-sheet{border:0;height:100%}.module-sheet table{min-width:900px}.module-sheet .account-table{min-width:1180px}.nav-icon{color:#8fa0bd;flex:0 0 20px;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.sidebar nav a.active .nav-icon,.sidebar nav a:hover .nav-icon{color:#6ea8fe}.nav-collapsed .sidebar nav a{justify-content:center;padding:0}.nav-collapsed .nav-label{display:none}.nav-collapsed .nav-icon{flex-basis:28px;width:28px;height:28px}.nav-collapsed .nav-icon svg{width:17px;height:17px}.clickable-row{cursor:pointer}.clickable-row:hover{background:#6ea8fe14!important}.table-toolbar{border-bottom:1px solid var(--border);z-index:4;background:#0f1627;justify-content:flex-end;align-items:center;height:38px;padding:5px 7px;display:flex;position:sticky;top:0}.table-toolbar button,.add-record{border:1px solid var(--border);height:28px;color:var(--text);cursor:pointer;background:#18243a;padding:0 10px;font-size:11px}.full-table-panel{height:100%;overflow:auto}.account-table{min-width:1180px}.modal-backdrop{z-index:1000;background:#02060fb8;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal-card{background:#10182a;border:1px solid #33415f;width:min(720px,100%);max-height:90dvh;overflow:auto;box-shadow:0 22px 70px #0000008c}.modal-head{z-index:2;border-bottom:1px solid var(--border);background:#10182a;justify-content:space-between;align-items:center;height:44px;padding:0 12px;display:flex;position:sticky;top:0}.modal-head strong{font-size:13px}.modal-head button{width:30px;height:30px;color:var(--muted);cursor:pointer;background:0 0;border:0;font-size:20px}.protected-alert{color:var(--warn);background:#1a1920;border:1px solid #725d2f;margin:10px 12px 0;padding:9px 10px;font-size:11px;line-height:1.4}.modal-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px;display:grid}.modal-form.compact{border-top:1px solid var(--border);grid-template-columns:repeat(3,minmax(0,1fr))}.modal-form label{color:var(--muted);gap:4px;font-size:10px;display:grid}.modal-form input,.modal-form select{border:1px solid var(--border);width:100%;height:32px;color:var(--text);background:#111a2d;padding:4px 7px;font-size:11px}.modal-actions{grid-column:1/-1;justify-content:flex-end;gap:7px;padding-top:4px;display:flex}.modal-actions button,.modal-delete button,.modal-form>button{border:1px solid var(--border);height:30px;color:var(--text);cursor:pointer;background:#18243a;padding:0 12px}.modal-delete{justify-content:flex-end;padding:0 12px 12px;display:flex}.modal-delete button{color:var(--danger);background:0 0}.modal-subtitle{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;border-top:1px solid var(--border);padding:10px 12px 5px;font-size:10px}.budget-line{border-top:1px solid #202b41;grid-template-columns:1fr auto 30px;align-items:center;gap:8px;padding:6px 12px;font-size:11px;display:grid}.budget-line form button{width:26px;height:24px;color:var(--danger);cursor:pointer;background:0 0;border:0}.filter-panel{width:min(760px,100vw - 32px);overflow:visible}.compact-advanced-panel{width:min(620px,100vw - 32px)}.advanced-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;display:grid}.advanced-filter-grid label{color:var(--muted);gap:5px;font-size:10px;display:grid}.advanced-filter-grid input,.advanced-filter-grid select{border:1px solid var(--border);width:100%;height:34px;color:var(--text);background:#111a2d;min-width:0;padding:5px 8px;font-size:11px}.advanced-filter-actions{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding:10px 14px 14px;display:flex}.advanced-filter-actions button{height:32px}.filter-overlay{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.period-panel{background:#10182a;border:1px solid #33415f;width:min(560px,100vw - 32px);max-height:90dvh;overflow:auto;box-shadow:0 22px 70px #0000008c}.period-quick{border-bottom:1px solid var(--border);grid-template-columns:repeat(5,1fr);gap:6px;padding:12px;display:grid}.period-quick button,.month-grid button,.year-nav button,.whole-year{border:1px solid var(--border);height:32px;color:var(--text);cursor:pointer;background:#111a2d;font-size:10px}.period-quick button:hover,.month-grid button:hover,.year-nav button:hover,.whole-year:hover{border-color:var(--accent)}.period-section-title{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding:12px 14px 6px;font-size:9px}.year-nav{grid-template-columns:36px 1fr 36px;align-items:center;gap:8px;padding:0 14px 8px;display:grid}.year-nav strong{text-align:center;font-size:17px}.month-grid{grid-template-columns:repeat(4,1fr);gap:6px;padding:0 14px;display:grid}.month-grid button.selected{border-color:var(--accent);background:#6ea8fe29}.whole-year{width:calc(100% - 28px);margin:8px 14px 4px;display:block}.range-grid{grid-template-columns:1fr auto 1fr;align-items:end;gap:8px;padding:0 14px 14px;display:grid}.range-grid label{color:var(--muted);gap:5px;font-size:10px;display:grid}.range-grid input{border:1px solid var(--border);width:100%;height:34px;color:var(--text);background:#111a2d;padding:5px 8px;font-size:11px}.range-grid span{color:var(--muted);padding-bottom:9px}.smart-tx-modal{width:min(760px,100%)}.smart-tx-form{gap:11px;padding:14px}.smart-tx-form .span-2{grid-column:1/-1}.activity-picker{grid-column:1/-1;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:2px;display:grid}.activity-picker button{border:1px solid var(--border);height:58px;color:var(--text);text-align:left;cursor:pointer;background:#111a2d;align-content:center;gap:3px;padding:0 12px;font-size:12px;font-weight:650;display:grid}.activity-picker button small{color:var(--muted);font-size:9px;font-weight:400}.activity-picker button.active{border-color:var(--accent);background:#6ea8fe21;box-shadow:inset 0 0 0 1px #6ea8fe1f}.smart-hint{color:#aebbd0;background:#111d32;border:1px solid #405174;padding:9px 10px;font-size:10px;line-height:1.35}.smart-summary{border:1px solid var(--border);background:#0d1525;align-items:center;gap:9px;min-height:38px;padding:8px 10px;display:flex}.smart-summary b{font-size:11px}.smart-summary span{color:var(--muted);font-size:10px}.smart-tx-form .modal-actions{border-top:1px solid var(--border);padding-top:8px}.smart-tx-form .modal-actions button:last-child{background:#1b3154;border-color:#47638d}.movement-cell small{color:var(--muted);margin-top:2px;font-size:9px;display:block}@media (max-width:1200px){.filter-bar:not(.quick-filter-bar),.module-filter{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid;overflow:visible}.filter-bar:not(.quick-filter-bar)>*,.module-filter>*{width:100%;min-width:0}.filter-bar:not(.quick-filter-bar)>input:first-child,.module-filter>input:first-child{grid-column:1/-1}.filter-bar:not(.quick-filter-bar) .filter-reset,.module-filter .filter-reset,.filter-bar:not(.quick-filter-bar) .add-record,.module-filter .add-record{min-width:0}.quick-filter-bar{grid-template-columns:minmax(220px,1.5fr) minmax(160px,1fr) minmax(180px,1fr) auto auto auto!important}}@media (max-width:1000px){.quick-filter-bar{grid-template-columns:minmax(0,1.4fr) minmax(150px,1fr) minmax(175px,1fr) auto!important}.quick-filter-bar .quick-search{grid-column:span 2}.quick-filter-bar .add-record{grid-column:auto}.advanced-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:900px){.filter-bar:not(.quick-filter-bar),.module-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar:not(.quick-filter-bar)>input:first-child,.module-filter>input:first-child{grid-column:1/-1}.filter-bar:not(.quick-filter-bar) .filter-reset,.filter-bar:not(.quick-filter-bar) .add-record,.module-filter .filter-reset,.module-filter .add-record{width:100%}.quick-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quick-filter-bar .quick-search{grid-column:1/-1}.quick-filter-bar button{width:100%}.period-quick{grid-template-columns:repeat(2,1fr)}.period-quick button:last-child{grid-column:1/-1}}@media (max-width:800px){.module-content:has(.analysis-sheet){padding:0}.sidebar nav a .nav-label{display:none}.sidebar nav a{justify-content:center;padding:0}.nav-icon{flex-basis:28px;width:28px;height:28px}.modal-backdrop{align-items:end;padding:0}.modal-card{border-bottom:0;border-left:0;border-right:0;width:100%;max-height:88dvh}.modal-form,.modal-form.compact{grid-template-columns:1fr}.modal-actions,.smart-tx-form .span-2,.activity-picker{grid-column:1}.full-table-panel{overflow:auto}.table-toolbar{justify-content:flex-start}.module-sheet table{min-width:820px}.filter-bar:not(.quick-filter-bar),.module-filter{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;display:grid;overflow:visible}.filter-bar:not(.quick-filter-bar)>*,.module-filter>*{width:100%;min-width:0}.filter-bar:not(.quick-filter-bar)>input:first-child,.module-filter>input:first-child{grid-column:1/-1}.filter-reset,.add-record{min-width:0!important}.filter-panel,.period-panel{border-bottom:0;border-left:0;border-right:0;width:100%;max-height:88dvh;overflow:auto}.advanced-filter-grid{grid-template-columns:1fr 1fr}.advanced-filter-actions{background:#10182a;position:sticky;bottom:0}.month-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width:560px){.quick-filter-bar{grid-template-columns:1fr!important}.quick-filter-bar .quick-search{grid-column:auto}.advanced-filter-grid{grid-template-columns:1fr}.advanced-filter-actions{flex-direction:column-reverse}.advanced-filter-actions button{width:100%}.period-quick{grid-template-columns:1fr 1fr}.month-grid{grid-template-columns:repeat(3,1fr)}.range-grid{grid-template-columns:1fr}.range-grid span{display:none}.activity-picker{grid-template-columns:1fr}.activity-picker button{height:46px}.smart-summary{flex-direction:column;align-items:flex-start;gap:2px}}@media (max-width:480px){.filter-bar:not(.quick-filter-bar),.module-filter{grid-template-columns:1fr}.filter-bar:not(.quick-filter-bar)>input:first-child,.module-filter>input:first-child{grid-column:auto}.analysis-sheet{grid-template-rows:auto minmax(0,1fr) auto}.sheet-statusbar{align-items:flex-start;gap:6px}.status-summary{gap:8px}}
.financial-system{height:100%;min-height:0;color:var(--text);background:#0c1322;grid-template-rows:auto auto minmax(0,1fr);display:grid}.finance-system-head{border-bottom:1px solid var(--border);background:#10182a;justify-content:space-between;align-items:center;gap:18px;padding:15px 18px 12px;display:flex}.finance-system-head h2{margin:2px 0 3px;font-size:18px}.finance-system-head p{color:var(--muted);margin:0;font-size:10px}.finance-system-head select{border:1px solid var(--border);min-width:135px;height:34px;color:var(--text);background:#111a2d;padding:0 9px}.eyebrow{text-transform:uppercase;letter-spacing:.09em;color:#84aef5;font-size:9px}.finance-tabs{border-bottom:1px solid var(--border);background:#0e1627;gap:3px;padding:6px 10px;display:flex;overflow:auto}.finance-tabs button{height:32px;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;padding:0 14px;font-size:11px}.finance-tabs button.active{color:var(--text);background:#18243a;border-color:#31405d}.finance-scroll{min-height:0;padding:14px;overflow:auto}.plan-command{border:1px solid var(--border);background:#10192b;grid-template-columns:220px 1fr;align-items:center;gap:16px;margin-bottom:12px;padding:13px 15px;display:grid}.plan-command div{gap:3px;display:grid}.plan-command span{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:9px}.plan-command strong{font-size:16px}.plan-command p{color:#bcc8da;margin:0;font-size:11px;line-height:1.5}.plan-command.good{border-left:3px solid #4bb98a}.plan-command.warning{border-left:3px solid #d5a344}.plan-command.critical{border-left:3px solid #d56363}.plan-command.waiting{border-left:3px solid #7184a3}.plan-kpis{grid-template-columns:repeat(6,minmax(145px,1fr));gap:8px;margin-bottom:12px;display:grid}.plan-kpis article{border:1px solid var(--border);background:#10182a;gap:4px;min-width:0;padding:12px;display:grid}.plan-kpis span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:9px}.plan-kpis strong{font-size:17px}.plan-kpis small{color:#8495b0;font-size:9px}.plan-grid{grid-template-columns:1.2fr .8fr;gap:10px;margin-bottom:10px;display:grid}.plan-card{border:1px solid var(--border);-webkit-overflow-scrolling:touch;background:#10182a;min-width:0;margin-bottom:10px;padding:14px;overflow-x:auto}.plan-card h3,.section-actions h3{margin:0 0 12px;font-size:12px}.plan-card p{color:#b5c1d4;font-size:11px;line-height:1.55}.allocation-row{gap:5px;margin-bottom:14px;display:grid}.allocation-row>div:first-child{justify-content:space-between;gap:10px;font-size:10px;display:flex}.allocation-row span{color:var(--muted)}.allocation-track,.fund-progress{background:#0a1020;border:1px solid #24304a;height:7px;overflow:hidden}.allocation-track i,.fund-progress i{background:#6ea8fe;height:100%;display:block}.allocation-row small{color:var(--muted);font-size:9px}.expense-rank{border-bottom:1px solid #202b41;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;font-size:10px;display:flex}.expense-rank span{display:grid}.expense-rank small{color:var(--muted);margin-top:2px;font-size:8px}.plan-alerts{border:1px solid var(--border);background:#10182a;padding:13px}.plan-alerts h3{margin:0 0 8px;font-size:12px}.rule{border-top:1px solid #202b41;grid-template-columns:125px 1fr;gap:10px;padding:7px 0;font-size:10px;display:grid}.rule span{color:var(--muted)}.rule.good b{color:#65c99c}.rule.bad b{color:#e0a85a}.plan-table{border-collapse:collapse;width:100%}.plan-table th{color:#8ea0bc;text-align:left;white-space:nowrap;border-bottom:1px solid #33415d;padding:8px 10px 8px 0;font-size:9px}.plan-table td{white-space:nowrap;border-top:1px solid #202b41;padding:9px 10px 9px 0;font-size:10px}.plan-table td:last-child{text-align:right;padding-right:0;font-weight:700}.plan-table .plan-total td{color:#d8e3f3;border-top:1px solid #42506b;font-weight:800}.muted-copy,.empty-note{color:var(--muted)!important}.imperative-list{gap:7px;display:grid}.imperative-list p{background:#0d1525;border-left:2px solid #3f5f91;margin:0;padding:7px 9px}.pace-bar{grid-template-columns:160px 55px 1fr;align-items:center;gap:10px;margin:10px 0;font-size:10px;display:grid}.pace-bar>b{text-align:right}.pace-bar>i{background:#0a1020;border:1px solid #26334d;height:8px;overflow:hidden}.pace-bar em{background:#6ea8fe;height:100%;display:block}.section-actions{justify-content:space-between;align-items:end;gap:12px;margin-bottom:12px;display:flex}.section-actions h3{margin:0 0 3px;font-size:14px}.section-actions p{color:var(--muted);margin:0;font-size:10px}.fund-grid,.profile-grid,.commitment-grid,.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px;display:grid}.fund-card,.profile-card,.commitment-card,.guide-card,.empty-card{border:1px solid var(--border);background:#10182a;padding:13px}.fund-card,.profile-card,.commitment-card{cursor:pointer}.fund-card:hover,.profile-card:hover,.commitment-card:hover{border-color:#46628d}.fund-card>span,.profile-card>span,.commitment-card>span,.guide-card>span{letter-spacing:.07em;color:#82a9e8;text-transform:uppercase;font-size:8px}.fund-card h3,.profile-card h3,.commitment-card h3,.guide-card h3{margin:5px 0 10px;font-size:13px}.fund-card>strong,.commitment-card>strong{font-size:18px}.commitment-card{gap:3px;display:grid}.commitment-card small{color:var(--muted);font-size:9px}.guide-card p{color:#b5c1d4;margin:0;font-size:10px;line-height:1.55}.fund-card>strong small{color:var(--muted);font-size:10px;font-weight:400}.fund-card p{color:var(--muted);margin:6px 0;font-size:9px}.fund-card>small{color:#8d9db5;font-size:8px}.profile-card.active{background:#13213a;border-color:#567bb1}.profile-card>div{grid-template-columns:repeat(3,auto);align-items:end;gap:4px 10px;display:grid}.profile-card>div b{font-size:20px}.profile-card>small{color:var(--muted);font-size:8px}.empty-card{color:var(--muted);cursor:default;font-size:10px;line-height:1.5}.guide-page{width:100%;max-width:980px;margin:0 auto}.guide-page header{border-bottom:1px solid var(--border);padding:14px 2px 18px}.guide-page header h2{margin:3px 0 6px}.guide-page header p,.guide-page section p{color:#b5c1d4;font-size:11px;line-height:1.65}.guide-page section{border-bottom:1px solid #202b41;padding:16px 2px}.guide-page section h3{margin:0 0 6px;font-size:13px}.finance-plan-modal{width:min(680px,100%)}.plan-equation{background:#0d1525;border:1px solid #24304a;flex-wrap:wrap;align-items:center;gap:9px;margin-bottom:10px;padding:10px 11px;font-size:11px;display:flex}.plan-equation span{color:var(--muted)}.plan-equation strong{color:#8cb7ff}.metric-line{border-top:1px solid #202b41;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;font-size:10px;display:flex}.metric-line:first-of-type{border-top:0}.action-row{gap:7px;display:flex}.action-row button{border:1px solid var(--border);height:30px;color:var(--text);cursor:pointer;background:#18243a;padding:0 10px}@media (max-width:1200px){.plan-kpis{grid-template-columns:repeat(3,1fr)}}@media (max-width:900px){.plan-grid{grid-template-columns:1fr}.fund-grid,.profile-grid,.commitment-grid,.guide-grid{grid-template-columns:repeat(2,1fr)}.plan-command{grid-template-columns:1fr}.finance-system-head{align-items:flex-start}.finance-system-head select{min-width:120px}.plan-table{min-width:680px}.plan-table th,.plan-table td{padding-right:14px}.plan-table th:first-child,.plan-table td:first-child{z-index:1;white-space:normal;background:#10182a;min-width:150px;max-width:220px;position:sticky;left:0}.plan-table th:first-child{z-index:2}}@media (max-width:650px){.finance-system-head{grid-template-columns:1fr;display:grid}.finance-system-head select{width:100%}.plan-kpis{grid-template-columns:repeat(2,1fr)}.fund-grid,.profile-grid,.commitment-grid,.guide-grid{grid-template-columns:1fr}.section-actions{flex-direction:column;align-items:stretch}.section-actions button{width:100%}.action-row{grid-template-columns:1fr 1fr;display:grid}.pace-bar{grid-template-columns:1fr auto}.pace-bar>i{grid-column:1/-1}.finance-scroll{padding:8px}.guide-page{padding:0 2px}.plan-equation{flex-direction:column;align-items:flex-start}.plan-equation span{display:none}.plan-card{padding:10px}.plan-table{min-width:640px}.plan-table th,.plan-table td{font-size:9px}.plan-table th:first-child,.plan-table td:first-child{min-width:135px;max-width:180px}}@media (max-width:420px){.plan-kpis{grid-template-columns:1fr}.finance-tabs button{padding:0 10px}.action-row{grid-template-columns:1fr}.plan-table{min-width:600px}}
.smart-tx-modal{width:min(980px,100vw - 24px);max-height:min(92vh,900px);overflow:auto}.allocation-editor{background:#0d1525;border:1px solid #2a3853;gap:10px;padding:12px;display:grid}.allocation-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.allocation-head>div{gap:3px;display:grid}.allocation-head small{color:#8d9bb1;font-size:10px}.allocation-head button,.tax-tools button{color:#dce7f7;cursor:pointer;background:#15223a;border:1px solid #3a4c6e;height:32px;padding:0 10px}.allocation-body{gap:8px;display:grid}.tax-tools{background:#111b2e;border:1px solid #263550;grid-template-columns:minmax(210px,1fr) 160px auto auto;align-items:end;gap:8px;padding:9px;display:grid}.tax-tools label{color:#9cacbf;gap:4px;font-size:10px;display:grid}.tax-tools label small{color:#7888a1;font-size:9px}.tax-tools input{height:32px}.tax-summary{color:#91a0b5;gap:2px;font-size:9px;display:grid}.tax-summary b{color:#e7eef8;font-size:15px}.allocation-column-head,.tax-allocation-row{grid-template-columns:110px minmax(125px,1fr) minmax(145px,1.1fr) 90px 100px 32px;align-items:center;gap:6px;display:grid}.allocation-column-head{color:#8292a9;padding:0 2px;font-size:9px}.tax-allocation-row input,.tax-allocation-row select{min-width:0;height:32px}.tax-allocation-row output{text-align:right;font-size:11px}.tax-allocation-row button{color:#e7b4c0;cursor:pointer;background:#24171d;border:1px solid #49333b;height:32px}.movement-cell small{display:block}@media (max-width:820px){.tax-tools{grid-template-columns:1fr 1fr}.allocation-column-head{display:none}.tax-allocation-row{grid-template-columns:100px 1fr 1fr 32px}.tax-allocation-row output{grid-column:auto}.tax-allocation-row output:first-of-type:before{content:"Impuesto ";color:#8292a9}.tax-allocation-row output:nth-of-type(2):before{content:"Total ";color:#8292a9}}@media (max-width:600px){.allocation-head{flex-direction:column;align-items:flex-start}.allocation-head button{width:100%}.tax-tools{grid-template-columns:1fr}.tax-allocation-row{grid-template-columns:1fr 1fr}.tax-allocation-row select:nth-of-type(2){grid-column:1/3}.tax-allocation-row output{text-align:left}.tax-allocation-row button{grid-column:2}}
.category-table-wrap{overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;padding:0;overflow-x:auto}.category-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:640px}.category-table th,.category-table td{vertical-align:middle;text-overflow:ellipsis;overflow:hidden}.category-table th:first-child,.category-table td:first-child{text-align:center;width:56px}.category-table th:nth-child(2),.category-table td:nth-child(2){width:auto;min-width:190px}.category-table th:nth-child(3),.category-table td:nth-child(3){width:110px}.category-table th:nth-child(4),.category-table td:nth-child(4){width:120px}.category-table th:nth-child(5),.category-table td:nth-child(5){width:90px}.category-main-row td{font-weight:500}.category-sub-row td{opacity:.82}.category-sub-row td:nth-child(2){padding-left:26px}.table-mini-action{border:1px solid var(--line,#d9dee7);cursor:pointer;white-space:nowrap;background:0 0;border-radius:6px;height:28px;padding:0 9px}.category-manager-modal small{opacity:.7;font-size:11px}.modal-form label small{margin-top:4px;display:block}.plan-table td:nth-child(2){max-width:220px}@media (max-width:800px){.category-table{min-width:600px}.category-table th,.category-table td{padding-left:7px;padding-right:7px}.category-table th:first-child,.category-table td:first-child{width:48px}.category-table th:nth-child(3),.category-table td:nth-child(3){width:96px}.category-table th:nth-child(4),.category-table td:nth-child(4){width:108px}.category-table th:nth-child(5),.category-table td:nth-child(5){width:82px}}
.analysis-sheet table{table-layout:fixed;min-width:760px!important}.analysis-sheet th,.analysis-sheet td{text-overflow:ellipsis;min-width:0;overflow:hidden}.analysis-sheet th:first-child,.analysis-sheet td:first-child{width:108px}.analysis-sheet th:nth-child(2),.analysis-sheet td:nth-child(2){width:auto}.analysis-sheet th:nth-child(3),.analysis-sheet td:nth-child(3){width:150px}.analysis-sheet th:nth-child(4),.analysis-sheet td:nth-child(4){width:145px}.analysis-sheet th:nth-child(5),.analysis-sheet td:nth-child(5){width:84px}.analysis-sheet th:nth-child(6),.analysis-sheet td:nth-child(6){width:112px}.module-sheet table,.full-table-panel table{table-layout:fixed;min-width:780px}.module-sheet th,.module-sheet td,.full-table-panel th,.full-table-panel td{text-overflow:ellipsis;min-width:0;overflow:hidden}.module-sheet th.num,.module-sheet td.num,.full-table-panel th.num,.full-table-panel td.num{white-space:nowrap;width:112px}.module-sheet .date-cell,.full-table-panel .date-cell{width:108px}.account-table{min-width:980px!important}.account-table th,.account-table td{width:auto}.account-table th:first-child,.account-table td:first-child{width:210px}.account-table th:last-child,.account-table td:last-child{width:112px}.plan-table{width:100%;table-layout:fixed!important;min-width:0!important}.plan-table th,.plan-table td{text-overflow:ellipsis;overflow:hidden;min-width:0!important;max-width:none!important}.plan-table th:first-child,.plan-table td:first-child,.plan-table th:nth-child(2),.plan-table td:nth-child(2){white-space:normal;width:24%}.plan-table th:nth-child(n+3),.plan-table td:nth-child(n+3){white-space:nowrap;width:13%}:is(.plan-table:has(th:nth-child(6)) th:first-child,.plan-table:has(th:nth-child(6)) td:first-child){width:21%}:is(.plan-table:has(th:nth-child(6)) th:nth-child(2),.plan-table:has(th:nth-child(6)) td:nth-child(2)){width:25%}:is(.plan-table:has(th:nth-child(6)) th:nth-child(n+3),.plan-table:has(th:nth-child(6)) td:nth-child(n+3)){width:13.5%}.category-table{table-layout:fixed!important;min-width:560px!important}.category-table th:first-child,.category-table td:first-child{width:52px!important}.category-table th:nth-child(2),.category-table td:nth-child(2){width:auto!important;min-width:0!important}.category-table th:nth-child(3),.category-table td:nth-child(3){width:104px!important}.category-table th:nth-child(4),.category-table td:nth-child(4){width:112px!important}.category-table th:nth-child(5),.category-table td:nth-child(5){width:82px!important}@media (max-width:900px){.analysis-sheet table{min-width:700px!important}.analysis-sheet th:first-child,.analysis-sheet td:first-child{width:96px}.analysis-sheet th:nth-child(3),.analysis-sheet td:nth-child(3){width:132px}.analysis-sheet th:nth-child(4),.analysis-sheet td:nth-child(4){width:130px}.analysis-sheet th:nth-child(5),.analysis-sheet td:nth-child(5){width:76px}.analysis-sheet th:nth-child(6),.analysis-sheet td:nth-child(6){width:102px}.module-sheet table,.full-table-panel table{min-width:720px}.account-table{min-width:900px!important}.plan-table{min-width:560px!important}.plan-table th:first-child,.plan-table td:first-child{min-width:0!important;max-width:none!important;position:static!important}.category-table{min-width:520px!important}}@media (max-width:560px){.analysis-sheet table{min-width:650px!important}.module-sheet table,.full-table-panel table{min-width:680px}.account-table{min-width:860px!important}.plan-table{min-width:520px!important}.category-table{min-width:500px!important}th,td{padding-left:6px;padding-right:6px}}
