/**
 * Richardson Hartley Law - Portal & Case Management Design System
 * Inspired by premium financial utility & modern legal case-management platforms.
 */

:root {
  --rhl-navy-950: #06062b;
  --rhl-navy-900: #0a0a52;
  --rhl-navy-800: #121268;
  --rhl-navy-700: #1c1c85;
  --rhl-navy-600: #2929a8;
  --rhl-navy-50:  #f0f2fb;

  --rhl-gold-500: #d4af37;
  --rhl-gold-600: #b89628;
  --rhl-gold-100: #fef7db;

  --rhl-slate-900: #0f172a;
  --rhl-slate-800: #1e293b;
  --rhl-slate-700: #334155;
  --rhl-slate-600: #475569;
  --rhl-slate-500: #64748b;
  --rhl-slate-400: #94a3b8;
  --rhl-slate-300: #cbd5e1;
  --rhl-slate-200: #e2e8f0;
  --rhl-slate-100: #f1f5f9;
  --rhl-slate-50:  #f8fafc;

  /* Status Colors */
  --rhl-status-received-bg: #e0f2fe;
  --rhl-status-received-text: #0369a1;
  --rhl-status-received-border: #bae6fd;

  --rhl-status-review-bg: #fef3c7;
  --rhl-status-review-text: #92400e;
  --rhl-status-review-border: #fde68a;

  --rhl-status-action-bg: #fee2e2;
  --rhl-status-action-text: #b91c1c;
  --rhl-status-action-border: #fecaca;

  --rhl-status-resolved-bg: #dcfce7;
  --rhl-status-resolved-text: #15803d;
  --rhl-status-resolved-border: #bbf7d0;

  /* Elevation Shadows */
  --rhl-shadow-xs: 0 1px 2px rgba(10, 10, 82, 0.04);
  --rhl-shadow-sm: 0 1px 3px rgba(10, 10, 82, 0.07), 0 1px 2px rgba(10, 10, 82, 0.04);
  --rhl-shadow-md: 0 4px 12px -2px rgba(10, 10, 82, 0.08), 0 2px 6px -2px rgba(10, 10, 82, 0.04);
  --rhl-shadow-lg: 0 12px 28px -4px rgba(10, 10, 82, 0.12), 0 4px 12px -2px rgba(10, 10, 82, 0.06);
  --rhl-shadow-xl: 0 24px 48px -12px rgba(10, 10, 82, 0.18);
  --rhl-shadow-card: 0 20px 40px -15px rgba(6, 6, 43, 0.45);

  --rhl-radius-sm: 6px;
  --rhl-radius-md: 10px;
  --rhl-radius-lg: 16px;
  --rhl-radius-full: 9999px;

  --rhl-font-serif: "Noto Serif", Georgia, serif;
  --rhl-font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rhl-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base Portal Shell */
.rhl-portal-shell {
  min-height: 100vh;
  background-color: var(--rhl-slate-50);
  background-image: 
    radial-gradient(at 0% 0%, rgba(10, 10, 82, 0.03) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.02) 0, transparent 50%);
  padding-top: 130px;
  padding-bottom: 80px;
  color: var(--rhl-slate-800);
  font-family: var(--rhl-font-sans);
}

.rhl-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Icon Utility */
.rhl-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.rhl-icon-sm {
  width: 1rem;
  height: 1rem;
}

.rhl-icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Sub-Header Portal Bar */
.rhl-portal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-lg);
  padding: 14px 22px;
  margin-bottom: 28px;
  box-shadow: var(--rhl-shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}

.rhl-portal-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rhl-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rhl-navy-50);
  color: var(--rhl-navy-900);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: var(--rhl-radius-sm);
  border: 1px solid rgba(10, 10, 82, 0.12);
}

.rhl-portal-reg {
  font-size: 0.825rem;
  color: var(--rhl-slate-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rhl-portal-reg strong {
  color: var(--rhl-navy-900);
}

.rhl-portal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rhl-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  background: var(--rhl-slate-100);
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-full);
  font-size: 0.875rem;
  color: var(--rhl-slate-700);
}

.rhl-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--rhl-radius-full);
  background: var(--rhl-navy-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.rhl-btn-signout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--rhl-slate-300);
  border-radius: var(--rhl-radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rhl-slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rhl-btn-signout:hover {
  background: #fff0f0;
  border-color: #fca5a5;
  color: var(--rhl-status-action-text);
}

/* Welcome Hero Section */
.rhl-welcome-hero {
  margin-bottom: 28px;
}

.rhl-welcome-hero h1 {
  font-family: var(--rhl-font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.rhl-welcome-sub {
  font-size: 1.05rem;
  color: var(--rhl-slate-600);
  margin: 0;
  max-width: 720px;
  line-height: 1.55;
}

/* Wallet-Inspired Case Overview Card */
.rhl-wallet-card {
  position: relative;
  background: linear-gradient(135deg, var(--rhl-navy-950) 0%, var(--rhl-navy-900) 55%, var(--rhl-navy-800) 100%);
  border-radius: var(--rhl-radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--rhl-shadow-card);
  padding: 32px 36px;
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 32px;
}

/* Subtle gold luxury edge highlight */
.rhl-wallet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--rhl-gold-500) 50%, transparent 100%);
  opacity: 0.8;
}

/* Watermark Crest Background */
.rhl-wallet-watermark {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 220px;
  height: 220px;
  opacity: 0.05;
  pointer-events: none;
  color: #ffffff;
}

.rhl-wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.rhl-wallet-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rhl-wallet-chip {
  color: var(--rhl-gold-500);
  display: flex;
  align-items: center;
}

.rhl-wallet-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.rhl-wallet-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--rhl-radius-full);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.rhl-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--rhl-radius-full);
  background-color: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: rhl-pulse 2s infinite;
}

@keyframes rhl-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.rhl-wallet-body {
  margin-bottom: 28px;
}

.rhl-wallet-metric-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.rhl-wallet-amount {
  font-family: var(--rhl-font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.rhl-wallet-caption {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.rhl-wallet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.rhl-wallet-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rhl-wallet-stat-item {
  display: flex;
  flex-direction: column;
}

.rhl-wallet-stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--rhl-font-mono);
}

.rhl-wallet-stat-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rhl-btn-wallet-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rhl-gold-500);
  color: var(--rhl-navy-950);
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--rhl-radius-full);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.rhl-btn-wallet-action:hover {
  background: #e6c555;
  color: var(--rhl-navy-950);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  text-decoration: none;
}

/* KPI Summary Cards Grid */
.rhl-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.rhl-kpi-card {
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-lg);
  padding: 22px;
  box-shadow: var(--rhl-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rhl-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rhl-shadow-md);
  border-color: var(--rhl-slate-300);
}

.rhl-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rhl-kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--rhl-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rhl-kpi-icon-wrap.navy {
  background: var(--rhl-navy-50);
  color: var(--rhl-navy-900);
}

.rhl-kpi-icon-wrap.amber {
  background: var(--rhl-status-review-bg);
  color: var(--rhl-status-review-text);
}

.rhl-kpi-icon-wrap.coral {
  background: var(--rhl-status-action-bg);
  color: var(--rhl-status-action-text);
}

.rhl-kpi-icon-wrap.green {
  background: var(--rhl-status-resolved-bg);
  color: var(--rhl-status-resolved-text);
}

.rhl-kpi-val {
  font-family: var(--rhl-font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  line-height: 1;
}

.rhl-kpi-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rhl-slate-700);
  margin-bottom: 4px;
}

.rhl-kpi-desc {
  font-size: 0.775rem;
  color: var(--rhl-slate-400);
  margin: 0;
}

/* My Cases Section */
.rhl-section-card {
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-lg);
  box-shadow: var(--rhl-shadow-sm);
  padding: 30px;
  margin-bottom: 36px;
}

.rhl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.rhl-section-title-wrap h2 {
  font-family: var(--rhl-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin: 0 0 4px 0;
}

.rhl-section-title-wrap p {
  color: var(--rhl-slate-500);
  font-size: 0.9rem;
  margin: 0;
}

.rhl-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.rhl-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.rhl-search-box .rhl-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rhl-slate-400);
  pointer-events: none;
}

.rhl-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-full);
  font-size: 0.9rem;
  color: var(--rhl-slate-800);
  background: var(--rhl-slate-50);
  transition: all 0.2s ease;
}

.rhl-search-input:focus {
  outline: none;
  border-color: var(--rhl-navy-900);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 10, 82, 0.1);
}

.rhl-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--rhl-slate-100);
  padding: 4px;
  border-radius: var(--rhl-radius-full);
  border: 1px solid var(--rhl-slate-200);
  overflow-x: auto;
}

.rhl-tab {
  background: transparent;
  border: none;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--rhl-slate-600);
  padding: 6px 14px;
  border-radius: var(--rhl-radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.rhl-tab.active {
  background: #ffffff;
  color: var(--rhl-navy-900);
  box-shadow: var(--rhl-shadow-xs);
}

/* Case Item Card */
.rhl-case-card {
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-md);
  padding: 24px;
  margin-bottom: 18px;
  background: #ffffff;
  transition: all 0.2s ease;
  position: relative;
}

.rhl-case-card:hover {
  border-color: var(--rhl-slate-300);
  box-shadow: var(--rhl-shadow-md);
  transform: translateY(-1px);
}

.rhl-case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.rhl-ref-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rhl-ref-code {
  font-family: var(--rhl-font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rhl-navy-900);
  background: var(--rhl-navy-50);
  border: 1px solid rgba(10, 10, 82, 0.12);
  padding: 4px 10px;
  border-radius: var(--rhl-radius-sm);
  letter-spacing: 0.02em;
}

.rhl-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--rhl-radius-sm);
  background: var(--rhl-slate-100);
  border: 1px solid var(--rhl-slate-200);
  color: var(--rhl-slate-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rhl-btn-copy:hover {
  background: var(--rhl-navy-900);
  color: #ffffff;
  border-color: var(--rhl-navy-900);
}

.rhl-case-date {
  font-size: 0.825rem;
  color: var(--rhl-slate-400);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Status Badges */
.rhl-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  padding: 5px 12px;
  border-radius: var(--rhl-radius-full);
}

.rhl-status-badge.report_received {
  background: var(--rhl-status-received-bg);
  color: var(--rhl-status-received-text);
  border: 1px solid var(--rhl-status-received-border);
}

.rhl-status-badge.under_review {
  background: var(--rhl-status-review-bg);
  color: var(--rhl-status-review-text);
  border: 1px solid var(--rhl-status-review-border);
}

.rhl-status-badge.awaiting_information {
  background: var(--rhl-status-action-bg);
  color: var(--rhl-status-action-text);
  border: 1px solid var(--rhl-status-action-border);
}

.rhl-status-badge.resolved {
  background: var(--rhl-status-resolved-bg);
  color: var(--rhl-status-resolved-text);
  border: 1px solid var(--rhl-status-resolved-border);
}

/* Case Card Meta Grid */
.rhl-case-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rhl-slate-100);
  border-bottom: 1px solid var(--rhl-slate-100);
  margin-bottom: 18px;
}

.rhl-case-meta-item {
  display: flex;
  flex-direction: column;
}

.rhl-case-meta-label {
  font-size: 0.75rem;
  color: var(--rhl-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 2px;
}

.rhl-case-meta-val {
  font-size: 0.95rem;
  color: var(--rhl-slate-800);
  font-weight: 600;
}

.rhl-case-meta-val.amount {
  font-family: var(--rhl-font-mono);
  color: var(--rhl-navy-900);
}

/* Notice & Updates Banner */
.rhl-case-notice-box {
  background: var(--rhl-slate-50);
  border-left: 3px solid var(--rhl-navy-900);
  padding: 14px 18px;
  border-radius: 0 var(--rhl-radius-sm) var(--rhl-radius-sm) 0;
  margin-bottom: 16px;
}

.rhl-notice-header {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rhl-notice-text {
  font-size: 0.9rem;
  color: var(--rhl-slate-700);
  margin: 0 0 6px 0;
  line-height: 1.5;
}

.rhl-next-step-text {
  font-size: 0.825rem;
  color: var(--rhl-slate-500);
  margin: 0;
}

.rhl-action-required-alert {
  background: var(--rhl-status-action-bg);
  border: 1px solid var(--rhl-status-action-border);
  border-left: 4px solid var(--rhl-status-action-text);
  color: var(--rhl-status-action-text);
  padding: 12px 16px;
  border-radius: var(--rhl-radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rhl-action-required-alert strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.rhl-action-required-alert p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Case Card Footer Actions */
.rhl-case-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.rhl-btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rhl-navy-900);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--rhl-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rhl-btn-view-details:hover {
  background: var(--rhl-navy-700);
  color: #ffffff;
  transform: translateX(2px);
}

/* Empty State Component */
.rhl-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--rhl-slate-50);
  border: 1px dashed var(--rhl-slate-300);
  border-radius: var(--rhl-radius-lg);
  margin: 12px 0;
}

.rhl-empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: var(--rhl-radius-full);
  background: #ffffff;
  color: var(--rhl-navy-900);
  border: 1px solid var(--rhl-slate-200);
  box-shadow: var(--rhl-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rhl-empty-state h3 {
  font-family: var(--rhl-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin: 0 0 8px 0;
}

.rhl-empty-state p {
  font-size: 0.95rem;
  color: var(--rhl-slate-500);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.rhl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rhl-navy-900);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--rhl-radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--rhl-shadow-sm);
}

.rhl-btn-primary:hover {
  background: var(--rhl-navy-700);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--rhl-shadow-md);
  transform: translateY(-1px);
}

/* Skeleton Loading Shimmer */
.rhl-skeleton-card {
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-md);
  padding: 24px;
  margin-bottom: 18px;
  background: #ffffff;
}

.rhl-skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: rhl-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

@keyframes rhl-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Slide-Over Drawer / Case Detail Modal */
.rhl-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 43, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.rhl-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.rhl-drawer-panel {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  height: 100%;
  overflow-y: auto;
  box-shadow: var(--rhl-shadow-xl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.rhl-drawer-backdrop.active .rhl-drawer-panel {
  transform: translateX(0);
}

.rhl-drawer-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--rhl-slate-200);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.rhl-drawer-title-group h3 {
  font-family: var(--rhl-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin: 0 0 4px 0;
}

.rhl-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--rhl-slate-400);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--rhl-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rhl-drawer-close:hover {
  background: var(--rhl-slate-100);
  color: var(--rhl-slate-800);
}

.rhl-drawer-content {
  padding: 24px;
  flex: 1;
}

/* 4-Stage Progress Stepper */
.rhl-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 32px;
  padding: 0 8px;
}

.rhl-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: var(--rhl-slate-200);
  z-index: 1;
}

.rhl-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 25%;
}

.rhl-step-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--rhl-radius-full);
  background: #ffffff;
  border: 2px solid var(--rhl-slate-300);
  color: var(--rhl-slate-400);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.25s ease;
}

.rhl-step-item.completed .rhl-step-circle {
  background: var(--rhl-navy-900);
  border-color: var(--rhl-navy-900);
  color: #ffffff;
}

.rhl-step-item.active .rhl-step-circle {
  background: #ffffff;
  border-color: var(--rhl-gold-500);
  color: var(--rhl-gold-600);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.rhl-step-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--rhl-slate-500);
  line-height: 1.25;
}

.rhl-step-item.active .rhl-step-label,
.rhl-step-item.completed .rhl-step-label {
  color: var(--rhl-navy-900);
  font-weight: 700;
}

/* Detail Timeline */
.rhl-timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--rhl-slate-200);
  margin: 18px 0 24px 8px;
}

.rhl-timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.rhl-timeline-item:last-child {
  margin-bottom: 0;
}

.rhl-timeline-dot {
  position: absolute;
  left: -31px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: var(--rhl-radius-full);
  background: var(--rhl-navy-900);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--rhl-slate-300);
}

.rhl-timeline-date {
  font-size: 0.775rem;
  color: var(--rhl-slate-400);
  margin-bottom: 4px;
  font-family: var(--rhl-font-mono);
}

.rhl-timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rhl-slate-800);
  margin-bottom: 4px;
}

.rhl-timeline-body {
  font-size: 0.875rem;
  color: var(--rhl-slate-600);
  line-height: 1.5;
  margin: 0;
}

/* Profile Form Section */
.rhl-profile-card {
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-lg);
  padding: 30px;
  box-shadow: var(--rhl-shadow-sm);
}

.rhl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.rhl-form-group {
  margin-bottom: 18px;
}

.rhl-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rhl-slate-700);
  margin-bottom: 6px;
}

.rhl-form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rhl-slate-300);
  border-radius: var(--rhl-radius-sm);
  font-size: 0.95rem;
  color: var(--rhl-slate-800);
  background: #ffffff;
  transition: all 0.2s ease;
}

.rhl-form-control:focus {
  outline: none;
  border-color: var(--rhl-navy-900);
  box-shadow: 0 0 0 3px rgba(10, 10, 82, 0.12);
}

.rhl-form-control:disabled,
.rhl-form-control[readonly] {
  background: var(--rhl-slate-100);
  color: var(--rhl-slate-500);
  cursor: not-allowed;
}

/* Toast Notifications */
.rhl-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--rhl-navy-950);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--rhl-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--rhl-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.rhl-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.rhl-toast .rhl-icon {
  color: var(--rhl-gold-500);
}

/* Admin Case Table & Specifics */
.rhl-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-md);
  margin-bottom: 20px;
}

.rhl-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.rhl-admin-table th {
  background: var(--rhl-slate-100);
  color: var(--rhl-slate-700);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rhl-slate-200);
  white-space: nowrap;
}

.rhl-admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rhl-slate-100);
  vertical-align: middle;
}

.rhl-admin-table tr:hover td {
  background: var(--rhl-navy-50);
}

.rhl-admin-table tr.selected td {
  background: var(--rhl-slate-100);
  border-left: 3px solid var(--rhl-navy-900);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .rhl-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rhl-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .rhl-portal-shell {
    padding-top: 110px;
  }
  .rhl-kpi-grid {
    grid-template-columns: 1fr;
  }
  .rhl-wallet-card {
    padding: 24px;
  }
  .rhl-wallet-amount {
    font-size: 2.1rem;
  }
  .rhl-stepper {
    flex-wrap: wrap;
    gap: 12px;
  }
  .rhl-stepper::before {
    display: none;
  }
  .rhl-step-item {
    width: 48%;
    flex-direction: row;
    gap: 10px;
    text-align: left;
  }
  .rhl-step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhl-pulse-dot {
    animation: none !important;
  }
  .rhl-skeleton-line {
    animation: none !important;
  }
  .rhl-drawer-panel {
    transition: none !important;
  }
}

/* ==========================================================================
   Modern Legal Client Portal Layout (Sidebar + Top Header + 2-Column Grid)
   ========================================================================== */

.rhl-portal-app {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Fixed Navy Sidebar */
.rhl-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #0b1f3a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.rhl-sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rhl-sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.rhl-sidebar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rhl-sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.rhl-sidebar-brand-name {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.rhl-sidebar-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.rhl-sidebar-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 4px;
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 600;
}

.rhl-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rhl-nav-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 12px 12px 6px;
}

.rhl-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.18s ease;
  min-height: 44px;
}

.rhl-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-decoration: none;
}

.rhl-nav-link.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.rhl-nav-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rhl-nav-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.rhl-nav-link.active .rhl-nav-badge {
  background: #ffffff;
  color: #2563eb;
}

.rhl-sidebar-footer {
  padding: 16px 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.rhl-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rhl-sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rhl-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.rhl-sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.rhl-sidebar-user-email {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.rhl-sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 44px;
}

.rhl-sidebar-logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Mobile Sidebar Backdrop */
.rhl-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1035;
}

.rhl-sidebar-backdrop.active {
  display: block;
}

/* Top Header */
.rhl-top-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 260px;
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1030;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.rhl-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 440px;
}

.rhl-menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
}

.rhl-header-search {
  position: relative;
  width: 100%;
}

.rhl-header-search .rhl-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.rhl-header-search input {
  width: 100%;
  height: 42px;
  padding: 8px 14px 8px 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  font-size: 0.88rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.rhl-header-search input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.rhl-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rhl-sra-badge-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0369a1;
}

.rhl-sra-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.rhl-notif-btn {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rhl-notif-btn:hover {
  background: #ffffff;
  color: #2563eb;
  border-color: #cbd5e1;
}

.rhl-notif-badge-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
}

.rhl-header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  min-height: 42px;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.rhl-header-action-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rhl-profile-menu {
  position: relative;
  flex-shrink: 0;
}

.rhl-profile-menu-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rhl-profile-menu-toggle:hover,
.rhl-profile-menu-toggle[aria-expanded="true"] {
  background: #ffffff;
  color: var(--rhl-navy-900);
  border-color: #cbd5e1;
}

.rhl-profile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1050;
  width: min(280px, calc(100vw - 24px));
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-md);
  box-shadow: var(--rhl-shadow-lg);
}

.rhl-profile-menu-panel[hidden] {
  display: none;
}

.rhl-profile-menu-identity {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rhl-slate-200);
}

.rhl-profile-menu-name {
  color: var(--rhl-slate-900);
  font-weight: 700;
}

.rhl-profile-menu-email {
  color: var(--rhl-slate-500);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.rhl-profile-menu-link,
.rhl-profile-menu-signout {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--rhl-radius-sm);
  background: transparent;
  color: var(--rhl-slate-700);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.rhl-profile-menu-link:hover,
.rhl-profile-menu-signout:hover {
  background: var(--rhl-slate-50);
  color: var(--rhl-navy-900);
  text-decoration: none;
}

.rhl-profile-menu-signout {
  color: var(--rhl-status-action-text);
  cursor: pointer;
}

.rhl-profile-menu-toggle:focus-visible,
.rhl-profile-menu-link:focus-visible,
.rhl-profile-menu-signout:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

#rhlSupportWidget .rhl-help-contact-item,
#rhlSupportWidget .rhl-help-actions a:not(:first-child) {
  display: none;
}

/* Main Dashboard Body */
.rhl-dashboard-main {
  margin-left: 260px;
  flex: 1;
  padding: 94px 32px 60px;
  min-height: 100vh;
  background: #f8fafc;
  width: calc(100% - 260px);
}

.rhl-dashboard-container {
  max-width: 1260px;
  margin: 0 auto;
}

/* Welcome Hero Banner */
.rhl-hero-banner {
  background: linear-gradient(135deg, #0b1f3a 0%, #0f2744 60%, #1e3a8a 100%);
  border-radius: 16px;
  padding: 30px 34px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: 0 10px 25px -5px rgba(11, 31, 58, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rhl-hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.rhl-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.rhl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e0e7ff;
  margin-bottom: 12px;
}

.rhl-hero-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Noto Serif', Georgia, serif;
  margin: 0 0 10px;
  color: #ffffff;
  line-height: 1.25;
}

.rhl-hero-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.55;
}

/* 4 Summary Cards Grid */
.rhl-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.rhl-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rhl-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.rhl-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rhl-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rhl-summary-icon.green { background: #ecfdf5; color: #10b981; }
.rhl-summary-icon.blue { background: #eff6ff; color: #2563eb; }
.rhl-summary-icon.amber { background: #fef3c7; color: #f59e0b; }
.rhl-summary-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.rhl-summary-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.rhl-summary-tag.green { background: #dcfce7; color: #15803d; }
.rhl-summary-tag.blue { background: #dbeafe; color: #1e40af; }
.rhl-summary-tag.amber { background: #fef3c7; color: #92400e; }
.rhl-summary-tag.purple { background: #ede9fe; color: #6b21a8; }

.rhl-summary-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.rhl-summary-val {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 4px;
}

.rhl-summary-val[data-summary-withdrawal] {
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.rhl-summary-caption {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

/* 2-Column Responsive Dashboard Layout */
.rhl-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
  align-items: start;
}

.rhl-content-primary {
  min-width: 0;
}

.rhl-content-secondary {
  min-width: 0;
}

/* Section Cards */
.rhl-panel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
  overflow: hidden;
}

.rhl-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.rhl-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rhl-panel-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  margin: 2px 0 0;
}

.rhl-panel-body {
  padding: 24px;
}

/* 4-Stage Progress Stepper */
.rhl-progress-tracker {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px;
  margin: 20px 0;
}

.rhl-stepper-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}

.rhl-stepper-node {
  text-align: center;
  position: relative;
}

.rhl-stepper-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #cbd5e1;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.rhl-stepper-node.active .rhl-stepper-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.rhl-stepper-node.completed .rhl-stepper-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.rhl-stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  display: block;
}

.rhl-stepper-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

/* Four Quick Actions Grid */
.rhl-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rhl-action-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
  min-height: 84px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.rhl-action-card-item:hover {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0f172a;
}

.rhl-action-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  transition: all 0.2s ease;
}

.rhl-action-card-item:hover .rhl-action-card-icon {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.rhl-action-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.rhl-action-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Secondary Panels */
.rhl-side-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.rhl-side-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rhl-help-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.rhl-help-contact-item:last-child {
  border-bottom: none;
}

.rhl-help-icon {
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.rhl-help-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  display: block;
}

.rhl-help-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.rhl-help-val a {
  color: #0f172a;
  text-decoration: none;
}

.rhl-help-val a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.rhl-help-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.rhl-btn-help-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0b1f3a;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.18s ease;
}

.rhl-btn-help-primary:hover {
  background: #1e3a8a;
  color: #ffffff;
  text-decoration: none;
}

.rhl-btn-help-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.18s ease;
}

.rhl-btn-help-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  text-decoration: none;
}

/* Recent Activity Feed */
.rhl-activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.rhl-activity-row {
  display: flex;
  gap: 12px;
  position: relative;
}

.rhl-activity-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 13px;
  bottom: -14px;
  width: 2px;
  background: #e2e8f0;
}

.rhl-activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.rhl-activity-details {
  flex: 1;
}

.rhl-activity-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.rhl-activity-meta {
  font-size: 0.74rem;
  color: #64748b;
  margin: 2px 0 0;
}

/* Modal Dialog System */
.rhl-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1060;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rhl-modal-backdrop.active {
  display: flex;
}

.rhl-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.rhl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rhl-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rhl-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.rhl-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* =====================================================================
   OPay-Inspired Mobile-First Layout & Component Hierarchy
   ===================================================================== */

.rhl-executive-cluster {
  margin-bottom: 20px;
}

/* A. Primary Recovered-Funds Card */
.rhl-primary-funds-card {
  background: linear-gradient(135deg, #06062b 0%, #0a0a52 55%, #121268 100%);
  border-radius: var(--rhl-radius-lg, 16px);
  padding: 22px 24px;
  color: #ffffff;
  box-shadow: 0 12px 28px -4px rgba(6, 6, 43, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.rhl-primary-funds-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.rhl-funds-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rhl-funds-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rhl-funds-label {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.rhl-funds-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
  letter-spacing: 0.02em;
}

.rhl-funds-status-badge.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

.rhl-funds-amount-row {
  margin-bottom: 14px;
}

.rhl-funds-amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--rhl-font-sans);
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #ffffff;
  margin-bottom: 6px;
}

.rhl-funds-subtitle {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rhl-funds-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.rhl-funds-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #d4af37;
  color: #06062b;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  min-height: 44px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.rhl-funds-cta-btn:hover {
  background: #e5c358;
  color: #06062b;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.rhl-funds-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.rhl-funds-cta-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.rhl-funds-cta-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.rhl-funds-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.rhl-funds-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.rhl-funds-secondary-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.rhl-funds-secondary-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.rhl-funds-secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* B. Latest Case Update Strip */
.rhl-case-update-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  color: inherit;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--rhl-shadow-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 14px;
  min-height: 46px;
  width: 100%;
  text-align: left;
}

.rhl-case-update-strip:hover {
  border-color: var(--rhl-slate-300);
  background: #f8fafc;
  box-shadow: var(--rhl-shadow-sm);
}

.rhl-case-update-strip:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.rhl-update-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.rhl-update-strip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rhl-update-strip-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rhl-slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhl-update-strip-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--rhl-navy-50);
  color: var(--rhl-navy-900);
  flex-shrink: 0;
}

/* C. Four Quick Actions Row */
.rhl-quick-shortcuts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
}

.rhl-quick-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: 14px;
  padding: 10px 4px 8px;
  text-decoration: none;
  color: var(--rhl-slate-700);
  transition: all 0.2s ease;
  box-shadow: var(--rhl-shadow-xs);
  cursor: pointer;
  min-height: 72px;
  min-width: 44px;
  user-select: none;
}

.rhl-quick-shortcut-item:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: var(--rhl-shadow-sm);
  text-decoration: none;
  color: var(--rhl-navy-900);
}

.rhl-shortcut-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rhl-navy-50);
  color: var(--rhl-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.rhl-quick-shortcut-item:hover .rhl-shortcut-icon-wrap {
  background: var(--rhl-navy-900);
  color: #ffffff;
}

.rhl-shortcut-count-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.rhl-shortcut-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rhl-slate-700);
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

/* D. Information Banner */
.rhl-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  gap: 12px;
}

.rhl-info-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rhl-info-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rhl-info-banner-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin-bottom: 2px;
  line-height: 1.2;
}

.rhl-info-banner-desc {
  font-size: 0.785rem;
  color: var(--rhl-slate-600);
  margin: 0;
  line-height: 1.3;
}

.rhl-info-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rhl-navy-900);
  color: #ffffff;
  font-size: 0.785rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: all 0.2s ease;
  border: none;
  flex-shrink: 0;
}

.rhl-info-banner-btn:hover {
  background: var(--rhl-navy-700);
  color: #ffffff;
  text-decoration: none;
}

/* E. Secondary Service Grid (8 Feature Shortcuts) */
.rhl-service-grid-section {
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-lg, 16px);
  padding: 16px 14px;
  margin-bottom: 20px;
  box-shadow: var(--rhl-shadow-xs);
}

.rhl-service-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.rhl-service-grid-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rhl-slate-500);
  margin: 0;
}

.rhl-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rhl-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--rhl-slate-700);
  min-height: 68px;
  min-width: 44px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

button.rhl-service-item {
  font: inherit;
  width: 100%;
}

.rhl-service-item:hover {
  background: #f8fafc;
  border-color: var(--rhl-slate-200);
  color: var(--rhl-navy-900);
  text-decoration: none;
}

.rhl-service-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.rhl-service-icon-wrap.navy    { background: #f0f2fb; color: #0a0a52; }
.rhl-service-icon-wrap.blue    { background: #eff6ff; color: #2563eb; }
.rhl-service-icon-wrap.teal    { background: #f0fdfa; color: #0d9488; }
.rhl-service-icon-wrap.amber   { background: #fffbeb; color: #d97706; }
.rhl-service-icon-wrap.gold    { background: #fef7db; color: #b89628; }
.rhl-service-icon-wrap.indigo  { background: #eef2ff; color: #4f46e5; }
.rhl-service-icon-wrap.emerald { background: #ecfdf5; color: #059669; }
.rhl-service-icon-wrap.slate   { background: #f1f5f9; color: #475569; }

.rhl-service-item:hover .rhl-service-icon-wrap {
  transform: scale(1.08);
}

.rhl-service-label {
  font-size: 0.725rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  color: var(--rhl-slate-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* F. Restrained Bottom Regulatory Banner */
.rhl-bottom-regulatory-banner {
  background: #ffffff;
  border: 1px solid var(--rhl-slate-200);
  border-radius: var(--rhl-radius-lg, 16px);
  padding: 18px 22px;
  margin-top: 24px;
  box-shadow: var(--rhl-shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.rhl-reg-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 740px;
}

.rhl-reg-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--rhl-navy-50);
  color: var(--rhl-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rhl-reg-banner-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rhl-navy-900);
  margin-bottom: 3px;
}

.rhl-reg-banner-text {
  font-size: 0.785rem;
  color: var(--rhl-slate-600);
  line-height: 1.45;
  margin: 0;
}

.rhl-reg-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* =====================================================================
   Responsive Media Queries
   ===================================================================== */
@media (max-width: 991.98px) {
  body.rhl-portal-app {
    padding-top: 0;
  }

  .rhl-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .rhl-sidebar.open {
    transform: translateX(0);
  }
  .rhl-top-header {
    left: 0;
    padding: 0 12px;
    height: 64px;
    z-index: 1030;
  }
  .rhl-header-left {
    min-width: 0;
    max-width: none;
    flex-shrink: 0;
  }
  .rhl-header-right {
    gap: 8px;
    flex-shrink: 0;
  }
  .rhl-sra-badge-top {
    display: none;
  }
  .rhl-notif-btn,
  .rhl-profile-menu-toggle {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .rhl-header-action-btn {
    padding-right: 12px;
    padding-left: 12px;
    min-height: 38px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .rhl-menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .rhl-dashboard-main {
    margin-left: 0;
    min-width: 0;
    padding: 82px 14px calc(76px + env(safe-area-inset-bottom));
    width: 100%;
  }
  .rhl-toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 14px;
    left: 14px;
  }
  .rhl-dashboard-container {
    min-width: 0;
  }
  .rhl-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rhl-columns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rhl-hero-banner {
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .rhl-hero-badge,
  .rhl-hero-desc {
    display: none;
  }
  .rhl-hero-title {
    font-size: clamp(1.35rem, 5vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: 0;
  }
  .rhl-executive-cluster {
    margin-bottom: 14px;
  }
  .rhl-primary-funds-card {
    padding: 16px;
    margin-bottom: 10px;
  }
  .rhl-funds-top {
    gap: 8px;
    margin-bottom: 8px;
  }
  .rhl-funds-amount-row {
    margin-bottom: 8px;
  }
  .rhl-funds-amount {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
    overflow-wrap: anywhere;
  }
  .rhl-funds-actions {
    gap: 8px;
    margin-top: 12px;
  }
  .rhl-funds-actions .rhl-funds-cta-btn,
  .rhl-funds-actions .rhl-funds-secondary-btn {
    flex: 1 1 130px;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }
  .rhl-case-update-strip {
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .rhl-update-strip-text {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .rhl-info-banner {
    display: none;
  }
  .rhl-service-grid-section {
    padding: 12px;
    margin-bottom: 16px;
  }
  .rhl-service-grid-header {
    margin-bottom: 8px;
  }
  .rhl-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .rhl-service-item {
    min-width: 0;
    min-height: 68px;
    padding: 7px 2px;
  }
  .rhl-service-label {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }
  .rhl-panel-card {
    margin-bottom: 16px;
  }
  .rhl-panel-header {
    padding: 14px 16px;
  }
  .rhl-panel-body {
    padding: 16px;
  }
  .rhl-side-widget {
    padding: 16px;
    margin-bottom: 16px;
  }
  .rhl-bottom-regulatory-banner {
    padding: 14px 16px;
    margin-top: 16px;
  }
  .rhl-menu-toggle:focus-visible,
  .rhl-mobile-nav-item:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
  }
}

@media (max-width: 575.98px) {
  .rhl-top-header {
    height: 60px;
    padding: 0 10px;
  }
  .rhl-dashboard-main {
    padding: 76px 10px calc(76px + env(safe-area-inset-bottom));
  }
  .rhl-header-right {
    gap: 6px;
  }
  .rhl-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .rhl-notif-btn,
  .rhl-profile-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .rhl-header-action-btn {
    padding: 4px 8px;
    min-height: 34px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .rhl-summary-grid {
    grid-template-columns: 1fr;
  }
  .rhl-quick-actions-grid {
    grid-template-columns: 1fr;
  }
  .rhl-quick-shortcuts-row {
    gap: 6px;
  }
  .rhl-quick-shortcut-item {
    padding: 8px 2px 6px;
    min-height: 66px;
  }
  .rhl-shortcut-icon-wrap {
    width: 34px;
    height: 34px;
  }
  .rhl-shortcut-label {
    font-size: 0.7rem;
  }
  .rhl-service-icon-wrap {
    width: 32px;
    height: 32px;
  }
  .rhl-stepper-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px 8px;
  }
  .rhl-header-search {
    display: none;
  }
  .rhl-reg-banner-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .rhl-reg-banner-actions .rhl-funds-cta-btn,
  .rhl-reg-banner-actions .rhl-funds-secondary-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Persistent mobile destinations without duplicating the desktop sidebar. */
.rhl-mobile-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  .rhl-mobile-bottom-nav {
    position: fixed;
    z-index: 1040;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--rhl-slate-200);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
  }

  .rhl-mobile-nav-item {
    display: flex;
    min-width: 0;
    min-height: 52px;
    padding: 3px 1px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--rhl-slate-500);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
  }

  .rhl-mobile-nav-item span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: clamp(0.6rem, 2.2vw, 0.68rem);
    letter-spacing: -0.01em;
  }

  .rhl-mobile-nav-item .rhl-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .rhl-mobile-nav-item.active,
  .rhl-mobile-nav-item:focus-visible {
    color: var(--rhl-navy-900);
    background: var(--rhl-navy-50);
    outline: none;
  }
}

@media (max-width: 380px) {
  .rhl-header-action-btn {
    padding: 4px 6px;
    font-size: 0.74rem;
  }
  .rhl-mobile-nav-item span {
    font-size: 0.58rem;
  }
}

/* ========================================================================
   Portal Section Tab Navigation
   On mobile (<992px) only the active portal section is shown.
   On desktop all sections remain visible (unchanged layout).
   Controlled by [data-portal-active-section] on .rhl-dashboard-main.
   ======================================================================== */

@media (max-width: 991.98px) {
  /* Hide every section-tagged element by default on mobile */
  [data-portal-section] {
    display: none !important;
  }

  /* Show sections matching the active section */
  .rhl-dashboard-main[data-portal-active-section="dashboard"] [data-portal-section="dashboard"] {
    display: block !important;
  }
  /* Executive cluster uses flex layout */
  .rhl-dashboard-main[data-portal-active-section="dashboard"] .rhl-executive-cluster[data-portal-section="dashboard"] {
    display: flex !important;
    flex-direction: column;
  }

  .rhl-dashboard-main[data-portal-active-section="cases"] [data-portal-section="cases"] {
    display: block !important;
  }

  .rhl-dashboard-main[data-portal-active-section="profile"] [data-portal-section="profile"] {
    display: block !important;
  }

  /* Two-column grid remains structurally intact */
  .rhl-columns-grid {
    display: block !important;
  }

  /* When on cases or profile section, collapse the right sidebar */
  .rhl-dashboard-main[data-portal-active-section="cases"] .rhl-content-secondary,
  .rhl-dashboard-main[data-portal-active-section="profile"] .rhl-content-secondary {
    display: none !important;
  }
}

/* =====================================================================
   SEARCHABLE COUNTRY SELECTOR COMPONENT
   ===================================================================== */
.rhl-country-selector-group {
  position: relative;
}

.rhl-country-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rhl-country-input {
  padding-right: 38px !important;
  cursor: pointer;
  background-color: #ffffff;
}

.rhl-country-dropdown-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #64748b;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.rhl-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rhl-country-dropdown[hidden] {
  display: none !important;
}

.rhl-country-dropdown-search {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 10px;
}

.rhl-country-filter-input {
  font-size: 0.85rem !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
}

.rhl-country-options-container {
  overflow-y: auto;
  max-height: 220px;
  padding: 4px 0;
}

.rhl-country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1e293b;
  transition: background-color 0.15s ease;
}

.rhl-country-option:hover,
.rhl-country-option.focused,
.rhl-country-option[aria-selected="true"] {
  background-color: #f1f5f9;
  color: #0f172a;
}

.rhl-country-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rhl-country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.rhl-country-name {
  font-weight: 500;
}

.rhl-country-meta {
  font-size: 0.75rem;
  color: #64748b;
  font-family: var(--rhl-font-mono, monospace);
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.rhl-country-empty-notice {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

@media (max-width: 575.98px) {
  .rhl-admin-correction-review {
    width: 100%;
    table-layout: fixed;
  }

  .rhl-admin-correction-review thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .rhl-admin-correction-review tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    border-top: 1px solid var(--rhl-slate-200);
  }

  .rhl-admin-correction-review tbody th {
    display: block;
    grid-column: 1 / -1;
    padding: 0.45rem 0 0.25rem;
    border: 0;
    font-size: 0.75rem;
  }

  .rhl-admin-correction-review tbody td {
    display: block;
    min-width: 0;
    padding: 0.25rem 0 0.5rem;
    border: 0;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
  }

  .rhl-admin-correction-review tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--rhl-slate-500);
    font-size: 0.65rem;
    font-weight: 600;
  }
}
