/* Final proposal typography lock.
   Keep every proposal label on a native, opaque text layer. Earlier rail
   styles used synthetic 750/850 weights and disabled opacity, which softened
   compact characters on Windows, iPad screenshots, and browser zoom. */
#app .premium-app :is(
  .proposal-section-shell,
  .painting-shared-estimate-page,
  .painting-time-materials-service-page,
  .painting-shared-reference-rail,
  .painting-reference-summary,
  .painting-rail-essential-actions,
  .painting-summary-approval-actions
) {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-synthesis: none !important;
  font-kerning: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
}

#app .premium-app :is(
  .proposal-section-shell,
  .painting-shared-estimate-page,
  .painting-time-materials-service-page,
  .painting-shared-reference-rail,
  .painting-reference-summary,
  .painting-rail-essential-actions,
  .painting-summary-approval-actions
) :is(h1,h2,h3,h4,p,span,small,strong,b,em,label,dt,dd,summary,button,a,input,select,option) {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-synthesis: none !important;
  font-kerning: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Only real Segoe UI weights: no browser-generated 750/850 faces. */
#app .premium-app :is(
  .painting-shared-reference-rail,
  .painting-reference-summary,
  .painting-rail-essential-actions
) :is(p,span,small,em,label,dt) {
  font-weight: 600 !important;
}

#app .premium-app :is(
  .painting-shared-reference-rail,
  .painting-reference-summary,
  .painting-rail-essential-actions
) :is(h3,h4,strong,b,dd,summary,button,a,select,option) {
  font-weight: 700 !important;
}

#app .premium-app .painting-reference-summary :is(
  .painting-summary-utilities button,
  .summary-actions .btn,
  .summary-actions .primary,
  .painting-summary-approval-actions .btn,
  .painting-summary-approval-actions .primary,
  .painting-summary-approval-actions .proposal-flow-accepted,
  .painting-customer-display,
  .painting-customer-display select,
  .painting-rail-save-status
) {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  filter: none !important;
}

/* A disabled action stays obviously unavailable without fading its glyphs. */
#app .premium-app .painting-reference-summary :is(
  .painting-summary-approval-actions [aria-disabled="true"],
  .painting-summary-approval-actions button:disabled,
  .painting-summary-approval-actions .is-disabled,
  .painting-shared-rail-footer button:disabled,
  .painting-rail-essential-actions button:disabled
) {
  opacity: 1 !important;
  color: #aeb7c0 !important;
  border-color: #47535e !important;
  background: #11171d !important;
  box-shadow: none !important;
}

#app .premium-app .painting-reference-summary .painting-summary-approval-actions .proposal-packages-approval-action[aria-disabled="true"] {
  color: #b7a8c2 !important;
  border-color: #6a3b70 !important;
  background: #17121b !important;
}

#app .premium-app .painting-reference-summary .summary-actions :is(.btn,.primary),
#app .premium-app .painting-reference-summary .painting-summary-approval-actions :is(.btn,.primary,.proposal-flow-accepted,.proposal-packages-approval-action) {
  font-size: 14px !important;
  line-height: 20px !important;
}

#app .premium-app .painting-reference-summary .painting-customer-display,
#app .premium-app .painting-reference-summary .painting-customer-display select {
  font-size: 14px !important;
  line-height: 20px !important;
}

#app .premium-app .painting-reference-summary .painting-rail-save-status {
  font-size: 13px !important;
  line-height: 18px !important;
}

@media (max-width: 760px) {
  #app .premium-app .painting-reference-summary .summary-actions :is(.btn,.primary),
  #app .premium-app .painting-reference-summary .painting-summary-approval-actions :is(.btn,.primary,.proposal-flow-accepted,.proposal-packages-approval-action),
  #app .premium-app .painting-reference-summary .painting-customer-display,
  #app .premium-app .painting-reference-summary .painting-customer-display select {
    font-size: 15px !important;
    line-height: 21px !important;
  }
}
