/* QA1125 General Repairs readability parity.
   Keep this isolated from Painting, Roofing, and the shared Home Repair shell. */
.hgc-gr-page {
  --hgc-gr-body-size: 14px;
  --hgc-gr-support-size: 14px;
}

.hgc-gr-page :is(
  .hgc-gr-types button strong,
  .hgc-gr-details label,
  .hgc-gr-details input,
  .hgc-gr-details select,
  .hgc-gr-details .hgc-select-trigger,
  .hgc-gr-details .hgc-select-trigger [data-hgc-select-value],
  .hgc-gr-details footer button,
  .hgc-gr-assembly .checks button,
  .hgc-gr-assembly>dl div,
  .hgc-gr-assembly>dl p,
  .hgc-gr-unknown>div strong,
  .hgc-gr-unknown>p,
  .hgc-gr-list>header,
  .hgc-gr-list>article,
  .hgc-gr-list>button,
  .hgc-gr-summary>section>p,
  .hgc-gr-summary dl div,
  .hgc-gr-summary button,
  .hgc-gr-summary .proposal header span
) {
  font-size: var(--hgc-gr-body-size) !important;
  line-height: 1.35 !important;
}

.hgc-gr-page :is(
  .hgc-gr-unknown>div small,
  .hgc-gr-summary>section>small,
  .hgc-gr-summary em,
  .hgc-gr-summary .proposal header small,
  .hgc-gr-summary .proposal>p
) {
  font-size: var(--hgc-gr-support-size) !important;
  line-height: 1.4 !important;
}

.hgc-gr-page .hgc-gr-list>article b {
  font-size: 15px !important;
}

/* The shared proposal media stays estimate-owned, but sits with the repair
   editor directly below the explicit Price Book save action. */
.hgc-gr-page #hgc-gr-editor-content > .hgc-proposal-photo-panel.hgc-gr-editor-photo-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Keep the visit-minimum confirmation readable independently of legacy compact estimator rules. */
.premium-app .hgc-root .hgc-gr-page #hgc-gr-entry-panel .hgc-gr-assembly > dl > p {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.hgc-gr-page .hgc-gr-assembly-work > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hgc-gr-page .hgc-gr-assembly-work > header h4 {
  margin: 0;
}

.hgc-gr-page .hgc-gr-assembly-count {
  flex: 0 0 auto;
  margin-right: 14px;
  padding: 5px 9px;
  border: 1px solid #2c5267;
  border-radius: 999px;
  background: #08202c;
  color: #31d8ec;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.hgc-gr-page .hgc-gr-assembly-disclosure > summary {
  display: none;
}

.hgc-gr-page .hgc-gr-assembly .checks {
  align-items: start;
}

.hgc-gr-page .hgc-gr-assembly-group {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 4px;
}

.hgc-gr-page .hgc-gr-assembly-group legend {
  width: 100%;
  margin: 0;
  padding: 0 2px 5px;
  color: #8fa8b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hgc-gr-page .hgc-gr-assembly .checks button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  width: 100%;
  border-radius: 5px;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.hgc-gr-page .hgc-gr-assembly .checks button strong {
  min-width: 0;
  font: inherit;
}

.hgc-gr-page .hgc-gr-assembly .checks button.active {
  background: rgba(255, 122, 0, .075);
  color: #f5f8fa;
}

.hgc-gr-page .hgc-gr-assembly .checks button:not(.active) {
  color: #93a4af;
}

.hgc-gr-page .hgc-gr-assembly .checks button:focus-visible {
  outline: 2px solid #31d8ec;
  outline-offset: 2px;
}

.hgc-gr-page .hgc-gr-assembly-toggle {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.hgc-gr-page .hgc-gr-unknown>div button {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 76px;
  gap: 2px 9px;
}

.hgc-gr-page .hgc-gr-unknown>div button>span {
  width: 38px;
  height: 38px;
}

.hgc-gr-page .hgc-gr-list>header,
.hgc-gr-page .hgc-gr-list>article {
  grid-template-columns: minmax(110px, 1fr) minmax(180px, 1.65fr) minmax(80px, .65fr) 38px 38px 38px;
}

.hgc-gr-page .hgc-gr-list>article button {
  width: 34px;
  height: 34px;
}

.hgc-gr-page .hgc-gr-list>article button.danger {
  border-color: #ff6b6b;
  color: #ff8b8b;
}

@media (max-width: 720px) {
  .hgc-gr-page {
    --hgc-gr-body-size: 15px;
    --hgc-gr-support-size: 14px;
  }

  .hgc-gr-page .hgc-gr-list {
    overflow-x: auto;
  }

  .hgc-gr-page .hgc-gr-list>header,
  .hgc-gr-page .hgc-gr-list>article {
    min-width: 610px;
  }
}
