.rp-wrap { display: grid; gap: 19px; min-width: 0; color: var(--ink,#20253a); }
.rp-wrap .section-head { margin-bottom: 0; }
.rp-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.rp-stat, .rp-panel { min-width: 0; background: #fff; border: 1px solid var(--line,#e0e3eb); border-radius: 10px; }
.rp-stat { display: grid; align-content: start; gap: 8px; padding: 18px 20px; }
.rp-stat > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-light,#42495d); font-size: 13px; font-weight: 600; }
.rp-stat > div .icon { width: 18px; height: 18px; color: #665bc8; }
.rp-stat > strong { font-size: clamp(24px,2.35vw,33px); font-weight: 680; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rp-stat > small, .rp-panel-head p, .rp-muted { color: var(--muted,#60697e); font-size: 12px; line-height: 1.6; }
.rp-panel { padding: 0; }
.rp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px 14px; }
.rp-panel-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 680; letter-spacing: -.025em; color: var(--ink,#20253a); }
.rp-panel-head p { margin: 0; }
.rp-filter { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--muted,#60697e); font-size: 12px; }
.rp-filter select { padding: 6px 8px; min-height: 34px; background: white; color: var(--ink,#20253a); border: 1px solid var(--line,#e0e3eb); border-radius: 6px; }
.rp-ledger { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0 20px 20px; }
.rp-ledger div { min-width: 0; padding: 2px 14px; border-left: 1px solid var(--line,#e0e3eb); }
.rp-ledger div:first-child { border-left: 0; padding-left: 0; }
.rp-ledger dt, .rp-ledger dd { margin: 0; }
.rp-ledger dt { color: var(--muted,#60697e); font-size: 12px; }
.rp-ledger dd { margin-top: 4px; font-size: clamp(16px,1.6vw,22px); font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rp-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.rp-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rp-table th, .rp-table td { padding: 13px 11px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.rp-table thead th { background: #f7f8fb; color: var(--muted,#60697e); font-size: 11.5px; font-weight: 600; padding-top: 9px; padding-bottom: 9px; border-top: 1px solid #eceef4; border-bottom: 1px solid #eceef4; }
.rp-table th:first-child { width: 23%; padding-left: 20px; }
.rp-table :is(th,td):last-child { padding-right: 20px; }
.rp-table tbody tr + tr { border-top: 1px solid #eceef4; }
.rp-table tbody th { font-weight: 600; }
.rp-table td b, .rp-table small, .rp-cost { display: block; }
.rp-table small { margin-top: 3px; color: var(--muted,#60697e); font-size: 11.5px; font-weight: 400; }
.rp-money, .rp-cost { font-variant-numeric: tabular-nums; }
.rp-money { font-weight: 640; }
.rp-cost { font-size: 12px; }
.rp-cost + .rp-cost { margin-top: 3px; }
.rp-order-title { display: inline; color: var(--ink,#20253a); }
.rp-order-title:hover, .rp-link { color: var(--accent,#5145d8); }
.rp-order-title .icon { width: 13px; height: 13px; margin-left: 2px; color: var(--accent,#5145d8); vertical-align: -2px; }
.rp-wrap .empty-state { margin: 0; border: 0; border-top: 1px solid #eceef4; background: transparent; }
.rp-outcome-metrics { display: grid; gap: 3px; margin: 0; }
.rp-outcome-metrics div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.rp-outcome-metrics dt { color: var(--muted); font-size: 11px; }
.rp-outcome-metrics dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .rp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rp-table, .rp-table tbody { display: block; }
  .rp-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; padding: 15px 20px; border-top: 1px solid #eceef4; }
  .rp-table th:first-child { grid-column: 1/-1; width: auto; padding: 0; }
  .rp-table tbody th, .rp-table tbody td, .rp-table tbody :last-child { padding: 0; }
  .rp-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; color: var(--muted,#60697e); }
}
@media (max-width: 640px) {
  .rp-wrap { gap: 15px; }
  .rp-stats { grid-template-columns: 1fr; gap: 7px; }
  .rp-stat { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 11px 14px; gap: 2px 8px; }
  .rp-stat > div { justify-content: flex-start; }
  .rp-stat > div .icon { display: none; }
  .rp-stat > strong { grid-row: span 2; font-size: 21px; }
  .rp-stat > small { font-size: 11.5px; }
  .rp-panel-head { flex-wrap: wrap; padding: 15px 14px 12px; gap: 8px; }
  .rp-panel-head h2 { font-size: 16px; }
  .rp-ledger { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 14px 15px; row-gap: 12px; }
  .rp-ledger div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .rp-table tbody tr { padding: 12px 14px; gap: 9px 13px; }
}
