:root{--ink:#233c36;--muted:#7a8780;--green:#176b53;--light:#edf5ef;--border:#e4e9e2;--bg:#f6f7f2;--side:#182f28}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border:1px solid #cedbd2;border-radius:7px;background:#fff;color:var(--ink);font-weight:600;cursor:pointer;line-height:1.35;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#edf3ed;text-decoration:none}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#11543f}.danger{color:#a64238}.small-button{font-size:12px;padding:7px 10px}.text-button{border:0;background:none;padding:5px 0;color:var(--green);font-size:12px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:236px;background:var(--side);padding:30px 18px;color:#c7d6ca;overflow-y:auto;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:white;font-size:29px;font-weight:650;letter-spacing:-1px;padding:0 12px}.brand:hover{text-decoration:none}.brand-mark{background:#bddc9d;color:#203c2b;border-radius:11px;width:43px;height:43px;text-align:center;line-height:39px;font-size:36px}.brand-sub{display:block;font-size:8px;letter-spacing:2px;font-weight:500;color:#a5baa9;margin-top:-4px}.nav-label{font-size:9px;letter-spacing:2px;color:#78917f;margin:43px 14px 14px}nav a{display:flex;align-items:center;gap:13px;padding:11px 14px;margin:3px 0;color:#afc0b4;font-size:13px;border-radius:7px}nav a span{width:20px;font-size:19px;text-align:center}nav a:hover{background:#233e31;text-decoration:none;color:#fff}nav a.active{background:#d4e9b9;color:#244332;font-weight:650}.sidebar-bottom{margin-top:auto;padding:35px 14px 0;font-size:11px;color:#bdcfbe}.sidebar-bottom p{font-size:10px;color:#7f9a88}.online-dot{display:inline-block;background:#a6ce81;border-radius:100%;width:6px;height:6px;margin-right:6px}.logout{background:none;border:0;color:#adc1b2;padding:10px 0;font-size:12px}.app-shell{margin-left:236px}.topbar{height:91px;padding:0 42px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:20px;background:#fff}.topbar>div:first-child{flex:1}.topbar strong{display:block;font-size:12px;letter-spacing:.7px}.topbar .small{font-size:8px;letter-spacing:1.5px}.year-switch{display:flex;align-items:center;gap:12px}.year-switch label{font-size:11px;margin:0;color:var(--muted)}.year-switch select{width:92px;margin:0}.avatar{width:35px;height:35px;border-radius:50%;background:#eef2e7;display:grid;place-items:center;font-size:11px;font-weight:bold}main#workspace{max-width:1660px;margin:auto;padding:36px 42px 50px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:650}.eyebrow .pill{margin-left:10px;letter-spacing:0;font-size:9px}h1{font-size:30px;letter-spacing:-1px;font-weight:600;margin:8px 0}h2{font-size:17px;font-weight:600;margin:0 0 6px;letter-spacing:-.3px}h3{font-size:15px;font-weight:600}p{color:var(--muted);margin:6px 0 16px}.page-heading p{margin:0;font-size:12px}.card{background:white;border:1px solid var(--border);border-radius:11px;padding:24px;margin-bottom:22px;min-width:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.card-heading p{font-size:11px;margin:4px 0 0}.card-heading input[type=search]{max-width:260px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{position:relative;border:1px solid var(--border);background:white;border-radius:11px;padding:23px;overflow:hidden}.stat>span{font-size:11px;color:#718276}.stat h2{font-size:28px;margin:20px 0 12px;letter-spacing:-1px}.stat h2 small{font-size:13px;font-weight:500;letter-spacing:0}.stat p{font-size:10px;margin:0}.stat i{position:absolute;top:18px;right:20px;font-style:normal;border-radius:50%;background:#f0f5ed;width:28px;height:28px;display:grid;place-items:center;color:#548767}.stat.dark{background:#244d3e;color:white;border-color:#244d3e}.stat.dark>span,.stat.dark p{color:#a7c3ab}.stat.dark i{background:#38604c;color:#c4dfa3}.grid{display:grid;gap:22px}.grid.two{grid-template-columns:1fr 1fr}.grid.two-one{grid-template-columns:1.9fr 1fr}.attention a{display:flex;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--border);font-size:12px}.attention h2{margin:9px 0 12px}.attention strong{background:#eef3e9;padding:1px 7px;border-radius:4px;font-size:12px}.tip{background:#f5f7ee;border-radius:7px;padding:14px;color:#7c8878;font-size:11px;margin-top:20px}.legend{font-size:9px;color:var(--muted);white-space:nowrap}.legend b{display:inline-block;width:7px;height:7px;background:#347653;border-radius:2px;margin:0 3px 0 9px}.legend b.expense{background:#bfd5a1}.chart{display:flex;gap:12px;align-items:end;height:230px;padding:12px 0 0;border-bottom:1px solid var(--border)}.chart-month{flex:1;text-align:center;font-size:9px;color:var(--muted)}.bars{height:190px;display:flex;align-items:end;justify-content:center;gap:4px;padding-bottom:12px;border-bottom:1px solid #edf1e9}.bars>div{width:11px;background:#347653;border-radius:3px 3px 0 0}.bars .expense{background:#bfd5a1}.chart-month>span{display:block;padding:9px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;font-weight:500;color:#849087;background:#f8faf6;padding:12px 14px;border-bottom:1px solid var(--border)}td{padding:15px 14px;border-bottom:1px solid #edf0e9;vertical-align:top}td strong{font-weight:550}td small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.right{text-align:right}.money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.total{font-weight:700;background:#eef5ec}.section-row{background:#f4f6ef;font-weight:600}.pill{display:inline-block;border-radius:5px;padding:4px 8px;font-size:10px;line-height:1.4}.green{color:#27754f;background:#e9f4e9}.neutral{color:#8a8266;background:#f5f2e8}.muted{color:var(--muted)}.small{font-size:11px}.notice{background:#fcf6e6;border:1px solid #eee4c9;color:#87703e;padding:14px 18px;border-radius:8px;margin-bottom:18px;font-size:12px}.notice a{margin-left:8px}.notice.success{background:#edf7ed;border-color:#cfe5cf;color:#317147}.notice.error{background:#fff0ec;border-color:#f2d7cf;color:#a34235}.error-text{color:#b25442}.empty{text-align:center;padding:48px 20px}.empty>span{font-size:36px;display:block;color:#a9bca7;margin-bottom:14px}.empty h3{font-size:16px;margin:10px}.empty p{font-size:12px;max-width:480px;margin:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.span-2{grid-column:1/-1}label{display:block;font-size:12px;color:#617266;margin:0 0 14px;font-weight:500}.form-grid label{margin:0}input,textarea,select{display:block;width:100%;padding:10px 11px;border:1px solid #dce4d9;border-radius:6px;background:#fff;color:var(--ink);margin-top:6px;min-width:0;font-size:13px}input:focus,textarea:focus,select:focus{outline:2px solid #b6d5b8;outline-offset:1px;border-color:#6f9b7b}textarea{resize:vertical}summary{cursor:pointer;font-weight:600;color:var(--green);padding:3px 0}details[open]>summary{margin-bottom:18px}details.card>summary{font-size:14px}.inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.inline-form label{margin:0;flex:1}.inline-form select{width:auto}.inline-form input{min-width:160px}.row-actions{width:270px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fbfcf8;margin-top:10px}.row-actions form{padding:9px 0;border-bottom:1px solid var(--border)}.row-actions input,.row-actions select{font-size:11px}.month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.month-card{padding:17px;border:1px solid var(--border);border-radius:8px;background:#fcfdf9;min-width:0}.month-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px}.month-card h3{font-size:23px;font-weight:500;margin:18px 0}.month-card form{margin:10px 0}.month-card summary{font-size:11px}.month-card select,.month-card input{font-size:11px}.month-card label{font-size:10px}.month-card button{white-space:normal;font-size:11px}.file-link{display:block;font-size:10px;margin-top:5px;overflow-wrap:anywhere}.upload-card{text-align:center;border-style:dashed;background:#fbfdf7;padding:32px}.upload-card .inline-form{margin-top:22px;justify-content:center}.upload-card .file-picker{flex:initial;text-align:left}.upload-icon{background:#e7f0db;border-radius:12px;width:47px;height:47px;display:grid;place-items:center;margin:0 auto 17px;font-size:27px}.upload-card p{font-size:11px}.document-preview{width:100%;height:620px;border:1px solid var(--border);object-fit:contain;border-radius:6px;background:#f5f5f2}.ocr-text{white-space:pre-wrap;word-wrap:break-word;max-height:450px;overflow:auto;font-size:11px;background:#f6f8f2;padding:16px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8f2;padding:15px;border-radius:6px;font-size:12px}hr{border:0;border-top:1px solid var(--border);margin:25px 0}.align-end{display:flex;align-items:end}.count{font-size:11px;background:#eff3e9;padding:3px 8px;border-radius:5px;color:#76826c;margin-left:5px}footer{padding:18px 42px;color:#9aa495;font-size:10px;border-top:1px solid var(--border)}footer span{float:right}.login-body{display:flex;min-height:100vh}.login-intro{width:48%;padding:60px;background:var(--side);color:white;display:flex;flex-direction:column;justify-content:space-between}.login-intro .brand{padding:0;justify-content:start}.login-intro h1{font-size:48px;letter-spacing:-2px;line-height:1.2;margin:25px 0}.login-intro p{color:#acbea9;line-height:1.8}.login-intro .eyebrow{color:#b9d69b}.login-intro small{color:#77957e}.login-panel{width:52%;display:grid;place-items:center;padding:40px}.login-box{max-width:370px;width:100%}.login-box h2{font-size:27px;margin:14px 0}.login-box>p{font-size:12px;margin-bottom:32px}.login-box input{padding:13px}.login-box label{margin-bottom:20px}.full{width:100%;margin-top:20px}.login-note{font-size:10px;color:#91a086;text-align:center;margin-top:25px}.toast{position:fixed;bottom:25px;right:25px;max-width:360px;background:#a64133;color:white;padding:16px;border-radius:8px}.htmx-request{opacity:.65}button:disabled{opacity:.5;cursor:wait} :focus-visible{outline:2px solid #74a783;outline-offset:3px}@media(min-width:1600px){.stat h2{font-size:34px}}@media(max-width:1200px){.sidebar{width:205px}.app-shell{margin-left:205px}.topbar{padding:0 25px}main#workspace{padding:25px}.stats{grid-template-columns:repeat(2,1fr)}.month-grid{grid-template-columns:repeat(3,1fr)}.grid.two-one{grid-template-columns:1fr}.grid.two{grid-template-columns:1fr}.stat h2{font-size:28px}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:15px}.sidebar .brand{font-size:23px}.sidebar .nav-label,.sidebar-bottom{display:none}nav{display:flex;overflow-x:auto;margin-top:15px}nav a{white-space:nowrap;padding:8px 11px;font-size:11px}nav a span{display:none}.app-shell{margin-left:0}.topbar{padding:12px 18px;height:auto;gap:10px}.topbar strong{font-size:9px}.topbar .small,.year-switch label,.avatar{display:none}.year-switch select{font-size:12px;width:80px}main#workspace{padding:22px 15px}.page-heading{align-items:start}.page-heading .button{font-size:10px;padding:9px}h1{font-size:25px}.page-heading p{font-size:10px}.stats{gap:10px}.stat{padding:16px}.stat h2{font-size:22px}.stat i{display:none}.card{padding:18px}.month-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.month-card{padding:12px}.month-card>div:first-child{display:block}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.inline-form{align-items:stretch}.inline-form>*{width:100%}.card-heading{align-items:start;flex-wrap:wrap}.chart{gap:4px}.bars>div{width:7px}.login-body{display:block}.login-intro{width:100%;padding:25px;min-height:220px}.login-intro h1{font-size:30px;margin:15px 0}.login-intro p,.login-intro small{display:none}.login-intro .eyebrow{margin-top:25px;display:block}.login-panel{width:100%;padding:35px 25px}.document-preview{height:400px}footer{padding:18px}footer span{display:none}}
.invoice-item,.item-head{display:grid;grid-template-columns:2fr .7fr 1fr 32px;gap:8px;align-items:center}.item-head{font-size:10px;color:var(--muted)}.invoice-item button{padding:6px}.invoice-item{margin-bottom:8px}
.history-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#edf5e5}.history-banner h2{margin-top:8px}.history-banner p{margin-bottom:0}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.history-years{display:flex;gap:10px}.history-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.history-tabs a{color:var(--green);background:#eaf0e3;font-size:12px;padding:9px 15px}.history-scroll{max-height:570px}.history-scroll th{position:sticky;top:0;z-index:1}.history-month-matrix td{white-space:nowrap;font-size:11px}.history-month-matrix td:first-child{white-space:normal;min-width:200px}.history-files{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.history-files>a{display:block;border:1px solid var(--border);padding:18px;border-radius:8px;overflow-wrap:anywhere}.history-files span{display:block;font-size:26px;margin-bottom:10px}.history-files strong{display:block;font-size:12px}.history-files small{display:block;font-size:10px;margin-top:10px;color:var(--muted)}@media(max-width:760px){.history-banner,.history-toolbar{align-items:stretch;flex-direction:column}.history-files{grid-template-columns:1fr}.history-tabs a{display:block}}
.outlook{border-top:3px solid var(--green)}.outlook h2{font-size:22px;margin-top:7px}.outlook-controls{display:flex;gap:18px;align-items:end;flex-wrap:wrap;padding:18px;background:#f7f9f3;border-radius:8px;margin-bottom:15px}.outlook-controls label{margin:0;min-width:180px;flex:1}.outlook-controls button{margin-bottom:0}.outlook-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:11px;color:var(--muted);margin:22px 0 10px}.outlook-legend i{display:inline-block;width:16px;height:3px;vertical-align:middle;margin-right:6px;background:#176b53}.outlook-legend .spending{background:#c18b42}.outlook-legend .earnings{background:#4975b5}.outlook-chart{overflow-x:auto}.outlook-chart svg{display:block;width:100%;min-width:670px}.outlook-chart circle:focus{r:7;outline:none;stroke-width:4}.outlook-forecast{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.outlook-forecast article{padding:20px;border:1px solid #dde7d4;background:#f7faf2;border-radius:9px}.outlook-forecast h3{font-size:25px;letter-spacing:-.7px;margin:15px 0 3px}.outlook-forecast p{font-size:11px}.outlook-forecast dl{margin:18px 0 0;font-size:12px}.outlook-forecast dl div{display:flex;justify-content:space-between;gap:8px;padding:5px 0}.outlook-forecast dt{color:var(--muted)}.outlook-forecast dd{margin:0;font-variant-numeric:tabular-nums}@media(max-width:760px){.outlook-forecast{grid-template-columns:1fr}.outlook-controls{padding:13px}.outlook-controls label{width:100%}.outlook h2{font-size:19px}}
.dashboard-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--border);margin:0 0 25px;padding-bottom:7px}.dashboard-tabs a{display:block;padding:11px 20px;color:var(--muted);font-size:13px;border-radius:7px;margin:0}.dashboard-tabs a.active{background:var(--green);color:#fff;font-weight:600}.dashboard-tabs a:hover{text-decoration:none;background:#e7eee3;color:var(--ink)}.dashboard-tabs a.active:hover{background:#11543f;color:#fff}
