/* ============================================================
   RumbiaTrack — Design System (Light / Navy-Gold Theme)
   Warna selaras logo: Navy #1b2c6b · Gold #c9a227 · Cream #f5f3ef
   Kolej Komuniti Beaufort | TVET ESD Digital
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* Brand palette dari logo */
  --navy:          #1b2c6b;
  --navy-dark:     #111d4a;
  --navy-light:    rgba(27, 44, 107, 0.08);
  --navy-mid:      rgba(27, 44, 107, 0.15);
  --gold:          #c9a227;
  --gold-light:    rgba(201, 162, 39, 0.15);
  --gold-dark:     #a88318;
  --gold-border:   rgba(201, 162, 39, 0.35);

  /* Status colours */
  --status-pending:  #d97706;
  --status-endorsed: #7c3aed;
  --status-approved: #166534;
  --status-rejected: #991b1b;
  --status-returned: #4b5563;

  /* Background & surfaces — LIGHT mode */
  --bg-page:       #f0eee9;          /* warm cream page background */
  --bg-hero:       linear-gradient(145deg, #e8e4f8 0%, #f0eee9 45%, #fdf6e3 100%);
  --bg-card:       #ffffff;
  --bg-card-alt:   #fafaf8;
  --bg-input:      #f7f6f3;

  /* Borders */
  --border:        rgba(27, 44, 107, 0.12);
  --border-gold:   rgba(201, 162, 39, 0.4);
  --border-soft:   rgba(27, 44, 107, 0.06);

  /* Text */
  --text-main:     #1a1f3c;
  --text-body:     #374151;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;

  /* Radius */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  30px;

  /* Shadows — softer for light theme */
  --shadow-sm:   0 2px 8px rgba(27, 44, 107, 0.08);
  --shadow-md:   0 6px 24px rgba(27, 44, 107, 0.10);
  --shadow-lg:   0 14px 40px rgba(27, 44, 107, 0.14);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.25);
  --shadow-card: 0 2px 12px rgba(27, 44, 107, 0.07);
  --shadow-popup:0 20px 60px rgba(27, 44, 107, 0.18);

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse at 5% 0%,   rgba(201,162,39,0.07)  0%, transparent 40%),
    radial-gradient(ellipse at 95% 100%, rgba(27,44,107,0.06) 0%, transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ── Top Navbar ─────────────────────────────────────────── */
.top-navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border-gold);
  padding: 10px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  box-shadow: 0 2px 16px rgba(27,44,107,0.08);
}

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

.brand-icon-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(201,162,39,0.3);
  border: 2px solid var(--gold);
}

/* Fallback text icon */
.brand-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.brand-text h1 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--navy);
}
.brand-text h1 span { color: var(--gold); }
.brand-text p { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }

/* Navbar right cluster */
.navbar-right { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* Admin settings button */
.btn-admin-settings {
  display: none;
  align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 20px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  color: var(--navy); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.btn-admin-settings:hover { background: var(--navy-mid); box-shadow: var(--shadow-sm); }
.btn-admin-settings.show { display: flex; }

/* Role Switcher */
.role-switcher-container {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 5px 12px; border-radius: 30px;
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.role-switcher-label { font-size: 11px; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.role-buttons { display: flex; gap: 4px; }
.role-btn {
  padding: 6px 13px; border-radius: 20px; border: none;
  background: transparent; color: var(--text-muted);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.role-btn.active[data-role="pelajar"]  { background: #3b82f6; color: #fff; box-shadow: 0 2px 10px rgba(59,130,246,0.3); }
.role-btn.active[data-role="pegawai"]  { background: #7c3aed; color: #fff; box-shadow: 0 2px 10px rgba(124,58,237,0.3); }
.role-btn.active[data-role="admin"]    { background: var(--navy); color: var(--gold); box-shadow: 0 2px 10px rgba(27,44,107,0.3); }

/* ── Hero Banner Section ─────────────────────────────────── */
.hero-section {
  background: var(--navy);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.055) 1px, transparent 0),
    linear-gradient(135deg, #1b2c6b 0%, #2a3f8e 60%, #1b2c6b 100%);
  background-size: 22px 22px, auto;
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  margin-bottom: 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 40px solid rgba(201,162,39,0.12);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -60px; left: 30%;
  width: 150px; height: 150px; border-radius: 50%;
  border: 30px solid rgba(201,162,39,0.07);
  pointer-events: none;
}

/* ── Hero Premium — versi TVET ESD Digital KKB ────────────── */
.hero-section.hero-premium {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; padding: 42px 32px 36px; text-align: center;
  background: linear-gradient(135deg, #0e1838 0%, #1b2c6b 45%, #233785 80%, #172459 100%);
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 14px 40px rgba(27, 44, 107, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  border-radius: var(--radius-xl);
}

.hero-cute-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: heroContentIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-top-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #ffd700; font-size: 11px; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.2);
}

.hero-cute-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 34px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #ffd700 85%, #f7b731 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 4px 0 2px; letter-spacing: -0.5px; line-height: 1.2;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero-subtitle {
  font-size: 13.5px; color: rgba(255, 255, 255, 0.88);
  font-weight: 500; max-width: 640px; margin: 0 auto 6px;
  line-height: 1.5;
}

.hero-stats-row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 4px 0 6px;
}

.hero-stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 6px 14px; border-radius: 20px;
  color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.hero-stat-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-cute-sdg {
  animation: heroSdgIn 0.6s ease 0.35s both;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.38);
  padding: 8px 20px; border-radius: 30px;
  backdrop-filter: blur(14px);
  transition: var(--transition);
}
.hero-cute-sdg:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

@keyframes heroContentIn {
  0%   { opacity: 0; transform: translateY(14px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroSdgIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Blob lembut terapung di latar */
.hero-cute-blob {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(1px);
}
.hero-cute-blob-1 {
  width: 180px; height: 180px; top: -60px; left: 8%;
  background: radial-gradient(circle, rgba(201,162,39,0.35), transparent 70%);
  animation: blobFloat1 9s ease-in-out infinite;
}
.hero-cute-blob-2 {
  width: 220px; height: 220px; bottom: -90px; right: 10%;
  background: radial-gradient(circle, rgba(120,150,255,0.28), transparent 70%);
  animation: blobFloat2 11s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,15px) scale(1.08); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-18px,-12px) scale(1.06); }
}

/* Ikon comel melantun-lantun di sekeliling tajuk */
.hero-cute-float {
  position: absolute; z-index: 1; opacity: 0.55;
  animation: floatBob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
  pointer-events: none;
}
.hero-cute-float-1 { top: 20%; left: 7%;  font-size: 26px; animation-delay: 0s;    }
.hero-cute-float-2 { top: 64%; left: 15%; font-size: 20px; animation-delay: 1.1s;  }
.hero-cute-float-3 { top: 22%; right: 9%; font-size: 22px; animation-delay: 0.6s;  }
.hero-cute-float-4 { top: 66%; right: 17%;font-size: 18px; animation-delay: 1.7s;  }
@keyframes floatBob {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-10px) rotate(6deg); }
}
@media (max-width: 900px) {
  .hero-cute-float { display: none; }
  .hero-cute-title { font-size: 24px; }
}

/* SDG badges */
.sdg-banner {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius-sm); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.sdg-badges { display: flex; gap: 6px; }
.sdg-pill { padding: 3px 9px; border-radius: 5px; font-size: 10px; font-weight: 800; color: #fff; }
.sdg-pill.sdg4  { background: #c5192d; }
.sdg-pill.sdg9  { background: #f36d25; }
.sdg-pill.sdg12 { background: #bf8b2e; }
.sdg-pill.sdg13 { background: #3f7e44; }

.hero-cute-sdg { cursor: pointer; transition: var(--transition); }
.hero-cute-sdg:hover { border-color: rgba(201,162,39,0.6); background: rgba(255,255,255,0.13); transform: translateY(-1px); }

/* ── Jalur Impak SDG Mendatar (di bawah senarai outlet) ──── */
.sdg-impact-strip { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.sdg-impact-strip .sdg-impact-card { flex: 1 1 220px; min-width: 200px; }

/* ── Panel Analisis Impak SDG (Modal 7) ──────────────────── */
.sdg-impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sdg-impact-card {
  border-radius: var(--radius-md); padding: 14px 16px;
  border: 1.5px solid var(--border-soft); background: var(--bg-card-alt);
  border-left: 5px solid var(--c);
}
.sdg-impact-card .sdg-impact-tag {
  display: inline-block; font-size: 10px; font-weight: 800; color: #fff;
  background: var(--c); padding: 2px 8px; border-radius: 5px; margin-bottom: 8px;
}
.sdg-impact-card .sdg-impact-num { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.sdg-impact-card .sdg-impact-label { font-size: 11.5px; font-weight: 700; color: var(--text-main); margin-top: 4px; }
.sdg-impact-card .sdg-impact-desc { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

/* ── Carian Peralatan (auto-fill) ─────────────────────────── */
.equip-search-bar { margin-bottom: 14px; }
.equip-search-bar .form-control { font-size: 14px; padding: 12px 16px; }
.equip-search-results {
  display: none; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px; margin-bottom: 36px;
}
.equip-search-results.show { display: grid; }
.equip-search-card {
  background: var(--bg-card); border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.equip-search-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.equip-search-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.equip-search-card-top strong { font-size: 13px; color: var(--navy); }
.equip-search-card-meta { font-size: 11px; color: var(--text-muted); }
.equip-search-card .btn { width: 100%; font-size: 11.5px; padding: 7px 10px; }
.equip-search-empty {
  grid-column: 1 / -1; text-align: center; padding: 24px; color: var(--text-muted);
  font-size: 13px; background: var(--bg-card-alt); border: 2px dashed var(--border); border-radius: var(--radius-md);
}

/* ── Cadangan Peralatan Pintar (Enjin Peraturan) ─────────── */
.ai-suggest-panel {
  background: var(--bg-card); border: 2px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 36px; box-shadow: var(--shadow-sm);
}
.ai-suggest-results { margin-top: 18px; display: none; }
.ai-suggest-results.show { display: block; }
.ai-suggest-summary {
  font-size: 12.5px; color: var(--text-body); background: var(--gold-light);
  border: 1px solid var(--border-gold); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 14px; line-height: 1.6;
}
.ai-suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.ai-suggest-card {
  background: var(--bg-card-alt); border: 1.5px solid var(--border-soft); border-left: 4px solid #16a34a;
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.ai-suggest-card strong { display: block; font-size: 12.5px; color: var(--navy); margin-bottom: 3px; }
.ai-suggest-card span { font-size: 11px; color: var(--text-muted); }
.ai-suggest-card.capped { border-left-color: var(--status-pending); }
.ai-suggest-unmatched {
  margin-top: 14px; font-size: 11.5px; color: #92400e; background: #fef3c7;
  border: 1px solid #fcd34d; border-radius: var(--radius-sm); padding: 10px 14px; line-height: 1.6;
}
.ai-suggest-cta {
  margin-top: 14px; font-size: 12.5px; color: var(--navy); background: var(--navy-light);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.6;
}

/* Sorotan sekejap bila peralatan ditemui melalui carian */
@keyframes itemFoundPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,39,0.55); border-color: var(--gold); }
  70%  { box-shadow: 0 0 0 14px rgba(201,162,39,0); border-color: var(--gold); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}
.item-card-highlight { animation: itemFoundPulse 1.4s ease-out 2; }

/* ── Main Wrapper ────────────────────────────────────────── */
.content-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.sidebar {
  width: 260px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-title {
  font-size: 15px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
}
.sidebar-desc { font-size: 11.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.sidebar-requests { display: flex; flex-direction: column; gap: 10px; }

.main-wrapper {
  flex: 1;
  max-width: 1340px;
  margin: 24px auto;
  padding: 0 24px;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header { margin-bottom: 20px; }
.section-title {
  font-size: 20px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(to right, var(--gold-border), transparent);
  border-radius: 2px;
}
.section-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Outlet Cards ────────────────────────────────────────── */
.outlets-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 24px; margin-bottom: 36px;
}
.outlet-card {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.outlet-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(201,162,39,0.18), 0 4px 16px rgba(27,44,107,0.10);
}
.outlet-img-container { height: 240px; width: 100%; position: relative; overflow: hidden; }
.outlet-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.outlet-card:hover .outlet-img { transform: scale(1.06); }
.outlet-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,44,107,0.88) 0%, rgba(27,44,107,0.2) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px;
}
.outlet-badge {
  align-self: flex-start; background: var(--gold); color: var(--navy-dark);
  font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.7px;
}
.outlet-title { font-size: 20px; font-weight: 800; color: #fff; }
.outlet-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.75); flex-wrap: wrap; }
.outlet-action-prompt {
  padding: 14px 22px; background: var(--navy-light);
  border-top: 2px solid var(--border-gold);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--navy); font-weight: 700; font-size: 13px;
}
.outlet-card:hover .outlet-action-prompt { background: var(--gold-light); color: var(--gold-dark); }

/* ── Ruang Section ───────────────────────────────────────── */
.ruang-section {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; margin-bottom: 36px;
  box-shadow: var(--shadow-md); animation: fadeIn 0.4s ease;
}
.breadcrumb-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb-link { color: var(--navy); cursor: pointer; font-weight: 700; }
.breadcrumb-link:hover { color: var(--gold-dark); text-decoration: underline; }

.ruang-section-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.ruang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.ruang-card {
  background: var(--bg-card-alt); border: 2px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 18px; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.ruang-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.ruang-card.active {
  background: var(--navy-light); border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(27,44,107,0.12);
}
.ruang-icon  { font-size: 28px; margin-bottom: 10px; }
.ruang-name  { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ruang-count { font-size: 11px; color: var(--text-muted); }

/* ── Item Cards ──────────────────────────────────────────── */
.items-section { margin-top: 24px; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 12px; }
.item-card {
  background: var(--bg-card); border: 2px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.item-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.item-qr-code {
  font-family: monospace; font-size: 10px;
  background: var(--navy-light); padding: 3px 8px; border-radius: 4px;
  color: var(--navy); font-weight: 700; border: 1px solid var(--border);
}
.item-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.item-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.55; }
.item-stock-info {
  display: flex; gap: 14px; font-size: 12px; margin-bottom: 12px;
  background: var(--bg-input); padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
.stock-good    { color: #166534; font-weight: 700; }
.stock-damaged { color: #991b1b; font-weight: 700; }
.stock-pill    { font-weight: 700; }

/* ── Item Thumbnail (Circle Combined Gold & Navy Frame) ──── */
.item-thumb-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.item-thumb {
  width: 98px; height: 98px; border-radius: 50%;
  object-fit: cover; object-position: center;
  background: #0f172a;
  padding: 3px;
  border: 3px solid var(--gold);
  outline: 2.5px solid var(--navy);
  box-shadow: 0 0 0 3px var(--gold), 0 6px 18px rgba(15, 23, 42, 0.35);
  cursor: zoom-in; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item-thumb:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 0 4px var(--gold-dark), 0 8px 24px rgba(212, 175, 55, 0.55);
}
.item-thumb-placeholder {
  width: 98px; height: 98px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border: 3px solid var(--gold);
  outline: 2.5px solid var(--navy);
  box-shadow: 0 0 0 3px var(--gold), 0 4px 15px rgba(15, 23, 42, 0.35);
  font-size: 32px; color: var(--gold);
  transition: transform 0.3s ease;
}
.item-thumb-placeholder:hover {
  transform: scale(1.06);
  border-color: var(--gold-dark);
}
.item-card.has-admin-edit { position: relative; }
.item-edit-fab {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  border: 2px solid var(--gold); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition);
  z-index: 2;
}
.item-edit-fab:hover { background: var(--navy-dark); transform: scale(1.08); }

/* ── Empty State (ruang tiada peralatan lagi) ────────────── */
.ruang-empty-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 48px 20px; text-align: center;
  background: var(--bg-card-alt); border: 2px dashed var(--border);
  border-radius: var(--radius-md); color: var(--text-muted); font-size: 13px;
}
.ruang-empty-icon { font-size: 34px; opacity: 0.7; }

/* ── Add-New-Item Card (Admin) ───────────────────────────── */
.item-card-add {
  border: 2px dashed var(--border-gold); border-radius: var(--radius-md);
  background: var(--gold-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 220px; cursor: pointer; transition: var(--transition);
  color: var(--gold-dark); font-weight: 700; font-size: 13px;
}
.item-card-add:hover { background: var(--gold-light); border-color: var(--gold-dark); transform: translateY(-2px); }
.item-card-add .add-icon { font-size: 30px; }

/* ── Peminjaman Pukal — Toggle, Slaider & Bar Troli ──────── */
.btn-bulk-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: var(--navy-light); border: 1.5px solid var(--border);
  color: var(--navy); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.btn-bulk-toggle:hover { background: var(--navy-mid); }
.btn-bulk-toggle.active {
  background: var(--navy); color: var(--gold); border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(27,44,107,0.3);
}

.bulk-select-control {
  flex: 1 1 100%;
  background: var(--bg-input); border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: var(--transition);
}
.bulk-select-control.active { background: var(--gold-light); border-color: var(--border-gold); }
.bulk-qty-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bulk-qty-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.bulk-qty-value { font-size: 15px; font-weight: 800; color: var(--gold-dark); }

.bulk-qty-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 3px;
  background: var(--border); outline: none; cursor: pointer; display: block;
}
.bulk-qty-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--gold);
  cursor: pointer; box-shadow: 0 2px 6px rgba(27,44,107,0.35);
}
.bulk-qty-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--gold);
  cursor: pointer; box-shadow: 0 2px 6px rgba(27,44,107,0.35);
}
.bulk-qty-slider:disabled { opacity: 0.4; cursor: not-allowed; }

/* Bar troli terapung */
.bulk-cart-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120%);
  display: flex; align-items: center; gap: 18px;
  background: var(--navy); color: #fff;
  border: 1.5px solid var(--gold-border); border-radius: 30px;
  padding: 12px 14px 12px 20px;
  box-shadow: var(--shadow-popup);
  z-index: 500; opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.bulk-cart-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bulk-cart-info { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.bulk-cart-icon { font-size: 18px; }
.bulk-cart-actions { display: flex; gap: 8px; }
.btn-bulk-clear {
  padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: rgba(255,255,255,0.75);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-bulk-clear:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-bulk-submit {
  padding: 8px 18px; border-radius: 20px; border: none;
  background: var(--gold); color: var(--navy-dark);
  font-size: 12.5px; font-weight: 800; cursor: pointer; transition: var(--transition); font-family: inherit;
  white-space: nowrap;
}
.btn-bulk-submit:hover { background: var(--gold-dark); box-shadow: var(--shadow-gold); }

/* Ringkasan troli dalam borang permohonan */
.bulk-items-summary {
  max-height: 220px; overflow-y: auto;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 12px;
}
.bulk-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px;
}
.bulk-summary-row:last-child { border-bottom: none; }
.bulk-summary-name { color: var(--text-main); font-weight: 600; }
.bulk-summary-qty { color: var(--gold-dark); font-weight: 800; }

/* ── Image Upload Field (Modal) ──────────────────────────── */
.image-upload-field {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-input); border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); padding: 12px;
}
.image-upload-preview {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); background: #fffbea; flex-shrink: 0;
}
.image-upload-preview-placeholder {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-light);
}
.image-upload-controls { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.image-upload-controls input[type="file"] { font-size: 11px; }

/* ── Lightbox (Klik Gambar Untuk Besarkan) ───────────────── */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(17, 29, 74, 0.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
  padding: 40px;
}
.lightbox-backdrop.active { opacity: 1; pointer-events: auto; }
.lightbox-box {
  position: relative; max-width: 480px; width: 100%;
  background: #fffbea; border-radius: var(--radius-lg);
  border: 3px solid var(--gold); box-shadow: var(--shadow-popup);
  padding: 20px; text-align: center;
  transform: scale(0.94); transition: var(--transition);
}
.lightbox-backdrop.active .lightbox-box { transform: scale(1); }
.lightbox-box img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-md); }
.lightbox-caption { margin-top: 14px; font-size: 15px; font-weight: 800; color: var(--navy); }
.lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold); border: 2px solid var(--gold);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.lightbox-close:hover { background: var(--navy-dark); }

/* ── Items Section Header (with Admin Add button) ────────── */
.items-section-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
.btn-add-peralatan {
  display: none; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; border: none;
  background: var(--gold); color: var(--navy-dark);
  font-size: 12px; font-weight: 800; cursor: pointer; transition: var(--transition);
}
.btn-add-peralatan.show { display: inline-flex; }
.btn-add-peralatan:hover { background: var(--gold-dark); box-shadow: var(--shadow-gold); }

/* ── Status Badges ───────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.status-PENDING  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.status-ENDORSED { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.status-APPROVED { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-REJECTED { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.status-RETURNED { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }

/* ── Email Flow Timeline ─────────────────────────────────── */
.email-flow {
  display: flex; gap: 0; margin: 14px 0;
  background: var(--bg-input); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
}
.email-step {
  flex: 1; padding: 10px 10px; text-align: center;
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  border-right: 1px solid var(--border-soft); position: relative;
}
.email-step:last-child { border-right: none; }
.email-step.done   { background: #d1fae5; color: #065f46; }
.email-step.active { background: #fef3c7; color: #92400e; }
.email-step .step-icon { font-size: 16px; display: block; margin-bottom: 3px; }

/* ── Action Buttons ──────────────────────────────────────── */
.item-actions {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.btn {
  flex: 1; padding: 9px 12px; border-radius: var(--radius-sm); border: none;
  font-size: 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: var(--transition); font-family: inherit;
}
.btn-pinjam { background: var(--navy); color: #fff; }
.btn-pinjam:hover { background: var(--navy-dark); box-shadow: 0 4px 14px rgba(27,44,107,0.3); }

.btn-semak { background: #ede9fe; border: 1px solid #c4b5fd; color: #5b21b6; }
.btn-semak:hover { background: #ddd6fe; }

.btn-lulus { background: var(--gold); color: var(--navy-dark); }
.btn-lulus:hover { background: var(--gold-dark); box-shadow: var(--shadow-gold); }

.btn-danger { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.btn-danger:hover { background: #fecaca; }

.btn-full { width: 100%; margin-top: 10px; padding: 12px; flex: unset; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 14px; }
.form-label  {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 10px 13px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-main);
  font-size: 13px; font-family: inherit; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px var(--navy-light); }
.form-control option { background: #fff; color: var(--text-main); }
.form-control[readonly] { background: #f3f4f6; color: var(--text-muted); }
.field-hint { display: block; font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Info box */
.info-box {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0;
  font-size: 12px; color: var(--text-body); line-height: 1.7;
}

/* Email preview strip */
.email-preview-strip {
  display: flex; align-items: center; gap: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; font-size: 12px;
}
.email-preview-strip .ep-icon { font-size: 18px; flex-shrink: 0; }
.ep-to   { color: var(--text-muted); margin-right: 4px; }
.ep-addr { color: var(--navy); font-weight: 700; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(27, 44, 107, 0.35);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }

.modal-card {
  background: #fff; border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px; box-shadow: var(--shadow-popup);
  transform: translateY(20px) scale(0.98); transition: var(--transition);
}
.modal-backdrop.active .modal-card { transform: translateY(0) scale(1); }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border-gold);
}
.modal-title { font-size: 17px; font-weight: 800; color: var(--navy); }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--navy); }

.modal-section-label {
  font-size: 10px; font-weight: 800; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin: 16px 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-gold);
}

/* ── Admin Settings Table ────────────────────────────────── */
.settings-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.settings-table th {
  color: var(--text-muted); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 8px 8px; text-align: left;
  border-bottom: 2px solid var(--border-gold); white-space: nowrap;
  background: var(--bg-input);
}
.settings-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-soft); color: var(--text-main); vertical-align: middle; }
.settings-table tr:hover td { background: var(--bg-input); }
.settings-table tr:last-child td { border-bottom: none; }
.settings-table th:nth-child(1), .settings-table td:nth-child(1) { width: 110px; }
.settings-table th:nth-child(3), .settings-table td:nth-child(3) { width: 170px; }
.settings-table th:nth-child(4), .settings-table td:nth-child(4) { width: 190px; }
.settings-table th:nth-child(5), .settings-table td:nth-child(5) { width: 36px; }
.settings-table input {
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text-main); padding: 5px 8px; border-radius: 6px;
  font-size: 12px; width: 100%; font-family: inherit;
}
.settings-table input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-light); }

/* ── Requests Status Panel (kad menegak, jalur warna ikut status) ── */
.requests-panel { margin-bottom: 36px; }
.req-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border-soft);
  border-left: 4px solid var(--border);
  transition: var(--transition); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.req-row:hover { border-color: var(--border); box-shadow: var(--shadow-md); transform: translateX(1px); }

/* Jalur warna kiri ikut status permohonan */
.req-row.req-status-PENDING  { border-left-color: var(--status-pending); }
.req-row.req-status-ENDORSED { border-left-color: var(--status-endorsed); }
.req-row.req-status-APPROVED { border-left-color: var(--status-approved); }
.req-row.req-status-REJECTED { border-left-color: var(--status-rejected); }
.req-row.req-status-RETURNED { border-left-color: var(--status-returned); }

.req-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-id    { font-family: monospace; font-size: 11px; color: var(--navy); font-weight: 700; }

.req-info  { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.req-info strong {
  font-size: 13px; color: var(--navy); line-height: 1.3;
  word-break: break-word;
}
.req-info span   { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.req-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.req-outlet, .req-date { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }

.req-outofcatalog-tag {
  display: inline-block; font-size: 9.5px; font-weight: 800;
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
  padding: 1px 6px; border-radius: 10px; margin-left: 2px; vertical-align: middle;
  white-space: nowrap;
}

.req-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.req-actions .btn { flex: unset; padding: 6px 10px; font-size: 11px; }

/* ── Hidden fields ───────────────────────────────────────── */
#new-program-group { display: none; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── Toast ───────────────────────────────────────────────── */
.toast-notification {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 13px; line-height: 1.5;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-popup); z-index: 3000;
  animation: fadeIn 0.3s ease; max-width: 380px;
}
.toast-notification.toast-info    { background: var(--navy); border-color: #60a5fa; }
.toast-notification.toast-warning { background: #92400e; border-color: var(--gold); }
.toast-notification.toast-danger  { background: #991b1b; border-color: #fca5a5; }

/* ── Divider ─────────────────────────────────────────────── */
.gold-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  border: none; margin: 28px 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:900px) {
  .content-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    max-height: none;
    margin-bottom: 24px;
  }
  .outlets-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-section { flex-direction: column; padding: 24px; }
}
@media (max-width:640px) {
  .top-navbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .role-switcher-container { flex-wrap: wrap; }
  .modal-card { padding: 20px; }

  /* Bar troli pukal — kekal muat pada skrin telefon sempit */
  .bulk-cart-bar {
    left: 12px; right: 12px; bottom: 12px;
    transform: translateY(120%); width: auto;
    flex-direction: column; align-items: stretch; gap: 10px;
    border-radius: var(--radius-md); padding: 14px;
  }
  .bulk-cart-bar.show { transform: translateY(0); }
  .bulk-cart-actions { justify-content: stretch; }
  .bulk-cart-actions button { flex: 1; }

  .hero-cute-content { padding: 0 4px; }
  .sdg-badges { flex-wrap: wrap; justify-content: center; }
  .sdg-impact-strip .sdg-impact-card { flex-basis: 100%; }
}

/* ── Laporan Ringkasan Peralatan (Cetak / Simpan PDF) ────────
   #print-report kekal tersembunyi pada skrin biasa; hanya
   dipaparkan (dan menjadi SATU-SATUNYA kandungan kelihatan)
   semasa mencetak melalui window.print().                  */
#print-report { display: none; }
#print-requests-report { display: none; }

.pr-header { text-align: center; margin-bottom: 22px; border-bottom: 3px solid #1b2c6b; padding-bottom: 14px; }
.pr-header h1 { font-size: 20px; margin: 0 0 4px; color: #1b2c6b; }
.pr-header p { font-size: 11px; color: #555; margin: 2px 0; }
.pr-summary { display: flex; justify-content: center; gap: 28px; margin-bottom: 24px; font-size: 12px; text-align: center; }
.pr-summary strong { display: block; font-size: 18px; color: #1b2c6b; }
.pr-outlet-title {
  font-size: 15px; color: #1b2c6b; background: #f0f1f6; padding: 8px 12px;
  border-left: 4px solid #c9a227; margin: 24px 0 6px;
}
.pr-ruang-title { font-size: 12.5px; font-weight: 700; color: #333; margin: 14px 0 4px; }
.pr-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; font-size: 10.5px; }
.pr-table th, .pr-table td { border: 1px solid #ccc; padding: 5px 8px; text-align: left; }
.pr-table th { background: #1b2c6b; color: #fff; font-weight: 700; }
.pr-table tr:nth-child(even) { background: #f7f7f9; }
.pr-total-row td { font-weight: 800; background: #fdf6e3 !important; }
.pr-outlet-break { page-break-before: always; }
.pr-footer { margin-top: 26px; font-size: 9.5px; color: #888; text-align: center; border-top: 1px solid #ddd; padding-top: 10px; }

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; }
  body * { visibility: hidden; }
  
  body:not(.printing-requests-report) #print-report, 
  body:not(.printing-requests-report) #print-report * { visibility: visible; }
  body:not(.printing-requests-report) #print-report {
    display: block !important;
    position: absolute; top: 0; left: 0; width: 100%; margin: 0; padding: 0;
  }

  body.printing-requests-report #print-requests-report, 
  body.printing-requests-report #print-requests-report * { visibility: visible; }
  body.printing-requests-report #print-requests-report {
    display: block !important;
    position: absolute; top: 0; left: 0; width: 100%; margin: 0; padding: 0;
  }
}

/* ── Main Tab Navigation Bar ────────────────────────────── */
.main-tab-nav {
  position: sticky; top: 68px; z-index: 190;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-gold);
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(27, 44, 107, 0.06);
}
.main-tab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 25px;
  border: 1.5px solid transparent;
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: var(--transition);
}
.main-tab-btn:hover { background: var(--navy-light); color: var(--navy); }
.main-tab-btn.active {
  background: var(--navy); color: var(--gold);
  border-color: var(--gold); box-shadow: var(--shadow-sm);
}
.tab-badge {
  background: var(--gold); color: var(--navy-dark);
  font-size: 11px; font-weight: 800; padding: 2px 7px;
  border-radius: 12px; line-height: 1;
}

/* Tab Content Views */
.tab-content-view { display: none; width: 100%; animation: fadeIn 0.25s ease; }
.tab-content-view.active { display: block; }

/* Requests Tab Grid & Filters */
.requests-tab-container, .sdg-tab-container {
  max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px;
}
.request-filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.filter-chip {
  padding: 8px 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-body); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.filter-chip:hover { background: var(--bg-input); }
.filter-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-chip.chip-pending.active  { background: #d97706; border-color: #d97706; color: #fff; }
.filter-chip.chip-endorsed.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.filter-chip.chip-approved.active { background: #166534; border-color: #166534; color: #fff; }
.filter-chip.chip-returned.active { background: #4b5563; border-color: #4b5563; color: #fff; }
.filter-chip.chip-rejected.active { background: #991b1b; border-color: #991b1b; color: #fff; }

.requests-grid-container {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.btn-return { background: #f3f4f6; border: 1px solid #d1d5db; color: #374151; }
.btn-return:hover { background: #e5e7eb; }

@media (max-width: 768px) {
  .main-tab-nav { gap: 4px; padding: 6px 8px; }
  .main-tab-btn { padding: 8px 14px; font-size: 11.5px; }
  .requests-tab-container, .sdg-tab-container { padding: 16px 12px 60px; }
  .requests-grid-container { grid-template-columns: 1fr; }
}

