/* ============================================================
   Delivra — Restaurant Owner Portal Stylesheet
   assets/css/restaurant.css
   Teamseven Private Limited | teamseven.ltd
   ============================================================ */

/* ── Shell ───────────────────────────────────────────────── */
.rp-body {
  display: flex;
  min-height: 100vh;
  background: var(--clr-bg-dark-1);
}
body.light-mode .rp-body { background: #F3F4F6; }

/* ── Sidebar ─────────────────────────────────────────────── */
.rp-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  background: rgba(8,16,7,0.96);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s ease;
  overflow: hidden;
}
body.light-mode .rp-sidebar { background: rgba(255,255,255,0.98); border-right-color: rgba(0,0,0,0.08); box-shadow: 2px 0 16px rgba(0,0,0,0.05); }

.rp-sidebar.collapsed { width: 64px; }

/* Brand */
.rp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  min-height: 64px;
  overflow: hidden;
}
body.light-mode .rp-brand { border-bottom-color: rgba(0,0,0,0.07); }

.rp-brand-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg,#16A34A,#22C55E);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800; color: #fff;
}
.rp-brand-text { overflow: hidden; white-space: nowrap; }
.rp-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 800;
  color: rgba(240,253,244,0.92);
  letter-spacing: -0.02em;
}
body.light-mode .rp-brand-name { color: rgba(7,26,6,0.92); }
.rp-brand-sub {
  font-size: 0.68rem; color: rgba(240,253,244,0.38);
  margin-top: 1px;
}
body.light-mode .rp-brand-sub { color: rgba(7,26,6,0.42); }

.rp-sidebar.collapsed .rp-brand-text { display: none; }

/* Nav */
.rp-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 0; scrollbar-width: none; }
.rp-nav::-webkit-scrollbar { display: none; }

.rp-nav-section-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(240,253,244,0.28);
  padding: 12px 18px 4px;
  white-space: nowrap;
  overflow: hidden;
}
body.light-mode .rp-nav-section-title { color: rgba(7,26,6,0.30); }
.rp-sidebar.collapsed .rp-nav-section-title { opacity: 0; height: 0; padding: 0; }

.rp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin: 1px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(240,253,244,0.52);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.rp-nav-link:hover { background: rgba(255,255,255,0.06); color: rgba(240,253,244,0.88); }
.rp-nav-link.active { background: rgba(22,163,74,0.14); color: #22C55E; font-weight: 600; }
body.light-mode .rp-nav-link { color: rgba(7,26,6,0.55); }
body.light-mode .rp-nav-link:hover { background: rgba(7,26,6,0.05); color: rgba(7,26,6,0.88); }
body.light-mode .rp-nav-link.active { background: rgba(22,163,74,0.10); color: #16A34A; }

.rp-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.rp-nav-label { overflow: hidden; white-space: nowrap; }
.rp-sidebar.collapsed .rp-nav-label { display: none; }

.rp-nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: linear-gradient(135deg,#16A34A,#22C55E);
  color: #fff; font-size: 0.60rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.rp-sidebar.collapsed .rp-nav-badge { display: none; }

/* Sidebar footer */
.rp-sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
body.light-mode .rp-sidebar-footer { border-top-color: rgba(0,0,0,0.07); }

.rp-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
  overflow: hidden;
}
.rp-user-row:hover { background: rgba(255,255,255,0.06); }
body.light-mode .rp-user-row:hover { background: rgba(7,26,6,0.05); }
.rp-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#16A34A,#22C55E);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.70rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.rp-user-info { overflow: hidden; }
.rp-user-name { font-size: 0.80rem; font-weight: 600; color: rgba(240,253,244,0.82); white-space: nowrap; }
body.light-mode .rp-user-name { color: rgba(7,26,6,0.80); }
.rp-user-role { font-size: 0.65rem; color: rgba(240,253,244,0.38); white-space: nowrap; }
body.light-mode .rp-user-role { color: rgba(7,26,6,0.40); }
.rp-sidebar.collapsed .rp-user-info { display: none; }

/* ── Main Content ─────────────────────────────────────────── */
.rp-main {
  flex: 1;
  margin-left: 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1);
}
.rp-sidebar.collapsed ~ .rp-main { margin-left: 64px; }

/* Topbar */
.rp-topbar {
  position: sticky;
  top: 0; z-index: 50;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  background: rgba(8,16,7,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.light-mode .rp-topbar { background: rgba(255,255,255,0.97); border-bottom-color: rgba(0,0,0,0.07); }

.rp-topbar-toggle {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(240,253,244,0.55);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.rp-topbar-toggle:hover { background: rgba(22,163,74,0.10); color: #22C55E; border-color: rgba(22,163,74,0.20); }
body.light-mode .rp-topbar-toggle { background: rgba(7,26,6,0.05); border-color: rgba(7,26,6,0.10); color: rgba(7,26,6,0.55); }

.rp-topbar-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: rgba(240,253,244,0.92);
}
body.light-mode .rp-topbar-title { color: rgba(7,26,6,0.92); }

.rp-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.rp-topbar-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(240,253,244,0.55);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  text-decoration: none;
}
.rp-topbar-btn:hover { background: rgba(22,163,74,0.10); color: #22C55E; border-color: rgba(22,163,74,0.20); }
body.light-mode .rp-topbar-btn { background: rgba(7,26,6,0.05); border-color: rgba(7,26,6,0.10); color: rgba(7,26,6,0.55); }

.rp-notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid rgba(8,16,7,0.95);
}
body.light-mode .rp-notif-dot { border-color: rgba(255,255,255,0.97); }

.rp-status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.76rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.rp-status-chip.open { background: rgba(22,163,74,0.14); border: 1px solid rgba(22,163,74,0.24); color: #22C55E; }
.rp-status-chip.closed { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.20); color: #F87171; }
.rp-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.rp-status-chip.open .rp-status-dot { background: #22C55E; animation: livePulse 1.8s ease-in-out infinite; }
.rp-status-chip.closed .rp-status-dot { background: #EF4444; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
body.light-mode .rp-status-chip.open { background: rgba(22,163,74,0.10); color: #15803D; }

/* Page content */
.rp-content { flex: 1; padding: 24px; }

/* ── Stat Cards ──────────────────────────────────────────── */
.rp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.rp-stat-card {
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.18s, transform 0.18s;
}
.rp-stat-card:hover { border-color: rgba(22,163,74,0.18); transform: translateY(-1px); }
body.light-mode .rp-stat-card { background: #fff; border-color: rgba(0,0,0,0.07); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

.rp-stat-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.rp-stat-label { font-size: 0.75rem; font-weight: 600; color: rgba(240,253,244,0.42); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
body.light-mode .rp-stat-label { color: rgba(7,26,6,0.44); }
.rp-stat-val { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: rgba(240,253,244,0.94); line-height: 1; margin-bottom: 6px; }
body.light-mode .rp-stat-val { color: rgba(7,26,6,0.94); }
.rp-stat-change { font-size: 0.74rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.rp-stat-change.up { color: #22C55E; }
.rp-stat-change.down { color: #EF4444; }
.rp-stat-change.neutral { color: rgba(240,253,244,0.40); }
body.light-mode .rp-stat-change.neutral { color: rgba(7,26,6,0.40); }

/* ── Section Card ────────────────────────────────────────── */
.rp-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  margin-bottom: 20px;
}
body.light-mode .rp-card { background: #fff; border-color: rgba(0,0,0,0.07); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

.rp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.light-mode .rp-card-header { border-bottom-color: rgba(0,0,0,0.06); }

.rp-card-title {
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 700;
  color: rgba(240,253,244,0.90);
}
body.light-mode .rp-card-title { color: rgba(7,26,6,0.90); }
.rp-card-sub { font-size: 0.72rem; color: rgba(240,253,244,0.40); margin-top: 2px; }
body.light-mode .rp-card-sub { color: rgba(7,26,6,0.42); }

.rp-card-action { font-size: 0.78rem; font-weight: 600; color: #22C55E; cursor: pointer; text-decoration: none; transition: opacity 0.15s; }
.rp-card-action:hover { opacity: 0.75; }
body.light-mode .rp-card-action { color: #16A34A; }

/* ── Order Card ──────────────────────────────────────────── */
.rp-order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
}
.rp-order-row:last-child { border-bottom: none; }
.rp-order-row:hover { background: rgba(255,255,255,0.02); }
body.light-mode .rp-order-row { border-bottom-color: rgba(0,0,0,0.05); }
body.light-mode .rp-order-row:hover { background: rgba(7,26,6,0.02); }

.rp-order-num {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  color: rgba(240,253,244,0.85);
  flex-shrink: 0;
  min-width: 90px;
}
body.light-mode .rp-order-num { color: rgba(7,26,6,0.85); }

.rp-order-customer {
  flex: 1; min-width: 0;
}
.rp-order-customer-name { font-size: 0.85rem; font-weight: 600; color: rgba(240,253,244,0.85); }
body.light-mode .rp-order-customer-name { color: rgba(7,26,6,0.85); }
.rp-order-customer-items { font-size: 0.72rem; color: rgba(240,253,244,0.40); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.light-mode .rp-order-customer-items { color: rgba(7,26,6,0.42); }

.rp-order-amount {
  font-size: 0.88rem; font-weight: 700;
  color: rgba(240,253,244,0.88);
  flex-shrink: 0; min-width: 60px; text-align: right;
}
body.light-mode .rp-order-amount { color: rgba(7,26,6,0.88); }

.rp-order-time {
  font-size: 0.74rem; color: rgba(240,253,244,0.38);
  flex-shrink: 0; min-width: 70px; text-align: right;
}
body.light-mode .rp-order-time { color: rgba(7,26,6,0.40); }

.rp-order-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Status Badges ───────────────────────────────────────── */
.rp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.rp-badge-new { background: rgba(59,130,246,0.14); color: #60A5FA; border: 1px solid rgba(59,130,246,0.22); }
.rp-badge-preparing { background: rgba(234,179,8,0.14); color: #FCD34D; border: 1px solid rgba(234,179,8,0.22); }
.rp-badge-ready { background: rgba(20,184,166,0.14); color: #2DD4BF; border: 1px solid rgba(20,184,166,0.22); }
.rp-badge-delivering { background: rgba(249,115,22,0.14); color: #FB923C; border: 1px solid rgba(249,115,22,0.22); }
.rp-badge-delivered { background: rgba(22,163,74,0.12); color: #22C55E; border: 1px solid rgba(22,163,74,0.20); }
.rp-badge-cancelled { background: rgba(239,68,68,0.12); color: #F87171; border: 1px solid rgba(239,68,68,0.20); }
body.light-mode .rp-badge-new { color: #2563EB; }
body.light-mode .rp-badge-preparing { color: #B45309; }
body.light-mode .rp-badge-ready { color: #0F766E; }
body.light-mode .rp-badge-delivering { color: #C2410C; }
body.light-mode .rp-badge-delivered { color: #15803D; }
body.light-mode .rp-badge-cancelled { color: #B91C1C; }

/* ── Action Buttons ──────────────────────────────────────── */
.rp-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  border: 1px solid;
  white-space: nowrap;
}
.rp-btn-primary { background: linear-gradient(135deg,#16A34A,#22C55E); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(22,163,74,0.30); }
.rp-btn-primary:hover { filter: brightness(1.08); box-shadow: 0 4px 14px rgba(22,163,74,0.40); }
.rp-btn-green { background: rgba(22,163,74,0.14); color: #22C55E; border-color: rgba(22,163,74,0.22); }
.rp-btn-green:hover { background: rgba(22,163,74,0.22); }
body.light-mode .rp-btn-green { color: #15803D; background: rgba(22,163,74,0.10); }
.rp-btn-orange { background: rgba(249,115,22,0.14); color: #FB923C; border-color: rgba(249,115,22,0.22); }
.rp-btn-orange:hover { background: rgba(249,115,22,0.22); }
body.light-mode .rp-btn-orange { color: #C2410C; }
.rp-btn-red { background: rgba(239,68,68,0.12); color: #F87171; border-color: rgba(239,68,68,0.20); }
.rp-btn-red:hover { background: rgba(239,68,68,0.20); }
body.light-mode .rp-btn-red { color: #B91C1C; }
.rp-btn-ghost { background: rgba(255,255,255,0.05); color: rgba(240,253,244,0.60); border-color: rgba(255,255,255,0.09); }
.rp-btn-ghost:hover { background: rgba(255,255,255,0.09); color: rgba(240,253,244,0.85); }
body.light-mode .rp-btn-ghost { background: rgba(7,26,6,0.04); color: rgba(7,26,6,0.60); border-color: rgba(7,26,6,0.10); }
.rp-btn-sm { padding: 5px 10px; font-size: 0.73rem; }
.rp-btn-lg { padding: 10px 22px; font-size: 0.88rem; }

/* ── Menu Item Row ───────────────────────────────────────── */
.rp-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
}
.rp-menu-row:last-child { border-bottom: none; }
.rp-menu-row:hover { background: rgba(255,255,255,0.02); }
body.light-mode .rp-menu-row { border-bottom-color: rgba(0,0,0,0.05); }

.rp-menu-thumb {
  width: 54px; height: 54px;
  border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.rp-menu-info { flex: 1; min-width: 0; }
.rp-menu-name { font-size: 0.88rem; font-weight: 600; color: rgba(240,253,244,0.88); margin-bottom: 2px; }
body.light-mode .rp-menu-name { color: rgba(7,26,6,0.88); }
.rp-menu-desc { font-size: 0.73rem; color: rgba(240,253,244,0.40); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.light-mode .rp-menu-desc { color: rgba(7,26,6,0.42); }
.rp-menu-price { font-size: 0.92rem; font-weight: 700; color: #22C55E; flex-shrink: 0; min-width: 60px; text-align: right; }
body.light-mode .rp-menu-price { color: #16A34A; }
.rp-menu-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Toggle switch */
.rp-toggle {
  width: 40px; height: 22px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.rp-toggle.on { background: #22C55E; border-color: #22C55E; }
.rp-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(240,253,244,0.55);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
}
.rp-toggle.on::after { transform: translateX(18px); background: #fff; }
body.light-mode .rp-toggle { background: rgba(7,26,6,0.12); border-color: rgba(7,26,6,0.14); }
body.light-mode .rp-toggle::after { background: rgba(7,26,6,0.40); }
body.light-mode .rp-toggle.on::after { background: #fff; }

/* ── Review Card ─────────────────────────────────────────── */
.rp-review-card {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.18s;
}
.rp-review-card:last-child { border-bottom: none; }
body.light-mode .rp-review-card { border-bottom-color: rgba(0,0,0,0.06); }

.rp-review-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.rp-review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.rp-review-meta { flex: 1; }
.rp-review-name { font-size: 0.86rem; font-weight: 600; color: rgba(240,253,244,0.88); }
body.light-mode .rp-review-name { color: rgba(7,26,6,0.88); }
.rp-review-date { font-size: 0.70rem; color: rgba(240,253,244,0.38); margin-top: 1px; }
body.light-mode .rp-review-date { color: rgba(7,26,6,0.40); }
.rp-review-stars { display: flex; gap: 2px; }
.rp-review-star { color: #FCD34D; }
.rp-review-star.empty { color: rgba(255,255,255,0.15); }
body.light-mode .rp-review-star.empty { color: rgba(7,26,6,0.12); }
.rp-review-body { font-size: 0.83rem; line-height: 1.6; color: rgba(240,253,244,0.62); margin-bottom: 10px; }
body.light-mode .rp-review-body { color: rgba(7,26,6,0.65); }
.rp-review-reply {
  display: flex; gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(22,163,74,0.05);
  border: 1px solid rgba(22,163,74,0.12);
  margin-top: 8px;
}
.rp-review-reply-label { font-size: 0.70rem; font-weight: 700; color: #22C55E; flex-shrink: 0; }
body.light-mode .rp-review-reply-label { color: #16A34A; }
.rp-review-reply-text { font-size: 0.80rem; color: rgba(240,253,244,0.58); line-height: 1.5; }
body.light-mode .rp-review-reply-text { color: rgba(7,26,6,0.60); }

/* ── Chart placeholder ───────────────────────────────────── */
.rp-chart-wrap { padding: 16px 20px 20px; }
.rp-chart-canvas { width: 100%; }

/* ── Form Controls ───────────────────────────────────────── */
.rp-form-group { margin-bottom: 18px; }
.rp-label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(240,253,244,0.55);
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
body.light-mode .rp-label { color: rgba(7,26,6,0.55); }
.rp-input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(240,253,244,0.90);
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.rp-input:focus { border-color: rgba(22,163,74,0.40); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(22,163,74,0.10); }
body.light-mode .rp-input { background: rgba(7,26,6,0.04); border-color: rgba(7,26,6,0.12); color: rgba(7,26,6,0.90); }
body.light-mode .rp-input:focus { border-color: rgba(22,163,74,0.35); background: #fff; }

.rp-textarea {
  width: 100%;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(240,253,244,0.90);
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 10px 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rp-textarea:focus { border-color: rgba(22,163,74,0.40); box-shadow: 0 0 0 3px rgba(22,163,74,0.10); }
body.light-mode .rp-textarea { background: rgba(7,26,6,0.04); border-color: rgba(7,26,6,0.12); color: rgba(7,26,6,0.90); }

.rp-select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(240,253,244,0.90);
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 0 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,253,244,0.40)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
body.light-mode .rp-select { background-color: rgba(7,26,6,0.04); border-color: rgba(7,26,6,0.12); color: rgba(7,26,6,0.90); }

/* ── Hours Table ─────────────────────────────────────────── */
.rp-hours-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rp-hours-row:last-child { border-bottom: none; }
body.light-mode .rp-hours-row { border-bottom-color: rgba(7,26,6,0.05); }
.rp-hours-day { width: 90px; font-size: 0.84rem; font-weight: 600; color: rgba(240,253,244,0.75); flex-shrink: 0; }
body.light-mode .rp-hours-day { color: rgba(7,26,6,0.75); }
.rp-hours-inputs { display: flex; align-items: center; gap: 8px; flex: 1; }
.rp-hours-input {
  height: 34px;
  width: 100px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(240,253,244,0.85);
  font-size: 0.80rem;
  padding: 0 10px;
  outline: none;
  transition: border-color 0.2s;
}
.rp-hours-input:focus { border-color: rgba(22,163,74,0.40); }
body.light-mode .rp-hours-input { background: rgba(7,26,6,0.04); border-color: rgba(7,26,6,0.11); color: rgba(7,26,6,0.85); }
.rp-hours-sep { font-size: 0.78rem; color: rgba(240,253,244,0.35); }
body.light-mode .rp-hours-sep { color: rgba(7,26,6,0.38); }
.rp-hours-closed { font-size: 0.78rem; font-weight: 600; color: rgba(239,68,68,0.70); }

/* ── Promo Card ──────────────────────────────────────────── */
.rp-promo-card {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.18s;
}
.rp-promo-card:last-child { border-bottom: none; }
body.light-mode .rp-promo-card { border-bottom-color: rgba(0,0,0,0.06); }

.rp-promo-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rp-promo-info { flex: 1; }
.rp-promo-name { font-size: 0.88rem; font-weight: 600; color: rgba(240,253,244,0.88); margin-bottom: 2px; }
body.light-mode .rp-promo-name { color: rgba(7,26,6,0.88); }
.rp-promo-desc { font-size: 0.72rem; color: rgba(240,253,244,0.42); }
body.light-mode .rp-promo-desc { color: rgba(7,26,6,0.44); }
.rp-promo-stats { text-align: right; flex-shrink: 0; min-width: 80px; }
.rp-promo-uses { font-size: 0.84rem; font-weight: 700; color: rgba(240,253,244,0.85); }
body.light-mode .rp-promo-uses { color: rgba(7,26,6,0.85); }
.rp-promo-period { font-size: 0.68rem; color: rgba(240,253,244,0.38); margin-top: 1px; }
body.light-mode .rp-promo-period { color: rgba(7,26,6,0.40); }

/* ── Payout Row ──────────────────────────────────────────── */
.rp-payout-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
}
.rp-payout-row:last-child { border-bottom: none; }
body.light-mode .rp-payout-row { border-bottom-color: rgba(0,0,0,0.05); }

.rp-payout-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rp-payout-info { flex: 1; }
.rp-payout-label { font-size: 0.85rem; font-weight: 600; color: rgba(240,253,244,0.85); }
body.light-mode .rp-payout-label { color: rgba(7,26,6,0.85); }
.rp-payout-date { font-size: 0.70rem; color: rgba(240,253,244,0.38); margin-top: 1px; }
body.light-mode .rp-payout-date { color: rgba(7,26,6,0.40); }
.rp-payout-amount { font-size: 0.92rem; font-weight: 700; color: #22C55E; flex-shrink: 0; }
body.light-mode .rp-payout-amount { color: #16A34A; }
.rp-payout-amount.deduction { color: #F87171; }
body.light-mode .rp-payout-amount.deduction { color: #B91C1C; }
.rp-payout-status { flex-shrink: 0; }

/* ── Tag / Pill ──────────────────────────────────────────── */
.rp-tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.rp-tag-green { background: rgba(22,163,74,0.12); color: #22C55E; border: 1px solid rgba(22,163,74,0.20); }
body.light-mode .rp-tag-green { color: #15803D; }
.rp-tag-yellow { background: rgba(234,179,8,0.12); color: #FCD34D; border: 1px solid rgba(234,179,8,0.20); }
body.light-mode .rp-tag-yellow { color: #B45309; }
.rp-tag-red { background: rgba(239,68,68,0.10); color: #F87171; border: 1px solid rgba(239,68,68,0.18); }
body.light-mode .rp-tag-red { color: #B91C1C; }
.rp-tag-blue { background: rgba(59,130,246,0.12); color: #60A5FA; border: 1px solid rgba(59,130,246,0.20); }
body.light-mode .rp-tag-blue { color: #2563EB; }

/* ── Grid layouts ────────────────────────────────────────── */
.rp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 1200px) { .rp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .rp-grid-2, .rp-grid-3 { grid-template-columns: 1fr; } }

/* ── Tabs ────────────────────────────────────────────────── */
.rp-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  width: fit-content;
}
body.light-mode .rp-tabs { background: rgba(7,26,6,0.05); }
.rp-tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  color: rgba(240,253,244,0.50);
  transition: all 0.18s; white-space: nowrap;
}
.rp-tab.active { background: rgba(22,163,74,0.16); color: #22C55E; }
body.light-mode .rp-tab { color: rgba(7,26,6,0.52); }
body.light-mode .rp-tab.active { background: rgba(22,163,74,0.12); color: #15803D; }

/* ── Divider ─────────────────────────────────────────────── */
.rp-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 16px 0; }
body.light-mode .rp-divider { background: rgba(7,26,6,0.07); }

/* ── Empty State ─────────────────────────────────────────── */
.rp-empty { text-align: center; padding: 48px 24px; }
.rp-empty-icon { font-size: 2.8rem; margin-bottom: 12px; }
.rp-empty-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: rgba(240,253,244,0.50); margin-bottom: 6px; }
body.light-mode .rp-empty-title { color: rgba(7,26,6,0.50); }
.rp-empty-desc { font-size: 0.80rem; color: rgba(240,253,244,0.32); line-height: 1.6; }
body.light-mode .rp-empty-desc { color: rgba(7,26,6,0.35); }

/* ── Modal overlay ───────────────────────────────────────── */
.rp-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.rp-modal {
  width: 100%; max-width: 480px;
  border-radius: 20px;
  background: rgba(12,22,10,0.98);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 64px rgba(0,0,0,0.50);
  overflow: hidden;
}
body.light-mode .rp-modal { background: #fff; border-color: rgba(0,0,0,0.10); }
.rp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
body.light-mode .rp-modal-header { border-bottom-color: rgba(0,0,0,0.07); }
.rp-modal-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: rgba(240,253,244,0.92); }
body.light-mode .rp-modal-title { color: rgba(7,26,6,0.92); }
.rp-modal-close { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.07); border: none; color: rgba(240,253,244,0.50); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.rp-modal-close:hover { background: rgba(239,68,68,0.12); color: #F87171; }
.rp-modal-body { padding: 18px 20px; }
.rp-modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 18px; border-top: 1px solid rgba(255,255,255,0.06); }
body.light-mode .rp-modal-footer { border-top-color: rgba(0,0,0,0.07); }

/* ── Sidebar collapse responsive ─────────────────────────── */
@media (max-width: 768px) {
  .rp-sidebar { transform: translateX(-100%); }
  .rp-sidebar.mobile-open { transform: translateX(0); }
  .rp-main { margin-left: 0 !important; }
}
