/* FDS extensions: commercial review workspace and print document. */
.commerce-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 4vw;border-bottom:1px solid var(--fds-border);background:var(--fds-bg-panel)}
.commerce-brand{display:flex;align-items:center;flex-shrink:0}.commerce-brand img{display:block;width:158px;height:auto;max-width:100%}
.commerce-header nav,.commerce-actions,.commerce-heading{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.commerce-heading{justify-content:space-between;margin-bottom:24px}
.commerce-main{max-width:1320px;margin:auto;padding:32px 24px 80px}.commerce-main h1{font-size:28px}.commerce-main h2{font-size:20px;margin:0 0 16px}.commerce-main h3{font-size:16px}
.commerce-card{padding:24px;border:1px solid var(--fds-border);border-radius:var(--fds-radius-lg,12px);background:var(--fds-bg-panel);margin:20px 0;min-width:0;overflow-wrap:anywhere}
.commerce-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.commerce-form>h3,.commerce-form>.commerce-wide,.commerce-form>.commerce-actions{grid-column:1/-1}
.commerce-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:14px}.commerce-field input,.commerce-field select,.commerce-field textarea{width:100%;min-height:44px;font:inherit;color:var(--fds-text-primary);background:var(--fds-bg-panel);border:1px solid var(--fds-border);border-radius:6px;padding:10px;box-sizing:border-box}.commerce-field textarea{min-height:96px;resize:vertical}
.commerce-actions button,.commerce-actions a,.commerce-main button{min-height:44px}.commerce-main button:disabled{opacity:.55}.commerce-check{display:flex;gap:10px;align-items:flex-start;font-size:14px}.commerce-check input{width:20px;height:20px;flex:none}
.commerce-lines{display:grid;gap:12px}.commerce-line{border-top:1px solid var(--fds-border);padding-top:16px}.commerce-line-head{display:flex;justify-content:space-between;gap:16px;align-items:baseline}.commerce-muted{color:var(--fds-text-secondary);font-size:13px;line-height:1.7}.commerce-status{font-size:13px;border:1px solid var(--fds-border);border-radius:999px;padding:4px 10px;white-space:nowrap}
.commerce-list{width:100%;border-collapse:collapse}.commerce-list th,.commerce-list td{text-align:start;padding:12px;border-bottom:1px solid var(--fds-border);overflow-wrap:anywhere}.commerce-list-wrap{overflow:auto}.commerce-total{font-size:22px;font-weight:600;text-align:end}.commerce-terms{white-space:pre-wrap;font-size:14px;line-height:1.7}.commerce-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.commerce-facts dt{font-size:12px;color:var(--fds-text-secondary)}.commerce-facts dd{margin:4px 0 0;overflow-wrap:anywhere}
.commerce-plan{width:100%;height:280px;background:var(--fds-bg-page);border:1px solid var(--fds-border)}.commerce-plan polygon,.commerce-plan rect{stroke:var(--fds-text-secondary);stroke-width:20;fill:var(--fds-bg-muted)}.commerce-plan text{font-size:160px;fill:var(--fds-text-primary)}
#commerce-message:empty{display:none}#commerce-message{padding:16px;border:1px solid var(--fds-border);border-radius:8px;line-height:1.6}#commerce-message[role=alert]{color:var(--fds-red-700)}
.commerce-skip{position:absolute;top:-100px}.commerce-skip:focus{top:8px;left:8px;z-index:10;background:var(--fds-bg-panel);padding:16px}
@media(max-width:768px){.commerce-main{padding:24px 16px 60px}.commerce-card{padding:18px}.commerce-header{align-items:flex-start;flex-direction:column;gap:12px}.commerce-main h1{font-size:24px}}
@media(max-width:480px){.commerce-form,.commerce-facts{grid-template-columns:1fr}.commerce-card{padding:16px}.commerce-main{padding:20px 12px 60px}.commerce-line-head{flex-wrap:wrap}.commerce-header{padding:16px}.commerce-header nav{gap:12px;font-size:13px}.commerce-actions>*{flex:1}.commerce-actions{gap:8px}}
@media print{.commerce-header,.commerce-heading,#commerce-message,.commerce-actions,.commerce-no-print,.commerce-skip{display:none!important}.commerce-main{padding:0;max-width:none}.commerce-card{border:0;padding:0}.commerce-main.print-quote #commerce-root>*{display:none}.commerce-main.print-quote #commerce-root>.commerce-print-selected{display:block}.commerce-line{break-inside:avoid}a{color:inherit;text-decoration:none}}
/* FDS extensions: guided inquiries, role setup, work queue and quotation summary. */
.commerce-main [hidden]{display:none!important}.commerce-toolbar{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:16px;align-items:end;margin-bottom:20px}
.commerce-steps{display:flex;gap:12px;list-style:none;padding:0;counter-reset:commerce-step}.commerce-steps li{flex:1;counter-increment:commerce-step;border-bottom:3px solid var(--fds-border);padding:12px 0;font-size:14px;color:var(--fds-text-secondary)}.commerce-steps li:before{content:counter(commerce-step) ' · '}.commerce-steps [aria-current=step]{color:var(--fds-text-primary);border-color:var(--fds-text-primary);font-weight:600}
.commerce-wizard-step{grid-column:1/-1;min-width:0}.commerce-wizard-step>.commerce-field{margin:20px 0}.commerce-next{background:var(--fds-blue-50);border-inline-start:3px solid var(--fds-blue-600);padding:16px;line-height:1.6}.commerce-scope-summary{font-variant-numeric:tabular-nums;font-weight:600}
.commerce-groups{display:grid;gap:12px;min-width:0}.commerce-group{border:1px solid var(--fds-border);border-radius:var(--fds-radius-lg,12px);padding:16px}.commerce-main summary{cursor:pointer;min-height:36px;line-height:1.7;overflow-wrap:anywhere}.commerce-group>summary{font-weight:600}.commerce-group>details{padding:12px 0}.commerce-spec pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}
.commerce-task-grid{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.commerce-inquiry-row{padding:20px 0;border-bottom:1px solid var(--fds-border)}.commerce-inquiry-row:last-child{border:0}.commerce-unread{border-radius:999px;background:var(--fds-blue-50);color:var(--fds-blue-600);padding:4px 10px;font-size:13px}
.commerce-readiness{display:grid;gap:12px;list-style:none;padding:16px;border:1px solid var(--fds-border);border-radius:8px;margin:20px 0}.commerce-readiness li{color:var(--fds-amber-700)}.commerce-readiness li.is-ready{color:var(--fds-green-700)}.commerce-readiness legend{font-size:14px;font-weight:600;padding:0 8px}.commerce-role-list{margin:20px 0}.commerce-field-error{color:var(--fds-red-700);line-height:1.7;grid-column:1/-1}
.commerce-quote-summary{position:sticky;bottom:12px;z-index:2;background:var(--fds-bg-panel);border:1px solid var(--fds-border-strong);border-radius:12px;padding:20px;box-shadow:0 4px 16px var(--fds-border);font-variant-numeric:tabular-nums}.commerce-quote-summary .commerce-facts{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.commerce-quote-summary .commerce-muted{margin-bottom:0}.commerce-event{border-bottom:1px solid var(--fds-border);padding:8px 0}.commerce-diff{margin:16px 0;padding:16px;background:var(--fds-bg-page);border-radius:8px}.commerce-preview{padding:16px 24px;background:var(--fds-amber-50);border-bottom:1px solid var(--fds-border);color:var(--fds-text-primary)}.commerce-preview .commerce-actions{margin-top:12px}.commerce-main :focus-visible{outline:2px solid var(--fds-blue-600);outline-offset:3px}.commerce-check{min-height:44px;align-items:center}.commerce-field>span{line-height:1.6}
@media(max-width:768px){.commerce-toolbar{grid-template-columns:1fr 1fr}.commerce-quote-summary{position:static}.commerce-quote-summary .commerce-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-steps{gap:8px}.commerce-steps li{font-size:13px}.commerce-preview{padding:16px}}
@media(max-width:480px){.commerce-toolbar{grid-template-columns:1fr}.commerce-group{padding:12px}.commerce-task-grid button{flex:1 1 45%;white-space:normal}.commerce-line-head .fds-btn{width:100%;text-align:start}.commerce-quote-summary{padding:14px}.commerce-preview .commerce-actions>*{flex:1 1 40%}.commerce-field input,.commerce-field select,.commerce-field textarea{font-size:16px}}
@media print{.commerce-preview,.commerce-task-grid{display:none!important}.commerce-quote-summary{position:static;box-shadow:none}.commerce-group{border:0;padding:0}.commerce-group>summary{list-style:none}.commerce-spec{display:none}.commerce-next{background:none}.commerce-main.print-quote .commerce-print-selected>.commerce-form{display:none}}
/* FDS extensions 2026-10-29: legacy commerce views share the quotation page look (commerce-prototype.css). */
.commerce-header{height:60px;padding:0 24px;gap:32px;justify-content:flex-start;flex-direction:row;align-items:center}.commerce-header .cx-nav{flex-wrap:nowrap}
.cx-top-tools .ss-language{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;margin:0}.cx-top-tools .ss-language label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.cx-top-tools .fds-select,.cx-top-tools .fds-btn{height:34px;min-height:34px;font-size:13px}.cx-top-tools .fds-select{width:auto;min-width:112px}
.commerce-main{padding:20px 24px 80px}.commerce-main h1{font-size:24px}.commerce-heading{display:block;margin-bottom:16px}.commerce-heading .cx-meta{margin-top:6px}.commerce-page-head{margin-bottom:16px}.commerce-page-head .cx-title .cx-tag{margin:0}.cx-crumb a{color:var(--fds-text-secondary);text-decoration:none}
.commerce-card{padding:0 20px 20px;margin:0 0 16px;border-radius:var(--fds-radius-lg)}.commerce-card>h2:first-child{margin:0 -20px 16px!important;padding:14px 20px;border-bottom:1px solid var(--fds-border);font-size:16px!important}.commerce-card>h2:first-child+.commerce-muted{margin-top:0}
.commerce-main h2{font-size:16px}.commerce-main h3{font-size:14px;margin:16px 0 8px}.commerce-muted{font-size:13px}
.commerce-field{gap:6px;font-size:13px}.commerce-field>span{color:var(--fds-text-secondary)}.commerce-field input,.commerce-field select,.commerce-field textarea{min-height:38px;padding:8px 10px;border-color:var(--fds-border-strong);border-radius:var(--fds-radius-md);font-size:14px}.commerce-field textarea{min-height:80px}
.commerce-actions button,.commerce-actions a,.commerce-main button{min-height:38px}.commerce-main .fds-btn{height:auto;min-height:38px}.commerce-form>.commerce-actions{margin-top:4px}
.commerce-check{gap:10px;font-size:13px;line-height:1.6;color:var(--fds-gray-700)}.commerce-check input{width:16px;height:16px;margin-top:3px}
.commerce-status{border:0;padding:0 8px;margin-inline-start:0}.commerce-next{margin:0 0 16px;padding:10px 14px;border-radius:var(--fds-radius-md);border-inline-start:3px solid var(--fds-blue-600);background:var(--fds-blue-50);font-size:14px}
.commerce-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:0 0 16px}.commerce-facts dt{font-size:12px;color:var(--fds-text-muted)}.commerce-facts dd{font-size:14px;margin-top:2px}
.commerce-toolbar{grid-template-columns:1fr 1.4fr 1fr auto;margin-bottom:16px}.commerce-toolbar .fds-btn{min-height:38px}
.commerce-task-grid.cx-filters{padding:0;border:0;margin:12px 0}.cx-chip{display:inline-flex;gap:6px;align-items:center}.cx-chip.is-on b{color:#fff}
.commerce-table-wrap{overflow-x:auto;margin:0 -20px}.commerce-table-wrap .cx-table th:first-child,.commerce-table-wrap .cx-table td:first-child{padding-inline-start:20px}.commerce-table-wrap .cx-table th:last-child,.commerce-table-wrap .cx-table td:last-child{padding-inline-end:20px}
.commerce-list-table td{vertical-align:middle}.commerce-title-link{color:var(--fds-text-primary);font-weight:600;text-decoration:none}.commerce-title-link:hover{text-decoration:underline;text-underline-offset:3px}.commerce-list-table .c-item .cx-tag{margin:4px 0 0}.commerce-list-table .c-state{white-space:nowrap}.commerce-list-table .c-state .cx-tag+.cx-tag{margin-inline-start:6px}.commerce-list-table .c-owner,.commerce-list-table .c-created{font-size:13px;color:var(--fds-text-secondary)}.commerce-list-table tr.is-unread .commerce-title-link::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--fds-blue-600);margin-inline-end:8px;vertical-align:1px}.commerce-empty{text-align:center;color:var(--fds-text-muted);padding:32px!important}
.commerce-doc .cx-totals{padding:16px 0}.commerce-doc .cx-terms{padding-top:16px;margin-bottom:16px;border-top:1px solid var(--fds-border)}.commerce-doc-table .c-spec{max-width:340px}
.commerce-steps{display:flex;gap:0;margin:0 0 20px;border:1px solid var(--fds-border);border-radius:var(--fds-radius-lg);overflow:hidden;background:var(--fds-bg-panel)}.commerce-steps li{display:flex;gap:8px;align-items:center;padding:12px 14px;border-bottom:0;font-size:13px;position:relative}.commerce-steps li+li{border-inline-start:1px solid var(--fds-border)}.commerce-steps li:before{content:counter(commerce-step);flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--fds-border-strong);display:grid;place-items:center;font-size:11px}.commerce-steps [aria-current=step]{background:var(--fds-blue-50)}.commerce-steps [aria-current=step]:before{border-color:var(--fds-blue-600);color:var(--fds-blue-600)}.commerce-steps [aria-current=step]::after{content:'';position:absolute;inset:auto 0 0 0;height:2px;background:var(--fds-blue-600)}
.commerce-group{padding:0;overflow:hidden}.commerce-group>summary{padding:12px 16px;background:var(--fds-gray-50)}.commerce-group[open]>summary{border-bottom:1px solid var(--fds-border)}.commerce-group>details,.commerce-group>.commerce-line{margin:0 16px}.commerce-line{padding:12px 0}
.commerce-readiness{border-radius:var(--fds-radius-md);padding:12px 16px;gap:8px;font-size:13px}.commerce-readiness li{display:flex;gap:8px;align-items:center}.commerce-readiness li:before{content:'!';flex:none;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--fds-amber-50)}.commerce-readiness li.is-ready:before{content:'✓';background:var(--fds-green-50)}
.cx-timeline{margin-bottom:16px}.commerce-event{border:0;padding:0}.commerce-event p{margin:0 0 2px;font-size:14px}.commerce-event .av{font-size:16px;color:var(--fds-blue-600)}
.commerce-payments{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:6px;font-size:13px}.commerce-payments li{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline}
.commerce-quote-summary{border-color:var(--fds-border)}
@media(max-width:768px){.commerce-header{flex-direction:row;padding:0 16px;gap:12px}.commerce-facts{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.commerce-main{padding:16px 16px 80px}.commerce-card{padding:0 16px 16px}.commerce-card>h2:first-child{margin:0 -16px 14px!important;padding:12px 16px}.commerce-table-wrap{margin:0 -16px}.commerce-facts{grid-template-columns:1fr}.commerce-toolbar{grid-template-columns:1fr}.commerce-steps{overflow-x:auto}.commerce-steps li{flex:none}.commerce-steps li:not([aria-current]){font-size:0;gap:0}.commerce-steps li:not([aria-current]):before{font-size:11px}
  .commerce-list-table tr:not(.grp){grid-template-columns:minmax(0,1fr) auto}.commerce-list-table .c-item{grid-column:1/-1}.commerce-list-table .c-state{grid-column:1/-1;margin:6px 0}.commerce-list-table .c-next::before,.commerce-list-table .c-owner::before{content:attr(data-label) ': ';color:var(--fds-text-muted)}.commerce-list-table .c-created{grid-column:1/-1;font-size:12px}
  .commerce-doc-table .q-qty,.commerce-doc-table .q-unit{grid-column:1;text-align:start;font-size:12px;color:var(--fds-text-secondary)}.commerce-doc-table .q-qty::before,.commerce-doc-table .q-unit::before{content:attr(data-label) ' '}.commerce-doc-table .c-spec{max-width:none}.cx-top-tools .fds-select{min-width:92px}}
@media print{.cx-top,.commerce-page-head .cx-crumb{display:none!important}.commerce-table-wrap{margin:0}}
.cx-top-tools .ss-language-status:empty{display:none}
@media(max-width:600px){.commerce-header .cx-brand img{width:108px}.cx-top-tools{min-width:0}.cx-top-tools .fds-select{min-width:0;width:92px;padding-inline:6px}.cx-top-tools .fds-btn{padding:0 8px}}
@media(max-width:600px){.commerce-header{height:auto;flex-wrap:wrap;padding:8px 16px 0;row-gap:4px}.commerce-header .cx-nav{display:flex;order:3;width:100%;height:40px;overflow-x:auto;margin:0 -12px}.commerce-header .cx-nav a{white-space:nowrap}}
form[data-draft-key^="reject-"] .commerce-actions .fds-btn-primary,form[data-draft-key="withdraw"] .commerce-actions .fds-btn-primary{background:#fff;color:var(--fds-red-700);border-color:#f3c3bd}
.commerce-heading[hidden]{display:none}
.commerce-role-list p{font-size:14px;margin:4px 0;color:var(--fds-text-secondary)}
