/* Sistem BPP  -  hitam + turquoise + liquid glass (kaca lutsinar) */

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --black: #050708;
  --black-elev: #0f1414;
  --ink: #020807;
  --ink-soft: #0c1615;
  --muted: #243330;
  --line: rgba(10, 15, 15, 0.08);
  --line-strong: rgba(10, 15, 15, 0.14);

  /* Kandungan terang di atas latar gelap */
  --surface-0: #0c1010;
  --surface-1: #ffffff;
  --surface-2: #e8f7f4;
  --turquoise: #7dd3fc;
  --turquoise-dim: #60a5fa;
  --bg-page:
    radial-gradient(90% 70% at 15% 20%, rgba(125, 211, 252, 0.2) 0%, transparent 42%),
    radial-gradient(80% 60% at 92% 8%, rgba(96, 165, 250, 0.14) 0%, transparent 40%),
    radial-gradient(100% 80% at 80% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    linear-gradient(168deg, #020303 0%, #0a0e0e 40%, #0d1515 100%);
  --elev: 0 1px 3px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
  --elev-card: 0 2px 8px rgba(0, 0, 0, 0.12), 0 16px 40px rgba(0, 0, 0, 0.18);

  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --primary-muted: rgba(125, 211, 252, 0.22);
  --on-primary: #f0fdfa;

  --accent: var(--lg-accent);
  --accent-soft: rgba(125, 211, 252, 0.12);
  --accent-glow: rgba(125, 211, 252, 0.5);

  --sidebar-bg: linear-gradient(180deg, #020303 0%, #080c0c 45%, #0a1111 100%);
  --sidebar-border: rgba(125, 211, 252, 0.22);
  --sidebar-text: rgba(255, 255, 255, 0.92);
  --sidebar-muted: rgba(255, 255, 255, 0.48);
  --sidebar-active: rgba(125, 211, 252, 0.14);
  --sidebar-active-bar: var(--turquoise);

  --danger: #c0262d;
  --danger-bg: #fef2f2;
  --ok: #047857;
  --ok-bg: #d1fae5;

  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --lg-navy: #0f2346;
  --lg-deep: #061028;
  --lg-border-rgb: 142, 190, 255;
  --lg-text: #eaf3ff;
  --lg-text-soft: #cfe0ff;
  --lg-accent: #7dd3fc;

  /* Token kaca cecair */
  --glass-blur: 32px;
  --glass-blur-lg: 48px;
  --glass-sat: 175%;
  --glass-light: rgba(255, 255, 255, 0.62);
  --glass-light-strong: rgba(255, 255, 255, 0.78);
  --glass-dark: rgba(6, 10, 10, 0.48);
  --glass-dark-strong: rgba(4, 8, 8, 0.62);
  --glass-stroke: rgba(255, 255, 255, 0.38);
  --glass-stroke-dark: rgba(255, 255, 255, 0.14);
  --glass-shine-top: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --glass-shine-top-strong: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-shine-top-dark: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-depth: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 24px rgba(3, 8, 24, 0.28);
  --shadow-card: 0 12px 28px rgba(3, 8, 24, 0.33);

  --sidebar-w: 280px;
  --top-h: 64px;
  --focus: 0 0 0 3px rgba(125, 211, 252, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-page);
  background-color: var(--black);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.app-body {
  min-height: 100vh;
  overflow-x: hidden;
}
.app-body.nav-open { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*  -  -  -  App shell  -  -  -  */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 200;
  display: flex;
  flex-direction: column;
  color: var(--sidebar-text);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    var(--glass-dark) 35%,
    var(--glass-dark-strong) 100%
  );
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-shine-top-dark), 6px 0 24px rgba(0, 0, 0, 0.22);
  transform: translateX(0);
  transition: transform 0.22s ease, box-shadow 0.25s ease;
}

@media (max-width: 959.98px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow:
      var(--glass-shine-top-dark),
      12px 0 48px rgba(0, 0, 0, 0.4),
      0 0 80px rgba(125, 211, 252, 0.16);
  }
}

.sidebar-brand {
  padding: 1.25rem 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  outline-offset: 2px;
}
.sidebar-brand-link:focus-visible {
  outline: 2px solid var(--sidebar-active-bar);
}

.sidebar-brand-logo {
  height: 4.8rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sidebar-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, var(--turquoise) 40%, var(--turquoise-dim) 100%);
  color: #020403;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(59, 130, 246, 0.32),
    0 8px 28px rgba(125, 211, 252, 0.4);
}

.sidebar-brand-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sidebar-brand-title { font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.sidebar-brand-sub { font-size: 0.75rem; color: var(--sidebar-muted); }
.sidebar-quick-actions {
  margin-top: 0.8rem;
}
.sidebar-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: #f8fbff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.34);
  background: linear-gradient(165deg, rgba(148, 163, 184, 0.25) 0%, rgba(100, 116, 139, 0.3) 100%);
}
.sidebar-quick-action:hover {
  background: linear-gradient(165deg, rgba(148, 163, 184, 0.38) 0%, rgba(100, 116, 139, 0.45) 100%);
  border-color: rgba(226, 232, 240, 0.52);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.7rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.nav-group {
  margin-bottom: 1rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(148, 163, 184, 0.08) 0%, rgba(71, 85, 105, 0.06) 100%);
}
.nav-group:last-child {
  margin-bottom: 0;
}
.nav-group-label {
  margin: 0 0 0.45rem 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}
.nav-group-toggle {
  border: 1px solid rgba(203, 213, 225, 0.26);
  background: rgba(15, 23, 42, 0.34);
  color: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
}
.nav-group-toggle:hover {
  border-color: rgba(226, 232, 240, 0.44);
  background: rgba(30, 41, 59, 0.5);
}
.nav-group.is-collapsed .nav-group-list {
  display: none;
}

.nav-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group-list li + li {
  margin-top: 0.25rem;
}

.sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.16rem;
  padding: 0.58rem 0.68rem 0.6rem 0.78rem;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--sidebar-text);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.sidebar-link:hover {
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sidebar-link:focus-visible {
  box-shadow: var(--focus);
}
.sidebar-link.is-active {
  background: rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left-color: var(--sidebar-active-bar);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 14px rgba(15, 23, 42, 0.32);
}
.sidebar-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-weight: 650;
  font-size: 0.84rem;
  line-height: 1.25;
}
.sidebar-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  color: #0b1220;
  background: linear-gradient(145deg, #fef08a, #f59e0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.sidebar-link-desc {
  font-size: 0.69rem;
  color: rgba(203, 213, 225, 0.76);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-foot {
  padding: 0.9rem 0.95rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--sidebar-muted);
  background: linear-gradient(180deg, rgba(2, 6, 16, 0) 0%, rgba(2, 6, 16, 0.45) 100%);
}
.sidebar-foot-user,
.sidebar-foot-jabatan {
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.69rem;
}
.sidebar-tatacara-link {
  color: rgba(219, 234, 254, 0.9);
  font-weight: 550;
  text-decoration: none;
  margin-top: 0;
  font-size: 0.72rem;
  padding: 0.38rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.35);
}
.sidebar-tatacara-link:hover {
  color: #f8fbff;
  border-color: rgba(203, 213, 225, 0.5);
  background: rgba(30, 41, 59, 0.45);
}

.sidebar-foot-tag {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.sidebar-backdrop:not([hidden]) { display: block; }

@media (min-width: 960px) {
  .sidebar-backdrop { display: none !important; }
}

.app-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (max-width: 959.98px) {
  .app-content { margin-left: 0; }
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--top-h);
  height: auto;
  padding: 0.35rem 1rem 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  row-gap: 0.45rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    var(--glass-dark) 30%,
    rgba(4, 8, 8, 0.55) 100%
  );
  backdrop-filter: blur(24px) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(24px) saturate(var(--glass-sat));
  border-bottom: 1px solid rgba(248, 113, 113, 0.46);
  box-shadow:
    var(--glass-shine-top-dark),
    0 12px 40px rgba(0, 0, 0, 0.22),
    0 0 1px rgba(248, 113, 113, 0.38) inset;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  color: #ccfbf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle:focus-visible { box-shadow: var(--focus); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

.top-strip-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}
.top-strip-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.75);
}
.top-strip-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #f0fdfa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-strip-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.6rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.15);
  max-width: 220px;
}
.user-chip-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(145deg, var(--turquoise), var(--turquoise-dim));
  color: #020403;
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.45);
}
.user-chip-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.user-chip-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f0fdfa;
}
.user-chip-role { font-size: 0.65rem; color: rgba(153, 246, 228, 0.75); text-transform: capitalize; }

.top-strip .btn-ghost {
  color: #eaf3ff;
  border-color: transparent;
}
.top-strip .btn-ghost:hover {
  background: rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fbff;
}

.main-content {
  flex: 1;
  padding: 0 0.75rem 2rem;
}

@media (min-width: 768px) {
  .main-content { padding: 0 1.25rem 2rem; }
}

.page-inner {
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--lg-text);
  background: linear-gradient(
    180deg,
    rgba(4, 6, 12, 0.95) 0%,
    rgba(4, 6, 12, 0.95) 100%
  );
  backdrop-filter: blur(8px) saturate(105%);
  -webkit-backdrop-filter: blur(8px) saturate(105%);
  border: 1px solid rgba(128, 154, 205, 0.14);
  border-radius: var(--radius-lg);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(120, 158, 228, 0.04);
}

@media (min-width: 768px) {
  .page-inner {
    padding: 1.5rem 1.75rem 1.75rem;
    margin-top: 1.25rem;
  }
}

/*  -  -  -  Typography  -  -  -  */
h1 {
  font-size: clamp(1.28rem, 2.3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: #f3f8ff;
}
.page-inner > h1 {
  position: relative;
  padding-bottom: 0.38rem;
}
.page-inner > h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc 0%, #60a5fa 100%);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.35);
}
h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 1.75rem 0 0.65rem;
  color: #ecf4ff;
}

/* Tajuk seksyen (kad / jadual)  -  kemas & konsisten */
.page-inner > h2,
.page-inner h2.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(146, 182, 240, 0.22);
  font-size: 1rem;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #edf4ff;
}
.content-section > h2:first-child,
.page-inner h2.section-title:first-child {
  margin-top: 0;
}
.page-inner > h2::before,
.page-inner h2.section-title::before {
  content: "";
  width: 4px;
  height: 1.15em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--turquoise) 0%, var(--primary) 100%);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.35);
}

.content-section,
.section-block {
  margin-bottom: var(--space-5);
}
.content-section:last-child,
.section-block:last-child {
  margin-bottom: 0;
}
.content-section--stats {
  margin-bottom: 0.35rem;
}

/*  -  -  -  Dashboard: gaya korporat (index.php  -  body.page-dashboard-corporate)  -  -  -  */
body.page-dashboard-corporate .page-header {
  margin-bottom: 1.35rem;
  padding: 1.2rem 1.35rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.9) 48%, rgba(15, 23, 42, 0.96) 100%);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}
body.page-dashboard-corporate .page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, #b45309 0%, #d97706 38%, #1e3a8a 100%);
}
body.page-dashboard-corporate .page-header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.32rem, 2.4vw, 1.62rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 0.45rem;
  padding-left: 0.5rem;
}
body.page-dashboard-corporate .page-header .lead {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 0.5rem;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 48rem;
  color: rgba(226, 232, 240, 0.9);
}

body.page-dashboard-corporate .content-section {
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.32);
  margin-bottom: 1.15rem;
}
body.page-dashboard-corporate .content-section--stats {
  padding: 1.1rem 1.2rem 1.05rem;
  background: rgba(15, 23, 42, 0.26);
}
body.page-dashboard-corporate .content-section > h2:first-child {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e2e8f0;
}
body.page-dashboard-corporate .content-section > h2:first-child::before {
  content: "";
  width: 3px;
  height: 1em;
  border-radius: 2px;
  background: #d97706;
  flex-shrink: 0;
  box-shadow: none;
}

body.page-dashboard-corporate .stats {
  gap: 0.85rem;
  margin: 0;
}
body.page-dashboard-corporate .stat {
  min-height: 5.4rem;
  padding: 0.95rem 1rem 0.9rem;
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
body.page-dashboard-corporate .stat::before {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 4px;
  height: 100%;
  border-radius: 0;
  background: #475569;
  opacity: 1;
}
body.page-dashboard-corporate .stat[data-tone="slate"]::before {
  background: #1e40af;
}
body.page-dashboard-corporate .stat[data-tone="gold"]::before {
  background: #b45309;
}
body.page-dashboard-corporate .stat[data-tone="rose"]::before {
  background: #b91c1c;
}
body.page-dashboard-corporate .stat:not([data-tone])::before {
  background: #334155;
}
body.page-dashboard-corporate .stat:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.2);
}
body.page-dashboard-corporate .stat .n {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}
body.page-dashboard-corporate .stat .l {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.92);
  letter-spacing: 0.01em;
}

body.page-dashboard-corporate .content-section--data-quality > h2:first-child::before {
  background: #1e40af;
}

body.page-dashboard-corporate .content-section--data-quality .content-section__lead {
  margin: -0.35rem 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 42rem;
  color: rgba(203, 213, 225, 0.88) !important;
}

body.page-dashboard-corporate .content-section--data-quality .alerts-grid {
  gap: 0.75rem;
  margin: 0;
}

/* Kad indikator: selari stat dashboard  -  bukan "amaran" merah penuh */
body.page-dashboard-corporate .content-section--data-quality .data-alert-card {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 3.35rem;
  border-radius: 10px;
  padding: 0.75rem 1rem 0.75rem 1.05rem;
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #d97706;
  opacity: 1;
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-card.is-ok::before {
  background: #15803d;
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.16);
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-card strong {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(241, 245, 249, 0.96);
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-num {
  flex-shrink: 0;
  min-width: 2.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-card:not(.is-ok) .data-alert-num {
  background: rgba(120, 53, 15, 0.35);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}
body.page-dashboard-corporate .content-section--data-quality .data-alert-card.is-ok .data-alert-num {
  background: rgba(20, 83, 45, 0.35);
  border-color: rgba(74, 222, 128, 0.28);
  color: #dcfce7;
}

body.page-dashboard-corporate .table-card {
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-dashboard-corporate .no-print {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
}
body.page-dashboard-corporate .no-print .btn.primary {
  border-radius: 8px;
  font-weight: 600;
}

@media print {
  body.page-dashboard-corporate .page-header::before,
  body.page-dashboard-corporate .content-section > h2:first-child::before {
    display: none;
  }
  body.page-dashboard-corporate .content-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
  }
}

/* Panel borang / blok kandungan  -  selari dengan kad jadual */
.panel-card {
  color: var(--lg-text);
  background: linear-gradient(
    145deg,
    rgba(15, 35, 70, 0.72) 0%,
    rgba(13, 30, 60, 0.68) 52%,
    rgba(6, 16, 40, 0.74) 100%
  );
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  border-radius: var(--radius);
  padding: var(--space-4) calc(var(--space-4) + 0.1rem) calc(var(--space-4) + 0.15rem);
  margin: var(--space-3) 0 var(--space-5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-card);
  max-width: 52rem;
}
.panel-card > h2:first-child,
.panel-card > h3:first-child {
  margin-top: 0;
}
.panel-card .form-grid {
  margin-bottom: 0;
}

/* Halaman pendaftaran / penerimaan  -  beberapa kad berturutan */
.pendaftaran-stack,
.penerimaan-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1.5rem;
  counter-reset: bpp-pen-step 0;
}
.pendaftaran-stack > .panel-card,
.penerimaan-stack > .panel-card {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto var(--space-3);
}
.pendaftaran-stack > .panel-card:last-child,
.penerimaan-stack > .panel-card:last-child {
  margin-bottom: 0;
}
.pendaftaran-stack .panel-card .form-grid,
.penerimaan-stack .panel-card .form-grid {
  max-width: 66rem;
  margin: 0;
}
.panel-card > .subsection-title:first-child {
  margin-top: 0;
}
.form-grid.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Label berbeza tinggi (1 vs 2 baris)  -  jajar tapak input dalam baris yang sama */
.form-grid.form-grid--2 > label {
  align-self: end;
}
.form-grid.form-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (max-width: 720px) {
  .form-grid.form-grid--2 {
    grid-template-columns: 1fr;
  }
}
.pendaftaran-stack__footer {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: var(--space-4) var(--space-4);
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  background: linear-gradient(
    165deg,
    rgba(8, 22, 48, 0.55) 0%,
    rgba(6, 14, 32, 0.72) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 28px rgba(3, 8, 24, 0.28);
}
@media (min-width: 720px) {
  .pendaftaran-stack__footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
.pendaftaran-stack__footer-hint {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: 100%;
  line-height: 1.45;
}
@media (min-width: 720px) {
  .pendaftaran-stack__footer-hint {
    flex: 1 1 12rem;
    max-width: 28rem;
    width: auto;
  }
}

/*  -  -  -  Pendaftaran / Penerimaan / Senarai aset  -  susun atur korporat  -  -  -  */
.pendaftaran-shell,
.penerimaan-shell,
.senarai-aset-shell,
.bgh-shell {
  max-width: 72rem;
  margin: 0 auto;
}
.pendaftaran-intro,
.penerimaan-intro,
.senarai-aset-intro,
.bgh-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--lg-border-rgb), 0.22);
  background: linear-gradient(
    155deg,
    rgba(12, 28, 58, 0.55) 0%,
    rgba(6, 16, 36, 0.72) 48%,
    rgba(4, 12, 28, 0.78) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 40px rgba(3, 8, 24, 0.32);
}
@media (min-width: 900px) {
  .pendaftaran-intro,
  .penerimaan-intro,
  .senarai-aset-intro:not(.senarai-aset-intro--solo),
  .bgh-intro {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: start;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-5) var(--space-6);
  }
}
/* Borang butiran senarai aset  -  bertingkat korporat */
.senarai-aset-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto var(--space-5);
}
.senarai-aset-detail-stack > .panel-card {
  width: 100%;
  margin: 0 0 var(--space-3);
}
.senarai-aset-detail-stack > .panel-card:last-of-type {
  margin-bottom: 0;
}
.senarai-aset-detail-stack .pendaftaran-stack__footer {
  max-width: none;
  width: 100%;
  margin-top: var(--space-2);
}
.senarai-aset-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: var(--space-2) 0 var(--space-3);
}
.senarai-aset-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.senarai-aset-fact {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--lg-border-rgb), 0.22);
  background: rgba(15, 23, 42, 0.26);
}
.senarai-aset-fact--wide {
  grid-column: 1 / -1;
}
.senarai-aset-fact__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.88);
}
.senarai-aset-fact__value {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.5;
  color: #f1f7ff;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 720px) {
  .senarai-aset-facts {
    grid-template-columns: 1fr;
  }
}
.senarai-aset-detail-meta p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.875rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.senarai-aset-detail-meta p strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.88);
  margin-bottom: 0.2rem;
}
.panel-card--senarai-padam {
  border-color: rgba(248, 113, 113, 0.32);
  background: linear-gradient(
    165deg,
    rgba(127, 29, 29, 0.22) 0%,
    rgba(15, 35, 70, 0.65) 45%,
    rgba(6, 16, 40, 0.72) 100%
  );
}
.senarai-aset-padam-actions {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.2);
}
.senarai-aset-padam-sah {
  flex-direction: row;
  align-items: flex-start;
}
.senarai-aset-padam-sah .senarai-aset-padam-sah__text {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(234, 243, 255, 0.95);
}
.senarai-aset-padam-sah input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.senarai-aset-detail-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 720px) {
  .senarai-aset-detail-footer-btns {
    width: auto;
  }
}
.senarai-aset-komponen-wrap {
  margin-top: var(--space-1);
}

.senarai-aset-intro--solo {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .senarai-aset-intro--solo {
    grid-template-columns: 1fr;
    padding: var(--space-4) var(--space-5) var(--space-5);
  }
}
.pendaftaran-intro__eyebrow,
.penerimaan-intro__eyebrow,
.senarai-aset-intro__eyebrow,
.bgh-intro__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(165, 220, 252, 0.88);
}
.pendaftaran-intro__title,
.penerimaan-intro__title,
.senarai-aset-intro__title,
.bgh-intro__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f4f9ff;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pendaftaran-intro__title::after,
.penerimaan-intro__title::after,
.senarai-aset-intro__title::after,
.bgh-intro__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc 0%, #60a5fa 100%);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.35);
}
.pendaftaran-intro__subtitle,
.penerimaan-intro__subtitle,
.senarai-aset-intro__subtitle,
.bgh-intro__subtitle {
  margin: 0 0 var(--space-3);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(207, 224, 255, 0.88);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pendaftaran-intro__bullets,
.penerimaan-intro__bullets,
.senarai-aset-intro__bullets,
.bgh-intro__bullets {
  margin: 0 0 var(--space-4);
  padding: 0.65rem 0.85rem 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--lg-border-rgb), 0.2);
  background: rgba(2, 8, 22, 0.35);
  color: rgba(234, 243, 255, 0.95);
  font-size: 0.84rem;
  line-height: 1.55;
}
.pendaftaran-intro__bullets li + li,
.penerimaan-intro__bullets li + li,
.senarai-aset-intro__bullets li + li,
.bgh-intro__bullets li + li {
  margin-top: 0.35rem;
}
.pendaftaran-intro__nav,
.penerimaan-intro__nav,
.senarai-aset-intro__nav,
.bgh-intro__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.pendaftaran-intro__link,
.penerimaan-intro__link,
.senarai-aset-intro__link,
.bgh-intro__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #b8e4ff;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  background: rgba(148, 163, 184, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pendaftaran-intro__link:hover,
.penerimaan-intro__link:hover,
.senarai-aset-intro__link:hover,
.bgh-intro__link:hover {
  color: #f0f9ff;
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.14);
}
/* Pautan dalam ayat bullet intro  -  warna lebih terang daripada pautan badan halaman */
.pendaftaran-intro__inline-link,
.penerimaan-intro__inline-link,
.senarai-aset-intro__inline-link,
.bgh-intro__inline-link {
  color: #e8f7ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.75);
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}
.pendaftaran-intro__inline-link:hover,
.penerimaan-intro__inline-link:hover,
.senarai-aset-intro__inline-link:hover,
.bgh-intro__inline-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}
.pendaftaran-intro__metrics,
.penerimaan-intro__metrics,
.senarai-aset-intro__metrics,
.bgh-intro__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pendaftaran-metric {
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  background: rgba(15, 23, 42, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pendaftaran-metric__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.82);
  margin-bottom: 0.35rem;
}
.pendaftaran-metric__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fbff;
  font-variant-numeric: tabular-nums;
}
.pendaftaran-metric__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(207, 224, 255, 0.82);
}
.pendaftaran-metric__doc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(226, 236, 255, 0.92);
}
.pendaftaran-context {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 72rem;
  margin: 0 auto var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.38);
  background: linear-gradient(
    135deg,
    rgba(6, 78, 59, 0.42) 0%,
    rgba(4, 47, 46, 0.5) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pendaftaran-context__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.pendaftaran-context__body {
  min-width: 0;
  flex: 1;
}
.pendaftaran-context__line {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: #ecfdf5;
}
.pendaftaran-context__sep {
  opacity: 0.55;
  padding: 0 0.2rem;
}
.pendaftaran-context__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.78rem;
  color: rgba(209, 250, 229, 0.9);
}
.pendaftaran-context__date {
  color: rgba(204, 251, 241, 0.85);
}

.pendaftaran-stack > .panel-card:not(.panel-card--skip-step),
.penerimaan-stack > .panel-card:not(.panel-card--skip-step) {
  position: relative;
  counter-increment: bpp-pen-step;
  /* Ruang untuk nombor langkah + ikon tajuk  -  elak bertindih dengan tajuk panjang */
  padding-left: calc(var(--space-4) + 2.45rem);
}
.pendaftaran-stack > .panel-card:not(.panel-card--skip-step)::before,
.penerimaan-stack > .panel-card:not(.panel-card--skip-step)::before {
  content: counter(bpp-pen-step, decimal-leading-zero);
  position: absolute;
  left: var(--space-3);
  top: var(--space-4);
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0b1220;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.95), rgba(96, 165, 250, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 12px rgba(37, 99, 235, 0.35);
}
@media (max-width: 520px) {
  .pendaftaran-stack > .panel-card:not(.panel-card--skip-step),
  .penerimaan-stack > .panel-card:not(.panel-card--skip-step) {
    padding-left: var(--space-4);
  }
  .pendaftaran-stack > .panel-card:not(.panel-card--skip-step)::before,
  .penerimaan-stack > .panel-card:not(.panel-card--skip-step)::before {
    display: none;
  }
}

.panel-card--pendaftaran-aux {
  border-style: dashed;
  border-color: rgba(var(--lg-border-rgb), 0.32);
  background: linear-gradient(
    165deg,
    rgba(15, 35, 70, 0.45) 0%,
    rgba(8, 20, 44, 0.52) 100%
  );
}

.panel-card.pendaftaran-details {
  padding: 0;
  overflow: hidden;
}
.pendaftaran-details__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4) calc(var(--space-4) + 0.1rem);
  margin: 0;
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  transition: background 0.15s ease;
}
.pendaftaran-details__summary::-webkit-details-marker {
  display: none;
}
.pendaftaran-details__summary::marker {
  content: "";
}
.pendaftaran-details__summary:hover {
  background: rgba(125, 211, 252, 0.06);
}
.pendaftaran-details__summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(125, 211, 252, 0.45);
}
.pendaftaran-details__summary .subsection-title__icon {
  margin-top: 0.1rem;
}
.pendaftaran-details__summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.pendaftaran-details__summary-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lg-text);
  letter-spacing: -0.01em;
}
.pendaftaran-details__summary-sub {
  font-size: 0.78rem;
  font-weight: 500;
}
.pendaftaran-details__body {
  padding: 0 calc(var(--space-4) + 0.1rem) var(--space-4);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.18);
}
.pendaftaran-details[open] .pendaftaran-details__summary {
  border-bottom: 1px solid rgba(var(--lg-border-rgb), 0.12);
}
.pendaftaran-details[open] > .pendaftaran-details__summary {
  margin-bottom: 0;
}
.pendaftaran-details .pendaftaran-details__body .form-grid:first-of-type {
  margin-top: var(--space-3);
}

/* Senarai penerimaan  -  blok jadual selari intro */
.penerimaan-list-section {
  max-width: 72rem;
  margin: var(--space-5) auto var(--space-5);
  padding-top: var(--space-1);
  border-top: 1px solid rgba(120, 160, 220, 0.18);
}
.penerimaan-list-section > .subsection-title:first-child {
  margin-top: 0;
}
.penerimaan-list-section .table-card {
  margin-top: var(--space-2);
}

/* Blok borang penerimaan  -  hierarki korporat */
.penerimaan-lead {
  line-height: 1.5;
  max-width: 52rem;
}
.penerimaan-form-section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.2);
}
.penerimaan-form-section--first {
  margin-top: var(--space-3);
  padding-top: 0;
  border-top: 0;
}
.penerimaan-form-section__title {
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.92);
}
.penerimaan-form-section__sub {
  margin: -0.1rem 0 var(--space-2);
  line-height: 1.45;
}
.penerimaan-form-section__hint {
  margin: var(--space-2) 0 0;
  line-height: 1.45;
}
.penerimaan-lampiran-a .penerimaan-form-section__stack {
  max-width: none;
  width: 100%;
  margin: 0;
}
.penerimaan-textarea-compact {
  min-height: 4.5rem;
}
.penerimaan-jabatan-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  align-self: stretch;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--lg-border-rgb), 0.26);
  background: rgba(15, 23, 42, 0.38);
}
.penerimaan-jabatan-chip__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.78);
}
.penerimaan-jabatan-chip__value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: 0.04em;
}
.penerimaan-lampiran-b__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.penerimaan-lampiran-b__intro .penerimaan-lampiran-legend {
  margin: 0;
}
.penerimaan-item-rows {
  counter-reset: bpp-pen-item;
}
.penerimaan-item-rows .item-row--penerimaan {
  counter-increment: bpp-pen-item;
}
@media (min-width: 521px) {
  .penerimaan-item-rows .item-row--penerimaan {
    position: relative;
    padding-left: 2.35rem;
  }
  .penerimaan-item-rows .item-row--penerimaan::before {
    content: counter(bpp-pen-item, decimal-leading-zero);
    position: absolute;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0b1220;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(186, 230, 253, 0.9), rgba(125, 211, 252, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(3, 8, 24, 0.25);
  }
}
.penerimaan-item-toolbar {
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.16);
}

.penerimaan-lampiran-a__subhead {
  margin: var(--space-4) 0 var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.88);
}
.penerimaan-lampiran-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: var(--space-2) 0 var(--space-1);
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--lg-border-rgb), 0.22);
  background: rgba(2, 8, 22, 0.28);
}
.penerimaan-lampiran-legend__a,
.penerimaan-lampiran-legend__b {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.penerimaan-lampiran-legend__a {
  color: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.18);
}
.penerimaan-lampiran-legend__b {
  color: #fff7ed;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(245, 158, 11, 0.14);
}
.penerimaan-stack.is-penolakan .penerimaan-lampiran-b {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(245, 158, 11, 0.22),
    0 12px 32px rgba(3, 8, 24, 0.28);
}

/* Jadual sempit (contoh: komponen dalam butiran aset) */
.table-card--fit table.data {
  min-width: 0;
}

/* Fallback untuk modul lama: jika form/jadual belum dibalut card */
.page-inner > form.form-grid:not(.pendaftaran-stack):not(.penerimaan-stack) {
  color: var(--lg-text);
  background: linear-gradient(
    145deg,
    rgba(15, 35, 70, 0.72) 0%,
    rgba(13, 30, 60, 0.68) 52%,
    rgba(6, 16, 40, 0.74) 100%
  );
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  border-radius: var(--radius);
  padding: var(--space-4) calc(var(--space-4) + 0.1rem) calc(var(--space-4) + 0.15rem);
  margin: var(--space-3) 0 var(--space-5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-card);
  max-width: none !important;
}
.page-inner > form.form-grid:not(.pendaftaran-stack):not(.penerimaan-stack) label {
  color: rgba(234, 243, 255, 0.95);
}
.page-inner > table.data {
  color: var(--lg-text);
  background: linear-gradient(
    165deg,
    rgba(15, 35, 70, 0.74) 0%,
    rgba(9, 22, 50, 0.7) 100%
  );
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-card);
  margin: 0 0 var(--space-5);
  overflow: hidden;
}

.subsection-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  margin: var(--space-5) 0 var(--space-2);
  color: var(--ink);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(12, 28, 26, 0.2);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Teks tajuk sebagai flex item  -  elak teks "tertepi" bertindih medan borang (min-width:auto lalai) */
.subsection-title__text {
  flex: 1 1 0%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.panel-card .subsection-title {
  color: var(--lg-text);
  border-bottom-color: rgba(157, 201, 255, 0.28);
}
.panel-card .muted,
.panel-card .small {
  color: rgba(207, 224, 255, 0.9);
}
.panel-card label {
  color: rgba(235, 244, 255, 0.95);
}
.panel-card code {
  color: #d9ebff;
}
.subsection-title__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--lg-text);
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.34), rgba(59, 130, 246, 0.32));
  border: 1px solid rgba(147, 197, 253, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 10px rgba(2, 8, 23, 0.35);
}
.lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 42rem;
}
.muted { color: rgba(207, 224, 255, 0.84); }
.small { font-size: 0.85rem; }

/* Paparan skrin: pengenalan modul (terus selepas h1) selari dengan .lead  -  bukan pudar .muted */
@media screen {
  .page-inner > h1 + p.muted {
    color: var(--lg-text);
  }
}

.page-header {
  margin-bottom: 1.5rem;
  padding: 0.2rem 0 1rem;
  border-bottom: 1px solid rgba(120, 160, 220, 0.2);
  background: linear-gradient(180deg, rgba(14, 34, 72, 0.14) 0%, rgba(8, 18, 40, 0) 100%);
  border-radius: 12px;
}

/*  -  -  -  Stats (dashboard)  -  -  -  */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  align-items: stretch;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 5.75rem;
  color: #f1f7ff;
  background: linear-gradient(
    145deg,
    rgba(18, 38, 82, 0.72) 0%,
    rgba(10, 26, 58, 0.68) 100%
  );
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(150, 196, 255, 0.24);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #7dd3fc, #60a5fa);
  opacity: 0.95;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--glass-shine-top),
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(125, 211, 252, 0.18);
  border-color: rgba(125, 211, 252, 0.36);
}
.stat[data-tone="gold"]::before { background: linear-gradient(90deg, #2563eb, #7dd3fc, #3b82f6); }
.stat[data-tone="slate"]::before { background: linear-gradient(90deg, #1d4ed8, #1e3a8a); }
.stat[data-tone="rose"]::before { background: linear-gradient(90deg, #be123c, #f43f5e); }

.stat .n {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4f9ff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  display: block;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(214, 231, 255, 0.86);
  line-height: 1.45;
  text-transform: none;
}

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin: 0.2rem 0 1.25rem;
}
.data-alert-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff5f5;
  background: linear-gradient(160deg, rgba(127, 29, 29, 0.58), rgba(69, 10, 10, 0.62));
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 22px rgba(0, 0, 0, 0.26);
}
.data-alert-card.is-ok {
  color: #e8fff5;
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.58), rgba(2, 44, 34, 0.64));
  border-color: rgba(52, 211, 153, 0.34);
}
.data-alert-card strong {
  font-size: 0.8rem;
  line-height: 1.3;
}
.data-alert-num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/*  -  -  -  Tables  -  -  -  */
.table-card {
  color: var(--lg-text);
  background: linear-gradient(
    165deg,
    rgba(15, 35, 70, 0.74) 0%,
    rgba(9, 22, 50, 0.7) 100%
  );
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 36px rgba(3, 8, 24, 0.44);
  margin: 0 0 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(125, 211, 252, 0.65) rgba(8, 18, 16, 0.35);
  scrollbar-width: thin;
}
.table-card::-webkit-scrollbar {
  height: 8px;
}
.table-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.table-card::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.45);
  border-radius: 4px;
}
.table-card::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 211, 252, 0.7);
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border: 1px solid rgba(var(--lg-border-rgb), 0.3);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--lg-text);
}
table.data thead {
  position: relative;
  z-index: 1;
}
table.data th,
table.data td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-right: 1px solid rgba(157, 201, 255, 0.18);
  border-bottom: 1px solid rgba(157, 201, 255, 0.16);
  vertical-align: middle;
}
table.data th:last-child,
table.data td:last-child {
  border-right: none;
}
table.data th:first-child,
table.data td:first-child {
  padding-left: 1.15rem;
}
table.data th:last-child,
table.data td:last-child {
  padding-right: 1.15rem;
}
table.data th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #eef5ff;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(10, 22, 48, 0.98) 0%, rgba(8, 18, 40, 0.98) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(var(--lg-border-rgb), 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.table-card table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
}
table.data td {
  font-weight: 500;
}
table.data tbody tr {
  transition: background 0.16s ease, transform 0.16s ease;
}
table.data tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}
table.data tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.055);
}
table.data tbody tr:hover {
  background: rgba(125, 211, 252, 0.22);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.18);
}
table.data tbody tr:hover td {
  border-bottom-color: rgba(147, 197, 253, 0.3);
}
.table-card.table-density-compact table.data {
  font-size: 0.82rem;
}
.table-card.table-density-compact table.data th,
.table-card.table-density-compact table.data td {
  padding: 0.5rem 0.7rem;
}
.table-card.table-density-compact table.data th {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}
.table-card.table-card--center table.data th,
.table-card.table-card--center table.data td {
  text-align: center;
}
.table-card.table-card--center table.data td .form-inline-actions {
  justify-content: center;
}
table.data tbody tr:last-child td {
  border-bottom: none;
}
table.data td.muted,
table.data td[colspan] {
  text-align: center;
  color: rgba(207, 224, 255, 0.9);
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
  vertical-align: middle;
}
table.data td[colspan] a {
  font-weight: 600;
}
table.data a {
  color: #8ec5ff;
  font-weight: 700;
  text-decoration: none;
}
table.data a:hover {
  text-decoration: underline;
  color: #c3e2ff;
}
table.data th.cell-end,
table.data td.cell-end {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
table.data th.cell-nowrap,
table.data td.cell-nowrap {
  white-space: nowrap;
}

/*  -  -  -  Forms  -  -  -  */
.form-grid {
  display: grid;
  gap: var(--space-3);
  max-width: 40rem;
  margin: var(--space-3) 0;
}
/* Anak terus grid meregang mengikut lajur  -  elak butang hantar selebar borang */
.form-grid > button,
.form-grid > input[type="submit"],
.form-grid > input[type="button"],
.form-grid > input[type="reset"] {
  justify-self: start;
  width: auto;
  max-width: 100%;
}
.form-grid label,
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(232, 242, 255, 0.94);
}

input,
select,
textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(30, 48, 46, 0.18);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
input:hover,
select:hover,
textarea:hover { border-color: rgba(15, 118, 110, 0.35); }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(125, 184, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.34), 0 0 0 1px rgba(125, 211, 252, 0.3) inset;
  background-color: rgba(246, 250, 255, 0.98);
}
input:required:valid,
select:required:valid,
textarea:required:valid {
  border-color: rgba(74, 222, 128, 0.65);
}
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(248, 113, 113, 0.78);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}
textarea { min-height: 6rem; resize: vertical; }

/* Elak gaya input teks kena pada radio/checkbox (boleh nampak "berframe"). */
input[type="radio"],
input[type="checkbox"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: auto;
  height: auto;
  accent-color: #60a5fa;
}

/*  -  -  -  Buttons  -  -  -  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(189, 198, 212, 0.34);
  background: linear-gradient(165deg, rgba(148, 163, 184, 0.3) 0%, rgba(100, 116, 139, 0.38) 100%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  color: #eef5ff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.btn:hover {
  background: linear-gradient(165deg, rgba(163, 176, 196, 0.38) 0%, rgba(114, 130, 154, 0.46) 100%);
  border-color: rgba(203, 213, 225, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 4px 16px rgba(51, 65, 85, 0.28);
}
.btn:focus-visible { box-shadow: var(--focus); outline: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled,
.btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: bpp-spin 0.7s linear infinite;
}

.btn.primary {
  background: linear-gradient(165deg, rgba(226, 232, 240, 0.36) 0%, rgba(148, 163, 184, 0.52) 42%, rgba(100, 116, 139, 0.62) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.52);
  color: #f3f9ff;
  font-weight: 700;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(71, 85, 105, 0.35),
    0 6px 24px rgba(51, 65, 85, 0.35);
}
.btn.primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(165deg, rgba(241, 245, 249, 0.45) 0%, rgba(148, 163, 184, 0.58) 52%, rgba(100, 116, 139, 0.66) 100%);
  color: #f7fbff;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.55),
    0 8px 32px rgba(71, 85, 105, 0.42);
}

.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8125rem; }
.btn {
  min-height: 2rem;
  align-items: center;
  justify-content: center;
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(203, 213, 225, 0.34);
  color: #eaf3ff;
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.28); }

@keyframes bpp-spin {
  to { transform: rotate(360deg); }
}

.btn.danger {
  background: linear-gradient(165deg, rgba(148, 163, 184, 0.3) 0%, rgba(100, 116, 139, 0.38) 100%);
  border-color: rgba(189, 198, 212, 0.34);
  color: #eef5ff;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  color: #eaf3ff;
  background: linear-gradient(
    135deg,
    rgba(105, 145, 135, 0.58) 0%,
    rgba(78, 115, 105, 0.52) 100%
  );
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(8, 22, 20, 0.24);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.toolbar--tight {
  margin-bottom: 1rem;
}
.toolbar-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.toolbar--pro {
  justify-content: space-between;
  gap: 0.75rem 0.9rem;
}
.toolbar--pro .toolbar-form {
  flex: 1 1 620px;
}
.toolbar-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.density-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn-density.is-active {
  background: rgba(125, 211, 252, 0.22);
  border-color: rgba(125, 211, 252, 0.5);
  color: #f3f9ff;
}
.form-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.search-input-sm { min-width: 220px; }
.search-input-md { min-width: 260px; }
.panel-max-52 { max-width: 52rem; }
.form-max-40 { max-width: 40rem; }
.form-max-36 { max-width: 36rem; margin-bottom: 0.75rem; }
.table-card-gap { margin-bottom: 1.25rem; }
.empty-state-compact { padding: 0.75rem 1rem; margin: 0; }
.kelulusan-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}
.catatan-input { min-width: 10rem; max-width: 14rem; }
.qr-caption-top { margin: 0 0 0.35rem; }
.qr-caption-bottom { margin: 0.45rem 0 0; }
.qr-image {
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}
.zebra-qr-card-preview {
  margin-top: 0.85rem;
  width: 100%;
}
.zebra-qr-card {
  display: grid;
  grid-template-columns: 1fr 102px;
  gap: 0.45rem;
  border: 1px solid rgba(157, 201, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem;
}
.zebra-qr-card__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zebra-qr-card__brand {
  margin: 0 0 0.32rem;
  text-align: center;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
}
.zebra-qr-card__brand-logo {
  display: inline-block;
  height: 20px !important;
  width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  object-position: center center;
  border-radius: 2px;
}
.zebra-qr-card__title {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  color: #dbeafe;
  max-height: 2.2em;
  overflow: hidden;
  word-break: break-word;
  text-align: center;
}
.zebra-qr-card__name {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  color: #f8fafc;
  word-break: break-word;
  text-align: center;
}
.zebra-qr-card__code {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: #e2e8f0;
  word-break: break-word;
  text-align: center;
}
.zebra-qr-card__footer {
  margin: 0.35rem 0 0;
  padding-top: 0;
  font-size: 0.68rem;
  line-height: 1.15;
  font-weight: 700;
  font-family: Arial, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-align: center;
}
.zebra-qr-card__right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.zebra-qr-card__qr-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}
.zebra-qr-card__qr {
  display: block;
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}
.zebra-qr-card__qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid rgba(17, 24, 39, 0.5);
  box-sizing: border-box;
}
.panel-max-64 { max-width: 64rem; }
.panel-max-58 { max-width: 58rem; }
.panel-max-46 { max-width: 46rem; }
.panel-max-44 { max-width: 44rem; }
.panel-max-42 { max-width: 42rem; }
.panel-max-40 { max-width: 40rem; }
.panel-max-36 { max-width: 36rem; }
.grid-auto-200 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.grid-auto-200 > * {
  min-width: 0;
}
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 560px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}
.grid-2-col-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.col-span-full {
  grid-column: 1 / -1;
}
.align-self-end {
  align-self: end;
}
.justify-self-start {
  justify-self: start;
}
.is-hidden {
  display: none !important;
}
.row-actions-start {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Pengguna  -  blok katalaluan: lebar terkawal, tindakan seimbang, elak sempadan "ralat" merah semasa kosong */
.pengguna-form-block {
  grid-column: 1 / -1;
}
.pengguna-form-block--password {
  justify-self: center;
  width: min(100%, 26rem);
  max-width: min(100%, 26rem);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.22);
  text-align: center;
}
.pengguna-form-block__title {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.9);
}
.pengguna-form-block__hint {
  margin: 0 0 var(--space-3);
  line-height: 1.45;
}
.pengguna-form-block__fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.pengguna-form-block__fields label {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  align-items: center;
}
.pengguna-form-block__fields input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.form-grid .pengguna-form-block--password input[type="password"]:invalid {
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75);
}
.form-grid .pengguna-form-block--password input[type="password"]:invalid:focus {
  border-color: rgba(125, 184, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.34),
    0 0 0 1px rgba(125, 211, 252, 0.3) inset;
}
.form-grid .pengguna-form-block--password input[type="password"]:required:valid {
  border-color: rgba(74, 222, 128, 0.55);
}
.pengguna-form-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.14);
}
.pengguna-form-block__actions .btn.primary {
  min-width: 7.5rem;
}

/*
 * Percubaan UI  -  modul Pengguna (pengguna.php) sahaja:
 * butang utama "pill" + sempadan biru lembut (selari tema gelap).
 * Buang kelas bpp-ui-trial--pengguna daripada pembungkus jika tidak mahu gaya ini.
 */
.bpp-ui-trial--pengguna .btn.primary {
  border-radius: 999px;
  padding: 0.52rem 1.45rem;
  letter-spacing: 0.02em;
  background: linear-gradient(
    165deg,
    rgba(30, 41, 59, 0.92) 0%,
    rgba(15, 23, 42, 0.96) 48%,
    rgba(2, 6, 23, 0.98) 100%
  );
  border: 1px solid rgba(125, 211, 252, 0.55);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(56, 189, 248, 0.22),
    0 4px 22px rgba(37, 99, 235, 0.3);
}
.bpp-ui-trial--pengguna .btn.primary:hover {
  filter: brightness(1.08);
  border-color: rgba(186, 230, 253, 0.78);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(125, 211, 252, 0.38),
    0 6px 28px rgba(37, 99, 235, 0.4);
}
.bpp-ui-trial--pengguna .btn.primary:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(125, 211, 252, 0.35),
    0 4px 22px rgba(37, 99, 235, 0.3),
    0 0 0 3px rgba(96, 165, 250, 0.45);
}
.bpp-ui-trial--pengguna .pengguna-form-block__actions > .btn:not(.primary) {
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  border-color: rgba(148, 163, 184, 0.42);
  background: linear-gradient(165deg, rgba(51, 65, 85, 0.45) 0%, rgba(30, 41, 59, 0.55) 100%);
}

.text-margin-reset {
  margin: 0;
}
.text-margin-tight-top {
  margin-top: -0.35rem;
}
.mt-1 {
  margin-top: 1rem;
}
.input-year-sm {
  width: 6rem;
}

/* Kemasan konsisten (skrin): toolbar + tindakan jadual, tidak sentuh borang PDF */
@media screen {
  .toolbar input[type="search"],
  .toolbar input[type="text"],
  .toolbar select {
    min-height: 2.1rem;
  }
  .toolbar .btn {
    min-height: 2.1rem;
  }
  .toolbar form > * {
    margin: 0;
  }

  table.data td .btn,
  table.data td button.btn,
  .form-inline-actions .btn {
    min-height: 1.9rem;
    padding: 0.28rem 0.62rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border-radius: 9px;
  }
  .form-inline-actions {
    gap: 0.4rem !important;
    align-items: center;
  }
  .form-inline-actions input[type="text"],
  .form-inline-actions input[type="search"] {
    min-height: 1.9rem;
  }
}

/* Penapis aktif (chips) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.35rem 0 0.9rem;
}
.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.1rem 0 0.75rem;
}
.filter-preset {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  background: rgba(148, 163, 184, 0.1);
  color: #eaf3ff;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
}
.filter-preset:hover {
  background: rgba(148, 163, 184, 0.2);
}
.filter-preset.is-active {
  background: rgba(125, 211, 252, 0.18);
  border-color: rgba(125, 211, 252, 0.46);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  background: rgba(125, 211, 252, 0.1);
  color: #eaf3ff;
  font-size: 0.72rem;
  line-height: 1.2;
}
.result-count {
  margin: -0.2rem 0 0.75rem;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.9);
}
.result-mode {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  background: rgba(148, 163, 184, 0.14);
  color: #eaf3ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}
.summary-card {
  border: 1px solid rgba(var(--lg-border-rgb), 0.26);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.1);
  padding: 0.6rem 0.7rem;
}
.summary-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.summary-card-link:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 10px 20px rgba(4, 10, 26, 0.2);
}
.summary-card__label {
  margin: 0;
  font-size: 0.71rem;
  color: rgba(226, 232, 240, 0.88);
}
.summary-card__value {
  margin: 0.25rem 0 0;
  font-size: 1.03rem;
  font-weight: 700;
  color: #f8fbff;
}
.summary-card--ok {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.36);
}
.summary-card--warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.34);
}
.summary-card--danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.36);
}
.summary-card--info {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.34);
}
.summary-card--violet {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(196, 181, 253, 0.36);
}
.summary-card.is-active {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
}

.empty-state-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-filter-reset {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(203, 213, 225, 0.32);
  color: #eef5ff;
}
.btn-filter-reset:hover {
  background: rgba(148, 163, 184, 0.28);
}

.detail-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.2);
}

.detail-card {
  max-width: 52rem;
  border: 1px solid rgba(var(--lg-border-rgb), 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(4, 10, 26, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 34px rgba(4, 10, 26, 0.38);
}
.card-head {
  margin: -0.1rem -0.1rem 0.85rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgba(var(--lg-border-rgb), 0.22);
  position: relative;
}
.card-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.35rem;
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.95), rgba(96, 165, 250, 0.35));
}
.card-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.9);
}
.card-title {
  margin: 0;
  font-size: 1.03rem;
}
.card-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.88);
}
.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.6rem 0 0;
}
.card-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  background: rgba(148, 163, 184, 0.14);
  color: #edf4ff;
  font-size: 0.72rem;
  line-height: 1.2;
}
.card-chip--info {
  background: rgba(125, 211, 252, 0.14);
  border-color: rgba(125, 211, 252, 0.38);
}
.card-chip--kumpulan {
  font-weight: 700;
}
.card-chip--kumpulan-h {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.48);
}
.card-chip--kumpulan-r {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(196, 181, 253, 0.5);
}
.card-chip--soft {
  background: rgba(148, 163, 184, 0.18);
}
.card-chip--status {
  font-weight: 700;
  text-transform: capitalize;
}
.card-chip--status.status-aktif,
.card-chip--status.status-lulus,
.card-chip--status.status-disahkan,
.card-chip--status.status-siap {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
}
.card-chip--status.status-menunggu,
.card-chip--status.status-menunggu-pentadbir,
.card-chip--status.status-menunggu-kelulusan-kj {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.48);
}
.card-chip--status.status-tolak,
.card-chip--status.status-ditolak,
.card-chip--status.status-rosak,
.card-chip--status.status-hilang {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.48);
}
.card-divider {
  border-top: 1px solid rgba(var(--lg-border-rgb), 0.2);
  margin: 0.65rem 0 0.35rem;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.95rem;
}
.detail-meta-grid p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.aset-detail-card {
  max-width: 1080px;
  min-height: 520px;
  margin: 0 0 1rem;
  padding: 1rem 1rem 0.9rem;
}
.aset-detail-shell {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  border-radius: var(--radius);
  overflow: hidden;
}
.aset-detail-main {
  padding: 0.85rem 1rem 0.4rem;
}
.aset-detail-side {
  border-left: 1px solid rgba(var(--lg-border-rgb), 0.24);
  padding: 0.85rem 0.85rem 0.6rem;
  text-align: center;
}
.aset-detail-main p {
  margin: 0;
}
@media (max-width: 900px) {
  .aset-detail-shell { grid-template-columns: 1fr; }
  .aset-detail-side { border-left: 0; border-top: 1px solid rgba(var(--lg-border-rgb), 0.24); }
}
@media (max-width: 720px) {
  .detail-meta-grid { grid-template-columns: 1fr; }
}

.empty-state-block {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(157, 201, 255, 0.34);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
}
table.data td.empty-state-cell {
  background: rgba(148, 163, 184, 0.1);
  border-top: 1px dashed rgba(157, 201, 255, 0.3);
  border-bottom: 1px dashed rgba(157, 201, 255, 0.3);
}

/* Status pill standard */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.17rem 0.5rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid rgba(203, 213, 225, 0.34);
  background: rgba(148, 163, 184, 0.18);
  color: #eef5ff;
  text-transform: capitalize;
}
.status-pill.status-aktif,
.status-pill.status-lulus,
.status-pill.status-disahkan,
.status-pill.status-siap {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
}
.status-pill.status-menunggu,
.status-pill.status-menunggu-pentadbir,
.status-pill.status-menunggu-kelulusan-kj {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.48);
}
.status-pill.status-tolak,
.status-pill.status-ditolak,
.status-pill.status-rosak,
.status-pill.status-hilang {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.48);
}
.status-pill.status-draf {
  background: rgba(148, 163, 184, 0.22);
  border-color: rgba(203, 213, 225, 0.4);
}
.status-pill.status-disahkan {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
}
.status-pill.status-penolakan-sebahagian {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.48);
}

/*  -  -  -  Alerts  -  -  -  */
.alert {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.alert-success {
  background: rgba(209, 250, 229, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--ok);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.alert-error {
  background: rgba(254, 242, 242, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.alert-close {
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  line-height: 1;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.alert-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.alert.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

/*  -  -  -  Footer  -  -  -  */
.site-footer {
  margin-top: auto;
  padding: 1rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, var(--glass-dark-strong) 100%);
  backdrop-filter: blur(28px) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(28px) saturate(var(--glass-sat));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-footer-inner p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(204, 251, 241, 0.92);
  line-height: 1.45;
  max-width: 56rem;
}

/*  -  -  -  Login  -  -  -  */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .login-page { grid-template-columns: 1fr 1fr; }
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 2rem 2.5rem;
  min-height: 280px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(100% 90% at 10% 0%, rgba(125, 211, 252, 0.45) 0%, transparent 45%),
    radial-gradient(70% 60% at 100% 30%, rgba(96, 165, 250, 0.22) 0%, transparent 40%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.92) 0%, rgba(10, 18, 18, 0.88) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) {
  .login-hero {
    min-height: 100vh;
    justify-content: center;
    padding: 3rem;
    border-bottom: none;
    border-right: 1px solid rgba(125, 211, 252, 0.4);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

.login-hero-logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 0.45rem;
}

/* Lebih besar daripada tajuk; tanpa bingkai/kotak */
.login-hero-logo {
  height: clamp(6.5rem, 22vw, 10rem);
  width: auto;
  max-width: min(100%, 18rem);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.login-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: #fff;
  line-height: 1.2;
  max-width: 22rem;
}
.login-hero p {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
  background:
    radial-gradient(85% 55% at 88% 12%, rgba(56, 189, 248, 0.14) 0%, transparent 48%),
    radial-gradient(65% 45% at 8% 88%, rgba(96, 165, 250, 0.1) 0%, transparent 42%),
    radial-gradient(50% 40% at 50% 50%, rgba(15, 23, 42, 0.4) 0%, transparent 65%),
    var(--bg-page);
  background-color: var(--black);
}
@media (min-width: 900px) {
  .login-panel { padding: 3rem; }
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  color: #edf5ff;
  background: linear-gradient(
    148deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(125, 211, 252, 0.08) 28%,
    rgba(19, 40, 86, 0.42) 52%,
    rgba(6, 14, 34, 0.52) 100%
  );
  backdrop-filter: blur(var(--glass-blur-lg)) saturate(calc(var(--glass-sat) * 1.15));
  -webkit-backdrop-filter: blur(var(--glass-blur-lg)) saturate(calc(var(--glass-sat) * 1.15));
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(125, 211, 252, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 80px rgba(96, 165, 250, 0.18);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -55% -30% auto -25%;
  height: 85%;
  background: radial-gradient(ellipse 85% 65% at 35% 0%, rgba(255, 255, 255, 0.26), transparent 58%);
  pointer-events: none;
  opacity: 0.55;
}
.login-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -70% -40%;
  height: 75%;
  background: radial-gradient(ellipse 70% 55% at 70% 100%, rgba(56, 189, 248, 0.14), transparent 60%);
  pointer-events: none;
}
.login-card > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 480px) {
  .login-card { padding: 2rem 2rem 2.25rem; }
}

.login-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f9ff;
  text-align: center;
}
.login-card .login-sub {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: rgba(214, 231, 255, 0.86);
  text-align: center;
}

.login-card .form-grid { margin: 0; max-width: none; }

/* Paksa semua teks dalam kad login ke tengah. */
.login-card {
  text-align: center;
}

.login-card .login-field__label {
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(232, 242, 255, 0.94);
  text-align: center;
}

.login-card .alert {
  text-align: center;
}

.login-card .login-field__control {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.28rem 0.45rem 0.28rem 0.55rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 12px rgba(0, 0, 0, 0.12);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-card .login-field__control:focus-within {
  border-color: rgba(165, 210, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 16px rgba(56, 189, 248, 0.12);
}

.login-card .login-field__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: rgba(186, 230, 253, 0.92);
  opacity: 0.95;
}

.login-card .login-field__icon svg {
  display: block;
}

.login-card .login-field__input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.48rem 0.45rem;
  border: none !important;
  border-radius: calc(var(--radius-sm) - 2px);
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none !important;
  text-align: center;
  transition: background-color 0.15s ease;
}

.login-card .login-field__input::placeholder {
  color: rgba(15, 23, 42, 0.42);
}

.login-card .login-field__input:hover {
  background: rgba(255, 255, 255, 0.92);
}

.login-card .login-field__input:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
  background: rgba(252, 253, 255, 0.96);
}

.login-card .login-field__input:required:valid {
  border-color: transparent !important;
  box-shadow: none !important;
}

.login-card .login-field__input:invalid:not(:placeholder-shown) {
  border-color: transparent !important;
  box-shadow: none !important;
}

.login-card .form-grid > .login-card__submit {
  margin-top: 0.25rem;
  justify-self: center;
  padding-inline: 1.35rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    165deg,
    rgba(96, 165, 250, 0.42) 0%,
    rgba(37, 99, 235, 0.55) 48%,
    rgba(23, 52, 122, 0.72) 100%
  );
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(186, 230, 253, 0.42);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 28px rgba(56, 189, 248, 0.14);
  color: #f8fafc;
}

.login-card .form-grid > .login-card__submit:hover {
  border-color: rgba(224, 242, 254, 0.55);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 36px rgba(56, 189, 248, 0.22);
}

.login-card .form-grid > .login-card__submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.login-foot {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(151, 198, 255, 0.24);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(214, 231, 255, 0.86);
}
.login-foot a {
  color: #9ed0ff;
  font-weight: 700;
  text-decoration: none;
}
.login-foot a:hover {
  text-decoration: underline;
  color: #d3e9ff;
}

/*  -  -  -  Misc  -  -  -  */
.row-items { display: grid; gap: 0.5rem; margin: 0.5rem 0; }
.item-row {
  display: grid;
  grid-template-columns: 1fr 2fr 80px 80px;
  gap: 0.5rem;
  align-items: end;
}
.item-row--penerimaan {
  /* Jangan warisi align-items:end dari .item-row  -  boleh ganggu grid berbilang baris */
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.28);
}
@media (max-width: 960px) {
  .item-row--penerimaan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .item-row--penerimaan {
    grid-template-columns: 1fr;
  }
  .item-row--penerimaan > .item-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.item-row--penerimaan > label {
  margin: 0;
  min-width: 0;
  align-self: stretch;
}
.item-row--penerimaan > label input,
.item-row--penerimaan > label select,
.item-row--penerimaan > label textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.item-row--penerimaan > .item-row-actions {
  align-self: end;
}
.item-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.item-row-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.4rem 0 0.2rem;
}
.pemeriksaan-checkset {
  margin: 0.2rem 0 0.25rem;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.8rem;
  background: rgba(15, 23, 42, 0.22);
}
.pemeriksaan-checkset > legend {
  padding: 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(224, 236, 255, 0.9);
}
.pemeriksaan-checkset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.pemeriksaan-check {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tick title"
    "tick sub";
  align-items: start;
  gap: 0.12rem 0.52rem;
  padding: 0.58rem 0.62rem;
  border: 1px solid rgba(var(--lg-border-rgb), 0.22);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.35);
}
.pemeriksaan-check input[type="checkbox"] {
  grid-area: tick;
  margin-top: 0.15rem;
}
.pemeriksaan-check-main {
  grid-area: title;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f6ff;
}
.pemeriksaan-check-sub {
  grid-area: sub;
  font-size: 0.72rem;
  color: rgba(207, 224, 255, 0.82);
  line-height: 1.35;
}
/* Kad kebenaran modul (Pengguna)  -  tanpa baris sub nama fail .php */
.pemeriksaan-check--modul-kebenaran {
  grid-template-areas: "tick title";
  grid-template-rows: auto;
  align-items: center;
  min-height: 2.85rem;
}
.pemeriksaan-check--modul-kebenaran .pemeriksaan-check-main {
  line-height: 1.35;
}
@media (max-width: 720px) {
  .item-row { grid-template-columns: 1fr; }
  .item-row-actions {
    justify-content: flex-start;
  }
  .pemeriksaan-checkset-grid {
    grid-template-columns: 1fr;
  }
}

/* Pelupusan  -  checklist aset & pilihan PEP (gaya korporat selari pemeriksaan) */
.pelupusan-checkset {
  margin: 0.15rem 0 0.2rem;
  border: 1px solid rgba(var(--lg-border-rgb), 0.28);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.85rem;
  background: rgba(15, 23, 42, 0.22);
  min-width: 0;
}
.pelupusan-checkset > legend {
  padding: 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(224, 236, 255, 0.9);
}
.pelupusan-checklist-scroll {
  max-height: 16rem;
  overflow: auto;
  padding: 0.15rem 0.1rem 0.05rem;
  margin: 0 -0.15rem;
  scrollbar-gutter: stable;
}
.pelupusan-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.55rem 0.6rem;
}
.pelupusan-check {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tick title"
    "tick sub";
  align-items: start;
  gap: 0.1rem 0.5rem;
  padding: 0.55rem 0.6rem;
  margin: 0;
  border: 1px solid rgba(var(--lg-border-rgb), 0.22);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pelupusan-check:hover {
  border-color: color-mix(in srgb, var(--lg-accent) 42%, transparent);
  background: rgba(30, 41, 59, 0.48);
}
.pelupusan-check:has(input:focus-visible) {
  outline: 2px solid color-mix(in srgb, var(--lg-accent) 65%, transparent);
  outline-offset: 2px;
}
.pelupusan-check input[type="checkbox"] {
  grid-area: tick;
  margin-top: 0.12rem;
}
.pelupusan-check-main {
  grid-area: title;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f6ff;
  line-height: 1.25;
  word-break: break-word;
}
.pelupusan-check-sub {
  grid-area: sub;
  font-size: 0.72rem;
  color: rgba(207, 224, 255, 0.82);
  line-height: 1.38;
  word-break: break-word;
}
.pelupusan-check--solo {
  grid-column: 1 / -1;
  align-self: stretch;
}
@media (max-width: 720px) {
  .pelupusan-checklist-grid {
    grid-template-columns: 1fr;
  }
}

hr.soft {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.75rem 0;
}

/* Pelayar tanpa backdrop-filter: kekalkan kontras tanpa kesan kaca */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar {
    background: linear-gradient(180deg, #0c1212 0%, #141c1c 100%);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.3);
  }
  .top-strip {
    background: rgba(10, 14, 14, 0.97);
  }
  .page-inner {
    background: #9bbfb4;
    backdrop-filter: none;
  }
  .stat,
  .table-card,
  .panel-card,
  .login-card {
    background: #86ae9f;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-footer {
    background: #0a0e0e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  input,
  select,
  textarea,
  .btn {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .btn.primary {
    background: linear-gradient(165deg, #e2e8f0, #94a3b8, #64748b);
    color: #f3f9ff;
    box-shadow: 0 4px 16px rgba(71, 85, 105, 0.3);
  }
  .toolbar {
    background: #7a9e90;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/*  -  -  -  Cetak borang (semua modul + log masuk)  -  -  -  */
.print-only {
  display: none !important;
}
.print-borang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.1rem;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(
    135deg,
    rgba(105, 145, 135, 0.35) 0%,
    rgba(78, 115, 105, 0.28) 100%
  );
  border: 1px solid rgba(8, 22, 20, 0.18);
  border-radius: var(--radius-sm);
}
.print-borang-bar .btn { flex-shrink: 0; }

/* Bar cetak bawah modul  -  berpusat; butang guna .btn standard dalam gelas gelap */
.print-borang-bar.print-borang-bar--end {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 0.25rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
}

/* Bungkus butang Preview/Cetak  -  selari panel gelas gelap & .btn standard */
.print-borang-bar--end__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--lg-border-rgb), 0.24);
  background: linear-gradient(
    165deg,
    rgba(15, 35, 70, 0.55) 0%,
    rgba(8, 20, 44, 0.62) 100%
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(3, 8, 24, 0.35);
}

.print-borang-bar--end__inner .btn {
  flex-shrink: 0;
}

.print-borang-hint {
  margin: 0;
  font-size: 0.8125rem;
  max-width: 36rem;
  line-height: 1.4;
}
.print-borang-meta {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0a0a0a;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #0a0a0a;
}
.print-borang-doc {
  font-weight: 700;
  font-size: 1rem;
}
.print-borang-meta-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

@media print {
  /* @page (portrait + bpp-a4-landscape) ditakrif dalam borang-rasmi.css  -  elak bercampur margin sahaja di sini */

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .print-only {
    display: block !important;
  }

  /* Hanya borang rasmi jika ada #bpp-borang-root */
  .page-inner:has(#bpp-borang-root) > :not(#bpp-borang-root) {
    display: none !important;
  }
  .page-inner:has(#bpp-borang-root) #bpp-borang-root {
    display: block !important;
  }

  .no-print,
  .sidebar,
  .sidebar-backdrop,
  .top-strip,
  .nav-toggle,
  .print-borang-bar,
  .site-footer,
  .bpp-print-preview {
    display: none !important;
  }

  /* Iframe preview: samakan dengan cetak terus (tiada padding kelabu, margin halaman serupa) */
  body.print-preview-doc {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  /* Asas teks sama untuk cetak terus & dokumen iframe preview (Chrome / Edge / Firefox) */
  body,
  body.app-body,
  body.print-preview-doc {
    background: #fff !important;
    color: #0a0a0a !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  /*
   * Borang iframe preview: .page-inner > #bpp-borang-root (cermin modul sebenar).
   * Perkukuh jika :has() lemah pada sesetengah konteks  -  lebar penuh seperti cetak terus.
   */
  body.print-preview-doc.app-body .page-inner.bpp-print-iframe-inner #bpp-borang-root {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .app-layout {
    display: block !important;
  }

  .app-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .main-content {
    padding: 0 !important;
    max-width: none !important;
  }

  .page-inner {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #0a0a0a !important;
  }

  .page-header,
  .content-section,
  .panel-card,
  .stat,
  .table-card,
  .toolbar {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    break-inside: avoid;
  }

  .table-card {
    overflow: visible !important;
  }

  .stats {
    break-inside: avoid;
  }

  .stat {
    border: none !important;
  }

  h1, h2, h3, .subsection-title {
    color: #000 !important;
    break-after: avoid;
  }

  .muted,
  .lead {
    color: #333 !important;
  }

  .alert {
    border: 1px solid #666 !important;
    background: #f5f5f5 !important;
    color: #111 !important;
    backdrop-filter: none !important;
  }

  table.data {
    min-width: 0 !important;
    font-size: 10pt;
    border: 1px solid #999 !important;
  }

  table.data th {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #333 !important;
    text-shadow: none !important;
  }

  table.data td,
  table.data th {
    border-right: 1px solid #999 !important;
    border-bottom: 1px solid #999 !important;
    padding: 0.4rem 0.5rem !important;
  }
  table.data th:last-child,
  table.data td:last-child {
    border-right: none !important;
  }

  table.data tbody tr:nth-child(even) {
    background: #f2f2f2 !important;
  }

  table.data tbody tr:hover {
    background: transparent !important;
  }

  table.data a {
    color: #000 !important;
    text-decoration: underline;
    font-weight: 600;
  }

  input,
  select,
  textarea {
    border: 1px solid #555 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  textarea {
    min-height: auto !important;
  }

  label {
    color: #111 !important;
  }

  .btn,
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"] {
    display: none !important;
  }

  .login-page {
    display: block !important;
    background: #fff !important;
  }

  .login-page .login-hero {
    display: none !important;
  }

  .login-page .login-panel {
    padding: 0 !important;
    background: #fff !important;
  }

  .login-card {
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #0a0a0a !important;
  }
}

/*  -  -  -  Modal preview cetak  -  -  -  */
.bpp-print-preview {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}
.bpp-print-preview[hidden] {
  display: none !important;
}
.bpp-print-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 10, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}
.bpp-print-preview-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(56rem, 100%);
  height: min(86vh, 52rem);
  max-height: calc(100vh - 1.5rem);
  background: linear-gradient(180deg, #121a18 0%, #0a100e 100%);
  border: 1px solid rgba(var(--lg-border-rgb), 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.bpp-print-preview-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}
.bpp-print-preview-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ecfdf5;
  letter-spacing: -0.02em;
}
.bpp-print-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.bpp-print-preview-pdf-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 1rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(204, 251, 241, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.bpp-print-preview-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #fff;
}

/**
 * Rupa preview (iframe): cerminan @media print untuk skrin.
 * Isi: body.print-preview-doc > .page-inner
 */
body.print-preview-doc {
  margin: 0 !important;
  padding: 1rem !important;
  background: #fff !important;
  color: #0a0a0a !important;
  font-family: var(--font, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Borang dalam iframe: rapatkan latar kelabu  -  fokus sama lebar dengan dialog cetak */
body.print-preview-doc.app-body {
  padding: 6px !important;
  font-size: 11pt;
  line-height: 1.45;
}

body.print-preview-doc .print-only {
  display: block !important;
}

body.print-preview-doc .no-print {
  display: none !important;
}

/* Preview log masuk / bukan borang rasmi  -  kertas tanpa bingkai kelabu */
body.print-preview-doc .page-inner:not(.bpp-print-iframe-inner),
body.print-preview-doc .bpp-print-preview-sheet {
  max-width: 210mm;
  margin: 0 auto !important;
  padding: 14mm 12mm !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #0a0a0a !important;
}

/*
 * Borang rasmi dalam iframe: cermin cetak  -  margin seperti @page portrait (borang-rasmi.css),
 * tiada bayang/bingkai, padding helai 0 (cetak menetapkan padding 0 pada .bpp-borang-sheet).
 */
body.print-preview-doc.app-body .page-inner.bpp-print-iframe-inner {
  box-sizing: border-box !important;
  max-width: 210mm !important;
  width: 210mm !important;
  margin: 0 auto !important;
  padding: 12mm 14mm !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0a0a0a !important;
}

body.print-preview-doc .page-header,
body.print-preview-doc .content-section,
body.print-preview-doc .panel-card,
body.print-preview-doc .stat,
body.print-preview-doc .table-card,
body.print-preview-doc .toolbar {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.print-preview-doc .table-card {
  overflow: auto !important;
}

body.print-preview-doc .stat {
  border: none !important;
}

body.print-preview-doc h1,
body.print-preview-doc h2,
body.print-preview-doc h3,
body.print-preview-doc .subsection-title {
  color: #000 !important;
}

body.print-preview-doc .muted,
body.print-preview-doc .lead {
  color: #333 !important;
}

body.print-preview-doc .alert {
  border: 1px solid #666 !important;
  background: #f5f5f5 !important;
  color: #111 !important;
  backdrop-filter: none !important;
}

body.print-preview-doc table.data {
  min-width: 0 !important;
  font-size: 13px;
  border: 1px solid #999 !important;
}

body.print-preview-doc table.data th {
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #333 !important;
  text-shadow: none !important;
}

body.print-preview-doc table.data td,
body.print-preview-doc table.data th {
  border-right: 1px solid #999 !important;
  border-bottom: 1px solid #999 !important;
}
body.print-preview-doc table.data th:last-child,
body.print-preview-doc table.data td:last-child {
  border-right: none !important;
}

body.print-preview-doc table.data tbody tr:nth-child(even) {
  background: #f2f2f2 !important;
}

body.print-preview-doc table.data tbody tr:hover {
  background: transparent !important;
}

body.print-preview-doc table.data a {
  color: #000 !important;
  text-decoration: underline;
  font-weight: 600;
}

body.print-preview-doc input,
body.print-preview-doc select,
body.print-preview-doc textarea {
  border: 1px solid #555 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

body.print-preview-doc label {
  color: #111 !important;
}

body.print-preview-doc .btn,
body.print-preview-doc button,
body.print-preview-doc input[type="submit"],
body.print-preview-doc input[type="button"],
body.print-preview-doc input[type="reset"] {
  display: none !important;
}

body.print-preview-doc .login-card {
  max-width: none !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #0a0a0a !important;
}

/* Force korporat center on login (hosting override-safe) */
body.login-page .login-card,
body.login-page .login-card h2,
body.login-page .login-card .login-sub,
body.login-page .login-card .login-field__label,
body.login-page .login-card .alert,
body.login-page .login-card .login-field__input,
body.login-page .login-card .login-field__input::placeholder {
  text-align: center !important;
}
body.login-page .login-card .login-field__control {
  justify-content: center !important;
}