:root{font-family:Inter,"Segoe UI",sans-serif;color:#20342e;background:#f3f5f5;font-synthesis:none;--green:#173f35;--lime:#e0f2ac;--line:#e2e8e5;--muted:#6b7b75;--white:#fff;--red:#a63737}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:wait}button{border:0}button:focus-visible,a:focus-visible{outline:3px solid #7db89b}input,select,textarea{width:100%;border:1px solid #cdd8d2;background:white;border-radius:8px;padding:11px 12px;color:#20342e;min-height:44px}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--green)}textarea{resize:vertical;min-height:90px}label{display:block;font-size:14px;font-weight:600;line-height:1.5}label input,label select,label textarea{margin-top:6px;font-weight:400}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:650}h2{font-size:19px;letter-spacing:-.3px;font-weight:650}h3{font-size:16px}small,.small{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.sub{font-size:14px;color:var(--muted);margin-top:7px;line-height:1.55}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.layout{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:232px;z-index:10}.brand{display:flex;gap:10px;align-items:center;font-weight:730;letter-spacing:-1.2px;font-size:27px;margin:0 12px 35px}.brand img{width:34px;height:34px}.nav-caption{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#89968f;margin:20px 14px 10px}.nav-link{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:550;padding:12px 14px;border-radius:8px;color:#61706a;margin:3px 0}.nav-link:hover{background:#f5f7f5}.nav-link.active{background:var(--green);color:white}.nav-link .count{margin-left:auto;font-size:11px;background:#dff3a8;color:#244436;padding:2px 6px;border-radius:5px}.sidebar-foot{margin-top:auto;padding-top:24px}.user-tile{padding:15px 10px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;display:grid;place-items:center;background:#edf2eb;color:#43644b;border-radius:50%;font-size:13px;font-weight:650;flex-shrink:0}.avatar.square{border-radius:10px;background:#eaf1f7;color:#547283}.user-info{overflow:hidden;flex:1}.user-info strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info small{font-size:12px}.main{grid-column:2;min-width:0}.topbar{height:76px;background:rgba(255,255,255,.7);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:16px}.crumb{font-size:13px;color:#71827a}.top-right{display:flex;align-items:center;gap:16px;font-size:13px;color:#62776d}.local-badge{padding:6px 10px;border:1px solid #d9e4db;background:#f4f8f1;border-radius:20px;color:#557349;font-size:12px}.content{padding:32px 38px 48px;max-width:1680px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:11px;color:#769083;text-transform:uppercase;letter-spacing:1.8px;font-weight:650;margin-bottom:9px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border-radius:8px;background:white;border:1px solid #d8e1dc;color:#30463a;font-size:14px;font-weight:600;white-space:nowrap}.btn:hover{background:#f0f4ef}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:hover{background:#255746}.btn.lime{background:var(--lime);color:#294330;border-color:var(--lime)}.btn.ghost{border-color:transparent;background:transparent}.btn.danger{color:var(--red)}.btn.sm{min-height:32px;padding:6px 10px;font-size:13px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#6c8175;padding:7px;border-radius:7px;min-width:34px;min-height:34px}.icon-btn:hover{background:#edf2ef}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;min-height:138px}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#708178}.stat-icon{background:#f1f5ef;border-radius:8px;padding:7px;display:flex;color:#618264}.stat-value{font-size:30px;font-weight:650;letter-spacing:-1px;margin-top:12px;line-height:1.25}.stat-value span{font-size:15px;font-weight:450;color:var(--muted);letter-spacing:0;margin-left:4px}.stat small{display:block;margin-top:8px;font-size:12px}.stat.feature{background:var(--green);color:white;border-color:var(--green)}.stat.feature .stat-top,.stat.feature small,.stat.feature .stat-value span{color:#b8cec1}.stat.feature .stat-icon{background:#305748;color:#e2f4ba}.grid-main{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:24px}.panel-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #edf0ed}.panel-body{padding:24px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px;white-space:nowrap}th{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.7px;color:#859088;background:#fbfcfb;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #edf1ed;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf9}td strong{display:block;font-size:14px;font-weight:600}td small{display:block;margin-top:5px;font-size:12px}.td-title{display:flex;align-items:center;gap:12px}.project-icon{width:38px;height:38px;border-radius:9px;background:#ecf3e2;color:#668b34;display:grid;place-items:center}.project-icon.bygg{background:#f4ece0;color:#a4834a}.project-icon.mixed{background:#e9edf5;color:#6b7ea2}.text-right{text-align:right}.text-center{text-align:center}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:5px;font-size:11px;font-weight:650;white-space:nowrap}.badge.active,.badge.approved,.badge.accepted,.badge.done{background:#eef5e8;color:#587b37}.badge.draft,.badge.submitted,.badge.paused,.badge.attachment_pending{background:#fff3d9;color:#986d21}.badge.exported,.badge.sent,.badge.completed{background:#ebf0f6;color:#637b9b}.badge.failed,.badge.uncertain,.badge.sending{background:#fae9e6;color:#a85547}.progress{height:5px;background:#edf1eb;border-radius:5px;width:110px;overflow:hidden;margin-top:7px}.progress i{display:block;height:100%;background:#94b379;border-radius:5px}.todo{padding:17px 22px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf1ed}.todo:last-child{border:0}.todo-body{flex:1}.todo strong{font-size:14px;font-weight:550;display:block}.todo small{margin-top:4px;display:block;font-size:12px}.todo .icon-box{padding:10px;background:#f7f3e8;border-radius:9px;color:#a78c4c;display:flex}.note-card{background:#e8efdf;border:1px solid #dfe7d6;padding:23px;border-radius:12px}.note-card .icon{color:#638243;margin-bottom:15px}.note-card h3{margin-bottom:8px}.note-card p{font-size:13px;line-height:1.65;color:#607054}.mini-chart{display:flex;align-items:flex-end;gap:12px;height:125px;padding:10px 0 0;margin-bottom:24px}.chart-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.chart-bar{width:100%;max-width:35px;border-radius:4px 4px 0 0;background:#b8ccaa;min-height:2px}.chart-col:last-child .chart-bar{background:#345d47}.chart-value{font-size:11px}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.search{position:relative;max-width:340px;flex:1}.search input{padding-left:40px;background:white;font-size:14px}.search .icon{position:absolute;left:13px;top:13px;color:#8b9b91;width:17px}.tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow-x:auto}.tab{padding:12px 14px 15px;font-size:14px;font-weight:550;border-bottom:2px solid transparent;white-space:nowrap;color:#75867b;background:transparent}.tab.active{color:var(--green);border-bottom-color:var(--green)}.empty{padding:48px 24px;text-align:center;color:#738177}.empty .icon{width:32px;height:32px;margin-bottom:12px;color:#99ad9e}.empty h3{color:#435d4a;margin-bottom:8px}.empty p{font-size:14px;line-height:1.6}.empty .btn{margin-top:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .full{grid-column:1/-1}.form-section{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#839587;padding-top:8px;grid-column:1/-1}.check-label{display:flex;align-items:center;gap:10px;font-size:14px}.check-label input{margin:0}.hint{font-size:12px;line-height:1.6;color:#77887b;margin-top:7px}.error{background:#fff0eb;border:1px solid #f1d2c7;padding:12px 14px;border-radius:8px;color:#963b29;font-size:14px;line-height:1.6;margin:14px 0}.notice{background:#f1f6ed;border:1px solid #dce7d6;border-radius:8px;padding:14px 16px;font-size:14px;color:#58714d;line-height:1.65}.notice.warning{background:#fff8e7;border-color:#eee0bd;color:#876b2b}.notice+.form-grid{margin-top:22px}dialog{border:0;border-radius:15px;padding:0;width:min(720px,94vw);max-height:92vh;color:#20342e;box-shadow:0 28px 90px #11271f33}dialog.wide{width:min(1100px,96vw)}dialog::backdrop{background:#142a2580;backdrop-filter:blur(3px)}.dialog-head{padding:24px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.dialog-body{padding:24px 28px;overflow:auto;max-height:calc(92vh - 164px)}.dialog-foot{border-top:1px solid var(--line);padding:18px 28px;display:flex;justify-content:flex-end;gap:10px;background:#fbfcfa}.row-editor{display:grid;grid-template-columns:3fr .8fr .8fr 1fr 36px;gap:9px;align-items:end;margin-bottom:10px}.row-editor.alloc{grid-template-columns:1.5fr 1fr 1fr 36px}.row-editor input,.row-editor select{font-size:13px;padding:9px;min-width:0}.rows-label{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.totals{margin:16px 0 0 auto;max-width:300px;font-size:14px}.totals div{display:flex;justify-content:space-between;padding:8px 0}.totals .grand{border-top:1px solid var(--line);font-size:18px;font-weight:600;margin-top:6px;padding-top:13px}.split{display:grid;grid-template-columns:1fr 1fr;gap:24px}.pdf{width:100%;height:510px;background:#f0f3ef;border:1px solid var(--line);border-radius:8px}.upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:1.5px dashed #bbcdbe;border-radius:10px;background:#f8faf5;min-height:220px;padding:24px;text-align:center}.upload input{max-width:300px;font-size:13px}.upload .icon{width:32px;height:32px;color:#829973}.doc-preview{padding:32px;background:white;max-width:850px;margin:auto}.doc-preview .doc-top{display:flex;justify-content:space-between;border-bottom:3px solid var(--green);padding-bottom:24px;margin-bottom:25px}.doc-preview table{white-space:normal}.doc-preview h1{font-size:28px}.pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Consolas,monospace;font-size:13px;background:#f6f8f5;padding:18px;border-radius:8px;max-height:400px;overflow:auto}.week-table th,.week-table td{text-align:center;padding:14px 12px}.week-table th:first-child,.week-table td:first-child{text-align:left;min-width:160px}.week-table .today{background:#f0f6e9}.week-cell{display:inline-flex;align-items:center;justify-content:center;border-radius:6px;min-width:37px;padding:7px;background:#f3f6ee;color:#5c7a42;font-size:13px}.detail-line{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px;gap:20px}.detail-line:last-child{border:0}.project-title{display:flex;gap:16px;align-items:center}.project-title .project-icon{width:54px;height:54px}.project-title .icon{width:26px;height:26px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-story{background:#153b32;color:white;padding:60px 9%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story .brand{margin:0;color:white}.auth-story h1{font-size:50px;letter-spacing:-2px;line-height:1.15;max-width:440px}.auth-story h1 em{font-style:normal;color:#d9edaa}.auth-story p{color:#a9c6b4;line-height:1.8;max-width:380px;margin-top:24px}.auth-bottom{font-size:12px;color:#9cbaaa;border-top:1px solid #406351;padding-top:24px}.auth-content{padding:45px;display:flex;align-items:center;justify-content:center}.auth-card{width:100%;max-width:420px}.auth-card h2{font-size:26px;margin-bottom:8px}.auth-card p{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:26px}.auth-card label{margin-bottom:15px}.auth-card .btn{width:100%;margin-top:10px}.demo-label{font-size:11px;border:1px solid #d4decf;border-radius:4px;padding:4px 7px;color:#658055}.loading{display:grid;place-items:center;min-height:100vh;color:#53775d}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#193e32;color:white;padding:15px 24px;border-radius:9px;box-shadow:0 8px 30px #23382b25;z-index:1000;transition:transform .2s;font-size:14px;max-width:90vw}#toast.show{transform:translateX(-50%) translateY(0)}.mobile-menu{display:none}.money{font-variant-numeric:tabular-nums}.pill-select{width:auto;font-size:14px;padding:9px 12px;min-width:130px}.mb{margin-bottom:20px}.mt{margin-top:20px}.nowrap{white-space:nowrap}.wrap{white-space:normal;max-width:340px;line-height:1.5}
@media(min-width:1500px){.content{padding:40px 48px}.topbar{padding:0 48px}.stat{padding:24px}.stat-value{font-size:34px}}
@media(max-width:1150px){.layout{grid-template-columns:200px 1fr}.sidebar{width:200px;padding:25px 12px}.content{padding:28px 24px}.topbar{padding:0 24px}.grid-main{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stats{gap:10px}.stat{padding:16px}.stat-value{font-size:26px}.stat-top{font-size:12px}.auth-story h1{font-size:40px}.split{grid-template-columns:1fr}.pdf{height:330px}}
@media(max-width:760px){.layout{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:232px;box-shadow:5px 0 30px #16332222}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex}.topbar{height:60px;padding:0 16px}.top-right>span:first-child{display:none}.content{padding:22px 16px}.page-head{align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:22px}h1{font-size:26px}.page-head .actions{width:100%}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.stat{min-height:126px}.stat-value{font-size:26px}.stat-top .stat-icon{display:none}.grid-main{gap:0}.side-column{display:block}.panel-head,.panel-body{padding:18px}.panel{margin-bottom:18px}.form-grid{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-story{padding:25px 28px}.auth-story .brand{font-size:23px}.auth-story h1,.auth-story p,.auth-bottom{display:none}.auth-content{padding:30px 24px}.row-editor{grid-template-columns:1fr 1fr;gap:10px;border-bottom:1px solid var(--line);padding:10px 0}.row-editor>:first-child{grid-column:1/-1}.row-editor.alloc{grid-template-columns:1fr 1fr}.dialog-body{padding:20px}.dialog-head{padding:20px}.dialog-foot{padding:16px 20px}.filter-bar{flex-wrap:wrap}.filter-bar .search{min-width:100%;max-width:none}.tabs{gap:0}.tab{padding:12px 10px}.doc-preview{padding:12px}.project-title h1{font-size:22px}td,th{padding:14px}.crumb{display:none}}
@media print{body{background:white}.sidebar,.topbar,.page-head,.dialog-head,.dialog-foot,#toast{display:none!important}.layout{display:block}.main{display:block}.content{padding:0}.panel{border:0}.doc-preview{padding:0}.no-print{display:none!important}dialog{position:static;width:100%!important;max-height:none;box-shadow:none;margin:0}dialog::backdrop{background:white}.dialog-body{max-height:none;overflow:visible;padding:0}body:has(dialog[open]) #app{display:none}table{font-size:11px}th,td{padding:10px}h1{font-size:22px}}

.sidebar{overflow-y:auto}#toast{visibility:hidden}#toast.show{visibility:visible}
.grid-main > *, .side-column > *, .form-grid > *, .split > * {min-width:0;}
