/*
 * RVR Pay Hub — component layer.
 * Restyles Bootstrap 5 (and the legacy SB-Admin / Bootstrap 4 classes still used in
 * the views) to the Figma "RVR Pay Hub" components, so every page picks up the new
 * look without per-page changes. Page rebuilds use the .rvr-* components at the end.
 * Depends on tokens.css. Scoped to the content panel / guest card so the shell is untouched.
 */

/* ------------------------------------------------------------------ base */
.rvr-panel__body,
.rvr-guest__card,
.modal,
.offcanvas:not(.rvr-shell__sidebar) {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
}
.rvr-panel__body h1, .rvr-panel__body .h1,
.rvr-guest__card h1, .rvr-guest__card .h1 {
  font-size: var(--font-size-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.rvr-panel__body h2, .rvr-panel__body .h2 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.rvr-panel__body h3, .rvr-panel__body .h3 { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.rvr-panel__body h4, .rvr-panel__body .h4,
.rvr-panel__body h5, .rvr-panel__body .h5,
.rvr-guest__card h2, .rvr-guest__card h3, .rvr-guest__card h4, .rvr-guest__card h5,
.modal-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
/* Explicit text-style classes win over the element sizes above. */
.rvr-panel__body .type-title-sm { font-size: var(--font-size-body); line-height: 1.6; letter-spacing: -0.01em; }
.rvr-panel__body .type-title { font-size: var(--font-size-title); line-height: 1.25; letter-spacing: -0.012em; }
.rvr-panel__body .type-overline { font-size: var(--font-size-overline); }
.rvr-panel__body h6, .rvr-panel__body .h6 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-overline);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.rvr-panel__body h1, .rvr-panel__body h2, .rvr-panel__body h3,
.rvr-panel__body h4, .rvr-panel__body h5 { color: var(--text-primary); }
/* Headings carried big decorative icons in the old UI; keep them in proportion. */
.rvr-panel__body h1 > i, .rvr-panel__body h2 > i, .rvr-panel__body h3 > i { font-size: 0.85em; }
.rvr-panel__body a:not([class]) { color: var(--text-link); }
.rvr-panel__body a:not([class]):hover { color: var(--accent-default); }
.rvr-panel__body small, .rvr-panel__body .small { font-size: var(--font-size-caption); }
.rvr-panel__body code { color: var(--text-link); background: var(--bg-default); padding: 1px 4px; border-radius: 4px; }
.rvr-panel__body hr { border-color: var(--border-subtle); opacity: 1; }

/* Text colours (BS5 + SB-Admin gray scale) */
.text-muted, .text-secondary, .text-gray-600, .text-gray-500, .text-gray-400 { color: var(--text-secondary) !important; }
.text-gray-800, .text-gray-900, .text-dark { color: var(--text-primary) !important; }
.text-gray-300 { color: var(--text-disabled) !important; }
.text-primary { color: var(--accent-default) !important; }
.text-success { color: var(--success-default) !important; }
.text-danger  { color: var(--error-default) !important; }
.text-warning { color: var(--warning-default) !important; }
.text-info    { color: var(--text-link) !important; }
.text-xs { font-size: var(--font-size-overline) !important; letter-spacing: 0.04em; }
.text-sm { font-size: var(--font-size-caption) !important; }
.font-weight-bold, .fw-bold { font-weight: 600 !important; }
.font-weight-bolder, .fw-bolder { font-weight: 700 !important; }
.text-uppercase.text-xs, .text-xs.font-weight-bold {
  font-family: var(--font-family-display);
  color: var(--text-secondary) !important;
}

/* Surfaces */
.bg-light  { background-color: var(--bg-default) !important; }
.bg-white  { background-color: var(--bg-surface) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--border-subtle) !important; }
.rvr-panel__body .shadow, .rvr-panel__body .shadow-sm, .rvr-panel__body .shadow-lg { box-shadow: none !important; }

/* Bootstrap 4 spacing leftovers still used by older views */
.mr-1 { margin-right: 0.25rem !important; } .mr-2 { margin-right: 0.5rem !important; } .mr-3 { margin-right: 1rem !important; }
.ml-1 { margin-left: 0.25rem !important; }  .ml-2 { margin-left: 0.5rem !important; }  .ml-3 { margin-left: 1rem !important; }
.ml-auto { margin-left: auto !important; } .mr-auto { margin-right: auto !important; }
.form-group { margin-bottom: var(--spacing-md); }

/* ------------------------------------------------------------------ cards */
.card {
  --bs-card-bg: var(--bg-surface);
  --bs-card-border-width: 0;
  --bs-card-border-radius: var(--radius-md);
  --bs-card-inner-border-radius: var(--radius-md);
  --bs-card-cap-bg: var(--bg-surface);
  --bs-card-cap-padding-y: var(--spacing-md);
  --bs-card-cap-padding-x: var(--spacing-lg);
  --bs-card-spacer-y: var(--spacing-lg);
  --bs-card-spacer-x: var(--spacing-lg);
  color: var(--text-primary);
}
.card-header {
  border-bottom: var(--stroke-default) solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}
.card-header > :only-child { flex: 1 1 auto; }
.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6,
.card-header .card-title, .card-title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary) !important;
}
.card-header[class*="bg-"],
.card-header.text-white {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
}
.card-header[class*="bg-"] *, .card-header.text-white * { color: inherit; }
.card-footer {
  background: var(--bg-surface);
  border-top: var(--stroke-default) solid var(--border-subtle);
}
.card-subtitle, .card-text { color: var(--text-secondary); }

/* Coloured stat cards (bg-primary text-white etc.) become KPI cards */
.rvr-panel__body .card.bg-primary, .rvr-panel__body .card.bg-success, .rvr-panel__body .card.bg-info,
.rvr-panel__body .card.bg-warning, .rvr-panel__body .card.bg-danger, .rvr-panel__body .card.bg-secondary,
.rvr-panel__body .card.bg-dark, .rvr-panel__body .card.text-white {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
}
.rvr-panel__body .card.text-white .card-body *:not(.badge):not(.btn) { color: inherit; }
.rvr-panel__body .card.text-white .card-body i.fas,
.rvr-panel__body .card.text-white .card-body i.fa { color: var(--accent-default); opacity: 1; }

/* SB-Admin left-border cards */
.border-left-primary, .border-left-success, .border-left-info, .border-left-warning, .border-left-danger {
  border-left: 0 !important;
  position: relative;
}
.border-left-primary::before, .border-left-success::before, .border-left-info::before,
.border-left-warning::before, .border-left-danger::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--spacing-md);
  bottom: var(--spacing-md);
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.border-left-primary::before { background: var(--accent-default); }
.border-left-success::before { background: var(--success-default); }
.border-left-info::before    { background: var(--text-link); }
.border-left-warning::before { background: #d99a00; }
.border-left-danger::before  { background: var(--error-default); }

/* Legacy metric / stat widgets */
.metric-card, .stat-card {
  background: var(--bg-surface) !important;
  border: 0 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}
.metric-label, .stat-label {
  font-family: var(--font-family-display);
  font-size: var(--font-size-overline) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
}
.metric-value, .stat-value {
  font-family: var(--font-family-display);
  font-size: var(--font-size-title) !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em;
  color: var(--text-primary) !important;
}
.metric-icon {
  background: var(--bg-default) !important;
  color: var(--accent-default) !important;
  border-radius: var(--radius-sm) !important;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --bs-btn-padding-y: 11px;
  --bs-btn-padding-x: 20px;
  --bs-btn-font-family: var(--font-family-body);
  --bs-btn-font-size: var(--font-size-body-sm);
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.2;
  --bs-btn-border-radius: var(--radius-full);
  --bs-btn-focus-box-shadow: 0 0 0 3px rgba(12, 114, 219, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}
.btn > i, .btn > .fas, .btn > .far, .btn > .fa { margin-right: 0 !important; margin-left: 0 !important; }
.btn-sm, .btn-group-sm > .btn {
  --bs-btn-padding-y: 7px;
  --bs-btn-padding-x: 16px;
  --bs-btn-font-size: var(--font-size-body-sm);
  --bs-btn-border-radius: var(--radius-full);
}
.btn-lg, .btn-group-lg > .btn {
  --bs-btn-padding-y: 14px;
  --bs-btn-padding-x: 24px;
  --bs-btn-font-size: var(--font-size-body);
  --bs-btn-border-radius: var(--radius-full);
}
.btn-group > .btn { --bs-btn-border-radius: var(--radius-sm); }
.btn-group > .btn:first-child { border-top-left-radius: var(--radius-full); border-bottom-left-radius: var(--radius-full); }
.btn-group > .btn:last-child { border-top-right-radius: var(--radius-full); border-bottom-right-radius: var(--radius-full); }

.btn-primary {
  --bs-btn-color: var(--text-on-accent);
  --bs-btn-bg: var(--accent-default);
  --bs-btn-border-color: var(--accent-default);
  --bs-btn-hover-color: var(--text-on-accent);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  --bs-btn-disabled-color: var(--text-disabled);
  --bs-btn-disabled-bg: var(--bg-subtle);
  --bs-btn-disabled-border-color: var(--bg-subtle);
  --bs-btn-disabled-opacity: 1;
}
/* Secondary = outlined pill (Figma Button / Secondary) */
.btn-secondary, .btn-light, .btn-outline-secondary, .btn-outline-dark, .btn-outline-light {
  --bs-btn-color: var(--text-primary);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--border-default);
  --bs-btn-hover-color: var(--text-primary);
  --bs-btn-hover-bg: var(--bg-default);
  --bs-btn-hover-border-color: var(--text-secondary);
  --bs-btn-active-color: var(--text-primary);
  --bs-btn-active-bg: var(--bg-subtle);
  --bs-btn-active-border-color: var(--text-secondary);
  --bs-btn-disabled-color: var(--text-disabled);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--border-subtle);
}
.btn-outline-primary, .btn-outline-info {
  --bs-btn-color: var(--text-link);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--accent-default);
  --bs-btn-hover-color: var(--text-on-accent);
  --bs-btn-hover-bg: var(--accent-default);
  --bs-btn-hover-border-color: var(--accent-default);
  --bs-btn-active-color: var(--text-on-accent);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
}
.btn-info {
  --bs-btn-color: var(--text-link);
  --bs-btn-bg: #b8d9ff;
  --bs-btn-border-color: #b8d9ff;
  --bs-btn-hover-color: var(--text-link);
  --bs-btn-hover-bg: #a3cdfc;
  --bs-btn-hover-border-color: #a3cdfc;
  --bs-btn-active-color: var(--text-link);
  --bs-btn-active-bg: #a3cdfc;
  --bs-btn-active-border-color: #a3cdfc;
}
.btn-success {
  --bs-btn-color: var(--text-on-accent);
  --bs-btn-bg: var(--success-default);
  --bs-btn-border-color: var(--success-default);
  --bs-btn-hover-color: var(--text-on-accent);
  --bs-btn-hover-bg: #0c6439;
  --bs-btn-hover-border-color: #0c6439;
  --bs-btn-active-bg: #0c6439;
  --bs-btn-active-border-color: #0c6439;
}
.btn-outline-success {
  --bs-btn-color: var(--success-default);
  --bs-btn-border-color: var(--success-default);
  --bs-btn-hover-color: var(--text-on-accent);
  --bs-btn-hover-bg: var(--success-default);
  --bs-btn-hover-border-color: var(--success-default);
}
.btn-danger {
  --bs-btn-color: var(--text-on-accent);
  --bs-btn-bg: var(--error-default);
  --bs-btn-border-color: var(--error-default);
  --bs-btn-hover-color: var(--text-on-accent);
  --bs-btn-hover-bg: #a3132f;
  --bs-btn-hover-border-color: #a3132f;
  --bs-btn-active-bg: #a3132f;
  --bs-btn-active-border-color: #a3132f;
}
.btn-outline-danger {
  --bs-btn-color: var(--error-default);
  --bs-btn-border-color: var(--error-default);
  --bs-btn-hover-color: var(--text-on-accent);
  --bs-btn-hover-bg: var(--error-default);
  --bs-btn-hover-border-color: var(--error-default);
}
.btn-warning {
  --bs-btn-color: var(--warning-default);
  --bs-btn-bg: #ffd98a;
  --bs-btn-border-color: #ffd98a;
  --bs-btn-hover-color: var(--warning-default);
  --bs-btn-hover-bg: #ffcf66;
  --bs-btn-hover-border-color: #ffcf66;
  --bs-btn-active-color: var(--warning-default);
  --bs-btn-active-bg: #ffcf66;
  --bs-btn-active-border-color: #ffcf66;
}
.btn-outline-warning {
  --bs-btn-color: var(--warning-default);
  --bs-btn-border-color: #e0b54a;
  --bs-btn-hover-color: var(--warning-default);
  --bs-btn-hover-bg: #ffd98a;
  --bs-btn-hover-border-color: #ffd98a;
}
.btn-dark {
  --bs-btn-color: var(--text-on-inverse);
  --bs-btn-bg: var(--bg-inverse);
  --bs-btn-border-color: var(--bg-inverse);
  --bs-btn-hover-bg: var(--text-primary);
  --bs-btn-hover-border-color: var(--text-primary);
}
/* Ghost (Figma Button / Ghost) */
.btn-link {
  --bs-btn-color: var(--text-link);
  --bs-btn-hover-color: var(--accent-default);
  --bs-btn-active-color: var(--accent-default);
  text-decoration: none;
}
.btn-link:hover { background: var(--bg-default); }
.btn-close { border-radius: var(--radius-md); }

/* ------------------------------------------------------------------ badges / tags */
.badge {
  --bs-badge-padding-x: var(--spacing-sm);
  --bs-badge-padding-y: 5px;
  --bs-badge-font-size: var(--font-size-caption);
  --bs-badge-font-weight: 600;
  --bs-badge-border-radius: var(--radius-full);
  font-family: var(--font-family-body);
  line-height: 1.2;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  vertical-align: middle;
}
.badge.bg-success, .badge.badge-success, .badge.text-bg-success { background: #b0f2cb !important; color: var(--text-highlight) !important; }
.badge.bg-warning, .badge.badge-warning, .badge.text-bg-warning { background: #ffd98a !important; color: var(--warning-default) !important; }
.badge.bg-danger,  .badge.badge-danger,  .badge.text-bg-danger  { background: #ffb3bf !important; color: var(--error-default) !important; }
.badge.bg-primary, .badge.badge-primary, .badge.text-bg-primary,
.badge.bg-info,    .badge.badge-info,    .badge.text-bg-info    { background: #b8d9ff !important; color: var(--text-link) !important; }
.badge.bg-secondary, .badge.badge-secondary, .badge.text-bg-secondary,
.badge.bg-light, .badge.badge-light, .badge.text-bg-light {
  background: var(--bg-subtle) !important;
  color: var(--text-secondary) !important;
}
.badge.bg-dark, .badge.text-bg-dark { background: var(--bg-inverse) !important; color: var(--text-on-inverse) !important; }
.badge.rounded-pill { border-radius: var(--radius-full); }

/* ------------------------------------------------------------------ tables */
.table {
  --bs-table-color: var(--text-secondary);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border-subtle);
  --bs-table-striped-bg: rgba(238, 243, 255, 0.6);
  --bs-table-striped-color: var(--text-secondary);
  --bs-table-hover-bg: var(--bg-default);
  --bs-table-hover-color: var(--text-primary);
  --bs-table-active-bg: var(--bg-default);
  margin-bottom: 0;
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  vertical-align: middle;
}
.table > :not(caption) > * > * {
  padding: var(--spacing-md) var(--spacing-md);
  border-bottom-color: var(--border-subtle);
}
.table > :not(caption) > * > *:first-child { padding-left: var(--spacing-lg); }
.table > :not(caption) > * > *:last-child  { padding-right: var(--spacing-lg); }
.table-sm > :not(caption) > * > * { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.table thead th,
.table > thead > tr > th,
.table thead.table-light th, .table thead.table-dark th, .table .thead-light th, .table .thead-dark th {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--bg-subtle) !important;
  color: var(--text-secondary) !important;
  border-bottom: var(--stroke-default) solid var(--border-subtle);
  font-family: var(--font-family-display);
  font-size: var(--font-size-overline);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody td strong, .table tbody td b, .table tbody td a:not(.btn) { color: var(--text-primary); font-weight: 600; }
.table tbody td a:not(.btn):hover { color: var(--text-link); }
.table-bordered > :not(caption) > * { border-width: 0; }
.table-bordered > :not(caption) > * > * { border-width: 0 0 var(--stroke-default); }
.table-dark { --bs-table-color: var(--text-secondary); --bs-table-bg: transparent; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
/* Tables sitting directly inside a card run edge to edge */
.card > .table-responsive, .card > .table, .card-body > .table-responsive:only-child { margin: 0; }
.card-body:has(> .table-responsive:only-child), .card-body:has(> .table:only-child) { padding: 0; }
.card-body:has(> .table-responsive:only-child) .table-responsive { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.table-responsive { border-radius: inherit; }

/* ------------------------------------------------------------------ forms */
.form-label, .col-form-label, :where(.rvr-panel__body) label:where(:not(.form-check-label, .btn, .rvr-inline-label)):where(:not(.rvr-card__foot label)) {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-label .text-danger, label .text-danger, .required::after { color: var(--error-default) !important; }
.form-text { font-size: var(--font-size-body-sm); color: var(--text-secondary); margin-top: var(--spacing-xs); }
.form-control, .form-select {
  min-height: 40px;
  padding: 10px 12px;
  border: var(--stroke-default) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  line-height: 1.1;
  box-shadow: none;
}
.form-select { padding-right: 40px; background-position: right 12px center; background-size: 16px 12px; }
textarea.form-control { line-height: 1.55; min-height: 88px; }
.form-control-sm, .form-select-sm { min-height: 32px; padding: 6px 10px; font-size: var(--font-size-caption); }
.form-select-sm { padding-right: 32px; }
.form-control-lg, .form-select-lg { min-height: 52px; font-size: var(--font-size-body); }
.form-control::placeholder { color: var(--text-disabled); opacity: 1; }
.form-control:focus, .form-select:focus {
  border-color: var(--accent-default);
  box-shadow: 0 0 0 3px rgba(12, 114, 219, 0.18);
}
.form-control:disabled, .form-control[readonly], .form-select:disabled {
  background-color: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--error-default); }
.invalid-feedback { color: var(--error-default); font-size: var(--font-size-body-sm); }
.form-control-plaintext { font-size: var(--font-size-body-sm); color: var(--text-primary); }
.input-group-text {
  background: var(--bg-default);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--font-size-body-sm);
}
.input-group > .form-control, .input-group > .form-select { min-height: 40px; }
.input-group-sm > .form-control, .input-group-sm > .form-select { min-height: 32px; }
.input-group > .btn { --bs-btn-border-radius: var(--radius-sm); }
.form-check-input {
  border-color: var(--border-default);
}
.form-check-input[type=checkbox]:not([role=switch]) { width: 20px; height: 20px; border-radius: var(--radius-sm); }
.form-check-input[type=radio] { width: 16px; height: 16px; }
.form-switch .form-check-input { width: 40px; height: 24px; border-radius: var(--radius-full); }
.form-check-input:checked { background-color: var(--accent-default); border-color: var(--accent-default); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(12, 114, 219, 0.18); border-color: var(--accent-default); }
.form-check-label { color: var(--text-primary); font-weight: 500; }
.form-switch .form-check-input { width: 2.25em; }

/* ------------------------------------------------------------------ alerts / notes */
.alert {
  --bs-alert-padding-x: var(--spacing-md);
  --bs-alert-padding-y: 12px;
  --bs-alert-border-radius: var(--radius-md);
  --bs-alert-border-color: transparent;
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  line-height: 1.55;
}
.alert-info, .alert-secondary, .alert-light { --bs-alert-bg: var(--bg-subtle); --bs-alert-color: var(--text-secondary); }
.alert-primary { --bs-alert-bg: #b8d9ff; --bs-alert-color: var(--text-link); }
.alert-success { --bs-alert-bg: #b0f2cb; --bs-alert-color: var(--text-highlight); }
.alert-warning { --bs-alert-bg: #ffd98a; --bs-alert-color: var(--warning-default); }
.alert-danger  { --bs-alert-bg: #ffb3bf; --bs-alert-color: #8d0f2a; }
.alert strong, .alert .alert-heading, .alert h4, .alert h5, .alert h6 { color: inherit !important; }
.alert .alert-link { color: inherit; }
.alert hr { border-color: currentColor; opacity: 0.2; }

/* ------------------------------------------------------------------ navigation in content */
.breadcrumb {
  --bs-breadcrumb-font-size: var(--font-size-caption);
  --bs-breadcrumb-divider-color: var(--text-disabled);
  --bs-breadcrumb-item-active-color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  background: transparent;
  padding: 0;
}
.breadcrumb a { text-decoration: none; color: var(--text-link); }
/* Tabs: underline style on the card/panel surface */
.nav-tabs {
  --bs-nav-tabs-border-color: var(--border-subtle);
  --bs-nav-tabs-link-active-color: var(--text-primary);
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-tabs-link-active-border-color: transparent;
  --bs-nav-tabs-link-hover-border-color: transparent;
  gap: var(--spacing-lg);
  border-bottom: var(--stroke-default) solid var(--border-subtle);
}
.nav-tabs .nav-link {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--font-size-body-sm);
  background: transparent;
}
.nav-tabs .nav-link:hover { color: var(--text-primary); }
.nav-tabs .nav-link.active { color: var(--text-primary); border-bottom-color: var(--accent-default); }
/* Pills: segmented control (Figma "Filter / Status") */
.nav-pills {
  --bs-nav-pills-border-radius: var(--radius-full);
  --bs-nav-pills-link-active-color: var(--text-primary);
  --bs-nav-pills-link-active-bg: var(--bg-surface);
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
}
.nav-pills .nav-link {
  padding: var(--spacing-sm) 12px;
  color: var(--text-secondary);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.2;
}
.nav-pills .nav-link:hover { color: var(--text-primary); }

/* Pagination (Figma pager) */
.pagination {
  --bs-pagination-padding-x: var(--spacing-sm);
  --bs-pagination-padding-y: 0;
  --bs-pagination-font-size: var(--font-size-body-sm);
  --bs-pagination-color: var(--text-secondary);
  --bs-pagination-bg: var(--bg-surface);
  --bs-pagination-border-color: var(--border-subtle);
  --bs-pagination-border-radius: var(--radius-sm);
  --bs-pagination-hover-color: var(--text-primary);
  --bs-pagination-hover-bg: var(--bg-default);
  --bs-pagination-hover-border-color: var(--border-subtle);
  --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(12, 114, 219, 0.18);
  --bs-pagination-active-color: var(--text-on-accent);
  --bs-pagination-active-bg: var(--accent-default);
  --bs-pagination-active-border-color: var(--accent-default);
  --bs-pagination-disabled-color: var(--text-disabled);
  --bs-pagination-disabled-bg: var(--bg-surface);
  --bs-pagination-disabled-border-color: var(--border-subtle);
  gap: var(--spacing-xs);
  margin-bottom: 0;
}
.page-link {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
}
.page-item:not(:first-child) .page-link { margin-left: 0; }

/* Dropdowns (Figma Menu / Row actions) */
.dropdown-menu {
  --bs-dropdown-border-color: transparent;
  --bs-dropdown-border-radius: var(--radius-md);
  --bs-dropdown-padding-x: var(--spacing-xs);
  --bs-dropdown-padding-y: var(--spacing-xs);
  --bs-dropdown-font-size: var(--font-size-body-sm);
  --bs-dropdown-link-color: var(--text-primary);
  --bs-dropdown-link-hover-bg: var(--bg-default);
  --bs-dropdown-link-hover-color: var(--text-primary);
  --bs-dropdown-link-active-bg: var(--bg-subtle);
  --bs-dropdown-link-active-color: var(--text-primary);
  --bs-dropdown-item-padding-x: 12px;
  --bs-dropdown-item-padding-y: var(--spacing-sm);
  --bs-dropdown-divider-bg: var(--border-subtle);
  --bs-dropdown-header-color: var(--text-secondary);
  border: var(--stroke-default) solid var(--border-subtle);
  box-shadow: 0 2px 24px -6px rgba(11, 23, 56, 0.06), 0 0 6px -1px rgba(11, 23, 56, 0.03), 0 8px 24px -6px rgba(11, 23, 56, 0.12);
  font-weight: 500;
}
.dropdown-item { border-radius: var(--radius-sm); display: flex; align-items: center; gap: var(--spacing-sm); }
.dropdown-item.text-danger { color: var(--error-default) !important; }
.dropdown-divider { margin: var(--spacing-xs) 0; }

/* Modals (Figma drawer head/footer) */
.modal {
  --bs-modal-border-radius: var(--radius-lg);
  --bs-modal-inner-border-radius: var(--radius-lg);
  --bs-modal-border-width: 0;
  --bs-modal-header-padding: var(--spacing-lg);
  --bs-modal-padding: var(--spacing-lg);
  --bs-modal-header-border-color: var(--border-subtle);
  --bs-modal-footer-border-color: var(--border-subtle);
  --bs-modal-box-shadow: 0 2px 24px -6px rgba(11, 23, 56, 0.06), 0 0 6px -1px rgba(11, 23, 56, 0.03);
}
.modal-header[class*="bg-"], .modal-header.text-white { background: var(--bg-surface) !important; color: var(--text-primary) !important; }
.modal-header[class*="bg-"] .btn-close-white, .modal-header .btn-close-white { filter: none; }
.modal-footer { gap: 12px; padding: 12px var(--spacing-lg); }
.modal-footer > * { margin: 0; }
.modal-backdrop { --bs-backdrop-bg: #05122e; --bs-backdrop-opacity: 0.45; }

/* List groups */
.list-group {
  --bs-list-group-border-color: var(--border-subtle);
  --bs-list-group-border-radius: var(--radius-md);
  --bs-list-group-item-padding-x: var(--spacing-lg);
  --bs-list-group-item-padding-y: var(--spacing-md);
  --bs-list-group-color: var(--text-primary);
  --bs-list-group-action-hover-bg: var(--bg-default);
  --bs-list-group-action-active-bg: var(--bg-subtle);
  --bs-list-group-active-bg: var(--bg-default);
  --bs-list-group-active-border-color: var(--border-subtle);
  --bs-list-group-active-color: var(--text-primary);
  font-size: var(--font-size-body-sm);
}

/* Progress */
.progress {
  --bs-progress-height: 8px;
  --bs-progress-bg: var(--bg-subtle);
  --bs-progress-border-radius: var(--radius-full);
  --bs-progress-bar-bg: var(--accent-default);
}
.progress-bar.bg-success { background-color: var(--success-default) !important; }
.progress-bar.bg-warning { background-color: #e0a100 !important; }
.progress-bar.bg-danger  { background-color: var(--error-default) !important; }
.progress-bar.bg-info    { background-color: var(--accent-default) !important; }

/* Tooltips / popovers */
.tooltip { --bs-tooltip-bg: var(--bg-inverse); --bs-tooltip-font-size: var(--font-size-caption); --bs-tooltip-border-radius: var(--radius-sm); }

/* ------------------------------------------------------------------ DataTables */
.dataTables_wrapper { font-size: var(--font-size-body-sm); color: var(--text-secondary); }
.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child { padding: var(--spacing-md) var(--spacing-lg); margin: 0; align-items: center; }
.dataTables_wrapper .row:last-child { background: var(--bg-subtle); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 38px;
  padding: 8px 12px;
  border: var(--stroke-default) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  font-size: var(--font-size-body-sm);
  color: var(--text-primary);
}
.dataTables_wrapper .dataTables_length select { padding-right: 32px; }
.dataTables_wrapper .dataTables_info { padding-top: 0 !important; color: var(--text-secondary); }
.dataTables_wrapper .dataTables_paginate .pagination { justify-content: flex-end; }
table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_asc::after,
table.dataTable thead > tr > th.sorting_desc::before, table.dataTable thead > tr > th.sorting_desc::after { opacity: 0.35; font-size: 0.8em; }

/* ======================================================================
 * RVR components for rebuilt pages (Figma names in comments)
 * ==================================================================== */

/* Tag */
.rvr-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px var(--spacing-sm) 6px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.rvr-tag--success { background: #b0f2cb; color: var(--text-highlight); }
.rvr-tag--warning { background: #ffd98a; color: var(--warning-default); }
.rvr-tag--error   { background: #ffb3bf; color: var(--error-default); }
.rvr-tag--info    { background: #b8d9ff; color: var(--text-link); }
.rvr-tag--neutral { background: var(--bg-subtle); color: var(--text-secondary); border: var(--stroke-default) solid var(--border-subtle); }
.rvr-tag i { font-size: 10px; }

/* KPI Card */
.rvr-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-md); }
.rvr-kpi {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  min-width: 0;
}
.rvr-kpi__head { display: flex; align-items: center; gap: var(--spacing-sm); }
.rvr-kpi__label { flex: 1 1 auto; color: var(--text-secondary); }
.rvr-kpi__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-default);
  color: var(--accent-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
.rvr-kpi__value-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rvr-kpi__value { color: var(--text-primary); }
.rvr-kpi__note { color: var(--text-secondary); margin: var(--spacing-xs) 0 0; }

/* Card (Figma Card / *) */
.rvr-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  min-width: 0;
  overflow: hidden;
}
.rvr-card--lg { border-radius: var(--radius-lg); }
.rvr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
}
.rvr-card__head--padded { padding: var(--spacing-lg) var(--spacing-lg) 0; }
.rvr-card__title { margin: 0; color: var(--text-primary); }
.rvr-card__subtitle { margin: 2px 0 0; color: var(--text-secondary); }
.rvr-card__body { padding: var(--spacing-lg); }
.rvr-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 12px var(--spacing-lg);
  background: var(--bg-subtle);
}

/* Compact select used in card heads (Figma Select, "Last 7 Days") */
.rvr-select-sm {
  width: auto;
  min-width: 106px;
  min-height: 0;
  padding: 7px 32px 7px 8px;
  border-color: var(--border-subtle);
  font-size: var(--font-size-caption);
  color: var(--text-secondary);
  background-position: right 8px center;
}

/* Data table (Figma Column header / Row) */
.rvr-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-body-sm); }
.rvr-table th {
  padding: 12px var(--spacing-md);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: var(--font-family-display);
  font-size: var(--font-size-overline);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border-bottom: var(--stroke-default) solid var(--border-subtle);
}
.rvr-table th { line-height: 1.2; vertical-align: middle; }
.rvr-table td {
  padding: var(--spacing-md);
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: var(--stroke-default) solid var(--border-subtle);
  vertical-align: middle;
}
.rvr-table--compact td { padding-top: 12px; padding-bottom: 12px; }
.rvr-table th:first-child, .rvr-table td:first-child { padding-left: var(--spacing-lg); }
.rvr-table th:last-child, .rvr-table td:last-child { padding-right: var(--spacing-lg); }
.rvr-table tbody tr:last-child td { border-bottom: 0; }
.rvr-table tbody tr:hover td { background: rgba(238, 243, 255, 0.55); }
.rvr-table .is-strong { color: var(--text-primary); font-weight: 600; }
.rvr-table .is-primary { color: var(--text-primary); }
.rvr-table th.is-end, .rvr-table td.is-end { text-align: right; }
.rvr-sort { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
button.rvr-sort, .rvr-sort-btn {
  padding: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer;
}
.rvr-sort::after { content: "\2195"; font-size: 10px; opacity: 0.6; }
.rvr-sort.is-asc::after { content: "\2191"; opacity: 1; }
.rvr-sort.is-desc::after { content: "\2193"; opacity: 1; }

/* Identity cell (avatar + name/email) */
.rvr-identity { display: flex; align-items: center; gap: var(--spacing-sm); min-width: 0; }
.rvr-identity__avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-default);
  color: var(--text-secondary);
  font-size: var(--font-size-caption);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rvr-identity__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rvr-identity__name, .rvr-identity__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvr-identity__name { color: var(--text-primary); font-weight: 600; line-height: 1.2; text-decoration: none; }
a.rvr-identity__name:hover { color: var(--text-link); }
.rvr-identity__meta { color: var(--text-secondary); font-size: var(--font-size-caption); line-height: 1.45; }

/* Chip (invoice id etc.) */
.rvr-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-default);
  color: var(--text-secondary);
  font-size: var(--font-size-caption);
  line-height: 1.45;
  white-space: nowrap;
}

/* Icon button (Figma Icon button / More) */
.rvr-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
}
.rvr-icon-btn:hover, .rvr-icon-btn[aria-expanded="true"] { background: var(--bg-subtle); color: var(--text-primary); }

/* Segmented filter (Figma Filter / Status) */
.rvr-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
}
.rvr-segmented__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-sm) 12px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.rvr-segmented__item:hover { color: var(--text-primary); }
.rvr-segmented__item.is-active { background: var(--bg-surface); color: var(--text-primary); }
.rvr-segmented__count { color: var(--text-secondary); }

/* Search field (Figma Search / Table) */
.rvr-search-field {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 38px;
  width: 280px;
  max-width: 100%;
  padding: 0 12px;
  border: var(--stroke-default) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-disabled);
}
.rvr-search-field:focus-within { border-color: var(--accent-default); box-shadow: 0 0 0 3px rgba(12, 114, 219, 0.18); }
.rvr-search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
}
.rvr-search-field input::placeholder { color: var(--text-disabled); }

/* Ranked list (Figma Ranked list) */
.rvr-ranked { display: flex; flex-direction: column; gap: var(--spacing-sm); margin: 0; padding: 0; list-style: none; }
.rvr-ranked__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 40px;
  padding: 0 12px 0 var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: var(--bg-default);
  overflow: hidden;
}
.rvr-ranked__bar { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-sm); background: #b8d9ff; }
.rvr-ranked__rank, .rvr-ranked__name, .rvr-ranked__meta { position: relative; }
.rvr-ranked__rank {
  padding: 4px 6px 5px;
  border-radius: var(--radius-sm);
  background: var(--bg-default);
  color: var(--text-secondary);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.2;
}
.rvr-ranked__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.rvr-ranked__meta { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); }

/* Alert list (Figma Alert Card) */
.rvr-alert-item { display: flex; flex-direction: column; gap: var(--spacing-sm); padding: var(--spacing-md) var(--spacing-lg); border-top: var(--stroke-default) solid var(--border-subtle); }
.rvr-alert-item__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-sm); color: var(--text-secondary); }
.rvr-alert-item__title { margin: 0; color: var(--text-primary); }
.rvr-alert-item__text { margin: var(--spacing-xs) 0 0; color: var(--text-secondary); }

/* Timeline (Figma Timeline / Event) */
.rvr-timeline { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.rvr-timeline__event { display: flex; gap: 12px; }
.rvr-timeline__rail { flex: 0 0 28px; display: flex; flex-direction: column; align-items: center; gap: var(--spacing-xs); }
.rvr-timeline__chip {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rvr-timeline__chip--info { background: #b8d9ff; }
.rvr-timeline__chip--success { background: #b0f2cb; }
.rvr-timeline__chip--warning { background: #ffd98a; }
.rvr-timeline__chip--error { background: #ffb3bf; }
.rvr-timeline__connector { flex: 1 1 auto; width: 2px; min-height: 8px; border-radius: var(--radius-full); background: var(--border-subtle); }
.rvr-timeline__event:last-child .rvr-timeline__connector { visibility: hidden; }
.rvr-timeline__content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--spacing-xs); padding-bottom: var(--spacing-md); }
.rvr-timeline__top { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-sm); }
.rvr-timeline__name { color: var(--text-primary); }
.rvr-timeline__time { color: var(--text-secondary); white-space: nowrap; }
.rvr-timeline__text { margin: 0; color: var(--text-secondary); }
.rvr-timeline__text strong { color: var(--text-primary); font-weight: 600; }

/* Bar chart (Figma Card / Transaction volume) */
.rvr-bars { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 200px auto; column-gap: var(--spacing-sm); row-gap: var(--spacing-sm); }
.rvr-bars__y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: var(--text-secondary); }
.rvr-bars__plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 12px;
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 50px;
  border-bottom: 1px solid var(--bg-subtle);
}
.rvr-bars__bar { flex: 1 1 0; min-width: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: #b8d9ff; position: relative; }
.rvr-bars__bar.is-current { background: var(--accent-default); }
.rvr-bars__bar:hover { background: var(--accent-default); }
.rvr-bars__x { grid-column: 2; display: flex; justify-content: space-between; padding: 0 12px; gap: 12px; color: var(--text-secondary); }
.rvr-bars__x span { flex: 1 1 0; text-align: center; white-space: nowrap; }

/* Dark queue card (Figma Queue / Underwriting review) */
.rvr-queue {
  display: flex;
  align-items: stretch;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-inverse);
  color: var(--text-on-inverse);
}
.rvr-queue__stat { flex: 0 0 196px; display: flex; flex-direction: column; gap: var(--spacing-xs); }
.rvr-queue__label, .rvr-queue__note { color: var(--text-disabled); }
.rvr-queue__value {
  font-family: var(--font-family-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
.rvr-queue__divider { width: 1px; background: var(--border-default); }
.rvr-queue__rows { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rvr-queue__row { display: flex; align-items: center; gap: var(--spacing-md); }
.rvr-queue__avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: #16305f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: 600;
}
.rvr-queue__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--spacing-xs); }
.rvr-queue__name { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvr-queue__meta { color: var(--text-disabled); font-size: var(--font-size-caption); line-height: 1.45; }
.rvr-queue__meta strong { color: var(--text-on-inverse); font-weight: 600; }
.rvr-btn-accent-bright {
  --bs-btn-color: var(--text-primary);
  --bs-btn-bg: #1e90ff;
  --bs-btn-border-color: #1e90ff;
  --bs-btn-hover-color: var(--text-primary);
  --bs-btn-hover-bg: #4aa6ff;
  --bs-btn-hover-border-color: #4aa6ff;
}

/* Note (Figma Note) */
.rvr-note { padding: var(--spacing-md); border-radius: var(--radius-md); background: var(--bg-subtle); color: var(--text-secondary); }

/* Empty state */
.rvr-empty { padding: var(--spacing-xl) var(--spacing-lg); text-align: center; color: var(--text-secondary); }
.rvr-empty i { display: block; margin-bottom: var(--spacing-sm); font-size: 24px; color: var(--text-disabled); }

/* Pager (Figma Table footer) */
.rvr-pager { display: flex; align-items: center; gap: var(--spacing-xs); }
.rvr-pager__btn {
  min-width: 32px;
  height: 32px;
  padding: 0 var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--stroke-default) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}
.rvr-pager__btn:hover { color: var(--text-primary); border-color: var(--border-default); }
.rvr-pager__btn.is-active { background: var(--accent-default); border-color: var(--accent-default); color: var(--text-on-accent); }
.rvr-pager__btn.is-disabled { pointer-events: none; opacity: 0.5; }

/* Grid helpers for rebuilt pages */
.rvr-stack > .rvr-page-header { margin-bottom: 0; }
.rvr-stack { display: flex; flex-direction: column; gap: var(--spacing-lg); }
.rvr-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-lg); }
.rvr-grid-chart { display: grid; grid-template-columns: minmax(0, 547fr) minmax(0, 545fr); gap: var(--spacing-lg); }
.rvr-grid-feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--spacing-lg); }

@media (max-width: 1199.98px) {
  .rvr-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rvr-grid-chart, .rvr-grid-feed, .rvr-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .rvr-kpi-row { grid-template-columns: minmax(0, 1fr); }
  .rvr-queue { flex-direction: column; }
  .rvr-queue__stat { flex-basis: auto; }
  .rvr-queue__divider { width: auto; height: 1px; }
  .rvr-table-scroll { overflow-x: auto; }
}
