/* Project Control: responsive typography and form layout. */
.cost-tabs{display:flex;gap:5px;padding:5px;background:#e9eee4;border:1px solid #e1e7da;border-radius:11px;width:fit-content;margin:0 0 24px}.cost-tabs button{border:0;background:transparent;color:#607158;font-weight:400;min-height:40px;padding:9px 17px}.cost-tabs button.active{background:#fff;color:#183e32;box-shadow:0 1px 5px #1c38210b;font-weight:500}.actual-table a,.comparison-table td:first-child{font-weight:500;font-size:13px}.comparison-table td:nth-child(n+2),.actual-table td:nth-child(n+3){font-variant-numeric:tabular-nums;white-space:nowrap}.actual-table td:first-child{min-width:180px}.actual-table .muted{font-size:12px}.actual-table td{font-size:13px}
:root{--bg:#f5f6f3;--muted:#617168;--line:#dfe5de;--radius:14px;color-scheme:light}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:24px}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit;letter-spacing:normal}
button{font-size:14px;font-weight:500;min-height:42px}
input,select,textarea{font-size:15px;line-height:1.45;min-height:44px;border-color:#d3dcd2;box-shadow:0 1px 2px #142b2403}
select{font-weight:400;padding-right:30px}
input[type=number]{appearance:textfield;font-variant-numeric:tabular-nums;letter-spacing:.01em}
input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input:disabled,select:disabled,textarea:disabled{-webkit-text-fill-color:var(--ink);opacity:1;background:#f6f8f3}
label,.field-label{font-size:12px;font-weight:500;color:#52645a;line-height:1.4;display:block;margin:0 0 7px}
textarea{min-height:112px;line-height:1.65}
h1{font-size:32px;line-height:1.18;letter-spacing:-.9px;font-weight:600}
h2{font-size:18px;letter-spacing:-.35px;font-weight:600;line-height:1.4}
h3{font-size:15px;font-weight:600}
.eyebrow{font-size:11px;letter-spacing:1.15px;line-height:1.6;overflow-wrap:anywhere}
.help,.section-note{font-size:12px;line-height:1.65}
.main{padding:0 clamp(24px,3vw,48px) 36px;max-width:1800px;width:100%;margin-inline:auto}
.sidebar{padding:28px 18px}
.brand{gap:10px}.brand strong{font-size:17px;letter-spacing:1.2px}.brand small{font-size:10px;letter-spacing:1.5px}
.sidebar nav button{font-size:14px;font-weight:500}
.topbar{padding:20px 0;margin-bottom:30px}.topbar .date{font-size:12px;line-height:1.6}
.user{gap:12px}.user small{font-size:10px;letter-spacing:.8px}.avatar{width:34px;height:34px}
.pagehead{margin-bottom:26px}.pagehead p{margin-top:10px;font-size:14px}
.pagehead .actions button{white-space:nowrap}
.panel{padding:24px;box-shadow:0 2px 6px #142b2403}
.panelhead{gap:14px;margin-bottom:12px}.panelhead h2{margin:0}
.section-note{margin:8px 0 20px}.formgrid{gap:22px 20px}
.costing-layout{grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}
.cost-inputs{min-width:0}.cost-inputs>.panel:last-child{margin-bottom:0}
.material-list{display:grid;gap:14px}
.material-row{position:relative;display:grid;grid-template-columns:minmax(130px,1fr) 50px 72px 94px 110px 32px;gap:10px;align-items:start;padding:16px 14px;background:#fafbf8;border:1px solid #e5e9e0;border-radius:11px;min-width:0}
.material-row>div{min-width:0}.material-row label,.material-row .field-label{font-size:11px;white-space:nowrap}
.material-row input{padding:9px 10px;min-width:0;width:100%;font-size:14px;background:#fff}
.material-amount{min-height:66px;text-align:right}
.material-amount strong{display:block;white-space:nowrap;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;line-height:44px;letter-spacing:-.25px}
.material-remove{align-self:end;padding:0;width:32px;min-height:44px;margin-bottom:0;background:transparent;border-color:transparent;font-size:21px;line-height:1;color:#819184;font-weight:400}
.material-remove:hover{color:var(--red);background:#f9ece7;border-color:#f0d9d0}
.material-reference{grid-column:1/-1;color:#748277;font-size:11px;line-height:1.6;margin:0;overflow-wrap:anywhere}
.cost-summary{position:sticky;top:24px;align-self:start;min-width:0;margin-bottom:0;background:#fff}
.cost-summary h2{margin-bottom:18px}
.cost-summary .statrow{gap:14px;padding:13px 0;font-size:13px;line-height:1.5;align-items:baseline}
.cost-summary .statrow>span{min-width:0;max-width:155px;color:#607067;overflow-wrap:break-word}
.cost-summary .statrow>strong{flex-shrink:0;white-space:nowrap;text-align:right;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.cost-summary .summary-total{border-top:1px solid #cbd7c8;border-bottom:0;margin-top:8px;padding-top:18px}
.cost-summary .summary-total>span{color:var(--ink);font-weight:600}
.cost-summary .summary-total>strong{font-size:18px;font-weight:600}
.cost-summary .summary-profit{display:block;background:#edf4e5;padding:16px;border:0;border-radius:10px;margin-top:18px}
.cost-summary .summary-profit>span{display:block;max-width:none;font-size:12px;margin-bottom:6px}
.cost-summary .summary-profit>strong{display:block;text-align:left;font-size:25px;line-height:1.35;font-weight:600;letter-spacing:-.6px;white-space:normal;overflow-wrap:anywhere}
.cost-summary .notice{font-size:12px;margin:14px 0;line-height:1.6;padding:12px;background:#f8f5e9}
.cost-summary .notice.good{background:#f5f8ef;border-color:#e1e9d6}
.cost-summary>.help{margin-top:14px;font-size:11px;line-height:1.7}
.cost-savebar{position:sticky;bottom:12px;z-index:4;margin-top:24px;padding:14px 18px;background:rgba(255,255,255,.96);border:1px solid #dce4d7;border-radius:12px;box-shadow:0 6px 26px #19392b0c;backdrop-filter:blur(12px);gap:16px}
.cost-savebar .help{margin:0;font-size:12px}.cost-savebar .primary{min-width:150px}
.summary-jump{display:none}
.cards{gap:16px;margin:22px 0 24px}.card{padding:22px}.card small{font-size:12px}.card .value{font-size:30px;font-weight:550;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.card .hint{font-size:12px}
.filters{gap:12px}.filters input{max-width:360px}.filters select{max-width:200px}.filters #result-count{font-size:12px;margin-left:auto}
.project-table{font-size:14px}.project-table th{font-size:11px;letter-spacing:.7px;font-weight:500;padding:13px 12px;background:#f8faf5}.project-table td{padding:18px 12px;vertical-align:middle}.project-table .titlelink{font-size:14px;font-weight:550;line-height:1.5}.project-table .muted{font-size:12px;line-height:1.7}.project-table .mono{font-size:10px;margin-top:3px}.project-table .small{font-size:12px;padding:7px 10px;min-height:36px}.project-table .badge{font-size:11px}
.badge{font-size:12px;padding:5px 9px}.notice{font-size:13px;line-height:1.65}
dialog{width:min(760px,calc(100vw - 40px));max-height:90dvh}.modalhead{padding:24px 28px 16px}.modalbody{padding:8px 28px 28px}.modalfoot{padding:16px 28px;position:sticky;bottom:0}.modalbody .statrow{font-size:14px;gap:20px}.modalbody .statrow>span:last-child{text-align:right}
.loginbox h2{font-size:28px}.loginbox form{gap:20px}.loginbox input{font-size:16px;min-height:48px}.loginbox .primary{min-height:48px}
@media(min-width:1500px){.costing-layout{grid-template-columns:minmax(0,1fr) 360px}.cost-summary{padding:26px}.material-row{grid-template-columns:minmax(180px,1fr) 60px 86px 110px 124px 32px}.material-amount strong{font-size:15px}}
@media(max-width:1260px) and (min-width:981px){.shell{grid-template-columns:210px 1fr}.sidebar{width:210px;padding-inline:14px}.brand{margin-left:4px}.brand strong{font-size:16px}.brand small{font-size:9px}.main{padding-inline:24px}.costing-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.panel{padding:20px}.material-row{grid-template-columns:minmax(0,1fr) 60px 90px;gap:12px}.material-identity{grid-column:1/3}.material-unit{grid-column:3}.material-quantity{grid-column:1}.material-price{grid-column:2/4}.material-amount{grid-column:1/3;text-align:left;min-height:0}.material-amount .field-label{display:inline;margin-right:10px}.material-amount strong{display:inline;line-height:36px}.material-remove{grid-column:3;grid-row:3;justify-self:end;align-self:start;min-height:36px}.material-reference{grid-row:4}}
@media(max-width:980px){.shell{grid-template-columns:190px 1fr}.sidebar{width:190px;padding:24px 12px}.brand{margin-left:2px}.brand img{width:30px;height:30px}.brand strong{font-size:15px}.brand small{font-size:8px}.sidebar nav button{font-size:13px;padding:12px 10px}.main{padding-inline:24px}.costing-layout{grid-template-columns:minmax(0,1fr);gap:20px}.cost-summary{position:static}.cost-summary .statrow>span{max-width:none}.cost-summary .summary-profit{display:flex;align-items:center;justify-content:space-between;gap:16px}.cost-summary .summary-profit>span{margin:0}.cost-summary .summary-profit>strong{font-size:23px;text-align:right}.summary-jump{display:inline-flex;align-items:center;font-size:13px}.material-row{grid-template-columns:minmax(130px,1fr) 50px 70px 90px 110px 28px}.topbar .date{font-size:11px}.user{gap:6px}.user .name{display:none}.panel{padding:20px}}
@media(max-width:760px){html{scroll-padding-top:16px}.shell{display:block}.sidebar{position:static;width:auto;padding:14px 18px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}.sidebar .brand{margin:0;gap:8px}.sidebar .brand img{width:30px;height:30px}.sidebar .brand strong{font-size:15px;letter-spacing:.9px}.sidebar .brand small{font-size:8px;letter-spacing:1.3px}.sidebar nav{overflow:visible;flex-shrink:0}.sidebar nav button{font-size:12px;padding:8px 10px;min-height:36px}.sidebar .nav-icon,.nav-label,.sidebar footer{display:none}.main{padding:0 18px 22px}.topbar{padding:14px 0;margin-bottom:24px;gap:8px}.topbar .date{font-size:10px;line-height:1.5}.user{gap:3px}.user .avatar{width:29px;height:29px;font-size:12px}.user button{min-height:40px;padding:8px;font-size:11px}.user .name{display:none}h1{font-size:28px;letter-spacing:-.8px}h2{font-size:17px}.eyebrow{font-size:10px;letter-spacing:.85px}.pagehead{gap:14px;margin-bottom:22px}.pagehead>div:first-child{min-width:0}.pagehead p{font-size:13px;line-height:1.6;margin-bottom:0}.pagehead .actions button{font-size:12px;min-height:40px;padding:9px 12px}.panel{padding:18px;border-radius:13px;margin-bottom:18px}.panelhead{gap:10px}.panelhead button{font-size:12px;min-height:38px;padding:8px 11px}.section-note,.help{font-size:12px;line-height:1.65}input,select,textarea{font-size:16px;min-height:46px;line-height:1.4;padding:11px 12px;border-radius:8px}label,.field-label{font-size:12px;font-weight:500}.formgrid{grid-template-columns:minmax(0,1fr);gap:20px}.field.full{grid-column:auto}.formgrid>div{min-width:0}.costing-layout{gap:0}.material-list{gap:14px}.material-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:16px;border-radius:10px;background:#fafbf8}.material-row input{font-size:16px;min-height:46px;padding:10px 11px}.material-row label,.material-row .field-label{font-size:11px;white-space:normal}.material-identity{grid-column:1/-1;padding-right:35px}.material-unit,.material-quantity,.material-price,.material-amount{grid-column:auto}.material-remove{position:absolute;right:10px;top:35px;min-height:44px;width:32px;font-size:23px}.material-amount{align-self:end;background:#edf2e6;border-radius:8px;padding:10px 11px;min-height:70px;text-align:left}.material-amount .field-label{font-size:10px;margin-bottom:4px}.material-amount strong{font-size:15px;letter-spacing:-.3px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.material-reference{font-size:10px;line-height:1.65;margin-top:0}.cost-summary{margin:0;scroll-margin-top:16px}.cost-summary .statrow{font-size:13px;padding:12px 0;gap:12px}.cost-summary .statrow>span{max-width:55%}.cost-summary .statrow>strong{font-size:14px}.cost-summary .summary-total>strong{font-size:18px}.cost-summary .summary-profit{display:block;margin-top:16px;padding:16px}.cost-summary .summary-profit>span{max-width:none;margin-bottom:6px}.cost-summary .summary-profit>strong{text-align:left;font-size:26px}.cost-savebar{bottom:calc(8px + env(safe-area-inset-bottom,0px));margin-top:18px;padding:12px;display:grid;grid-template-columns:1fr;gap:10px;border-radius:11px}.cost-savebar .help{font-size:11px;line-height:1.5}.cost-savebar .actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.cost-savebar .actions button{justify-content:center;font-size:13px;min-height:46px;padding:11px 10px}.cost-savebar .primary{min-width:0}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.card{padding:17px;border-radius:12px}.card small{font-size:11px}.card .value{font-size:28px;margin:5px 0}.card .hint{font-size:10px;line-height:1.5}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filters input{grid-column:1/-1;max-width:none}.filters select{max-width:none;font-size:14px;min-height:44px}.filters #result-count{justify-self:end;margin:0;font-size:12px}.project-table,.project-table tbody{display:block;white-space:normal}.project-table thead{display:none}.project-table tr{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;padding:18px 0;border-bottom:1px solid var(--line)}.project-table tr:first-child{padding-top:0}.project-table tr:last-child{padding-bottom:0;border:0}.project-table td{display:block;padding:0;border:0;min-width:0;font-size:13px}.project-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;letter-spacing:.7px;text-transform:uppercase;margin-bottom:6px}.project-table .project-title{grid-column:1/-1}.project-table .project-title:before,.project-table .project-actions:before{display:none}.project-table .project-title .titlelink{font-size:15px;line-height:1.5}.project-table .project-title .muted{font-size:12px}.project-table .project-title .mono{font-size:10px}.project-table .project-actions{grid-column:1/-1}.project-table .project-actions .actions{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px}.project-table .small{min-height:43px;padding:9px;font-size:12px}.project-table .badge{font-size:11px}.project-table td.nowrap{white-space:normal;font-variant-numeric:tabular-nums}dialog{width:calc(100vw - 24px);max-height:90dvh;border-radius:15px}.modalhead{padding:20px 18px 14px}.modalbody{padding:6px 18px 22px}.modalfoot{padding:12px 18px;gap:8px}.modalfoot button{min-height:44px}.modalbody .statrow{font-size:13px;gap:14px}.modalbody .statrow>span:first-child{flex-shrink:0}.modalbody .statrow>span:last-child{min-width:0;overflow-wrap:anywhere}.login-art{padding:26px}.login-art h1{font-size:30px;margin:26px 0 8px}.login-form{padding:32px 24px 40px}.loginbox h2{font-size:26px}.loginbox input{font-size:16px}#toast{bottom:16px;left:16px;right:16px;max-width:none;font-size:13px}}
@media(min-width:761px) and (max-width:980px){.material-row{grid-template-columns:minmax(0,1fr) 70px 100px;gap:12px}.material-identity{grid-column:1/3}.material-unit{grid-column:3}.material-quantity{grid-column:1}.material-price{grid-column:2/4}.material-amount{grid-column:1/3;min-height:0;text-align:left}.material-amount .field-label{display:inline;margin-right:10px}.material-amount strong{display:inline;line-height:36px}.material-remove{grid-column:3;grid-row:3;justify-self:end;align-self:start;min-height:36px}.material-reference{grid-row:4}}
@media(max-width:760px){.material-remove{grid-column:auto;grid-row:auto}.cost-inputs .panel:last-child{margin-bottom:18px}.cost-tabs{width:100%;margin-bottom:20px}.cost-tabs button{flex:1;padding:10px 8px;font-size:13px;min-height:44px}.actual-table td,.comparison-table td{font-size:13px}.actual-table td:first-child{min-width:0}.actual-table td:before,.comparison-table td:before{font-size:10px}.actual-table .project-title{grid-column:1/-1}.actual-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{scroll-behavior:auto!important}}
@media print{.cost-savebar,.summary-jump,.material-remove{display:none!important}.cost-summary{position:static}.costing-layout{display:block}.material-row{break-inside:avoid}.panel{box-shadow:none}.project-table thead{display:table-header-group}.project-table,.project-table tbody{display:table}.project-table tr{display:table-row}.project-table td{display:table-cell}.project-table td:before{display:none}}

/* Readability and touch refinements. */
.card .value{overflow-wrap:anywhere;line-height:1.2}.panelhead{flex-wrap:wrap}.badge.awarded{background:#f5eedb;color:#7b5b1c}.cost-tabs button:focus-visible,button:focus-visible{outline:3px solid #8eab6e;outline-offset:3px}
@media(max-width:760px){.pagehead{flex-wrap:wrap}.pagehead>.actions{width:100%}.cards .value{font-size:clamp(19px,5.6vw,28px);letter-spacing:-.6px}.cost-savebar{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.actual-table,.comparison-table{table-layout:fixed}.project-table .project-title .titlelink{min-height:44px}.cost-summary .statrow>strong{max-width:55%;white-space:normal;overflow-wrap:anywhere}.cost-summary .summary-profit>strong{max-width:none}.material-remove{right:8px;width:44px}.material-identity{padding-right:40px}}
/* Portfolio overview and flexible onsite items. */
.dashboard-cards .value{font-size:clamp(20px,2.05vw,32px)}.dashboard-table .amount{display:block;font-size:13px;font-weight:550;margin-bottom:8px;white-space:nowrap}.dashboard-table .muted{font-size:11px}.dashboard-table .onsite-cell{min-width:140px}.dashboard-table .project-title{max-width:310px}.dashboard-table .project-actions .actions{max-width:180px}.dashboard-table .progress{max-width:160px;margin:8px 0}.dashboard-table .titlelink{min-height:44px}.work-list{display:grid;gap:16px}.work-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px;border:1px solid var(--line);background:#fafbf8;border-radius:12px}.work-name{grid-column:1/-1}.work-remove{justify-self:start}.work-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.work-metrics small{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.work-metrics strong{font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;display:block}#work-summary .notice{margin-bottom:0}.work-row input,.work-row select{background:#fff}.cost-tabs{max-width:100%;flex-wrap:wrap}#work-form .cost-savebar{display:flex;justify-content:space-between;align-items:center}.work-row:focus-within{border-color:#9aae87}
@media(max-width:1100px){.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-cards .value{font-size:26px}.work-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-cards .value{font-size:clamp(18px,5.5vw,26px)}.dashboard-table .project-title{max-width:none}.dashboard-table .project-actions .actions{max-width:none}.dashboard-table .onsite-cell{grid-column:1/-1}.dashboard-table .onsite-cell .progress{max-width:none}.dashboard-table .amount{white-space:normal;overflow-wrap:anywhere;font-size:14px}.work-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:16px}.work-name{grid-column:1/-1}.work-row>div{min-width:0}.work-name>div{min-width:0}.work-remove{grid-column:1/-1;min-height:44px}.work-metrics{gap:18px 12px}.work-metrics strong{font-size:19px}.work-metrics small{font-size:11px}.cost-tabs button{font-size:12px;flex:1 1 90px;padding:10px 6px}#work-form .cost-savebar{display:grid;gap:12px}#work-form .cost-savebar .primary{width:100%;min-height:46px}}
.contract-dates{display:grid;gap:3px;margin-top:10px;font-size:11px;color:var(--muted);line-height:1.6}.contract-dates strong{color:var(--ink);font-weight:500}.document-list,.claim-list{display:grid;gap:12px}.document-row,.claim-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--line);border-radius:11px;background:#fafbf8}.document-row>div,.claim-card>div{min-width:0}.document-name{display:block;overflow-wrap:anywhere;font-size:14px;font-weight:550}.document-row>.small{flex-shrink:0;min-height:44px}.claim-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.document-row .muted,.claim-card .muted{font-size:12px}.claim-card>.actions{flex-shrink:0}.claim-card .help{white-space:pre-wrap;overflow-wrap:anywhere}#doc-file{padding:12px;background:#fafbf8}#document-form>.primary{margin-top:16px}.pagehead .contract-dates{font-size:12px}
@media(max-width:760px){.document-row,.claim-card{align-items:flex-start;flex-wrap:wrap;padding:16px;gap:14px}.document-row>div,.claim-card>div{width:100%}.document-row>.small{width:100%;min-height:44px}.claim-card>.actions{display:grid;grid-template-columns:1fr 1fr}.claim-card .small{min-height:44px}.dashboard-table .project-actions .actions{grid-template-columns:1fr 1fr}.contract-dates{font-size:11px}.cost-tabs button{flex-basis:40%}}
