/* Final compact-control cleanup: one visible boundary per editable control. */

.premium-app .proposal-customer-picker-search > input,
.premium-app .proposal-customer-picker-search > input:is(:hover, :focus, :focus-visible, :active) {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.premium-app .shared-estimator-target-input > input,
.premium-app .shared-estimator-target-input > input:is(:hover, :focus, :focus-visible, :active) {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.premium-app .shared-estimator-deposit > button.edit,
.premium-app .shared-estimator-deposit > button.edit:is(:hover, :focus, :focus-visible, :active) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 30px !important;
  padding: 4px 7px !important;
  border: 1px solid #ff8a1f !important;
  border-radius: 5px !important;
  outline: 0 !important;
  background: transparent !important;
  color: #ff8a1f !important;
  box-shadow: none !important;
}

.premium-app .shared-estimator-deposit > button.edit > em {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #ff8a1f !important;
  box-shadow: none !important;
  font-style: normal !important;
}

.premium-app .painting-module-shell.interior input[data-paint-whole-home-amount],
.premium-app .painting-module-shell.interior input[data-paint-whole-home-amount]:is(:hover, :focus, :focus-visible, :active) {
  border: 0 !important;
  outline: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.premium-app .proposal-reference-actions .record-management-popover {
  width: min(296px, calc(100vw - 32px));
  padding: 9px;
}

.premium-app .proposal-reference-actions .record-management-popover > button {
  min-height: 66px;
  padding: 11px 12px;
  overflow: hidden;
}

.premium-app .proposal-reference-actions .record-management-popover small {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Keep the combined Project Builder inside the application canvas. The old
   two-sided negative margin made the fixed inspector rail extend past the
   viewport, especially on scaled / curved displays. */
.premium-app .customer-combined-builder {
  box-sizing: border-box;
  width: calc(100% - 8px);
  max-width: calc(100% - 8px);
  min-width: 0;
  margin-right: 0;
  overflow-x: clip;
}

.premium-app .customer-combined-builder .customer-builder-layout {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns:
    clamp(210px, 16vw, 260px)
    minmax(0, 1fr)
    clamp(280px, 21vw, 340px);
}

.premium-app .customer-combined-builder :is(
  .customer-builder-sidebar,
  .customer-builder-main,
  .customer-builder-price,
  .customer-builder-painting-rail,
  .customer-builder-services,
  .customer-builder-service-library-card
) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.premium-app .customer-builder-painting-main .customer-builder-painting-rail {
  width: auto !important;
}

@media (max-width: 1120px) {
  .premium-app .customer-combined-builder .customer-builder-layout {
    grid-template-columns: 210px minmax(0, 1fr) 280px;
  }

  .premium-app .customer-builder-painting-main .customer-builder-services.home-repair-project-services {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .premium-app .customer-combined-builder {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    overflow-x: hidden;
  }

  .premium-app .customer-combined-builder .customer-builder-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Slightly larger service-switcher copy so each estimator is readable at a
   glance without increasing the strip's overall height dramatically. */
.premium-app .painting-compact-service-tabs button {
  min-height: 64px;
  padding: 10px 11px;
}

.premium-app .painting-compact-service-tabs strong {
  font-size: 15px;
  line-height: 1.2;
}

.premium-app .painting-compact-service-tabs small {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.25;
}

/* The whole-home amount is a plain editable number; it does not need the
   dashed editable-price cue used by dense table cells. */
.premium-app input[data-paint-whole-home-amount],
.premium-app input[data-paint-whole-home-amount]:is(:hover, :focus, :focus-visible, :active) {
  border: 0 !important;
  outline: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.premium-app .painting-module-shell.interior input[data-paint-whole-home-amount][data-paint-whole-home-amount]:not(:disabled):not([readonly]),
.premium-app .painting-module-shell.exterior input[data-paint-whole-home-amount][data-paint-whole-home-amount]:not(:disabled):not([readonly]) {
  border: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Match the surrounding table rows' right-side breathing room so closet
   toggles never sit against the card edge. */
.premium-app .painting-module-shell.interior .paint-closet-head,
.premium-app .painting-module-shell.interior .paint-closet-subrows > div {
  padding-right: 18px !important;
}

.premium-app .painting-module-shell.interior .paint-closet-head > .paint-toggle,
.premium-app .painting-module-shell.interior .paint-closet-subrows > div > .paint-toggle {
  margin-right: 2px !important;
}

/* Keep the customer-facing display choices visible in every sales rail.
   The select is the only control; Budget health remains a separate row. */
.premium-app .shared-estimator-pricing-display {
  position: relative;
  display: grid;
  border-bottom: 1px solid #29495c;
}

.premium-app .shared-estimator-pricing-trigger {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.premium-app .shared-estimator-pricing-trigger > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
}

.premium-app .shared-estimator-pricing-trigger > span > svg {
  grid-row: 1 / 3;
  color: #cf55ec;
}

.premium-app .shared-estimator-pricing-trigger b {
  font-size: 12px;
}

.premium-app .shared-estimator-pricing-trigger small {
  display: none;
}

.premium-app .shared-estimator-pricing-trigger > svg {
  display: none;
}

.premium-app .shared-estimator-pricing-controls {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
}

.premium-app .shared-estimator-pricing-controls :is(.painting-customer-display, .hgc-shared-customer-display) {
  position: static;
  order: -1;
  display: grid;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
}

.premium-app .shared-estimator-pricing-controls .hgc-shared-customer-display > span {
  display: none;
}

.premium-app .shared-estimator-pricing-controls :is(.painting-customer-display, .hgc-shared-customer-display) select {
  position: static;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 32px 7px 10px;
  border: 1px solid #31546a !important;
  border-radius: 6px !important;
  background: #0b1c29 !important;
  color: #f7fbff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  opacity: 1;
  cursor: pointer;
}

.premium-app .shared-estimator-pricing-controls :is(.painting-customer-display, .hgc-shared-customer-display) select:is(:hover, :focus, :focus-visible) {
  border-color: #2ae6f5 !important;
  outline: 2px solid color-mix(in srgb, #2ae6f5 30%, transparent);
  outline-offset: 1px;
}

.premium-app .shared-estimator-pricing-controls :is(.hgc-shared-budget-health, .painting-shared-budget) {
  margin: 0 !important;
}
