:root{--ink:#1a2438;--muted:#69738a;--line:#e1e5ef;--paper:#f5f6fa;--purple:#6844bd;--dark:#251e40;--orange:#ffaf68;--green:#207451;--red:#b53d45;--radius:14px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,.button{border:0;border-radius:8px;padding:11px 17px;cursor:pointer;background:var(--purple);color:#fff;font-weight:600;font-size:.875rem;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.quiet{background:transparent;color:var(--purple);padding:8px}.danger{background:#fff0f1;color:var(--red)}.small{padding:7px 11px;min-height:36px}.icon{width:20px;height:20px;flex:none;display:inline-block}.brand{display:flex;align-items:center;gap:10px;font-size:1.35rem;font-weight:800;letter-spacing:-.5px}.brand img{width:33px;height:33px}.brand small{display:block;font-size:.65rem;letter-spacing:2px;font-weight:500;color:#c8beda;margin-top:3px}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:var(--dark);color:white;padding:30px 19px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{padding:0 10px 34px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{justify-content:flex-start;color:#cec5df;background:transparent;padding:13px 15px;font-weight:500}.nav button.active{background:#4e3c70;color:white;box-shadow:inset 3px 0 var(--orange)}.nav label{font-size:.7rem;letter-spacing:1.5px;color:#a499b8;margin:25px 15px 6px}.account{margin-top:auto;padding:22px 10px 0;border-top:1px solid #493b63;font-size:.875rem}.account b{display:block;margin-bottom:5px;overflow-wrap:anywhere}.account span{color:#bfb2d4}.main{min-width:0}.topbar{height:78px;background:white;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:15px}.crumb{font-size:.875rem;color:var(--muted)}.topright{display:flex;align-items:center;gap:17px;font-size:.875rem}.avatar{background:#eee8f8;color:var(--purple);width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-weight:700}.content{padding:35px 38px 60px;max-width:1600px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{color:var(--purple);font-size:.75rem;font-weight:700;letter-spacing:1.5px;margin-bottom:8px}h1{font-size:1.85rem;letter-spacing:-.7px;margin:0 0 8px}h2{font-size:1.12rem;margin:0}h3{font-size:1rem;margin:0 0 12px}p{line-height:1.6}.muted,.hint{color:var(--muted)}.sub{font-size:.875rem;color:var(--muted);margin:0}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.stat.primary{background:var(--purple);color:#fff;border-color:var(--purple)}.stat label{font-size:.875rem;display:block;margin-bottom:16px;color:var(--muted)}.stat.primary label,.stat.primary small{color:#e4dbf7}.stat strong{display:block;font-size:1.8rem;letter-spacing:-.5px;white-space:nowrap}.stat small{display:block;margin-top:10px;font-size:.75rem;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:23px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.pad{padding:24px}.cols{display:grid;grid-template-columns:1.7fr 1fr;gap:23px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem}th{text-align:left;font-size:.75rem;font-weight:600;letter-spacing:.35px;color:var(--muted);padding:15px 23px;background:#fafbfc;white-space:nowrap}td{padding:18px 23px;border-bottom:1px solid #edf0f5;vertical-align:middle}tr:last-child td{border-bottom:0}td b{display:block;font-weight:600}td small{display:block;margin-top:5px;color:var(--muted);font-size:.75rem}.right{text-align:right}.nowrap{white-space:nowrap}.badge{display:inline-block;border-radius:6px;padding:6px 9px;font-size:.75rem;font-weight:600;white-space:nowrap;background:#edf0f5;color:#566079}.badge.paid,.badge.verified{background:#e9f5ed;color:#24744c}.badge.overdue{background:#fff0ed;color:#b15436}.badge.part-paid{background:#f2ecfd;color:#6b48ae}.badge.unpaid{background:#fff5dd;color:#946d16}.badge.cancelled{background:#f2e7ea;color:#974c5c}.empty{text-align:center;padding:46px 24px}.empty .empty-symbol{width:52px;height:52px;background:#f0ebfa;color:var(--purple);border-radius:14px;display:grid;place-items:center;margin:0 auto 17px}.empty p{font-size:.875rem;color:var(--muted);max-width:360px;margin:10px auto 19px}.toolbar{display:flex;gap:13px;flex-wrap:wrap;align-items:center;margin-bottom:20px}.toolbar input{max-width:330px}.toolbar select{max-width:190px}.toolbar .count{margin-left:auto;color:var(--muted);font-size:.875rem}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:.875rem;font-weight:600}.field small{font-size:.75rem;line-height:1.5;color:var(--muted)}input,select,textarea{border:1px solid #cfd5e2;border-radius:8px;background:#fff;padding:11px 12px;color:var(--ink);width:100%;min-width:0}input:focus,textarea:focus,select:focus{border-color:var(--purple);outline:2px solid #e5dafa}textarea{resize:vertical;min-height:85px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 19px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 16px}.full{grid-column:1/-1}.check{display:flex;gap:10px;align-items:flex-start;font-size:.875rem;margin:15px 0;line-height:1.5}.check input{width:19px;height:19px;flex:none}.notice{border-radius:9px;padding:15px 18px;background:#f2eefb;color:#523887;font-size:.875rem;line-height:1.6;margin-bottom:22px}.notice.warning{background:#fff4e7;color:#83522c}.notice.error{background:#fff0f1;color:#a22d3b}.notice a{color:inherit}.bar-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin:20px 0;font-size:.875rem}.bar{height:7px;background:#eeeaf6;border-radius:5px;grid-column:1/-1;overflow:hidden}.bar i{display:block;height:100%;background:var(--purple);width:0}.quick{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:#fff;color:var(--ink);padding:17px 0;border-bottom:1px solid var(--line);text-align:left;border-radius:0}.quick:last-child{border:0}.quick span{flex:1}.quick small{display:block;font-size:.75rem;color:var(--muted);font-weight:400;margin-top:5px}.tip{background:#fff5e9;border:1px solid #ffdfb7;padding:20px;border-radius:var(--radius);font-size:.875rem}.tip p{margin-bottom:0;color:#835632}.auth{display:grid;grid-template-columns:42% 58%;min-height:100vh}.auth-art{background:var(--dark);color:#fff;padding:55px 12%;display:flex;flex-direction:column;justify-content:space-between}.auth-art h1{font-size:2.9rem;line-height:1.16;letter-spacing:-1.5px;margin-top:60px}.auth-art h1 em{color:var(--orange);font-style:normal}.auth-art p{color:#c6bbd7;max-width:350px}.auth-list{margin:35px 0 60px}.auth-list div{padding:15px 0;border-bottom:1px solid #4a3c61;display:flex;align-items:center;gap:12px;font-size:.875rem}.auth-art footer{font-size:.75rem;color:#bcb0cc}.auth-main{display:flex;align-items:center;justify-content:center;padding:45px 30px;background:white}.auth-card{width:100%;max-width:440px}.auth-card h1{font-size:1.9rem;margin-bottom:12px}.auth-card>.sub{margin-bottom:28px}.auth-card button[type=submit]{width:100%;margin:7px 0 10px}.auth-footer{font-size:.875rem;text-align:center;color:var(--muted);margin:22px 0}.text-link{background:none;color:var(--purple);padding:0;min-height:auto;display:inline;font-weight:600}.auth-tabs{display:flex;gap:25px;margin-bottom:30px;border-bottom:1px solid var(--line)}.auth-tabs button{background:none;color:var(--muted);border-radius:0;padding:12px 0;border-bottom:3px solid transparent}.auth-tabs button.active{color:var(--purple);border-color:var(--purple)}dialog{border:0;border-radius:17px;padding:0;max-height:90vh;width:min(730px,94vw);box-shadow:0 25px 100px #17233d55;color:var(--ink)}dialog.wide{width:min(1100px,96vw)}dialog::backdrop{background:#17203388;backdrop-filter:blur(3px)}.modal-head{padding:23px 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{font-size:1.25rem}.modal-body{padding:25px 26px}.modal-foot{border-top:1px solid var(--line);padding:19px 26px;display:flex;justify-content:flex-end;gap:10px}.line-editor{background:#f5f6fa;border:1px solid var(--line);padding:15px;border-radius:9px;margin-bottom:13px}.line-grid{display:grid;grid-template-columns:2fr .6fr .8fr .9fr .7fr 35px;gap:10px;align-items:end}.line-grid .field{margin:0}.line-grid label{font-size:.75rem}.totals{margin:22px 0 10px auto;max-width:310px}.totals div{display:flex;justify-content:space-between;padding:11px 0}.totals div:last-child{border-top:2px solid var(--ink);font-weight:700;font-size:1.2rem}.invoice-paper{padding:30px;border:1px solid var(--line);border-radius:10px}.invoice-paper h1{color:var(--purple)}.invoice-addresses{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:30px 0}.invoice-addresses p{font-size:.875rem;white-space:pre-line}.detail-actions{margin-bottom:20px}.receipt-card{border:1px solid var(--line);padding:18px;border-radius:10px}.expense-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.expense-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.expense-top .icon{color:var(--purple)}.receipt-card h3{margin:7px 0}.receipt-card p{font-size:.875rem;margin:7px 0;color:var(--muted)}.receipt-card .amount{font-size:1.4rem;font-weight:700;margin:14px 0}.receipt-card .actions{margin-top:15px}.form-section{padding:25px;border-bottom:1px solid var(--line)}.form-section h2{margin-bottom:21px}.report-note{font-size:.875rem;line-height:1.7;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:14px 21px;z-index:100;max-width:90vw;box-shadow:0 10px 40px #1113;display:none}#toast.show{display:block}.boot{padding:70px;text-align:center;color:var(--purple)}.mobile-brand{display:none}.footer-note{font-size:.75rem;color:var(--muted);margin-top:20px}.month-chart{height:150px;display:flex;align-items:end;gap:12px;padding:12px 5px 0}.month-col{flex:1;text-align:center;height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:9px}.month-col span{font-size:.75rem;color:var(--muted)}.month-col i{width:100%;max-width:40px;background:#ddd2f3;border-radius:5px 5px 0 0;min-height:3px}.month-col:last-child i{background:var(--purple)}.profile-layout{max-width:940px}.section-space{margin-top:25px}.receipt-preview{display:block;max-width:100%;max-height:500px;margin:20px auto}.file-drop{border:2px dashed #cec4e2;background:#faf8ff;border-radius:12px;padding:24px}.file-drop p{font-size:.875rem;color:var(--muted);margin:8px 0 15px}.breakword{overflow-wrap:anywhere}
@media(max-width:1150px){.stats{grid-template-columns:repeat(2,1fr)}.cols{grid-template-columns:1fr}.expense-grid{grid-template-columns:repeat(2,1fr)}.content{padding:28px 25px}.topbar{padding:0 25px}.shell{grid-template-columns:205px 1fr}.sidebar{padding:25px 12px}.brand{font-size:1.15rem}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;padding:14px}.sidebar .brand,.account,.nav label{display:none}.nav{flex-direction:row;overflow-x:auto;gap:3px}.nav button{font-size:.75rem;padding:10px;white-space:nowrap;flex-direction:column;gap:6px;min-width:74px}.nav button.active{box-shadow:inset 0 -3px var(--orange)}.topbar{height:64px;padding:0 18px}.crumb{display:none}.mobile-brand{display:flex}.topright .name{display:none}.content{padding:24px 17px 40px}.heading{align-items:flex-start;flex-wrap:wrap;gap:15px}h1{font-size:1.6rem}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:1.4rem}.stat label{font-size:.75rem;margin-bottom:12px}.stat small{font-size:.75rem}.grid2,.grid3{grid-template-columns:1fr}.expense-grid{grid-template-columns:1fr}.auth{display:block}.auth-art{padding:25px}.auth-art h1,.auth-art p,.auth-list,.auth-art footer{display:none}.auth-main{padding:30px 22px}.auth-card{max-width:480px}.line-grid{grid-template-columns:1fr 1fr 1fr}.line-grid>.field:first-child{grid-column:1/-1}.line-grid button{align-self:end}.panel-head,.pad{padding:19px}.modal-body,.modal-head,.modal-foot{padding:20px}.invoice-paper{padding:15px}.invoice-addresses{gap:15px}td,th{padding:13px 15px}.toolbar input{max-width:none}.toolbar .count{margin:0}.topright{gap:9px}}
@media print{.sidebar,.topbar,.heading .actions,.toolbar,.detail-actions,.no-print{display:none}.shell{display:block}.content{padding:0}.panel{break-inside:avoid}.stats{grid-template-columns:repeat(2,1fr)}body{background:white}}
.cols>*{min-width:0}.cols{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.stat{min-width:0}.stat strong{overflow-wrap:anywhere;white-space:normal}.brand{font-size:1.2rem}.topright{flex-shrink:0}.topright button{white-space:nowrap}.mobile-brand{min-width:0}@media(max-width:1150px){.cols{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.brand{font-size:1.05rem}.brand img{width:28px;height:28px}.topright{gap:4px}.topbar{gap:8px}.panel-head{flex-wrap:wrap}.stat strong{font-size:1.3rem}}
