/* Histórico do registro (19/11/2026): pedido e fatura. Fechado = uma linha; aberto = lista. */
.rh { background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; margin-top: 12px; color: #0B1220; font-family: var(--ds-sans, 'IBM Plex Sans', system-ui, sans-serif); }
.rh--blue { --rh-accent: #175CD3; }
.rh--green { --rh-accent: #067647; }
.rh__head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: 12px; }
.rh__head:hover { background: #F7F8FA; }
.rh__head:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: -2px; }
.rh__title { font: 600 11px var(--ds-mono, 'JetBrains Mono', monospace); letter-spacing: .08em; text-transform: uppercase; color: #3A465E; }
.rh__n { height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 10px; background: #F2F4F7; color: #344054; font: 600 11.5px var(--ds-mono, 'JetBrains Mono', monospace); }
.rh__last { flex: 1; min-width: 0; font-size: 13px; color: #56627A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh__act { font-size: 13px; font-weight: 600; color: var(--rh-accent); white-space: nowrap; }
.rh__chev { color: var(--rh-accent); flex: 0 0 auto; transition: transform .15s ease; }
.rh__chev.is-open { transform: rotate(180deg); }
.rh__list { list-style: none; margin: 0; padding: 0 16px 10px; }
.rh__row { display: grid; grid-template-columns: 92px 12px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid #EEF1F6; align-items: start; }
.rh__at { font: 500 12.5px var(--ds-mono, 'JetBrains Mono', monospace); color: #3A465E; padding-top: 1px; white-space: nowrap; }
.rh__dot { width: 9px; height: 9px; border-radius: 5px; margin-top: 5px; background: #8A96AD; }
.rh__row.is-ok .rh__dot { background: #067647; }
.rh__row.is-bad .rh__dot { background: #B42318; }
.rh__row.is-new .rh__dot { background: #344054; }
.rh__row.is-open .rh__dot { background: #026AA2; }
.rh__row.is-prod .rh__dot { background: #3538CD; }
.rh__what { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rh__what strong { font-size: 13.5px; font-weight: 600; }
.rh__what strong.is-failed { color: #B42318; }
.rh__what small { font-size: 12.5px; color: #56627A; overflow-wrap: anywhere; }
.rh__what small b { color: #0B1220; font-weight: 600; }
.rh__pay { display: flex; gap: 10px; margin-top: 2px; }
.rh__link { border: 0; background: none; padding: 0; font: 600 12.5px var(--ds-sans, 'IBM Plex Sans', sans-serif); color: var(--rh-accent); cursor: pointer; text-decoration: none; }
.rh__link:hover { text-decoration: underline; }
.rh__link--danger { color: #B42318; }
.rh__link[disabled] { opacity: .5; cursor: default; }
@media (max-width: 640px) {
  .rh__last { display: none; }
  .rh__row { grid-template-columns: 74px 10px minmax(0, 1fr); gap: 8px; }
}
