.construction-workspace{font-size:12px;color:#2f435e;min-width:0}.cw-top{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #dfe6ef;margin-bottom:12px}.cw-top>small{color:#8190a3;font-size:10px;white-space:nowrap}.cw-tabs{display:flex;gap:3px;overflow:auto}.cw-tabs button{background:none;border:0;border-radius:0;padding:11px 14px;font-size:12px;color:#76869b;border-bottom:2px solid transparent;white-space:nowrap}.cw-tabs button[aria-pressed=true]{color:#2463a9;border-color:#2463a9}.cw-tabs button span{margin-left:6px;font-size:10px;color:#91a0b3}.cw-scope{font-size:11px;color:#7c8ba1;margin:0 0 20px;line-height:1.55}.cw-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.cw-section-title h2{font-size:17px;letter-spacing:-.2px;color:#304a6b}.cw-section-title p{font-size:11px;color:#8794a5;margin:6px 0 0}.cw-section-title p>span:not(.cw-badge){margin-left:8px}.cw-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.cw-actions button,.cw-actions a.button-link{font-size:11px}.cw-muted{font-size:11px;color:#7b8c9f;line-height:1.55}.cw-notice{border:1px solid #dfd8c5;background:#fffaf0;border-radius:6px;padding:11px 14px;color:#85704a;font-size:11px;line-height:1.65;margin:12px 0 16px}.cw-notes{white-space:pre-wrap;line-height:1.6;color:#5c718a;font-size:12px}.cw-panel{background:#fff;border:1px solid #e0e7f0;border-radius:7px;margin:0 0 16px;overflow:hidden}.cw-panel>header{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e7edf4}.cw-panel h3{font-size:13px;letter-spacing:0;font-weight:600}.cw-table-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.cw-table{width:100%;font-size:11px;border-collapse:collapse}.cw-table th,.cw-table td{padding:10px 13px;border-bottom:1px solid #edf1f5;line-height:1.5;vertical-align:middle;text-align:left}.cw-table th{background:#f7f9fc;font-size:10px;font-weight:600;color:#8592a4;white-space:nowrap}.cw-table small{display:block;font-size:10px;margin-top:3px;color:#8b97a8;line-height:1.4}.cw-table .cw-number{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.cw-table .cw-description{min-width:210px;max-width:410px;white-space:pre-wrap}.cw-table .cw-source{font-size:10px;color:#7c8da4;min-width:150px;max-width:230px;overflow-wrap:anywhere}.cw-table .cw-link{padding:0;border:0;background:transparent;color:#235c9f;font-size:11px;text-align:left;font-weight:600}.cw-table-empty,.cw-empty-cell{text-align:center!important;color:#91a0b2;padding:28px!important}.cw-badge{display:inline-flex;padding:3px 8px;border-radius:12px;background:#edf2f7;color:#73859d;font-size:10px;white-space:nowrap;line-height:1.5}.cw-badge.approved{background:#e9f4ed;color:#487e5d}.cw-badge.review{background:#fff4dd;color:#987b43}.cw-badge.cancelled{background:#f1f1f3;color:#989da7}.cw-empty{padding:38px 24px;background:#fff;border:1px solid #e1e8f1;border-radius:7px;text-align:center}.cw-empty h3{font-size:15px;color:#546b88;letter-spacing:-.1px}.cw-empty p{color:#91a0b2;max-width:570px;margin:10px auto 18px;font-size:12px;line-height:1.6}.cw-total{padding:13px 16px;display:flex;justify-content:flex-end;align-items:center;gap:23px;background:#f8fafc;color:#7a8ba1;font-size:11px;border-top:1px solid #e7edf4}.cw-total strong{font-size:17px;font-variant-numeric:tabular-nums;color:#345d8c;font-weight:600}.cw-header-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-bottom:12px}.cw-header-fields>label{flex:1;min-width:220px;max-width:490px}.cw-header-fields.measure>label:first-child{flex:2}.cw-header-fields.measure>label:not(:first-child){min-width:155px;max-width:190px}.cw-editor label,.cw-reason-form label{display:grid;gap:5px;color:#7c8da4;font-size:10px}.cw-editor input,.cw-editor select,.cw-editor textarea,.cw-reason-form textarea{border-color:#dce4ee;font-size:11px;padding:8px 9px;border-radius:5px}.cw-field-action{padding-bottom:1px}.cw-editor .cw-table input{width:96px}.cw-editor .cw-table [data-key=code]{width:75px}.cw-editor .cw-table select{width:92px}.cw-editor .cw-table [data-key=phaseId]{width:170px}.cw-editor .cw-table [data-key=sourceReference]{width:220px}.cw-editor .cw-table textarea{width:250px;min-height:59px;max-height:160px;resize:vertical}.cw-editor .cw-table [data-key=unit]:invalid{border-color:#d0a565;background:#fffcf5}.cw-editor .cw-table td{padding:8px}.cw-editor .cw-table td button{font-size:10px;padding:6px 8px}.cw-editor-scroll{border:1px solid #e0e7f0;background:#fff;border-radius:6px;overflow:hidden}.cw-editor [data-cw-measure-lines]{border:1px solid #e0e7f0;border-radius:6px;overflow:hidden;background:#fff}.cw-add-row{display:flex;align-items:center;gap:14px;margin:11px 0 15px}.cw-add-row button{font-size:11px}.cw-notes-field{margin-top:17px}.cw-notes-field textarea{min-height:90px}.cw-form-footer{display:flex;justify-content:flex-end;align-items:center;gap:20px;border-top:1px solid #dfe6ef;margin-top:18px;padding:14px 0;position:sticky;bottom:0;background:#f7f8fc;z-index:2}.cw-form-footer>span{font-size:10px;color:#8291a5;margin-right:auto}.cw-error{font-size:12px;line-height:1.55;border:1px solid #e9c5c1;border-radius:6px;color:#a14f47;background:#fff6f5;padding:12px 15px;margin:16px 0}.cw-error[hidden]{display:none}.cw-approval{background:#edf4fe;border:1px solid #d6e3f6;padding:14px 17px;border-radius:7px;display:flex;justify-content:space-between;align-items:center;gap:20px}.cw-approval label{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.5;color:#627f9e}.cw-approval input{width:16px;min-height:16px;height:16px;accent-color:#2f6eb5;flex-shrink:0}.cw-approval button{white-space:nowrap}.cw-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:1px solid #e0e7f0;border-radius:7px;margin:0 0 16px;padding:14px 0}.cw-summary>span{display:block;font-size:10px;color:#8794a8;padding:0 15px;border-left:1px solid #e9edf3}.cw-summary>span:first-child{border-left:0}.cw-summary strong{display:block;font-size:17px;line-height:1.2;margin-top:6px;color:#3e608b;font-weight:600;font-variant-numeric:tabular-nums}.cw-summary>span:nth-child(3) strong{color:#2367af}.cw-record-context{display:flex;align-items:center;gap:18px;font-size:11px;color:#8190a4;margin:16px 0}.cw-bottom-actions{margin:18px 0}.cw-reason-form{border:1px solid #e0d4ba;background:#fffbf1;border-radius:7px;padding:18px;margin:15px 0;max-width:760px}.cw-reason-form h3{font-size:14px;letter-spacing:0}.cw-reason-form p{font-size:11px;color:#8d7b58;line-height:1.5}.cw-reason-form textarea{background:#fff;min-height:80px;margin-bottom:12px}.cw-finance-bridge{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f2f6fd;border:1px solid #dce7f4;border-radius:7px;padding:12px 15px;margin:0 0 18px;font-size:11px;color:#7e8da3}.cw-finance-bridge strong{font-size:16px;color:#355e8b;font-weight:600}.cw-finance-bridge a{margin-left:auto}.cw-finance-bridge small{display:block;font-size:10px}
@media(max-width:1000px){.cw-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 0}.cw-summary>span:nth-child(4){border-left:0}.cw-top{align-items:flex-start;flex-direction:column;gap:6px;padding-bottom:8px}.cw-top>small{white-space:normal}.cw-section-title{flex-wrap:wrap}.cw-approval{align-items:flex-start;flex-direction:column;gap:13px}.cw-summary strong{font-size:15px}.cw-header-fields{gap:10px}.cw-form-footer>span{max-width:260px;line-height:1.5}}
@media(max-width:600px){.cw-summary{grid-template-columns:1fr 1fr}.cw-summary>span:nth-child(odd){border-left:0}.cw-summary>span:nth-child(even){border-left:1px solid #e9edf3}.cw-header-fields>label,.cw-header-fields.measure>label:first-child{min-width:100%;max-width:none}.cw-header-fields.measure>label:not(:first-child){min-width:calc(50% - 10px);max-width:calc(50% - 5px)}.cw-table .cw-description{min-width:180px}.cw-form-footer>span{display:none}.cw-form-footer{padding:11px 0}.cw-add-row{align-items:flex-start;flex-direction:column;gap:8px}.cw-section-title h2{font-size:16px}.cw-finance-bridge a{margin-left:0}.cw-tabs button{padding:10px 12px;font-size:11px}}
.cw-article-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:12px 15px;border-bottom:1px solid #e7edf4}.cw-article-search label{display:grid;gap:5px;font-size:10px;color:#7c8da4;flex:1;min-width:200px;max-width:450px}.cw-article-search input{font-size:12px;padding:8px 10px;min-width:0}.cw-article-search button{font-size:11px}.cw-article-search [role=status]{margin-left:auto;font-size:11px;color:#7b8c9f;align-self:center}.cw-contract-table .cw-table{table-layout:fixed;min-width:1080px}.cw-contract-table .cw-table-scroll{max-height:65vh}.cw-contract-table .cw-table th{position:sticky;top:0;z-index:1}.cw-contract-table .cw-table th:nth-child(1){width:90px}.cw-contract-table .cw-table th:nth-child(3){width:65px}.cw-contract-table .cw-table th:nth-child(4){width:100px}.cw-contract-table .cw-table th:nth-child(5){width:150px}.cw-contract-table .cw-table th:nth-child(6){width:125px}.cw-contract-table .cw-table th:nth-child(7){width:110px}.cw-contract-table .cw-table th:nth-child(8){width:110px}.cw-contract-table .cw-table td{overflow-wrap:anywhere}.cw-contract-table .cw-table .cw-description,.cw-contract-table .cw-table .cw-source{min-width:0;max-width:none}.cw-table tr[hidden]{display:none}.cw-source-details{min-width:0;max-width:100%}.cw-source-details summary{cursor:pointer;font-size:10px;color:#2463a9;white-space:nowrap}.cw-source-details>div{margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:180px;overflow:auto;font-size:10px}.cw-editor-scroll>.cw-table-scroll,.cw-editor [data-cw-measure-lines]>.cw-table-scroll{max-height:60vh}.cw-editor-scroll .cw-table th,.cw-editor [data-cw-measure-lines] .cw-table th{position:sticky;top:0;z-index:1}@media(max-width:600px){.cw-article-search [role=status]{width:100%;margin-left:0}.cw-contract-table .cw-table-scroll,.cw-editor-scroll>.cw-table-scroll,.cw-editor [data-cw-measure-lines]>.cw-table-scroll{max-height:55vh}}
.construction-workspace .cw-settlement{padding:15px 18px}.construction-workspace .cw-settlement dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0}.construction-workspace .cw-settlement dl>div{padding:11px 13px;border-left:1px solid #e4eaf1;min-width:0}.construction-workspace .cw-settlement dl>div:nth-child(3n+1){padding-left:0;border-left:0}.construction-workspace .cw-settlement dl>div:nth-child(n+4){border-top:1px solid #e4eaf1}.construction-workspace .cw-settlement-taxable{background:#f7f9fc;border-radius:5px 5px 0 0}.construction-workspace .cw-settlement dt{font-size:11px;color:#6a7d94}.construction-workspace .cw-settlement dd{margin:5px 0 0;font-size:17px;font-weight:600;color:#304f73;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.construction-workspace .cw-settlement dl>.cw-settlement-payable{background:#edf4ff;border-radius:0 0 5px 5px}.construction-workspace .cw-settlement-payable dd{font-size:19px;color:#0c579f}.construction-workspace .cw-settlement-payable dt{font-weight:600;color:#304f73;font-size:12px}.construction-workspace .cw-settlement-rule{font-size:11px;line-height:1.55;color:#657b94;margin:14px 0}.construction-workspace .cw-settlement-balance{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:11px;padding:11px 12px;background:#f5f8fc;border-radius:5px;color:#657b94}.construction-workspace .cw-settlement-balance strong{color:#365a7f;font-weight:600}.construction-workspace .cw-settlement-warnings{font-size:11px;line-height:1.6;border-left:3px solid #d6a14e;background:#fffbf2;color:#826738;padding:10px 12px 10px 28px;margin:12px 0}.construction-workspace .cw-settlement-note{border-top:1px solid #e5ebf2;padding-top:12px;margin-top:13px;font-size:11px;color:#687e96}.construction-workspace .cw-settlement-note p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:6px 0}.construction-workspace .cw-settlement-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:15px 18px}.construction-workspace .cw-settlement-fields input{min-width:0;width:100%}.construction-workspace .cw-vat-presets{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}.construction-workspace .cw-vat-presets button{font-size:11px;padding:5px 10px;border-radius:5px;background:#fff;color:#507292;border:1px solid #d4e0ed}.construction-workspace .cw-vat-presets button[aria-pressed=true]{background:#e9f2ff;border-color:#75a0d1;color:#10559c}.construction-workspace .cw-settlement-fields .cw-retention-confirm{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:11px;color:#5d7590}.construction-workspace .cw-retention-confirm input{width:16px;height:16px;min-height:16px;flex:0 0 16px}.construction-workspace .cw-settlement-source,.construction-workspace .cw-settlement-fields>.cw-muted{grid-column:1/-1}.construction-workspace .cw-settlement-source textarea{min-height:70px;resize:vertical}.construction-workspace .cw-settlement-fields>.cw-muted{margin:0}.construction-workspace .cw-finance-bridge>small{margin-left:auto;max-width:360px;line-height:1.5}.construction-workspace .cw-finance-bridge>button{margin-left:auto}
@media(max-width:900px){.construction-workspace .cw-settlement-fields,.construction-workspace .cw-settlement dl{grid-template-columns:repeat(2,minmax(0,1fr))}.construction-workspace .cw-settlement dl>div:nth-child(odd){border-left:0;padding-left:0}.construction-workspace .cw-settlement dl>div:nth-child(even){border-left:1px solid #e4eaf1;padding-left:13px}.construction-workspace .cw-settlement dl>div:nth-child(n+3){border-top:1px solid #e4eaf1}.construction-workspace .cw-settlement-taxable{background:none}.construction-workspace .cw-settlement dl>.cw-settlement-payable{border-radius:5px}}
@media(max-width:540px){.construction-workspace .cw-settlement,.construction-workspace .cw-settlement-fields{padding:13px}.construction-workspace .cw-settlement dd{font-size:15px}.construction-workspace .cw-settlement-payable dd{font-size:19px}.construction-workspace .cw-finance-bridge>small,.construction-workspace .cw-finance-bridge>button{margin-left:0}.construction-workspace .cw-settlement-fields{gap:12px}}
.construction-workspace .cw-form-footer{justify-content:flex-start;flex-wrap:wrap;gap:16px}
.construction-workspace .cw-form-footer>button{order:-1}
.cw-invoice-field { min-width: 220px; max-width: 360px; }
.cw-invoice-field small { display:block; margin:4px 0; color:var(--muted,#64748b); }
.cw-invoice-field label { display:block; font-size:12px; font-weight:600; margin-top:10px; }
.cw-invoice-field input[type=file] { display:block; max-width:100%; margin-top:6px; font-size:12px; }
.cw-invoice-field p { margin:6px 0; overflow-wrap:anywhere; }
.cw-invoice-content { padding:12px 16px; }

/* A single scroll container keeps quantity headers visible while editing. */
.construction-workspace .cw-measure-table>.cw-table-scroll{max-height:65vh;max-height:65dvh;overflow:auto;isolation:isolate;border-top:1px solid #d8e2ee;scroll-padding-top:46px}
.construction-workspace .cw-measure-table .cw-table{min-width:1010px;border-collapse:separate;border-spacing:0}
.construction-workspace .cw-measure-table .cw-table th,.construction-workspace [data-cw-measure-lines] .cw-table th,.construction-workspace .cw-contract-table .cw-table th{position:sticky;top:0;z-index:3;background:#eef4fb;color:#496482;box-shadow:0 1px 0 #c9d8e9}
.construction-workspace [data-cw-measure-lines] .cw-table,.construction-workspace .cw-contract-table .cw-table{border-collapse:separate;border-spacing:0}
.construction-workspace [data-cw-measure-lines]>.cw-table-scroll{scroll-padding-top:46px;isolation:isolate}
.construction-workspace .cw-measure-table .cw-description{width:31%;min-width:270px;max-width:430px}
.construction-workspace .cw-table tr[data-cw-progress-row]>td{transition:background-color .12s ease}
.construction-workspace .cw-table tr.cw-measured-complete>td{background:#e9f2ff;border-bottom-color:#d4e3f6}
.construction-workspace .cw-table tr.cw-measured-partial>td:first-child{box-shadow:inset 3px 0 #2874be}
.construction-workspace .cw-table tr.cw-measured-pending>td{background:#fff9ed}
.construction-workspace .cw-table tr.cw-measured-current>td{background:#ecf8f1;border-bottom-color:#d4eadc}
.construction-workspace .cw-table tr.cw-measured-current>td:first-child{box-shadow:inset 3px 0 #19885d}
.construction-workspace .cw-table tr.cw-measured-complete>td:first-child{box-shadow:inset 3px 0 #2874be}
.construction-workspace [data-cw-progress-row]:focus-within{outline:2px solid #19885d;outline-offset:-2px}
.construction-workspace .cw-measure-progress{background:#fff;border:1px solid #dbe5ef;border-radius:8px;padding:16px 18px;margin:0 0 16px;white-space:normal}
.construction-workspace .cw-panel>[data-cw-progress-summary]>.cw-measure-progress{border:0;border-radius:0;border-bottom:1px solid #e2e9f1;margin:0}
.construction-workspace .cw-progress-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.construction-workspace .cw-progress-heading h3{font-size:13px;font-weight:600;margin:0;color:#304f72}
.construction-workspace .cw-progress-heading p{font-size:11px;color:#6e8097;margin:4px 0 0}
.construction-workspace .cw-progress-heading>strong{font-size:22px;line-height:1.15;color:#2c576f;font-variant-numeric:tabular-nums;text-align:right}
.construction-workspace .cw-progress-heading>strong small{display:block;font-size:10px;font-weight:400;color:#6e8097;margin-top:3px}
.construction-workspace .cw-progress-scale{display:flex;justify-content:space-between;color:#7b8ca2;font-size:10px;margin-bottom:4px;font-variant-numeric:tabular-nums}
.construction-workspace .cw-progress-track{display:flex;height:14px;background:#e9eef4;border-radius:5px;overflow:hidden;outline:1px solid #dfe6ee;min-width:0}
.construction-workspace .cw-progress-track>.cw-progress-segments{display:block;width:100%;height:100%;flex:1;min-width:0}
.construction-workspace .cw-progress-approved{background:#2874be;fill:#2874be}
.construction-workspace .cw-progress-pending{background:#d99c38;fill:#d99c38}
.construction-workspace .cw-progress-current{background:#19885d;fill:#19885d}
.construction-workspace .cw-progress-remaining{background:#e9eef4;outline:1px solid #d3dce6}
.construction-workspace .cw-progress-legend{display:flex;flex-wrap:wrap;gap:9px 22px;margin-top:13px;font-size:11px;line-height:1.5;color:#526a85}
.construction-workspace .cw-progress-legend>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.construction-workspace .cw-progress-legend i{display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:2px}
.construction-workspace .cw-progress-legend strong{font-size:12px;color:#2f4c6c;font-variant-numeric:tabular-nums}
.construction-workspace .cw-progress-legend small{font-size:10px;color:#75879d}
.construction-workspace .cw-progress-note{font-size:10px;line-height:1.5;color:#7b8b9e;margin:12px 0 0}
.construction-workspace .cw-progress-unavailable p{font-size:11px;color:#7b8b9e;margin:0;line-height:1.5}
.construction-workspace .cw-progress-unavailable .cw-progress-heading{margin-bottom:6px}
.construction-workspace .cw-progress-unavailable .cw-progress-heading>span{font-size:10px;color:#8292a4}
.construction-workspace .cw-progress-unavailable button{margin-top:8px;font-size:11px;padding:5px 9px}
.construction-workspace .cw-row-progress{margin:10px 0 1px;white-space:normal;max-width:380px}
.construction-workspace .cw-progress-row-label{display:block;font-size:10px;line-height:1.4;color:#567493;white-space:normal;margin:0 0 5px;font-weight:600}
.construction-workspace .cw-progress-row-unknown{font-weight:400;color:#8a98a8;margin-top:9px}
.construction-workspace .cw-progress-mini{height:5px;border-radius:3px;outline:0;background:#dfe7ef}
.construction-workspace .cw-measured-current .cw-progress-row-label{color:#237250}
.construction-workspace .cw-measured-complete .cw-progress-row-label{color:#1c62a6}
@media(max-width:600px){.construction-workspace .cw-measure-progress{padding:13px}.construction-workspace .cw-progress-heading>strong{font-size:19px}.construction-workspace .cw-progress-legend{gap:8px 14px}.construction-workspace .cw-measure-table>.cw-table-scroll{max-height:58vh;max-height:58dvh}.construction-workspace .cw-measure-table .cw-description{min-width:225px}.construction-workspace .cw-progress-track{height:12px}.construction-workspace .cw-progress-mini{height:5px}}
@media(prefers-reduced-motion:reduce){.construction-workspace .cw-table tr[data-cw-progress-row]>td{transition:none}}
