/* Pricing detail/connection views. Table and column controls live in table-v6. */
.builder-workspace-v4[data-builder-shell] [data-stock-section-target][hidden],
.builder-workspace-v4[data-builder-shell] [data-stock-row-output][hidden] { display:none; }
.builder-workspace-v4[data-builder-shell] .builder-price-navigation button:first-child:not([aria-current]) { background:transparent; color:var(--bw-ink); }
.builder-workspace-v4[data-builder-shell] .builder-price-navigation button[aria-current] { background:#eaf0ff; color:#2459da; }
.builder-workspace-v4[data-builder-shell] .builder-stock-price-tools:has([data-stock-row-output][hidden]) { grid-template-columns:164px minmax(0,1fr); }
.builder-workspace-v4[data-builder-shell] [data-stock-price-review]:not(:empty) { position:sticky; top:0; z-index:5; padding:12px; margin-bottom:12px; max-height:46vh; overflow:auto; border:1px solid #cbd8ff; border-radius:10px; background:#f7f9ff; box-shadow:0 6px 16px #16294a12; }
.builder-workspace-v4[data-builder-shell] [data-stock-price-review]:empty { display:none; }
.builder-workspace-v4[data-builder-shell] [data-stock-price-review] p { margin:0 0 6px; }
.builder-workspace-v4[data-builder-shell] [data-stock-price-review] .bux-file-diff { max-height:22vh; overflow:auto; }
.builder-workspace-v4[data-builder-shell] [data-stock-price-error]:not([hidden]) { position:sticky; top:0; z-index:6; background:#fff5ed; border:1px solid #edc9a0; border-radius:8px; padding:12px; }
.builder-workspace-v4[data-builder-shell] .builder-price-detail-heading { min-height:54px; margin-left:62px; margin-bottom:10px; }
.builder-workspace-v4[data-builder-shell] .builder-price-detail-thumb { position:absolute; top:0; left:14px; width:48px; height:48px; }
.builder-workspace-v4[data-builder-shell] .builder-price-row-workspace { max-height:calc(100dvh - 145px); }
.builder-workspace-v4[data-builder-shell] .builder-price-row-workspace [data-stock-row-editor] > .builder-stock-row-primary { grid-template-columns:1.1fr 1fr; gap:8px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-primary > label { margin:0; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-primary > label:last-child { grid-column:1/-1; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-identity,
.builder-workspace-v4[data-builder-shell] .builder-stock-row-actions { grid-column:1/-1; min-width:0; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-identity > label { margin:0 0 8px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-identity small { display:block; margin:8px 0; color:var(--bw-muted); font-size:11px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-dimensions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) 48px; gap:5px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-dimensions > label { display:grid; gap:4px; margin:0; }
.builder-workspace-v4[data-builder-shell] [data-stock-row-editor] :is(label>span,label) { font-size:11px; }
.builder-workspace-v4[data-builder-shell] [data-stock-row-editor] :is(input,select) { min-height:34px; padding:7px 8px; font-size:12px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-dimensions :is(input,select) { padding:6px 4px; font-size:11px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-actions { display:flex; gap:6px; flex-wrap:wrap; padding-top:6px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-actions button { margin:0; min-height:34px; padding:7px 10px; font-size:11px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-stock small { color:var(--bw-muted); font-size:11px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-row-stock summary span { float:right; color:var(--bw-muted); font-weight:400; text-transform:capitalize; }
.builder-workspace-v4[data-builder-shell] .builder-stock-preview-inputs { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.builder-workspace-v4[data-builder-shell] .builder-stock-preview-inputs label { display:grid; margin:0; gap:5px; }
.builder-workspace-v4[data-builder-shell] [data-stock-test-output] { margin-top:8px; border-radius:6px; padding:10px; background:#f0f4fb; font-size:12px; line-height:1.5; }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-summary { display:grid; gap:5px; padding:14px; border:1px solid var(--bw-line); border-radius:8px; margin:10px 0 16px; background:#f7f9fd; }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-summary small { color:var(--bw-muted); }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-grid label { margin:0; }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-grid :is(input,select) { min-height:36px; }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-choices { margin:14px 0; }
.builder-workspace-v4[data-builder-shell] .builder-price-connection-choices summary { margin-bottom:12px; }
.builder-workspace-v4[data-builder-shell] .builder-price-section-intro { color:var(--bw-muted); font-size:12px; }
.builder-workspace-v4[data-builder-shell] .builder-pricing-product-settings { margin-top:22px; font-size:11px; color:var(--bw-muted); }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing-heading { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing-heading h3 { font-size:18px; margin:0; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing-heading h3 span { font-size:12px; color:var(--bw-muted); }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing-table { max-height:66dvh; overflow:auto; border:1px solid var(--bw-line); border-radius:9px; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing table { width:100%; border-collapse:collapse; min-width:460px; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing :is(th,td) { text-align:left; padding:9px 12px; border-bottom:1px solid var(--bw-line); font-size:12px; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing thead { background:#f6f8fc; position:sticky; top:0; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing th small { display:block; margin-top:4px; color:var(--bw-muted); font-size:10px; font-weight:400; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing .builder-choice-price-name { background:none; border:0; padding:0; color:var(--bw-ink); text-align:left; font:600 12px system-ui; cursor:pointer; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing input { min-height:34px; max-width:145px; margin:0; font-size:12px; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing [data-choice-price-input-label] { display:block; margin:0 0 5px; color:var(--bw-muted); font-size:10px; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing input[data-choice-price-amount] { box-sizing:border-box; display:block; width:100%; min-width:0; }
.builder-workspace-v4[data-builder-shell] .builder-choice-pricing .button { margin:0; min-height:32px; padding:6px 10px; font-size:11px; }
.builder-workspace-v4[data-builder-shell] .builder-choice-price-state { display:inline-block; padding:4px 7px; border-radius:5px; background:#eef2f8; font-size:11px; white-space:nowrap; }
.builder-workspace-v4[data-builder-shell] [data-price-state="missing"] { background:#fff1d8; color:#875506; }
.builder-workspace-v4[data-builder-shell] :is([data-price-state="fixed"],[data-price-state="included"]) { background:#e5f4eb; color:#245d40; }
.builder-workspace-v4[data-builder-shell] [data-price-state="quote"] { background:#eeebff; color:#594893; }
.builder-workspace-v4[data-builder-shell] .builder-option-quick-price { flex-wrap:wrap; }
.builder-workspace-v4[data-builder-shell] .builder-option-quick-price [data-price-state] { font-size:10px; padding:3px 6px; border-radius:5px; }
.builder-workspace-v4[data-builder-shell] .builder-linked-quick-price { grid-column:1/-1; width:100%; margin-top:8px; border-top:1px solid var(--bw-line); }
.builder-workspace-v4[data-builder-shell] .builder-linked-quick-price summary { padding:9px 0; cursor:pointer; font-size:12px; font-weight:600; }
.builder-workspace-v4[data-builder-shell] .builder-linked-quick-price label { display:grid; gap:4px; margin:0 0 8px; font-size:11px; }
.builder-workspace-v4[data-builder-shell] .builder-linked-quick-price :is(input,select) { min-width:0; width:100%; min-height:34px; margin:0; padding:7px; font-size:12px; }
.builder-workspace-v4[data-builder-shell] .builder-linked-quick-price small { font-size:11px; color:var(--bw-muted); }
.builder-workspace-v4[data-builder-shell] .builder-linked-price-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.builder-workspace-v4[data-builder-shell] .builder-linked-price-actions .button { min-height:32px; padding:6px 9px; margin:0; font-size:11px; }
.builder-workspace-v4[data-builder-shell] [data-linked-price-error]:not([hidden]) { background:#fff1d8; color:#875506; padding:8px; border-radius:5px; font-size:12px; }
.builder-workspace-v4[data-builder-shell] [data-linked-price-review]:not(:empty) { padding:10px; border:1px solid #cbd8ff; border-radius:7px; background:#f7f9ff; margin-top:10px; font-size:12px; }
@media(max-width:760px) {
  .builder-workspace-v4[data-builder-shell] .builder-stock-price-tools:has([data-stock-row-output][hidden]) { grid-template-columns:minmax(0,1fr); }
  .builder-workspace-v4[data-builder-shell] .builder-price-connection-grid { grid-template-columns:minmax(0,1fr); }
  .builder-workspace-v4[data-builder-shell] .builder-price-detail-thumb { top:14px; left:0; }
  .builder-workspace-v4[data-builder-shell] .builder-price-row-workspace { max-height:none; }
  .builder-workspace-v4[data-builder-shell] [data-stock-price-review]:not(:empty) { max-height:55vh; }
}
