html body #main:has(> .gqw){height:var(--gqw-height,calc(100dvh - 80px))!important;max-height:var(--gqw-height,calc(100dvh - 80px))!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column;padding-bottom:0!important}
/* quotation-workspace-peter-v1. Only generated for the signed Peter account. */
html body #main .gqw{width:100%!important;max-width:none!important;margin:0!important;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#1d1d1f;font:14px/1.5 var(--font-sans,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif);border:0;border-radius:0;padding:0}
.gqw *{box-sizing:border-box;min-width:0}.gqw h1,.gqw h2,.gqw h3,.gqw p{margin:0}.gqw h1,.gqw h2{font-size:18px;line-height:1.4}.gqw h3{font-size:15px}.gqw button,.gqw input,.gqw textarea{font:inherit}.gqw button{min-height:var(--gc-ui-field-height,36px);padding:6px 12px;background:#fff;border:1px solid #e5e5ea;border-radius:8px;color:#424248;cursor:pointer;white-space:normal}.gqw button:hover{background:#f5f5f7}.gqw button:disabled{opacity:.5;cursor:default}.gqw button.gqw-primary{background:#007aff;color:#fff;border-color:#007aff}.gqw button.gqw-danger{color:#d70015}.gqw button[aria-pressed=true],.gqw .gqw-style.selected{background:#e5f0ff;color:#0064d1;border-color:#b6d8ff}.gqw button:focus-visible,.gqw input:focus-visible,.gqw textarea:focus-visible,.gqw summary:focus-visible{outline:2px solid #007aff;outline-offset:2px}.gqw .gqw-toolbar{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:12px 16px;border-bottom:1px solid #e5e5ea;flex-wrap:wrap}.gqw-toolbar>span{font-size:12px;color:#6b6b6e;margin-right:auto}.gqw .gqw-layout{flex:1;min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr);overflow:hidden}.gqw .gqw-sidebar{min-height:0;display:flex;flex-direction:column;border-right:1px solid #e5e5ea;background:#fafafa}.gqw .gqw-sidebar-controls{padding:12px;display:grid;gap:12px;flex:0 0 auto}.gqw .gqw-filters{display:flex;flex-wrap:wrap;gap:4px}.gqw-filters button{font-size:12px;padding:5px 8px;flex:1 0 30%;border:0;background:#f0f0f3}.gqw .gqw-list{overflow:auto;flex:1;min-height:0;padding:0 8px 12px}.gqw .gqw-group{margin:0;border:0}.gqw .gqw-group>summary{padding:12px 8px;font-weight:650;cursor:pointer}.gqw-group>summary span{color:#6b6b6e;font-size:12px;font-weight:400}.gqw .gqw-style{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 8px;border:1px solid transparent;border-radius:8px;background:transparent}.gqw-style>span:last-child{flex:1;overflow-wrap:anywhere}.gqw-style b{font-size:14px}.gqw-style small{display:block;font-size:12px;color:#6b6b6e;margin-top:3px}.gqw-thumb{display:flex;align-items:center;justify-content:center;width:48px;height:62px;flex:0 0 48px;background:#f0f0f3;color:#8e8e93;font-size:12px;border-radius:5px;overflow:hidden}.gqw-thumb img{width:100%;height:100%;object-fit:contain}.gqw .gqw-detail{display:flex;flex-direction:column;min-height:0;overflow:hidden}.gqw .gqw-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 24px;flex:0 0 auto}.gqw-detail-head span{color:#6b6b6e;font-size:13px;overflow-wrap:anywhere}.gqw .gqw-plans{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 12px;flex:0 0 auto;max-height:140px;overflow:auto}.gqw-plans button{display:flex;align-items:center;gap:8px}.gqw .gqw-outcome{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 24px;background:#f8f9fb;border-block:1px solid #eee;flex:0 0 auto}.gqw-outcome>span{font-size:13px}.gqw .gqw-status{display:inline-flex;align-items:center;padding:2px 7px;border-radius:5px;font-size:12px;font-weight:500;background:#ededf0;color:#61616a;white-space:nowrap}.gqw .is-confirmed{background:#e1f5e5;color:#248a3d}.gqw .is-negotiating{background:#fff1e0;color:#a54b00}.gqw .is-sent,.gqw .is-prepared{background:#e5f0ff;color:#0064d1}.gqw .is-rejected{background:#ffe5e5;color:#bf192b}.gqw .gqw-tabs{display:flex;gap:6px;padding:10px 24px;flex:0 0 auto;border-bottom:1px solid #e5e5ea}.gqw-tabs button{border:0}.gqw .gqw-scroll{flex:1;min-height:0;overflow:auto;padding:20px 24px}.gqw .gqw-section{margin-bottom:24px}.gqw-section>h3{margin-bottom:12px}.gqw fieldset{border:0;margin:0;padding:0;min-width:0}.gqw .gqw-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:12px 0 20px;align-items:end}.gqw .gqw-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#6b6b6e}.gqw input:not([type=file]),.gqw textarea{display:block;width:100%;min-height:var(--gc-ui-field-height,36px);border:1px solid #d1d1d6;border-radius:8px;padding:7px 10px;background:#fff;color:#1d1d1f;box-shadow:none}.gqw textarea{min-height:76px;resize:vertical}.gqw input:disabled,.gqw textarea:disabled{background:#f5f5f7;color:#424248;opacity:1}.gqw .gqw-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}.gqw-row>h3,.gqw-row>span:first-child{margin-right:auto}.gqw .gqw-material .gqw-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.gqw .gqw-material{padding:16px 0;border-top:1px solid #e5e5ea;margin-bottom:12px}.gqw .gqw-photos{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.gqw-photos>div{display:flex;flex-direction:column;width:96px;gap:4px}.gqw-photos>div>button:first-child{height:112px;padding:0;overflow:hidden;border:1px solid #e5e5ea;border-radius:8px}.gqw-photos img{width:100%;height:100%;object-fit:contain}.gqw .gqw-remove{font-size:12px;min-height:28px;padding:2px 6px;border:0;color:#6b6b6e}.gqw .gqw-upload{position:relative;display:flex;align-items:center;justify-content:center;width:96px;height:112px;border:1px dashed #c7c7cc;border-radius:8px;font-size:13px;color:#0064d1;cursor:pointer;overflow:hidden}.gqw-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.gqw .gqw-fees{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px;margin-bottom:12px}.gqw-fees>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,.65fr) auto;gap:8px;align-items:end}.gqw .gqw-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 0;border-block:1px solid #e5e5ea;margin:20px 0}.gqw-totals span{font-size:12px;color:#6b6b6e}.gqw-totals b{display:block;font-size:21px;color:#1d1d1f;margin-top:6px;overflow-wrap:anywhere}.gqw .gqw-detail>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:12px 24px;flex:0 0 auto;border-top:1px solid #e5e5ea;background:#fff}.gqw .gqw-message{flex:0 0 auto;min-height:24px;padding:4px 16px;font-size:13px;color:#a54b00;display:flex;align-items:center;gap:10px}.gqw-message:empty{display:none}.gqw .gqw-empty{padding:32px 20px;color:#6b6b6e}.gqw-empty p{margin:12px 0}.gqw .gqw-event{border-left:2px solid #d1d1d6;padding:0 0 22px 18px;margin:20px 0}.gqw-event time{font-size:12px;color:#6b6b6e}.gqw-event p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.gqw-event summary{cursor:pointer;padding:8px 0;color:#0064d1}.gqw-snapshot{background:#fafafa;padding:16px;margin:8px 0;overflow-wrap:anywhere}.gqw-snapshot-material{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-bottom:1px solid #e5e5ea;padding:10px 0}.gqw-snapshot-material>span{font-size:13px}.gqw .gqw-backdrop{position:fixed;inset:0;z-index:12000;background:rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;padding:20px}.gqw .gqw-modal{width:680px;max-width:100%;max-height:85vh;background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 16px 50px rgba(0,0,0,.14)}.gqw-modal>header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #e5e5ea;flex:0 0 auto}.gqw .gqw-modal-body{padding:20px 24px;overflow:auto;min-height:0}.gqw-modal-body>p,.gqw-modal-body>.gqw-field{margin-bottom:16px}.gqw .gqw-catalog-item{display:flex;align-items:center;width:100%;text-align:left;gap:12px;border:0;border-bottom:1px solid #e5e5ea;border-radius:0;padding:12px 0}.gqw-catalog-item img{width:64px;height:70px;object-fit:contain}.gqw-catalog-item small{display:block;font-size:13px;color:#6b6b6e}.gqw .gqw-zoom{max-width:100%;max-height:65vh;object-fit:contain}.gqw .prod-qc-searchbar,.gqw .prod-qc-search-field{width:100%;min-width:0}.gqw .prod-qc-search-input{min-width:0}
@media(max-width:1200px){.gqw .gqw-layout{grid-template-columns:230px minmax(0,1fr)}.gqw .gqw-scroll{padding:16px}.gqw .gqw-detail-head,.gqw .gqw-outcome,.gqw .gqw-tabs,.gqw .gqw-detail>footer{padding-inline:16px}.gqw .gqw-plans{padding-inline:16px}}
@media(max-width:900px){.gqw .gqw-layout{grid-template-columns:200px minmax(0,1fr)}.gqw .gqw-fields,.gqw .gqw-material .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.gqw .gqw-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.gqw .gqw-detail-head{align-items:flex-start;flex-wrap:wrap}.gqw .gqw-plans{max-height:110px}}
@media(max-width:720px){.gqw .gqw-layout{display:flex;flex-direction:column}.gqw .gqw-sidebar{flex:0 0 180px;border-right:0;border-bottom:1px solid #e5e5ea;display:grid;grid-template-columns:150px minmax(0,1fr)}.gqw .gqw-sidebar-controls{overflow:auto;padding:8px}.gqw .gqw-detail{flex:1}.gqw .gqw-sidebar .gqw-filters{gap:2px}.gqw .gqw-filters button{flex-basis:45%;font-size:11px;padding:2px;min-height:30px}.gqw .gqw-toolbar{gap:8px;padding:8px 12px}.gqw .gqw-toolbar h1{font-size:16px}.gqw .gqw-toolbar>span{display:none}.gqw .gqw-detail-head{padding:10px 12px}.gqw .gqw-plans,.gqw .gqw-tabs{padding:6px 12px;max-height:90px}.gqw .gqw-outcome{padding:8px 12px;gap:6px}.gqw .gqw-scroll{padding:12px}.gqw .gqw-detail>footer{padding:8px 12px}.gqw button,.gqw input:not([type=file]){min-height:var(--gc-ui-touch-target-height,44px)}.gqw .gqw-photos>div,.gqw .gqw-upload{width:80px}.gqw .gqw-photos>div>button:first-child,.gqw .gqw-upload{height:90px}.gqw .gqw-backdrop{padding:10px}.gqw .gqw-modal-body,.gqw .gqw-modal>header{padding:16px}}

/* ERP quotation frame v2: Peter-only DOM, existing quotation actions unchanged. */
html body #main .gqw.gqw-erp-frame{gap:0;background:transparent}
.gqw-erp-frame .gqw-toolbar{padding:12px 16px;background:#fff;border-bottom:1px solid #e5e5ea}
.gqw-erp-frame .gqw-toolbar>span{margin-right:auto}
.gqw-erp-frame .gqw-sidebar-controls{display:flex;flex-direction:column;gap:12px;flex:0 0 auto;padding:12px 16px 16px;background:#fff}
.gqw-erp-frame .gqw-control-line{display:flex;align-items:center;gap:12px;min-height:36px}
.gqw-erp-frame .gqw-filters{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:0}
.gqw-erp-frame .gqw-filters button{flex:0 0 auto;min-height:30px;padding:4px 10px;border-radius:7px;background:transparent;color:#424248;white-space:nowrap}
.gqw-erp-frame .gqw-filters button[aria-pressed=true]{background:#fff;color:#007aff;border-color:transparent}
.gqw-erp-frame .gqw-filters{padding:3px;border-radius:10px;background:rgba(118,118,128,.12)}
.gqw-erp-frame .gqw-brand-field{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto;white-space:nowrap}
.gqw-erp-frame .gqw-brand-field input{width:170px}
.gqw-erp-frame .gqw-search-line{display:flex;align-items:center;min-height:36px}
.gqw-erp-frame .gqw-search-line .prod-qc-searchbar{width:min(430px,100%);max-width:430px}
.gqw-erp-frame .gqw-layout{grid-template-columns:minmax(260px,28%) minmax(0,1fr);gap:16px;padding:0 16px 12px;background:#fff}
.gqw-erp-frame .gqw-sidebar,.gqw-erp-frame .gqw-detail{border:1px solid #e5e5ea;border-radius:12px;background:#fff;overflow:hidden}
.gqw-erp-frame .gqw-list{padding:8px;overscroll-behavior:contain}
.gqw-erp-frame .gqw-group>summary{padding:8px 10px;font-size:13px}
.gqw-erp-frame .gqw-style{padding:8px;min-height:82px}
.gqw-erp-frame .gqw-style b{font-size:13px}
.gqw-erp-frame .gqw-detail-head{padding-block:12px}
.gqw-erp-frame .gqw-plans{padding-bottom:8px}
.gqw-erp-frame .gqw-outcome{padding-block:8px;background:#f5f5f7;border:0}
.gqw-erp-frame .gqw-tabs{padding-block:7px}
.gqw-erp-frame .gqw-scroll{padding-block:16px;overscroll-behavior:contain}
.gqw-erp-frame .gqw-section>h3,.gqw-erp-frame .gqw-timeline>h3{border-left:3px solid #007aff;padding-left:11px;min-height:22px}
.gqw-erp-frame .gqw-totals b{font-variant-numeric:tabular-nums}
@media(max-width:1200px){.gqw-erp-frame .gqw-control-line{flex-wrap:wrap}.gqw-erp-frame .gqw-brand-field{margin-left:0}}
@media(max-width:900px){.gqw-erp-frame .gqw-layout{grid-template-columns:minmax(190px,31%) minmax(0,1fr);gap:10px;padding-inline:10px}.gqw-erp-frame .gqw-sidebar-controls{padding-inline:10px}.gqw-erp-frame .gqw-filters{max-width:100%}}
@media(max-width:720px){.gqw-erp-frame .gqw-layout{display:flex;flex-direction:column;gap:8px;padding:0 8px 8px}.gqw-erp-frame .gqw-sidebar{display:block;flex:0 0 126px;border:1px solid #e5e5ea}.gqw-erp-frame .gqw-detail{flex:1;min-height:0}.gqw-erp-frame .gqw-sidebar-controls{padding:8px;gap:8px}.gqw-erp-frame .gqw-control-line{gap:8px}.gqw-erp-frame .gqw-filters{overflow:auto;flex-wrap:nowrap;width:100%;max-width:100%;scrollbar-width:thin}.gqw-erp-frame .gqw-filters button{flex:0 0 auto;min-height:36px;font-size:12px;padding-inline:9px}.gqw-erp-frame .gqw-brand-field{width:100%}.gqw-erp-frame .gqw-brand-field input{flex:1;width:auto}.gqw-erp-frame .gqw-search-line .prod-qc-searchbar{max-width:430px}.gqw-erp-frame .gqw-style{min-height:74px}.gqw-erp-frame .gqw-toolbar{padding:8px}}
.gqw-erp-frame .gqw-search-line .prod-qc-search-input{min-height:36px}

/* Peter quotation frame v3: use the open ERP workspace rhythm, not a nested page card. */
html body #main:has(> .gqw-erp-frame){padding:16px 36px 0!important;background:transparent!important}
html body #main .gqw.gqw-erp-frame{background:transparent}
.gqw-erp-frame .gqw-toolbar{padding:0 0 12px;background:transparent;border:0}
.gqw-erp-frame .gqw-toolbar>span{display:none}
.gqw-erp-frame .gqw-sidebar-controls{padding:0 0 16px;background:transparent}
.gqw-erp-frame .gqw-layout{padding:0 0 12px;background:transparent}
.gqw-erp-frame .gqw-sidebar{background:#fff}
.gqw-erp-frame .gqw-detail{border:0;border-radius:0;background:transparent}
.gqw-erp-frame .gqw-detail-head{padding:0 0 12px;border-bottom:1px solid #e5e5ea}
.gqw-erp-frame .gqw-plans{padding:12px 0}
.gqw-erp-frame .gqw-outcome{padding:8px 12px;border-radius:8px}
.gqw-erp-frame .gqw-tabs{padding:10px 0}
.gqw-erp-frame .gqw-scroll{padding:16px 0}
.gqw-erp-frame .gqw-detail>footer{padding:12px 0;background:transparent}
@media(max-width:900px){html body #main:has(> .gqw-erp-frame){padding:16px 18px 0!important}}
@media(max-width:720px){html body #main:has(> .gqw-erp-frame){padding:12px 12px 0!important}.gqw-erp-frame .gqw-detail-head,.gqw-erp-frame .gqw-plans,.gqw-erp-frame .gqw-tabs,.gqw-erp-frame .gqw-scroll,.gqw-erp-frame .gqw-detail>footer{padding-inline:0}}

/* Peter quotation ledger and right drawer. The underlying quotation commands remain unchanged. */
/* The legacy global customer/view controls can be re-shown by another render path. */
html body:has(#main > .gqw-ledger) #controlsBar{display:none!important}
html body #main:has(> .gqw-ledger){padding:16px 36px 0!important}
html body #main .gqw-ledger{background:transparent;gap:0}
.gqw-ledger .gqw-toolbar{padding:0 0 18px;border-bottom:1px solid #e5e5ea;gap:12px;justify-content:flex-end}
.gqw-ledger .gqw-toolbar h1{font-size:20px;margin-right:auto}
.gqw-ledger .gqw-toolbar>span{display:none}
.gqw-ledger .gqw-sidebar-controls{padding:18px 0 20px;gap:14px}
.gqw-ledger .gqw-filters{background:#f0f0f3;max-width:100%;overflow:auto;flex-wrap:nowrap;scrollbar-width:thin}
.gqw-ledger .gqw-filters button{min-height:34px;flex:0 0 auto}
.gqw-ledger .gqw-filters button[aria-pressed=true]{background:#007aff;color:#fff;border-color:#007aff}
.gqw-ledger .gqw-search-line{gap:12px;justify-content:flex-start}
.gqw-ledger .gqw-search-line .prod-qc-searchbar{width:min(430px,100%);max-width:430px}
.gqw-ledger .gqw-brand-field{margin:0}
.gqw-ledger .gqw-brand-field input{width:190px}
.gqw-ledger .gqw-ledger-section{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.gqw-ledger-section>h2{font-size:16px;min-height:30px;display:flex;align-items:center;gap:10px;margin:0 0 12px;padding-left:14px;border-left:3px solid #007aff;flex:0 0 auto}
.gqw-ledger-section>h2 span{font-size:13px;color:#6e6e73;font-weight:400}
.gqw-ledger .gqw-list{flex:1;min-height:0;overflow:auto;padding:0 0 12px;overscroll-behavior:contain}
.gqw-ledger .gqw-table-scroll{border:1px solid rgba(60,60,67,.12);border-radius:12px;overflow:auto;background:#fff;max-height:100%}
.gqw-ledger .gqw-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.gqw-table th{height:38px;background:#f5f5f7;color:#6e6e73;font-size:11.5px;font-weight:600;text-align:left;padding:0 14px;position:sticky;top:0;z-index:1}
.gqw-table th:first-child{width:27%}.gqw-table th:nth-child(2){width:17%}.gqw-table th:nth-child(3){width:13%}.gqw-table th:nth-child(4),.gqw-table th:nth-child(5),.gqw-table th:nth-child(6){width:11%}.gqw-table th:last-child{width:10%;text-align:center;padding-inline:8px}
.gqw-table td{height:82px;padding:8px 14px;border-top:1px solid rgba(60,60,67,.12);vertical-align:middle;overflow-wrap:anywhere}
.gqw-table tr.is-selected td{background:#f5f9ff}.gqw-table tr:hover td{background:#fafbfd}
.gqw-table tbody tr{cursor:pointer}.gqw-table tbody tr:focus-visible{outline:2px solid #007aff;outline-offset:-2px}
.gqw-style-cell{display:flex;align-items:center;gap:10px;min-width:0}.gqw-style-cell>span:last-child{min-width:0}.gqw-style-cell b{display:block;font-size:13px}.gqw-style-cell small{display:block;color:#6e6e73;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gqw-ledger .gqw-thumb{width:56px;height:72px;flex-basis:56px}.gqw-table .gqw-price{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.gqw-table .gqw-action{text-align:center;padding-inline:8px}.gqw-action button{min-width:74px;height:34px;min-height:34px;padding:4px 12px;white-space:nowrap}
.gqw-ledger .gqw-message{padding:5px 0;min-height:0}.gqw-ledger .gqw-message:empty{display:none}
.gqw-ledger .gqw-ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;margin-bottom:12px}
.gqw-ledger-heading>h2{display:flex;align-items:center;gap:10px;padding-left:14px;border-left:3px solid #007aff;font-size:16px;min-height:30px}
.gqw-ledger-heading>h2>span{font-size:13px;font-weight:400;color:#6e6e73}
.gqw-concentrated .gqw-ledger-heading>.gqw-new-link{flex:0 0 auto;margin:0;background:#007aff;color:#fff;border-color:#007aff}
.gqw-ledger .gqw-list{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.gqw-ledger .gqw-table-scroll{flex:1;min-height:0;max-height:none;scroll-padding-bottom:12px;padding-bottom:8px}
.gqw-ledger>.gqw-message{flex:0 0 auto;max-height:80px;overflow:auto}
.gqw-unified .gqw-quote-side footer>.gqw-message{flex:0 0 100%;width:100%;max-height:100px;overflow:auto;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.gqw-ledger .gqw-drawer-backdrop{position:fixed;inset:0;z-index:11000;background:rgba(25,31,40,.27);display:flex;justify-content:flex-end}
.gqw-ledger .gqw-detail{width:min(680px,100vw);height:100%;min-height:0;border:0;border-radius:0;background:#fff;box-shadow:-16px 0 45px rgba(20,30,50,.12);overflow:hidden;display:flex;flex-direction:column}
.gqw-ledger .gqw-drawer-backdrop.is-entering{animation:gqw-shade-in 250ms ease-out both}.gqw-ledger .gqw-drawer-backdrop.is-entering .gqw-detail{animation:gqw-drawer-in 320ms cubic-bezier(.22,.65,.25,1) both}
@keyframes gqw-shade-in{from{background:rgba(25,31,40,0)}to{background:rgba(25,31,40,.27)}}@keyframes gqw-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.gqw-ledger .gqw-drawer-backdrop,.gqw-ledger .gqw-detail{animation:none}}
.gqw-ledger .gqw-drawer-top{height:64px;flex:0 0 64px;padding:0 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e5ea;background:#fff;color:#1d1d1f;font-size:16px;font-weight:600}
.gqw-ledger .gqw-drawer-top button{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent}
.gqw-ledger .gqw-detail-head{padding:20px 24px 12px;border-bottom:0;align-items:flex-start}
.gqw-ledger .gqw-detail-head h2{font-size:21px}.gqw-ledger .gqw-detail-head span{display:block;margin-top:3px}
.gqw-ledger .gqw-plans{padding:8px 24px 12px;max-height:100px;flex-wrap:nowrap;overflow:auto}
.gqw-ledger .gqw-plans button{white-space:nowrap;flex:0 0 auto}
.gqw-ledger .gqw-outcome{padding:10px 24px;border-radius:0;background:#f7f8fa;gap:8px 15px}
.gqw-ledger .gqw-tabs{padding:0 24px;gap:16px}.gqw-ledger .gqw-tabs button{border-radius:0;border-bottom:2px solid transparent;white-space:nowrap;padding:10px 2px}.gqw-ledger .gqw-tabs button[aria-pressed=true]{background:transparent;border-bottom-color:#007aff}
.gqw-ledger .gqw-scroll{padding:20px 24px 28px;overflow:auto;overscroll-behavior:contain}
.gqw-ledger .gqw-section{margin-bottom:22px}.gqw-ledger .gqw-form-block{padding:0 0 20px;margin-bottom:22px;border-bottom:1px solid #e5e5ea}.gqw-ledger .gqw-form-block:last-child{border:0;margin-bottom:0}
.gqw-ledger .gqw-form-block>h3,.gqw-ledger .gqw-section>h3{font-size:15px;min-height:24px;border-left:3px solid #007aff;padding-left:11px;margin-bottom:14px}
.gqw-ledger .gqw-material{margin:10px 0 0;padding:12px 0;border-top:1px solid #e5e5ea}.gqw-ledger .gqw-material .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.gqw-ledger .gqw-material .gqw-fields .gqw-field:nth-last-child(-n+3){min-width:0}
.gqw-ledger .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gqw-ledger .gqw-field{font-size:12px}
.gqw-ledger .gqw-fees{grid-template-columns:1fr}.gqw-ledger .gqw-fees>div{grid-template-columns:minmax(0,1fr) minmax(120px,.6fr) auto}
.gqw-ledger .gqw-totals{background:#f7f8fa;border:0;border-radius:9px;padding:14px;gap:8px;margin:16px 0}.gqw-ledger .gqw-totals b{font-size:18px;margin-top:2px}
.gqw-ledger .gqw-offer-row{display:flex;align-items:end;gap:10px;margin:14px 0}.gqw-ledger .gqw-offer-row .gqw-field{flex:1}.gqw-ledger .gqw-offer-row button{flex:0 0 auto}
.gqw-ledger .gqw-detail>footer{padding:12px 24px;background:#fff;border-top:1px solid #e5e5ea;gap:8px;justify-content:flex-end;max-height:150px;overflow:auto}
@media(max-width:900px){html body #main:has(> .gqw-ledger){padding:14px 18px 0!important}.gqw-ledger .gqw-sidebar-controls{padding:14px 0}.gqw-ledger .gqw-search-line{flex-wrap:wrap}}
@media(max-width:720px){html body #main:has(> .gqw-ledger){padding:10px 12px 0!important}.gqw-ledger .gqw-toolbar{gap:6px;flex-wrap:wrap}.gqw-ledger .gqw-toolbar h1{font-size:17px}.gqw-ledger .gqw-toolbar button{min-height:36px;padding-inline:8px}.gqw-ledger .gqw-filters{width:100%}.gqw-ledger .gqw-search-line .prod-qc-searchbar{width:min(430px,100%);max-width:430px}.gqw-ledger .gqw-brand-field{width:100%}.gqw-ledger .gqw-brand-field input{flex:1;width:auto}.gqw-ledger .gqw-detail{width:100vw}.gqw-ledger .gqw-drawer-top,.gqw-ledger .gqw-detail-head,.gqw-ledger .gqw-outcome,.gqw-ledger .gqw-tabs,.gqw-ledger .gqw-scroll,.gqw-ledger .gqw-detail>footer{padding-left:16px;padding-right:16px}.gqw-ledger .gqw-plans{padding-left:16px;padding-right:16px}.gqw-ledger .gqw-detail>footer{justify-content:flex-start;flex-wrap:nowrap;overflow:auto}.gqw-ledger .gqw-detail>footer button{flex:0 0 auto}.gqw-ledger .gqw-material .gqw-fields,.gqw-ledger .gqw-fields,.gqw-ledger .gqw-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.gqw-ledger .gqw-offer-row{flex-wrap:wrap}.gqw-ledger .gqw-photos>div,.gqw-ledger .gqw-upload{width:80px}}

/* quotation-reference-drawer-peter-v2: match the ERP detail shell without taking its PO/cycle DOM. */
html body #main:has(> .gqw-ledger){padding-top:24px!important}
.gqw-ledger .gqw-toolbar{min-height:58px;padding:0 0 16px;justify-content:flex-end}
.gqw-ledger .gqw-toolbar>h2{margin-right:auto;font-size:18px;font-weight:700;display:flex;align-items:center;gap:10px}
.gqw-ledger .gqw-toolbar>h2 span{font-size:13px;font-weight:400;color:#6e6e73}
.gqw-ledger .gqw-sidebar-controls{padding:16px 0 18px;gap:0;overflow:visible}
.gqw-ledger .gqw-search-line{flex-wrap:wrap;min-height:36px;gap:10px;overflow:visible}
.gqw-ledger .gqw-brand-field{margin:0;flex:0 0 auto}
.gqw-ledger .gqw-brand-field input{width:170px}
.gqw-ledger .gqw-stage-select{position:relative;flex:0 0 162px;z-index:30;font-size:13px}
.gqw-ledger .gqw-stage-select>summary{height:36px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;border:1px solid #d1d1d6;border-radius:8px;background:#fff;cursor:pointer;white-space:nowrap}
.gqw-ledger .gqw-stage-select>summary::-webkit-details-marker{display:none}
.gqw-ledger .gqw-stage-select>summary::after{content:'⌄';color:#6e6e73}
.gqw-ledger .gqw-stage-select[open]>summary{border-color:#007aff}
.gqw-ledger .gqw-stage-select .gqw-filters{position:absolute;top:40px;right:0;width:190px;max-height:280px;display:grid;gap:2px;padding:6px;border:1px solid #e5e5ea;border-radius:10px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.1);overflow:auto}
.gqw-ledger .gqw-stage-select .gqw-filters button{min-height:36px;width:100%;padding:6px 10px;text-align:left;border:0;border-radius:7px;background:transparent;color:#424248}
.gqw-ledger .gqw-stage-select .gqw-filters button[aria-pressed=true]{background:#e5f0ff;color:#0064d1}
.gqw-ledger .gqw-ledger-section{min-height:0}
.gqw-ledger .gqw-drawer-backdrop{background:rgba(15,15,10,.35);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.gqw-ledger .gqw-detail{width:min(720px,100vw);border-radius:16px 0 0 16px;box-shadow:-8px 0 30px rgba(0,0,0,.08)}
.gqw-ledger .gqw-drawer-stage{height:4px;flex:0 0 4px;background:#d1d1d6}
.gqw-ledger .gqw-drawer-stage[data-status=confirmed]{background:#248a3d}
.gqw-ledger .gqw-drawer-stage[data-status=negotiating],.gqw-ledger .gqw-drawer-stage[data-status=prepared]{background:#b25400}
.gqw-ledger .gqw-drawer-stage[data-status=sent]{background:#007aff}
.gqw-ledger .gqw-drawer-stage[data-status=rejected]{background:#d70015}
.gqw-ledger .gqw-drawer-top{height:auto;min-height:100px;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-template-rows:auto auto;align-content:center;gap:6px 12px;padding:16px 24px 18px;border-bottom:1px solid #e5e5ea}
.gqw-ledger .gqw-drawer-top>strong{grid-column:1;grid-row:1;font-size:21px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.gqw-ledger .gqw-drawer-top>.gqw-drawer-meta{grid-column:1;grid-row:2;color:#6e6e73;font-size:13px;font-weight:400;overflow-wrap:anywhere}
.gqw-ledger .gqw-drawer-top>.drawer-close{grid-column:2;grid-row:1;align-self:start;background:#f5f5f7;border-radius:8px}
.gqw-ledger .gqw-scroll{background:#f5f5f7;padding:16px 20px 28px;display:flex;flex-direction:column;gap:12px}
.gqw-ledger .gqw-scroll>.gqw-section,.gqw-ledger .gqw-style-photos,.gqw-ledger .gqw-scheme-card,.gqw-ledger .gqw-aux-section,.gqw-ledger .gqw-history-section{margin:0;padding:16px 18px;border:1px solid #e5e5ea;border-radius:12px;background:#fff}
.gqw-ledger .gqw-scroll>.gqw-section:has(>fieldset){padding:0;border:0;background:transparent}
.gqw-ledger .gqw-scroll>.gqw-section:has(>fieldset) .gqw-form-block:first-child{padding:16px 18px;border:1px solid #e5e5ea;border-radius:12px;background:#fff}
.gqw-ledger .gqw-style-photos>.gqw-row{margin:0 0 12px}
.gqw-ledger .gqw-style-photos h3{font-size:15px}
.gqw-ledger .gqw-photo-count{font-size:12px;color:#6e6e73;margin-left:auto}
.gqw-ledger .gqw-photo-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.gqw-ledger .gqw-photo-preview>button,.gqw-ledger .gqw-photo-more{height:92px;width:100%;padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #e5e5ea;border-radius:8px;background:#f5f5f7}
.gqw-ledger .gqw-photo-preview img{width:100%;height:100%;object-fit:contain}
.gqw-ledger .gqw-photo-more{font-size:12px;color:#6e6e73}
.gqw-ledger .gqw-photo-details{margin-top:12px}
.gqw-ledger .gqw-photo-details>summary{width:max-content;color:#007aff;cursor:pointer;font-size:13px}
.gqw-ledger .gqw-photo-details .gqw-photos{margin-top:12px}
.gqw-ledger .gqw-identity-card>h3{font-size:15px;margin-bottom:12px}
.gqw-ledger .gqw-identity-card .gqw-fields{margin:0}
.gqw-ledger .gqw-scheme-card{display:grid;gap:10px}
.gqw-ledger .gqw-scheme-card .gqw-plans{padding:0;max-height:none;gap:8px}
.gqw-ledger .gqw-scheme-card .gqw-outcome{padding:10px 0 0;border-top:1px solid #e5e5ea;border-radius:0;background:transparent}
.gqw-ledger .gqw-history-section>summary,.gqw-ledger .gqw-aux-section>summary{cursor:pointer;list-style:none;font-size:15px;font-weight:650;min-height:24px}
.gqw-ledger .gqw-history-section>summary::-webkit-details-marker,.gqw-ledger .gqw-aux-section>summary::-webkit-details-marker{display:none}
.gqw-ledger .gqw-history-section>summary::after,.gqw-ledger .gqw-aux-section>summary::after{content:'⌄';float:right;color:#6e6e73}
.gqw-ledger .gqw-history-section[open]>summary,.gqw-ledger .gqw-aux-section[open]>summary{padding-bottom:12px;border-bottom:1px solid #e5e5ea}
.gqw-ledger .gqw-history-section .gqw-tabs{padding:8px 0 0}
.gqw-ledger .gqw-aux-section .gqw-form-block{margin:12px 0 0;padding:0 0 12px}
.gqw-ledger .gqw-aux-section .gqw-form-block:last-child{padding:0;border:0}
.gqw-ledger .gqw-form-block{margin:0;padding:0;border:0}
.gqw-ledger .gqw-form-block>h3{border:0;padding:0}
.gqw-ledger .gqw-detail>footer{padding:12px 20px;background:#fff}
.gqw-ledger .gqw-drawer-backdrop.is-leaving{animation:gqw-shade-out 250ms ease-in both}
.gqw-ledger .gqw-drawer-backdrop.is-leaving .gqw-detail{animation:gqw-drawer-out 320ms cubic-bezier(.32,.72,0,1) both}
@keyframes gqw-shade-out{from{background:rgba(15,15,10,.35)}to{background:rgba(15,15,10,0)}}
@keyframes gqw-drawer-out{from{transform:translateX(0)}to{transform:translateX(100%)}}
@media(max-width:900px){html body #main:has(> .gqw-ledger){padding-top:18px!important}.gqw-ledger .gqw-toolbar{flex-wrap:wrap}.gqw-ledger .gqw-search-line .prod-qc-searchbar{flex:1 1 280px}.gqw-ledger .gqw-stage-select{flex:0 0 150px}}
@media(max-width:720px){html body #main:has(> .gqw-ledger){padding-top:12px!important}.gqw-ledger .gqw-toolbar{min-height:0}.gqw-ledger .gqw-toolbar>h2{width:100%}.gqw-ledger .gqw-search-line .prod-qc-searchbar{flex:1 1 100%}.gqw-ledger .gqw-brand-field{flex:1 1 100%}.gqw-ledger .gqw-stage-select{flex:1 1 100%}.gqw-ledger .gqw-stage-select>summary{height:44px}.gqw-ledger .gqw-stage-select .gqw-filters{left:0;right:auto;width:100%}.gqw-ledger .gqw-detail{width:100vw;border-radius:0}.gqw-ledger .gqw-drawer-top{padding:14px 16px;min-height:84px}.gqw-ledger .gqw-scroll{padding:12px}.gqw-ledger .gqw-photo-preview{grid-template-columns:repeat(3,minmax(0,1fr))}.gqw-ledger .gqw-scroll>.gqw-section,.gqw-ledger .gqw-style-photos,.gqw-ledger .gqw-scheme-card,.gqw-ledger .gqw-aux-section,.gqw-ledger .gqw-history-section{padding:12px}.gqw-ledger .gqw-photo-preview>button,.gqw-ledger .gqw-photo-more{height:90px}}
@media(prefers-reduced-motion:reduce){.gqw-ledger .gqw-drawer-backdrop.is-leaving,.gqw-ledger .gqw-drawer-backdrop.is-leaving .gqw-detail{animation:none}}

/* Peter quotation focus layout: one ledger and one locally scrolling quote workbench. */
.gqw-ledger .gqw-toolbar{min-height:56px;justify-content:space-between}
.gqw-ledger .gqw-new-link{margin-left:auto;white-space:nowrap}
.gqw-ledger .gqw-table{width:100%;min-width:970px;table-layout:fixed}
.gqw-ledger .gqw-table th:nth-child(1){width:25%}.gqw-ledger .gqw-table th:nth-child(2){width:14%}.gqw-ledger .gqw-table th:nth-child(3){width:13%}.gqw-ledger .gqw-table th:nth-child(4){width:14%}.gqw-ledger .gqw-table th:nth-child(5){width:17%}.gqw-ledger .gqw-table th:nth-child(6){width:10%}.gqw-ledger .gqw-table th:nth-child(7){width:7%}
.gqw-ledger .gqw-table td{overflow-wrap:anywhere}.gqw-ledger .gqw-table .gqw-price{font-variant-numeric:tabular-nums;font-weight:600}.gqw-ledger .gqw-table .gqw-price small,.gqw-ledger .gqw-recent small{display:block;color:#777;font-weight:400;font-size:12px}
.gqw-ledger .gqw-detail{width:min(1260px,100vw);max-width:100vw}
.gqw-ledger .gqw-drawer-top{min-height:66px;gap:12px}.gqw-ledger .gqw-record-link{margin-left:auto;white-space:nowrap;color:#006be6;background:transparent;border:0;font-weight:600}.gqw-ledger .gqw-drawer-meta{margin-right:8px;color:#74777e}
.gqw-ledger .gqw-focus-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,400px);flex:1;min-height:0;overflow:hidden}
.gqw-ledger .gqw-focus-layout>.gqw-scroll{min-width:0;min-height:0;overflow:auto;padding:14px 20px 28px;background:#fafbfc}
.gqw-ledger .gqw-focus-layout .gqw-scroll>.gqw-section,.gqw-ledger .gqw-focus-layout .gqw-style-photos,.gqw-ledger .gqw-focus-layout .gqw-scheme-card,.gqw-ledger .gqw-focus-layout .gqw-history-section{background:#fff;border:1px solid #e5e5ea;border-radius:10px;padding:14px;margin:0 0 12px}
.gqw-ledger .gqw-focus-layout .gqw-style-photos .gqw-photo-preview{grid-template-columns:repeat(5,minmax(0,76px));gap:8px}
.gqw-ledger .gqw-focus-layout .gqw-photo-preview>button{height:82px}
.gqw-ledger .gqw-focus-layout .gqw-scheme-card{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.gqw-ledger .gqw-focus-layout .gqw-plans{padding:0;min-height:0;max-height:none}.gqw-ledger .gqw-focus-layout .gqw-outcome{padding:0;width:100%;min-height:0;gap:8px;font-size:12px}
.gqw-ledger .gqw-plan-more{position:relative}.gqw-ledger .gqw-plan-more>summary,.gqw-ledger .gqw-other-actions>summary{cursor:pointer;color:#006be6;font-size:13px;padding:8px}
.gqw-ledger .gqw-history-section:not([open]){display:none}.gqw-ledger .gqw-history-section .gqw-tabs{padding:8px 0}.gqw-ledger .gqw-history-body{padding-top:8px}
.gqw-ledger .gqw-focus-layout .gqw-form-block{border:0;padding:0;margin:0 0 14px}.gqw-ledger .gqw-focus-layout .gqw-form-block>h3{font-size:15px;margin:0 0 10px}
.gqw-ledger .gqw-focus-layout .gqw-material{border:1px solid #e5e5ea;border-radius:9px;padding:12px;margin:10px 0;background:#fff}.gqw-ledger .gqw-focus-layout .gqw-material .gqw-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.gqw-ledger .gqw-focus-layout .gqw-material .gqw-row{gap:6px}
.gqw-ledger .gqw-focus-layout .gqw-photos>div,.gqw-ledger .gqw-focus-layout .gqw-upload{width:68px}.gqw-ledger .gqw-focus-layout .gqw-photos>div>button:first-child,.gqw-ledger .gqw-focus-layout .gqw-upload{height:72px}
.gqw-ledger .gqw-quote-side{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;border-left:1px solid #e5e5ea;background:#fff;padding:16px 18px}.gqw-ledger .gqw-quote-side>h3{font-size:16px;margin:0 0 16px}.gqw-ledger .gqw-quote-side>fieldset{min-width:0;margin:0;padding:0;border:0}.gqw-ledger .gqw-quote-side .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gqw-ledger .gqw-quote-side .gqw-totals{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0;padding:10px;gap:8px}.gqw-ledger .gqw-quote-side .gqw-totals b{font-size:17px}
.gqw-ledger .gqw-quote-side .gqw-offer-row{flex-wrap:wrap}.gqw-ledger .gqw-quote-side .gqw-offer-row .gqw-field{flex:1 1 190px}.gqw-ledger .gqw-quote-side textarea{min-height:56px}.gqw-ledger .gqw-quote-side footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;position:sticky;bottom:-16px;margin:auto -18px -16px;padding:12px 18px;background:#fff;border-top:1px solid #e5e5ea;z-index:1}.gqw-ledger .gqw-quote-side footer .gqw-primary{min-width:130px}.gqw-ledger .gqw-other-actions{margin-top:8px}
.gqw-ledger .gqw-quote-side .gqw-form-block{display:flex;flex-direction:column}.gqw-ledger .gqw-quote-side .gqw-offer-row{order:-1;margin-bottom:14px}
@media(max-width:1200px){.gqw-ledger .gqw-focus-layout{grid-template-columns:minmax(0,1fr) minmax(330px,370px)}.gqw-ledger .gqw-focus-layout .gqw-material .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.gqw-ledger .gqw-focus-layout{grid-template-columns:minmax(0,1fr) minmax(300px,340px)}.gqw-ledger .gqw-focus-layout>.gqw-scroll{padding:12px}.gqw-ledger .gqw-quote-side{padding:12px}.gqw-ledger .gqw-quote-side footer{margin-inline:-12px;padding-inline:12px}}
@media(max-width:720px){.gqw-ledger .gqw-new-link{margin-left:0}.gqw-ledger .gqw-focus-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.gqw-ledger .gqw-focus-layout>.gqw-scroll{grid-row:1}.gqw-ledger .gqw-quote-side{grid-row:2;max-height:min(47vh,410px);border-left:0;border-top:1px solid #e5e5ea}.gqw-ledger .gqw-focus-layout .gqw-material .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.gqw-ledger .gqw-drawer-top{min-height:64px;padding:10px 12px}.gqw-ledger .gqw-drawer-meta{display:none}}

/* Factory-page heading parity: navigation, controls, then open blue-line business title. */
.gqw-ledger .gqw-sidebar-controls{padding:16px 0 20px;flex:0 0 auto}
.gqw-ledger .gqw-ledger-section>h2{position:relative;min-height:30px;margin:0 0 12px;padding:0 0 0 14px;border:0;background:transparent;font-size:16px;font-weight:700}
.gqw-ledger .gqw-ledger-section>h2::before{content:'';position:absolute;left:0;top:4px;width:3px;height:22px;border-radius:3px;background:#007aff}
.gqw-ledger .gqw-ledger-section>h2 span{font-size:12px;font-weight:500;color:#6e6e73;background:transparent;border:0;border-radius:0}
@media(max-width:900px){.gqw-ledger .gqw-sidebar-controls{padding:12px 0 18px}}
@media(max-width:720px){.gqw-ledger .gqw-sidebar-controls{padding:12px 0 16px}}

/* The quotation stage uses the factory's pattern-segmented component, not a second tab bar. */
.gqw-ledger .gqw-quick.pattern-segmented{box-sizing:border-box;height:36px;min-height:36px;padding:3px;display:inline-flex;align-items:center;gap:2px;border:1px solid rgba(60,60,67,.08);border-radius:10px;background:rgba(118,118,128,.12);box-shadow:none;overflow:visible;flex:0 0 auto}
.gqw-ledger .gqw-quick .pattern-segment{box-sizing:border-box;height:30px;min-height:30px;min-width:90px;padding:0 12px;border:0;border-radius:7px;color:var(--gc-wb-text-secondary,#424248);background:transparent;box-shadow:none;font:inherit;font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer}
.gqw-ledger .gqw-quick .pattern-segment:hover{color:var(--gc-wb-text,#1d1d1f);background:rgba(255,255,255,.54)}
.gqw-ledger .gqw-quick .pattern-segment.active{color:#fff;background:var(--gc-wb-primary,#007aff);box-shadow:0 1px 3px rgba(0,80,180,.18)}
.gqw-ledger .gqw-search-line{align-items:center}.gqw-ledger .gqw-search-line .prod-qc-searchbar{flex:0 1 430px}.gqw-ledger .gqw-new-link{margin-left:auto}
@media(max-width:1200px){.gqw-ledger .gqw-quick.pattern-segmented{max-width:100%;overflow-x:auto}.gqw-ledger .gqw-search-line .prod-qc-searchbar{flex:1 1 280px}}
@media(max-width:720px){.gqw-ledger .gqw-quick.pattern-segmented{width:100%}.gqw-ledger .gqw-quick .pattern-segment{min-width:84px}.gqw-ledger .gqw-search-line .prod-qc-searchbar{flex:1 1 100%}.gqw-ledger .gqw-new-link{margin-left:0}}

/* Same business-tab geometry and parent spacing as the live factory-management shell. */
html body #main:has(> .gqw-ledger){padding:16px 36px 0!important}
.gqw-ledger .gqw-business-tabs{width:100%;min-width:0;flex:0 0 auto;container-type:inline-size}
.gqw-ledger .gqw-business-tabs .fs-pilot-tabs{display:flex;gap:24px;margin:0 0 16px;border-bottom:1px solid var(--line,#e5e5ea);overflow-x:auto}
.gqw-ledger .gqw-business-tabs .fs-pilot-tabs button{flex:0 0 auto;height:42px;min-height:42px;padding:0 12px;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--ink-soft,#424248);font:inherit;font-size:14px;font-weight:600;white-space:nowrap}
.gqw-ledger .gqw-business-tabs .fs-pilot-tabs button[aria-selected=true]{color:var(--primary,#007aff);border-bottom-color:var(--primary,#007aff)!important}
.gqw-ledger .gqw-sidebar-controls{padding:0 0 16px}
.gqw-ledger .gqw-search-line{gap:12px}
.gqw-ledger .gqw-record-table th:first-child{width:27%}.gqw-ledger .gqw-record-table th:nth-child(2){width:17%}.gqw-ledger .gqw-record-table th:nth-child(3){width:16%}.gqw-ledger .gqw-record-table th:nth-child(4){width:16%}.gqw-ledger .gqw-record-table th:nth-child(5){width:16%}.gqw-ledger .gqw-record-table th:last-child{width:8%}
@media(max-width:900px){html body #main:has(> .gqw-ledger){padding:16px 18px 0!important}}
@media(max-width:720px){html body #main:has(> .gqw-ledger){padding:12px 12px 0!important}.gqw-ledger .gqw-business-tabs .fs-pilot-tabs{gap:4px}.gqw-ledger .gqw-business-tabs .fs-pilot-tabs button{padding-inline:10px}}

/* quotation-concentrated-peter-v3: one column grid for labels, inputs and amounts. */
.gqw-concentrated .gqw-business-tabs{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.gqw-concentrated .gqw-business-tabs .fs-pilot-tabs{flex:1;min-width:0}
.gqw-concentrated .gqw-business-tabs>.gqw-new-link{flex:0 0 auto;margin:0 0 12px;background:#007aff;color:#fff;border-color:#007aff}
.gqw-concentrated .gqw-stage-select[hidden]{display:none!important}
.gqw-concentrated select{height:36px;min-height:36px;border:1px solid #d1d1d6;border-radius:6px;padding:0 10px;background:#fff;color:#1d1d1f;font:inherit;font-size:13px;max-width:100%}
.gqw-concentrated .gqw-brand-field{flex:0 0 auto;width:auto}
.gqw-concentrated .gqw-brand-field select{width:150px}
.gqw-concentrated .gqw-stage-control{width:160px;flex:0 0 auto}
.gqw-concentrated .gqw-detail{width:min(1060px,100vw)}
.gqw-concentrated .gqw-drawer-top{min-height:64px;padding:12px 22px;flex:0 0 auto}
.gqw-concentrated .gqw-drawer-top strong{font-size:18px}
.gqw-concentrated .gqw-drawer-top{grid-template-columns:minmax(0,1fr) auto 32px;grid-template-rows:auto auto}
.gqw-concentrated .gqw-drawer-top>.drawer-close{grid-column:3;grid-row:1 / 3;align-self:center}
.gqw-concentrated .gqw-drawer-top>.gqw-record-link{grid-column:2;grid-row:1 / 3;align-self:center;max-width:130px;white-space:normal}
.gqw-concentrated .gqw-cost-fees td:first-child>.gqw-field{max-width:200px}
.gqw-concentrated .gqw-static-identity{display:flex;align-items:center;gap:20px;padding:14px 22px;border-bottom:1px solid #e5e5ea;flex:0 0 auto;min-width:0;max-height:180px;overflow:auto}
.gqw-concentrated .gqw-static-identity .gqw-style-photos{border:0;background:none;padding:0;margin:0;flex:0 0 230px;min-width:0}
.gqw-concentrated .gqw-static-identity .gqw-style-photos>.gqw-row h3{display:none}
.gqw-concentrated .gqw-static-identity .gqw-style-photos>.gqw-row{margin:0 0 4px;min-height:0;font-size:11px}
.gqw-concentrated .gqw-static-identity .gqw-photo-preview{display:flex;gap:6px;overflow:auto}
.gqw-concentrated .gqw-static-identity .gqw-photo-preview>button{flex:0 0 48px;width:48px;height:62px}
.gqw-concentrated .gqw-static-identity .gqw-photo-more{min-width:48px;height:62px;font-size:11px}
.gqw-concentrated .gqw-static-copy{min-width:0;flex:1;font-size:13px}
.gqw-concentrated .gqw-static-copy>div{display:flex;gap:10px;align-items:baseline;margin:6px 0;flex-wrap:wrap}
.gqw-concentrated .gqw-static-copy span{font-size:12px;color:#86868b;flex:0 0 auto}
.gqw-concentrated .gqw-static-copy b{font-weight:500;overflow-wrap:anywhere;margin-right:12px}
.gqw-concentrated .gqw-static-copy p{margin:0;overflow-wrap:anywhere;flex:1}
.gqw-concentrated .gqw-focus-layout{grid-template-columns:minmax(0,1fr) 280px}
.gqw-concentrated .gqw-focus-layout>.gqw-scroll{padding:16px 22px;background:#fff}
.gqw-concentrated .gqw-focus-layout .gqw-scroll>.gqw-section,.gqw-concentrated .gqw-focus-layout .gqw-scheme-card{border:0;border-radius:0;padding:0;background:transparent;margin:0 0 14px}
.gqw-concentrated .gqw-plan-name{display:block;width:160px;max-width:100%;margin-bottom:16px}
.gqw-concentrated .gqw-focus-layout .gqw-form-block{margin-bottom:10px}
.gqw-concentrated .gqw-cost-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0 0 10px;min-width:600px}
.gqw-concentrated .gqw-cost-table col:first-child{width:auto}
.gqw-concentrated .gqw-cost-table col:nth-child(2){width:74px}
.gqw-concentrated .gqw-cost-table col:nth-child(3),.gqw-concentrated .gqw-cost-table col:nth-child(4),.gqw-concentrated .gqw-cost-table col:nth-child(5){width:86px}
.gqw-concentrated .gqw-cost-table col:last-child{width:66px}
.gqw-concentrated .gqw-cost-table th,.gqw-concentrated .gqw-cost-table td{padding:8px 5px;text-align:left;vertical-align:middle;border-bottom:1px solid #e5e5ea}
.gqw-concentrated .gqw-cost-table th{font-size:11px;font-weight:500;color:#86868b;height:32px;white-space:nowrap}
.gqw-concentrated .gqw-cost-table td{height:54px;font-size:13px}
.gqw-concentrated .gqw-cost-table th:last-child,.gqw-concentrated .gqw-cost-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.gqw-concentrated .gqw-cost-table td>.gqw-field{display:block;margin:0;min-width:0}
.gqw-concentrated .gqw-cost-table td>.gqw-field>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gqw-concentrated .gqw-cost-table td>.gqw-field input{width:100%;min-width:0;height:36px;min-height:36px;padding:0 8px;box-sizing:border-box;font-size:13px}
.gqw-concentrated input[type=number]{text-align:right;font-variant-numeric:tabular-nums}
.gqw-concentrated .gqw-focus-layout .gqw-material{padding:0;margin:0;border:0;border-radius:0;background:transparent}
.gqw-concentrated .gqw-material-toggle{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;height:36px;font-size:13px;text-align:left}
.gqw-concentrated .gqw-material-toggle:before{content:'';width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);margin:0 4px}
.gqw-concentrated .gqw-material-toggle[aria-expanded=true]:before{transform:rotate(45deg)}
.gqw-concentrated .gqw-material-detail-row[hidden]{display:none!important}
.gqw-concentrated .gqw-cost-table .gqw-material-detail-row>td{padding:0 0 10px;text-align:left;height:auto}
.gqw-concentrated .gqw-material-details{background:#f7f8fa;border-radius:6px;padding:12px}
.gqw-concentrated .gqw-focus-layout .gqw-material-details .gqw-fields{grid-template-columns:1.3fr 1.1fr 1fr 1fr;gap:10px}
.gqw-concentrated .gqw-material-details .gqw-field input{height:36px;min-height:36px;width:100%;min-width:0;font-size:13px}
.gqw-concentrated .gqw-material-details .gqw-row{margin:8px 0;flex-wrap:wrap}
.gqw-concentrated .gqw-material-details button,.gqw-concentrated .gqw-cost-fees button{font-size:12px}
.gqw-concentrated .gqw-cost-fees [data-act=remove-fee]{padding:0 8px;display:block;margin:auto;height:32px;min-height:32px}
.gqw-concentrated .gqw-note-details{border-top:1px solid #e5e5ea;padding:12px 0;color:#6b6b6e;font-size:12px}
.gqw-concentrated .gqw-note-details summary{cursor:pointer}.gqw-concentrated .gqw-note-details label{margin-top:10px}.gqw-concentrated .gqw-note-details textarea{width:100%;min-height:70px}
.gqw-concentrated .gqw-quote-side{padding:18px;background:#fcfcfd}
.gqw-concentrated .gqw-quote-side .gqw-form-block>h3{display:none}
.gqw-concentrated .gqw-quote-side .gqw-fields{grid-template-columns:110px 110px;gap:10px}
.gqw-concentrated .gqw-quote-side .gqw-fields input{width:88px;height:36px;min-height:36px;padding:0 8px}
.gqw-concentrated .gqw-quote-side .gqw-field>span{font-size:11px;white-space:nowrap}
.gqw-concentrated .gqw-quote-side .gqw-offer-row{order:0;gap:8px;margin:12px 0;align-items:flex-end}
.gqw-concentrated .gqw-quote-side .gqw-offer-row .gqw-field{flex:0 0 126px;max-width:126px}
.gqw-concentrated .gqw-quote-side .gqw-offer-row input{width:126px;height:36px;min-height:36px}
.gqw-concentrated .gqw-quote-side .gqw-offer-row button{padding:0;border:0;color:#007aff;background:transparent;font-size:11px}
.gqw-concentrated .gqw-quote-side .gqw-totals{background:none;border-block:1px solid #e5e5ea;border-radius:0;padding:12px 0;gap:12px;margin:16px 0}
.gqw-concentrated .gqw-quote-side footer{bottom:-18px;margin:auto -18px -18px;padding:12px 18px;flex-shrink:0}
.gqw-concentrated .gqw-quote-side footer button{font-size:12px;white-space:normal}
/* quotation-unified-peter-v5: approved white preview, actual existing business controls. */
.gqw-concentrated .gqw-detail .gqw-drawer-top,.gqw-concentrated .gqw-modal>header{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;position:relative;top:auto;filter:none}
.gqw-unified .gqw-drawer-stage{display:none}
.gqw-unified .gqw-drawer-top{display:flex;min-height:64px;padding:12px 24px;gap:12px;flex-wrap:wrap}
.gqw-unified .gqw-drawer-top>.gqw-drawer-meta{margin:0;font-size:12px}
.gqw-unified .gqw-drawer-top>.gqw-record-link{margin-left:auto;width:auto;max-width:none;padding:0 8px;font-size:12px}
.gqw-unified .gqw-drawer-top>.drawer-close{margin-left:auto;align-self:center}
.gqw-unified .gqw-static-identity{padding:12px 24px;background:#fff;gap:18px}
.gqw-unified .gqw-static-identity .gqw-style-photos{flex-basis:216px}
.gqw-unified .gqw-static-identity .gqw-style-photos>.gqw-row{display:none}
.gqw-unified .gqw-focus-layout>.gqw-scroll{padding:16px 24px;background:#fff}
.gqw-unified .gqw-focus-layout .gqw-form-block>h3[hidden]{display:none}
.gqw-unified .gqw-plan-name{display:flex;align-items:center;width:100%;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.gqw-unified .gqw-plan-name>.gqw-field{display:flex;align-items:center;gap:12px;flex-direction:row;margin:0}
.gqw-unified .gqw-plan-name>.gqw-field>span{font-size:13px;color:#424248}
.gqw-unified .gqw-plan-name input{width:150px;max-width:150px;height:var(--gc-ui-field-height,36px);min-height:36px}
.gqw-unified .gqw-plan-name>button{padding:0;border:0;background:transparent;color:#007aff;font-size:12px}
.gqw-unified .gqw-plan-name>button:first-of-type{margin-left:auto}
.gqw-unified .gqw-plan-name>button:disabled{color:#6b6b6e}
.gqw-unified .gqw-scheme-card:has(>.gqw-status-details:only-child){margin:0 0 8px}
.gqw-unified .gqw-status-details{font-size:12px;color:#6b6b6e}
.gqw-unified .gqw-status-details .gqw-outcome{background:#fff;margin-top:8px}
.gqw-unified .gqw-cost-table col:nth-child(2),.gqw-unified .gqw-cost-table col:nth-child(3),.gqw-unified .gqw-cost-table col:nth-child(4){width:96px}
.gqw-unified .gqw-cost-table col:last-child{width:64px}
.gqw-unified .gqw-cost-table th,.gqw-unified .gqw-cost-table td{padding:0 6px}
.gqw-unified .gqw-cost-table th{height:34px;font-size:12px;color:#6b6b6e}
.gqw-unified .gqw-cost-table th:first-child,.gqw-unified .gqw-cost-table td:first-child{padding-left:0}
.gqw-unified .gqw-cost-table th:last-child,.gqw-unified .gqw-cost-table td:last-child{padding-right:0}
.gqw-unified .gqw-cost-table td>.gqw-field input{width:84px;border-radius:var(--gc-ui-control-radius,8px)}
.gqw-refined table.gqw-cost-table{min-width:540px}
.gqw-refined table.gqw-cost-table th{text-align:left!important}
.gqw-refined table.gqw-cost-table th>span{display:block;margin:0;width:84px;text-align:left}
.gqw-refined table.gqw-cost-table th:first-child>span{width:auto}
.gqw-refined table.gqw-cost-table th:last-child>span{width:auto;text-align:right}
.gqw-refined table.gqw-cost-table td>.gqw-field,.gqw-refined table.gqw-cost-table td>.gqw-field input{margin:0}
.gqw-refined table.gqw-cost-table input[readonly]{background:transparent;border-color:transparent;color:#424248;cursor:default}
.gqw-refined .gqw-material-unit{font-size:12px;color:#6b6b6e;margin:0 0 12px}
.gqw-refined .gqw-material-unit>.gqw-field{width:100px;margin-top:8px}
.gqw-refined .gqw-material-unit select{height:36px;border:1px solid #d1d1d6;border-radius:8px;background:#fff;font:inherit;padding:0 8px}
.gqw-refined .gqw-form-block>.gqw-row>.gqw-soft-action,.gqw-refined .gqw-material-details .gqw-soft-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid rgba(60,60,67,.18);border-radius:8px;font-size:12px;font-weight:500}
.gqw-refined .gqw-material-details .gqw-photos{margin:12px 0;align-items:flex-start;gap:8px}
.gqw-refined .gqw-material-details .grp-upload-zone.gqw-upload{position:relative;display:flex;flex-direction:row;gap:6px;width:100%;min-width:0;height:auto;min-height:44px;padding:10px 12px;margin:0;background:#fff;border:1px dashed #d1d1d6;border-radius:8px;color:#6b6b6e;font-size:12px}
.gqw-refined .gqw-material-details .grp-upload-zone.gqw-upload input{display:none}
.gqw-refined .grp-upload-zone.gqw-upload small{font:inherit;color:#86868b}
.gqw-refined .gqw-material-details .grp-upload-zone.gqw-upload:hover,.gqw-refined .gqw-material-details .grp-upload-zone.gqw-upload.drag-over,.gqw-refined .grp-upload-zone.gqw-upload:focus-visible{border-color:#007aff;background:#f5f9ff;outline:0}
.gqw-refined .grp-upload-zone.gqw-upload:focus-visible{box-shadow:0 0 0 3px rgba(0,122,255,.18)}
#gcErpSelectMenu.gqw-fabric-menu{min-width:min(380px,calc(100vw - 24px));background:#fff}
#gcErpSelectMenu.gqw-fabric-menu .erp-workspace-select-option{gap:8px;align-items:center}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;text-align:left}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-copy b{font-size:13px;font-weight:500;white-space:normal;overflow-wrap:anywhere}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-copy small{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b6b6e;font-size:11px;font-weight:400}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-price{flex:0 0 auto;font-size:12px;font-variant-numeric:tabular-nums;font-weight:500}
body:has(.gqw .gqw-drawer-backdrop) #imageViewerBackdrop{z-index:13000}
@media(max-width:720px){.gqw-refined .gqw-form-block>.gqw-row>.gqw-soft-action,.gqw-refined .gqw-material-details .gqw-soft-action,.gqw-refined .gqw-material-unit select{min-height:44px}}
.gqw-unified .gqw-cost-table select{width:60px;height:var(--gc-ui-field-height,36px);border-radius:var(--gc-ui-control-radius,8px);font-size:13px;padding:0 22px 0 8px;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6e' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 6px center}
.gqw-unified .gqw-cost-table select.gqw-fabric-select{width:100%;max-width:192px;text-overflow:ellipsis}
.gqw-unified .gqw-form-block>.gqw-row{gap:12px}
.gqw-unified .gqw-form-block>.gqw-row>button{padding:0;background:transparent;border:0;color:#007aff;font-size:12px}
.gqw-unified .gqw-material-info{border-top:1px solid #e5e5ea;padding-top:16px}
.gqw-unified .gqw-material-info .gqw-material-details{background:#fff;border:0;border-radius:0;padding:0;margin:0 0 16px}
.gqw-unified .gqw-material-heading{display:flex;gap:6px;align-items:baseline;margin-bottom:10px;font-size:13px}
.gqw-unified .gqw-material-heading>span{color:#6b6b6e;font-size:12px}
.gqw-unified .gqw-focus-layout .gqw-material-details .gqw-fields{grid-template-columns:minmax(140px,1.4fr) minmax(120px,1.2fr) minmax(96px,1fr) minmax(80px,.8fr);gap:12px}
.gqw-unified .gqw-material-details .gqw-field>span{font-size:12px;color:#6b6b6e}
.gqw-unified .gqw-material-details .gqw-row{margin:8px 0;gap:12px}
.gqw-unified .gqw-material-details .gqw-fields{margin:0}
.gqw-unified .gqw-material-details .gqw-row>.gqw-photos{margin:0;flex:0 0 auto}
.gqw-unified .gqw-material-details .gqw-row button:not(.gqw-soft-action){border:0;padding:0;background:transparent;color:#007aff;font-size:12px}
.gqw-unified .gqw-material-details .gqw-row button.gqw-danger{color:#d70015;margin-left:auto}
.gqw-unified .gqw-material-details .gqw-upload{height:36px;width:auto;min-width:68px;padding:0 8px;font-size:12px}
.gqw-unified .gqw-fee-options{font-size:12px;color:#6b6b6e;margin:0 0 8px}
.gqw-unified .gqw-fee-options>button{color:#d70015;border:0;background:none;font-size:12px}
.gqw-unified .gqw-quote-side{background:#fff;padding:18px}
.gqw-unified .gqw-quote-side .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gqw-unified .gqw-quote-side .gqw-fields input{width:100%;border-radius:var(--gc-ui-control-radius,8px)}
.gqw-unified .gqw-quote-side .gqw-field>span{font-size:12px}
.gqw-unified .gqw-quote-side #gqwResults,.gqw-unified .gqw-quote-side .gqw-totals{display:contents}
.gqw-unified .gqw-quote-side .gqw-totals>span{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px;font-size:12px;order:1}
.gqw-unified .gqw-quote-side .gqw-totals>span b{font-size:17px;margin:0}
.gqw-unified .gqw-quote-side .gqw-totals>span:first-child{border-top:1px solid #e5e5ea;margin-top:18px;padding-top:12px}
.gqw-unified .gqw-quote-side .gqw-totals>span:nth-child(2){border-bottom:1px solid #e5e5ea;padding-bottom:12px}
.gqw-unified .gqw-quote-side .gqw-totals>span:nth-child(3){display:none}
.gqw-unified .gqw-quote-side .gqw-totals>span:nth-child(4){order:3}
.gqw-unified .gqw-quote-side .gqw-totals>span:nth-child(4) b{font-size:18px;font-weight:650;color:#1d1d1f}
.gqw-unified .gqw-quote-side .gqw-totals>span.gqw-margin{order:3;min-height:34px}
.gqw-unified .gqw-quote-side .gqw-totals>span.gqw-margin b{font-size:18px;font-weight:650}
.gqw-unified .gqw-quote-side .gqw-totals>span.is-loss,.gqw-unified .gqw-quote-side .gqw-totals>span.is-loss b{color:#d70015}
.gqw-unified .gqw-quote-side .gqw-cost-pair b{font-size:16px;white-space:nowrap}
.gqw-unified .gqw-plan-name>button.gqw-plan-action{min-height:36px;padding:0 10px;border:1px solid #d1d1d6;border-radius:8px;font-size:12px}
.gqw-unified .gqw-scheme-card .gqw-plans{padding:0;margin:0 0 12px;gap:8px}
.gqw-unified .gqw-scheme-card .gqw-plans button{overflow-wrap:anywhere;max-width:100%}
@media(max-width:1059px){.gqw-unified .gqw-quote-side .gqw-totals>span.gqw-margin{grid-column:2;grid-row:4}}
@media(max-width:720px){.gqw-unified .gqw-plan-name>button.gqw-plan-action{min-height:44px}}
.gqw-unified .gqw-quote-side .gqw-offer-row{order:2;margin:16px 0 0}
.gqw-unified .gqw-quote-side footer{background:#fff}
/* quotation-main-peter-v9: border reaches the workspace bottom; no second footer strip. */
html body main#main#main:has(>.gqw-main-v9){box-sizing:border-box!important;padding-bottom:0!important}
html body #main>.gqw-main-v9{height:auto!important;flex:1;min-height:0;padding-bottom:0!important}
.gqw-main-v9 .gqw-ledger-section,.gqw-main-v9 .gqw-list{min-height:0;flex:1;padding:0;margin-bottom:0}
.gqw-main-v9 .gqw-table-scroll{padding:0;min-height:0;flex:1;border-radius:12px 12px 0 0;scrollbar-gutter:stable}
.gqw-main-v9 .gqw-table{margin:0!important;background:#fff}
.gqw-main-v9 .gqw-table thead{position:sticky;top:0;z-index:2}
.gqw-main-v9>.gqw-message[hidden],.gqw-main-v9 .gqw-quick[hidden]{display:none!important}
.gqw-main-v9 .gqw-main-table th:first-child{width:29%}.gqw-main-v9 .gqw-main-table th:nth-child(2){width:15%}.gqw-main-v9 .gqw-main-table th:nth-child(3){width:12%}.gqw-main-v9 .gqw-main-table th:nth-child(4){width:16%}.gqw-main-v9 .gqw-main-table th:nth-child(5){width:14%}.gqw-main-v9 .gqw-main-table th:last-child{width:14%}
.gqw-main-v9 .gqw-main-table th:last-child,.gqw-main-v9 .gqw-main-table td:last-child{text-align:center;padding-inline:14px}
.gqw-main-v9 .gqw-status.is-quoted{color:#0064d1;background:#e5f0ff}.gqw-main-v9 .gqw-status.is-complete{color:#248a3d;background:#e1f5e5}
.gqw-main-v9 .gqw-quick span{margin-left:6px;font-variant-numeric:tabular-nums}
.gqw-main-v9 .gqw-sidebar-controls{background:transparent;border:0;box-shadow:none;padding-bottom:20px}
.gqw-unified .gqw-detail :is(input,select,textarea):focus-visible{outline:0;box-shadow:0 0 0 2px rgba(0,122,255,.18);border-color:#007aff}
@media(max-width:1059px){.gqw-unified .gqw-focus-layout{grid-template-rows:minmax(0,1fr) minmax(240px,42vh)}.gqw-unified .gqw-focus-layout .gqw-material-details .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.gqw-unified .gqw-quote-side>fieldset .gqw-form-block{display:grid;grid-template-columns:240px minmax(0,1fr);gap:8px 24px}.gqw-unified .gqw-quote-side .gqw-fields{grid-column:1;grid-row:1/3}.gqw-unified .gqw-quote-side .gqw-totals>span:first-child{grid-column:2;grid-row:1;margin:0;padding:0;border:0}.gqw-unified .gqw-quote-side .gqw-totals>span:nth-child(2){grid-column:2;grid-row:2;padding:0}.gqw-unified .gqw-quote-side .gqw-offer-row{grid-column:1;grid-row:3;margin:0}.gqw-unified .gqw-quote-side .gqw-totals>span:nth-child(4){grid-column:2;grid-row:3}.gqw-unified .gqw-quote-side footer{margin-top:auto}}
@media(max-width:720px){.gqw-unified .gqw-static-identity{padding:12px;gap:12px}.gqw-unified .gqw-static-identity .gqw-style-photos{flex-basis:106px}.gqw-unified .gqw-focus-layout>.gqw-scroll{padding:12px}.gqw-unified .gqw-plan-name input,.gqw-unified .gqw-cost-table select,.gqw-unified .gqw-quote-side .gqw-fields input{height:var(--gc-ui-touch-target-height,44px);min-height:44px}.gqw-unified .gqw-quote-side>fieldset .gqw-form-block{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px}.gqw-unified .gqw-drawer-top{padding:12px}.gqw-unified .gqw-drawer-top>.gqw-drawer-meta{display:none}}
@media(max-width:1059px){.gqw-concentrated .gqw-focus-layout{grid-template-columns:minmax(0,1fr)}.gqw-concentrated .gqw-quote-side{border-left:0;border-top:1px solid #e5e5ea;max-height:42vh}.gqw-concentrated .gqw-focus-layout>.gqw-scroll{min-height:150px}.gqw-concentrated .gqw-static-identity{max-height:140px}.gqw-concentrated .gqw-quote-side footer{position:sticky}}
@media(max-width:720px){.gqw-concentrated .gqw-business-tabs{flex-wrap:wrap;gap:4px}.gqw-concentrated .gqw-business-tabs>.gqw-new-link{margin-bottom:12px}.gqw-concentrated .gqw-static-identity{padding:10px 12px;gap:12px}.gqw-concentrated .gqw-static-identity .gqw-style-photos{flex-basis:112px}.gqw-concentrated .gqw-focus-layout>.gqw-scroll{padding:12px}.gqw-concentrated .gqw-brand-field{flex:1 1 auto}.gqw-concentrated .gqw-cost-table td>.gqw-field input,.gqw-concentrated select,.gqw-concentrated .gqw-material-details .gqw-field input,.gqw-concentrated .gqw-quote-side input{height:44px;min-height:44px}.gqw-concentrated .gqw-cost-table td{height:60px}.gqw-concentrated .gqw-material-toggle{min-height:44px}}

/* Approved quotation concept: one white surface, visible scheme controls and a readable cost rail. */
.gqw-unified .gqw-detail{width:min(1260px,100vw)}
.gqw-unified .gqw-drawer-top{min-height:76px;padding:16px 28px;background:#fff}
.gqw-unified .gqw-drawer-top strong{font-size:22px;letter-spacing:-.02em}
.gqw-unified .gqw-static-identity{padding:16px 28px;gap:24px}
.gqw-unified .gqw-static-identity .gqw-style-photos{flex-basis:300px}
.gqw-unified .gqw-static-identity .gqw-photo-preview>button{flex-basis:58px;width:58px;height:76px}
.gqw-unified .gqw-focus-layout{grid-template-columns:minmax(0,1fr) minmax(320px,360px)}
.gqw-unified .gqw-focus-layout>.gqw-scroll{padding:24px 28px 36px}
.gqw-unified .gqw-plan-name{gap:12px;margin-bottom:12px}
.gqw-unified .gqw-plan-name>h3{flex:0 0 100%;font-size:18px;font-weight:700;letter-spacing:-.01em;margin:0 0 4px}
.gqw-unified .gqw-plan-name>.gqw-field>span{font-size:13px}
.gqw-unified .gqw-plan-name>button.gqw-plan-action{min-height:36px;font-size:13px}
.gqw-unified .gqw-scheme-card .gqw-plans{margin:0 0 12px}
.gqw-unified .gqw-scheme-card .gqw-plans button[aria-pressed=true]{background:#eaf3ff;color:#007aff;border-color:#eaf3ff}
.gqw-unified .gqw-form-block>h3:not([hidden]){font-size:16px;font-weight:700;margin:22px 0 12px}
.gqw-unified .gqw-cost-table{min-width:600px}
.gqw-unified .gqw-cost-table col:nth-child(2),.gqw-unified .gqw-cost-table col:nth-child(3),.gqw-unified .gqw-cost-table col:nth-child(4){width:128px}
.gqw-unified .gqw-cost-table col:last-child{width:80px}
.gqw-unified .gqw-cost-table th{height:42px;font-size:13px}
.gqw-unified .gqw-cost-table td{height:64px;font-size:14px}
.gqw-unified .gqw-cost-table td>.gqw-field input{width:100%;height:40px;min-height:40px}
.gqw-unified .gqw-cost-table select.gqw-fabric-select{max-width:220px;width:100%;height:40px}
.gqw-unified .gqw-material-info{margin-top:20px;padding-top:20px}
.gqw-unified .gqw-material-heading{font-size:16px}
.gqw-unified .gqw-quote-side{padding:24px 26px}
.gqw-unified .gqw-quote-side>h3{font-size:20px;letter-spacing:-.01em;margin:0 0 24px}
.gqw-unified .gqw-quote-side .gqw-fields{gap:12px}
.gqw-unified .gqw-quote-side .gqw-field>span{font-size:13px}
.gqw-unified .gqw-quote-side .gqw-fields input,.gqw-unified .gqw-quote-side .gqw-offer-row input{height:44px;min-height:44px}
.gqw-unified .gqw-quote-side .gqw-totals>span{font-size:13px;min-height:38px}
.gqw-unified .gqw-quote-side .gqw-totals>span b{font-size:19px}
.gqw-unified .gqw-quote-side footer{margin-inline:-26px;padding:12px 26px}
@media(max-width:1059px){.gqw-unified .gqw-focus-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(240px,42vh)}.gqw-unified .gqw-quote-side{padding:16px 20px}.gqw-unified .gqw-quote-side footer{margin-inline:-20px;padding-inline:20px}}
@media(max-width:720px){.gqw-unified .gqw-drawer-top{min-height:64px;padding:12px}.gqw-unified .gqw-static-identity{padding:12px;gap:12px}.gqw-unified .gqw-static-identity .gqw-style-photos{flex-basis:112px}.gqw-unified .gqw-static-identity .gqw-photo-preview>button{flex-basis:48px;width:48px;height:62px}.gqw-unified .gqw-focus-layout>.gqw-scroll{padding:12px}.gqw-unified .gqw-cost-table td>.gqw-field input,.gqw-unified .gqw-cost-table select.gqw-fabric-select{height:44px;min-height:44px}}

/* Scheme removal retains historical events; read-only photos use the existing image viewer. */
.gqw-unified .gqw-plan-name>button.gqw-plan-remove{color:#d70015;border-color:#f0b8bd;margin-left:0}
.gqw-unified .gqw-plan-name>button.gqw-plan-remove:hover{background:#fff2f3}
.gqw-unified .gqw-archived-plans{width:100%;font-size:12px;color:#6e6e73}
.gqw-unified .gqw-archived-plans summary{cursor:pointer}
.gqw-unified .gqw-archived-plans button{margin:8px 8px 0 0}
.gqw-unified .gqw-static-identity:has(.gqw-photo-details[open]){max-height:min(45vh,420px)}
.gqw-unified .gqw-photo-details[open]>summary{position:sticky;top:0;z-index:2;background:#fff}
.gqw-unified .gqw-confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.gqw-unified .gqw-confirm-actions>button.gqw-danger{color:#d70015;border-color:#f0b8bd;background:#fff}
/* Final price reuses the existing quotation input; no new panel or colour system. */
.gqw-unified .gqw-quote-side .gqw-final-row .gqw-field{flex-basis:100%;max-width:100%}
.gqw-unified .gqw-quote-side .gqw-final-row{order:2}
@media(max-width:1059px){.gqw-unified .gqw-quote-side .gqw-final-row{grid-column:1;grid-row:4}}

/* quotation-split-peter-v1 — approved list/editor frame. Only the Peter module mounts this scope.
   One editor DOM, original inputs/actions; container width (not viewport) determines the cost rail. */
html body main#main#main:has(>.gqw-split){padding:16px 36px 20px!important;overflow:hidden!important}
html body #main>.gqw.gqw-split{background:transparent;border:0;border-radius:0;padding:0!important;gap:0;overflow:visible;min-height:0}
.gqw.gqw-split .gqw-business-tabs{flex-shrink:0}
.gqw.gqw-split .gqw-business-tabs .fs-pilot-tabs{margin:0 0 16px;padding:0;gap:24px}
.gqw.gqw-split .gqw-sidebar-controls{padding:0 0 18px;flex:0 0 auto;overflow:visible}
.gqw.gqw-split .gqw-search-line{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;overflow:visible}
.gqw.gqw-split .gqw-search-line .prod-qc-searchbar{flex:0 1 320px;max-width:430px;min-width:200px}
.gqw.gqw-split #gqwCategory{width:154px;max-width:100%;flex:0 0 auto}
.gqw.gqw-split .gqw-brand-field{flex:0 0 auto;width:150px}
.gqw.gqw-split .gqw-brand-field select{width:100%}
.gqw.gqw-split .gqw-search-line>.gqw-new-link{margin-left:auto;background:var(--primary,#007aff);color:#fff;border-color:var(--primary,#007aff);min-height:36px;white-space:nowrap;padding:0 14px}
.gqw.gqw-split .gqw-ledger-section{display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:0}
.gqw.gqw-split .gqw-ledger-heading{flex:0 0 auto;margin:0 0 12px;min-height:30px}
.gqw.gqw-split .gqw-ledger-heading h2{margin:0;line-height:30px}
.gqw.gqw-split .gqw-split-body{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;flex:1;min-width:0;min-height:0;overflow:hidden;container-type:inline-size;container-name:gqw-workspace}
.gqw.gqw-split .gqw-list{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line,#e5e5ea);border-radius:8px;overflow:hidden;background:#fff}
.gqw.gqw-split .gqw-list .gqw-table-scroll{flex:1;min-height:0;overflow:auto;border:0;border-radius:0;scrollbar-gutter:auto}
.gqw.gqw-split .gqw-main-table{display:block;min-width:0;width:100%;table-layout:auto}
.gqw.gqw-split .gqw-main-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.gqw.gqw-split .gqw-main-table tbody{display:block;width:100%}
.gqw.gqw-split .gqw-split-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;padding:0 14px;background:#fff;border-bottom:1px solid var(--line,#e5e5ea);font-size:12px;flex-shrink:0}
.gqw.gqw-split .gqw-split-list-head>span{color:var(--ink-muted,#6b6b6e)}
.gqw.gqw-split .gqw-main-table tr{display:block;padding:14px 12px;min-height:104px;height:auto;background:#fff;border-bottom:1px solid #f0f0f3;cursor:pointer}
.gqw.gqw-split .gqw-main-table tr:hover{background:#f9f9fb}
.gqw.gqw-split .gqw-main-table tr.is-selected{background:var(--bg,#f5f5f7);box-shadow:none}
.gqw.gqw-split .gqw-main-table tr:focus-visible{outline:2px solid var(--primary,#007aff);outline-offset:-3px}
.gqw.gqw-split .gqw-main-table td{display:block;width:auto;min-width:0;height:auto;min-height:0;padding:0;border:0;background:transparent;text-align:left;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.gqw.gqw-split .gqw-main-table td:first-child{grid-column:1/-1}
.gqw.gqw-split .gqw-main-table td:nth-child(3),.gqw.gqw-split .gqw-main-table td:nth-child(5){text-align:right}
.gqw.gqw-split .gqw-main-table td:nth-child(2){color:var(--ink-muted,#6b6b6e)}
.gqw.gqw-split .gqw-main-table td:nth-child(5){font-size:11px;color:var(--ink-muted,#6b6b6e)}
.gqw.gqw-split .gqw-main-table td.gqw-action{display:none}
.gqw.gqw-split .gqw-main-table td:not(:first-child){display:none}
.gqw.gqw-split .gqw-style-cell .gqw-chip{display:inline-flex;margin-top:5px}
.gqw.gqw-split .gqw-style-cell{gap:10px;align-items:center}
.gqw.gqw-split .gqw-style-cell>span:last-child{flex:1;min-width:0}
.gqw.gqw-split .gqw-style-cell b{font-size:13px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}
.gqw.gqw-split .gqw-style-cell small{font-size:12px;margin-top:3px}
.gqw.gqw-split .gqw-thumb{width:48px;height:62px;flex:0 0 48px}
.gqw.gqw-split .gqw-thumb img{width:48px;height:62px;object-fit:contain}
.gqw.gqw-split .gqw-detail,.gqw.gqw-split .gqw-split-empty{position:relative;inset:auto;width:100%;max-width:none;height:100%;min-height:0;min-width:0;border:1px solid var(--line,#e5e5ea);border-radius:8px;box-shadow:none;transform:none;animation:none;background:#fff;overflow:hidden}
.gqw.gqw-split .gqw-detail{display:flex;flex-direction:column;container-type:inline-size;container-name:gqw-editor}
.gqw.gqw-split .gqw-split-empty{display:grid;place-content:center;color:var(--ink-muted,#6b6b6e)}
.gqw.gqw-split .gqw-split-empty h2{font-size:16px;font-weight:500}
.gqw.gqw-split .gqw-drawer-top{position:relative;top:auto;min-height:64px;padding:14px 20px;flex:0 0 auto;background:#fff;filter:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0;gap:10px}
.gqw.gqw-split .gqw-drawer-top strong{font-size:18px;font-weight:600;overflow-wrap:anywhere;min-width:0}
.gqw.gqw-split .gqw-drawer-top>.gqw-drawer-meta{font-size:12px;margin:0}
.gqw.gqw-split .gqw-drawer-top>.gqw-record-link{margin-left:auto;padding:0 10px;min-height:32px;border:1px solid var(--line,#e5e5ea);border-radius:6px;color:var(--ink-soft,#424248);white-space:nowrap}
.gqw.gqw-split .gqw-drawer-top>.drawer-close{margin-left:0;flex:0 0 32px;width:32px;height:32px;min-height:32px}
.gqw.gqw-split .drawer-close>span{display:none}
.gqw.gqw-split .gqw-static-identity{padding:12px 20px;gap:16px;max-height:116px;flex:0 0 auto;background:#fff}
.gqw.gqw-split .gqw-static-identity .gqw-style-photos{flex-basis:160px}
.gqw.gqw-split .gqw-static-identity .gqw-photo-preview>button{width:48px;height:62px;flex:0 0 48px}
.gqw.gqw-split .gqw-focus-layout{display:flex;flex-direction:column;flex:1;grid-template-columns:none;grid-template-rows:none;min-height:0;overflow:auto;background:#fff}
.gqw.gqw-split .gqw-focus-layout>.gqw-scroll{flex:0 0 auto;min-height:0;padding:18px 20px;overflow:visible;background:#fff}
.gqw.gqw-split .gqw-split-editor-scroll{flex:1;min-height:0;min-width:0;overflow:auto;padding:18px 20px}
.gqw.gqw-split .gqw-split-planbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.gqw.gqw-split .gqw-split-planbar>h3{font-size:16px;margin:0 10px 0 0}
.gqw.gqw-split .gqw-split-planbar>.gqw-plans{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;min-width:0}
.gqw.gqw-split .gqw-split-plan-settings{margin-left:auto;max-width:100%;font-size:12px}
.gqw.gqw-split .gqw-split-plan-settings>summary{cursor:pointer;padding:8px 0;color:var(--ink-muted,#6b6b6e)}
.gqw.gqw-split .gqw-split-plan-settings[open]{flex-basis:100%;margin-left:0}
.gqw.gqw-split .gqw-split-editor-scroll>.gqw-focus-layout{flex:none;overflow:visible;gap:16px;align-items:stretch}
.gqw.gqw-split .gqw-split-editor-scroll>.gqw-focus-layout>.gqw-scroll{padding:0;overflow:visible;min-width:0}
.gqw.gqw-split .gqw-split-editor-scroll .gqw-scroll .gqw-form-block>h3{display:none}
.gqw.gqw-split .gqw-split-editor-scroll .gqw-scroll>.gqw-section:has(>fieldset) .gqw-form-block:first-child{padding:0;border:0;border-radius:0}
.gqw.gqw-split .gqw-quote-side{flex:0 0 auto;max-height:none;min-height:0;padding:18px 20px;border-left:0;border-top:1px solid var(--line,#e5e5ea);overflow:visible;background:#fff}
.gqw.gqw-split .gqw-quote-side>h3{font-size:16px;margin:0 0 16px}
.gqw.gqw-split .gqw-split-editor-scroll .gqw-quote-side{padding:0;border:0;border-radius:0;overflow:visible;align-self:start;width:100%;box-sizing:border-box}
.gqw.gqw-split .gqw-split-editor-scroll .gqw-quote-side>h3{font-size:14px;padding:12px 16px;border:0;margin:0}
.gqw.gqw-split .gqw-split-editor-scroll .gqw-quote-side>fieldset{padding:14px 16px}
.gqw.gqw-split .gqw-quote-side>fieldset .gqw-form-block{display:flex;flex-direction:column;gap:0}
.gqw.gqw-split .gqw-quote-side .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 8px}
.gqw.gqw-split .gqw-quote-side .gqw-totals>span:first-child{margin-top:4px;padding-top:8px;border-top:0}
.gqw.gqw-split .gqw-quote-side .gqw-totals>span:nth-child(2){padding-bottom:8px;border-bottom:1px solid var(--line,#e5e5ea)}
.gqw.gqw-split .gqw-quote-side .gqw-totals>span{font-size:12px;min-height:28px}
.gqw.gqw-split .gqw-quote-side .gqw-totals>span b{font-size:17px}
.gqw.gqw-split .gqw-quote-side .gqw-offer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;margin:10px 0 0;align-items:center}
.gqw.gqw-split .gqw-quote-side .gqw-offer-row>.gqw-field{display:contents}
.gqw.gqw-split .gqw-quote-side .gqw-offer-row>.gqw-field>span{grid-column:1;grid-row:1}
.gqw.gqw-split .gqw-quote-side .gqw-offer-row>.gqw-field>input{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
.gqw.gqw-split .gqw-quote-side .gqw-offer-row>button{grid-column:2;grid-row:1;min-height:24px;margin:0;padding:0;font-size:11px}
.gqw.gqw-split .gqw-quote-side .gqw-fields input,.gqw.gqw-split .gqw-quote-side .gqw-offer-row input{height:var(--gc-ui-field-height,36px);min-height:36px}
.gqw.gqw-split .gqw-plan-name>h3{flex-basis:auto;font-size:16px;font-weight:600;margin:0 4px 0 0}
.gqw.gqw-split .gqw-plan-name{gap:10px;margin-bottom:14px}
.gqw.gqw-split .gqw-plan-name>button.gqw-plan-action{font-size:12px}
.gqw.gqw-split .gqw-cost-table{min-width:560px;table-layout:fixed;font-variant-numeric:tabular-nums;margin:0}
.gqw.gqw-split .gqw-cost-scroll{width:100%;max-width:100%;overflow:auto;margin-bottom:12px;border:0;border-radius:6px;box-sizing:border-box}
.gqw.gqw-split .gqw-cost-table col:nth-child(2),.gqw.gqw-split .gqw-cost-table col:nth-child(3),.gqw.gqw-split .gqw-cost-table col:nth-child(4){width:108px}
.gqw.gqw-split .gqw-cost-table col:last-child{width:88px}
.gqw.gqw-split .gqw-cost-table th{height:40px;font-size:12px;background:#f5f5f7}
.gqw.gqw-split .gqw-cost-table td{height:52px;font-size:13px}
.gqw.gqw-split .gqw-cost-table :is(th,td){padding:8px 12px;text-align:center;vertical-align:middle;border-bottom:1px solid #f0f0f3}
.gqw.gqw-split .gqw-cost-table tbody:last-child tr:last-child td{border-bottom:0}
.gqw.gqw-split .gqw-cost-table :is(th,td):first-child{padding-left:16px;text-align:left}
.gqw.gqw-split .gqw-cost-fees td:first-child>span{display:inline-block;padding-left:8px}
.gqw.gqw-split .gqw-cost-table :is(th,td):last-child{padding-right:16px;text-align:right}
.gqw.gqw-split .gqw-cost-table th:not(:first-child):not(:last-child)>span{display:block;width:84px;text-align:center}
.gqw.gqw-split .gqw-cost-table td>.gqw-field{width:84px;margin:0}
.gqw.gqw-split .gqw-cost-table td>.gqw-field input{width:84px;height:28px;min-height:28px;text-align:center;padding:0 8px}
.gqw.gqw-split .gqw-cost-table select.gqw-fabric-select{height:36px;min-height:36px;max-width:100%}
/* Light form surfaces; keep native input/select semantics and existing focus handling. */
/* The entry's global numeric-input radius is !important; limit its override to this editor. */
#main .gqw.gqw-split .gqw-detail :is(input:not([type=file]),select,textarea){background-color:#f5f5f7;border:1px solid transparent;border-radius:5px!important;box-shadow:none}
#main .gqw.gqw-split .gqw-detail :is(input:not([type=file]),select,textarea):hover:not(:disabled){background-color:#f0f0f3}
#main .gqw.gqw-split .gqw-detail :is(input:not([type=file]),select,textarea):focus-visible{background-color:#fff;border-color:var(--primary,#007aff);box-shadow:0 0 0 2px rgba(0,122,255,.14);outline:0}
#main .gqw.gqw-split .gqw-detail :is(input,select,textarea):disabled{background-color:#f5f5f7;color:var(--ink-muted,#6b6b6e);border-color:transparent}
#main .gqw.gqw-split .gqw-detail input[readonly]{background-color:transparent;border-color:transparent}
#main .gqw.gqw-split .gqw-cost-table input:not([readonly]){background-color:#f7f7f9}
/* Legacy gc-quotation.css fixes all input heights with !important. Only compact numeric cells differ. */
@media(min-width:721px){#main .gqw.gqw-split .gqw-cost-table td>.gqw-field input{height:28px!important;min-height:28px!important}}
#main .gqw.gqw-split .gqw-detail .gqw-soft-action,#main .gqw.gqw-split .gqw-drawer-top>.gqw-record-link{background:#f5f5f7;border-color:transparent;border-radius:5px}
.gqw.gqw-split .gqw-split-actions button{border-radius:5px}
.gqw.gqw-split .gqw-material-info{margin-top:14px;padding-top:14px}
.gqw.gqw-split .gqw-material-heading{font-size:13px}
.gqw.gqw-split .gqw-split-editor-scroll>.gqw-history-section{display:block;margin-top:14px;border-top:1px solid var(--line,#e5e5ea);padding-top:14px}
.gqw.gqw-split .gqw-split-editor-scroll .gqw-material-details .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gqw.gqw-split .gqw-focus-layout .gqw-material-details .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gqw.gqw-split .gqw-detail>footer.gqw-split-actions{position:relative;bottom:auto;margin:0;padding:8px 20px;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto;background:#fff;border-top:0;z-index:1}
.gqw.gqw-split .gqw-detail>footer.gqw-split-actions:empty{display:none}
.gqw.gqw-split .gqw-split-actions button{min-height:36px;padding:0 12px;white-space:nowrap;font-size:12px}
.gqw.gqw-split .gqw-split-actions .gqw-message{flex:1 0 100%;max-width:100%;margin:0;overflow-wrap:anywhere}
.gqw.gqw-split .gqw-split-actions .gqw-message:empty{display:none}
@container gqw-editor (min-width:900px){
  .gqw.gqw-split .gqw-focus-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:minmax(0,1fr);overflow:hidden}
  .gqw.gqw-split .gqw-focus-layout>.gqw-scroll{overflow:auto}
  .gqw.gqw-split .gqw-quote-side{overflow:auto;border-top:0;border-left:1px solid var(--line,#e5e5ea)}
  .gqw.gqw-split .gqw-split-editor-scroll>.gqw-focus-layout{grid-template-rows:auto;overflow:visible;align-items:start}
  .gqw.gqw-split .gqw-split-editor-scroll>.gqw-focus-layout>.gqw-scroll{overflow:visible}
}
@container gqw-workspace (max-width:739px){
  .gqw.gqw-split .gqw-list,.gqw.gqw-split .gqw-detail{grid-column:1/-1}
  .gqw.gqw-split-selected .gqw-list,.gqw.gqw-split .gqw-split-empty{display:none}
  .gqw.gqw-split .gqw-drawer-top>.drawer-close{flex:0 0 auto;width:auto;height:36px;min-height:36px;gap:4px;padding:0 8px;font-size:12px}
  .gqw.gqw-split .drawer-close>span{display:inline}
}
@media(max-width:1200px){.gqw.gqw-split .gqw-split-body{grid-template-columns:220px minmax(0,1fr);gap:12px}}
@media(max-width:900px){html body main#main#main:has(>.gqw-split){padding:16px 18px 12px!important}.gqw.gqw-split .gqw-search-line .prod-qc-searchbar{flex:1 1 220px}.gqw.gqw-split .gqw-split-body{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:720px){
  html body main#main#main:has(>.gqw-split){padding:12px!important}
  .gqw.gqw-split .gqw-search-line{gap:8px}
  .gqw.gqw-split .gqw-search-line .prod-qc-searchbar{flex:1 1 100%;min-width:0;max-width:none}
  .gqw.gqw-split .gqw-brand-field{width:130px}
  .gqw.gqw-split .gqw-search-line>.gqw-new-link{min-height:44px}
  .gqw.gqw-split .gqw-split-body{grid-template-columns:minmax(0,1fr)}
  .gqw.gqw-split-selected .gqw-list{display:none}
  .gqw.gqw-split .gqw-split-empty{display:none}
  .gqw.gqw-split .gqw-drawer-top{padding:10px 12px;min-height:56px}
  .gqw.gqw-split .gqw-drawer-top strong{font-size:16px}
  .gqw.gqw-split .gqw-drawer-top>.drawer-close{flex:0 0 auto;width:auto;height:36px;min-height:36px;gap:4px;padding:0 8px;font-size:12px}
  .gqw.gqw-split .drawer-close>span{display:inline}
  .gqw.gqw-split .gqw-static-identity{padding:10px 12px;max-height:100px}
  .gqw.gqw-split .gqw-static-identity .gqw-style-photos{flex-basis:112px}
  .gqw.gqw-split .gqw-focus-layout>.gqw-scroll,.gqw.gqw-split .gqw-quote-side{padding:14px 12px}
  .gqw.gqw-split .gqw-split-editor-scroll{padding:14px 12px}
  .gqw.gqw-split .gqw-cost-table td>.gqw-field input,.gqw.gqw-split .gqw-cost-table select.gqw-fabric-select,.gqw.gqw-split .gqw-quote-side .gqw-fields input,.gqw.gqw-split .gqw-quote-side .gqw-offer-row input{height:var(--gc-ui-touch-target-height,44px);min-height:44px}
  .gqw.gqw-split .gqw-detail>footer.gqw-split-actions{padding:10px 12px}
  .gqw.gqw-split .gqw-split-actions button{min-height:44px}
}
/* quotation-records-simple-peter-v1: same workspace, read-only event comparison. */
.gqw.gqw-split .gqw-record-head{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #e5e5ea;flex:0 0 auto;background:#fff}
.gqw.gqw-split .gqw-record-head h2{font-size:18px;font-weight:650;overflow-wrap:anywhere}
.gqw.gqw-split .gqw-record-head p{margin-top:5px;font-size:13px;color:#6b6b6e}
.gqw.gqw-split .gqw-record-photo{width:48px;height:62px;min-height:62px;padding:0;border:0;flex:0 0 48px;border-radius:5px;background:#f5f5f7;overflow:hidden}
.gqw.gqw-split .gqw-record-photo img{width:100%;height:100%;object-fit:contain}
.gqw.gqw-split .gqw-record-nav{margin-left:auto;display:flex;gap:8px;flex:0 0 auto}
.gqw.gqw-split .gqw-record-nav button{position:static;width:auto;white-space:nowrap;font-size:13px}
.gqw.gqw-split .gqw-record-view>.gqw-record-body{padding:24px;overflow:auto;flex:1;min-height:0;background:#fff}
.gqw.gqw-split .gqw-record-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.gqw.gqw-split .gqw-record-title span{font-size:13px;color:#6b6b6e}
.gqw.gqw-split .gqw-record-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 24px;border-bottom:1px solid #e5e5ea;margin:0 0 28px;gap:24px}
.gqw.gqw-split .gqw-record-prices dt{font-size:13px;color:#6b6b6e;margin-bottom:10px}
.gqw.gqw-split .gqw-record-prices dd{margin:0;font-size:22px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.gqw.gqw-split .gqw-record-dual{display:inline-block}
.gqw.gqw-split .gqw-record-prices small{font-size:12px;font-weight:400;color:#6b6b6e;margin-left:6px;display:inline-block}
.gqw.gqw-split .gqw-record-entry{border-bottom:1px solid #e5e5ea;padding-bottom:12px}
.gqw.gqw-split .gqw-record-entry>summary{display:grid;grid-template-columns:minmax(0,1fr) 100px 90px;align-items:center;gap:12px;min-height:72px;padding:12px 0;cursor:pointer;list-style:none}
.gqw.gqw-split .gqw-record-entry>summary strong{font-size:14px;font-weight:600}
.gqw.gqw-split .gqw-record-entry>summary small{display:block;color:#6b6b6e;font-size:12px;margin-top:5px;overflow-wrap:anywhere}
.gqw.gqw-split .gqw-record-entry>summary b{text-align:right;font-variant-numeric:tabular-nums;font-size:16px;overflow-wrap:anywhere}
.gqw.gqw-split .gqw-record-expand{text-align:right;font-size:13px;color:#007aff;transition:none!important}
.gqw.gqw-split .gqw-record-entry[open] .gqw-record-expand{font-size:0}
.gqw.gqw-split .gqw-record-entry[open] .gqw-record-expand:after{content:'收起资料';font-size:13px}
.gqw.gqw-split .gqw-record-archive{margin-top:24px;font-size:13px;color:#6b6b6e}
.gqw.gqw-split .gqw-record-archive>summary{cursor:pointer;padding:10px 0}
.gqw.gqw-split .gqw-record-empty{padding:24px 0;color:#6b6b6e;font-size:13px}
.gqw.gqw-split .gqw-record-plans{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.gqw.gqw-split .gqw-record-view .gqw-snapshot{background:#fff;padding:12px 0;margin:0}
.gqw.gqw-split .gqw-record-view .gqw-event{border-left:0;padding-left:0}
.gqw.gqw-split .gqw-record-view .gqw-snapshot .gqw-totals{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
@media(max-width:900px){.gqw.gqw-split .gqw-record-head,.gqw.gqw-split .gqw-record-view>.gqw-record-body{padding:18px}.gqw.gqw-split .gqw-record-prices{gap:12px}.gqw.gqw-split .gqw-record-head{flex-wrap:wrap}.gqw.gqw-split .gqw-record-nav{flex-wrap:wrap}}
@media(max-width:720px){.gqw.gqw-split .gqw-record-head{gap:12px}.gqw.gqw-split .gqw-record-head h2{font-size:16px}.gqw.gqw-split .gqw-record-prices dd{font-size:19px}.gqw.gqw-split .gqw-record-entry>summary{grid-template-columns:minmax(0,1fr) 80px 76px}.gqw.gqw-split .gqw-record-nav button{min-height:44px}}

/* quotation-inline-actions-peter-v1: one column geometry for headers, values and actions. */
.gqw.gqw-split .gqw-cost-table.gqw-inline-actions{table-layout:fixed;min-width:620px}
.gqw.gqw-split .gqw-inline-actions col:nth-child(1){width:30%}
.gqw.gqw-split .gqw-inline-actions col:nth-child(2),.gqw.gqw-split .gqw-inline-actions col:nth-child(3),.gqw.gqw-split .gqw-inline-actions col:nth-child(4){width:16%}
.gqw.gqw-split .gqw-inline-actions col:nth-child(5){width:12%}
.gqw.gqw-split .gqw-inline-actions col:nth-child(6){width:10%}
.gqw.gqw-split .gqw-inline-actions :is(th,td){padding-left:10px;padding-right:10px}
.gqw.gqw-split .gqw-inline-actions :is(th,td):nth-child(5){text-align:right}
.gqw.gqw-split .gqw-inline-actions :is(th,td):nth-child(6){text-align:center;padding-left:10px;padding-right:10px}
.gqw.gqw-split .gqw-inline-actions th:nth-child(6)>span{display:block;width:100%;text-align:center}
.gqw.gqw-split .gqw-inline-actions th:nth-child(5)>span{display:block;width:auto;text-align:right}
.gqw.gqw-split .gqw-inline-actions :is(th,td):is(:nth-child(2),:nth-child(3),:nth-child(4)){text-align:center}
.gqw.gqw-split .gqw-inline-actions th:is(:nth-child(2),:nth-child(3),:nth-child(4))>span{width:100%;text-align:center}
.gqw.gqw-split .gqw-inline-actions td:is(:nth-child(2),:nth-child(3),:nth-child(4)) input{margin-left:auto;margin-right:auto}
.gqw.gqw-split table.gqw-cost-table.gqw-inline-actions th:not(:first-child):not(:last-child)>span{width:100%;text-align:center}
.gqw.gqw-split table.gqw-cost-table.gqw-inline-actions th:nth-child(5)>span{text-align:right}
.gqw.gqw-split table.gqw-cost-table.gqw-inline-actions td>.gqw-field{margin-left:auto;margin-right:auto;max-width:100%}
.gqw.gqw-split table.gqw-cost-table.gqw-inline-actions td>.gqw-field input{max-width:100%}
.gqw.gqw-split table.gqw-cost-table.gqw-inline-actions th:first-child>span{padding-left:8px}
.gqw.gqw-split .gqw-inline-actions td:last-child button{border:0;background:none;color:#c43c3c;padding:0;min-height:32px;width:auto;font-size:12px}
.gqw .gqw-material-cell{display:flex;align-items:center;gap:8px}
.gqw .gqw-material-cell select{flex:1;min-width:0}
.gqw .gqw-material-cell button{border:0;background:none;color:#007aff;padding:0;min-height:32px;font-size:12px;white-space:nowrap}
.gqw .gqw-inline-plan-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.gqw .gqw-inline-plan-actions button{border:0;background:none;font-size:13px;color:#63636b;padding:4px 8px}
.gqw .gqw-inline-plan-actions [data-act="remove-plan"]{color:#c43c3c}
.gqw .gqw-inline-note{margin-top:20px;padding-top:16px;border-top:1px solid #ededf0}
.gqw .gqw-inline-note textarea{min-height:64px}
.gqw .gqw-modal .gqw-material .gqw-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.gqw .gqw-modal .gqw-material{border:0;padding:0;margin:0}
.gqw.gqw-split .gqw-new-style-modal{align-items:center;justify-content:center;padding:20px;z-index:11000}
.gqw.gqw-split .gqw-new-style-modal>.gqw-detail{width:min(1260px,100%);height:calc(100dvh - 40px);max-height:100%;border-radius:12px}
.gqw .gqw-new-style-modal .gqw-focus-layout{overflow:auto;min-height:0;flex:1}
/* quotation-final-polish-peter-v1: local selection, matched actions, one public focus owner. */
.gqw.gqw-split .gqw-drawer-top>.gqw-narrow-back{display:none}
.gqw.gqw-split .gqw-cost-table thead,.gqw.gqw-split .gqw-cost-table th{background:#fff;border-bottom:1px solid var(--line,#e5e5ea)}
.gqw.gqw-split .gqw-split-planbar button{height:var(--gc-ui-field-height,36px);min-height:var(--gc-ui-field-height,36px);padding:0 12px;border:1px solid var(--line,#e5e5ea);border-radius:6px;background:#fff;color:var(--ink-strong,#1d1d1f);font-size:13px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:nowrap}
.gqw.gqw-split .gqw-split-planbar>.gqw-plans button,.gqw.gqw-split .gqw-split-planbar>[data-act="new-plan"],.gqw.gqw-split .gqw-split-planbar>[data-act="save-add-plan"]{min-width:92px}
.gqw.gqw-split .gqw-split-planbar button[aria-pressed="true"],.gqw.gqw-split .gqw-record-plans button[aria-pressed="true"]{background:var(--bg,#f5f5f7);color:var(--ink-strong,#1d1d1f);border-color:var(--line,#e5e5ea);font-weight:600;box-shadow:none}
.gqw.gqw-split .gqw-inline-plan-actions [data-act="remove-plan"]{color:#c43c3c}
@container gqw-workspace (max-width:739px){.gqw.gqw-split .gqw-drawer-top>.gqw-narrow-back{display:inline-flex}}
@container gqw-editor (max-width:640px){.gqw.gqw-split .gqw-record-prices{grid-template-columns:1fr;gap:16px}.gqw.gqw-split .gqw-record-prices dt{margin-bottom:4px}}
@media(max-width:720px){.gqw.gqw-split .gqw-split-planbar button{height:var(--gc-ui-touch-target-height,44px);min-height:44px}.gqw.gqw-split .gqw-drawer-top>.gqw-narrow-back{display:inline-flex}}
@media(max-width:720px){.gqw .gqw-inline-plan-actions{margin-left:0;width:100%}.gqw.gqw-split .gqw-inline-actions td:last-child button,.gqw .gqw-material-cell button{min-height:44px}.gqw.gqw-split .gqw-new-style-modal{padding:8px}.gqw.gqw-split .gqw-new-style-modal>.gqw-detail{height:calc(100dvh - 16px)}.gqw .gqw-modal .gqw-material .gqw-fields{grid-template-columns:1fr}}

/* quotation-usage-reference-peter-v1: current ERP data beside identity, no quote writes. */
.gqw.gqw-split .gqw-static-identity.gqw-has-usage{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(260px,1.25fr);align-items:center;max-height:164px;overflow:auto}
.gqw.gqw-split .gqw-has-usage>.gqw-static-copy:first-child{grid-column:span 2}
.gqw.gqw-split .gqw-usage-reference{min-width:0;max-height:136px;overflow:auto;border-left:1px solid var(--line,#e5e5ea);padding-left:20px;background:#fff;font-size:13px;color:var(--ink-strong,#1d1d1f)}
.gqw.gqw-split .gqw-usage-heading{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.gqw.gqw-split .gqw-usage-heading h3{font-size:14px;margin:0;font-weight:600}
.gqw.gqw-split .gqw-usage-heading>span,.gqw.gqw-split .gqw-usage-label{font-size:12px;color:var(--muted,#6e6e73)}
.gqw.gqw-split .gqw-usage-heading button{margin-left:auto;background:#fff;color:var(--muted,#6e6e73);height:28px;min-height:28px;padding:0 8px;font-size:12px}
.gqw.gqw-split .gqw-usage-source+.gqw-usage-source{margin-top:10px}
.gqw.gqw-split .gqw-usage-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:6px 20px}
.gqw.gqw-split .gqw-usage-groups>section{min-width:0}
.gqw.gqw-split .gqw-usage-source dl{margin:4px 0 8px;display:grid;gap:4px}
.gqw.gqw-split .gqw-usage-source dl>div{display:grid;grid-template-columns:minmax(70px,1fr) minmax(0,1.5fr);gap:12px;align-items:baseline}
.gqw.gqw-split .gqw-usage-source dt,.gqw.gqw-split .gqw-usage-source dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.gqw.gqw-split .gqw-usage-source dd{font-weight:500;text-align:right;font-variant-numeric:tabular-nums}
.gqw.gqw-split .gqw-usage-source p{margin:4px 0;color:var(--muted,#6e6e73);font-size:12px}
@container gqw-editor (max-width:1000px){
 .gqw.gqw-split .gqw-static-identity.gqw-has-usage{grid-template-columns:auto minmax(0,1fr);max-height:232px}
 .gqw.gqw-split .gqw-usage-reference{grid-column:1/-1;border-left:0;border-top:1px solid var(--line,#e5e5ea);padding:8px 0 0;max-height:112px}
}
@media(max-width:720px){.gqw.gqw-split .gqw-usage-heading button{height:44px;min-height:44px}.gqw.gqw-split .gqw-static-identity.gqw-has-usage{max-height:252px}}

/* quotation-cards-fabric-peter-v1: same single-select rows, separate quiet cards. */
.gqw.gqw-split .gqw-list{border:0;border-radius:0;background:transparent}
.gqw.gqw-split .gqw-split-list-head{padding:0 2px;border:0;background:transparent}
.gqw.gqw-split .gqw-list .gqw-table-scroll{padding:2px;background:transparent}
.gqw.gqw-split .gqw-main-table tr{position:relative;min-height:96px;padding:12px 32px 12px 10px;margin-bottom:8px;border:1px solid var(--line,#e5e5ea);border-radius:10px;background:#fff}
.gqw.gqw-split .gqw-main-table tr:last-child{margin-bottom:0}
.gqw.gqw-split .gqw-main-table tr.is-selected{border-color:var(--primary,#007aff);background:#fff;box-shadow:none}
.gqw.gqw-split .gqw-main-table tr:hover{background:#fafafa}
.gqw.gqw-split .gqw-main-table tr:focus-visible{outline:2px solid var(--primary,#007aff);outline-offset:0}
.gqw.gqw-split .gqw-card-check{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid var(--line,#d2d2d7);border-radius:50%;background:#fff;color:#fff}
.gqw.gqw-split .gqw-card-check svg{width:13px;height:13px;visibility:hidden}
.gqw.gqw-split .is-selected .gqw-card-check{background:var(--primary,#007aff);border-color:var(--primary,#007aff)}
.gqw.gqw-split .is-selected .gqw-card-check svg{visibility:visible}
/* The shared menu has two grid tracks; rich options need explicit price/photo tracks. */
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-rich-option{display:grid;grid-template-columns:16px minmax(0,1fr) max-content;gap:10px;min-height:64px;padding:10px;text-align:left}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-rich-option.has-photo{grid-template-columns:16px 36px minmax(0,1fr) max-content}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-photo{width:36px;height:44px;object-fit:contain;border-radius:5px;background:#f5f5f7}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-copy{width:auto;min-width:0}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-copy b{display:block;font-weight:600;line-height:1.4}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-copy small{max-width:none;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#gcErpSelectMenu.gqw-fabric-menu .gqw-fabric-option-price{width:auto;min-width:max-content;white-space:nowrap;word-break:normal;overflow-wrap:normal;text-align:right;align-self:start;line-height:1.4}
/* quotation-material-abc-peter-v1: simultaneous materials, not alternative plans. */
.gqw .gqw-cost-table td[data-material-label]::before{content:attr(data-material-label);display:block;margin-bottom:4px;color:inherit;font-weight:600;line-height:1.4}
/* Approved quotation workspace: inline creation, saved-snapshot table, customer export. */
#main .gqw.gqw-split .gqw-list-actions{display:flex;flex-direction:column;gap:8px;padding:0 0 12px;flex:none}
#main .gqw.gqw-split .gqw-list-actions .gqw-new-link{width:100%;margin:0;position:static;min-height:40px}
#main .gqw.gqw-split .gqw-list-actions>button{width:100%;min-height:38px}
#main .gqw.gqw-split .gqw-new-identity{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:12px 24px;padding:16px 20px;border-bottom:1px solid var(--border,#e4e4eb);background:#fff;flex:none;max-height:240px;overflow:auto}
#main .gqw-new-identity>h3{grid-column:1/-1;margin:0;font-size:15px}
#main .gqw-new-identity .gqw-photos{margin:0;display:flex;flex-wrap:wrap;gap:8px;max-height:130px;overflow:auto;align-content:start}
#main .gqw-new-identity .gqw-photos img{width:64px;height:80px;object-fit:contain}
#main .gqw-new-identity .gqw-upload{width:104px;min-width:104px;height:96px;margin:0;flex-direction:column;gap:4px}
#main .gqw-new-identity .gqw-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0;align-content:start}
#main .gqw-new-identity .gqw-fields>label:last-child{grid-column:1/-1}
#main .gqw-snapshot-aligned{padding:18px 0}
#main .gqw-snapshot-heading{display:flex;align-items:center;gap:16px;margin-bottom:20px}
#main .gqw-snapshot-heading h3{font-size:16px;margin:0 0 8px}
#main .gqw-snapshot-heading p{margin:0;color:var(--text-secondary,#727278)}
#main .gqw-snapshot-cover{display:flex;flex-direction:column;align-items:center;gap:6px;width:108px;padding:6px;border:1px solid var(--border,#e4e4eb);border-radius:8px;background:#fff;flex:none;font-size:11px;color:var(--text-secondary,#727278)}
#main .gqw-snapshot-cover img{width:88px;height:108px;object-fit:contain}
#main .gqw-snapshot-table-scroll{overflow:auto;margin-bottom:18px}
#main .gqw-snapshot-table{border-collapse:collapse;width:100%;min-width:600px;table-layout:fixed}
#main .gqw-snapshot-table th,#main .gqw-snapshot-table td{padding:12px 10px;text-align:right;border-bottom:1px solid var(--border,#e4e4eb);vertical-align:middle;font-size:14px;font-variant-numeric:tabular-nums}
#main .gqw-snapshot-table th{color:var(--text-secondary,#727278);font-weight:500;background:#f7f7f9}
#main .gqw-snapshot-table th:first-child,#main .gqw-snapshot-table td:first-child{text-align:left;width:30%}
#main .gqw-snapshot-table td:first-child>span,#main .gqw-snapshot-table td:first-child>small{display:block;color:var(--text-secondary,#727278);margin-top:4px;overflow-wrap:anywhere}
#main .gqw-snapshot-table td:last-child{font-weight:600}
#main .gqw-snapshot-meta{font-size:13px;color:var(--text-secondary,#727278);margin:16px 0 0}
#main .gqw-snapshot-note{white-space:pre-wrap;overflow-wrap:anywhere}
#main .gqw-export-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--border,#e4e4eb);border-radius:10px;background:#fff;overflow:hidden}
#main .gqw-export-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid var(--border,#e4e4eb);flex:none;background:#fff}
#main .gqw-export-panel h2{font-size:20px;margin:0 0 8px}
#main .gqw-export-panel p{font-size:13px;color:var(--text-secondary,#727278);margin:0}
#main .gqw-export-scroll{overflow:auto;flex:1;min-height:0}
#main .gqw-export-scroll table{width:100%;min-width:660px;border-collapse:collapse;table-layout:fixed}
#main .gqw-export-scroll th,#main .gqw-export-scroll td{padding:14px 10px;text-align:center;border-bottom:1px solid var(--border,#e4e4eb);font-size:13px;overflow-wrap:anywhere}
#main .gqw-export-scroll th{background:#f7f7f9;font-weight:600;position:sticky;top:0}
#main .gqw-export-scroll img{width:70px;height:90px;object-fit:contain;margin:2px}
#main .gqw-export-panel>footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-top:1px solid var(--border,#e4e4eb);flex:none}
#main .gqw-export-panel>footer>span{font-size:12px;color:var(--text-secondary,#727278)}
@media(max-width:720px){
  #main .gqw.gqw-split .gqw-new-identity{grid-template-columns:104px minmax(0,1fr);gap:10px;padding:12px;max-height:260px}
  #main .gqw-new-identity .gqw-fields{grid-template-columns:1fr 1fr;gap:8px}
  #main .gqw.gqw-split.gqw-export-mode .gqw-split-body{grid-template-columns:1fr;grid-template-rows:minmax(180px,35%) minmax(0,1fr)}
  #main .gqw.gqw-split.gqw-export-mode .gqw-list{display:flex!important;min-height:0}
  #main .gqw-export-panel>header,#main .gqw-export-panel>footer{padding:12px}
  #main .gqw-export-panel h2{font-size:16px}
  #main .gqw-export-panel>footer{flex-wrap:wrap}
}
#main .gqw.gqw-split input[data-gc-options]{padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6e' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
/* Approved aligned rail: cards start with the detail panel; actions stay outside scrolling. */
#main .gqw.gqw-split.gqw-aligned-rail .gqw-list .gqw-table-scroll{order:0;padding:0 2px 0 0}
#main .gqw.gqw-split.gqw-aligned-rail .gqw-main-table{margin-top:0}
#main .gqw.gqw-split.gqw-aligned-rail .gqw-list-actions{order:1;margin:12px 2px 0 0;padding:12px 0 0;border-top:1px solid var(--line,#e5e5ea);flex:none}
#main .gqw.gqw-split.gqw-aligned-rail .gqw-list-actions .gqw-new-link{min-height:40px;background:#fff;border:1px solid var(--line,#e5e5ea);border-radius:8px;font-weight:500}
#main .gqw.gqw-split.gqw-aligned-rail .gqw-list-actions .gqw-new-link:hover{background:#f5f5f7}
#main .gqw.gqw-split .gqw-quote-loading{color:var(--text-secondary,#727278);padding:24px}
@media(max-width:720px){#main .gqw.gqw-split.gqw-aligned-rail .gqw-list-actions .gqw-new-link{min-height:44px}}
/* Cold reads retain the actual identity and existing costing tracks, never fake values. */
#main .gqw .gqw-placeholder{display:block;height:18px;max-width:100%;background:#f5f5f7;border-radius:4px}
#main .gqw .gqw-list-placeholder{height:96px;margin-bottom:8px;padding:18px 12px;border:1px solid var(--line,#e5e5ea);border-radius:10px;background:#fff;box-sizing:border-box;display:grid;gap:12px}
#main .gqw.gqw-split .gqw-pending-detail{background:#fff}
#main .gqw.gqw-split .gqw-pending-cost .gqw-split-planbar>span{font-size:13px;color:var(--text-secondary,#727278)}
#main .gqw.gqw-split .gqw-pending-cost .gqw-cost-table{pointer-events:none}
#main .gqw .gqw-pending-totals{padding:14px 16px;display:grid;gap:18px;font-size:13px;color:var(--text-secondary,#727278)}
#main .gqw .gqw-pending-totals .gqw-placeholder{margin-top:8px;height:28px}

/* quotation-new-layout-peter-v1: local new-style identity and photo-count repair. */
.gqw.gqw-split.gqw-new-layout-pilot .gqw-static-identity .gqw-photo-more{flex:0 0 48px;width:48px;height:62px;min-width:0;font-size:11px}
#main .gqw.gqw-split.gqw-new-layout-pilot .gqw-reference-column>.gqw-new-identity{max-height:none;overflow:visible;border-bottom:0}
@container gqw-editor (min-width:650px){
 #main .gqw.gqw-split.gqw-new-layout-pilot .gqw-reference-column>.gqw-new-identity{display:flex;flex-direction:column;padding:10px 0 16px;gap:12px}
 #main .gqw.gqw-split.gqw-new-layout-pilot .gqw-reference-column .gqw-new-identity .gqw-fields{grid-template-columns:minmax(0,1fr)}
}

/* quotation-horizontal-all-v1: all existing quotation-authorized users, one business DOM.
   Detail container width accounts for navigation/list space and browser zoom. */
.gqw.gqw-split .gqw-horizontal-body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden;background:#fff}
.gqw.gqw-split .gqw-reference-column{min-width:0;min-height:0;max-height:260px;flex:0 0 auto;overflow:auto;background:#fff}
.gqw.gqw-split .gqw-reference-column>.gqw-record-link{display:inline-flex;align-items:center;margin:8px 20px 14px;padding:0 10px;min-height:32px;border-radius:6px;background:var(--bg,#f5f5f7);color:var(--ink-soft,#424248);font-size:12px}
.gqw.gqw-split .gqw-horizontal-body>.gqw-split-editor-scroll{min-width:0;min-height:0;flex:1;overflow:auto}
@container gqw-editor (min-width:650px){
 .gqw.gqw-split .gqw-horizontal-body{display:grid;grid-template-columns:176px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .gqw.gqw-split .gqw-reference-column{max-height:none;border-right:1px solid var(--line,#e5e5ea);padding:0 16px;overflow:auto}
 .gqw.gqw-split .gqw-reference-column>.gqw-drawer-top{padding:20px 0 12px;min-height:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
 .gqw.gqw-split .gqw-reference-column>.gqw-drawer-top strong{font-size:16px;line-height:1.4;max-width:100%;width:100%;margin:0;text-align:left;align-self:flex-start}
 .gqw.gqw-split .gqw-reference-column>.gqw-drawer-top>.gqw-drawer-meta{display:block;margin:0;text-align:left;align-self:flex-start}
 .gqw.gqw-split .gqw-reference-column>.gqw-static-identity{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:10px 0 0;max-height:none;overflow:visible;border:0}
 .gqw.gqw-split .gqw-reference-column .gqw-static-copy{flex:none}
 .gqw.gqw-split .gqw-reference-column .gqw-static-copy>div{display:grid;grid-template-columns:32px minmax(0,1fr);gap:6px 8px;align-items:baseline}
 .gqw.gqw-split .gqw-reference-column .gqw-static-copy b{margin:0}
 .gqw.gqw-split .gqw-reference-column .gqw-style-photos{flex:none;width:100%}
 .gqw.gqw-split .gqw-reference-column .gqw-photo-preview{flex-wrap:wrap;overflow:visible}
 .gqw.gqw-split .gqw-reference-column .gqw-usage-reference{max-height:none;overflow:visible;border-left:0;border-top:1px solid var(--line,#e5e5ea);padding:14px 0 0;grid-column:auto}
 .gqw.gqw-split .gqw-reference-column .gqw-usage-groups{grid-template-columns:minmax(0,1fr)}
 .gqw.gqw-split .gqw-reference-column>.gqw-record-link{margin:20px 0}
 .gqw.gqw-split .gqw-horizontal-body>.gqw-split-editor-scroll{padding:12px;overflow:auto;container-type:inline-size;container-name:gqw-horizontal-cost}
 .gqw.gqw-split .gqw-horizontal-body .gqw-focus-layout{display:flex;flex-direction:column;grid-template-columns:none;grid-template-rows:auto;gap:12px;align-items:stretch;overflow:visible}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table.gqw-inline-actions{min-width:540px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:nth-child(2),.gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:nth-child(3),.gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:nth-child(4){width:72px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:last-child{width:52px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table :is(th,td){padding-left:6px;padding-right:6px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table :is(th,td):first-child{padding-left:8px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table :is(th,td):last-child{padding-right:8px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table td>.gqw-field input{width:60px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table td:nth-child(5){white-space:nowrap}
 .gqw.gqw-split .gqw-horizontal-body .gqw-quote-side>h3{padding:12px 0}
 .gqw.gqw-split .gqw-horizontal-body .gqw-quote-side>fieldset{padding:14px 0}
}
@container gqw-horizontal-cost (min-width:764px){
 .gqw.gqw-split .gqw-horizontal-body .gqw-focus-layout{display:grid;grid-template-columns:minmax(0,1fr) 212px;align-items:start}
}
@container gqw-editor (min-width:900px){
 .gqw.gqw-split .gqw-horizontal-body{grid-template-columns:200px minmax(0,1fr)}
}
@container gqw-editor (min-width:1180px){
 .gqw.gqw-split .gqw-horizontal-body{grid-template-columns:256px minmax(0,1fr)}
 .gqw.gqw-split .gqw-horizontal-body>.gqw-split-editor-scroll{padding:20px}
}
@container gqw-horizontal-cost (min-width:880px){
 .gqw.gqw-split .gqw-horizontal-body .gqw-focus-layout{grid-template-columns:minmax(0,1fr) 244px;gap:16px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table.gqw-inline-actions{min-width:620px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:nth-child(2),.gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:nth-child(3),.gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:nth-child(4){width:84px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table col:last-child{width:64px}
 .gqw.gqw-split .gqw-horizontal-body .gqw-cost-table td>.gqw-field input{width:72px}
}
@media(max-width:720px){.gqw.gqw-split .gqw-reference-column{max-height:240px}.gqw.gqw-split .gqw-reference-column>.gqw-record-link{min-height:44px;margin-left:12px}}

/* quotation-cost-five-columns-v1: one left edge for heading, fabric and fee labels. */
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns :is(th,td):first-child{padding-left:0}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns th:first-child>span{padding-left:0;text-align:left}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns col:nth-child(5){width:92px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns :is(th,td):nth-child(5){padding-right:0;text-align:right}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td:first-child [data-act="remove-material"],.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td:first-child [data-act="remove-fee"]{border:0;background:none;color:#c43c3c;padding:0;min-height:32px;width:auto;font-size:12px;white-space:nowrap;margin-left:8px}

/* quotation-cost-more-menu-v1: approved subtotal spacing and quiet per-row removal. */
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns col:nth-child(5){width:108px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns :is(th,td):nth-child(5){padding-right:16px}
.gqw.gqw-split .gqw-horizontal-body .gqw-focus-layout{gap:16px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td:first-child>span{margin-left:0;padding-left:0}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td[data-material-label]:has(.gqw-cost-label-row)::before{display:none}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td[data-material-label] .gqw-cost-label-row{margin-bottom:6px;font-weight:600}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-label-row>.gqw-field{flex:1;min-width:0}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more{position:relative;flex:0 0 auto;font-weight:400}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more>summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;border:0;border-radius:6px;color:#6b6b6e;background:transparent;font-size:12px;min-height:28px;padding:0 8px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more>summary::-webkit-details-marker{display:none}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more>summary:hover,.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more[open]>summary{background:#f5f5f7;color:#424248}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more>summary:focus-visible{outline:2px solid #007aff;outline-offset:2px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:20;padding:4px;min-width:108px;background:#fff;border:1px solid #e5e5ea;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.09)}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-menu[popover]{position:fixed;inset:auto;margin:0}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td:first-child .gqw-cost-menu button{display:flex;align-items:center;width:100%;justify-content:flex-start;min-height:36px;margin:0;padding:0 12px;border-radius:5px;color:#c43c3c;background:#fff;font-size:13px}
.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td:first-child .gqw-cost-menu button:hover{background:#fff1f0}
@media(max-width:720px){.gqw.gqw-split table.gqw-cost-table.gqw-five-columns .gqw-cost-more>summary,.gqw.gqw-split table.gqw-cost-table.gqw-five-columns td:first-child .gqw-cost-menu button{min-height:44px}}

/* fabric-dialog-authorized-all-v2: opt-in modal class is emitted only for existing quotation users. */
.gqw .gqw-modal.gqw-fabric-dialog{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);overflow:hidden;background:#fff}
.gqw .gqw-fabric-dialog>header{flex:0 0 auto;background:#fff;padding:16px 24px}
.gqw .gqw-fabric-dialog>.gqw-modal-body{flex:1;min-height:0;overflow:auto;padding:20px 24px}
.gqw .gqw-fabric-dialog .gqw-material{background:#fff}
.gqw .gqw-fabric-dialog .gqw-fields{margin:0 0 20px;gap:16px 20px;grid-template-columns:repeat(2,minmax(0,1fr))}
.gqw .gqw-fabric-dialog .gqw-material-unit{margin:0;padding:0;border:0;background:none}
.gqw .gqw-fabric-dialog .gqw-field input,.gqw .gqw-fabric-dialog .gqw-field select{height:var(--gc-ui-field-height,36px);min-height:36px}
.gqw .gqw-fabric-dialog .gqw-photos{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;margin:0}
.gqw .gqw-fabric-dialog .gqw-photos img{width:96px;height:96px;object-fit:contain;background:#fff}
.gqw .gqw-fabric-dialog .gqw-upload{width:100%;height:44px;min-height:44px;margin-top:12px;background:#fff}
.gqw .gqw-fabric-dialog-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--line,#e5e5ea);background:#fff}
.gqw .gqw-fabric-dialog-status{flex:1;min-width:0;font-size:13px;color:var(--ink-muted,#63636b);overflow-wrap:anywhere}
.gqw .gqw-fabric-dialog-status.is-error{color:#c43c3c}
.gqw .gqw-fabric-dialog-actions{display:flex;gap:8px;flex:0 0 auto}
.gqw .gqw-fabric-dialog [hidden]{display:none!important}
@media(max-width:720px){.gqw .gqw-modal.gqw-fabric-dialog{max-height:calc(100dvh - 16px)}.gqw .gqw-fabric-dialog>header,.gqw .gqw-fabric-dialog>.gqw-modal-body,.gqw .gqw-fabric-dialog-footer{padding:16px}.gqw .gqw-fabric-dialog .gqw-fields{grid-template-columns:1fr;gap:12px}.gqw .gqw-fabric-dialog .gqw-field input,.gqw .gqw-fabric-dialog .gqw-field select{height:44px;min-height:44px}.gqw .gqw-fabric-dialog-footer{flex-wrap:wrap}.gqw .gqw-fabric-dialog-status{flex-basis:100%}.gqw .gqw-fabric-dialog-actions{margin-left:auto}}
