.scope-workflow{border-bottom:1px solid var(--scope-line,#dbe3e8);background:#fff}.scope-workflow nav ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;list-style:none;margin:0;padding:0;border-bottom:1px solid #dbe3e8}.scope-workflow nav li{min-width:0}.scope-workflow nav button{display:grid;grid-template-columns:23px minmax(0,1fr);gap:1px 7px;align-items:center;align-content:center;text-align:left;width:100%;height:56px!important;padding:8px 10px!important;border:0!important;border-right:1px solid #e0e7eb!important;border-bottom:2px solid transparent!important;border-radius:0!important;white-space:normal!important;background:#f8fafb!important;color:#536b76!important}.scope-workflow nav button>span{grid-row:1/3;width:22px;height:22px;display:grid;place-items:center;border:1px solid #cad7dd;border-radius:50%;font-size:11px;background:#fff}.scope-workflow nav button>b{font-size:12px;line-height:1.25}.scope-workflow nav button>small{font-size:10px;font-weight:400;color:#7b8c96}.scope-workflow nav button[aria-current=step]{background:#edf8f2!important;color:#007f54!important;border-bottom-color:#009e65!important}.scope-workflow nav button[aria-current=step]>span{border-color:#009e65;background:#009e65;color:#fff}.scope-workflow-panel{padding:9px 10px}.scope-workflow-panel p{font-size:11px!important;color:#647c88;margin:0 0 7px!important;line-height:1.45}.scope-workflow-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.scope-workflow-actions>span{font-size:11px;color:#6a7b86}.scope-workflow-panel [data-workflow-status]:empty{display:none}.scope-workflow-panel [data-workflow-status]{margin-top:7px!important;color:#8c5e18}.scope-quick-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:7px 10px;border-bottom:1px solid #dbe3e8;background:#fafcfd}.scope-quick-tools>span{font-size:10px;color:#74848e;margin-right:3px}.scope-quick-tools>select{width:150px}.scope-advanced-tools{padding:7px 10px;border-bottom:1px solid #dbe3e8;background:#fafcfd}.scope-advanced-tools>summary{font-size:11px;color:#536e79;cursor:pointer;font-weight:500}.scope-advanced-tools>.scope-tools{border:0;padding:7px 0 0}.scope-workflow-summary{margin:0 10px 8px;border-top:1px solid #e0e7eb;padding-top:7px}.scope-workflow-summary>.scope-room-schedule-heading{cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px}.scope-workflow-summary>.scope-room-schedule-heading::before{content:'▸';color:#647c88}.scope-workflow-summary[open]>.scope-room-schedule-heading::before{content:'▾'}.scope-workflow-summary>.scope-room-schedule-heading>span{color:#71848f;font-weight:400}.scope-workflow-summary [data-room-summary]{max-height:280px;overflow:auto;margin-top:7px}.scope-workflow-summary-help{font-size:11px;color:#71848f}.scope-workflow-room{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;padding:7px 0;border-top:1px solid #e2e8ec}.scope-workflow-room>div>b,.scope-workflow-room>div>small{display:block}.scope-workflow-room>div>small{font-size:10px;color:#a07825;margin-top:2px}.scope-workflow-room ul{list-style:none;margin:0;padding:0;display:grid;gap:3px}.scope-workflow-room li{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:11px}.scope-workflow-room li>span{flex:1;min-width:100px;overflow-wrap:anywhere}.scope-workflow-room li>strong{font-weight:600;white-space:nowrap}.scope-workflow-room li>small{color:#8d702d;font-size:10px;min-width:110px}.scope-workflow-total{background:#f7fafb}.scope-workflow-enabled .scope-workspace{height:calc(100dvh - 580px);min-height:330px}.scope-workflow-enabled:fullscreen .scope-workspace{flex:1;height:auto}
@media(max-width:850px){.scope-workflow nav button{padding:7px!important;gap:2px 5px}.scope-workflow nav button>b{font-size:11px}.scope-workflow-room{grid-template-columns:135px minmax(0,1fr);gap:8px}}
@media(max-width:600px){.scope-workflow nav ol{grid-template-columns:repeat(2,minmax(0,1fr))}.scope-workflow nav button{height:52px!important;min-height:44px!important}.scope-workflow-actions>button{min-height:40px!important;white-space:normal!important}.scope-quick-tools button{min-height:40px!important}.scope-quick-tools [data-precision]{display:inline-flex!important;align-items:center}.scope-quick-tools>select{max-width:100%;width:150px;font-size:16px!important;min-height:40px!important}.scope-workflow-room{grid-template-columns:minmax(0,1fr);gap:5px}.scope-workflow-room li>small{min-width:0}.scope-workflow-summary>.scope-room-schedule-heading{gap:4px 8px}.scope-workflow-enabled .scope-workspace{height:auto;min-height:0}}

.scope-match-group{border-top:1px solid #dbe4ea;padding:9px 0}.scope-match-group>summary{cursor:pointer;display:flex;align-items:start;justify-content:space-between;gap:8px;font-size:11px;list-style-position:inside}.scope-match-group>summary>b{overflow-wrap:anywhere}.scope-match-group>summary>span{font-size:10px;color:#7b6a42;text-align:right;flex:0 0 90px}.scope-match-group>button{margin-top:8px}.scope-partial-warning{padding:8px;background:#fff3d6;border-left:3px solid #cc8b18;color:#79520e;font-size:11px}.scope-workflow-enabled .scope-proposal{display:grid;grid-template-columns:18px minmax(0,1fr);gap:5px;padding:8px 0}.scope-workflow-enabled .scope-proposal>label{grid-column:1/-1}.scope-workflow-enabled .scope-proposal>button{grid-column:auto;min-width:0}.scope-workflow-enabled .scope-proposal>button[data-proposal-show]{grid-column:1/-1}
.scope-workflow-room-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.scope-workflow-room-actions button{font-size:10px!important;min-height:30px!important;padding:4px 6px!important}.scope-workflow-actions>details>summary{font-size:11px;cursor:pointer;color:#647c88}.scope-workflow-actions>details[open]{flex-basis:100%}.scope-workflow-actions>details>button{margin:5px 5px 0 0}.scope-quick-tools>[hidden],.scope-workflow [hidden]{display:none!important}

/* M&E take-off: the drawing stays central; review and pricing follow below it. */
.scope-root[data-workflow-step]>.scope-workflow{flex:0 0 auto;background:#fff}
.scope-root[data-workflow-step] .scope-workflow nav button{height:48px!important;padding:7px 14px!important;background:#fff!important;border-right:0!important}
.scope-root[data-workflow-step] .scope-workflow nav button[aria-current=step]{background:#eaf6f1!important;border-bottom-color:#009e65!important}
.scope-root[data-workflow-step] .scope-workflow nav button>b{font-size:12px}
.scope-root[data-workflow-step] .scope-workflow nav button>small{font-size:10px}
.scope-root[data-workflow-step] .scope-workflow-panel{padding:7px 12px}
.scope-root[data-workflow-step] .scope-workflow-panel [data-step-panel]>p{display:block;font-size:11px!important;margin:0 0 6px!important}
.scope-workbench .scope-root[data-workflow-step="1"] .scope-workflow-panel [data-step-panel="1"]>p{display:none}
.scope-workbench .scope-root[data-workflow-step] .scope-workflow nav button{height:44px!important;padding:5px 12px!important}
.scope-workflow-metrics{display:flex;align-items:center;gap:26px;margin-top:7px;padding-top:7px;border-top:1px solid #edf1f4}
.scope-workflow-metrics>span{display:flex;align-items:center;gap:9px;min-width:100px}
.scope-workflow-metrics small{font-size:10px;color:#6c808d}
.scope-workflow-metrics b{font-size:17px;font-variant-numeric:tabular-nums;color:#12313d}
.scope-workflow-metrics .needs-review b,.scope-room-review-select .needs-review{color:#a46c10}
.scope-root[data-workflow-step]>.scope-workflow-summary{flex:0 0 auto;margin:0;padding:10px 12px;border:0;border-top:1px solid #dbe3e8;background:#fff;min-height:0}
.scope-root[data-workflow-step]>.scope-workflow-summary>.scope-room-schedule-heading{font-size:12px;gap:10px}
.scope-workbench .scope-root[data-workflow-step]>.scope-workflow-summary [data-room-summary],.scope-root[data-workflow-step]>.scope-workflow-summary [data-room-summary]{max-height:260px;overflow:auto;margin-top:9px}
.scope-room-review-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px;min-width:0}
.scope-room-review-list{display:flex;flex-direction:column;gap:4px;max-height:235px;overflow:auto;padding-right:8px;border-right:1px solid #e0e7eb}
.scope-root .scope-room-review-select{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px;text-align:left;background:#fff!important;color:#1b3540!important;border:1px solid transparent!important;border-radius:4px!important;padding:7px 8px!important;min-height:48px!important;height:auto!important;white-space:normal!important;width:100%;line-height:1.3}
.scope-root .scope-room-review-select[aria-pressed=true]{background:#eaf6f1!important;border-color:#b9dfd0!important}
.scope-room-review-select b{font-size:11px;overflow-wrap:anywhere}
.scope-room-review-select span,.scope-room-review-select small{font-size:10px;font-weight:400;color:#71848f}
.scope-room-review-select small{grid-column:1/-1}
.scope-root .scope-workflow-room{display:block;padding:0;border:0;min-width:0}
.scope-room-review-title{display:flex;gap:12px;align-items:start;justify-content:space-between}
.scope-room-review-title>div:first-child{min-width:0}
.scope-room-review-title b{font-size:13px;color:#17333e}
.scope-room-review-title small{display:block;margin-top:4px;font-size:10px;color:#71848f}
.scope-room-review-title .scope-workflow-room-actions{margin:0;justify-content:flex-end;flex:0 0 auto}
.scope-room-review-tabs{display:flex;gap:3px;margin:9px 0 4px;padding:2px;background:#f4f7f9;border-radius:4px}
.scope-root .scope-room-review-tabs button{border:0!important;background:transparent!important;color:#6a7e89!important;border-radius:3px!important;min-height:28px!important;padding:4px 12px!important;font-size:10px!important;flex:1}
.scope-root .scope-room-review-tabs button[aria-pressed=true]{background:#fff!important;color:#16323f!important;box-shadow:0 1px 3px #122a3d10}
.scope-root .scope-workflow-room ul{display:block}
.scope-root .scope-workflow-room li{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding:7px 0;border-bottom:1px solid #edf1f4;font-size:11px;min-height:34px}
.scope-root .scope-workflow-room li>span{min-width:0;flex:1}
.scope-workflow-room li>span>b{display:block;font-size:11px;font-weight:500}
.scope-workflow-room li>span>small{display:block;font-size:10px;color:#8a712e;margin-top:3px}
.scope-workflow-room li>strong{font-size:12px;min-width:48px;text-align:right;font-variant-numeric:tabular-nums}
.scope-workflow-room li>strong>small{font-size:10px;color:#71848f;font-weight:400}
.scope-root .scope-workflow-room li>button{padding:4px 8px!important;min-height:30px!important;height:auto!important;font-size:10px!important;flex:0 0 80px}
.scope-room-filter-empty{font-size:11px;color:#71848f;margin:12px 0}
.scope-workflow-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:9px 12px;border-top:1px solid #dbe3e8;background:#fafcfd}
.scope-workflow-footer>div:first-child{min-width:0}
.scope-workflow-footer b{display:block;font-size:12px;font-weight:600;color:#17333e}
.scope-workflow-footer small{display:block;font-size:10px;color:#71848f;margin-top:3px}
.scope-workflow-footer .scope-workflow-actions{flex-wrap:nowrap;flex:0 0 auto}
.scope-workflow-footer button{min-height:35px!important;height:auto!important;white-space:nowrap!important}
.scope-root[data-workflow-step] [hidden]{display:none!important}
.scope-quotation-stage{flex:1 1 auto;min-height:0;overflow:auto;padding:18px;background:#f4f7f9}
.scope-quotation-ready{width:min(100%,1000px);margin:0 auto;background:#fff;border:1px solid #dbe3e8;border-radius:5px;padding:20px;box-sizing:border-box}
.scope-quotation-ready-heading>span{font-size:10px;letter-spacing:.09em;font-weight:600;color:#00885c}
.scope-quotation-ready-heading h2{font-size:22px!important;line-height:1.2;margin:8px 0!important;color:#15313d}
.scope-quotation-ready-heading p{font-size:12px;color:#6d828f;margin:0}
.scope-quotation-ready-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;padding:13px 0;border-top:1px solid #e3e9ed;border-bottom:1px solid #e3e9ed}
.scope-quotation-ready-metrics small{display:block;font-size:10px;color:#71848f}.scope-quotation-ready-metrics b{display:block;font-size:22px;margin-top:5px;color:#18353f}
.scope-quotation-ready-table{overflow:auto}.scope-quotation-ready-table table{width:100%;border-collapse:collapse;font-size:11px}.scope-quotation-ready-table thead th{text-align:left;padding:8px 10px;background:#f4f7f9;color:#6c818d;font-size:10px;font-weight:500}.scope-quotation-ready-table tbody th,.scope-quotation-ready-table td{padding:10px;border-bottom:1px solid #e8edf0;text-align:left;vertical-align:top}.scope-quotation-ready-table tbody th{width:25%;font-weight:600}.scope-quotation-ready-table td span{display:inline-block;margin:0 14px 5px 0;line-height:1.6}.scope-quotation-ready-table td b{font-weight:600}
.scope-quotation-ready-notes{margin-top:16px;padding:14px;background:#f5f9f7;border-radius:4px}.scope-quotation-ready-notes h3{font-size:12px!important;margin:0 0 8px!important}.scope-quotation-ready-notes ol{padding-left:17px;margin:0;font-size:11px;line-height:1.7;color:#405d6b}.scope-quotation-ready-notes p{font-size:10px;color:#71848f;margin:10px 0 0}
@media(max-width:600px){.scope-quotation-stage{padding:10px}.scope-quotation-ready{padding:13px}.scope-quotation-ready-heading h2{font-size:19px!important}.scope-quotation-ready-metrics{gap:8px}.scope-quotation-ready-metrics b{font-size:19px}.scope-quotation-ready-table tbody th{width:32%}.scope-quotation-ready-table td span{display:block;margin-right:0}}
@media(max-width:850px){.scope-room-review-layout{grid-template-columns:155px minmax(0,1fr);gap:10px}.scope-room-review-title{flex-wrap:wrap;gap:7px}.scope-room-review-title .scope-workflow-room-actions{justify-content:start}.scope-workflow-metrics{gap:15px}.scope-workflow-metrics>span{min-width:0}.scope-workflow-metrics b{font-size:15px}}
@media(max-width:600px){.scope-root[data-workflow-step] .scope-workflow nav ol{grid-template-columns:repeat(4,minmax(0,1fr))}.scope-root[data-workflow-step] .scope-workflow nav button{display:flex;flex-direction:column;gap:3px;text-align:center;height:66px!important;padding:5px 3px!important;min-width:0}.scope-root[data-workflow-step] .scope-workflow nav button>b{font-size:10px}.scope-root[data-workflow-step] .scope-workflow nav button>small{font-size:9px}.scope-root[data-workflow-step] .scope-workflow nav button>span{width:19px;height:19px;font-size:10px}.scope-workflow-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.scope-workflow-metrics>span{justify-content:space-between}.scope-room-review-layout{grid-template-columns:minmax(0,1fr)}.scope-room-review-list{flex-direction:row;overflow-x:auto;max-height:80px;border:0;padding-right:0;padding-bottom:4px}.scope-root .scope-room-review-select{width:auto;min-width:145px;flex:0 0 145px}.scope-workbench .scope-root[data-workflow-step]>.scope-workflow-summary [data-room-summary],.scope-root[data-workflow-step]>.scope-workflow-summary [data-room-summary]{max-height:360px}.scope-workflow-footer{flex-wrap:wrap;gap:8px}.scope-workflow-footer .scope-workflow-actions{width:100%;justify-content:flex-end}.scope-workflow-footer button{min-height:40px!important}.scope-root .scope-workflow-room li>button{flex-basis:72px}.scope-root .scope-workflow-room li{gap:6px}}
