:root {
  --primary: #1a6b3c;
  --primary-light: #2d9b5a;
  --primary-dark: #0f4526;
  --secondary: #c9a227;
  --secondary-light: #e4bb3d;
  --accent: #e8f5ee;
  --dark: #0d1f15;
  --text: #1c2b22;
  --text-muted: #6b8577;
  --bg: #f0f7f3;
  --card-bg: #ffffff;
  --border: #c8ddd3;
  --danger: #c0392b;
  --warning: #e67e22;
  --info: #2980b9;
  --success: #27ae60;
  --sidebar-w: 260px;
  --header-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
}
/* ===== LOGIN ===== */
#login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 9999;
}
.login-card {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(26,107,60,0.3);
}
.login-logo h2 { font-family: 'Cairo', sans-serif; font-weight: 900; color: var(--primary); font-size: 1.6rem; }
.login-logo p { color: var(--text-muted); font-size: 0.9rem; }
/* ===== LOCK SCREEN ===== */
#lock-screen {
  min-height: 100vh;
  background: rgba(13,31,21,0.95);
  display: none; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 9998;
  backdrop-filter: blur(12px);
}
#lock-screen.active { display: flex; }
/* ===== LAYOUT ===== */
#app { display: none; }
#app.active { display: flex; min-height: 100vh; }
/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary-dark);
  min-height: 100vh;
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex; flex-direction: column;
  transition: transform .3s ease;
  overflow-y: auto;
}
.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--secondary), #f0c040);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--primary-dark); font-weight: 900;
}
.brand-text { color: white; }
.brand-text h6 { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 0.95rem; margin: 0; }
.brand-text small { color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section { padding: 8px 16px 4px; }
.nav-section-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); font-weight: 700; }
.nav-item { margin: 2px 8px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: all .2s;
  cursor: pointer;
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-link.active { background: var(--secondary); color: var(--primary-dark); font-weight: 700; }
.nav-link i { width: 18px; text-align: center; font-size: 0.9rem; }
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--primary-dark); font-size: 0.9rem;
}
.user-details { flex: 1; }
.user-details .name { color: white; font-size: 0.83rem; font-weight: 600; }
.user-details .role { color: rgba(255,255,255,0.45); font-size: 0.72rem; }
/* MAIN CONTENT */
.main-content {
  margin-right: var(--sidebar-w);
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: var(--header-h);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.topbar-title { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--primary); flex: 1; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.btn-topbar {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; color: var(--text-muted);
  transition: all .2s;
}
.btn-topbar:hover { background: var(--accent); border-color: var(--primary); color: var(--primary); }
.page-content { padding: 24px; flex: 1; }
/* ===== CARDS ===== */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.stat-icon.green { background: #e8f5ee; color: var(--primary); }
.stat-icon.gold { background: #fdf6e3; color: var(--secondary); }
.stat-icon.blue { background: #e8f0fa; color: #2980b9; }
.stat-icon.red { background: #fdecea; color: #c0392b; }
.stat-icon.purple { background: #f3e8fd; color: #8e44ad; }
.stat-value { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
/* Account Summary Cards */
.account-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.account-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.08;
  transform: translate(30px, -30px);
}
.account-card.zakat::before { background: var(--primary); }
.account-card.jariya::before { background: var(--secondary); }
.account-card.amma::before { background: #2980b9; }
.account-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.account-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.account-card.zakat .account-card-icon { background: #e8f5ee; color: var(--primary); }
.account-card.jariya .account-card-icon { background: #fdf6e3; color: var(--secondary); }
.account-card.amma .account-card-icon { background: #e8f0fa; color: #2980b9; }
.account-card-title { font-weight: 800; font-size: 1rem; color: var(--text); }
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.account-row:last-child { border-bottom: none; }
.account-row-label { font-size: 0.82rem; color: var(--text-muted); }
.account-row-value { font-weight: 700; font-size: 0.95rem; }
.account-row-value.positive { color: var(--success); }
.account-row-value.negative { color: var(--danger); }
.account-row-value.balance { color: var(--primary); font-size: 1.1rem; }
/* ===== TABLES ===== */
.table-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.table-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.table-card-title { font-weight: 800; font-size: 1rem; color: var(--text); flex: 1; }
.table { margin: 0; }
.table thead th {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  padding: 12px 16px;
  white-space: nowrap;
}
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--accent); }
.table tbody td { padding: 11px 16px; font-size: 0.85rem; vertical-align: middle; border-color: var(--border); }
.badge-account {
  padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}
.badge-zakat { background: #e8f5ee; color: var(--primary); }
.badge-jariya { background: #fdf6e3; color: #a07a10; }
.badge-amma { background: #e8f0fa; color: #1a5276; }
.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-active { background: #e8f5ee; color: var(--success); }
.badge-paused { background: #fdecea; color: var(--danger); }
.badge-failed { background: #fdecea; color: var(--danger); }
.badge-edited { background: #fdf6e3; color: #a07a10; }
.so-banner {
  border-radius: 14px; padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border: 1px solid var(--border);
}
.so-banner.pending { background: #fdf6e3; border-color: #e4bb3d; }
.so-banner.done { background: var(--accent); }
.so-banner .so-banner-text { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.so-banner .so-banner-text i { color: var(--secondary); margin-left: 6px; }
/* ===== FORMS ===== */
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  padding: 9px 14px;
  background: white;
  color: var(--text);
  transition: border .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.12);
  outline: none;
}
.form-control[readonly] { background: #f8fbf9; }
/* ===== BUTTONS ===== */
.btn { border-radius: 10px; font-family: 'Tajawal', sans-serif; font-weight: 600; font-size: 0.88rem; padding: 9px 18px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-warning { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
/* ===== MODALS ===== */
.modal-content { border-radius: 16px; border: none; }
.modal-header { background: var(--accent); border-radius: 16px 16px 0 0; border-bottom: 1px solid var(--border); }
.modal-title { font-family: 'Cairo', sans-serif; font-weight: 800; color: var(--primary); }
/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }
/* ===== SEARCH BAR ===== */
.search-bar {
  position: relative;
}
.search-bar i {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
}
.search-bar input { padding-right: 38px; }
/* ===== ALERTS ===== */
.toast-container { position: fixed; bottom: 24px; left: 24px; z-index: 9999; }
.toast-msg {
  background: var(--primary-dark);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 8px;
  display: flex; align-items: center; gap: 8px;
  animation: slideUp .3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast-msg.success { background: var(--success); }
.toast-msg.error { background: var(--danger); }
.toast-msg.warning { background: var(--warning); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* ===== PRINT ===== */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-right: 0; }
  .page-content { padding: 0; }
  .print-header { display: block !important; }
  body { background: white; }
  .table-card { border: none; box-shadow: none; }
}
.print-header {
  display: none;
  text-align: center;
  padding: 20px 0 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
}
.print-header h3 { font-family: 'Cairo'; font-weight: 900; color: var(--primary); }
/* ===== MOBILE & TABLET ===== */
@media (max-width: 991px) {
  /* Sidebar hidden by default on tablet */
  .sidebar {
    transform: translateX(100%);
    width: 280px;
    z-index: 200;
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-right: 0; }
  .mobile-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 199;
    backdrop-filter: blur(2px);
  }
  .mobile-overlay.active { display: block; }
  /* Topbar burger always visible */
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar-title { font-size: 1rem; }
  /* Page content padding reduced */
  .page-content { padding: 14px; }
  /* Stat cards 2-column */
  .stat-value { font-size: 1.3rem; }
  /* Account cards full width */
  .account-card { padding: 16px; }
  .account-row-value { font-size: 0.88rem; }
  .account-row-value.balance { font-size: 1rem; }
  /* Tables scroll */
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .table thead th { font-size: 0.75rem; padding: 9px 10px; }
  .table tbody td { font-size: 0.8rem; padding: 9px 10px; }
  /* Filter row stacks */
  .filter-row { flex-direction: column; }
  .filter-row > div { min-width: 100%; }
  /* Chart smaller */
  .chart-container { height: 220px; }
  /* Table card header wraps */
  .table-card-header { flex-wrap: wrap; gap: 8px; }
  /* Section title */
  .section-title { font-size: 1.1rem; margin-bottom: 14px; }
  /* Bottom nav bar */
  .bottom-nav { display: flex !important; }
  /* Add padding so content doesn't go under bottom nav */
  .page-content { padding-bottom: 80px; }
}

@media (max-width: 575px) {
  /* Mobile-specific */
  .login-card { padding: 28px 20px; border-radius: 20px; }
  .login-logo h2 { font-size: 1.3rem; }
  .login-logo .icon { width: 64px; height: 64px; font-size: 28px; }
  /* Stack form cols to full width */
  .row.g-3 > [class*="col-md-"] { width: 100%; }
  /* Topbar title shorter */
  .topbar-title { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Stat cards */
  .stat-card { padding: 14px; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 8px; }
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: 0.74rem; }
  /* Account card rows */
  .account-row-label { font-size: 0.77rem; }
  .account-row-value { font-size: 0.83rem; }
  /* Buttons in forms */
  .btn { font-size: 0.85rem; }
  /* Table action buttons */
  .btn-icon { width: 28px; height: 28px; font-size: 0.75rem; }
  /* Page content */
  .page-content { padding: 10px 10px 80px; }
  /* Form labels */
  .form-label { font-size: 0.8rem; }
  .form-control, .form-select { font-size: 0.85rem; padding: 8px 12px; }
  /* Reports filters wrap */
  #reportFilters { flex-direction: column; }
  /* Badge smaller */
  .badge-account { font-size: 0.68rem; padding: 3px 7px; }
  /* Modal */
  .modal-content { margin: 10px; border-radius: 16px; }
  /* Table card header stacks */
  .table-card-header { flex-direction: column; align-items: flex-start; }
  .table-card-header .search-bar { width: 100%; min-width: unset !important; }
  .table-card-header .d-flex { width: 100%; }
  /* Supporters card on mobile */
  .account-card { padding: 14px; }
  .account-card-header { margin-bottom: 12px; }
  /* Charts */
  .chart-container { height: 180px; }
}

/* iPad specific (768–991) */
@media (min-width: 576px) and (max-width: 991px) {
  /* 2-col forms on iPad */
  .row.g-3 > .col-md-3 { width: 50%; }
  .row.g-3 > .col-md-4 { width: 50%; }
  .row.g-3 > .col-12 { width: 100%; }
  /* Account cards side by side */
  .row.g-3 > .col-md-6 { width: 50%; }
  .row.g-3 > .col-md-4 { width: 33.33%; }
}

/* ===== BOTTOM NAVIGATION BAR (mobile/tablet) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary-dark);
  z-index: 150;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 4px 8px; border-radius: 10px;
  cursor: pointer; color: rgba(255,255,255,0.55);
  transition: all .2s; min-width: 52px;
  border: none; background: transparent;
}
.bn-item.active { color: var(--secondary); }
.bn-item i { font-size: 1.1rem; }
.bn-item span { font-size: 0.62rem; font-family: 'Tajawal'; font-weight: 600; white-space: nowrap; }
/* More button opens sidebar */
.bn-more { background: var(--secondary) !important; color: var(--primary-dark) !important; border-radius: 50% !important; width: 48px; height: 48px; justify-content: center; }
.bn-more i { font-size: 1.2rem; }

/* ===== TOUCH IMPROVEMENTS ===== */
.nav-link, .btn, .bn-item { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px !important; } /* prevent iOS zoom */
@media (max-width: 991px) {
  input[type="date"] { appearance: none; -webkit-appearance: none; }
  /* Larger touch targets */
  .nav-link { padding: 12px 14px; }
  .btn { min-height: 40px; }
  .form-control, .form-select { min-height: 44px; }
}

/* ===== SWIPE HANDLE on sidebar ===== */
.sidebar-close-btn {
  display: none;
  position: absolute; top: 16px; left: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1); border: none;
  border-radius: 8px; color: white; cursor: pointer;
  align-items: center; justify-content: center; font-size: 0.9rem;
}
@media (max-width: 991px) { .sidebar-close-btn { display: flex; } }

/* ===== DESKTOP (keep original) ===== */
@media (min-width: 992px) {
  .sidebar { transform: none !important; }
  .main-content { margin-right: var(--sidebar-w); }
  .bottom-nav { display: none !important; }
  .mobile-overlay { display: none !important; }
}
.section-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--secondary); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
/* Progress bar */
.progress { border-radius: 50px; height: 8px; background: var(--accent); }
.progress-bar { background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 50px; }
/* Chart container */
.chart-container { position: relative; height: 280px; }
/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }
/* Numeric badge */
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--secondary); color: var(--primary-dark);
  border-radius: 50px; font-size: 0.72rem; font-weight: 900;
}
/* Activity log */
.activity-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); margin-top: 5px; flex-shrink: 0;
}
.activity-text { font-size: 0.83rem; line-height: 1.5; }
.activity-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
/* Input group currency */
.input-group-text {
  background: var(--accent); border-color: var(--border);
  font-weight: 700; color: var(--primary); font-size: 0.85rem;
  border-radius: 0 10px 10px 0 !important;
}
.input-group .form-control { border-radius: 10px 0 0 10px !important; }
/* Filter row */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filter-row > div { flex: 1; min-width: 140px; }
/* ===== REPORT TYPE CARDS ===== */
.report-type-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.report-type-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.report-type-card.selected { border-color: var(--primary); background: var(--accent); box-shadow: 0 4px 16px rgba(26,107,60,0.15); }
.rtc-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 8px; }
.rtc-label { font-size: 0.82rem; font-weight: 700; color: var(--text); }
/* ===== REPORT OUTPUT ===== */
.report-header-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.report-header-bar.jariya { background: linear-gradient(135deg, #7d5a0a, var(--secondary)); }
.report-header-bar.amma { background: linear-gradient(135deg, #1a4a7a, #2980b9); }
.report-header-bar.all { background: linear-gradient(135deg, #4a1a7a, #8e44ad); }
.report-header-bar.beneficiary { background: linear-gradient(135deg, #0f4526, #1a6b3c); }
.report-header-bar.monthly { background: linear-gradient(135deg, #7b1c12, #c0392b); }
.report-header-bar.annual { background: linear-gradient(135deg, #1a3a5c, #2980b9); }
.report-header-bar.supporters { background: linear-gradient(135deg, #6b4c0a, var(--secondary)); }
.rh-title { font-family: 'Cairo'; font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.rh-subtitle { font-size: 0.82rem; opacity: .8; margin-top: 2px; }
.rh-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.rh-stat { text-align: center; }
.rh-stat-val { font-family: 'Cairo'; font-weight: 900; font-size: 1.1rem; display: block; }
.rh-stat-label { font-size: 0.72rem; opacity: .75; }
.report-table-wrap { background: white; border-radius: 0 0 16px 16px; border: 1px solid var(--border); border-top: none; }
.report-footer {
  padding: 16px 24px;
  background: #f8faf9;
  border-top: 2px solid var(--border);
  border-radius: 0 0 16px 16px;
  display: flex; flex-wrap: wrap; gap: 20px;
}
.rf-item { display: flex; flex-direction: column; gap: 2px; }
.rf-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.rf-value { font-family: 'Cairo'; font-weight: 900; font-size: 1rem; }
.rf-value.green { color: var(--success); }
.rf-value.red { color: var(--danger); }
.rf-value.blue { color: var(--info); }
.rf-value.gold { color: var(--secondary); }
/* Beneficiary summary cards in report */
.ben-report-cards { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 20px; background: #f8faf9; border-bottom: 1px solid var(--border); }
.ben-report-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; min-width: 160px; flex: 1; }
.ben-report-card-name { font-weight: 800; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.ben-report-card-sdg { font-family: 'Cairo'; font-weight: 900; font-size: 1.1rem; color: var(--success); }
.ben-report-card-sar { font-size: 0.78rem; color: var(--text-muted); }
/* Print styles for new report */
@media print {
  .no-print { display: none !important; }
  #reportPrintHeader { display: block !important; }
  .report-header-bar { background: var(--primary-dark) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-table-wrap { border: none; }
}
