.rp-receipt-page .dashboard-content {
  padding-bottom: 2rem;
}

.rp-receipt-main {
  max-width: 980px;
}

.rp-receipt-page-heading {
  max-width: 740px;
  margin: 0 auto 1.25rem;
}

.rp-receipt-toolbar {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.rp-receipt-lookup {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(46, 125, 50, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(255, 107, 0, 0.09), rgba(255, 255, 255, 0.96) 44%, rgba(46, 125, 50, 0.06));
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.rp-receipt-lookup-copy {
  max-width: 560px;
  margin-bottom: 1.25rem;
}

.rp-receipt-lookup-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.12);
  font-size: 1.5rem;
}

.rp-receipt-lookup h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  color: #141821;
}

.rp-receipt-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.rp-receipt-search-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 12px;
}

.rp-receipt-lookup-form .form-control,
.rp-receipt-lookup-form .btn {
  min-height: 46px;
  border-radius: 12px !important;
}

.rp-receipt-lookup-form .form-control {
  min-width: 0;
  border: 0;
  box-shadow: none !important;
  background: transparent;
  font-weight: 700;
}

.rp-receipt-lookup-form .btn {
  padding-inline: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.rp-receipt-lookup-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.rp-receipt-lookup-hints span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.rp-receipt-lookup-hints i {
  color: #2e7d32;
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-page-heading h1,
html[data-theme="dark"] .rp-receipt-page .rp-receipt-page-heading .h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-page-heading .page-icon {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.22);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup {
  border-color: rgba(249, 115, 22, 0.3);
  background:
    radial-gradient(circle at 86% 18%, rgba(46, 125, 50, 0.22), transparent 34%),
    radial-gradient(circle at 8% 12%, rgba(249, 115, 22, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(38, 29, 24, 0.96), rgba(24, 24, 27, 0.98) 48%, rgba(17, 31, 24, 0.94));
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-icon {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup h2,
html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-form .form-label {
  color: #f8fafc;
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup .text-muted {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-search {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-search-icon {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.16);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-form .form-control {
  color: #f8fafc;
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-form .form-control::placeholder {
  color: rgba(226, 232, 240, 0.58);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-hints span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-hints i {
  color: #86efac;
}

html[data-theme="dark"] .rp-receipt-page .rp-receipt-toolbar .btn-outline-secondary {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.rp-receipt-card {
  max-width: 480px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fc 50%, #eef1f8 100%);
  color: #1a1a1a;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  padding: 0;
}

.rp-receipt-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #ff6b00, #ff9248, #e65100);
}

.rp-receipt-inner {
  padding: 1.75rem 1.5rem 2rem;
}

.rp-receipt-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rp-receipt-brand-row img {
  max-height: 44px;
  width: auto;
}

.rp-receipt-brand-fallback {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #111;
}

.rp-receipt-brand-fallback span {
  color: #ff6b00;
}

.rp-receipt-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff6b00;
  background: rgba(255, 107, 0, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.rp-receipt-headline {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  color: #111;
}

.rp-receipt-sub {
  font-size: 0.88rem;
  color: #5c6370;
  margin-bottom: 1.25rem;
}

.rp-receipt-amount-block {
  text-align: center;
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 107, 0, 0.02) 100%);
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.rp-receipt-amount-block .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 0.35rem;
}

.rp-receipt-amount-block .amt {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.rp-receipt-amount-block .amt.sent {
  color: #e53935;
}

.rp-receipt-amount-block .amt.received {
  color: #2e7d32;
}

.rp-receipt-rows {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.rp-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.rp-receipt-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rp-receipt-row dt {
  margin: 0;
  color: #888;
  font-weight: 500;
  flex: 0 0 42%;
}

.rp-receipt-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: #222;
  flex: 1;
  word-break: break-word;
}

.rp-receipt-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: #6c757d;
}

.form-control.account-resolving {
  font-weight: 500;
  color: var(--rp-text-muted);
}

.form-control.account-resolved {
  border-color: rgba(var(--rp-success-rgb), 0.45);
  background: rgba(var(--rp-success-rgb), 0.06);
}

@media (max-width: 575.98px) {
  .rp-receipt-main {
    padding-top: 1rem !important;
  }

  .rp-receipt-page-heading {
    margin-bottom: 1rem;
  }

  .rp-receipt-page-heading .page-heading-copy {
    align-items: center;
  }

  .rp-receipt-lookup {
    margin-inline: 0;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .rp-receipt-lookup-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
  }

  .rp-receipt-lookup h2 {
    font-size: 1.35rem;
  }

  .rp-receipt-search {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .rp-receipt-search-icon {
    display: none;
  }

  .rp-receipt-lookup-form .form-control,
  .rp-receipt-lookup-form .btn {
    width: 100%;
    min-height: 52px;
    border-radius: 14px !important;
  }

  .rp-receipt-lookup-form .form-control {
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: #fff;
    padding-inline: 0.95rem;
  }

  html[data-theme="dark"] .rp-receipt-page .rp-receipt-lookup-form .form-control {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
  }

  .rp-receipt-lookup-hints {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media print {
  [data-rp-public-header],
  .public-footer,
  .admin-shell [data-rp-sidebar],
  .admin-shell [data-rp-topnav],
  .admin-shell [data-rp-bottomnav],
  .admin-footer,
  .page-heading,
  .rp-receipt-toolbar {
    display: none !important;
  }

  .admin-main,
  .dashboard-content,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .public-page-wrap {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .rp-receipt-card {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
}
