/* Quote editing keeps the price controls visible and secondary settings optional. */
html body #view-builder .line.bb-compact-line{margin:7px 0;border:1px solid var(--border,#dce5eb);border-radius:6px;background:var(--surface,#fff);color:var(--foreground,#122838);box-shadow:none;overflow:hidden}
html body #view-builder .bb-line-heading{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 10px 0}
html body #view-builder .bb-line-title{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px!important;font-weight:650;line-height:1.4}
html body #view-builder .bb-line-heading>.grip{display:grid;place-items:center;flex:none;width:24px;min-width:24px;height:32px;min-height:32px;padding:0;border:0;background:transparent;color:var(--bb-muted-ink,#657781);font-size:17px;touch-action:none}
html body #view-builder .bb-line-minutes{flex:none;white-space:nowrap;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--bb-muted-ink,#657781)}
html body #view-builder .bb-line-minutes small{font-size:10px;font-weight:500}
html body #view-builder .bb-line-options{display:grid;place-items:center;flex:none;min-height:32px;height:32px;width:32px;min-width:32px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--bb-muted-ink,#657781)}
html body #view-builder .bb-line-options svg{width:18px;height:18px}
html body #view-builder .bb-line-options:hover,html body #view-builder .bb-line-options[aria-expanded=true]{background:var(--surface-secondary,#f2f6f8);color:var(--foreground,#122838);border-color:var(--border,#dce5eb)}
html body #view-builder .bb-line-metrics{display:grid;grid-template-columns:62px 74px minmax(65px,1fr) 52px;gap:10px;align-items:end;padding:5px 12px 10px 42px;min-width:0}
html body #view-builder .bb-line-metric{display:flex;flex-direction:column;gap:3px;min-width:0;font-variant-numeric:tabular-nums}
html body #view-builder .bb-line-metric>label,html body #view-builder .bb-metric-label{display:block;margin:0;padding:0;font-size:10px!important;line-height:1.3;font-weight:500;letter-spacing:0;text-transform:none;color:var(--bb-muted-ink,#657781)}
html body #view-builder .bb-line-stepper{display:flex;align-items:stretch;min-width:0;height:48px;border:1px solid var(--border,#dce5eb);border-radius:4px;background:var(--field-background,var(--surface,#fff));overflow:hidden}
html body #view-builder .bb-line-stepper:focus-within{outline:2px solid var(--focus,#55bad7);outline-offset:1px}
html body #view-builder .bb-line-stepper input{display:block;flex:1;width:0;min-width:0;max-width:none;height:46px;min-height:0;margin:0;padding:0 2px;border:0!important;border-radius:0!important;background:transparent!important;color:var(--field-foreground,var(--foreground,#122838))!important;text-align:center;font:500 15px/1 var(--bb-body,system-ui)!important;font-variant-numeric:tabular-nums;box-shadow:none!important;outline:0;appearance:textfield;-moz-appearance:textfield}
html body #view-builder .bb-line-stepper input::-webkit-inner-spin-button,html body #view-builder .bb-line-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body #view-builder .bb-step-arrows{display:flex;flex-direction:column;flex:none;width:26px;border-left:1px solid var(--border,#dce5eb)}
html body #view-builder .bb-step-arrows button{display:grid;place-items:center;width:26px;min-width:26px;height:24px;min-height:24px;padding:0;margin:0;border:0;border-radius:0;background:var(--surface-secondary,#f3f7f9)!important;color:var(--foreground,#122838)!important;touch-action:manipulation;box-shadow:none!important}
html body #view-builder .bb-step-arrows button+button{border-top:1px solid var(--border,#dce5eb)}
html body #view-builder .bb-step-arrows button:hover:not(:disabled){background:var(--accent,#67bfda)!important;color:var(--accent-foreground,#102c39)!important}
html body #view-builder .bb-step-arrows button:disabled{opacity:.3;cursor:default}
html body #view-builder .bb-step-arrows svg{display:block;width:13px;height:13px;pointer-events:auto}
html body #view-builder .bb-line-price,html body #view-builder .bb-line-margin{text-align:right;align-items:flex-end}
html body #view-builder .bb-line-price .line-total{display:flex;align-items:center;justify-content:flex-end;min-height:48px;width:100%;max-width:none;flex:none;order:initial;margin:0;font:650 14px/1.25 var(--bb-body,system-ui)!important;color:var(--foreground,#122838)!important;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
html body #view-builder .bb-line-margin .marginchip{display:flex;align-items:center;justify-content:center;min-height:26px;height:auto;margin:11px 0;padding:3px 5px;border-radius:4px;font:650 11px/1.25 var(--bb-body,system-ui)!important;white-space:normal;overflow-wrap:anywhere;max-width:100%}
html body #view-builder .bb-line-unit>[data-line-unit]{display:flex;align-items:center;min-height:48px;font-size:12px;line-height:1.25;overflow-wrap:anywhere;color:var(--bb-muted-ink,#657781)}
html body #view-builder .bb-shared-factor{font-size:10px;color:var(--bb-muted-ink,#657781)}
html body #view-builder .bb-shared-factor svg{width:10px;height:10px;vertical-align:-1px}
html body #view-builder .bb-compact-line .labor-options-meta{padding:6px 12px;gap:8px;background:var(--surface-secondary,#f3f7f9)}
html body #view-builder .bb-compact-line .labor-options-meta>small{font-size:11px!important;line-height:1.4}
html body #view-builder .bb-compact-line .badge{font-size:10px!important;padding:3px 6px;border-radius:3px}
html body #view-builder .bb-compact-line .labor-options-meta .iconbtn{min-height:32px;height:32px;width:32px;min-width:32px;font-size:16px!important}
html body #view-builder .bb-compact-line .line-ctl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0;padding:12px!important;background:var(--surface,#fff)!important;border-top:1px solid var(--border,#dce5eb)}
html body #view-builder .bb-compact-line .line-ctl>.ctl{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:5px}
html body #view-builder .bb-compact-line .line-ctl label{font-size:11px!important;letter-spacing:0;text-transform:none;line-height:1.4;margin:0}
html body #view-builder .bb-compact-line .line-ctl :is(.ef-meta,.pricecell){font-size:12px!important;line-height:1.45;overflow-wrap:anywhere}
html body #view-builder .bb-compact-line .line-ctl .wtsel{max-width:100%;min-width:0;width:100%;font-size:12px!important;padding:8px!important;min-height:40px!important;border-radius:4px!important}
html body #view-builder .bb-compact-line .line-ctl .toggle{min-height:32px;display:flex;align-items:center;gap:6px;font-size:11px!important}
html body #view-builder .bb-compact-line .line-ctl .toggle input{width:16px;height:16px;flex:none}
html body #view-builder .bb-compact-line .line-ctl :is(.material-finish-control,.bb-variant-selector,.bb-custom-description){grid-column:1/-1;min-width:0}
html body #view-builder .bb-materials-actions{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:9px;border-top:1px solid var(--border,#dce5eb)}
html body #view-builder .bb-materials-action,html body #view-builder .bb-materials-edit{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;max-width:100%;padding:7px 10px;border:1px solid var(--border,#dce5eb)!important;border-radius:4px!important;background:var(--surface-secondary,#f3f7f9)!important;color:var(--foreground,#122838)!important;font:550 12px/1.3 var(--bb-body,system-ui)!important;box-shadow:none!important}
html body #view-builder .bb-materials-action svg{width:17px;height:17px;flex:none}
html body #view-builder .bb-materials-count{padding-left:7px;border-left:1px solid var(--border,#dce5eb);font-size:11px;font-variant-numeric:tabular-nums}
html body #view-builder .bb-materials-edit{background:transparent!important;border-color:transparent!important;color:var(--bb-muted-ink,#657781)!important}
html body #view-builder .bb-compact-line :is(button,input,select):focus-visible{outline:2px solid var(--focus,#55bad7);outline-offset:1px}
html body #view-builder .line.section{margin:10px 0 5px;border-radius:5px;overflow:visible}
html body #view-builder #lines:not(.bb-reorder-enabled) .line.section .line-top{display:grid;grid-template-columns:24px minmax(0,1fr) auto 28px;grid-template-areas:"caret heading total remove";align-items:center;gap:5px;padding:6px 8px;min-width:0}
html body #view-builder #lines.bb-reorder-enabled .line.section .line-top{display:grid;grid-template-columns:20px 24px minmax(0,1fr) auto 28px;grid-template-areas:"grip caret heading total remove";align-items:center;gap:5px;padding:6px 8px;min-width:0}
html body #view-builder #lines .line.section .line-top>.grip{grid-area:grip;place-items:center;width:20px!important;min-width:20px;height:30px;min-height:30px;padding:0;font-size:16px;color:inherit}
html body #view-builder #lines:not(.bb-reorder-enabled) .line.section .line-top>.grip{display:none!important}
html body #view-builder #lines.bb-reorder-enabled .line.section .line-top>.grip{display:grid!important}
html body #view-builder #lines .line.section .line-top>.chev{grid-area:caret}
html body #view-builder #lines .line.section .line-top>.line-name{grid-area:heading}
html body #view-builder #lines .line.section .line-top>.sec-sum{grid-area:total}
html body #view-builder #lines .line.section .line-top>.iconbtn{grid-area:remove}
html body #view-builder .line.section .chev{display:grid;place-items:center;width:24px!important;min-width:24px;height:30px;min-height:30px;padding:0;margin:0;font-size:17px;background:transparent;color:inherit;border:0}
html body #view-builder .line.section .line-name{display:block!important;min-width:0!important;width:100%!important;max-width:none!important;flex:none!important;min-height:34px;height:34px;padding:5px 0!important;margin:0;background:transparent!important;border:0!important;border-radius:2px!important;font:600 12px/1.4 var(--bb-body,system-ui)!important;color:inherit!important;box-shadow:none!important}
html body #view-builder .line.section .line-name:focus{outline:1px solid currentColor;outline-offset:2px}
html body #view-builder .line.section .sec-sum{display:block;width:auto;max-width:94px;margin:0;flex:none;font-size:9px;line-height:1.45;white-space:normal;text-align:right;font-variant-numeric:tabular-nums;color:inherit;opacity:.9;overflow-wrap:anywhere}
html body #view-builder .line.section [data-section-total]{display:block;font-size:11px;font-weight:600}
html body #view-builder .line.section .line-top>.iconbtn{display:grid;place-items:center;width:28px!important;min-width:28px;min-height:28px;height:28px;padding:0;margin:0;font-size:15px;border:0;border-radius:3px}
html body #view-builder .line.section .quote-section-location{padding:0 10px;margin:0;border:0;background:transparent;color:var(--bb-brand-foreground,#eef7ff)}
html body #view-builder .line.section .quote-customer-concern{padding:4px 10px 8px}
html body #view-builder .line.section .quote-customer-concern label{display:block;margin:0 0 5px;font-size:11px;font-weight:600;color:var(--bb-brand-foreground,#eef7ff)}
html body #view-builder .line.section .quote-customer-concern textarea{display:block;box-sizing:border-box;width:100%;min-height:66px;margin:0;padding:8px 10px;border:1px solid var(--border,#dce5eb);border-radius:4px;background:var(--surface,#fff);color:var(--foreground,#122838);font:400 16px/1.4 var(--bb-body,system-ui);resize:vertical}
html body #view-builder .quote-customer-concern.is-standalone{padding:10px;background:var(--surface,#fff);border:1px solid var(--border,#dce5eb);border-radius:4px}
html body #view-builder .quote-customer-concern.is-standalone label{display:block;margin-bottom:5px;font-size:12px;font-weight:600;color:var(--foreground,#122838)}
html body #view-builder .quote-customer-concern.is-standalone textarea{box-sizing:border-box;width:100%;min-height:66px;padding:8px 10px;border:1px solid var(--border,#dce5eb);border-radius:4px;background:var(--surface,#fff);color:var(--foreground,#122838);font:400 16px/1.4 var(--bb-body,system-ui);resize:vertical}
html body .qs-ref-reason p{white-space:pre-wrap}
html body #view-builder .line.section .quote-section-location[open]{padding-bottom:8px}
html body #view-builder .line.section .quote-section-location .quote-location-controls{background:var(--surface,#fff);color:var(--foreground,#122838);padding:10px;border-radius:4px}
html body #view-builder .line.section .quote-section-location .quote-location-controls legend{background:var(--surface,#fff);color:var(--foreground,#122838);border-radius:3px;padding:2px 5px;font-size:11px;font-weight:600}
html body #view-builder .line.section .quote-section-location>summary{min-height:26px;padding:4px 0;margin:0;font-size:10px!important;font-weight:500;line-height:1.6;color:inherit}
html body #view-builder .line.section .section-factor{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;padding:4px 10px;margin:0;border:0;font-size:10px!important;line-height:1.5}
html body #view-builder .line.section .section-factor .location-factor-readout,html body #view-builder .line.section .location-factor-edit>summary{font-size:10px!important}
html body #view-builder .line.section .section-add-actions{padding:5px 8px 8px;margin:0;display:flex;gap:6px;flex-wrap:wrap}
html body #view-builder .line.section .section-add-actions button{flex:1;min-width:0;min-height:32px;padding:6px 8px;font:500 11px/1.3 var(--bb-body,system-ui)!important;border-radius:3px!important;white-space:nowrap}
html body #view-builder .quote-section-items[hidden]{display:none!important}
@media(max-width:680px){
  html body #view-builder .lines{padding:0 8px 10px!important}
  html body #view-builder .bb-line-heading{gap:6px;padding:6px 8px 0}
  html body #view-builder .bb-line-title{font-size:12px!important}
  html body #view-builder .bb-line-minutes{font-size:11px}
  html body #view-builder .bb-line-metrics{grid-template-columns:58px 68px minmax(48px,1fr) 45px;gap:7px;padding:4px 10px 9px}
  html body #view-builder .bb-line-stepper input{font-size:16px!important}
  html body #view-builder .bb-line-price .line-total{font-size:12px!important}
  html body #view-builder .bb-line-margin .marginchip{font-size:10px!important;padding:3px 4px}
  html body #view-builder .bb-compact-line .line-ctl{gap:9px 10px;padding:10px!important}
}
@media(min-width:1400px){
  html body #view-builder .bb-compact-line{display:grid;grid-template-columns:minmax(220px,1fr) 320px;align-items:center}
  html body #view-builder .bb-line-heading{padding:8px 10px}
  html body #view-builder .bb-line-metrics{padding:7px 12px 7px 0;gap:8px;grid-template-columns:58px 66px minmax(68px,1fr) 47px}
  html body #view-builder .bb-compact-line .labor-compact-options{grid-column:1/-1}
}
@media print{html body #view-builder .bb-line-options,html body #view-builder .bb-step-arrows{display:none!important}}

/* The assessment control floats above the page and never reserves column width. */
html body #toggle-assessment-sidebar.assessment-fab{position:fixed;background:#ef7d19!important;color:#211306!important;border-color:#f7a45e!important;box-shadow:0 4px 18px #71350638}
html body #toggle-assessment-sidebar.assessment-fab:hover{background:#ff963a!important}
html body #view-builder .side>.actionbar{align-self:stretch;width:100%;min-width:0}
html body #view-builder .side>.actionbar>.abtn{width:100%}
html body #view-builder .side>.actionbar>div{display:flex;gap:8px;min-width:0}
html body #view-builder .side>.actionbar>div>.abtn{flex:1;min-width:0}
#bid-actionbar{display:none;position:fixed;z-index:44;left:50%;bottom:max(12px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);box-sizing:border-box;width:min(620px,calc(100vw - 24px));padding:9px 12px;gap:10px;align-items:center;border:1px solid var(--border,#cbd9e2);border-radius:14px;background:var(--surface,#fff);box-shadow:0 8px 30px #102d4238}
body:is([data-bb-view="builder"],[data-bb-view="customer"]) #bid-actionbar{display:flex}
#bid-actionbar .abtn{min-height:44px;flex:1;white-space:nowrap}
#bid-action-status{flex:1 1 130px;min-width:0;max-width:220px;font-size:12px;line-height:1.35;color:var(--foreground,#123247);overflow-wrap:anywhere}
#bid-action-status[hidden]{display:none}
@media(max-width:680px){
  html body #toggle-assessment-sidebar.assessment-fab-inline{position:static!important;inset:auto!important;transform:none!important;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:9px;z-index:auto}
}
#bid-action-status[data-state="err"]{color:var(--danger,#a82929);font-weight:650}
body:is([data-bb-view="builder"],[data-bb-view="customer"]) :is(#view-builder,#view-customer){padding-bottom:110px}
@media(max-width:800px){#bid-actionbar{bottom:calc(80px + env(safe-area-inset-bottom,0px));width:calc(100vw - 20px);flex-wrap:wrap}#bid-action-status{flex:1 0 100%;max-width:none}body:is([data-bb-view="builder"],[data-bb-view="customer"]) :is(#view-builder,#view-customer){padding-bottom:130px}}
@media print{#bid-actionbar{display:none!important}}
@media(max-width:680px){html body #view-builder .side{align-items:stretch;width:100%;min-width:0}html body #view-builder .side>.panel{width:100%;min-width:0}}

/* Warm colors show service ownership without relying on color alone. */
html body #view-builder .line.bb-compact-line.labor-compact:not(.material-compact):not(.kit-compact):not(.custom-compact){
  --foreground:#3c2819;--bb-muted-ink:#795338;--surface:#fff0e3;
  --surface-secondary:#ffe3ca;--field-background:#fffaf5;--field-foreground:#3c2819;--border:#e9bc99;
  background:#fff0e3;color:#3c2819;border-color:#e9bc99;border-left:4px solid #e78532;
}
html body #view-builder .line.bb-compact-line.is-attached-material{
  --foreground:#3d3314;--bb-muted-ink:#74612b;--surface:#fff9da;
  --surface-secondary:#fff0ad;--field-background:#fffdf0;--field-foreground:#3d3314;--border:#e8d88f;
  margin-left:16px;background:#fff9da;color:#3d3314;border-color:#e8d88f;border-left:3px solid #d5ae39;
}
html body #view-builder .is-attached-material .bb-line-title:before{content:'↳';margin-right:7px;color:#8a711e;font-weight:700}
html body #view-builder :is(.labor-compact,.is-attached-material) .bb-line-title{color:var(--foreground)!important}
html body #view-builder :is(.labor-compact,.is-attached-material) :is(.pricecell,.ef-meta){color:var(--foreground)!important}
html body #view-builder .quote-section-items{position:relative;min-width:0;padding-bottom:2px}
html body #view-builder .quote-section-items>.section-add-actions{
  position:sticky;bottom:0;z-index:3;display:flex;gap:7px;flex-wrap:wrap;
  padding:10px 0;margin:0;background:var(--surface,#fff);border-top:1px solid var(--border,#dce5eb);
}
html body #view-builder .quote-section-items>.section-add-actions button{
  display:inline-flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:42px;
  padding:8px 10px;border:1px solid var(--border,#dce5eb)!important;border-radius:6px!important;
  background:var(--surface-secondary,#f3f7f9)!important;color:var(--foreground,#122838)!important;
  font:600 12px/1.3 var(--bb-body,system-ui)!important;white-space:nowrap;
}
html body #view-builder .quote-section-items>.section-add-actions [data-add="labor"]{background:#ffe3ca!important;color:#633813!important;border-color:#e3b28c!important}
html body #view-builder .quote-section-items>.section-add-actions button:focus-visible{outline:2px solid var(--focus,#1583a5);outline-offset:2px}
html body #view-builder .quote-review-button{background:var(--surface,#fff)!important;color:var(--foreground,#122838)!important;border:1px solid var(--border,#b6c8d2)!important;font-weight:700}
html body #view-builder #lines:not(.bb-reorder-enabled) .line.section .line-top{grid-template-columns:24px minmax(0,1fr) auto auto 28px;grid-template-areas:"caret heading location total remove"}
html body #view-builder #lines.bb-reorder-enabled .line.section .line-top{grid-template-columns:20px 24px minmax(0,1fr) auto auto 28px;grid-template-areas:"grip caret heading location total remove"}
html body #view-builder .section-heading-main{grid-area:heading;display:flex;align-items:center;gap:8px;min-width:0}
html body #view-builder .line.section .section-heading-main>.line-name{flex:1!important;width:0!important;font-size:13px!important;text-overflow:ellipsis;overflow:hidden}
html body #view-builder .line.section.is-collapsed .line-top{grid-template-columns:24px minmax(0,1fr) auto 28px!important;grid-template-areas:"caret heading total remove"!important}
html body #view-builder #lines.bb-reorder-enabled .line.section.is-collapsed .line-top{grid-template-columns:20px 24px minmax(0,1fr) auto 28px!important;grid-template-areas:"grip caret heading total remove"!important}
@media(max-width:680px){
  html body #view-builder .section-heading-main{gap:4px}
  html body #view-builder .section-heading-main>.line-name{min-width:0!important}
  html body #view-builder .line.section .sec-sum{max-width:70px;font-size:9px}
}
@media(max-width:899px){html body #view-builder .quote-section-items>.section-add-actions{bottom:calc(64px + env(safe-area-inset-bottom,0px))}}
@media(max-width:420px){
  html body #view-builder .line.bb-compact-line.is-attached-material{margin-left:12px}
  html body #view-builder .quote-section-items>.section-add-actions{gap:5px}
  html body #view-builder .quote-section-items>.section-add-actions button{padding:8px 4px;font-size:11px!important}
}
@media print{html body #view-builder .section-add-actions{display:none!important}}


/* Labor, independent materials and service attachments have distinct identities. */
html body #view-builder .panel:has(#lines){overflow:visible}
html body #view-builder .panel:has(#lines)>.panel-hd{border-radius:13px 13px 0 0}
html body #view-builder .panel:has(#lines)>.addbar{padding:10px 12px}
html body #view-builder .quote-service-group{min-width:0;margin:12px 0 16px}
html body #view-builder .quote-service-group>.line:first-child{margin-top:0;margin-bottom:5px}
html body #view-builder .bb-line-identity{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:1;min-width:0;padding:3px 0}
html body #view-builder .bb-line-identity .bb-line-title{display:block;flex:none;width:100%;font-size:14px!important;font-weight:650;line-height:1.4}
html body #view-builder .bb-line-kind{display:inline-flex;align-items:center;padding:2px 6px;border:1px solid #e4aa77;border-radius:4px;background:#ffe0bf;color:#6e3510;font:700 10px/1.4 var(--bb-body,system-ui);letter-spacing:.025em;text-transform:uppercase}
html body #view-builder .line.material-compact:not(.is-attached-material){--foreground:#19394b;--bb-muted-ink:#526d7a;--surface:#f6fbff;--surface-secondary:#e9f4fb;--field-background:#fff;--field-foreground:#19394b;--border:#bdd4e1;background:#f6fbff;border-left:4px solid #4b91b6}
html body #view-builder .material-compact:not(.is-attached-material) .bb-line-kind{background:#e0f0fa;border-color:#b5d2e2;color:#225b78}
html body #view-builder .kit-compact .bb-line-kind{background:#eee6fa;border-color:#d1bee9;color:#624185}
html body #view-builder .custom-compact .bb-line-kind{background:#edf1f4;border-color:#c9d2d8;color:#4e626f}
html body #view-builder .line.bb-compact-line.is-attached-material{margin-top:5px;margin-left:20px;background:#fffbed;--surface:#fffbed;--surface-secondary:#fff4ca;border-left:3px solid #d0b34d}
html body #view-builder .is-attached-material .bb-line-kind{background:#fff2bb;border-color:#e3cc75;color:#715b0f}
html body #view-builder .bb-attached-owner{display:block;color:var(--bb-muted-ink,#74612b);font:400 11px/1.4 var(--bb-body,system-ui);overflow-wrap:anywhere}
html body #view-builder .bb-labor-materials{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid #ebc4a6;background:#fff5ec;color:#715239;font:500 12px/1.4 var(--bb-body,system-ui)}
html body #view-builder .bb-labor-materials.has-attached{background:#fff4d4;color:#6e561c;border-top-color:#e9d49a}
html body #view-builder .bb-labor-materials strong{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
html body #view-builder .bb-attach-materials{min-height:36px;padding:7px 10px;border:1px solid #b89539!important;border-radius:5px;background:#fff9dd!important;color:#694e0b!important;font:650 12px/1.3 var(--bb-body,system-ui)!important}
html body #view-builder .bb-compact-line .labor-compact-options[hidden]{display:none!important}
html body #view-builder .quote-section-items>.section-add-actions{padding:9px 7px;margin:8px -1px 0;border:1px solid var(--border,#c6d7e1);border-radius:8px;background:var(--surface,#fff);box-shadow:0 -3px 12px #1837460c}
html body #view-builder .quote-section-items>.section-add-actions button{min-height:44px;gap:5px;font-size:12px!important}
html body #view-builder .quote-section-items>.section-add-actions [data-add="labor"]{background:#ffe1c3!important;color:#74390f!important;border-color:#d9a171!important}
html body #view-builder .quote-section-items>.section-add-actions [data-add="material"]{background:#e3f2fc!important;color:#205977!important;border-color:#a2c6db!important}
html body #view-builder .quote-section-items>.section-add-actions [data-add="kit"]{background:#eee7fa!important;color:#654189!important;border-color:#c4aede!important}
@media(min-width:1400px){html body #view-builder .bb-labor-materials,html body #view-builder .bb-variant-selectors{grid-column:1/-1}}
@media(max-width:420px){html body #view-builder .line.bb-compact-line.is-attached-material{margin-left:14px}html body #view-builder .bb-line-identity .bb-line-title{font-size:13px!important}html body #view-builder .quote-section-items>.section-add-actions{gap:5px;padding:7px 5px}html body #view-builder .quote-section-items>.section-add-actions button{padding:8px 4px;font-size:11px!important}}
@media(max-width:360px){html body #view-builder .bb-line-metrics{grid-template-columns:50px 60px minmax(48px,1fr) 38px;gap:5px;padding:4px 8px 8px}}
html body #view-builder .bb-compact-line>.material-finish-control{box-sizing:border-box;min-width:0;width:100%;padding:9px 12px;margin:0;background:var(--surface,#fff);border-top:1px solid var(--border,#d4dee5)}
html body #view-builder .material-compact>.material-finish-control>span:first-child{display:none}
html body #view-builder .bb-compact-line>.material-finish-control label{flex-wrap:wrap;font-size:12px}
html body #view-builder .bb-compact-line>.material-finish-control select{min-width:0;max-width:100%;font-size:16px}
@media(min-width:1400px){html body #view-builder .bb-compact-line>.material-finish-control{grid-column:1/-1}}
