:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#203135;background:#f5f7f8;font-synthesis:none;font-size:16px;--ink:#203135;--muted:#7b898e;--line:#e6ebed;--green:#275e4e;--lime:#d4ef79;--side:#192f34;--red:#bd5747}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a{transition:background .18s,transform .18s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9cbe63;outline-offset:3px}a{color:inherit;text-decoration:none}button{border:0}h1,h2,h3,p{margin:0}svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.boot{padding:80px;text-align:center;color:var(--muted)}.shell{display:flex;min-height:100vh}.sidebar{width:232px;flex-shrink:0;background:var(--side);color:#d1dbdd;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 18px 18px;z-index:10}.brand{display:flex;align-items:center;gap:10px;padding:0 12px 35px;color:white}.brand-mark{flex-shrink:0;width:39px;height:39px;border-radius:11px;background:var(--lime);color:#223a34;display:grid;place-items:center}.brand-mark svg{width:27px;height:27px}.brand-name{font-size:20px;font-weight:700;letter-spacing:1px;white-space:nowrap}.brand-en{font-size:9px;letter-spacing:.8px;white-space:nowrap;color:#91a5aa;margin-top:3px}.nav-label{font-size:12px;letter-spacing:2px;color:#80979d;padding:0 16px 12px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{display:flex;align-items:center;gap:13px;width:100%;background:transparent;color:#aabdc1;text-align:left;padding:13px 16px;font-size:14px;border-radius:8px}.nav button:hover{background:#263e43;color:#fff}.nav button.active{background:var(--lime);color:#233b32;font-weight:650}.nav button .nav-count{margin-left:auto;background:rgba(0,0,0,.09);padding:1px 7px;border-radius:4px;font-size:12px}.nav-separator{height:1px;background:#30464b;margin:22px 12px}.sidebar-bottom{margin-top:auto}.storage-note{margin:32px 10px 20px;padding:16px;border:1px solid #3c5154;border-radius:10px;color:#9eb2b5;font-size:12px;line-height:1.9}.storage-note strong{display:block;color:#e0e9e7;font-size:13px;font-weight:500}.storage-note svg{width:16px;height:16px;vertical-align:middle;margin-right:7px}.user-box{display:flex;align-items:center;gap:10px;padding:16px 8px 0;border-top:1px solid #30464b}.avatar{width:34px;height:34px;background:#3e565a;color:#e9f1ee;border-radius:50%;display:grid;place-items:center;font-size:13px}.user-meta{font-size:13px;line-height:1.6}.user-meta small{display:block;color:#829a9f;font-size:11px}.logout{background:transparent;color:#9db0b5;margin-left:auto;padding:5px}.main{margin-left:232px;min-width:0;width:calc(100% - 232px)}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;gap:15px}.breadcrumb{font-size:13px;color:#8b969a;display:flex;align-items:center;gap:12px}.breadcrumb b{font-weight:500;color:#3b4d52}.top-meta{display:flex;align-items:center;gap:20px;font-size:12px;color:#7b898e}.demo-pill{padding:5px 9px;border:1px solid #e6eadc;border-radius:5px;background:#f5f9e9;color:#697a3d;font-size:11px;white-space:nowrap}.top-meta .icon-button{border-left:1px solid var(--line);border-radius:0;padding-left:20px}.content{padding:31px 36px 42px;max-width:1680px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;color:#879594;letter-spacing:2px;font-weight:600;margin-bottom:9px}.page-head h1{font-size:27px;letter-spacing:.5px;font-weight:650;line-height:1.4}.page-head p{font-size:13px;color:var(--muted);margin-top:7px}.head-actions,.row-actions{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:6px;padding:10px 15px;font-size:13px;font-weight:500;background:#fff;color:#34484b;border:1px solid #dce4e6;white-space:nowrap;line-height:1.4}.btn svg{width:16px;height:16px}.btn:hover{background:#edf2f0}.btn.primary{background:#2a5148;border-color:#2a5148;color:#fff}.btn.primary:hover{background:#1d4036}.btn.lime{background:var(--lime);border-color:var(--lime);color:#254137}.btn.danger{color:#ad493c;border-color:#e7cac5;background:#fff9f8}.btn.small{padding:6px 10px;font-size:12px}.icon-button{padding:7px;background:transparent;color:#6f8187;border-radius:5px;display:inline-flex}.icon-button:hover{background:#edf2f0}.filters{display:flex;gap:12px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.filter-label{font-size:12px;color:#869393}.select-wrap{position:relative}.select-wrap svg{position:absolute;width:14px;height:14px;right:10px;top:12px;pointer-events:none}.select-wrap select{appearance:none;padding-right:30px;min-width:160px}.filters select{background-color:#fff;border:1px solid #e1e7e9;border-radius:6px;padding:9px 30px 9px 12px;font-size:12px;color:#42575b;max-width:280px}.filters .right{margin-left:auto;color:#8a979a;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.stat-card{padding:21px 22px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;position:relative}.stat-card.featured{background:#25483e;color:#fff;border-color:#25483e}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#73838a;margin-bottom:19px}.featured .stat-top{color:#c5d7cc}.stat-icon{width:31px;height:31px;display:grid;place-items:center;background:#f1f5f4;border-radius:8px;color:#5a7c70}.stat-icon svg{width:17px;height:17px}.featured .stat-icon{background:#3a5b4d;color:#d6ee94}.stat-value{font-size:28px;font-weight:600;letter-spacing:-.8px;font-variant-numeric:tabular-nums;white-space:nowrap}.stat-value .currency{font-size:18px;font-weight:400;opacity:.55;margin-right:5px}.stat-footer{font-size:11px;color:#93a09f;margin-top:17px;display:flex;align-items:center;gap:6px}.featured .stat-footer{color:#b6cdba}.stat-footer strong{color:#5d7c64;font-weight:500}.featured .stat-footer strong{color:var(--lime)}.stat-footer svg{width:13px;height:13px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:20px;margin-bottom:23px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:21px 22px 0;gap:12px}.panel-title{font-size:15px;font-weight:650}.panel-sub{font-size:11px;color:#91a0a3;margin-top:5px}.text-link{font-size:12px;color:#557569;background:transparent;padding:5px}.chart{padding:22px 22px 12px}.chart-legend{display:flex;gap:18px;font-size:11px;color:#7c898e}.legend-mark{display:inline-block;width:8px;height:8px;background:#456b58;margin-right:6px;border-radius:2px}.legend-mark.light{background:#d5e8a7}.chart-area{height:174px;position:relative;margin-top:19px;display:flex}.chart-labels{width:48px;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:22px;color:#9aa6a9;font-size:10px}.chart-bars{flex:1;display:flex;justify-content:space-around;align-items:flex-end;position:relative;border-bottom:1px solid #edf0f0;background:repeating-linear-gradient(to top,transparent 0,transparent 37px,#edf0f0 37px,#edf0f0 38px);margin-bottom:22px;gap:10px}.bar-group{height:100%;width:13%;display:flex;align-items:flex-end;justify-content:center;gap:5px;position:relative}.bar{width:19px;background:#456b58;border-radius:4px 4px 0 0;min-height:1px;max-width:35%;height:var(--bar-height)}.bar.expense{background:#d5e8a7}.bar-label{position:absolute;bottom:-24px;font-size:10px;color:#87969b;white-space:nowrap}.chart-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f3f3;padding:15px 22px;font-size:11px;color:#90a09e}.chart-bottom b{font-size:13px;color:#35594a;font-weight:500}.todo-list{padding:6px 22px 4px}.todo-item{padding:14px 0;border-bottom:1px solid #edf0f1;display:flex;gap:11px;align-items:center}.todo-item:last-child{border:0}.todo-icon{background:#f8f1e6;color:#aa8e55;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.todo-icon.green{background:#edf4ea;color:#6a8958}.todo-icon svg{width:16px;height:16px}.todo-copy{min-width:0;flex:1}.todo-copy strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.todo-copy small{color:#97a0a4;font-size:10px;display:block;margin-top:5px}.todo-amount{font-size:12px;font-weight:600;white-space:nowrap;text-align:right}.todo-amount small{display:block;margin-top:5px;font-size:10px;font-weight:400;color:#b48752}.todo-footer{padding:13px 22px;background:#fafcfb;font-size:11px;color:#8b9899;display:flex;gap:7px;align-items:center}.todo-footer svg{width:14px;height:14px}.table-toolbar{display:flex;justify-content:space-between;gap:15px;padding:21px 22px 16px;align-items:center}.table-tools{display:flex;gap:12px;align-items:center}.tabs{display:flex;gap:4px;padding:4px;background:#f3f6f5;border-radius:7px}.tabs button{padding:6px 11px;font-size:12px;color:#85918d;border-radius:5px;background:none;white-space:nowrap}.tabs button.active{color:#355446;background:#fff;box-shadow:0 1px 4px #152b3010}.search-wrap{display:flex;align-items:center;gap:8px;border:1px solid #e1e7e9;background:#fff;border-radius:6px;padding:8px 11px}.search-wrap svg{width:15px;height:15px;color:#93a0a4}.search-wrap input{outline:none!important;border:0;background:none;font-size:12px;width:165px;min-width:0;color:#415556}.search-wrap input::placeholder{color:#a2adae}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}th{background:#f7f9fa;color:#8b989d;font-weight:500;font-size:11px;padding:13px 20px;border-top:1px solid #edf1f2;border-bottom:1px solid #edf1f2}td{padding:18px 20px;border-bottom:1px solid #eef2f3;color:#53666a}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfc}.cell-title{font-size:12px;color:#354e51;font-weight:500;max-width:280px;overflow:hidden;text-overflow:ellipsis}.cell-sub{color:#9aa6aa;font-size:10px;margin-top:6px}.num{font-variant-numeric:tabular-nums;font-weight:500;color:#3e5558}.align-right{text-align:right}.badge{font-size:10px;border-radius:4px;padding:4px 7px;display:inline-block;white-space:nowrap}.badge.green{background:#edf5ef;color:#5a8565}.badge.orange{background:#fff4e6;color:#bd9252}.badge.gray{background:#edf1f3;color:#859498}.badge.blue{background:#ecf2f8;color:#6586a2}.badge.red{background:#fbede9;color:#b86957}.direction{font-size:10px;margin-right:6px;color:#769188}.direction.out{color:#b19b70}.table-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-top:1px solid var(--line);font-size:11px;color:#98a3a6}.table-footer .btn{font-size:11px;padding:6px 10px}.footer-note{font-size:10px;letter-spacing:.3px;color:#a2adb1;display:flex;justify-content:space-between;padding-top:23px;gap:10px}.empty{text-align:center;color:#8c999e;padding:40px 20px;font-size:13px;line-height:1.9}.empty svg{display:block;margin:0 auto 12px;width:28px;height:28px;color:#acb9b9}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}.project-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.project-symbol{width:40px;height:40px;background:#eff4e9;border-radius:10px;color:#779658;display:grid;place-items:center}.project-card h3{font-size:17px;font-weight:600;margin-bottom:8px}.project-card .code{font-size:11px;letter-spacing:1px;color:#9aa8a9}.project-info{margin:21px 0;padding-bottom:18px;border-bottom:1px solid var(--line);display:grid;gap:10px;color:#859398;font-size:12px}.project-info div{display:flex;gap:10px;align-items:center}.project-info svg{width:15px;height:15px}.project-nums{display:grid;grid-template-columns:1fr 1fr;gap:20px}.project-nums small{font-size:10px;color:#8e9c9d;display:block;margin-bottom:7px}.project-nums strong{font-size:17px;font-weight:550}.project-bottom{margin-top:21px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8b9a9b}.progress{height:5px;border-radius:3px;background:#eff3ec;margin:15px 0 0;overflow:hidden}.progress span{display:block;background:#a9c67c;height:100%;width:var(--progress)}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.report-box{padding:25px}.report-box h3{font-size:15px;margin-bottom:20px}.report-line{display:flex;justify-content:space-between;font-size:13px;color:#82928e;padding:12px 0}.report-line strong{color:#38574a;font-weight:500}.report-line.total{border-top:1px solid var(--line);margin-top:10px;color:#294c3e;font-weight:600}.settings-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:22px}.settings-box{padding:25px}.settings-box h2{font-size:17px;margin-bottom:10px}.settings-box p{font-size:13px;line-height:1.9;color:#8a979b;margin-bottom:20px}.notice{padding:15px;background:#f3f7ed;color:#738361;font-size:12px;line-height:1.9;border-radius:7px;margin:18px 0}.audit-list{max-height:520px;overflow:auto}.audit-item{padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.audit-item strong{display:block;font-size:12px;font-weight:500;color:#4b625b;margin-bottom:5px}.audit-item p{font-size:11px;margin:0;color:#8d9a9d}.audit-item time{font-size:10px;display:block;margin-top:6px;color:#a2adae}dialog{border:0;border-radius:13px;padding:0;width:min(780px,calc(100% - 32px));max-height:90vh;color:var(--ink);box-shadow:0 25px 90px #0e222b40}dialog::backdrop{background:#142a3366;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-header h2{font-size:19px}.modal-header p{font-size:12px;color:#91a0a3;margin-top:6px}.modal-body{padding:24px 26px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#f9fbfa}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#5e7274;min-width:0}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #dce4e5;background:#fff;border-radius:6px;font-size:13px;color:#344f53;min-width:0}.field select{appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237b898e' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.field textarea{resize:vertical;min-height:75px}.field small{font-size:11px;color:#99a5a6;line-height:1.6}.form-error{color:#b34f3e;background:#fff0eb;font-size:12px;padding:12px 15px;border-radius:6px;margin-top:16px}.form-error:empty{display:none}.section-label{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px;font-size:13px;font-weight:600}.item-editor{overflow:auto}.item-editor table{min-width:360px}.item-editor th,.item-editor td{padding:8px 5px}.item-editor th:first-child,.item-editor td:first-child{padding-left:0}.item-editor input{width:100%;border:1px solid #e0e6e7;border-radius:5px;padding:9px;font-size:12px;min-width:60px}.item-editor .desc-col{width:68%}.item-editor .amount-col{width:26%}.item-editor .action-col{width:6%}.engineering-description{white-space:normal;overflow-wrap:anywhere}.calc-summary{display:flex;gap:18px;justify-content:flex-end;padding:17px;background:#f2f6ef;border-radius:7px;margin-top:18px;flex-wrap:wrap}.calc-summary div{font-size:11px;color:#91a084}.calc-summary b{display:block;font-size:17px;font-weight:600;color:#466044;margin-top:7px}.detail-banner{display:flex;justify-content:space-between;gap:15px;margin-bottom:25px}.detail-banner h3{font-size:21px;font-weight:600;margin-bottom:8px}.detail-banner p{font-size:12px;color:#8a999a}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:24px;font-size:12px}.detail-grid div{display:flex;gap:15px}.detail-grid span{color:#8b999c;min-width:80px}.detail-grid b{font-weight:500}.detail-notes{font-size:12px;line-height:1.9;color:#809291;white-space:pre-wrap;margin-top:20px}.detail-sign{display:none}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.login-art{background:#1c3836;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:60px;position:relative;overflow:hidden}.login-art .brand{padding:0}.login-art h1{font-size:44px;font-weight:500;line-height:1.45;letter-spacing:2px;margin-bottom:20px;position:relative;z-index:1}.login-art p{font-size:14px;color:#9cb6aa;line-height:2;position:relative;z-index:1}.login-art small{font-size:11px;color:#7b9990;position:relative;z-index:1}.building-art{position:absolute;right:-50px;bottom:90px;width:380px;height:380px;opacity:.13;border:1px solid #d4ef79;transform:rotate(-30deg);display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:20px}.building-art i{border:1px solid #d4ef79}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.login-form{width:350px;max-width:100%}.login-form h2{font-size:28px;font-weight:600;margin-bottom:12px}.login-form>p{font-size:13px;color:#899c99;margin-bottom:35px}.login-form .field{margin-bottom:20px}.login-form .btn{width:100%;padding:13px;margin-top:8px}.login-footer{font-size:11px;color:#a1adab;line-height:1.8;text-align:center;margin-top:30px}.mobile-menu{display:none}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#233f38;color:#fff;border-radius:8px;font-size:13px;padding:13px 23px;box-shadow:0 5px 25px #162b3025;z-index:100;opacity:0;pointer-events:none;transition:all .2s;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}.print-only{display:none}.summary-strip{display:flex;gap:28px;border:1px solid var(--line);background:#fff;padding:20px 24px;border-radius:9px;margin-bottom:20px;flex-wrap:wrap}.summary-strip div{color:#8d9a9d;font-size:12px}.summary-strip strong{color:#365047;display:block;font-size:22px;margin-top:7px;font-weight:550}.hint{font-size:12px;color:#92a09e;margin:16px 0;line-height:1.8}.confirm-copy{font-size:14px;line-height:2;color:#687e77}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.content{padding-top:38px}.stat-value{font-size:34px}.overview-grid{grid-template-columns:1.7fr 1fr}.chart-area{height:205px}.todo-item{padding:19px 0}.todo-copy strong{max-width:310px}}
@media(max-width:1200px){.sidebar{width:200px;padding-left:12px;padding-right:12px}.main{margin-left:200px;width:calc(100% - 200px)}.content{padding:26px 24px}.topbar{padding:0 24px}.stat-card{padding:18px 16px}.stat-value{font-size:24px}.stats-grid{gap:12px}.overview-grid{grid-template-columns:1.2fr 1fr;gap:15px}.table-tools .search-wrap input{width:120px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-meta time{display:none}.table-toolbar{flex-wrap:wrap}.todo-copy strong{max-width:170px}.table-tools{flex-wrap:wrap}}
@media(max-width:950px){.stats-grid{grid-template-columns:repeat(2,1fr)}.overview-grid{grid-template-columns:1fr}.todo-copy strong{max-width:none}.todo-list{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.todo-list .todo-item:nth-child(2){border-bottom:1px solid #edf0f1}.project-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.page-head{align-items:flex-start}.head-actions{flex-wrap:wrap;justify-content:flex-end}.report-grid{grid-template-columns:1fr}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:232px;box-shadow:10px 0 40px #10262540}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%}.mobile-menu{display:inline-flex}.topbar{height:62px;padding:0 18px}.breadcrumb{font-size:12px;gap:8px}.breadcrumb>span{display:none}.top-meta{gap:8px}.top-meta .icon-button{padding-left:8px}.content{padding:24px 16px}.page-head{margin-bottom:23px;flex-wrap:wrap;gap:16px}.page-head h1{font-size:24px}.page-head p{font-size:12px}.head-actions{justify-content:flex-start}.stats-grid{gap:10px;margin-bottom:16px}.stat-card{padding:16px 13px}.stat-value{font-size:23px}.stat-value .currency{font-size:14px;margin-right:3px}.stat-top{font-size:12px;margin-bottom:14px}.stat-icon{width:26px;height:26px}.stat-footer{font-size:10px;margin-top:13px;line-height:1.5;flex-wrap:wrap;gap:3px}.overview-grid{gap:16px;margin-bottom:16px}.todo-list{display:block}.filters{gap:8px}.filters .right{display:none}.select-wrap select{min-width:130px;max-width:200px}.table-toolbar{padding:17px 15px}.table-tools{width:100%;justify-content:space-between;gap:8px}.search-wrap{flex:1;min-width:125px}.search-wrap input,.table-tools .search-wrap input{width:100%}.tabs button{padding:6px 9px}.footer-note{font-size:9px;line-height:1.8}.footer-note span:last-child{display:none}.table-footer{padding:15px}.table-footer>span{max-width:60%;line-height:1.6}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-header{padding:20px}.modal-body{padding:20px}.modal-footer{padding:15px 20px;flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}.detail-banner h3{font-size:18px}.calc-summary{gap:15px;justify-content:space-between}.calc-summary b{font-size:15px}.summary-strip{gap:20px;padding:18px}.summary-strip strong{font-size:19px}.login{grid-template-columns:1fr}.login-art{padding:27px 25px;min-height:220px}.login-art h1{font-size:25px;margin:22px 0 6px}.login-art p{font-size:12px}.login-art small{display:none}.login-art .brand{gap:9px}.login-art .brand-name{font-size:22px}.login-form-wrap{padding:30px 25px}.login-form h2{font-size:23px}.login-form>p{margin-bottom:24px}.building-art{height:220px;width:220px;bottom:-60px}.chart-bottom{gap:20px;line-height:1.7}.settings-box{padding:20px}}
@media print{body{background:white;color:#000}.shell,#toast{display:none!important}dialog{display:block!important;position:static;width:100%;max-width:none;max-height:none;overflow:visible;box-shadow:none;border-radius:0;margin:0;padding:0}dialog::backdrop{display:none}.modal-header{position:static;padding:15px 0}.modal-header button,.modal-footer,.no-print{display:none!important}.modal-body{padding:22px 0}.print-only{display:block;font-size:11px;color:#777;margin-top:12px}.detail-sign{display:flex;justify-content:space-between;margin:60px 20px 0;font-size:13px}.detail-grid{grid-template-columns:1fr 1fr}th,td{padding:12px 8px;white-space:normal}.table-scroll{overflow:visible}.calc-summary{background:#f5f5f5}.detail-notes{color:#333}tr{break-inside:avoid}.badge{border:1px solid #ccc}dialog:not([open]){display:none!important}@page{size:A4;margin:18mm}}

[hidden]{display:none!important}.receipt-summary{margin-bottom:22px}.attachment-links{display:flex;flex-direction:column;gap:8px;margin:12px 0;white-space:normal}.attachment-link{display:flex;align-items:center;gap:7px;color:#386c58;font-size:13px;overflow-wrap:anywhere}.attachment-link svg{width:15px;height:15px}.attachment-link small{font-size:11px;color:#8a9894}.attachment-link:hover{text-decoration:underline}

.project-info .scope-copy{display:block;line-height:1.8;overflow-wrap:anywhere}.power-template{align-items:flex-end}.power-template .field{min-width:220px}.power-template .hint{flex-basis:100%;margin:0}.power-template select{max-width:100%}

.project-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.project-bottom{align-items:flex-start;gap:12px;flex-wrap:wrap}.archive-info{margin-bottom:22px}

.sidebar{overflow-y:auto}

.delete-name{margin-top:20px}

.template-settings{margin-bottom:24px}.template-settings .table-scroll{max-height:420px;overflow:auto}.item-editor .engineering-choice{width:100%;min-width:0;padding:9px;border:1px solid #e0e6e7;border-radius:5px;font-size:12px;margin-bottom:8px;background:#fff;color:#53666a}

.role-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}@media(max-width:600px){.role-permissions{grid-template-columns:1fr}}

/* Settlement entry: keep controls inside their columns and scroll only the form body. */
@media screen {
  dialog.settlement-editor[open]{display:flex;flex-direction:column;overflow:hidden;width:min(920px,calc(100% - 32px));height:90vh;height:90dvh;max-height:90vh;max-height:90dvh}
  .settlement-editor .modal-header{position:static;flex-shrink:0;align-items:flex-start}
  .settlement-editor .modal-header p{line-height:1.6}
  .settlement-editor #modal-form{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
  .settlement-editor .modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .settlement-editor .modal-footer{flex-shrink:0}
  .settlement-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settlement-editor .field{min-width:0}
  .settlement-editor .field input,.settlement-editor .field select{min-width:0;max-width:100%}
  .settlement-editor .section-label{gap:12px;flex-wrap:wrap;line-height:1.6}
  .settlement-editor .hint{line-height:1.8}
  .settlement-editor .item-editor{overflow:visible}
  .settlement-editor .item-editor table{table-layout:fixed;min-width:0;white-space:normal}
  .settlement-editor .item-editor td{vertical-align:top;padding:16px 8px}
  .settlement-editor .item-editor .desc-col{width:auto}
  .settlement-editor .item-editor .amount-col{width:180px}
  .settlement-editor .item-editor .action-col{width:44px}
  .engineering-fields{display:grid;gap:12px;min-width:0}
  .engineering-fields label{display:grid;gap:6px;min-width:0;color:#6c8084;font-size:12px}
  .item-editor .engineering-choice{display:block;appearance:auto;max-width:100%;height:40px;margin:0}
  .engineering-fields textarea{display:block;resize:vertical;width:100%;min-width:0;min-height:72px;max-height:240px;padding:10px;border:1px solid #e0e6e7;border-radius:5px;font:inherit;font-size:13px;line-height:1.6;color:var(--ink);background:#fff}
  .settlement-editor .item-amount input{min-width:0;height:40px;margin-top:23px}
  .settlement-editor .item-action button{margin-top:23px}
  .mobile-item-label{display:none}
  .settlement-editor .calc-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
  .settlement-editor .calc-summary b{overflow-wrap:anywhere}
}
@media screen and (max-width:600px){
  .settlement-editor .form-grid{grid-template-columns:minmax(0,1fr)}
  .settlement-editor .item-editor table,.settlement-editor .item-editor tbody{display:block}
  .settlement-editor .item-editor thead{display:none}
  .settlement-editor .item-editor tr{display:grid;grid-template-columns:minmax(0,1fr) 40px;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:12px}
  .settlement-editor .item-editor td{display:block;padding:0;border:0;min-width:0}
  .settlement-editor .item-editor td:first-child{grid-column:1 / -1;margin-bottom:12px}
  .mobile-item-label{display:block;font-size:12px;color:#6c8084;margin-bottom:6px}
  .settlement-editor .item-amount input{margin:0}
  .settlement-editor .item-action{align-self:end;justify-self:end}
  .settlement-editor .item-action button{margin:0}
  .settlement-editor .calc-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Completed contracts retain a visible, genuinely disabled settlement action. */
.text-link:disabled,.text-link:disabled:hover{color:#9ba5a6;background:transparent;cursor:not-allowed;opacity:1;text-decoration:none}

/* Shared project scope picker: search without changing the active scope until selection. */
.project-scope-picker{position:relative;width:320px;max-width:100%;min-width:0;font-size:13px}
.project-scope-picker summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:11px 13px;border:1px solid #dce4e5;background:#fff;border-radius:7px;color:#344f53}
.project-scope-picker summary::-webkit-details-marker{display:none}
.project-scope-picker summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-scope-picker summary:focus-visible{outline:3px solid #9cbe63;outline-offset:3px}
.project-scope-picker[open] summary{border-color:#829f79}
.project-scope-panel{position:absolute;top:calc(100% + 7px);left:0;width:100%;min-width:0;z-index:25;background:#fff;border:1px solid #dce4e5;border-radius:9px;box-shadow:0 10px 30px #142a3326;padding:10px}
.project-scope-search{display:flex;align-items:center;gap:8px;border:1px solid #dce4e5;border-radius:6px;padding:8px;color:#879b97}
.project-scope-search input{width:100%;min-width:0;border:0;background:transparent;color:#344f53;font-size:13px;padding:3px}
.project-scope-results{max-height:300px;max-height:min(300px,45dvh);overflow-y:auto;margin-top:8px;overscroll-behavior:contain}
.project-scope-option{display:block;width:100%;text-align:left;padding:10px;border-radius:5px;background:#fff;color:#344f53;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.project-scope-option small{display:block;font-size:11px;color:#889a97;margin-top:3px}
.project-scope-option:hover,.project-scope-option:focus-visible{background:#f1f5ed}
.project-scope-option.selected{background:#eaf1df;color:#36543f;font-weight:600}
.project-scope-count{padding:9px 10px 5px;color:#83948e;font-size:11px;line-height:1.6}
@media(max-width:700px){.project-scope-picker{width:min(320px,calc(100% - 64px));flex:1;min-width:0}}

/* Compact reports retain all rows; overflow is paginated, never clipped in print. */
.report-context,.voucher-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:12px;font-size:13px}
.report-context span,.voucher-heading span{color:#617578;font-size:12px;line-height:1.6}
.report-document .report-grid{gap:12px;margin-bottom:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.report-document .report-box{padding:14px 18px}
.report-document .report-box h3{margin-bottom:8px;font-size:14px}
.report-document .report-line{padding:5px 0;gap:14px;font-size:12px;line-height:1.5}
.report-document .report-line strong{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.report-document .report-line.total{margin-top:5px;padding-top:8px}
.report-document .receipt-summary{margin-bottom:12px}
.report-document .table-toolbar{padding:12px 16px 10px}
.report-document th,.report-document td{padding:9px 12px}
.report-document .hint{margin:10px 0 0;line-height:1.65}
.reports-view .page-head{margin-bottom:14px}
.reports-view .filters{margin-bottom:14px}
.settlement-voucher .detail-grid b,.settlement-voucher .detail-banner h3{overflow-wrap:anywhere;min-width:0}
.settlement-voucher table{white-space:normal;table-layout:fixed}
.settlement-voucher td{overflow-wrap:anywhere}
.settlement-voucher td.num{overflow-wrap:normal}
.settlement-voucher .detail-grid{gap:12px;margin-bottom:18px}
.settlement-voucher .detail-banner{margin-bottom:16px}
.settlement-voucher .calc-summary{flex-wrap:wrap;gap:16px}
@media screen and (max-width:650px){.report-document .report-grid{grid-template-columns:1fr}.report-context{display:block}.report-context span{display:block;margin-top:5px}}
@media print{
  @page{size:A4;margin:12mm}
  body:has(.reports-view):not(:has(dialog[open])) .shell{display:block!important}
  .reports-view .sidebar,.reports-view .topbar,.reports-view .page-head,.reports-view .filters,.reports-view .footer-note{display:none!important}
  .reports-view .main{width:100%;margin:0}
  .reports-view .content{padding:0;max-width:none}
  .report-document{font-size:10pt;color:#172c31}
  .report-document .panel{overflow:visible;border-radius:0}
  .report-document .report-box{padding:8px 12px;break-inside:avoid}
  .report-document .report-line{padding:3px 0;font-size:9pt}
  .report-document .table-toolbar{padding:8px 10px}
  .report-document th,.report-document td{padding:6px;font-size:8.5pt;white-space:normal;overflow-wrap:anywhere}
  .report-document table{table-layout:fixed;white-space:normal}
  .report-document .hint{font-size:8.5pt;color:#333}
  .report-context{break-inside:avoid}
  thead{display:table-header-group}tfoot{display:table-row-group}
  dialog.settlement-voucher[open]{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;color:#111}
  .settlement-voucher .modal-header{display:none}
  .settlement-voucher .modal-body{padding:0;overflow:visible;height:auto;max-height:none}
  .voucher-heading{font-size:16pt;padding-bottom:10px;border-bottom:2px solid #333;break-after:avoid}
  .settlement-voucher .detail-banner{margin:12px 0;break-inside:avoid}
  .settlement-voucher .detail-banner h3{font-size:13pt}
  .settlement-voucher .detail-grid{gap:8px 16px;font-size:9pt;break-inside:avoid}
  .settlement-voucher .detail-grid div{gap:8px}
  .settlement-voucher .detail-grid span{min-width:70px;color:#555}
  .settlement-voucher th,.settlement-voucher td{padding:7px 8px;font-size:9pt;border-bottom:1px solid #ddd}
  .settlement-voucher .cell-sub{font-size:8pt;color:#444;white-space:normal}
  .settlement-voucher .attachment-links{margin:5px 0;gap:4px}
  .settlement-voucher .attachment-link{font-size:8pt;color:#333}
  .settlement-voucher .calc-summary{padding:12px;break-inside:avoid}
  .settlement-voucher .section-label{break-after:avoid;font-size:10pt}
  .settlement-voucher .detail-notes{margin-top:12px;font-size:9pt;overflow-wrap:anywhere}
  .settlement-voucher .detail-sign{margin:25px 0 0;font-size:10pt;break-inside:avoid}
  .settlement-voucher .print-only{font-size:8pt;color:#444}
}

/* Dashboard cash flow: exact amounts and accessible month drill-down. */
.cash-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px 22px 0}
.cash-totals>div{background:#f3f7f4;border-radius:7px;padding:12px;min-width:0}
.cash-totals span{display:block;font-size:12px;color:#61766c;margin-bottom:7px}
.cash-totals strong{font-size:16px;color:#294e40;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.chart-help{font-size:11px;color:#6f8380;line-height:1.7;margin-top:10px}
.cash-month{border:0;padding:0;background:transparent;color:inherit;border-radius:5px;min-width:0}
.cash-month:hover,.cash-month:focus-visible{background:#edf4eb}
.cash-month-table th,.cash-month-table td{padding:7px 12px}
.cash-month-table .text-link{font-variant-numeric:tabular-nums;white-space:nowrap}
.cash-month-table .num{font-size:11px}
.cash-note{padding:0 22px 16px;margin:0}
.cash-detail-table{white-space:normal;min-width:640px}
.cash-detail-table td{overflow-wrap:anywhere;padding:12px 10px}
.cash-detail-table .num{white-space:nowrap}
@media(max-width:650px){.cash-totals{padding:14px 14px 0;gap:6px}.cash-totals>div{padding:8px}.cash-totals strong{font-size:13px}.cash-month-table th,.cash-month-table td{padding:7px}.cash-month-table .text-link{font-size:11px}.cash-month-table table{min-width:380px}}

.workflow-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.workflow-strip span{padding:10px 8px;border:1px solid #e1e7e4;border-radius:6px;background:#f5f7f6;color:#71817a;font-size:12px;text-align:center}
.workflow-strip .done{color:#284f3f;background:#edf5e8;border-color:#b9d0a5;font-weight:600}
.confirmation-amounts{margin:16px 0;border:1px solid var(--line);border-radius:8px;padding:8px 14px}
.confirmation-amounts>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:13px}
.confirmation-amounts>div:last-child{border-top:1px solid var(--line);font-weight:600}
.confirmation-amounts strong{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:650px){.workflow-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Retention balances are separate from engineering settlement balances. */
.retention-panel { margin: 22px 0; }
.retention-panel td { vertical-align: top; white-space: normal; }
.retention-panel .badge { margin-bottom: 6px; }
input[readonly] { background: #f1f4f4; color: #7c8a8d; cursor: not-allowed; }
@media print { .retention-panel { margin: 6px 0; } .retention-panel .table-toolbar { padding: 5px 7px; } .retention-panel th,.retention-panel td { padding: 4px; } }

/* Touch layouts: keep business details visible while fitting smaller screens. */
.nav-backdrop,.mobile-nav-close { display:none; }
@media screen {
 .content,.panel,.table-scroll,.table-tools,.head-actions,.detail-banner>div { min-width:0; }
 .table-scroll { max-width:100%; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
 .field input,.field select,.field textarea { max-width:100%; }
 .detail-notes,.detail-grid b,.project-card h3 { overflow-wrap:anywhere; }
}
@media screen and (max-width:1024px) {
 .sidebar { width:min(288px,86vw); transform:translateX(-105%); transition:transform .2s; z-index:40; padding-top:max(18px,env(safe-area-inset-top)); padding-bottom:max(18px,env(safe-area-inset-bottom)); }
 .sidebar.open { transform:translateX(0); box-shadow:10px 0 40px #10262540; }
 .main { margin-left:0; width:100%; }
 .mobile-menu,.mobile-nav-close { display:inline-flex; }
 .mobile-nav-close { align-self:flex-end; color:#d1dbdd; margin-bottom:8px; }
 .sidebar .brand { padding-bottom:24px; }
 .nav-open { overflow:hidden; }
 .nav-open .nav-backdrop { display:block; position:fixed; inset:0; z-index:35; background:#152a3470; }
 .content { padding:24px; }
 .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .overview-grid { grid-template-columns:minmax(0,1fr); }
 .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .topbar { padding:0 20px; }
 .btn,.icon-button,.text-link,.tabs button,.nav button { min-height:44px; }
 .icon-button { min-width:44px; justify-content:center; align-items:center; }
 input,select,textarea,.filters select,.engineering-fields textarea,.item-editor .engineering-choice { font-size:16px!important; }
 dialog { max-width:calc(100% - 24px); max-height:92dvh; }
 .modal-header { position:static; align-items:flex-start; }
 .modal-header p { line-height:1.6; }
 .table-footer,.row-actions,.section-label { flex-wrap:wrap; gap:10px; }
 .table-scroll:not(:has(.item-editor)) { scrollbar-width:thin; }
}
@media screen and (max-width:600px) {
 .content { padding:20px 12px max(24px,env(safe-area-inset-bottom)); }
 .topbar { padding:0 12px; }
 .page-head { gap:14px; }
 .head-actions { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .head-actions .btn { white-space:normal; padding:10px 8px; }
 .head-actions .btn:only-child { grid-column:1/-1; }
 .stats-grid { gap:8px; }
 .stat-card { padding:14px 10px; }
 .stat-value { font-size:clamp(16px,4.8vw,26px); white-space:normal; overflow-wrap:anywhere; letter-spacing:-.5px; }
 .stat-top { gap:5px; font-size:12px; }
 .stat-footer { line-height:1.6; }
 .project-grid,.settings-grid,.form-grid,.settlement-editor .form-grid { grid-template-columns:minmax(0,1fr); }
 .field.full { grid-column:auto; }
 .field input,.field select { min-height:46px; }
 .field textarea { min-height:90px; }
 .filters { align-items:stretch; }
 .project-scope-picker { width:auto; flex:1; max-width:100%; }
 .project-scope-menu { min-width:0; width:min(360px,calc(100vw - 32px)); max-width:calc(100vw - 32px); }
 .table-tools { align-items:stretch; }
 .table-tools .search-wrap { flex-basis:100%; min-width:0; }
 .search-wrap input { min-width:0; min-height:44px; }
 .tabs { display:flex; flex-wrap:wrap; }
 .tabs button { flex:1; }
 .mobile-ledger>.table-scroll { overflow:visible; }
 .mobile-ledger> .table-scroll>table,.mobile-ledger> .table-scroll>table>tbody { display:block; width:100%; min-width:0; white-space:normal; }
 .mobile-ledger> .table-scroll>table>thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .mobile-ledger> .table-scroll>table>tbody>tr { display:block; margin:10px; border:1px solid var(--line); border-radius:9px; padding:8px 10px; }
 .mobile-ledger> .table-scroll>table>tbody>tr>td { display:block; padding:9px 0; width:100%; white-space:normal; text-align:left; overflow-wrap:anywhere; }
 .mobile-ledger td[data-label]::before { content:attr(data-label); display:block; color:#7d9093; font-size:11px; font-weight:500; margin-bottom:6px; }
 .mobile-ledger td .text-link { margin-right:8px; }
 .mobile-ledger td[colspan] { padding:12px; }
 .table-footer>span { max-width:100%; }
 .table-footer { align-items:flex-start; }
 .cash-totals { grid-template-columns:minmax(0,1fr); gap:6px; }
 .cash-totals>div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
 .cash-totals strong { font-size:16px; margin-top:0; }
 .chart { padding:18px 12px; }
 .chart-bars { gap:4px; }
 .chart-help,.chart-bottom,.cash-note { overflow-wrap:anywhere; }
 .calc-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .calc-summary b { overflow-wrap:anywhere; }
 .detail-banner { flex-wrap:wrap; gap:12px; }
 dialog,dialog.settlement-editor[open] { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; }
 dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
 dialog .modal-header { flex-shrink:0; padding:16px max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left)); padding-top:max(16px,env(safe-area-inset-top)); }
 dialog #modal-form { display:flex; flex-direction:column; flex:1; min-height:0; }
 dialog .modal-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px; }
 dialog .modal-footer { flex-shrink:0; padding:12px 16px max(12px,env(safe-area-inset-bottom)); gap:8px; }
 dialog .modal-footer .btn { flex:1; white-space:normal; }
 .login-art { min-height:0; padding:24px; }
 .login-art h1 { font-size:24px; margin-top:20px; }
 .login-form-wrap { padding:24px; }
 .boot { padding:48px 16px; }
}
@media (prefers-reduced-motion:reduce) { .sidebar { transition:none; } }

/* Public domain filing information: visible on login and business pages. */
.icp-footer{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 20px;padding:16px 20px;text-align:center;font-size:12px;line-height:1.8;color:#536b70;background:#f5f7f7}
.icp-footer a{color:inherit;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}.icp-footer a:hover{text-decoration:underline}
@media print{.icp-footer{display:none}}
