:root{--navy:#072459;--blue:#0070c0;--blue2:#0d88d4;--pale:#eef6fc;--line:#d7e3ee;--ink:#16324b;--muted:#5e7588;--good:#137a4b;--warn:#9a5d00;--bad:#a52b2b;--bg:#f4f7fa}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px "Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--navy);padding:9px 13px;cursor:pointer}button:hover{border-color:var(--blue);background:#f5fbff}button.primary{background:var(--blue);border-color:var(--blue);color:#fff}button.primary:hover{background:var(--blue2)}button.danger{color:var(--bad);border-color:#efc6c6}button.small{padding:5px 8px;font-size:12px}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid #bdcbd8;border-radius:4px;background:#fff;color:var(--ink);padding:8px}textarea{min-height:72px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #add9f3;border-color:var(--blue)}label{display:block;color:#436177;font-size:12px;font-weight:600}label input,label select,label textarea{display:block;margin-top:5px;font-weight:400;font-size:14px}
.app{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.side{background:var(--navy);color:#fff;padding:22px 15px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;border-bottom:1px solid #36517d;padding:0 8px 20px;margin-bottom:18px}.brand-mark{width:40px;height:40px;border-radius:9px;background:#fff;color:var(--blue);display:grid;place-items:center;font-weight:800;font-size:21px}.brand-title{font-size:18px;font-weight:700}.brand-sub{font-size:11px;color:#bad5ef;margin-top:2px}.nav{display:grid;gap:5px}.nav button{color:#e4effa;background:transparent;border-color:transparent;text-align:left;width:100%}.nav button:hover,.nav button.active{background:#0d3b75;border-color:#2a659d;color:#fff}.side-foot{margin-top:auto;color:#a9c4df;font-size:11px;line-height:1.5;padding:12px 8px}.main{min-width:0}.top{background:#fff;border-bottom:1px solid var(--line);padding:14px 26px;display:flex;justify-content:space-between;gap:16px;align-items:center}.top h1{font-size:20px;margin:0;color:var(--navy)}.top p{margin:4px 0 0;color:var(--muted);font-size:12px}.top-right{display:flex;gap:10px;align-items:center;min-width:250px}.top-right label{min-width:190px}.page{padding:24px 28px;max-width:1550px}.notice{background:#eaf5fd;border-left:4px solid var(--blue);padding:12px 14px;line-height:1.45;margin-bottom:18px;border-radius:3px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.span2{grid-column:span 2}.span3{grid-column:span 3}.span4{grid-column:span 4}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:16px}.card .n{font-size:28px;font-weight:700;color:var(--blue)}.card .k{color:var(--muted);font-size:12px;margin-top:4px}.panel{background:#fff;border:1px solid var(--line);border-radius:7px;padding:18px;margin-bottom:18px}.panel h2{margin:0 0 14px;font-size:17px;color:var(--navy)}.panel h3{margin:18px 0 10px;font-size:14px;color:var(--navy)}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.section-head h2{margin:0}.actions,.toolbar{display:flex;gap:8px;flex-wrap:wrap}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:5px}table{border-collapse:collapse;width:100%;min-width:740px}th{background:var(--pale);color:var(--navy);font-size:12px;text-align:left;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:9px;border-bottom:1px solid #e7eef4;vertical-align:top}tr:last-child td{border-bottom:0}td input,td select{padding:6px;font-size:13px;min-width:125px}.muted{color:var(--muted);font-size:12px}.right{text-align:right}.badge{display:inline-block;border-radius:15px;padding:4px 8px;font-size:11px;background:#e9f3fb;color:#145b8f}.badge.good{background:#e7f6ee;color:var(--good)}.badge.warn{background:#fff1d9;color:var(--warn)}.badge.bad{background:#fde9e9;color:var(--bad)}.bar{height:8px;background:#e7eef4;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;background:var(--blue)}.empty{padding:25px;text-align:center;color:var(--muted)}.form-actions{display:flex;gap:8px;margin-top:15px}.route{color:#195f92;font-size:12px;line-height:1.5}.kv{display:grid;grid-template-columns:170px 1fr;border-bottom:1px solid #e7eef4;padding:7px 0;gap:10px}.kv:last-child{border-bottom:0}.kv b{color:#436177;font-size:12px}.step-list{display:grid;gap:8px}.step{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:5px;padding:9px}.step .dot{width:10px;height:10px;border-radius:50%;background:#b6c5d0}.step.current .dot{background:var(--blue)}.step.done .dot{background:var(--good)}.step.returned .dot{background:var(--bad)}.modal-back{position:fixed;inset:0;background:#061a32aa;display:grid;place-items:center;padding:24px;z-index:20}.modal{width:min(960px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:8px;padding:22px;box-shadow:0 12px 35px #0005}.modal h2{margin:0 0 17px;color:var(--navy)}.toast{position:fixed;right:22px;bottom:22px;background:var(--navy);color:#fff;padding:13px 17px;border-radius:6px;box-shadow:0 4px 15px #0004;display:none;z-index:30;max-width:480px}.toast.show{display:block}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#072459,#0d88d4)}.login-card{width:min(460px,calc(100% - 32px));background:#fff;border-radius:10px;padding:28px;box-shadow:0 18px 50px #001b4055}.login-card h1{color:var(--navy);margin:0 0 6px}.login-card .brandline{color:var(--blue);font-weight:700;margin-bottom:18px}.login-card .field{margin-bottom:12px}.login-card .actions{margin-top:16px}.login-card .hint{background:var(--pale);padding:10px;border-radius:4px;margin-top:18px;font-size:12px;line-height:1.5}.tag{display:inline-block;padding:3px 7px;border-radius:12px;background:#e9f3fb;color:#195f92;font-size:11px;margin:2px}.error{color:var(--bad);min-height:20px;margin-top:8px;font-size:12px}.modal .table-wrap{margin-top:12px}.item-grid{display:grid;grid-template-columns:2fr .7fr .7fr auto;gap:8px;align-items:end;margin-bottom:8px}.item-grid label{min-width:0}.item-grid button{height:36px}.smalltext{font-size:11px;color:var(--muted)}
@media(max-width:1100px){.app{grid-template-columns:210px 1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.span3,.span4{grid-column:span 2}}@media(max-width:700px){.app{display:block}.side{position:static}.nav{grid-template-columns:repeat(2,minmax(0,1fr))}.top{display:block}.top-right{margin-top:12px}.page{padding:16px}.grid,.grid.two,.grid.three,.cards{grid-template-columns:1fr}.span2,.span3,.span4{grid-column:span 1}.item-grid{grid-template-columns:1fr}}
/* Document workspace revision */
.side{background:#0b2442}.page{max-width:1600px;margin:auto;width:100%}.panel{border-radius:12px;box-shadow:0 3px 18px #16324b06}.modal{width:min(1100px,96vw);padding:28px;border-radius:16px}.form-section{padding:22px;background:#f8fafc;border:1px solid #e1e8ef;border-radius:10px;margin:18px 0}.form-section h3{margin:0 0 18px;color:#0b2442}.item-grid{grid-template-columns:minmax(220px,3fr) 90px 110px 85px 40px;gap:12px}.unpriced .item-grid{grid-template-columns:minmax(220px,3fr) 90px 85px 40px}.unpriced .item-grid label:has([data-item="rate"]){display:none}.route-editor{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:10px;margin-bottom:12px;align-items:end}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}input[type="checkbox"]{display:inline-block;width:auto;margin-right:8px}details{margin-top:18px}summary{cursor:pointer;color:#0070c0;font-weight:600;padding:10px 0}.form-actions{position:sticky;bottom:-28px;background:white;padding:16px 0;border-top:1px solid #e1e8ef}.notice{line-height:1.7}.side-foot{font-size:12px}@media(max-width:700px){.route-editor,.grid.two,.item-grid,.unpriced .item-grid{grid-template-columns:1fr}.modal{padding:16px}}

.side{height:100dvh;position:sticky;top:0;overflow-y:auto}.nav{flex-shrink:0}.modal{max-height:calc(100dvh - 30px);overflow-y:auto;scrollbar-gutter:stable}.modal-back{padding:15px}.form-actions{bottom:-28px;z-index:2}.job-event{border-bottom:1px solid #dce6ee;padding:10px 0;line-height:1.65}.job-event b{text-transform:capitalize}.toolbar{margin-bottom:12px}#jobItems{overflow-x:auto}.table-wrap table{min-width:650px}@media(max-width:700px){.side{height:auto;position:static;max-height:45vh}.form-actions{bottom:-16px}.item-grid{min-width:0}.modal .grid.two{grid-template-columns:1fr}}

.party-editor-back{z-index:3000}.permission-choice{display:flex;align-items:center;gap:8px;margin:9px 0}.permission-choice input{width:auto!important}.licence-message{padding:12px;margin-top:10px;border-radius:8px}.licence-message p{margin:7px 0}.licence-message.expired{background:#fff1e8;border:1px solid #cf6b28;color:#713709}.licence-message.valid{background:#edf7f0;color:#205c35}button:disabled{opacity:.55;cursor:not-allowed}fieldset{border:1px solid #ced9e5;border-radius:8px;padding:12px}legend{font-weight:bold}
/* Phase 1 workspace */
.p1-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.p1-filters{display:grid;grid-template-columns:2fr 2fr 1fr 1fr;gap:12px;margin-bottom:18px}
.p1-summary{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:22px;margin:18px 0}
.p1-summary span{display:block;font-size:12px;color:#56708a;margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}
.p1-summary p{font-size:13px;line-height:1.6;margin:8px 0}
.p1-summary b{display:block}.p1-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.p1-content{display:grid;grid-template-columns:190px minmax(0,1fr);gap:12px 20px}
.p1-content dt{font-weight:600;text-transform:capitalize}.p1-content dd{margin:0}
.p1-revision{border:1px solid #dae4ee;border-radius:8px;margin:16px 0;padding:18px}
details summary{cursor:pointer;padding:10px 0;font-weight:600}
.p1-notification{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e1e8ef;padding:18px 14px}
.p1-notification.unread{background:#eef6ff;border-left:4px solid #1673bd}
.p1-link{display:inline-block;padding:8px 12px;margin:4px 4px 4px 0;border:1px solid #b6cee3;border-radius:5px;color:#075ea3;text-decoration:none;font-weight:600;font-size:13px}
.p1-stage,.p1-clause{border:1px solid #d7e2ec;padding:16px;margin:12px 0;border-radius:8px;background:#f9fbfe}
.p1-stage .toolbar,.p1-clause .toolbar{margin-top:10px}
.p1-block{margin-bottom:20px;border-left:4px solid #b7791f;background:#fff8e7;color:#704700;line-height:1.6}
#p1Admin h3{margin-top:28px}#p1Admin table input{min-width:70px}#p1Admin table input[name=prefix]{min-width:150px}
#p1Form input[type=file]{height:auto;white-space:normal}#p1Form .form-actions{position:sticky;bottom:-24px;background:white;padding:15px 0;border-top:1px solid #dce5ee;margin-bottom:0}
.modal{max-height:calc(100dvh - 44px);overflow-y:auto;overscroll-behavior:contain}.main{min-width:0}.panel{overflow-wrap:anywhere}
@media(max-width:1000px){.p1-summary{grid-template-columns:1fr 1fr}.p1-filters{grid-template-columns:1fr 1fr}.p1-content{grid-template-columns:140px minmax(0,1fr)}}
@media(max-width:650px){.p1-stats{grid-template-columns:1fr 1fr}.p1-summary,.p1-content{grid-template-columns:1fr}.p1-content dd{margin-bottom:12px}.p1-notification{align-items:flex-start}.p1-filters{grid-template-columns:1fr}}
:root { --costing-border:#d9e4ef; }
.gc-job { margin:22px 0; padding:18px; border:1px solid var(--costing-border); border-radius:10px; }
.gc-job legend { color:#12365b; font-weight:700; padding:0 8px; }
.gc-section { margin:14px 0; padding:14px; border:1px solid var(--costing-border); border-radius:8px; background:#f7faff; }
.gc-section summary { padding:8px 0; font-weight:600; cursor:pointer; }
.gc-section .section-head>label { flex:1; }
.gc-expense { display:grid; grid-template-columns:minmax(120px,2fr) minmax(90px,1fr) auto; gap:10px; align-items:end; margin:10px 0; }
.gc-cost-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; align-items:end; padding:14px 0; border-top:1px solid var(--costing-border); }
.gc-sticky { position:sticky; top:0; z-index:2; padding:10px 0; background:white; }
.gc-sticky-bottom { position:sticky; bottom:0; background:white; padding:14px 0; z-index:2; border-top:1px solid var(--costing-border); }
#gcForm fieldset { min-width:0; }
#gcForm input[readonly] { background:#eaf0f6; }
#gcForm select[multiple] { min-height:130px; }
@media(max-width:650px) { .gc-expense,.gc-cost-row { grid-template-columns:1fr; } .gc-job { padding:10px; } }

.go-point{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:start;margin:10px 0}.go-point textarea{min-height:65px}.go-point>span{padding-top:12px;color:#406888}#goPoints fieldset{margin:15px 0}#creatorForm fieldset{margin:16px 0}.creator-logo{max-width:300px;max-height:100px;object-fit:contain}#creatorForm select[multiple]{min-height:100px}@media(max-width:680px){.go-point{grid-template-columns:24px minmax(0,1fr)}.go-point button{grid-column:2;justify-self:start}}
/* Additional offer tables only; estimation and standard offer sections are unchanged. */
#goBlocks fieldset{min-width:0;margin:18px 0;padding:16px}
.go-table-editor{margin:18px 0;border:1px solid #cfdfed;border-radius:8px;background:#f8fbfe;padding:14px}
.go-table-editor h4{margin:0 0 8px;color:var(--navy)}.go-table-editor .section-head{margin-bottom:8px;flex-wrap:wrap}.go-table-editor .section-head span{font-size:12px;color:var(--muted)}
.go-table-editor .muted{line-height:1.6}.go-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:10px;margin:12px 0}
.go-column{min-width:0;background:#fff;border:1px solid #d6e2ed;border-radius:6px;padding:12px}.go-column>b{font-size:12px;color:#436177}.go-column>label{margin:10px 0}.go-column-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.go-column .toolbar{margin:12px 0 0;gap:5px}
.go-table-data{background:#fff;margin-bottom:12px}.go-table-data th{white-space:normal;overflow-wrap:anywhere;text-align:center}.go-table-data td{padding:7px}.go-table-data tr:nth-child(even){background:#f3f8fc}.go-table-data textarea{min-width:0;min-height:58px;padding:6px;font-size:13px;resize:vertical}.go-row-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.go-row-actions button{font-size:11px;padding:4px 7px}
.go-preview-panel{margin:12px 0 4px;padding:0 12px 10px;background:#fff;border:1px solid #d6e2ed;border-radius:6px}.go-table-preview{table-layout:fixed;min-width:0!important;width:100%;margin-bottom:10px;border:1px solid #c8d8e7}.go-table-preview th{white-space:normal;text-align:center;background:#112d50;color:#fff;font-size:12px}.go-table-preview th,.go-table-preview td{overflow-wrap:anywhere;white-space:pre-wrap;border:1px solid #c8d8e7;padding:8px 6px}.go-table-preview td{font-size:12px}.go-table-preview tr:nth-child(odd) td{background:#f4f8fb}
@media(max-width:640px){#goBlocks fieldset{padding:10px}.go-table-editor{padding:10px}.go-columns{grid-template-columns:1fr}.go-preview-panel{padding:0 6px 8px}.go-table-preview th,.go-table-preview td{padding:6px 3px;font-size:11px}}

/* Estimation editor only: clear job boundaries and compact section entries. */
.modal.gc-estimate-modal{width:min(1480px,calc(100vw - 32px));padding:20px;--gc-topbar-height:130px;scroll-padding-top:calc(var(--gc-topbar-height) + 10px);scroll-padding-bottom:90px;background:#f5f8fc}
.gc-estimate-modal .gc-estimate-header{top:0;margin:-20px -20px 18px;padding:16px 20px 12px;border-bottom:1px solid #ccdbea;z-index:6;background:#fff}
.gc-estimate-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gc-estimate-topline h2{font-size:20px;margin:0;line-height:1.3}
.gc-estimate-navigation{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:12px;padding-top:10px;border-top:1px solid #e5edf5}
.gc-location{min-width:0;flex:1}.gc-location strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;color:#163b61}
.gc-eyebrow{font-size:10px;font-weight:700;letter-spacing:.08em;color:#58738c}
.gc-jump{display:flex;align-items:center;gap:10px;flex:0 1 360px;white-space:nowrap}.gc-jump select{min-width:0;margin:0;padding:7px 9px;font-size:12px}
.gc-estimate-overview{background:white;padding:14px 16px;border:1px solid #d9e4ef;border-radius:9px}
.gc-budget-row{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:center}.gc-budget-row .notice{margin:0;padding:10px 12px;font-size:12px}
.gc-estimate-help{font-size:12px;line-height:1.6;color:#466580;margin:10px 0 0}.gc-pricing-help{margin:5px 0 0;font-size:12px;color:#49647e}.gc-pricing-help summary{padding:5px 0;font-size:12px}.gc-pricing-help p{line-height:1.6;margin:6px 0}
.gc-estimate-job{margin:24px 0 0;border:1px solid #bdcfdf;border-left:4px solid #245f91;border-radius:10px;background:white;scroll-margin-top:12px;box-shadow:0 2px 5px #16324b08}
.gc-job-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;background:#eaf2fa;border-bottom:1px solid #ccdbe9;padding:15px 16px;border-radius:6px 9px 0 0}
.gc-job-identity,.gc-section-identity{display:flex;align-items:center;gap:12px;min-width:0}.gc-job-identity>label,.gc-section-identity>label{flex:1;min-width:0}
.gc-job-number{padding:10px 9px;border-radius:5px;background:#163b61;color:white;font-size:12px;font-weight:700;white-space:nowrap}
.gc-job-identity input{font-weight:600!important}.gc-job-body{padding:0 14px 14px}.gc-job-body>[data-job-custom]{padding:12px 0 0}
.gc-pricing-control{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;min-width:0}.gc-pricing-control>label{width:114px;flex-shrink:0}.gc-pricing-control>button{white-space:nowrap;min-height:36px;font-size:12px;color:#075f9e;border-color:#9cbed9;background:#fff}
#gcForm.gc-estimate-form .gc-pricing-control input[readonly]{font-weight:700;color:#155e93;background:#edf5fc;text-align:center}
.gc-estimate-section{margin:14px 0 0;border:1px solid #d1dfeb;border-radius:7px;background:#fff;scroll-margin-top:12px}
.gc-section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:11px 12px;background:#f4f8fc;border-bottom:1px solid #d5e1ec;border-radius:6px 6px 0 0;position:sticky;top:var(--gc-topbar-height);z-index:3}
.gc-section-number{font-weight:700;color:#1b628f;font-size:13px;min-width:28px;text-align:center}.gc-section-identity input{font-weight:600!important}
.gc-section-meta{display:flex;justify-content:space-between;gap:10px;padding:6px 12px;background:#fbfdff;color:#61798d;font-size:11px;line-height:1.4;border-bottom:1px solid #e3ebf2}
.gc-estimate-section .gc-cost-row{display:grid;grid-template-columns:28px minmax(180px,1fr) 84px 86px 125px 94px;gap:5px 10px;align-items:end;padding:9px 12px;margin:0;border-top:0;border-bottom:1px solid #e5ecf3;position:relative;scroll-margin-top:12px}
.gc-estimate-section .gc-cost-row:nth-child(even){background:#f8fafc}.gc-estimate-section .gc-cost-row:last-child{border-bottom:0}
.gc-estimate-section .gc-manpower-row{grid-template-columns:28px minmax(160px,1.8fr) 64px 85px 92px minmax(170px,1.6fr) 98px 94px}
.gc-estimate-section .gc-cost-row label{font-size:11px;min-width:0}.gc-estimate-section .gc-cost-row input,.gc-estimate-section .gc-cost-row select{padding:7px 8px;margin-top:3px;font-size:13px;min-width:0;scroll-margin-top:12px}
.gc-row-number{align-self:center;font-size:11px;font-weight:700;color:#708599;text-align:center;padding-top:14px}
.gc-estimate-section .gc-remove-row{font-size:11px;padding:8px 7px;min-height:32px;color:#7e5260;background:transparent}
.gc-estimate-section .gc-row-total{grid-column:2 / -1;margin:0;color:#4e6d85;font-size:11px;line-height:1.45;padding:1px 0 0;overflow-wrap:anywhere}
.gc-no-rows{padding:12px;margin:0;color:#738597;font-size:12px}
.gc-section-footer{padding:10px 12px;border-top:1px solid #dbe6ef;background:#fcfdff;border-radius:0 0 6px 6px}
.gc-row-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.gc-row-actions>button:first-child{font-size:12px;padding:7px 10px;border-color:#b8d2e7;color:#075f9e}
.gc-row-actions .gc-remove-section{color:#7a6970;background:transparent;border-color:transparent;font-size:11px}
.gc-section-total{font-size:12px;font-weight:600;color:#204f73;background:#eaf3fa;border-radius:4px;margin:8px 0 0;padding:9px 10px;line-height:1.5;overflow-wrap:anywhere}
.gc-add-section{margin:16px 0 12px}.gc-add-section>span{display:block;color:#607991;font-size:11px;margin-bottom:8px}.gc-add-section .toolbar{margin:0;gap:6px}.gc-add-section button{font-size:12px;padding:7px 10px}
.gc-job-summary{background:#f1f6fa;border:1px solid #d5e2ed;border-radius:6px;padding:12px}.gc-job-summary h3{margin:0 0 10px;color:#193e60;font-size:13px}.gc-job-summary>small{display:block;color:#627d92;line-height:1.5;margin-top:5px;font-size:11px}
.gc-job-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;font-size:12px;line-height:1.7}.gc-job-totals>div{padding:5px 0;border-bottom:1px solid #dce6ee}.gc-job-totals>p{grid-column:1 / -1;margin:3px 0;color:#184f79;font-size:14px}
.gc-job-actions{text-align:right;margin-top:10px}.gc-job-actions button{font-size:11px;background:transparent}
.gc-new-job{padding:18px 0}.gc-new-job button{font-weight:600;color:#075f9e;border-color:#98bbd5}
.gc-final-adjustments{padding:16px;border:1px solid #c4d6e5;background:white;border-radius:8px;scroll-margin-top:12px}.gc-adjustments-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.gc-adjustments-heading h3{margin:5px 0 0;font-size:15px}.gc-adjustments-heading button{color:#075f9e;font-size:12px;border-color:#9cbed9;white-space:nowrap}
.gc-adjustment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gc-final-adjustments>.muted{margin:10px 0 0;line-height:1.6}.gc-negotiation{margin-top:16px;padding:14px 16px;background:white;border:1px solid #d9e4ef;border-radius:8px}.gc-negotiation h3{font-size:14px;margin:0 0 10px}.gc-negotiation>label{max-width:320px}
.gc-estimate-modal .gc-sticky-bottom{bottom:0;margin:18px -20px -20px;padding:13px 20px;border-top:1px solid #c6d8e6;justify-content:flex-end;z-index:5;background:white}
.gc-estimate-modal [tabindex="-1"]:focus{outline:2px solid #91bddb;outline-offset:2px}
@media(max-width:1150px){.gc-estimate-section .gc-manpower-row{grid-template-columns:24px minmax(120px,1.4fr) 58px 74px 78px minmax(128px,1.4fr) 82px 82px;gap:5px 7px}.gc-job-heading,.gc-section-heading{gap:14px}}
@media(max-width:960px){.gc-estimate-section .gc-cost-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;padding:10px 12px 10px 44px}.gc-cost-row .gc-row-number{position:absolute;top:13px;left:10px;padding:0}.gc-estimate-section .gc-cost-row>label:first-of-type{grid-column:1 / -1}.gc-estimate-section .gc-row-total{grid-column:1 / -1}.gc-estimate-section .gc-remove-row{grid-column:2;justify-self:end}.gc-estimate-navigation{gap:14px}.gc-jump{flex-basis:300px}.gc-job-totals{grid-template-columns:1fr}}
@media(max-width:640px){.modal.gc-estimate-modal{width:calc(100vw - 20px);padding:12px;max-height:calc(100dvh - 24px)}.gc-estimate-modal .gc-estimate-header{top:0;margin:-12px -12px 12px;padding:12px}.gc-estimate-topline h2{font-size:16px}.gc-estimate-topline button{padding:7px 10px}.gc-estimate-navigation{display:block;margin-top:9px;padding-top:8px}.gc-location strong{font-size:12px}.gc-jump{margin-top:9px;width:100%}.gc-jump select{flex:1}.gc-budget-row{grid-template-columns:1fr;gap:10px}.gc-estimate-overview{padding:12px}.gc-job-heading,.gc-section-heading{grid-template-columns:1fr;gap:9px;padding:10px}.gc-job-number{padding:9px 7px;font-size:11px}.gc-job-identity,.gc-section-identity{gap:8px}.gc-pricing-control{justify-self:end}.gc-pricing-control>label{width:106px}.gc-pricing-control>button{font-size:11px}.gc-job-body{padding:0 8px 10px}.gc-estimate-job{margin-top:18px}.gc-section-heading{top:var(--gc-topbar-height)}.gc-section-meta{flex-wrap:wrap;gap:3px}.gc-estimate-section .gc-cost-row{padding-left:35px;gap:7px 9px}.gc-row-number{left:7px!important}.gc-adjustment-fields{grid-template-columns:1fr}.gc-adjustments-heading{align-items:flex-start}.gc-adjustments-heading h3{font-size:13px}.gc-adjustments-heading button{font-size:11px;padding:8px}.gc-estimate-modal .gc-sticky-bottom{bottom:0;margin:14px -12px -12px;padding:12px}.gc-estimate-modal .gc-sticky-bottom button{width:100%}}

/* Native invoice workspace; Phase 1 estimate / offer styling is unchanged. */
.invoice-workspace .invoice-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.invoice-workspace .invoice-metrics>div{background:#eef6fc;border:1px solid #d3e3f0;border-radius:8px;padding:14px}
.invoice-workspace .invoice-metrics span{display:block;color:#4c6780;font-size:12px;margin-bottom:8px}
.invoice-workspace .invoice-metrics strong{font-size:19px;color:#123c60;overflow-wrap:anywhere}
.invoice-workspace .toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.invoice-workspace .invoice-po{padding:16px 0;border-bottom:1px solid #dbe5ee;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.invoice-workspace .invoice-preserve{white-space:pre-wrap;overflow-wrap:anywhere}
.invoice-workspace .invoice-decision{background:#f4f8fc;border:1px solid #c7dbe9;border-radius:8px;padding:16px;margin:20px 0}
.invoice-workspace details{margin-top:14px}
.invoice-lines{min-width:650px;table-layout:fixed}
.invoice-lines th:first-child{width:43%}
.invoice-lines th:nth-child(2){width:13%}
.invoice-lines th:nth-child(3){width:12%}
.invoice-lines th:nth-child(4){width:18%}
.invoice-lines th:last-child{width:14%}
.invoice-lines input,.invoice-lines textarea{width:100%;min-width:0}
.invoice-selector{max-height:240px;overflow:auto}
[data-invoice-stage]{margin-bottom:14px;padding:14px;border:1px solid #c9dbea;border-radius:8px}
[data-invoice-stage] .toolbar{display:flex;gap:8px;margin-top:10px}
#invoiceForm [hidden]{display:none!important}
@media(max-width:900px){.invoice-workspace .invoice-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-workspace .invoice-po{display:block}}
@media(max-width:520px){.invoice-workspace .invoice-metrics{grid-template-columns:1fr}}

#invoiceForm .invoice-references{margin:16px 0;padding:16px;border:1px solid #c7dbe9;border-radius:8px;background:#f7fbfe}
#invoiceForm .invoice-references legend{font-weight:700;color:#16334e}
#invoiceForm .invoice-references input[readonly]{background:#eef3f7}

#invoiceForm .invoice-bank{margin:16px 0;padding:16px;border:1px solid #c7dbe9;border-radius:8px;background:#f7fbfe}
#invoiceForm .invoice-bank legend{font-weight:700;color:#16334e}

/* Unified Admin document numbering. */
.numbering-table{min-width:780px}.numbering-table th[scope=row]{min-width:170px;text-align:left;background:#f5f9fd}.numbering-table small{display:block;font-weight:400;color:#536b82;margin-top:5px}.numbering-table input[name=prefix]{min-width:185px}.numbering-table input[type=number]{min-width:82px}.numbering-table output{display:block;min-width:195px;font-weight:600;color:#123b62;overflow-wrap:anywhere}.numbering-workspace h3{margin-top:26px}.numbering-workspace .permission-choice{margin-top:8px;white-space:nowrap}

/* Purchasing editors keep item and clause boundaries visible in long POs. */
#pchEditor fieldset,#pchSettings fieldset{border:1px solid #c7dbe9;border-radius:8px;padding:16px;margin:14px 0;background:#f7fbfe}
#pchEditor [data-item]{border-left:4px solid #0070c0}
#pchEditor textarea{min-height:78px}#pchEditor .pch-point,#pchSettings .pch-point{display:flex;gap:12px;align-items:flex-end;margin:10px 0}.pch-point label{flex:1}
#pchSettings [data-stage]{background:white;border-left:4px solid #16334e}
@media(max-width:640px){#pchEditor .pch-point,#pchSettings .pch-point{display:block}.pch-point button{margin-top:6px}}
