:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203535;background:#f5f4ef;font-synthesis:none;--green:#173f43;--line:#dedfd6;--muted:#657573;--red:#ab493b}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button,select{border:1px solid #cbd1c9;background:#fff;border-radius:7px;padding:10px 14px;color:inherit}button:hover{filter:brightness(.96)}input{width:100%;border:1px solid #c5cfc8;border-radius:6px;padding:11px 12px;background:white;color:#203535}input[type=checkbox]{width:auto}label{display:grid;gap:7px;font-size:13px;font-weight:550}a{color:#23666b}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-size:38px;font-weight:400;letter-spacing:-1px;margin-bottom:10px}h2{font-size:19px;font-weight:600}h3{font-size:15px}small,.muted{color:var(--muted)}small{font-size:12px}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-art{padding:60px;background:var(--green);color:#f4eee1;display:flex;flex-direction:column;justify-content:space-between}.wordmark{font-family:Georgia,serif;font-size:23px;letter-spacing:1px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:600}.login-art h1{font-size:58px;line-height:1.1;margin-top:24px}.login-art p{color:#c4d7d1;line-height:1.8;max-width:400px}.glass{border:1px solid #70918a;border-radius:50% 50% 40% 40%;width:160px;height:200px;margin:25px auto;background:linear-gradient(120deg,#62908b44,#bad5c52a,#10474d33);box-shadow:inset 12px 0 30px #b4dace12}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-form>div{width:380px}.login-form form{display:grid;gap:21px;margin-top:30px}.login-form h1{font-size:32px}.secure{border-top:1px solid var(--line);padding-top:22px;margin-top:30px;font-size:12px;line-height:1.7;color:var(--muted)}header{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:25px}.brand{display:flex;align-items:center;gap:14px}.brand img{width:40px}.brand strong{font-family:Georgia,serif;font-size:19px;font-weight:400}.brand small{display:block;margin-top:3px;font-size:10px;letter-spacing:1px;text-transform:uppercase}.header-right{display:flex;align-items:center;gap:15px;font-size:13px}.badge{background:#edf1e9;color:#315747;font-size:11px;border-radius:30px;padding:6px 10px;display:inline-block}.badge.warning{background:#faf0d5;color:#80601c}nav{display:flex;border-bottom:1px solid var(--line);background:white;padding:0 40px;gap:30px}nav button{border:0;background:none;border-radius:0;padding:20px 0;color:var(--muted);font-size:14px}nav button.active{border-bottom:3px solid var(--green);color:var(--green);font-weight:650}.layout{max-width:1480px;margin:0 auto;padding:35px 40px 60px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.page-heading p{color:var(--muted);font-size:14px;margin:0;line-height:1.6}.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.card,.panel{border:1px solid var(--line);border-radius:10px;background:#fff}.card{padding:23px}.card .label{font-size:12px;color:var(--muted);display:block;margin-bottom:14px}.card .value{font-size:29px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-1px;display:block;margin-bottom:8px}.card.accent{background:var(--green);border-color:var(--green);color:#fff}.card.accent .label,.card.accent small{color:#c5d6cd}.panel{padding:25px;margin-bottom:22px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.panel-heading h2{margin:0}.note{font-size:13px;line-height:1.65;padding:15px 18px;background:#f0eee2;border-radius:7px;margin-bottom:20px;border:1px solid #e4dfc9}.note p{margin:0 0 5px}.note p:last-child{margin:0}.note.important{background:#fff4dc;border-color:#e5d19b}.status-line{display:flex;flex-wrap:wrap;gap:18px;font-size:12px;color:var(--muted);margin-bottom:20px}.status-line span::before{content:'●';color:#9b8029;margin-right:7px}.status-line span.ok::before{color:#47725b}.two-col{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:550;padding:13px 12px;background:#f9f9f5;white-space:nowrap}td{padding:14px 12px;border-bottom:1px solid #edf0e8;vertical-align:middle}tr:last-child td{border-bottom:0}td.num,th.num{text-align:right;white-space:nowrap}.negative{color:var(--red)}.positive{color:#337451}.total td{font-weight:650;background:#f3f5ee;border-top:1px solid #ccd8cf}.activity-table{min-width:1280px}.activity-table td:first-child,.activity-table th:first-child{position:sticky;left:0;background:#fff;min-width:185px;z-index:1}.activity-table .total td:first-child{background:#f3f5ee}.empty{text-align:center;padding:50px 20px;color:var(--muted);font-size:14px;line-height:1.7}.empty strong{display:block;color:#334e4c;font-size:17px;font-weight:500;margin-bottom:8px}.graph{height:240px;position:relative}.graph svg{width:100%;height:100%;overflow:visible}.graph text{font-size:11px;fill:#7c8980}.legend{font-size:12px;color:var(--muted);display:flex;gap:20px;margin-bottom:15px}.legend span::before{content:'';display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;background:#27656a}.legend span:last-child::before{background:#d3b88a}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid>.panel{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .wide{grid-column:1/-1}form .controls{margin-top:20px}.section-gap{margin-top:25px}.text-button{padding:5px 9px;background:transparent;font-size:12px}.danger{color:var(--red)}details{margin-bottom:20px}summary{cursor:pointer;font-size:13px;color:var(--muted);line-height:1.7}details p{font-size:13px;line-height:1.7}.loading{text-align:center;padding:100px 20px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--green);color:#fff;padding:14px 22px;border-radius:8px;box-shadow:0 5px 30px #0002;display:none;z-index:20;font-size:14px}#toast.error{background:#8a3e32}.form-error{color:var(--red);font-size:13px;line-height:1.6}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;width:min(540px,90vw);max-height:85vh;overflow:auto;background:#f8f8f3;color:inherit}dialog::backdrop{background:#102b2b77}dialog form{display:grid;gap:16px}dialog h2{margin-bottom:15px}.check-label{display:flex;align-items:center;gap:8px}.footnote{font-size:12px;line-height:1.6;color:var(--muted);margin-top:16px}.period-toggle{display:flex;gap:0}.period-toggle button{border-radius:0;font-size:12px;padding:9px 12px}.period-toggle button:first-child{border-radius:6px 0 0 6px}.period-toggle button:last-child{border-radius:0 6px 6px 0}.period-toggle .selected{background:#e7eee6;border-color:#8da294}.inline-select{padding:6px;font-size:12px;max-width:190px}.invoice-label{max-width:340px;min-width:180px}.invoice-label small{display:block;margin-top:4px}footer{font-size:11px;color:#7d8880;text-align:center;padding:15px 20px 30px}.login-art .wordmark small{display:block;font:11px system-ui;letter-spacing:2px;margin-top:5px}.print-only{display:none}@media(max-width:1000px){.cards{grid-template-columns:1fr 1fr}.two-col,.settings-grid{grid-template-columns:1fr}.layout{padding:25px 20px}header,nav{padding-left:20px;padding-right:20px}.login-art{padding:35px}.login-art h1{font-size:44px}.page-heading{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.login{display:block}.login-art{min-height:200px;padding:25px}.login-art h1{font-size:32px;margin:15px 0}.login-art .glass,.login-art .eyebrow,.login-art p,.login-art>small{display:none}.login-form{padding:35px 25px}.cards{gap:10px}.card{padding:18px 14px}.card .value{font-size:24px}h1{font-size:31px}header{height:74px}.brand strong{font-size:15px}.header-right .username{display:none}.header-right{gap:8px}nav{gap:22px;overflow:auto}nav button{font-size:13px;white-space:nowrap}.panel{padding:18px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.panel-heading{flex-wrap:wrap}.controls select{max-width:100%}.card .label{min-height:28px}.status-line{display:block}.status-line span{display:block;margin-bottom:6px}}@media print{header,nav,.controls,button,#toast,details{display:none!important}.layout{padding:0}.panel,.card{break-inside:avoid}.activity-table{min-width:0;font-size:9px}.activity-table td,.activity-table th{padding:8px 4px}.cards{grid-template-columns:repeat(4,1fr)}.print-only{display:block}body{background:white}.graph{height:180px}}
:root .cash-calendar{padding-bottom:18px}.calendar-scroll{overflow:auto;max-height:780px;border:1px solid #d2dbd0;border-radius:6px}.calendar-grid{min-width:1328px;table-layout:fixed}.calendar-grid th{position:sticky;z-index:2;top:40px;height:34px;font-size:10px;padding:8px;background:#f3f5ee}.calendar-grid thead tr:first-child th{top:0;height:40px;z-index:3}.calendar-grid thead tr:nth-child(3) th{top:74px;height:33px;background:#e9eee2;text-transform:none;font-size:11px}.calendar-grid .month-title{text-align:center;text-transform:capitalize;letter-spacing:.5px;font-size:15px;color:#234d45}.calendar-grid .month-0{background:#dbe8cf}.calendar-grid .month-1{background:#f2edcc}.calendar-grid tbody td{padding:9px 7px;vertical-align:top;background:#fffef2;border-bottom:1px solid #e3e6d5;font-size:12px}.calendar-grid .calendar-date{width:74px;white-space:nowrap;font-size:11px;color:#415b4a}.calendar-grid .calendar-balance{font-variant-numeric:tabular-nums;font-weight:600;text-align:right;white-space:nowrap;width:95px}.calendar-grid .month-edge{border-right:5px solid #fff}.calendar-grid .calendar-void{background:#f0f1ea}.calendar-grid .weekend{color:#a14d3e}.calendar-grid .today-cell{background:#e4efda;box-shadow:inset 0 2px #8aab77}.movement-line{display:grid;grid-template-columns:minmax(70px,1fr) 82px;gap:6px;align-items:start;margin-bottom:8px;line-height:1.45}.movement-line:last-child{margin-bottom:0}.movement-line>span:first-child{overflow-wrap:anywhere}.movement-line small{display:block;font-size:10px;color:#7c8970}.movement-money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.movement-edit{border:0;padding:0;background:none;text-align:left;font:inherit;color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.day-add{padding:0 3px;border:0;background:none;color:#577a58;font-size:16px;display:block;line-height:1.1;margin-top:6px}.day-more{margin:5px 0 0}.day-more summary{font-size:10px;color:#416e4c}.day-more[open] summary{margin-bottom:8px}.no-movement{color:#b5bcaa}.calendar-grid .negative{color:#a94636}.calendar-grid .positive{color:#306b47}.cash-calendar>.footnote{margin:0 0 16px}.cash-calendar .panel-heading .footnote{margin:7px 0 0}.calendar-grid col.day-col{width:54px}.calendar-grid col.label-col{width:112px}.calendar-grid col.amount-col{width:82px}.calendar-grid col.balance-col{width:84px}@media print{.calendar-scroll{overflow:visible;max-height:none;border:0}.calendar-grid{min-width:0;font-size:8px}.calendar-grid th,.calendar-grid tbody td{font-size:8px;padding:3px;width:auto!important;position:static!important}.movement-line{grid-template-columns:minmax(0,1fr) auto;gap:2px}.movement-money,.movement-line small{font-size:7px}.day-add{display:none}.calendar-grid .month-edge{border-right:1px solid #aaa}.calendar-grid .month-title{font-size:10px}}

/* One compact row per day; detail expands only when requested. */
.calendar-scroll{max-height:none;overflow-x:auto}.calendar-grid tbody td{height:20px;padding:1px 4px;line-height:18px;vertical-align:top;font-size:11px}.calendar-grid .calendar-date{font-size:10px}.calendar-grid .day-add{display:inline;float:right;margin:0;padding:0 1px;font-size:12px;line-height:18px}.day-details{margin:0;min-width:0}.day-details>summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:5px;list-style:none;margin:0;padding:0 0 0 10px;height:18px;line-height:18px;font-size:11px;cursor:pointer}.day-details>summary::-webkit-details-marker{display:none}.day-details>summary::before{content:'▸';position:absolute;left:0;top:0;font-size:10px;color:#577658}.day-details[open]>summary::before{content:'▾'}.day-summary-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-expanded{padding:8px 0 6px;border-top:1px solid #dce2cf;margin-top:3px}.day-expanded .movement-line{line-height:1.45}.calendar-grid th{height:24px;padding:3px 4px;top:28px;line-height:18px;font-size:9px}.calendar-grid thead tr:first-child th{height:28px;top:0}.calendar-grid thead tr:nth-child(3) th{top:52px;height:24px;font-size:10px}.calendar-grid .month-title{font-size:13px}.cash-calendar .panel-heading{margin-bottom:10px}.cash-calendar>.footnote{margin-bottom:10px}.calendar-grid .no-movement{line-height:18px}.calendar-grid .calendar-balance{line-height:18px}.calendar-grid .movement-money{line-height:18px}@media print{.calendar-scroll{max-height:none}.calendar-grid tbody td{height:17px;font-size:8px}.day-details>summary{height:15px;line-height:15px;font-size:8px;grid-template-columns:minmax(0,1fr) auto}.calendar-grid .day-details{display:block!important}.day-expanded{display:none!important}}
.calendar-grid tbody td{height:18px;padding:0 4px;line-height:18px}.calendar-grid .calendar-date{position:relative;padding-right:12px}.calendar-grid .calendar-date .day-add{position:absolute;right:2px;top:0;float:none;display:block;width:9px;margin:0;padding:0;line-height:18px}
