:root{--navy:#172e58;--navy2:#0e2148;--blue:#2563eb;--blue2:#dbeafe;--background:#f5f7fc;--surface:#fff;--text:#192943;--muted:#78859b;--border:#e8edf5;--green:#149568;--greenbg:#e8f8f0;--red:#dd4658;--redbg:#fff0f2;--orange:#e58936;--orangebg:#fff5e9;--shadow:0 3px 20px rgba(27,55,105,.035);--radius:15px}*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--text);font-size:14px}body{margin:0;background:var(--background)}a{color:var(--blue);text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}.hidden,.print-only{display:none!important}.muted{color:var(--muted)}.green,.text-green{color:var(--green)!important}.red,.text-red{color:var(--red)!important}.text-orange{color:var(--orange)!important}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.nowrap{white-space:nowrap}.inline-form{display:inline-flex;margin:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;background:var(--navy2);color:#d0d9e9;flex-shrink:0;padding:29px 15px 14px;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;color:#fff;padding:0 9px 27px;border-bottom:1px solid rgba(255,255,255,.12)}.brand img{width:45px;height:45px;object-fit:cover;border-radius:50%;border:2px solid #fff}.brand span{display:flex;flex-direction:column}.brand strong{font-size:16px;line-height:1.15;letter-spacing:-.3px}.brand small{color:#aec6ef;font-size:11px;letter-spacing:.5px;margin-top:5px}.sidebar-label{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#8197ba;padding:25px 14px 11px}.menu{display:flex;flex-direction:column;gap:4px}.nav-item{border-radius:9px;padding:12px 13px;color:#bccce6;display:flex;align-items:center;gap:13px;font-size:13px;font-weight:550;transition:.2s}.nav-item:hover{background:#203961;color:#fff}.nav-item.current{background:#2858a7;color:#fff;box-shadow:inset 3px 0 0 #7fb5ff}.nav-icon{font-family:Arial;font-size:18px;display:inline-block;width:18px;text-align:center;color:#a9c1e6}.nav-item.current .nav-icon{color:#fff}.sidebar-bottom{margin-top:auto;padding:18px 9px 3px;border-top:1px solid rgba(255,255,255,.12)}.sidebar-profile{display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:#dce8fb;display:grid;place-items:center;color:#234f9c;font-weight:800;font-size:15px;flex-shrink:0}.avatar-sm{width:31px;height:31px;font-size:12px}.sidebar-profile span{display:flex;flex-direction:column;gap:4px}.sidebar-profile strong{color:#fff;font-size:12px}.sidebar-profile small{color:#a6b8d5;font-size:11px}.logout-link{display:block;color:#aec8ef;font-size:12px;margin:18px 0 4px}.app-main{margin-left:244px;width:calc(100% - 244px);min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 33px;position:sticky;top:0;z-index:8}.crumb{font-size:12px;font-weight:600;color:#70809a}.crumb span{color:#213554}.top-right{display:flex;align-items:center;gap:11px}.top-user{font-size:12px;font-weight:700}.shared-badge{background:#eef8f4;color:#2c8c6a;border-radius:30px;font-size:11px;padding:8px 12px;margin-right:10px}.mobile-menu{display:none;background:none;border:0;font-size:21px;color:var(--navy)}.content{padding:32px;max-width:1660px;margin:0 auto}.page-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin:0 0 22px}.page-heading h1{font-size:27px;line-height:1.3;letter-spacing:-.7px;margin:5px 0}.page-heading p{margin:0;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#4c75bb}.hello{font-size:22px}.month-picker,.report-actions{display:flex;gap:8px;align-items:center}.month-picker input{width:152px!important}.btn{border:1px solid transparent;border-radius:9px;padding:12px 16px;display:inline-flex;justify-content:center;align-items:center;gap:6px;text-align:center;white-space:nowrap;font-weight:700;font-size:12px;transition:.15s;min-height:39px}.btn:hover{filter:brightness(.95);transform:translateY(-1px)}.btn.primary{background:#2265db;color:#fff}.btn.dark{background:#173667;color:#fff}.btn.neutral{background:#fff;border-color:#dfe6f2;color:#315176}.btn.danger-outline{background:#fff;color:#c0394d;border-color:#f0c1c8}.btn.small{padding:8px 12px;min-height:33px}.btn.wide{width:100%}.link-more{font-weight:700;font-size:12px;color:#2866d2;white-space:nowrap}.quick-actions{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:21px}.stat-card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);padding:21px 19px;min-height:124px;position:relative;overflow:hidden}.stat-label{font-size:11px;color:#7a8ba4;font-weight:650;margin-bottom:12px}.stat-number{font-size:23px;font-weight:850;letter-spacing:-.7px;color:#1b2d4a;white-space:nowrap}.stat-footer{font-size:11px;color:#a0abbd;margin-top:11px}.primary-stat{background:linear-gradient(135deg,#174795,#3279ed);color:#fff;border-color:#2f6fd6}.primary-stat .stat-label,.primary-stat .stat-footer{color:#d5e6ff}.primary-stat .stat-number{color:#fff}.stat-icon{position:absolute;right:16px;top:19px;font-size:19px;opacity:.3}.soft-green,.soft-red,.soft-orange{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;opacity:1;font-weight:800}.soft-green{background:var(--greenbg);color:var(--green)}.soft-red{background:var(--redbg);color:var(--red)}.soft-orange{background:var(--orangebg);color:var(--orange)}.dashboard-grid,.report-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:16px;margin-bottom:18px}.panel{border:1px solid var(--border);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;min-width:0;margin-bottom:18px}.dashboard-grid .panel,.report-grid .panel{margin-bottom:0}.panel h2{font-size:15px;letter-spacing:-.2px;color:#1c3254;margin:0 0 6px;font-weight:800}.panel p{line-height:1.45}.panel-header{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:20px}.panel-header h2{margin:0 0 5px}.panel-header p{margin:0;color:#97a4b7;font-size:11px}.subtle-text{font-size:11px;color:var(--muted)}.balance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.balance-item{padding:15px 12px;border:1px solid var(--border);border-radius:10px;display:flex;gap:10px;align-items:center;min-width:0}.account-symbol{height:36px;width:36px;border-radius:9px;display:grid;place-items:center;font-size:20px;background:#e7efff;color:#2f6bcf;flex-shrink:0}.account-symbol.cash{background:#e3f7eb;color:#169763}.account-symbol.ewallet{background:#f0e6ff;color:#855bca}.balance-name{font-size:11px;color:#7d8ba3;font-weight:700;margin-bottom:5px}.balance-value{font-size:14px;color:#1a2e50;font-weight:850;white-space:nowrap}.allocation-chart{display:flex;align-items:center;justify-content:center;gap:25px;padding:7px 0}.donut{width:176px;min-width:176px;height:176px;background:conic-gradient(#3678e6 calc(var(--pct)*1%),#f4a254 0);border-radius:50%;display:grid;place-items:center;position:relative}.donut:after{content:'';width:122px;height:122px;background:white;border-radius:50%;position:absolute}.donut>div{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:5px}.donut b{font-size:16px;letter-spacing:-.4px;white-space:nowrap}.donut small{font-size:10px;color:var(--muted)}.legend-col{display:flex;flex-direction:column;gap:15px;min-width:180px;flex:1}.legend-col>div:not(.net-note){display:grid;grid-template-columns:8px 1fr;align-items:center;column-gap:10px;font-size:11px}.legend-col>div strong{grid-column:2;margin-top:5px;font-size:14px}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;vertical-align:middle}.legend-dot.blue{background:#3376e8}.legend-dot.orange{background:#f3a050}.mini-legend{display:flex;gap:12px;font-size:11px;color:var(--muted)}.mini-legend .legend-dot{margin-right:4px}.net-note{font-size:11px;color:#8291a6;border-top:1px solid var(--border);padding-top:12px}.net-note b{display:block;color:#233e67;font-size:15px;margin-top:5px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{padding:12px 12px;background:#f6f8fd;color:#8493a8;text-align:left;font-size:10px;font-weight:800;white-space:nowrap}.data-table th:first-child{border-radius:8px 0 0 8px}.data-table th:last-child{border-radius:0 8px 8px 0}.data-table td{padding:13px 12px;border-bottom:1px solid #eff1f6;vertical-align:middle;color:#50627e}.data-table tr:last-child td{border-bottom:0}.cell-primary{font-weight:750;color:#2a3f60}.cell-sub{font-size:10px;color:#9cabc0;margin-top:4px}.ellipsis{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill{display:inline-block;padding:5px 8px;border-radius:6px;font-size:10px;font-weight:750;white-space:nowrap}.pill.rca{background:#e9f1ff;color:#3674d7}.pill.family{background:#fff0e3;color:#cd7d2c}.pill.muted-pill{background:#eef1f7;color:#6a7c95}.pill.paid{background:#e8f8ef;color:var(--green)}.pill.pending{background:#fff2df;color:#b47b27}.empty-table,.empty-state{text-align:center!important;color:#9faabc;padding:35px!important}.actions-cell{white-space:nowrap}.small-link{font-size:11px;font-weight:800}.link-danger{color:var(--red);background:none;border:0;padding:0;font-size:11px}.app-footer{border-top:1px solid var(--border);display:flex;gap:7px;color:#8f9eb5;font-size:11px;margin:27px 0 0;padding:22px 0}.app-footer span{color:#afbbca}.alert{padding:14px 16px;margin-bottom:20px;border-radius:9px;font-weight:650;font-size:12px}.alert.error{background:#ffeff0;border:1px solid #ffcbd0;color:#a73547}.alert.success{background:#eaf8f0;border:1px solid #caefd9;color:#27815a}label{display:block;color:#445675;font-size:12px;font-weight:750}label>input,label>select,label>textarea{margin-top:8px}input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;background:#fff;border:1px solid #dbe3ef;border-radius:8px;padding:11px 12px;outline:none;min-height:40px;color:#283b57;transition:.15s}input:focus,select:focus,textarea:focus{border-color:#79a3ef!important;box-shadow:0 0 0 3px #e6efff}textarea{min-height:80px;resize:vertical}.stack-form{display:flex;flex-direction:column;gap:17px;margin-top:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-hint{color:#97a3b7;font-size:11px;margin:0;line-height:1.5}.split-layout{display:grid;grid-template-columns:480px minmax(0,1fr);gap:17px;align-items:start}.split-layout>.panel{margin-bottom:0}.form-panel{padding:23px}.segmented{display:flex;gap:5px;background:#f0f4fa;padding:5px;border-radius:10px}.segmented label{flex:1;position:relative;margin:0}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented span{display:block;text-align:center;padding:12px 9px;border-radius:7px;font-size:11px;color:#7889a2;cursor:pointer;white-space:nowrap}.segmented input:checked+span{background:#2166de;color:white;box-shadow:0 2px 6px #1c4ea126}.category-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:5px}.category-chip{border:1px solid #e1e7f2;border-radius:9px;padding:11px 7px;min-height:63px;background:#f9fbff;color:#536a87;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;line-height:1.15;transition:.15s}.category-chip span{font-size:19px}.category-chip:hover{background:#eef4ff}.category-chip.selected{border:1.5px solid #2775ed;background:#eaf2ff;color:#2059be;box-shadow:inset 0 0 0 1px #b7d2ff;font-weight:800}.transaction-tiles{display:flex;flex-direction:column;gap:2px}.transaction-tile{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #eef1f5;color:var(--text)}.transaction-tile:last-child{border-bottom:0}.transaction-tile:hover{background:#fafcff}.transaction-bullet{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;font-size:18px;flex-shrink:0}.income-bullet{background:var(--greenbg);color:var(--green)}.expense-bullet{background:var(--redbg);color:var(--red)}.transaction-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.transaction-body b{font-size:12px;color:#263d62}.transaction-body small{color:#9cabc1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transaction-tile>.num{font-size:12px}.delete-form{margin-top:10px}.total-chip{background:#e7f0ff;border-radius:12px;padding:10px 17px;font-size:11px;color:#56749c}.total-chip strong{font-size:17px;color:#2054b3;display:block;margin-top:4px}.account-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.account-card{background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);padding:17px;min-width:0}.account-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:15px}.account-kind{font-size:9px;color:#94a4bc;letter-spacing:.8px;font-weight:850}.account-card>strong{font-size:13px}.account-amount{font-size:20px;letter-spacing:-.5px;font-weight:850;color:#1d3155;margin:9px 0 17px;white-space:nowrap}.account-foot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #eef1f6;padding-top:12px;font-size:11px;color:#9aa9bd}.account-foot>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-foot a{font-weight:800}.triple-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.triple-layout>.panel{margin:0}.tabs{display:flex;gap:8px;border-bottom:1px solid #e4eaf3;margin:0 0 20px}.tab{display:inline-block;padding:11px 20px;color:#7889a2;font-weight:700;font-size:12px;border-bottom:3px solid transparent}.tab.active{color:#2268db;border-color:#2268db}.categories-layout{grid-template-columns:minmax(0,1.35fr) minmax(0,.7fr)}.cat-manage-list{margin-top:20px}.cat-manage-row{border-bottom:1px solid #edf1f6;display:flex;gap:12px;align-items:center;padding:13px 1px}.cat-big-icon{width:38px;height:38px;border-radius:9px;background:#edf3ff;display:grid;place-items:center;font-size:18px}.cat-manage-name{display:flex;flex-direction:column;gap:5px;flex:1}.cat-manage-name b{font-size:12px}.cat-manage-name small{font-size:10px;color:#a1adc0}.cat-actions{display:flex;gap:3px}.icon-btn{width:26px;height:26px;display:grid;place-items:center;border:1px solid #e3eaf5;border-radius:6px;background:#fff;color:#54749f}.icon-btn.dimmed{color:#b1b9c6}.inline-edit{background:#f5f8fe;border-radius:8px;padding:10px}.edit-cat-form{display:grid;grid-template-columns:58px 1fr auto;gap:8px;align-items:center}.info-note{margin-top:23px;padding:14px 16px;background:#f1f6ff;border-left:3px solid #8db7fb;border-radius:6px;color:#667f9f;line-height:1.55;font-size:11px}.loan-layout{grid-template-columns:minmax(0,1.4fr) 400px}.loan-list{display:flex;flex-direction:column;gap:13px}.loan-card{border:1px solid #e9eef6;border-radius:12px;padding:16px}.loan-card-head{display:flex;align-items:start;justify-content:space-between;margin-bottom:15px}.loan-card-head div{display:flex;flex-direction:column;gap:5px}.loan-card-head b{font-size:14px}.loan-card-head small{font-size:11px;color:#98a7b9}.loan-amount{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.loan-amount>div{display:flex;flex-direction:column;gap:4px}.loan-amount span{font-size:10px;color:#94a3ba}.loan-amount strong{font-size:13px}.progress{height:6px;background:#eaf1fc;border-radius:30px;overflow:hidden;margin:15px 0 0}.progress span{display:block;background:#4e8aee;height:100%;border-radius:30px}.loan-note{font-size:11px;color:#778aa4}.pay-details{margin-top:12px;border-top:1px solid #e9edf4;padding-top:12px}.pay-details summary{cursor:pointer;color:#2b67c6;font-weight:800;font-size:11px}.pay-details .stack-form{background:#f8faff;padding:13px;border-radius:8px}.checkbox-row{display:flex;align-items:center;gap:10px;cursor:pointer}.checkbox-row input{width:16px;height:16px;margin:0}.checkbox-row span{font-weight:500}.report-actions{flex-wrap:wrap}.report-disclaimer{font-size:11px;color:#99a7ba;margin:-7px 0 18px}.report-grid{grid-template-columns:1.25fr 1fr}.bar-chart{height:214px;display:grid;grid-template-columns:repeat(6,1fr);gap:20px;align-items:end;padding:20px 15px 0;border-bottom:1px solid #e8edf5;margin:12px 0 18px}.bar-month{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:9px;min-width:0}.bar-pair{height:170px;width:100%;display:flex;justify-content:center;align-items:flex-end;gap:7px}.bar{border-radius:4px 4px 0 0;width:24px;min-height:2px;transition:.2s}.blue-bar{background:#397be9}.orange-bar{background:#f3a052}.bar-month span{font-size:10px;white-space:nowrap;color:#8a9ab2}.allocation-large{padding:35px 0}.report-categories{display:flex;flex-direction:column;gap:18px;margin-top:20px}.cat-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#5d718e}.cat-line b{color:#304767;font-size:12px}.track{width:100%;height:6px;background:#edf2f9;border-radius:20px;overflow:hidden;margin-top:8px}.track span{display:block;height:100%;border-radius:20px}.track-blue{background:#4881e6}.track-orange{background:#f1a251}.people-list{display:flex;flex-direction:column}.person-row{display:flex;gap:11px;align-items:center;border-bottom:1px solid #eef1f7;padding:14px 0}.person-row div{display:flex;flex-direction:column;gap:3px}.person-row small{font-size:11px;color:#8c9bb0}.auth-body{background:#f5f8fe}.login-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-hero{background:linear-gradient(145deg,#0d2857,#1f4d92 60%,#2b6bc1);color:#fff;padding:33px 55px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-hero:before,.login-hero:after{content:'';position:absolute;border:1px solid rgba(255,255,255,.14);border-radius:50%;height:470px;width:470px;right:-160px;top:100px}.login-hero:after{width:290px;height:290px;right:-20px;top:180px}.brand-inverse{font-weight:750;font-size:13px;letter-spacing:1.2px;position:relative;z-index:1}.brand-glyph{font-size:30px;margin-right:10px;vertical-align:middle}.login-hero-content{position:relative;z-index:1;max-width:530px;margin:auto}.hero-image-wrap{width:160px;height:160px;border-radius:50%;background:#fff;padding:5px;box-shadow:0 15px 40px #001b4940;margin-bottom:28px}.hero-image-wrap img{width:100%;height:100%;object-fit:cover;border-radius:50%}.login-hero h1{font-size:48px;line-height:1.15;letter-spacing:-1.8px;margin:0 0 20px}.login-hero h1 em{font-style:normal;color:#9ed9fa}.login-hero-content>p{font-size:15px;line-height:1.8;color:#c9ddf9}.hero-features{display:flex;flex-wrap:wrap;gap:15px;margin-top:28px;font-size:11px;color:#d7e7ff}.login-foot{font-size:11px;color:#9cbde7}.login-form-wrap{display:grid;place-items:center;padding:40px}.login-form{width:100%;max-width:390px}.login-eyebrow{font-weight:800;color:#4776c5;letter-spacing:1.8px;font-size:10px}.login-form h2{font-size:32px;letter-spacing:-1.2px;margin:9px 0 12px}.login-form>p{font-size:13px;line-height:1.7;margin-bottom:31px}.login-form form{display:flex;flex-direction:column;gap:20px}.login-form form>.btn{margin-top:9px;justify-content:space-between;padding:14px 20px}.login-helper{font-size:11px;color:#899bb3;margin-top:32px}.dot{display:inline-block;width:6px;height:6px;background:#23b97b;border-radius:50%;margin-right:5px;vertical-align:middle}.install-card{width:min(640px,calc(100vw - 30px));margin:5vh auto;background:#fff;border:1px solid var(--border);padding:32px;border-radius:18px;box-shadow:var(--shadow)}.install-logo{display:block;width:96px;height:96px;border-radius:50%;margin:auto}.install-card h1{text-align:center;font-size:23px}.install-card>p{line-height:1.6;text-align:center}.install-card .form-grid{margin:25px 0}.overlay{display:none}
@media(max-width:1450px){.stat-number{font-size:20px}.allocation-chart{gap:15px}.donut{width:150px;height:150px;min-width:150px}.donut:after{width:105px;height:105px}.account-cards{grid-template-columns:repeat(2,1fr)}.triple-layout{grid-template-columns:1fr 1fr}.triple-layout>.panel:last-child{grid-column:1/-1}}
@media(max-width:1150px){.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.report-grid{grid-template-columns:1fr}.split-layout,.categories-layout,.loan-layout{grid-template-columns:1fr}.triple-layout{grid-template-columns:1fr 1fr}.topbar{padding:0 22px}.content{padding:25px}.sidebar{width:215px}.app-main{margin-left:215px;width:calc(100% - 215px)}}
@media(max-width:800px){.sidebar{width:255px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.overlay.open{display:block;position:fixed;inset:0;background:#172b4b88;z-index:15}.app-main{margin:0;width:100%}.mobile-menu{display:block}.topbar{padding:0 16px;height:60px}.crumb{font-size:11px}.shared-badge,.top-user{display:none}.content{padding:18px}.page-heading{align-items:flex-start;flex-wrap:wrap}.page-heading h1{font-size:23px}.account-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.login-layout{grid-template-columns:1fr}.login-hero{display:none}.login-form-wrap{min-height:100vh}.form-panel{padding:19px}}
@media(max-width:540px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:14px 12px;min-height:100px}.stat-number{font-size:16px;white-space:normal;overflow-wrap:anywhere}.stat-footer{font-size:9px}.stat-label{font-size:10px}.stat-icon{display:none}.panel{padding:16px}.balance-grid{grid-template-columns:1fr}.quick-actions .btn{flex:1 0 40%;font-size:11px;padding:11px 8px}.allocation-chart{flex-direction:column}.donut{width:160px;height:160px}.donut:after{width:112px;height:112px}.legend-col{width:100%}.form-grid{grid-template-columns:1fr}.category-chips{grid-template-columns:repeat(3,minmax(0,1fr))}.category-chip{font-size:10px}.account-cards{grid-template-columns:1fr}.triple-layout{grid-template-columns:1fr}.triple-layout>.panel:last-child{grid-column:auto}.report-actions{width:100%}.report-actions .month-picker{width:100%}.tabs{overflow-x:auto;white-space:nowrap}.tab{font-size:11px;padding:12px}.data-table{min-width:650px}.bar-chart{gap:5px;padding:15px 0 0}.bar{width:14px}.bar-pair{gap:3px}.bar-month span{font-size:9px}.edit-cat-form{grid-template-columns:40px 1fr}.edit-cat-form>.btn{grid-column:1/-1}.loan-amount strong{font-size:11px}.loan-amount{gap:5px}.month-picker input{width:155px!important}.app-footer{flex-wrap:wrap}}
@media print{body{background:#fff!important;font-family:Arial,sans-serif}.sidebar,.topbar,.no-print,.quick-actions,.app-footer,.btn,.actions-cell,.report-actions{display:none!important}.app-main{margin:0;width:100%}.content{padding:0;max-width:none}.print-only{display:block!important}.report-title{text-align:center;margin-bottom:25px}.report-title h1{font-size:18px}.panel,.stat-card{box-shadow:none;break-inside:avoid}.report-grid{grid-template-columns:1fr 1fr}.data-table{font-size:9px}.report-stats .stat-number{font-size:15px}.report-disclaimer{font-size:9px}@page{size:A4;margin:15mm}}
/* V2: kategori terpisah dan rekening tabungan */
[hidden], .category-chip[hidden], .savings-target[hidden]{display:none!important}
.savings-target{border:1px solid #bfd6f7;background:#f4f8ff;border-radius:12px;padding:14px;margin:8px 0 15px}
.scope-tabs{border-bottom:0;margin-top:-10px}
.savings-panel{border-style:dashed}
.savings-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.savings-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:12px 14px;border:1px solid #e6ecf5;border-radius:10px;flex-wrap:wrap}
.savings-row>span:first-child{font-weight:700}
.savings-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}
.savings-summary>div{background:#f6f9fe;border:1px solid #edf2fb;border-radius:10px;padding:15px;display:flex;flex-direction:column;gap:8px}
.savings-summary span{font-size:12px;color:#647797}
.savings-summary strong{font-size:18px;color:#173667}
@media(max-width:720px){.savings-summary{grid-template-columns:1fr}}


/* V3: gabungan pinjaman per nama */
.loan-party-card .loan-card-head{gap:12px}
.loan-party-card .loan-card-head b{font-size:15px}
.loan-history{margin-top:12px;padding-top:12px;border-top:1px solid #e9edf4}
.loan-history>summary{font-size:11px;color:#36669a;font-weight:800;cursor:pointer;list-style-position:inside}
.loan-history-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.loan-history-row{border:1px solid #e9eef6;border-radius:9px;background:#fafcff;padding:12px}
.loan-history-header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#486083}
.loan-history-header span{color:#8193aa}
.loan-history-values{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:9px;font-size:10px;color:#7b8da6}
.loan-history-values span{display:flex;flex-direction:column;gap:3px}
.loan-history-values b{color:#334762;font-size:11px}
.loan-history-row .loan-note{margin-bottom:0}
[hidden]{display:none!important}
@media(max-width:540px){.loan-party-card .loan-amount strong{overflow-wrap:anywhere}.loan-history-values{gap:10px}}

.account-types-panel{margin-top:18px}.account-types-panel .split-layout{align-items:start}.account-types-panel h3{margin:4px 0 8px}.account-types-panel .cat-manage-row{gap:10px}.account-types-panel .cat-actions{gap:4px;flex-shrink:0}.account-types-panel .cat-manage-name{min-width:90px}.account-types-panel .inline-edit{margin-bottom:10px}.account-types-panel .form-hint{line-height:1.55}.btn[hidden]{display:none!important}

/* V5 — nilai tabungan terlihat, tetap di luar saldo operasional */
.savings-panel .savings-row{gap:12px;align-items:center}
.savings-amount{display:flex;flex-direction:column;align-items:flex-end;min-width:170px;margin-left:auto;gap:3px;text-align:right}
.savings-amount strong{font-size:1.04rem;color:#163a71;font-variant-numeric:tabular-nums}
.savings-amount small{font-size:.74rem;color:#667b96}
.savings-transfer-grid{margin:18px 0}
.savings-transfer-grid .panel{min-width:0}
@media(max-width:650px){.savings-amount{min-width:100px}.savings-panel .savings-row{flex-wrap:wrap}.savings-panel .savings-row>a{margin-left:auto}}


/* Dashboard: saldo tabungan & aset tampil terpisah dari uang operasional. */
.dashboard-savings-panel{margin-top:0;margin-bottom:18px}
.dashboard-savings-panel .panel-header{align-items:center;margin-bottom:16px}
.dashboard-savings-panel .panel-header p{line-height:1.55}
.dashboard-savings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:12px}
.dashboard-savings-item{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #e5ebf5;border-radius:12px;background:#fafcff;min-width:0;color:inherit;transition:border-color .15s,background .15s}
.dashboard-savings-item:hover{border-color:#bed4f4;background:#f5f9ff}
.dashboard-savings-item .account-symbol{flex-shrink:0}
.dashboard-savings-info{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.dashboard-savings-name{font-size:12px;font-weight:800;color:#1e3d65;overflow-wrap:anywhere}
.dashboard-savings-value{font-size:19px;letter-spacing:-.4px;line-height:1.25;color:#133a72;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-savings-info small{font-size:10px;color:#72849e;line-height:1.4}
.dashboard-savings-footer{display:flex;justify-content:space-between;gap:10px 20px;align-items:baseline;flex-wrap:wrap;border-top:1px solid #e9eef6;padding-top:14px;margin-top:15px;font-size:12px;color:#6a7d97}
.dashboard-savings-footer strong{color:#173667;font-size:17px;margin-left:8px;font-variant-numeric:tabular-nums}
.dashboard-savings-footer small{font-size:10px;line-height:1.5;color:#8c9ab0}
.dashboard-savings-empty{padding:18px;background:#fafcff;border:1px dashed #dce6f4;border-radius:10px;color:#70819b;font-size:12px}
@media(max-width:540px){.dashboard-savings-panel .panel-header{flex-wrap:wrap;gap:10px}.dashboard-savings-grid{grid-template-columns:1fr}.dashboard-savings-item{padding:13px}.dashboard-savings-value{font-size:18px}}


/* V6 - Ringkasan saldo rekening, kas dan piutang usaha */
.oper-recap{margin-bottom:18px}
.oper-recap .panel-header{align-items:center;flex-wrap:wrap;gap:10px}
.oper-recap .panel-header p{line-height:1.55}
.oper-recap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin-top:12px}
.oper-recap-item{min-width:0;background:#fafcff;border:1px solid #e1eaf6;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px;color:#192943;transition:border-color .2s}
.oper-recap-item:hover{border-color:#93b6ee}
.oper-recap-symbol{font-size:22px;line-height:1;color:#266ad7}
.oper-recap-name{font-size:12px;font-weight:700;color:#73829a}
.oper-recap-item strong{font-size:20px;color:#173667;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.oper-recap-foot{display:flex;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;border-top:1px solid #e8edf6;margin-top:16px;padding-top:14px;color:#5c6f8b;font-size:12px}
.oper-recap-foot strong{color:#1c3b67}
@media(max-width:600px){.oper-recap-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.oper-recap-item{padding:13px}.oper-recap-item strong{font-size:16px}}
@media print{.oper-recap{break-inside:avoid}}


/* V7 — submenu formulir ringkas (desktop, tablet, Android, iPhone). */
.submenu-toolbar{margin-top:15px;margin-bottom:13px;padding:19px 22px}
.submenu-toolbar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:13px}
.submenu-toolbar-heading h2{margin:0;font-size:15px}
.submenu-toolbar-heading p{font-size:11px;color:#788ca8;margin:5px 0 0}
.submenu-buttons{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.submenu-button{background:#f7f9fd;border:1px solid #dfe7f2;border-radius:10px;padding:11px 15px;font-size:12px;font-weight:700;color:#375475;min-height:41px;transition:background .15s,border-color .15s,color .15s;max-width:100%;text-align:center}
.submenu-button:hover{background:#edf4ff;border-color:#b8cef1}
.submenu-button.active{background:#2366db;border-color:#2366db;color:white;box-shadow:0 3px 8px #2366db20}
.submenu-workspace:not([hidden]){padding-top:17px}
.submenu-workspace .submenu-pane{max-width:100%;margin:0}
.submenu-workspace .submenu-pane.form-panel,
.submenu-workspace .submenu-pane[data-submenu-id="edit"],
.submenu-workspace .submenu-pane[data-submenu-id="transfer"],
.submenu-workspace .submenu-pane[data-submenu-id="mutasi"],
.submenu-workspace .submenu-pane[data-submenu-id="repay"],
.submenu-workspace .submenu-pane[data-submenu-id="adjust"]{max-width:830px}
.submenu-pane[hidden],.submenu-workspace[hidden]{display:none!important}
.submenu-pane{scroll-margin-top:95px}
.submenu-workspace .submenu-pane>h2{margin-bottom:15px}
.submenu-workspace .submenu-pane .panel-header{margin-bottom:16px}
@media(max-width:700px){.submenu-toolbar{padding:15px}.submenu-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.submenu-button{white-space:normal;line-height:1.35;padding:10px 8px;min-height:46px;font-size:11px}.submenu-workspace:not([hidden]){padding-top:12px}.submenu-workspace .submenu-pane{padding:16px}.submenu-toolbar-heading p{font-size:11px}}
@media(max-width:380px){.submenu-buttons{grid-template-columns:1fr 1fr}.submenu-button{font-size:10px}}
@media print{.submenu-toolbar{display:none!important}.submenu-pane[hidden]{display:none!important}}
