:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#20342c;background:#f6f8f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--accent:#28634b;--accent-ink:#fff;--ink:#20342c;--muted:#718078;--line:#e6ebe7;--surface:#fff;--canvas:#f6f8f5;--soft:#f0f4f0;--debt:#b44242;--debt-bg:#fff0ef;--credit:#23704e;--credit-bg:#eaf6ee;--clear:#64716a;--clear-bg:#eff2ef;--shadow:0 8px 28px rgba(33,63,48,.055)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--canvas);color:var(--ink);font-size:15px;line-height:1.48}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}img{max-width:100%}.icon{display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center;flex:0 0 auto}.icon svg{width:100%;height:100%}:focus-visible{outline:3px solid #92c8a9;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted,.field-hint{color:var(--muted)}small{font-size:12px}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);min-width:0}.brand-mark{width:42px;height:42px;border-radius:14px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;overflow:hidden}.brand-mark>.icon{width:22px;height:22px}.brand-mark img{width:100%;height:100%;object-fit:cover}.brand-name{font-size:16px;font-weight:750;line-height:1.18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-name small{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:11px;font-weight:680;font-size:14px;transition:transform .14s,background .14s,border-color .14s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 18%,transparent)}.button.secondary{background:#fff;border-color:var(--line);color:#3b4d43}.button.danger{background:var(--debt);color:#fff}.button.danger-outline{background:#fff;color:var(--debt);border-color:#f1d8d6}.button.compact{min-height:36px;padding:7px 11px;font-size:12px}.button.full-width{width:100%}.owner-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;padding:25px 17px 16px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:8}.sidebar>.brand{padding:0 9px 30px}.nav-caption{font-size:10px;font-weight:750;letter-spacing:.12em;color:#9aa69f;padding:0 13px;margin:8px 0 9px}.sidebar nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;min-height:43px;padding:10px 12px;color:#68776e;border-radius:10px;font-size:13px;font-weight:590;transition:background .15s,color .15s}.nav-link>.icon{width:18px;height:18px}.nav-link:hover{background:#f4f7f4;color:var(--ink)}.nav-link.active{background:color-mix(in srgb,var(--accent) 9%,white);color:var(--accent);font-weight:700}.sidebar-bottom{margin-top:auto}.customer-entry-link,.settings-link{display:flex;align-items:center;gap:10px;padding:11px 12px;margin:4px 0;border-radius:10px;color:#68776e;font-size:12px}.customer-entry-link{background:#f5f7f5;color:#47574d}.customer-entry-link .icon:last-child{margin-left:auto;width:15px}.settings-link:hover,.customer-entry-link:hover{background:var(--soft)}.owner-profile{display:flex;align-items:center;gap:11px;border-top:1px solid var(--line);padding:16px 7px 0;margin-top:12px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eef3ed;color:#49634f;font-size:12px;font-weight:750;flex:0 0 auto}.owner-profile>span:last-child{min-width:0}.owner-profile strong,.owner-profile small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-profile strong{font-size:12px}.owner-profile small{font-size:10px;color:var(--muted);margin-top:2px}.owner-main{margin-left:250px;min-height:100vh}.topbar{height:68px;padding:0 34px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:17px;position:sticky;top:0;z-index:5;backdrop-filter:blur(10px)}.breadcrumb{font-size:12px;color:#77847d}.breadcrumb b{color:#b1b9b4;padding:0 6px}.mobile-brand,.mobile-customer{display:none}.logout-form{margin-left:auto}.topbar-exit{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#65736a;padding:8px 4px;font-size:12px}.topbar-exit .icon{width:17px}.owner-content{max-width:1320px;margin:0 auto;padding:34px 36px 34px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 25px}.eyebrow{margin:0 0 7px;color:#72857a;font-size:10px;font-weight:760;letter-spacing:.105em}.page-heading h1{font-size:27px;line-height:1.2;letter-spacing:-.035em;margin:0;font-weight:750}.subheading{font-size:13px;color:var(--muted);margin:8px 0 0}.desktop-action{min-height:43px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.metric-card,.panel{background:var(--surface);border:1px solid #e9eeea;border-radius:15px;box-shadow:var(--shadow)}.metric-card{padding:18px 19px;min-height:152px}.metric-due{background:linear-gradient(142deg,#fff,#fffafa)}.metric-payment{background:linear-gradient(142deg,#fff,#fbfefb)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#6c7a71;font-size:12px;font-weight:590}.metric-icon,.panel-icon{width:34px;height:34px;border-radius:11px;background:#f0f4f0;display:grid;place-items:center;color:#617166}.metric-icon .icon,.panel-icon .icon{width:17px;height:17px}.debt-icon{background:var(--debt-bg);color:var(--debt)}.credit-icon{background:var(--credit-bg);color:var(--credit)}.metric-value{display:block;font-size:27px;letter-spacing:-.045em;line-height:1.15;margin:13px 0 5px;font-weight:760;font-variant-numeric:tabular-nums}.metric-card>small{color:#829087;font-size:11px}.metric-foot{display:flex;align-items:center;gap:7px;border-top:1px solid #edf0ed;margin-top:10px;padding-top:9px;color:#728078;font-size:10px}.status-dot{width:7px;height:7px;border-radius:50%}.debt-dot{background:var(--debt)}.credit-dot{background:var(--credit)}.metric-link{display:flex;align-items:center;gap:5px;color:var(--accent);font-size:11px;font-weight:650;margin-top:10px}.metric-link .icon{width:14px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:16px;margin-bottom:17px}.panel{padding:20px;margin-bottom:17px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.panel-heading h2{font-size:15px;letter-spacing:-.01em;margin:0;font-weight:720}.panel-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}.chart-legend{display:flex;gap:14px;font-size:10px;color:#738077}.chart-legend span,.balance-split span{display:inline-flex;align-items:center;gap:6px}.legend-paid,.legend-debt{display:inline-block;width:8px;height:8px;border-radius:3px}.legend-paid{background:#74a982}.legend-debt{background:#dd8b86}.bar-chart{height:160px;display:flex;align-items:flex-end;justify-content:space-around;gap:13px;padding:14px 16px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 39px,#f0f3f0 40px)}.bar-week{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px}.bar-pair{height:calc(100% - 17px);display:flex;align-items:flex-end;gap:5px}.bar{width:15px;min-height:3px;height:var(--height);border-radius:5px 5px 2px 2px}.bar.paid{background:#8bb898}.bar.debt{background:#e1a09a}.bar-week small{font-size:9px;color:#8a968e;white-space:nowrap}.chart-foot{display:grid;grid-template-columns:1fr auto 1fr auto;align-items:center;gap:10px;margin-top:13px;font-size:10px;color:#849087}.chart-foot strong{color:#34483b;font-size:11px}.balance-total{font-size:30px;font-weight:760;letter-spacing:-.04em;margin:15px 0 2px;font-variant-numeric:tabular-nums}.balance-panel>.muted{font-size:11px;margin:4px 0 16px}.balance-track{height:8px;border-radius:9px;background:#edf1ed;overflow:hidden}.track-due{display:block;height:100%;background:#77a983;border-radius:9px}.balance-split{display:flex;flex-direction:column;gap:9px;margin:16px 0;color:#758178;font-size:10px}.balance-split b{margin-left:auto;color:#3e5146;font-weight:650}.balance-split span{width:100%}.balance-split .legend-debt{background:#77a983}.balance-split .legend-paid{background:#b8c9bd}.text-link{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:670;color:var(--accent)}.text-link .icon{width:14px}.customer-list{display:grid}.customer-row{display:grid;grid-template-columns:39px minmax(100px,1fr) 122px 80px 115px 20px;gap:12px;align-items:center;padding:12px 3px;border-top:1px solid #eff2ef}.customer-row:first-child{border-top:0}.customer-row:hover .customer-main strong{color:var(--accent)}.customer-main{min-width:0}.customer-main strong,.customer-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-main strong{font-size:12px}.customer-main small{font-size:10px;color:#869188;margin-top:3px}.access-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:650;white-space:nowrap}.access-pill.open{color:#32704c;background:#edf7ef}.access-pill.closed{color:#78837c;background:#f1f3f1}.status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;width:max-content;max-width:100%;padding:5px 9px;border-radius:20px;font-size:10px;font-weight:680}.status.debt{color:var(--debt);background:var(--debt-bg)}.status.credit{color:var(--credit);background:var(--credit-bg)}.status.clear{color:var(--clear);background:var(--clear-bg)}.row-balance{font-size:12px;font-weight:740;font-variant-numeric:tabular-nums;white-space:nowrap}.row-balance.debt,.debt-text{color:var(--debt)}.row-balance.credit,.credit-text{color:var(--credit)}.row-balance.clear{color:var(--clear)}.row-arrow{color:#aab4ad}.row-arrow .icon{width:16px}.table-wrap{overflow:auto;margin:0 -5px}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.data-table th{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#88948c;font-weight:700;padding:10px 11px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px 11px;border-bottom:1px solid #f0f2f0;vertical-align:middle;color:#526157}.data-table tbody tr:last-child td{border-bottom:0}.data-table td>strong,.data-table td>a>strong{display:block;color:#34463b;font-size:11px}.data-table td small{display:block;margin-top:4px;color:#87928b;font-size:9px;max-width:210px;line-height:1.4}.data-table .status{font-size:9px}.align-right{text-align:right!important}.page-footer{display:flex;justify-content:space-between;gap:15px;color:#a0aaa3;font-size:9px;padding:3px 2px}.alert{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:11px;margin:0 0 18px;font-size:12px}.alert .icon{width:17px;height:17px}.alert.success{background:#edf7ef;color:#2f6a48;border:1px solid #d8ecdc}.alert.failure{background:#fff0ef;color:#a8403d;border:1px solid #f3d9d7}.demo-banner{display:flex;align-items:center;gap:12px;background:#fff8e7;border:1px solid #efe0b5;padding:12px 15px;border-radius:12px;margin-bottom:16px;color:#745d24}.demo-banner>.icon,.demo-banner>span .icon{width:20px}.demo-banner div{flex:1}.demo-banner strong{font-size:11px}.demo-banner p{font-size:10px;margin:3px 0 0;color:#877344}.demo-banner>a{font-size:10px;font-weight:700;text-decoration:underline}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.search-form{display:flex;align-items:center;gap:8px;flex:1;max-width:520px;position:relative}.search-form>span{position:absolute;left:12px;color:#9aa69f}.search-form>span .icon{width:17px}.search-form input{padding-left:39px!important}.search-form input,.entry-form input,.entry-form select,.inline-create input,.reason-form input,.auth-form input,.customer-phone-form input{width:100%;min-height:45px;padding:10px 12px;border:1px solid #dfe6e0;background:#fff;border-radius:9px;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}.search-form input:focus,.entry-form input:focus,.entry-form select:focus,.inline-create input:focus,.reason-form input:focus,.auth-form input:focus,.customer-phone-form input:focus{border-color:#84b197;box-shadow:0 0 0 3px #dcece1}.search-form input::placeholder,.entry-form input::placeholder{color:#a3ada6}.add-customer{position:relative}.add-customer>summary{list-style:none}.add-customer>summary::-webkit-details-marker{display:none}.inline-create{position:absolute;right:0;top:52px;z-index:4;width:min(360px,90vw);padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 15px 45px rgba(30,49,38,.15);display:grid;gap:12px}.inline-create label,.entry-form>label,.reason-form label,.auth-form label,.customer-phone-form label,.settings-panel label{display:grid;gap:6px;font-size:11px;font-weight:650;color:#4d5d52}.inline-create label small,.entry-form label>small:not(.field-hint),.settings-panel label>small:not(.field-hint){font-size:10px;font-weight:450;color:#89948c}.inline-create input{min-height:40px}.panel-foot{margin:14px 0 0;color:#929d95;font-size:10px}.empty-state{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px 18px}.empty-state>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#f0f4f0;color:#718078}.empty-state>span .icon{width:21px}.empty-state h2{font-size:13px;margin:12px 0 5px}.empty-state p{font-size:11px;max-width:360px;margin:0;color:#839087}.person-cell{display:flex;align-items:center;gap:10px}.person-cell>span:last-child{min-width:0}.person-cell strong,.person-cell small{display:block;white-space:nowrap}.person-cell strong{font-size:11px}.person-cell small{font-size:9px;color:#849087;margin-top:4px}.demo-tag{display:inline-block;margin-left:7px;padding:2px 5px;border-radius:4px;background:#fff3cf;color:#8c702e;font-size:8px;font-weight:750;vertical-align:1px}.access-form{margin:0}.access-toggle{display:inline-flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid transparent;border-radius:20px;background:#f2f4f2;color:#7a857d;font-size:9px;font-weight:650;white-space:nowrap}.access-toggle span{width:8px;height:8px;border-radius:50%;background:#aab3ac}.access-toggle.enabled{background:#edf7ef;color:#32704c}.access-toggle.enabled span{background:#50a268}.icon-button{display:inline-grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:#f4f6f4;color:#718078}.icon-button:hover{background:#eaf0ea;color:var(--accent)}.icon-button .icon{width:17px}.filter-tabs{display:flex;align-items:center;gap:4px;background:#f1f4f1;padding:4px;border-radius:9px}.filter-tabs a{padding:7px 11px;border-radius:7px;color:#748078;font-size:10px;font-weight:630;white-space:nowrap}.filter-tabs a.selected{background:#fff;color:#304237;box-shadow:0 1px 4px #243e3016}.export-link{font-size:11px}.void-row{opacity:.67}.table-person-link:hover{color:var(--accent)}.void-details,.archive-details{position:relative}.void-details>summary,.archive-details>summary{list-style:none;cursor:pointer}.void-details>summary::-webkit-details-marker,.archive-details>summary::-webkit-details-marker{display:none}.reason-form{position:absolute;right:0;top:40px;z-index:3;width:240px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #16271d20;padding:13px;display:grid;gap:10px}.reason-form input{min-height:38px;font-size:11px}.reason-form .button{width:100%}.entry-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);gap:17px;align-items:start}.entry-panel{padding:25px;max-width:720px}.entry-form{display:grid;gap:18px}.entry-form label{display:grid;gap:7px}.entry-form input,.entry-form select{min-height:48px}.entry-form input[type=color]{width:50px;height:40px;min-height:40px;padding:3px}.entry-form input[type=file]{font-size:11px;padding:10px}.entry-form select{appearance:auto}.field-hint{font-weight:450;font-size:10px;line-height:1.45}.type-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;border:0}.type-picker legend{font-size:11px;font-weight:650;color:#4d5d52;margin-bottom:8px}.type-option{display:flex!important;align-items:center;gap:10px;padding:12px;border:1px solid #e6ebe7;border-radius:10px;cursor:pointer}.type-option:has(input:checked){border-color:#8eb49b;background:#f6faf6}.type-option>input{width:16px;height:16px;min-height:0;accent-color:var(--accent)}.type-option b,.type-option small{display:flex;align-items:center;gap:6px}.type-option b{font-size:11px}.type-option b .icon{width:15px;height:15px}.type-option small{font-size:9px;color:#859188;margin-top:3px}.amount-input{display:flex;align-items:center;border:1px solid #dfe6e0;border-radius:10px;background:#fff;overflow:hidden}.amount-input:focus-within{border-color:#84b197;box-shadow:0 0 0 3px #dcece1}.amount-input>span{padding:0 0 0 15px;color:#819087;font-size:17px}.amount-input input{border:0;box-shadow:none!important;font-size:24px;font-weight:720;letter-spacing:-.03em;height:56px}.amount-shortcuts{display:flex;gap:7px;margin-top:8px}.amount-shortcuts button{border:1px solid #e2e9e3;background:#f8faf8;color:#66756b;border-radius:7px;padding:6px 10px;font-size:10px;font-weight:650}.amount-shortcuts button:hover{border-color:#a8c2af;color:var(--accent)}.entry-help{position:sticky;top:90px;padding:22px}.help-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eef5ef;color:#4a7958}.help-icon .icon{width:20px}.entry-help h2{font-size:14px;margin:14px 0 5px}.entry-help>p{font-size:11px;color:#78847c;line-height:1.6;margin:0}.help-divider{height:1px;background:var(--line);margin:17px 0}.help-line{display:flex;align-items:center;gap:10px;margin:10px 0}.help-line p{font-size:10px;color:#758178;margin:0}.inline-notice{padding:11px;background:#fff7e8;border-radius:8px;font-size:11px;color:#735f31}.inline-notice a{text-decoration:underline;font-weight:700}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;align-items:start}.settings-panel{padding:22px}.settings-panel .entry-form{gap:16px}.settings-panel .panel-heading{margin-bottom:20px}.color-setting{grid-template-columns:1fr 52px!important;align-items:center}.color-setting .field-hint{grid-column:1/-1}.current-logo{display:flex;align-items:center;gap:15px}.current-logo img{width:64px;height:64px;border:1px solid var(--line);border-radius:10px;object-fit:cover}.check-line{display:flex!important;align-items:center!important;grid-template-columns:auto 1fr;gap:7px!important}.check-line input{width:15px;height:15px;min-height:0;accent-color:var(--accent)}.team-list{display:grid}.team-member{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid var(--line)}.team-person{flex:1;min-width:90px}.team-person strong,.team-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-person strong{font-size:11px}.team-person small{font-size:9px;color:#89948c;margin-top:3px}.role-badge,.account-state{font-size:9px;color:#728078;background:#f0f3f0;border-radius:12px;padding:5px 8px;white-space:nowrap}.account-state{background:#edf7ef;color:#32704c}.detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}.setting-status{display:block;font-size:23px;margin:12px 0 4px}.customer-detail-panel{margin-top:5px}.customer-detail-panel .panel-heading{align-items:flex-start}.archive-details .reason-form{top:48px;width:280px}.void-row .row-balance{text-decoration:line-through}.setup-shell,.phone-login{min-height:100vh;padding:28px 18px 42px;display:flex;flex-direction:column;align-items:center;justify-content:center}.setup-brand{margin:0 auto 19px}.setup-card,.login-card{width:min(100%,480px);background:#fff;border:1px solid var(--line);border-radius:18px;padding:29px;box-shadow:0 14px 48px rgba(31,52,39,.08)}.setup-card>h1,.login-card>h1{font-size:25px;line-height:1.2;letter-spacing:-.035em;margin:4px 0 7px}.auth-help,.login-card>p:not(.eyebrow){font-size:12px;line-height:1.65;color:#78847c;margin:0 0 20px}.setup-card>.entry-form{gap:15px}.form-split{display:grid;grid-template-columns:.75fr 1.25fr;gap:12px;align-items:center}.seed-box{display:flex!important;align-items:flex-start;gap:9px;padding:10px;background:#f5f8f4;border-radius:10px}.seed-box>input{width:16px;height:16px;min-height:0;accent-color:var(--accent);margin-top:2px}.seed-box strong,.seed-box small{display:block}.seed-box strong{font-size:10px}.seed-box small{font-size:9px;line-height:1.45;color:#77847b;margin-top:3px}.setup-foot{font-size:10px;color:#89948c;margin:13px 0 0}.setup-foot code{font-size:10px}.split-login{min-height:100vh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(440px,1.1fr);background:#fff}.login-brand-side{background:linear-gradient(145deg,#214f3a,#317354 70%,#397959);color:#fff;display:flex;align-items:center;justify-content:center;padding:42px}.login-brand-inner{width:min(100%,500px);position:relative;min-height:570px;display:flex;flex-direction:column}.login-brand-side .brand{color:#fff}.login-brand-side .brand-mark{background:rgba(255,255,255,.16);color:#fff}.login-brand-side .brand-name small{color:#c1d8c9}.login-message{margin:auto 0;max-width:440px;padding:65px 0 155px}.login-message .eyebrow{color:#c4dfca}.login-message h1{font-size:40px;line-height:1.14;letter-spacing:-.045em;margin:10px 0 15px}.login-message>p:last-child{font-size:14px;line-height:1.7;color:#d3e4d7;max-width:390px}.login-illustration{position:absolute;right:6px;bottom:35px;width:260px;height:160px;border:1px solid #ffffff3b;border-radius:19px;background:#ffffff12;transform:rotate(-4deg);display:grid;place-items:center}.login-illustration>span{width:69px;height:69px;border-radius:19px;background:#ffffff22;display:grid;place-items:center}.login-illustration .icon{width:32px;height:32px}.login-illustration i,.login-illustration b,.login-illustration u{position:absolute;left:91px;width:95px;height:7px;background:#ffffff85;border-radius:8px}.login-illustration i{top:52px}.login-illustration b{top:70px;width:125px}.login-illustration u{top:88px;width:74px}.login-foot{position:absolute;bottom:0;left:0;color:#c8ddce;font-size:10px}.login-main{display:flex;align-items:center;justify-content:center;position:relative;padding:42px}.auth-card{width:min(100%,370px)}.auth-card>h2{font-size:27px;letter-spacing:-.035em;margin:4px 0 4px}.auth-card>.auth-help{margin-bottom:22px}.auth-form{display:grid;gap:15px}.auth-form label{font-size:11px}.auth-form input{min-height:48px}.auth-form .button{margin-top:4px}.customer-login-link{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:22px;padding:14px 0;border-top:1px solid var(--line);color:var(--accent);font-size:11px;font-weight:650}.customer-login-link .icon{width:15px}.login-copyright{position:absolute;bottom:25px;left:25px;right:25px;text-align:center;color:#9aa49d;font-size:9px}.phone-login{justify-content:center}.phone-login>.brand{margin:0 0 17px;width:min(100%,440px)}.login-card{width:min(100%,440px);padding:28px}.login-icon{width:43px;height:43px;border-radius:13px;background:#edf5ee;color:var(--accent);display:grid;place-items:center;margin-bottom:19px}.login-icon .icon{width:21px}.login-card>h1{font-size:26px}.login-card>p:not(.eyebrow){margin-bottom:17px}.customer-phone-form{display:grid;gap:12px}.customer-phone-form label{font-size:11px}.customer-phone-form input{font-size:16px;min-height:50px}.customer-phone-form .field-hint{font-size:10px}.login-note{display:flex;align-items:flex-start;gap:8px;border-radius:9px;padding:11px;background:#f3f6f3!important;color:#78847c!important;font-size:10px!important;margin:15px 0 0!important}.login-note .icon{width:15px;height:15px}.back-to-owner{margin-top:16px;color:#718078;font-size:11px}.customer-app{max-width:1050px;margin:0 auto;padding:0 32px 30px}.customer-topbar{height:73px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.customer-logout{margin:0}.customer-welcome{display:flex;align-items:center;justify-content:space-between;padding:27px 0 21px}.customer-welcome h1{font-size:24px;letter-spacing:-.035em;margin:0}.customer-welcome p:last-child{margin:5px 0 0;color:#7c8980;font-size:11px}.welcome-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#edf3ed;color:#57735e;font-weight:750}.customer-balance-card{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;min-height:145px;border-radius:16px;box-shadow:0 8px 25px rgba(40,55,44,.05)}.customer-balance-card.debt{background:linear-gradient(112deg,#fff4f2,#fffafa);border:1px solid #f3ddda}.customer-balance-card.credit{background:linear-gradient(112deg,#eef8f0,#fbfefb);border:1px solid #dceee0}.customer-balance-card.clear{background:linear-gradient(112deg,#f0f4f1,#fff);border:1px solid #e4eae5}.balance-card-copy{display:grid;gap:4px}.balance-label{font-size:12px;font-weight:680;color:#536358}.balance-amount{font-size:35px;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.customer-balance-card.debt .balance-amount{color:var(--debt)}.customer-balance-card.credit .balance-amount{color:var(--credit)}.customer-balance-card.clear .balance-amount{color:#53645a}.balance-description{font-size:10px;color:#7e8982}.balance-card-icon{width:48px;height:48px;border-radius:15px;background:#ffffffb8;display:grid;place-items:center;color:var(--debt)}.balance-card-icon .icon{width:22px;height:22px}.customer-balance-card.credit .balance-card-icon{color:var(--credit)}.customer-balance-card.clear .balance-card-icon{color:#63736a}.customer-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:14px 0}.customer-stats article{padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}.customer-stats article>span{display:flex;align-items:center;gap:7px;font-size:10px;color:#748178}.customer-stats article>span .icon{width:15px;height:15px}.customer-stats article>strong{display:block;font-size:17px;letter-spacing:-.02em;margin:8px 0 1px;font-variant-numeric:tabular-nums}.customer-stats article>small{font-size:9px;color:#919b94}.customer-content-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:14px}.customer-content-grid .panel{margin-bottom:14px;padding:19px}.customer-chart-panel .panel-heading,.customer-bank-panel .panel-heading{margin-bottom:8px}.balance-chart{position:relative;padding:12px 0 0 48px}.balance-chart svg{display:block;width:100%;height:146px;overflow:visible}.balance-chart svg line{stroke:#e9eeea;stroke-dasharray:3 4;stroke-width:1}.balance-chart svg polyline{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.balance-chart svg circle{fill:#fff;stroke:var(--accent);stroke-width:2}.chart-guides{position:absolute;left:0;top:18px;bottom:26px;display:flex;flex-direction:column;justify-content:space-between;color:#9aa49c;font-size:8px}.chart-dates{display:flex;justify-content:space-between;color:#929d95;font-size:8px;margin:2px 0 0}.chart-explainer{font-size:9px;line-height:1.5;color:#87928b;margin:10px 0 0}.bank-details{display:grid;gap:7px;padding:10px 0 4px}.bank-name{font-size:11px;color:#77847b}.bank-account-label{font-size:9px;color:#919b94;margin-top:4px}.bank-details>strong{font-size:12px}.iban-row{display:flex;align-items:center;justify-content:space-between;gap:6px}.iban-row>strong{font-size:12px;letter-spacing:.015em;word-break:break-word}.copy-iban{width:30px;height:30px}.copy-feedback{font-size:9px;color:var(--credit);min-height:13px}.bank-note{display:flex;align-items:flex-start;gap:7px;padding:10px;background:#f4f7f4;border-radius:8px;color:#748178;font-size:9px;line-height:1.5;margin-top:8px}.bank-note .icon{width:14px;height:14px}.bank-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:15px 10px}.bank-empty-icon{width:34px;height:34px;border-radius:11px;background:#f1f4f1;display:grid;place-items:center;color:#849087}.bank-empty-icon .icon{width:18px}.bank-empty strong{font-size:11px;margin-top:9px}.bank-empty p{font-size:9px;color:#89948c;margin:4px 0 0}.customer-activity-panel{padding:20px 21px}.customer-activity-panel .panel-heading{margin-bottom:6px}.customer-range{flex-shrink:0}.activity-list{display:grid}.activity-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 2px;border-top:1px solid #eff2ef}.activity-item:first-child{margin-top:4px}.activity-symbol{width:34px;height:34px;border-radius:10px;display:grid;place-items:center}.activity-symbol .icon{width:17px;height:17px}.activity-symbol.debt{background:var(--debt-bg);color:var(--debt)}.activity-symbol.credit{background:var(--credit-bg);color:var(--credit)}.activity-symbol.neutral{background:#f0f2f0;color:#7d8981}.activity-copy{min-width:0;display:grid;gap:3px}.activity-copy strong{font-size:11px}.activity-copy>span{font-size:10px;color:#6e7b72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-copy small{font-size:9px;color:#949e97}.activity-amount{text-align:right;display:grid;gap:3px}.activity-amount strong{font-size:11px;font-variant-numeric:tabular-nums}.activity-amount small{font-size:8px;color:#8a958d;white-space:nowrap}.neutral-text{color:#7d8981}.activity-void{opacity:.72}.activity-void .activity-copy strong{text-decoration:line-through}.customer-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 2px;color:#8d9890;font-size:9px}.customer-footer>span{display:inline-flex;align-items:center;gap:6px}.customer-footer .icon{width:14px;height:14px}.customer-footer a{color:var(--accent);font-weight:650}.bottom-nav{display:none}
@media(max-width:1180px){.sidebar{width:220px}.owner-main{margin-left:220px}.owner-content{padding:28px 23px}.metric-grid{gap:10px}.metric-card{padding:15px}.metric-value{font-size:24px}.customer-row{grid-template-columns:36px minmax(90px,1fr) 100px 65px 100px 18px;gap:8px}}
@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}.entry-layout{grid-template-columns:minmax(0,1.3fr) minmax(210px,.8fr)}.login-brand-side{padding:32px}.login-message h1{font-size:34px}.login-main{padding:32px}.customer-content-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){body{font-size:14px}.sidebar{display:none}.owner-main{margin-left:0;padding-bottom:67px}.topbar{height:58px;padding:0 16px;gap:10px}.breadcrumb{display:none}.mobile-brand{display:inline-flex;margin-right:auto;max-width:calc(100% - 100px)}.mobile-brand .brand-mark{width:34px;height:34px;border-radius:11px}.mobile-brand .brand-name{font-size:13px}.mobile-brand .brand-name small{font-size:9px}.mobile-customer{display:grid;place-items:center;color:#607168;width:34px;height:34px;background:#f2f5f2;border-radius:10px}.mobile-customer .icon{width:17px}.topbar-exit{font-size:0;padding:7px}.topbar-exit .icon{width:18px}.owner-content{padding:23px 15px 25px}.page-heading{align-items:flex-start;margin-bottom:18px}.page-heading h1{font-size:23px}.subheading{font-size:11px;max-width:450px}.desktop-action{display:none}.metric-grid{gap:9px;margin-bottom:12px}.metric-card{min-height:132px;padding:13px;border-radius:12px}.metric-top{font-size:10px;gap:5px}.metric-icon{width:29px;height:29px;border-radius:9px}.metric-value{font-size:22px;margin:12px 0 4px}.metric-card>small{font-size:9px}.metric-foot{font-size:9px}.dashboard-grid{grid-template-columns:1fr;gap:1px;margin-bottom:10px}.panel{padding:15px;border-radius:12px;margin-bottom:12px}.panel-heading{margin-bottom:13px}.panel-heading h2{font-size:13px}.panel-heading p{font-size:9px}.bar-chart{height:138px;padding-left:5px;padding-right:5px}.chart-foot{font-size:9px;gap:5px}.balance-total{font-size:25px;margin:8px 0 0}.balance-panel>.muted{margin:1px 0 11px}.balance-split{margin:11px 0}.customer-row{grid-template-columns:34px minmax(85px,1fr) 68px 95px 15px;gap:7px;padding:11px 0}.customer-row>.access-pill{display:none}.customer-main strong{font-size:10px}.customer-main small{font-size:9px}.customer-row>.status{font-size:8px;padding:4px 6px}.row-balance{font-size:10px}.page-footer{font-size:8px}.page-footer span:last-child{display:none}.toolbar{align-items:stretch;flex-wrap:wrap}.search-form{max-width:none;min-width:0}.search-form .button{padding:8px 10px;min-height:40px}.search-form input{min-height:40px}.add-customer{margin-left:auto}.add-customer>summary{min-height:40px;padding:8px 10px;font-size:11px}.table-wrap{margin:0 -8px}.data-table{min-width:650px}.data-table th{padding:9px 8px}.data-table td{padding:11px 8px}.panel-foot{font-size:9px}.entry-layout{grid-template-columns:1fr;gap:0}.entry-panel{padding:18px}.entry-help{position:static;display:grid;grid-template-columns:39px 1fr;column-gap:12px;padding:16px}.entry-help .help-icon{grid-row:span 2}.entry-help h2{margin:0;align-self:end}.entry-help>p{grid-column:2;margin-top:3px}.help-divider{grid-column:1/-1;margin:13px 0 7px}.help-line{grid-column:1/-1;margin:5px 0}.type-picker{gap:7px}.type-option{padding:10px 7px;gap:6px}.type-option b{font-size:9px}.type-option small{font-size:8px}.settings-grid{gap:0}.settings-panel{padding:17px}.team-member{gap:7px}.role-badge{display:none}.detail-metrics{grid-template-columns:1fr 1fr}.detail-metrics .metric-value{font-size:20px}.customer-detail-panel .panel-heading{flex-direction:column;align-items:flex-start}.archive-details{align-self:flex-end}.archive-details .reason-form{right:0;top:42px}.demo-banner{align-items:flex-start;padding:10px;gap:8px}.demo-banner p{max-width:270px}.demo-banner>a{white-space:nowrap}.bottom-nav{position:fixed;inset:auto 0 0;z-index:10;display:flex;justify-content:space-around;align-items:stretch;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e6ebe7;box-shadow:0 -7px 22px rgba(27,48,35,.055)}.bottom-nav .nav-link{flex:1;min-height:48px;padding:5px 3px;display:flex;flex-direction:column;justify-content:center;gap:3px;border-radius:8px;font-size:8px}.bottom-nav .nav-link>.icon{width:17px;height:17px}.split-login{grid-template-columns:1fr;background:#f7f9f6}.login-brand-side{display:none}.login-main{min-height:100vh;padding:26px 22px 62px}.auth-card{width:min(100%,390px);padding:23px 20px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.auth-card>h2{font-size:24px}.login-copyright{bottom:17px;left:18px;right:18px}.setup-shell{justify-content:flex-start;padding-top:26px}.setup-card{padding:22px 18px;border-radius:14px}.setup-card>h1{font-size:22px}.form-split{grid-template-columns:1fr}.setup-foot{max-width:380px;text-align:center}.phone-login{justify-content:flex-start;padding-top:36px}.login-card{padding:22px 18px;border-radius:14px}.login-card>h1{font-size:23px}.customer-app{padding:0 15px calc(18px + env(safe-area-inset-bottom))}.customer-topbar{height:61px}.customer-topbar .brand-mark{width:35px;height:35px;border-radius:11px}.customer-topbar .brand-name{font-size:13px}.customer-topbar .brand-name small{font-size:9px}.customer-logout .button{min-height:34px;padding:6px 9px;font-size:10px}.customer-welcome{padding:20px 0 15px}.customer-welcome h1{font-size:21px}.customer-welcome p:last-child{font-size:9px}.welcome-avatar{width:40px;height:40px;border-radius:13px}.customer-balance-card{min-height:128px;padding:19px;border-radius:13px}.balance-amount{font-size:30px}.balance-label{font-size:11px}.balance-description{font-size:9px;max-width:240px}.balance-card-icon{width:40px;height:40px}.customer-stats{gap:7px;margin:10px 0}.customer-stats article{padding:11px 9px;border-radius:10px}.customer-stats article>span{font-size:8px;gap:4px}.customer-stats article>span .icon{width:13px}.customer-stats article>strong{font-size:13px;margin:7px 0 0}.customer-stats article>small{font-size:8px}.customer-content-grid{grid-template-columns:1fr;gap:0}.customer-content-grid .panel{padding:15px;margin-bottom:10px}.customer-bank-panel .panel-heading{margin-bottom:5px}.customer-activity-panel{padding:15px 13px}.customer-activity-panel .panel-heading{align-items:flex-start;gap:8px}.customer-activity-panel .panel-heading h2{font-size:12px}.customer-activity-panel .panel-heading p{font-size:8px}.customer-range{padding:3px;gap:1px}.customer-range a{padding:6px 7px;font-size:8px}.activity-item{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:12px 0}.activity-symbol{width:30px;height:30px;border-radius:9px}.activity-copy strong{font-size:10px}.activity-copy>span{font-size:9px}.activity-copy small{font-size:8px}.activity-amount strong{font-size:9px}.activity-amount small{font-size:7px}.customer-footer{align-items:flex-start;flex-direction:column;gap:8px;font-size:8px}.customer-footer>span{align-items:flex-start}.customer-footer>span .icon{flex:0 0 auto}}
@media(max-width:380px){.owner-content{padding-left:11px;padding-right:11px}.metric-card{padding:11px}.metric-top{font-size:9px}.metric-value{font-size:19px}.customer-row{grid-template-columns:31px minmax(68px,1fr) 58px 83px 13px;gap:5px}.customer-row .avatar{width:30px;height:30px}.customer-row>.status{font-size:7px}.row-balance{font-size:9px}.customer-range a{padding:6px 5px}.activity-amount small{font-size:6px}.type-option{align-items:flex-start}.type-option>input{margin-top:2px}.type-option b{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.edit-customer-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:12px}.edit-customer-form label{display:grid;gap:6px;font-size:10px;font-weight:650;color:#526157}.edit-customer-form input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #dfe6e0;border-radius:9px;background:#fff;color:var(--ink)}.edit-customer-form input:focus{outline:3px solid #dcece1;border-color:#84b197}.customer-edit-panel{margin-top:16px}.customer-edit-panel .panel-heading{margin-bottom:13px}@media(max-width:700px){.edit-customer-form{grid-template-columns:1fr 1fr}.edit-customer-form label:nth-child(4){grid-column:1/-1}.edit-customer-form .button{grid-column:1/-1}}
.demo-login-list{display:grid;gap:5px;margin-top:14px;padding:12px;border:1px solid #efe3bf;background:#fffaf0;border-radius:9px;color:#746132}.demo-login-list>strong{font-size:10px}.demo-login-list>small{font-size:9px;color:#897a54}.demo-login-list>span{font-size:9px}.demo-login-list b{font-variant-numeric:tabular-nums;letter-spacing:.03em}
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 3px}.pager:has(a:only-child){justify-content:flex-end}.pager .button{font-size:10px}
.settings-shortcut{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:-12px 0 14px}.customer-access-form{margin-top:12px}.customer-access-form .button{width:100%;justify-content:center;min-height:38px}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}.row-actions details>summary{list-style:none}.row-actions details>summary::-webkit-details-marker{display:none}.edit-details[open]::before,.void-details[open]::before{content:"";position:fixed;inset:0;z-index:29;background:rgba(26,43,33,.26);backdrop-filter:blur(2px)}.edit-details[open] .edit-entry-form,.void-details[open] .reason-form{position:fixed;top:50%;left:50%;right:auto;z-index:30;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 28px));max-height:86dvh;overflow:auto;padding:19px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 18px 65px rgba(21,39,28,.24)}.edit-entry-form{display:grid;gap:11px}.edit-entry-form label{display:grid;gap:5px;font-size:10px;font-weight:650;color:#526157}.edit-entry-form input,.edit-entry-form select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #dfe6e0;border-radius:8px;background:#fff;color:var(--ink);font:inherit}.edit-entry-form input:focus,.edit-entry-form select:focus{outline:3px solid #dcece1;border-color:#84b197}.edit-entry-form .field-hint{margin:0;font-size:9px}.edit-form-actions{display:flex;justify-content:flex-end}.edit-form-actions .button{width:100%}.void-details[open] .reason-form{width:min(340px,calc(100vw - 28px))}@media(max-width:700px){.settings-shortcut{margin:-8px 0 13px}.row-actions{gap:4px}.row-actions .button.compact{padding:6px 7px;font-size:9px}.edit-details[open] .edit-entry-form,.void-details[open] .reason-form{max-height:82dvh;padding:15px}}

/* Desktop amount keypad for quick counter entry; hidden on phones where the system keypad is faster. */
.entry-amount-block{display:grid;grid-template-columns:minmax(0,1fr) 184px;gap:16px;align-items:start}
.entry-amount-field{min-width:0;display:grid;gap:7px}
.entry-amount-label{display:block!important;font-size:11px!important;font-weight:650!important;color:#4d5d52!important}
.amount-keypad{padding:11px;background:#f5f8f5;border:1px solid #e3eae4;border-radius:11px}
.amount-keypad-title{display:block;margin:0 0 8px;color:#77847b;font-size:9px;font-weight:650}
.amount-keypad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.amount-keypad-grid button,.amount-keypad-actions button{min-height:38px;border:1px solid #e0e7e1;border-radius:7px;background:#fff;color:#34443a;font-size:14px;font-weight:650;cursor:pointer;touch-action:manipulation}
.amount-keypad-grid button:hover,.amount-keypad-actions button:hover{border-color:#9fbaa7;background:#edf5ef;color:var(--accent)}
.amount-keypad-grid button:active,.amount-keypad-actions button:active{transform:translateY(1px);background:#e4efe7}
.amount-keypad-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:5px}
.amount-keypad-actions button{min-height:32px;color:#68776d;font-size:10px}
.amount-keypad-actions button:last-child{font-size:17px}
@media(max-width:850px){.entry-amount-block{grid-template-columns:minmax(0,1fr) 166px;gap:10px}.amount-keypad{padding:8px}.amount-keypad-grid,.amount-keypad-actions{gap:4px}.amount-keypad-grid button{min-height:35px}}
@media(max-width:700px){.entry-amount-block{grid-template-columns:1fr;gap:0}.amount-keypad{display:none}}

.chart-filter-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 5px}.chart-filter-row>span{font-size:9px;color:var(--muted);font-weight:650}.chart-range{flex-shrink:0}.chart-range a{padding:6px 9px;font-size:9px}
@media(max-width:380px){.chart-filter-row>span{font-size:8px}.chart-range a{padding:6px 7px;font-size:8px}}

@media(max-width:1020px){.entry-layout{grid-template-columns:1fr}.entry-panel{max-width:none}}

.entry-form>.customer-search-field{position:relative;z-index:5;display:grid;gap:7px;font-size:11px;font-weight:650;color:#4d5d52}
.entry-form .customer-search-field>label{display:block;margin:0;font-size:11px;font-weight:650;color:#4d5d52}
.customer-search-control{position:relative}
.customer-search-control input{width:100%}
.js .entry-customer-native{display:none!important}
.customer-suggestions{position:absolute;z-index:20;top:calc(100% + 5px);left:0;right:0;max-height:280px;overflow-y:auto;padding:5px;background:#fff;border:1px solid #dfe7e0;border-radius:10px;box-shadow:0 12px 28px rgba(30,48,36,.15)}
.customer-suggestions[hidden]{display:none}
.customer-suggestion{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 11px;border-radius:7px;cursor:pointer}
.customer-suggestion:hover,.customer-suggestion[aria-selected=true]{background:#eff5f0}
.customer-suggestion strong{font-size:11px;font-weight:650;color:#304237}
.customer-suggestion span{font-size:10px;font-weight:450;color:#7e8a81;white-space:nowrap}
.customer-suggestion-empty{padding:12px 10px;font-size:10px;font-weight:450;color:#7e8a81}
@media(max-width:700px){.customer-suggestions{max-height:240px}.customer-suggestion{min-height:48px;padding:11px 10px}}

.balance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 2px}
.balance-summary>div{display:grid;gap:3px;min-width:0;padding:9px 11px;border:1px solid #e7ece8;border-radius:9px;background:#fbfcfb}
.balance-summary span{font-size:9px;font-weight:550;color:#7d8981}
.balance-summary strong{font-size:12px;line-height:1.3}
.balance-chart{padding-left:82px}
.chart-guides{width:76px;font-size:8px;line-height:1.25}
.chart-guides span{max-width:76px;overflow-wrap:anywhere}
.chart-dates{font-size:9px}
.customer-detail-chart{margin:0 0 16px}
.customer-detail-chart .panel-heading{margin-bottom:8px}
.detail-activity-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.detail-activity-filter>span{font-size:10px;font-weight:650;color:var(--muted)}
.customer-detail-range{flex-shrink:0}
@media(max-width:700px){.balance-chart{padding-left:72px}.chart-guides{width:66px}.chart-guides span{max-width:66px}.chart-dates{font-size:8px}.balance-summary>div{padding:8px}.balance-summary strong{font-size:10px}.detail-activity-filter{align-items:flex-start;flex-direction:column}.detail-activity-filter .filter-tabs{max-width:100%;overflow-x:auto}.customer-activity-panel .panel-heading{flex-wrap:wrap}.customer-range{margin-left:auto}}

/* Clear balance history: endpoint totals, a labeled zero line and sign-colored segments. */
.balance-summary>div{padding:12px 14px;background:#fff}
.balance-summary span{font-size:10px;color:#66756c}
.balance-summary strong{font-size:14px;line-height:1.35}
.balance-legend{display:flex;flex-wrap:wrap;gap:9px 18px;margin:11px 0 3px;color:#526158;font-size:10px;font-weight:600}
.balance-legend>span{display:inline-flex;align-items:center;gap:6px}
.balance-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}
.balance-legend .legend-debt{background:var(--debt)}
.balance-legend .legend-paid{background:var(--credit)}
.balance-chart{padding-left:0!important;margin-top:4px}
.balance-chart svg{height:188px}
.balance-chart svg line.chart-grid{stroke:#e5ebe6;stroke-width:1;stroke-dasharray:3 5}
.balance-chart svg line.balance-zero-line{stroke:#88958d;stroke-width:1.5;stroke-dasharray:5 4}
.balance-chart svg text.balance-zero-label{fill:#526158;font-size:8px;font-weight:700}
.balance-chart svg line.balance-segment{stroke-width:4;stroke-linecap:round}
.balance-chart svg line.balance-segment.debt{stroke:var(--debt)}
.balance-chart svg line.balance-segment.credit{stroke:var(--credit)}
.balance-chart svg line.balance-segment.clear{stroke:#87938b}
.balance-chart svg circle.balance-point{fill:#fff;stroke-width:3}
.balance-chart svg circle.balance-point.debt{stroke:var(--debt)}
.balance-chart svg circle.balance-point.credit{stroke:var(--credit)}
.balance-chart svg circle.balance-point.clear{stroke:#87938b}
.chart-dates{gap:2px;font-size:10px;color:#58685f}
.chart-dates span{flex:1;text-align:center;white-space:nowrap}
.quick-customers{display:grid;gap:8px}
.quick-customers-heading{display:grid;gap:2px}
.quick-customers-heading strong{font-size:11px;font-weight:700;color:#34463b}
.quick-customers-heading span,.quick-customers-empty{font-size:9px;color:#7c8981;font-weight:450}
.quick-customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.quick-customer{display:grid;align-content:start;gap:3px;min-width:0;min-height:82px;padding:10px 11px;border:1px solid #e2e9e3;border-radius:9px;background:#fff;text-align:left;transition:background .15s,border-color .15s,box-shadow .15s}
.quick-customer:hover,.quick-customer[aria-pressed=true]{border-color:#9ab5a2;background:#f4f8f5;box-shadow:0 2px 8px rgba(33,63,48,.06)}
.quick-customer>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700;color:#304237}
.quick-customer-phone,.quick-customer-count{font-size:9px;font-weight:450;color:#78857d}
.quick-customer>small{font-size:9px;font-weight:650;overflow-wrap:anywhere}
.quick-customers-empty{margin:0;padding:9px 10px;border:1px dashed #dce5dd;border-radius:8px}
@media(max-width:700px){.balance-summary>div{padding:9px}.balance-summary span{font-size:9px}.balance-summary strong{font-size:11px}.balance-legend{font-size:9px;gap:7px 12px}.balance-chart svg{height:164px}.chart-dates{font-size:8px}.quick-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-customer{padding:9px;min-height:78px}.quick-customer>strong{font-size:10px}.quick-customer>small{font-size:8px}}
@media(max-width:380px){.chart-dates{font-size:7px}.quick-customer-grid{gap:6px}}

@media(max-width:700px){.chart-dates{font-size:7.5px}}

.entry-selected-customer{display:inline-flex;width:max-content;max-width:100%;padding:4px 7px;border-radius:6px;background:#edf5ef;color:#466151;font-size:9px;font-weight:600}.entry-selected-customer[hidden]{display:none!important}

/* Responsive balance timeline rendered with the locally hosted Chart.js bundle. */
.balance-chart{position:relative;width:100%;height:248px;margin:12px 0 0;padding:0!important;min-width:0}
.balance-chart-canvas{display:block;width:100%;height:100%}
.weekly-chart{position:relative;width:100%;height:246px;min-width:0;margin:4px 0 0}
.weekly-chart-canvas{display:block;width:100%;height:100%}
.chart-explainer{font-size:11px;line-height:1.5;color:#647168;margin:12px 0 0}
.chart-load-error{margin:10px 0;padding:10px 12px;border-radius:8px;background:#fff5ed;color:#80522d;font-size:12px}
@media(max-width:700px){.balance-chart{height:224px}.weekly-chart{height:258px}.chart-explainer{font-size:10px}}
.pager{flex-wrap:wrap}.pager-info{color:var(--muted,#667);font-size:12px}.pager-pages{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.pager-num,.pager-current{min-width:32px;height:32px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none}
.pager-num{color:inherit;border:1px solid rgba(0,0,0,.14)}.pager-current{background:var(--accent,#28634b);color:#fff}.pager-gap{color:#889}
@media(max-width:560px){.pager{justify-content:center}.pager-info{width:100%;text-align:center}}
