/* FDS extension: BoxScene box-set / quote-request visual structure, locally adapted.
   Reference: boxscene_claude/public/assets/{box-set,quote-request}.css (2026-10-20).
   No cross-application asset or runtime dependency. */
body[data-page="purchases"]{background:var(--fds-bg-page);}
.tc-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:24px 0;flex-wrap:wrap}
.tc-heading h1{font-size:clamp(28px,4vw,42px);font-weight:600;letter-spacing:-.03em;margin:4px 0 12px}
.tc-heading p{color:var(--fds-text-secondary);max-width:65ch;line-height:1.6}
.tc-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.tc-list{display:grid;gap:16px;min-width:0}
.tc-card{background:var(--fds-bg-panel);border:1px solid var(--fds-border);border-radius:20px;padding:24px;min-width:0;overflow-wrap:anywhere}
.tc-card h2{font-size:22px;margin:0 0 16px;font-weight:600}
.tc-card h3{font-size:18px;margin:0 0 8px}
.tc-item-head{display:flex;justify-content:space-between;gap:16px;align-items:start;flex-wrap:wrap;margin-bottom:16px}
.tc-summary{position:sticky;top:24px}
.tc-status{display:inline-block;padding:6px 12px;border-radius:999px;background:var(--fds-bg-muted);border:1px solid var(--fds-border);font-size:12px}
.tc-metric{font-size:36px;font-variant-numeric:tabular-nums;margin:16px 0}
.tc-card label{display:grid;gap:8px;margin:12px 0;font-size:14px}
.tc-card input,.tc-card select,.tc-card textarea{width:100%;max-width:100%;min-height:44px;font-size:16px}
.tc-card textarea{min-height:100px;resize:vertical}
.tc-card .tc-ack{display:flex;align-items:flex-start;line-height:1.6;gap:10px}
.tc-card .tc-ack input{width:20px;min-height:20px;margin-top:3px;flex:none}
.tc-table{width:100%;border-collapse:collapse;font-size:13px}
.tc-table th,.tc-table td{text-align:start;padding:12px 8px;border-bottom:1px solid var(--fds-border);overflow-wrap:anywhere}
.tc-table th:nth-child(2),.tc-table td:nth-child(2),.tc-table th:nth-child(3),.tc-table td:nth-child(3){width:60px;white-space:nowrap}
.tc-table th:last-child,.tc-table td:last-child{text-align:end;font-variant-numeric:tabular-nums}
.tc-table caption{text-align:start;font-weight:600;margin:16px 0 8px}
.tc-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.tc-actions>*{min-height:44px}
.tc-summary .tc-actions>*{width:100%}
.tc-note{font-size:13px;line-height:1.6;color:var(--fds-text-secondary)}
.tc-quantity{max-width:140px}
@media(max-width:900px){.tc-layout{grid-template-columns:1fr}.tc-summary{position:static}}
@media(max-width:480px){.tc-card{padding:16px;border-radius:16px}.tc-actions>*{width:100%}.tc-table th,.tc-table td{padding:10px 4px}.tc-heading{gap:12px}}
/* FDS extension: formal quote specification review and exact-price entry. */
.tc-spec{min-width:0;border:1px solid var(--fds-border);border-radius:12px;padding:16px;margin:20px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.tc-spec legend{font-weight:600;overflow-wrap:anywhere;max-width:100%}
.tc-terms{white-space:pre-wrap;line-height:1.6}
@media(max-width:600px){.tc-spec{grid-template-columns:1fr}.tc-metric{font-size:28px}}
/* FDS extension: right-hand combination list and compact editor commerce actions. */
.tsa-combination{margin:0 0 0 auto;inset:0;max-height:100dvh;height:100dvh;width:min(460px,100vw);max-width:100vw;border-radius:0;display:flex;flex-direction:column}
.tsa-combination:not([open]){display:none}
.tsa-combination .tsa-dialog-body{overflow:auto;flex:1}
.tsa-combination .tsa-dialog-footer{flex:none}
.tsa-combination-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--fds-border);overflow-wrap:anywhere}
.tsa-combination-item p{margin:6px 0}
.tsa-combination-mark{display:grid;place-items:center;align-self:start;min-height:72px;border-radius:12px;background:var(--fds-bg-muted);font-size:12px;font-weight:600}
.tsa-combination-mark svg{width:72px;height:72px}
.tsa-combination .fds-btn{min-height:44px}
@media(max-width:768px){
 .ts-head:has([data-combination-list]){flex-wrap:wrap}
 .ts-head:has([data-combination-list]) .ts-head-actions{flex:1 0 100%;justify-content:flex-end;flex-wrap:wrap;gap:6px}
 .ts-head:has([data-combination-list]) .ts-head-actions .fds-btn{min-height:36px;padding:6px 10px}
 .ts-head:has([data-combination-list]) .ts-head-actions .fds-btn:not([data-mobile-label]){font-size:12px}
 .tsa-account:has([data-global-combination]){flex-wrap:wrap}
}

/* FDS extension: frozen manufacturing facts, scoped to commerce attachments. */
.tc-configuration{min-width:0;max-width:100%;overflow-wrap:anywhere;margin-block:12px}
.tc-spec>.tc-configuration{grid-column:1/-1}
.tc-configuration summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.tc-configuration-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;font-size:12px;max-height:440px;overflow:auto}
.tc-configuration-facts dt,.tc-configuration-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.tc-configuration img{max-width:100%;height:auto}

/* BoxScene storefront parity, source: boxscene_claude/public/assets/storefront.css,
   box-set.css and formal-quotation.css, 2026-10-23. Local styles only; no runtime dependency. */
.tsa-commercial{--tc-ink:#111827;--tc-muted:#6b7280;--tc-line:#e5e7eb;--tc-line-strong:#d1d5db;--tc-soft:#f1f2f4;background:#f5f6f7;color:var(--tc-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
.tsa-commercial main{width:min(1180px,calc(100% - 40px));max-width:none;margin:0 auto;padding:36px 0 110px}
.tsa-commercial .tc-heading{margin:0 0 22px;align-items:flex-end;gap:16px}
.tsa-commercial .tc-heading h1{font-family:inherit;font-size:clamp(26px,3.2vw,34px);font-weight:650;line-height:1.15;letter-spacing:-.02em;margin:6px 0 10px}
.tsa-commercial .tc-heading p{font-size:14px;color:var(--tc-muted);margin:6px 0 0;line-height:1.55}
.tsa-commercial .tc-layout{grid-template-columns:minmax(0,1fr) 360px;gap:24px}
.tsa-commercial .tc-list{gap:14px}
.tsa-commercial .tc-card{border:1px solid var(--tc-line);border-radius:18px;background:#fff;box-shadow:none;padding:24px}
.tsa-commercial .tc-card h2{font-size:20px;font-weight:650;letter-spacing:-.015em}
.tsa-commercial .tc-card h3{font-size:15px;font-weight:650;letter-spacing:-.01em}
.tsa-commercial .tc-note{font-size:12.5px;color:var(--tc-muted);line-height:1.55}
.tsa-commercial .fds-btn,.tsa-combination .fds-btn,.tc-accept-dialog .fds-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 14px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#111827;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;text-decoration:none;box-shadow:none;cursor:pointer}
.tsa-commercial .fds-btn:hover,.tsa-combination .fds-btn:hover{background:#f1f2f4}
.tsa-commercial .fds-btn-primary,.tsa-combination .fds-btn-primary,.tc-accept-dialog .fds-btn-primary{background:#111827;border-color:#111827;color:#fff}
.tsa-commercial .fds-btn-primary:hover,.tsa-combination .fds-btn-primary:hover{background:#000;color:#fff}
.tsa-commercial .fds-btn:disabled,.tsa-combination .fds-btn:disabled{opacity:.45;cursor:not-allowed}
.tsa-commercial .tc-status{padding:4px 9px;min-height:22px;border:0;background:#f1f2f4;font-size:11.5px;font-weight:600;color:#374151}
.tsa-commercial .tc-metric{font-size:28px;font-weight:650;letter-spacing:-.02em}
.tsa-commercial .tc-summary{top:88px}
.tsa-commercial .tc-card label{font-size:13px;font-weight:600;gap:6px}
.tsa-commercial .fds-input,.tsa-commercial .fds-select{border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#111827;padding:10px 12px;font-size:14px;min-height:42px;box-shadow:none}
.tsa-commercial .tc-quantity{width:84px;border-radius:999px;text-align:center;font-weight:600;min-height:34px}
.tsa-commercial .tc-ack{font-weight:400!important;font-size:13px;line-height:1.6}
.tsa-commercial .tc-table caption{font-size:13px;color:#6b7280;margin:0 0 12px}
.tsa-commercial .tc-table th{font-size:11.5px;font-weight:600;color:#6b7280;background:#f5f6f7}
.tsa-commercial .tc-table th,.tsa-commercial .tc-table td{border-color:#e5e7eb;padding:12px;vertical-align:top}
.tsa-commercial .tc-table td{font-size:13px}
.tsa-commercial .tc-table p{margin:6px 0}
.tsa-commercial .tc-spec{border-color:#e5e7eb;border-radius:14px;background:#fafbfc}
.tsa-commercial .tc-terms{padding:18px;border-radius:14px;background:#f5f6f7;font-size:13px;line-height:1.65}
.tsa-commercial .tc-contact{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.tsa-commercial .tc-contact>h2,.tsa-commercial .tc-contact>.tc-actions,.tsa-commercial .tc-contact>.tc-ack,.tsa-commercial .tc-contact>label:has(textarea){grid-column:1/-1}
.tsa-commercial .tc-contact>.tc-actions{justify-content:flex-end;border-top:1px solid #e5e7eb;padding-top:16px}
.tsa-commercial .tc-set-layout{display:block}
.tsa-commercial .tc-set-items{gap:0;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;background:#fff}
.tsa-commercial .tc-set-items>.tc-card{border:0;border-radius:0;border-top:1px solid #e5e7eb;padding:18px}
.tsa-commercial .tc-set-items>.tc-card:first-child{border-top:0}
.tsa-commercial .tc-set-items>.tc-card>.fds-btn{margin:12px 6px 0 0}
.tsa-commercial .tc-set-summary{position:sticky;bottom:16px;top:auto;z-index:20;display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin-top:18px;padding:12px 16px 12px 24px;border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 10px 30px rgba(17,24,39,.12)}
.tsa-commercial .tc-set-summary>h2{display:none}
.tsa-commercial .tc-set-summary>label{margin:0;max-width:220px}
.tsa-commercial .tc-set-summary>p{font-size:13px;margin:0}
.tsa-commercial .tc-set-summary>.tc-actions{margin:0 0 0 auto;gap:8px;flex-wrap:wrap}
.tsa-commercial .tc-set-summary>.tc-actions>*{width:auto}
.tsa-commercial .tc-set-summary .fds-btn-primary{min-height:44px;padding:0 22px}
.tsa-commercial .tc-quotation-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb;padding-bottom:20px}
.tsa-commercial .tc-quotation-title h2{margin:0;font-size:22px;overflow-wrap:anywhere}
.tsa-commercial .tc-quotation-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);align-items:start;gap:24px;margin:24px 0}
.tsa-commercial .tc-totals{margin:0;font-size:13px}
.tsa-commercial .tc-totals>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #e5e7eb}
.tsa-commercial .tc-totals dt{color:#6b7280}
.tsa-commercial .tc-totals dd{margin:0;font-weight:650;text-align:end;font-variant-numeric:tabular-nums}
.tsa-commercial .tc-totals>.is-grand{margin-top:12px;padding-top:18px;border-top:2px solid #111827;font-size:22px}
.tsa-commercial .tc-quotation>.fds-btn{margin:12px 8px 0 0}
/* The BoxScene panel: same 460px width, 64px thumbnail and three-column item. */
.tsa-combination.tsa-dialog{position:fixed;inset:72px 24px auto auto;margin:0;width:min(460px,calc(100vw - 32px));max-width:none;height:auto;max-height:min(72vh,600px);padding:18px;border:1px solid rgba(17,24,39,.12);border-radius:20px;background:#fff;color:#111827;box-shadow:0 20px 60px rgba(17,24,39,.2);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}
.tsa-combination[open]{display:flex;flex-direction:column}
.tsa-combination::backdrop{background:rgba(17,24,39,.14)}
.tsa-combination .tsa-dialog-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 0 12px;border-bottom:1px solid #e5e7eb;gap:12px}
.tsa-combination .tsa-dialog-head h2{font-size:15px;font-weight:650;margin:0}
.tsa-combination .tsa-dialog-dismiss{min-width:32px;min-height:32px;padding:0;border:0;font-size:22px;background:transparent}
.tsa-combination .tsa-dialog-body{padding:0;min-height:0;overflow:auto;overscroll-behavior:contain}
.tsa-combination-summary{font-size:11px;padding:10px 2px 0;margin:0;color:#6b7280}
.tsa-combination-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 2px;border-bottom:1px solid #e5e7eb}
.tsa-combination-item:last-child{border-bottom:0}
.tsa-combination-mark{width:64px;height:64px;min-height:0;border-radius:10px;background:#f1f2f4;overflow:hidden}
.tsa-combination-mark svg{width:64px;height:64px}
.tsa-combination-copy{min-width:0}
.tsa-combination-copy strong{display:block;font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tsa-combination-copy p{margin:4px 0;font-size:12px;color:#6b7280}
.tsa-combination-copy small{font-size:11px;color:#6b7280}
.tsa-combination-actions{display:flex;flex-direction:column;gap:5px;max-width:126px}
.tsa-combination-actions .fds-btn{font-size:12px;min-height:30px;padding:6px 12px;white-space:normal;text-align:center}
.tsa-combination .tsa-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 2px 0;border-top:1px solid #e5e7eb;background:#fff}
.tsa-combination-footer-summary{display:grid;gap:4px;min-width:0}
.tsa-combination-footer-summary small{font-size:11px;color:#6b7280}
.tsa-combination-footer-summary strong{font-size:17px;font-weight:650}
.tsa-combination-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#111827;color:#fff;font-size:11px}
[data-global-combination],[data-combination-list]{display:inline-flex;gap:7px;align-items:center;border-radius:999px!important;font-size:13px!important}
.tc-accept-dialog{width:min(560px,calc(100% - 28px));padding:28px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;color:#111827;box-shadow:0 30px 100px rgba(0,0,0,.24)}
.tc-accept-dialog::backdrop{background:rgba(17,24,39,.4)}
.tc-accept-dialog .tc-card{padding:0;border:0;background:transparent}
.tc-accept-dialog .tc-card>h2{display:none}
.tc-accept-dialog .tc-ack{display:flex;gap:10px;padding:16px;border-radius:12px;background:#f5f6f7;font-size:14px;line-height:1.6}
.tc-accept-dialog .tc-ack input{width:20px;height:20px;flex:none}
.tc-accept-dialog [role=alert]:empty{display:none}
.tc-accept-dialog [role=alert]{color:#b42318;font-size:13px}
@media(max-width:1000px){.tsa-commercial .tc-quotation-layout{grid-template-columns:1fr}}
@media(max-width:900px){
 .tsa-commercial .tc-layout{grid-template-columns:1fr}
 .tsa-commercial .tc-summary:not(.tc-set-summary){position:static}
 .tsa-combination.tsa-dialog{inset:auto 0 0;margin:0;width:100%;max-height:min(78dvh,620px);border-radius:22px 22px 0 0;padding-bottom:max(18px,env(safe-area-inset-bottom))}
}
@media(max-width:560px){
 .tsa-commercial main{width:calc(100% - 24px);padding:24px 0 100px}
 .tsa-commercial .tc-card{padding:18px}
 .tsa-commercial .tc-contact{grid-template-columns:1fr}
 .tsa-commercial .tc-contact>label{grid-column:1/-1}
 .tsa-commercial .tc-actions>*{width:auto}
 .tsa-commercial .tc-set-summary{bottom:10px;gap:10px;padding:14px;border-radius:20px}
 .tsa-commercial .tc-set-summary>label{max-width:none;width:100%}
 .tsa-commercial .tc-set-summary>.tc-actions{margin-left:0;width:100%}
 .tsa-commercial .tc-set-summary .fds-btn-primary{margin-left:auto}
 .tsa-commercial .tc-quotation-title{flex-wrap:wrap}
 .tsa-commercial .tc-table th,.tsa-commercial .tc-table td{padding:10px 4px}
 .tsa-combination .tsa-dialog-footer>.fds-btn{max-width:55%;text-align:center;white-space:normal;min-height:44px}
}
@media print{
 .tsa-commercial .tsa-head,.tsa-commercial .tsa-toast,.tsa-commercial .tsa-nav,.tsa-commercial .tsa-actions,.tsa-commercial .fds-btn,.tsa-commercial .tc-heading,.tsa-commercial .tsa-error{display:none!important}
 .tsa-commercial,.tsa-commercial main{background:#fff!important;color:#000!important}
 .tsa-commercial main{width:100%;max-width:none;padding:0;margin:0}
 .tsa-commercial .tc-layout,.tsa-commercial .tc-quotation-layout{display:block}
 .tsa-commercial .tc-layout>.tc-summary{display:none}
 .tsa-commercial .tc-quotation{border:0;padding:0;border-radius:0;box-shadow:none}
 .tsa-commercial .tc-quotation-title{break-after:avoid}
 .tsa-commercial .tc-table tr,.tsa-commercial .tc-totals,.tsa-commercial .tc-terms{break-inside:avoid;page-break-inside:avoid}
 .tsa-commercial .tc-configuration-facts{max-height:none;overflow:visible}
 .tsa-commercial details.tc-configuration:not([open]){display:none}
}
@media(prefers-reduced-motion:reduce){.tsa-combination,.tc-accept-dialog{scroll-behavior:auto;animation:none;transition:none}}
.tsa-commercial .tc-purchase-row>.tc-item-head{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center;flex-wrap:initial}
.tsa-commercial .tc-product-art{display:grid;place-items:center;width:72px;height:72px;border-radius:12px;background:#f1f2f4;overflow:hidden}
.tsa-commercial .tc-product-art svg{width:72px;height:72px}
.tsa-commercial .tc-item-head .tc-note{overflow-wrap:anywhere}
.tsa-commercial .tc-components{margin-top:12px;border-top:1px solid #e5e7eb;padding-top:10px}
.tsa-commercial .tc-components>summary{font-size:12.5px;font-weight:600;color:#6b7280;cursor:pointer;min-height:32px;align-content:center}
@media(max-width:560px){.tsa-commercial .tc-purchase-row>.tc-item-head{grid-template-columns:64px minmax(0,1fr);gap:12px}.tsa-commercial .tc-product-art,.tsa-commercial .tc-product-art svg{width:64px;height:64px}.tsa-commercial .tc-item-head>.tc-status{grid-column:2;justify-self:start}}
@media print{.tsa-commercial .tc-components:not([open]){display:none}}

/* Formal quotation uses the full document width, as in BoxScene. */
.tsa-commercial .tc-order-layout{display:flex;flex-direction:column}
.tsa-commercial .tc-order-layout>.tc-summary{position:static;order:-1}
.tsa-commercial .tc-order-layout>.tc-summary>p{overflow-wrap:anywhere}
@media print{.tsa-commercial .tc-order-layout{display:block}}
