*{box-sizing:border-box}[hidden]{display:none!important}:root{--navy:#112d48;--ink:#22384e;--muted:#7b8997;--line:#e4e9ed;--green:#278374;--rust:#b06b48}body{margin:0;background:#f5f7f8;color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid transparent;border-radius:7px;padding:10px 16px;background:var(--navy);color:#fff;font-weight:600}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #48a194}.secondary{background:white;border-color:var(--line);color:var(--ink)}.ghost,.linkbtn{background:transparent;color:inherit}.linkbtn{padding:0;text-align:left;font-weight:600}.linkbtn:hover{text-decoration:underline}.income{background:#e5f2ec;color:#24725c}.expense{background:#f6ebe5;color:var(--rust)}.danger{color:#a84943;background:#fbefed}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--line);padding:27px 18px;display:flex;flex-direction:column;z-index:2}.brand{display:block;width:100%;max-width:188px;height:auto;aspect-ratio:2048 / 684;margin:0 auto;border-radius:0;flex-shrink:0}.brand img{display:block;width:100%;height:100%;max-width:100%;margin:0;object-fit:contain}.workspace-label,.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.5px;color:var(--muted)}.workspace-label{margin:34px 14px 12px}nav{display:flex;flex-direction:column;gap:5px}nav button{background:none;text-align:left;color:#748291;font-weight:500;display:flex;align-items:center;gap:13px;padding:12px 15px}nav button span{font-size:20px;line-height:1;width:22px;text-align:center;color:#8fa0af}nav button.active{background:#edf3f6;color:var(--navy);font-weight:650}nav button.active span{color:var(--navy)}.sidebar-bottom{margin:auto 12px 0;color:#8b98a5;font-size:11px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#3b9a7f;margin-right:7px}.workspace{margin-left:224px}header{display:flex;justify-content:space-between;align-items:center;padding:25px 36px;background:#fff;border-bottom:1px solid var(--line)}h1{font-size:26px;font-weight:650;letter-spacing:-.8px;margin:4px 0 0}h2{font-size:17px;margin:0;font-weight:650}h3{font-size:14px;font-weight:600;margin:0}p{margin:0 0 15px}.account{display:flex;align-items:center;gap:10px;color:#7b8997;font-size:12px}main{max-width:1600px;margin:auto;padding:26px 36px}.page-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.page-actions>p{margin:0;color:var(--muted);font-size:12px}.quick-actions{display:flex;gap:8px;flex-shrink:0}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;margin:18px 0;overflow:hidden}.panel.pad{padding:22px}.panelhead{display:flex;align-items:center;justify-content:space-between;padding:19px 22px;border-bottom:1px solid var(--line);gap:12px}.panelhead small{display:block;margin-top:3px}.panelbody{padding:20px 22px}.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:18px 0 24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:21px 22px}.stat>span{display:block;color:#7b8997;font-size:12px}.stat strong{display:block;font-weight:600;font-size:27px;letter-spacing:-.8px;margin:10px 0 6px;font-variant-numeric:tabular-nums}.stat small{display:block;font-size:11px}.grid-two{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}.grid-two>.panel{margin:0}.bar,.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:14px}.bar{flex-wrap:wrap;margin:12px 0}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.toolbar label{flex:1;min-width:130px;margin:0}.toolbar label.wide{flex:2}.toolbar input,.toolbar select{margin:5px 0 0}.filterbox{padding:18px;background:#fff;border:1px solid var(--line);border-radius:10px}.filterbox details{margin-top:12px}.muted,small{font-size:12px;color:var(--muted)}.muted{line-height:1.7}.tag{display:inline-block;padding:3px 8px;border-radius:5px;background:#edf2f6;color:#687f94;font-size:10px;font-weight:600;line-height:1.5}.tag.green{background:#e8f4ef;color:#32816d}.tag.orange{background:#fff1e4;color:#af783d}.tag.red{background:#faece8;color:#a9584b}.tablewrap{width:100%;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#8b98a4;font-weight:650;padding:13px 17px;background:#fafbfc;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 17px;border-bottom:1px solid #eef1f4;font-size:13px;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfe}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.num strong{font-weight:650}.note{min-width:180px;max-width:400px}.note strong,.note .linkbtn{display:block;overflow-wrap:anywhere}.note small{display:block;margin-top:5px}.positive{color:var(--green)}.negative{color:var(--rust)}.cancelled{opacity:.5}.empty{padding:32px 22px;color:#8794a1;font-size:13px;margin:0}.alert{padding:15px 18px;border:1px solid #e8e0cf;border-radius:8px;background:#fcf9f2;color:#937b51;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:18px}.alert button{background:transparent;color:inherit;white-space:nowrap}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;color:#607285;font-size:12px;margin-bottom:15px}input,select,textarea{width:100%;display:block;border:1px solid #dce3e9;border-radius:6px;background:#fff;color:var(--ink);padding:10px 11px;margin-top:6px;min-height:42px}input:focus,select:focus,textarea:focus{border-color:#839aaf}textarea{min-height:85px;resize:vertical}.checklabel{display:flex;align-items:center;gap:8px;margin:0}.checklabel input,input[type=checkbox]{width:17px;min-height:17px;margin:0;accent-color:var(--navy)}details{border-bottom:1px solid var(--line)}summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:15px 0;gap:16px;list-style:none}summary::-webkit-details-marker{display:none}summary span:before{content:'+';display:inline-block;width:20px;color:#93a0ad}details[open]>summary span:before{content:'−'}summary b{font-size:14px;white-space:nowrap;font-weight:600}.detailbody{padding:0 0 16px}.groupitem{display:flex;justify-content:space-between;gap:18px;padding:10px 0}.groupitem b{font-size:13px;font-weight:600;white-space:nowrap}.list-note{font-size:11px;color:var(--muted);padding-left:20px;margin:0 0 8px}.bar-track{height:5px;border-radius:4px;background:#edf2f5;margin-top:8px;overflow:hidden}.bar-fill{height:100%;background:#8aa9ba}.category-line{padding:13px 0;border-bottom:1px solid var(--line)}.category-line:last-child{border:0}.category-line>.bar{margin:0;font-size:12px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.detail-grid .panel{margin-top:0}.detail-hero{padding:24px}.detail-hero h2{font-size:23px;line-height:1.4;margin:12px 0}.detail-hero .tags{display:flex;gap:7px;flex-wrap:wrap}.info-list{display:grid;grid-template-columns:130px 1fr;gap:13px;padding:22px;border-top:1px solid var(--line);font-size:13px}.info-list dt{color:var(--muted)}.info-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.amount-card{padding:22px}.amount-card>strong{display:block;font-size:30px;letter-spacing:-1px;margin:10px 0 20px}.amount-card button{width:100%;margin-top:8px}.breadcrumb{margin:0 0 18px;color:#7d8d9b;font-size:12px}.balance-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.balance-row:last-child{border:0}.party-title{font-size:23px}.party-note{white-space:pre-wrap;overflow-wrap:anywhere}.pager{padding:13px 17px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;color:var(--muted);gap:12px}.pager button{padding:6px 11px}.tabs{display:flex;gap:6px;margin:14px 0}.tabs button{padding:8px 14px;background:white;border:1px solid var(--line);color:#7b8997}.tabs button.active{background:var(--navy);color:white}.footer-total{padding:15px 18px;background:#fafcfd;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px}.receipt-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.receipt-row small{display:block}.receipt-row b{white-space:nowrap}dialog{width:min(640px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:26px;color:var(--ink)}dialog::backdrop{background:#14283a66}.dialoghead{margin-bottom:22px}#save{width:100%;margin-top:8px}#formError{color:#ad4b43;font-size:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;max-width:90vw;padding:13px 20px;border-radius:8px;z-index:9}.login{max-width:390px;margin:12vh auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:12px}.login .brand{width:100%;max-width:330px;height:auto;margin:0 0 24px}.login h1{margin:10px 0 27px;font-size:24px}.login button{width:100%}footer{margin:30px 0 5px;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#8b98a4}a{color:#537b99}#content>h2{margin:22px 0}.form-help{font-size:12px;background:#f2f6f8;padding:12px;border-radius:6px;color:#718596}.edit-party{white-space:nowrap}
@media(max-width:1100px){.sidebar{width:190px;padding:24px 12px}.workspace{margin-left:190px}header,main{padding:22px}.page-actions{align-items:start;flex-direction:column}.grid-two{grid-template-columns:1fr}.detail-grid{grid-template-columns:minmax(0,1fr) 250px}.summary .stat strong{font-size:23px}}
@media(max-width:760px){.sidebar{position:static;width:auto;padding:16px 16px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{width:180px;max-width:100%;height:auto;margin:0 0 10px}.workspace-label,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;gap:4px;padding-bottom:9px}nav button{white-space:nowrap;font-size:12px;padding:9px 11px;gap:5px}nav button span{font-size:16px;width:17px}.workspace{margin:0}header{padding:19px 18px}h1{font-size:23px}.account #username{display:none}main{padding:18px}.page-actions{gap:12px;margin-bottom:18px}.quick-actions{width:100%;flex-wrap:wrap}.quick-actions button{flex:1;padding:10px 8px;font-size:12px}.summary{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.stat strong,.summary .stat strong{font-size:21px}.toolbar label{min-width:125px}.toolbar label.wide{min-width:100%}.detail-grid,.grid-two{grid-template-columns:1fr;gap:16px}.row{grid-template-columns:1fr;gap:0}.panelhead,.panelbody,.detail-hero,.amount-card{padding:17px}.info-list{grid-template-columns:100px 1fr;padding:17px}td,th{padding:12px}.alert{align-items:start;flex-direction:column;gap:5px}.note{min-width:185px}footer{flex-direction:column}.login{margin:7vh 16px;max-width:420px}.pager{flex-wrap:wrap}.detail-hero h2{font-size:20px}}
@media print{.sidebar,header,.page-actions,footer,button,.breadcrumb{display:none!important}.workspace{margin:0}main{padding:0}.panel{break-inside:avoid}.tablewrap{overflow:visible}.summary{display:flex}.stat{flex:1}}

@media(max-width:760px){table:has(.party-row) thead{display:none}table:has(.party-row),table:has(.party-row) tbody{display:block}.party-row{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:10px;border-bottom:1px solid var(--line)}.party-row td{border:0;padding:0;min-width:0}.party-row .note{max-width:none;min-width:0}.party-row .party-contact{display:none}.party-row .party-edit{grid-column:1/-1}.party-row .party-edit button{padding:8px 12px;font-size:12px}.party-row .num{font-size:12px;white-space:normal}.party-row .num strong{white-space:nowrap}}
