/* Stage-only additive summary. Original order identifiers remain available inside management disclosure. */
.order-detail-dialog.rh-summary-ready #detail-order-no { display: none !important; }
.order-detail-dialog .rh-summary { display: none; }
.order-detail-dialog.rh-summary-ready .rh-summary { display: block; }
.order-detail-dialog .detail-heading { position: relative; align-items: flex-start; }
.order-detail-dialog .detail-heading > div:first-child { width: 100%; min-width: 0; }
.order-detail-dialog .detail-close { flex: 0 0 40px; position: relative; z-index: 1; }
.rh-summary { margin-top: 9px; }
.rh-summary-customer { display: block; color: #16324f; font-size: 21px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.rh-summary-visit-label { display: block; margin-top: 9px; font-size: 11px; color: #6c7e90; font-weight: 800; }
.rh-summary-visit { display: block; margin-top: 3px; font-size: 15px; color: #223c53; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.rh-summary-steps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.rh-summary-cell { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px 8px; background: #f4f7fa; border: 1px solid #e1e9ef; border-radius: 10px; }
.rh-summary-cell-label { font-size: 11px; font-weight: 800; color: #6b7b8c; }
.rh-summary-state, .rh-summary-next { display: block; padding: 6px 5px; border-radius: 6px; font-size: 12px; line-height: 1.45; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.rh-summary-state { background: #e0edf5; color: #285c7c; }
.rh-summary-next { background: #fff0dc; color: #885220; }
.order-detail-dialog.rh-summary-ready .detail-status-block { display: none; }
.order-detail-dialog.rh-summary-ready .rh-summary-duplicate-name { display: none; }
.order-detail-dialog.rh-summary-ready .rh-summary-duplicate-visit > .detail-label,
.order-detail-dialog.rh-summary-ready .rh-summary-duplicate-visit > strong { display: none; }
.order-detail-dialog.rh-summary-ready .rh-summary-duplicate-visit:not(:has(.contact-visit-edit-area)) { display: none; }
.rh-summary-disclosures { display: grid; gap: 8px; margin-top: 12px; }
.rh-summary-disclosure { border: 1px solid #dfe7ef; border-radius: 12px; background: #fff; overflow: hidden; }
.rh-summary-disclosure summary { cursor: pointer; padding: 12px 16px; font-size: 13px; font-weight: 700; color: #425d70; }
.rh-summary-disclosure[open] summary { border-bottom: 1px solid #edf1f5; }
.rh-summary-code-list { padding: 8px 16px 14px; }
.rh-summary-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; padding: 6px 0; }
.rh-summary-code-label { display: block; width: 100%; color: #758599; font-size: 11px; }
.rh-summary-code-value { color: #16324f; font-size: 14px; overflow-wrap: anywhere; }
.rh-summary-copy { border: 1px solid #dbe4ec; background: #f5f7fa; border-radius: 7px; padding: 3px 8px; font-size: 15px; }
.rh-summary-empty { color: #718092; font-size: 13px; }
.rh-summary-amount-value { padding: 14px 16px; font-weight: 800; color: #16324f; }
@media (max-width: 360px) {
  .rh-summary-steps { gap: 6px; }
  .rh-summary-cell { padding: 9px 6px; }
  .rh-summary-state, .rh-summary-next { font-size: 11px; }
}
