:root{--ink:#173b35;--green:#26705b;--light:#e8f1ec;--bg:#f5f7f4;--muted:#7b8a83;--line:#e3e9e4;--orange:#e3a165}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{border:1px solid var(--line);padding:11px 16px;border-radius:8px;background:white;color:var(--ink);cursor:pointer;font-weight:600}button:hover{background:#edf3ef}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#1b5545}.hidden{display:none!important}.brand{font-size:30px;font-weight:850;letter-spacing:-2px;text-decoration:none;color:var(--ink)}.brand span{font-weight:500;letter-spacing:-1px;margin-left:2px}aside{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:34px 24px;display:flex;flex-direction:column;z-index:20}.nav-caption{font-size:10px;letter-spacing:1.8px;color:var(--muted);margin:50px 10px 18px}nav{display:grid;gap:8px}nav a{display:flex;align-items:center;gap:14px;padding:13px 15px;color:#718279;text-decoration:none;font-weight:550;border-radius:8px}nav a span{font-size:20px;width:22px}nav a.active{background:var(--light);color:var(--green)}nav a:hover{background:#f3f6f3}.sidebar-bottom{margin-top:auto;padding-top:20px;display:flex;gap:10px;align-items:center}.avatar{background:var(--light);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-weight:bold}.sidebar-bottom strong{display:block;font-size:12px;max-width:100px;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.sidebar-bottom button{border:0;padding:5px;margin-left:auto}.main{margin-left:240px}header{height:84px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.8)}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 15px;color:#bac5be}.breadcrumb b{color:var(--ink);font-weight:500}.header-right{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.header-right button{margin-left:18px}.live-dot{background:#4a9b77;width:6px;height:6px;border-radius:50%}#menu{display:none}main{max-width:1500px;margin:auto;padding:36px 40px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--green)}h1{font-size:32px;letter-spacing:-1px;margin:8px 0 10px}h2{font-size:17px;letter-spacing:-.3px;margin:0}p{color:var(--muted);line-height:1.7}.page-heading p{margin:0;font-size:13px}.period{display:flex;flex-direction:column;gap:7px;min-width:155px}.period label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}input,select,textarea{width:100%;border:1px solid #dce5dd;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink)}input:focus,select:focus,textarea:focus{border-color:var(--green)}.welcome-banner{display:flex;justify-content:space-between;align-items:center;padding:28px 34px;background:#e8eee3;border-radius:12px;margin-bottom:24px;overflow:hidden}.welcome-banner h2{font-size:26px;line-height:1.3;margin-top:12px;letter-spacing:-.7px}.welcome-banner p{font-size:12px;margin-bottom:0;color:#738271}.banner-mark{font-size:110px;font-weight:850;position:relative;color:#c8d6bf;line-height:1;width:150px}.banner-mark span{position:absolute;right:5px;bottom:0;font-size:60px;color:#a2b897}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}.stat>span{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:25px;font-weight:650;letter-spacing:-.7px;margin:16px 0 8px}.stat small{font-size:10px;color:var(--muted);font-weight:400;letter-spacing:0}.stat strong small{font-size:10px}.stat.dark{background:var(--ink);color:white;border-color:var(--ink)}.stat.dark span,.stat.dark small{color:#b6ccc0}.stat.green strong{color:var(--green)}.grid-two{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:11px;margin-bottom:24px;padding:24px;min-width:0}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.muted{color:var(--muted);font-size:10px}.chart{height:190px;display:flex;justify-content:space-around;align-items:flex-end;border-bottom:1px solid var(--line);padding:0 8px 12px}.chart-group{text-align:center;width:14%;font-size:10px;color:var(--muted)}.bars{display:flex;align-items:flex-end;justify-content:center;gap:5px;height:158px;margin-bottom:10px}.bar{width:18px;max-width:35%;border-radius:4px 4px 0 0}.bar.income{background:#4e8a70}.bar.expense{background:#e9bd91}.legend{display:flex;justify-content:center;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin-top:17px}.legend i{height:7px;width:7px;border-radius:50%;background:#4e8a70}.legend .orange{background:#e9bd91;margin-left:12px}.debt-line{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);gap:10px}.debt-line span{color:var(--muted);font-size:12px}.debt-line strong{font-size:21px}.debt-line strong small{font-size:10px;font-weight:400}.note{font-size:12px;line-height:1.8;color:var(--muted)}.text-link{color:var(--green);font-weight:600;font-size:11px;text-decoration:none}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th{font-weight:500;color:var(--muted);font-size:10px;padding:12px 10px;background:#f6f8f5}td{border-bottom:1px solid #edf1ec;padding:17px 10px}td strong{font-weight:550}td small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.amount{font-weight:650}.amount small{display:inline;font-weight:400}tr:last-child td{border-bottom:0}.badge{font-size:10px;padding:5px 8px;border-radius:5px;color:#52806a;background:#eef4ee;white-space:nowrap}.badge.danger{color:#b3633c;background:#fff0e6}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap}.toolbar p{margin:0;margin-right:auto;font-size:12px}.toolbar input{flex:1;min-width:190px}.toolbar select{width:auto}.business-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.business-card{background:white;border:1px solid var(--line);border-radius:11px;padding:25px;min-width:0}.business-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.business-icon{display:grid;place-items:center;background:#f0f4ec;border-radius:10px;width:44px;height:44px;font-size:25px;color:#7b9975}.business-card h2{font-size:18px;margin:12px 0}.business-card p{font-size:11px;min-height:20px}.business-numbers{display:flex;justify-content:space-between;gap:15px;margin:26px 0}.business-numbers small{display:block;color:var(--muted);font-size:10px;margin-bottom:9px}.business-numbers strong{font-size:17px;font-weight:600}.business-numbers strong small{display:inline;font-size:9px}.business-footer{padding-top:18px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}.business-footer b{color:var(--green);display:block;margin-top:5px}.business-footer b small{font-weight:400}.text-button{border:0;background:transparent;font-size:11px;color:var(--green);padding:7px}.delete{border:0;background:transparent;color:#a5ada7;padding:5px 10px;font-size:20px}.delete:hover{background:#ffede8;color:#b05c48}.account-balance{font-size:28px;display:block;margin:28px 0}.account-balance small{font-size:11px;font-weight:400}.empty{text-align:center;padding:38px 15px}.empty>span{font-size:38px;color:#adc2b2}.empty h3{font-size:15px}.empty p{font-size:12px}footer{padding:20px 40px;color:#91a094;font-size:10px;display:flex;justify-content:space-between}dialog{border:0;border-radius:14px;padding:28px;max-width:620px;width:calc(100% - 28px);max-height:90vh;box-shadow:0 30px 100px #18372e30}dialog::backdrop{background:#173b3570;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.modal-heading h2{font-size:22px;margin-top:8px}.modal-heading button{border:0;font-size:24px;padding:5px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:600}.fields label:has(textarea),.full{grid-column:1/-1}.modal-footer{margin-top:26px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}#form-error,#auth-error{font-size:12px;color:#b15d43;line-height:1.5;margin-top:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:white;border-radius:8px;padding:15px 22px;z-index:100;font-size:12px;max-width:90vw;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:white}.auth-story{background:var(--ink);color:#fff;padding:50px 65px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-story .brand{color:white}.auth-story .eyebrow{color:#9cc0a7}.auth-story h1{font-size:64px;line-height:1.1;margin-top:25px;letter-spacing:-2px}.auth-story p{color:#a7c1b3;max-width:300px}.auth-story>span{font-size:10px;color:#9db8a9}.auth-form{align-self:center;max-width:400px;width:100%;padding:35px;margin:auto}.auth-form h2{font-size:30px;margin-top:16px}.auth-form p{font-size:12px;margin-bottom:30px}.auth-form label{margin-bottom:20px}.auth-form button{width:100%;margin-top:8px}.auth-form>small{font-size:10px;display:block;text-align:center;margin-top:24px;color:var(--muted)}
@media(min-width:1500px){main{padding-top:45px}}@media(max-width:1150px){aside{width:210px;padding:30px 18px}.main{margin-left:210px}main{padding:28px 24px}header{padding:0 24px}.stats{gap:10px}.stat{padding:17px}.stat strong{font-size:22px}.business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{gap:16px}}
@media(max-width:800px){aside{transform:translateX(-100%);transition:.2s;width:240px;box-shadow:20px 0 80px #173b3515}aside.open{transform:translateX(0)}.main{margin-left:0}#menu{display:block;border:0;padding:8px;font-size:20px}header{height:70px;padding:0 18px;gap:15px}.breadcrumb{margin-right:auto}.header-right{font-size:0;gap:0}.live-dot{display:none}.header-right button{font-size:11px;margin:0;padding:10px}.grid-two{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.welcome-banner{padding:24px}.banner-mark{font-size:90px;width:100px}.auth-story{padding:35px}.auth-story h1{font-size:47px}}
@media(max-width:520px){main{padding:25px 16px}.page-heading{align-items:flex-start}.page-heading h1{font-size:27px}.page-heading p{font-size:11px;max-width:190px}.period{min-width:130px;width:130px}.period input{font-size:11px;padding:9px 6px}.eyebrow{font-size:8px}.welcome-banner h2{font-size:21px}.welcome-banner p{font-size:10px;max-width:220px}.banner-mark{font-size:70px;width:70px}.banner-mark span{font-size:40px}.stats{gap:10px}.stat{padding:17px 14px}.stat>span{font-size:11px}.stat strong{font-size:21px}.stat>small{font-size:9px}.stats.three{grid-template-columns:1fr}.business-grid{grid-template-columns:1fr}.panel{padding:19px 16px}.panel-title h2{font-size:15px}.toolbar{gap:8px}.toolbar p{width:100%}.toolbar button{font-size:11px}.fields{grid-template-columns:1fr}.fields label{grid-column:1}dialog{padding:22px}.auth{grid-template-columns:1fr}.auth-story{min-height:auto;padding:28px}.auth-story>div{margin-top:40px}.auth-story h1{font-size:36px}.auth-story>span{display:none}.auth-form{padding:32px}.auth-story p{font-size:12px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 8px}footer{padding:20px 16px}}
@media print{aside,header,.toolbar,.period,footer,#toast,dialog,.delete,.text-button{display:none!important}.main{margin:0}main{padding:0}body{background:white}.panel,.stat{break-inside:avoid;box-shadow:none}.stats{grid-template-columns:repeat(3,1fr)}.table-scroll{overflow:visible}table{white-space:normal}.page-heading:before{content:'DMMIS';font-weight:bold;font-size:24px;margin-right:25px}}
/* Readability and always-visible owner controls */
:root{--muted:#4e6359}body{font-weight:500}p,.note,.muted,.page-heading p{color:var(--muted);font-weight:500}nav a{font-weight:650;color:#456052}.nav-caption{color:#4e6359;font-weight:700}aside{height:100dvh;overflow:hidden}.nav-caption{flex-shrink:0;margin-top:32px}aside>.brand{flex-shrink:0}nav{min-height:0;overflow-y:auto;flex:1;align-content:start;padding-bottom:12px;scrollbar-width:thin}.sidebar-bottom{flex-shrink:0;border-top:1px solid var(--line);background:white;margin-top:12px}.sidebar-bottom strong{font-weight:750}.sidebar-bottom small{color:#4e6359;font-weight:600}.sidebar-bottom button.logout-button{font-size:11px;padding:9px 10px;border:1px solid #d4dfd6;background:#f5f8f4}.header-right{font-size:12px}.header-right button{margin-left:0}.account-link{color:var(--ink);text-decoration:none;font-size:12px;font-weight:750;white-space:nowrap;padding:10px 12px;border-radius:7px;background:var(--light)}.logout-button{color:#934c36;border-color:#e6d6cf;background:#fff8f5;white-space:nowrap}.logout-button:hover{background:#fbe9e1}.stat>span{font-weight:650;color:#455e51}.stat>small,.stat strong small{color:#536b5c;font-weight:550}.stat.dark>span,.stat.dark small{color:#d4e8dd;font-weight:600}.stat strong{font-weight:750}.period label{font-weight:700;color:#455e51}th{font-weight:750;color:#3f5a4c;font-size:11px}td{font-weight:550}td strong{font-weight:700}td small{color:#4e6359;font-weight:550}.business-card p,.business-numbers small,.business-footer,.legend,.chart-group{color:#4e6359;font-weight:550}.business-numbers strong{font-weight:750}.debt-line span{color:#455e51;font-weight:650}.debt-line strong{font-weight:750}.badge{font-weight:650}.breadcrumb{color:#4e6359;font-weight:600}.breadcrumb b{font-weight:700}.welcome-banner p{color:#455e51;font-weight:550}.profile-details{display:grid;grid-template-columns:1fr 1.5fr;gap:14px;margin:8px 0 28px;font-size:13px}.profile-details span{color:#4e6359;font-weight:650}.profile-details strong{overflow-wrap:anywhere}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.account-actions button{font-size:12px}label{font-weight:700;font-size:12px}input,select,textarea{font-weight:550}.auth-form p,.auth-form>small{color:#4e6359}.auth-form>small{font-weight:550}
@media(max-width:800px){.header-right{font-size:12px;gap:8px}.header-right button{font-size:11px}.account-link{font-size:11px;padding:9px}.breadcrumb{display:none}.header-right{margin-left:auto}aside{padding-bottom:20px}}
@media(max-width:520px){header{height:auto;min-height:74px;padding:12px 14px;gap:8px;align-items:center}.header-right{display:grid;grid-template-columns:1fr 1fr;gap:6px}.header-right #quick{grid-column:1/-1;padding:9px}.header-right .account-link{text-align:center;padding:8px 10px}.header-right .logout-button{padding:8px 10px}.stat>span{font-size:12px}.stat>small{font-size:10px}.page-heading p{font-size:12px}.note{font-size:12px}.sidebar-bottom{padding-top:12px}.nav-caption{margin-top:24px}.account-actions{display:grid;grid-template-columns:1fr}.profile-details{grid-template-columns:1fr}.profile-details strong{margin-top:-8px}}
@media print{.account-actions{display:none!important}}
.sidebar-bottom>.avatar{flex-shrink:0}.sidebar-bottom>div:not(.avatar){flex:1;min-width:0}.sidebar-bottom strong{max-width:100%;white-space:nowrap}.sidebar-bottom>.logout-button{flex-shrink:0}
