:root {
  --maroon: #0f2b57;
  --maroon-dark: #071426;
  --maroon-light: #1668e3;
  --maroon-soft: #eff6ff;
  --navy: #071426;
  --navy-dark: #030a14;
  --blue: #1668e3;
  --blue-dark: #0f4db0;
  --blue-soft: #eff6ff;
  --cyan: #0284c7;
  --cyan-soft: #e0f2fe;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --bg: #f4f6fa;
  --white: #ffffff;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --orange: #f59e0b;
  --orange-soft: #fffbeb;
  --purple: #8b5cf6;
  --purple-soft: #f5f3ff;
  --red: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 10px 15px -6px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
h1, h2, h3, h4, b, strong { font-family: inherit; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   1. HALAMAN LOG MASUK (BACKGROUND FADED JPPKHQ + KAD MODEN)
   ============================================================ */
.login-page {
  min-height: 100vh;
  position: relative;
  background-image: url('jppkhq.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Lapisan Faded / Dark Overlay atas jppkhq */
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 20, 38, 0.90) 0%, rgba(3, 10, 20, 0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* KIRI: Brand & Showcase */
.login-brand {
  position: relative;
  background-image: url('jppkhq.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 43, 87, 0.95) 0%, rgba(7, 20, 38, 0.96) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.login-brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 24px;
}

.login-top-capsule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 18px;
  border-radius: 40px;
  backdrop-filter: blur(10px);
  width: fit-content;
}
.login-top-capsule img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.login-top-capsule span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #bae6fd;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 10px;
}

.login-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0284c7;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  width: fit-content;
  margin-bottom: 12px;
}
.login-hero-tag i {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

.login-brand h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.login-brand h1 span {
  color: #7dd3fc;
  display: block;
}
.login-brand p.desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #e0f2fe;
  margin: 0 0 20px;
  max-width: 440px;
}

/* 4 Feature Pills Grid (2x2) */
.login-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.login-pill-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
}
.login-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex: none;
}
.login-pill-icon svg { width: 16px; height: 16px; stroke: #7dd3fc; }
.login-pill-text {
  display: flex;
  flex-direction: column;
}
.login-pill-text b { font-size: 12px; color: #fff; line-height: 1.2; }
.login-pill-text small { font-size: 10px; color: #bae6fd; }

.login-brand-foot {
  font-size: 11px;
  color: #bae6fd;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* KANAN: Login Form Card */
.login-card {
  background: var(--white);
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.login-header-top img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.login-header-top div {
  display: flex;
  flex-direction: column;
}
.login-header-top b {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.25;
}
.login-header-top small {
  font-size: 11px;
  color: var(--muted);
}

.login-titles h2 {
  font-size: 23px;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.login-titles p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.input-with-icon input {
  width: 100%;
  height: 46px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 44px 0 44px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}
.input-with-icon input:focus {
  background: #fff;
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(130, 20, 34, 0.1);
}

.peek-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.peek-btn:hover { color: var(--maroon); background: #f8fafc; }

.btn-login {
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(130, 20, 34, 0.3);
  transition: all 0.2s ease;
  margin-top: 4px;
}
.btn-login:hover {
  background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon) 100%);
  transform: translateY(-1px);
}

/* Pilihan Akaun Pantas Demo / Ujian */
.quick-demo-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.quick-demo-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.quick-demo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.demo-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-align: left;
}
.demo-card:hover {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(22, 104, 227, 0.15);
  transform: translateY(-2px);
}
.demo-card.active-admin { border-left: 4px solid var(--navy); }
.demo-card.active-officer { border-left: 4px solid #0284c7; }
.demo-card.active-keyin { border-left: 4px solid var(--blue); }

.demo-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.demo-card.active-admin .demo-card-icon { background: #e0f2fe; color: var(--navy); }
.demo-card.active-officer .demo-card-icon { background: #ecfeff; color: #0284c7; }
.demo-card.active-keyin .demo-card-icon { background: var(--blue-soft); color: var(--blue); }

.demo-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.demo-card-info b { font-size: 11px; color: #1e293b; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.demo-card-info span { font-size: 9.5px; font-family: monospace; color: var(--blue); font-weight: 700; }
.demo-card-info small { font-size: 8.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

.login-card-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}
.login-card-foot b { color: #475569; }

/* ============================================================
   2. TOP NAVIGATION HEADER (LUAS, KEMAS & 100% RESPONSIVE)
   ============================================================ */
/* ============================================================
   2. APP SHELL: SIDEBAR KIRI + VIEWPORT KANAN (PERSIS e-LUPUS)
   ============================================================ */
.has-sidebar-layout {
  background: #f4f6fa;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.app-layout-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ============================================================
   SIDEBAR EKSEKUTIF ROYAL NAVY (TEMA BIRU MEWAH, CUN & 100% BLEND)
   ============================================================ */
.app-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #09172c 0%, #061020 100%);
  color: #cbd5e1;
  flex: none;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 120;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(4, 10, 24, 0.28);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}
.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* SIDEBAR BRAND BOX (LOGO PUTIH KEKAL DI ATAS SIDEBAR PERSIS GAMBAR 2) */
.sidebar-brand-box {
  height: 70px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: none;
}
.sidebar-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-logo-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.sidebar-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.sidebar-logo-sub {
  height: 24px;
  width: auto;
  object-fit: contain;
}
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SIDEBAR NAVIGATION (ROYAL NAVY DENGAN CYAN ACCENT & GLOW ACTIVE) */
.sidebar-nav {
  padding: 12px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.sidebar-section-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #64748b;
  padding: 14px 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}
.sidebar-nav-item svg {
  width: 17px;
  height: 17px;
  stroke: #64748b;
  flex: none;
  transition: stroke 0.15s, transform 0.15s;
}
.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #38bdf8;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.sidebar-nav-item:hover svg {
  stroke: #38bdf8;
}
.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.25) 0%, rgba(56, 189, 248, 0.06) 100%);
  color: #ffffff;
  font-weight: 700;
  border-left: 3.5px solid #38bdf8;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.2);
}
.sidebar-nav-item.active svg {
  stroke: #38bdf8;
}

/* ============================================================
   SLIM / COMPACT ICON-ONLY SIDEBAR (FIT-FIT, HOVER ADA PENERANGAN)
   ============================================================ */
.app-sidebar.slim-mode {
  width: 64px;
}
.app-sidebar.slim-mode .sidebar-brand-box {
  padding: 0 6px;
  justify-content: center;
}
.app-sidebar.slim-mode .sidebar-brand-link {
  justify-content: center;
}
.app-sidebar.slim-mode .brand-title-wrap {
  display: none;
}
.app-sidebar.slim-mode .brand-logo-wrap {
  padding: 4px;
}
.app-sidebar.slim-mode .sidebar-logo-sub {
  display: none;
}
.app-sidebar.slim-mode .sidebar-section-title {
  text-align: center;
  padding: 10px 0 2px;
  font-size: 8px;
}
.app-sidebar.slim-mode .sidebar-section-title span {
  display: none;
}
.app-sidebar.slim-mode .sidebar-section-title::after {
  content: "•••";
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}
.app-sidebar.slim-mode .sidebar-nav-item {
  justify-content: center;
  padding: 10px 0;
  border-radius: 10px;
}
.app-sidebar.slim-mode .sidebar-nav-item span {
  display: none;
}
.app-sidebar.slim-mode .sidebar-nav-item svg {
  width: 20px;
  height: 20px;
}

/* HOVER TOOLTIP FLOATING PILL FOR SLIM MODE & ICON BUTTONS */
.app-sidebar.slim-mode .sidebar-nav-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0b1320;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 9999;
  pointer-events: none;
  animation: tooltipIn 0.15s ease-out;
}
.app-sidebar.slim-mode .sidebar-nav-item:hover::before {
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 6px 5px 0;
  border-style: solid;
  border-color: transparent #0b1320 transparent transparent;
  z-index: 9999;
  pointer-events: none;
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* SIDEBAR FOOTER BRAND WIDGET (SEAMLESS ROYAL NAVY BLEND & MEWAH) */
.sidebar-footer-brand {
  margin-top: auto;
  padding: 12px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sf-brand-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.sf-brand-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(2, 132, 199, 0.22) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sf-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-logo-emblem {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
  padding: 4px;
}
.sf-svg-logo {
  width: 100%;
  height: 100%;
  display: block;
}
.sf-svg-logo .radar-spin {
  transform-origin: center;
  animation: radarRotate 12s linear infinite;
}
@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.sf-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sf-brand-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}
.sf-tag {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}
.sf-brand-agency {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.sf-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sf-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.sf-status-label {
  font-size: 9px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}

/* SLIM MODE UNTUK SIDEBAR FOOTER BRAND */
.app-sidebar.slim-mode .sidebar-footer-brand {
  padding: 10px 6px;
}
.app-sidebar.slim-mode .sf-brand-card {
  padding: 8px 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.app-sidebar.slim-mode .sf-brand-text,
.app-sidebar.slim-mode .sf-status-row {
  display: none;
}
.app-sidebar.slim-mode .sf-logo-emblem {
  position: relative;
}
.app-sidebar.slim-mode .sidebar-footer-brand:hover::after {
  content: "e-Pantau Inovasi v2.6 · JPPKK";
  position: absolute;
  left: calc(100% + 12px);
  bottom: 20px;
  background: #0b1320;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 9999;
  pointer-events: none;
}

/* KAWASAN KANAN (VIEWPORT UTAMA) */
.app-main-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f4f6fa;
}

/* TOPBAR ATAS (PUTIH, BERSIH, PERSIS GAMBAR 2) */
.app-top-header {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* TOPBAR BRAND LINK & CAPSULE */
.topbar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-logo-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 8px;
  flex: none;
}
.topbar-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.topbar-logo-sub {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.topbar-brand-title {
  display: flex;
  flex-direction: column;
}
.topbar-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-brand-row .brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #071426;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.topbar-brand-row .brand-pill {
  background: #b91c1c;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.topbar-brand-title .brand-subtext {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s;
  flex: none;
}
.sidebar-toggle-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sidebar-toggle-btn svg { width: 18px; height: 18px; }

.topbar-project-tag {
  font-size: 12.5px;
  color: #475569;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.topbar-project-tag b {
  color: #1e40af;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* CLOCK PILL PERSIS GAMBAR 2: (Icon Jam) 09:35:27 PM 06 Sep 2026 */
.topbar-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  color: #334155;
}
.topbar-clock-pill svg {
  width: 15px;
  height: 15px;
  stroke: #ef4444;
}
.topbar-clock-pill strong {
  font-weight: 800;
  color: #0f172a;
  font-family: monospace;
}
.topbar-clock-pill span {
  color: #64748b;
  font-size: 11px;
}

/* USER PROFILE BADGE PERSIS GAMBAR 2 */
.topbar-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}
.topbar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}
.topbar-user-meta {
  display: flex;
  flex-direction: column;
}
.topbar-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.topbar-user-role {
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  line-height: 1.2;
}

/* BUTANG LOG KELUAR OUTLINE PERSIS GAMBAR 2 */
.btn-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: #ffffff;
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #fca5a5;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-topbar-logout svg {
  width: 14px;
  height: 14px;
  stroke: #ef4444;
}
.btn-topbar-logout:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
}

/* ============================================================
   3. KANDUNGAN UTAMA (LEBAR PENUH & SELESA)
   ============================================================ */
.main-container {
  width: 100%;
  max-width: 1500px;
  margin: 0;
  padding: 24px 28px;
  flex: 1;
}

/* ============================================================
   TRADEMARK FOOTER & USAGE TRACKER (PERSIS M.S.K)
   ============================================================ */
.app-trademark-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: auto;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-left .dot-red {
  color: #b91c1c;
  font-size: 11px;
}
.footer-left strong {
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
}
.footer-left .sep {
  color: #94a3b8;
}
.footer-left .sub {
  color: #64748b;
  font-size: 11.5px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-right strong {
  color: #0f172a;
  font-weight: 800;
}
.footer-row.bottom-row .copy {
  color: #94a3b8;
  font-size: 11px;
}

/* CLICKABLE STATS CAPSULE */
.footer-stats-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.footer-stats-capsule:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.footer-stats-capsule .stats-icon {
  font-size: 12px;
}
.footer-stats-capsule .stats-label {
  font-weight: 700;
  color: #334155;
}
.footer-stats-capsule b {
  font-weight: 800;
  color: #0f172a;
}
.footer-stats-capsule .sep {
  color: #cbd5e1;
}
.footer-stats-capsule .bar {
  color: #cbd5e1;
  margin: 0 4px;
}
.footer-stats-capsule .dot-green {
  color: #16a34a;
  font-size: 10px;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

/* ============================================================
   MODAL PENGGUNA DALAM TALIAN & LOG PENGUNJUNG (TRADEMARK M.S.K)
   ============================================================ */
.visitor-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.visitor-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: min(100%, 860px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.visitor-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.head-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.head-title-wrap .modal-icon {
  font-size: 24px;
}
.head-title-wrap h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.head-title-wrap p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: #64748b;
}
.head-title-wrap code {
  color: #c026d3;
  background: #fdf4ff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.modal-btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.modal-btn-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.visitor-modal-toolbar {
  padding: 12px 24px;
  background: #fafafa;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-tab-btn {
  border: 1px solid transparent;
  background: #ffffff;
  color: #475569;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
}
.modal-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.modal-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.dot-tab-green {
  color: #4ade80;
  font-size: 9px;
}

.btn-refresh-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-refresh-online:hover {
  background: #f8fafc;
  color: #0284c7;
  border-color: #bae6fd;
}
.btn-refresh-online svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.visitor-modal-body {
  padding: 0;
  overflow-y: auto;
  max-height: 52vh;
}
.visitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.visitor-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.visitor-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.visitor-table tr:hover td {
  background: #f8fafc;
}
.user-fullname {
  font-weight: 700;
  color: #0f172a;
}
.user-handle {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}
.role-badge-modal {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
}
.role-badge-modal.hq {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.role-badge-modal.keyin {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* USER TABLE BADGES & ASSIGNMENT PILLS (WARNA LEMBUT & BERSIH) */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.role-badge.admin {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.role-badge.keyin {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.project-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}
.project-tag-pill.hq {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0369a1;
}
.project-tag-pill.assigned {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
}

.status-online-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
  font-weight: 700;
  font-size: 12px;
}
.dot-online-sm {
  font-size: 9px;
  color: #16a34a;
}

.visitor-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}
.foot-live-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 600;
}
.dot-live-green {
  font-size: 9px;
}
.btn-modal-close-action {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-modal-close-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* BREADCRUMB BAR & EASY PATAH BALIK NAVIGATION */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.btn-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.btn-back-pill:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateX(-2px);
}
.btn-back-pill svg {
  stroke: currentColor;
  flex: none;
}
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
}
.breadcrumb-trail a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.breadcrumb-trail a:hover {
  color: #0284c7;
}
.breadcrumb-trail .sep {
  color: #cbd5e1;
  font-size: 13px;
}
.breadcrumb-trail .current {
  color: #0f172a;
  font-weight: 700;
}

/* TALENT METRIC CARDS (INTEGER CLEAN LABELS) */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .talent-grid { grid-template-columns: 1fr; }
}
.talent-card {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}
.talent-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.talent-info b {
  font-size: 12.5px;
  color: #0f172a;
  display: block;
}
.talent-info small {
  font-size: 10.5px;
  color: #64748b;
}
.talent-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 10px;
  border-radius: 8px;
}
.talent-num {
  font-size: 16px;
  font-weight: 900;
  color: #0284c7;
  line-height: 1;
}
.talent-unit {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
}

/* ============================================================
   INSTITUTION BADGE & EYEBROW (PEKAT, JELAS, 100% BLEND DENGAN DASHBOARD)
   ============================================================ */
.institution-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-left: 5px solid #0284c7;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.institution-eyebrow-pill:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.institution-eyebrow-pill .inst-icon {
  font-size: 14px;
  flex: none;
}
.institution-eyebrow-pill .inst-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 4px;
}
.institution-eyebrow-pill strong {
  font-weight: 900;
  color: #0c4a6e;
  font-size: 12.5px;
  letter-spacing: -0.1px;
}

/* GENERAL EYEBROW (PEKAT, TIDAK PUDAR) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 3.5px solid #0284c7;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  line-height: 1.2;
}
.eyebrow.maroon {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-left: 3.5px solid #0284c7;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}

/* ============================================================
   4. DASHBOARD & CLEAN BUTTONS (SHADED HOVER, TIDAK SERABUT)
   ============================================================ */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}
.page-head h1 {
  font-size: 24px;
  margin: 4px 0;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.page-head p {
  color: #64748b;
  margin: 0;
  font-size: 12.5px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 20px;
}
.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

/* MODERN CLEAN BUTTONS (ACCENT + SHADED HOVER) */
.btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn.primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(2, 132, 199, 0.4);
}
.btn.primary:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}
.btn.ghost {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.btn.ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* HERO BANNER EKSEKUTIF (SEWARNA DENGAN TEMA SIDEBAR ROYAL NAVY) */
.dashboard-banner {
  background: linear-gradient(135deg, #09172c 0%, #0d223f 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 5px solid #38bdf8;
  border-radius: 14px;
  color: #ffffff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(4, 10, 24, 0.28);
}
.banner-title-area { display: flex; flex-direction: column; }
.banner-top-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.banner-badge-sub {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.banner-badge-status {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 11px 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}
.banner-badge-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: liveBadgePulse 2s infinite;
}
@keyframes liveBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
.dashboard-banner h2 {
  font-size: 24px;
  margin: 2px 0 4px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.dashboard-banner p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  max-width: 680px;
}

.banner-progress-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.banner-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(#38bdf8 calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.banner-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #09172c;
}
.banner-ring span {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
}
.banner-ring-info { display: flex; flex-direction: column; }
.banner-ring-info b { font-size: 13.5px; color: #ffffff; font-weight: 800; }
.banner-ring-info small { font-size: 11px; color: #94a3b8; }

/* 4 KAD KPI UTAMA (PERSIS MOCKUP PDF HALAMAN 6) */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.kpi-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}
.kpi-card-icon.blue-bg { background: #eff6ff; color: #2563eb; }
.kpi-card-icon.purple-bg { background: #faf5ff; color: #7e22ce; }
.kpi-card-icon.green-bg { background: #ecfdf5; color: #059669; }
.kpi-card-icon.orange-bg { background: #fff7ed; color: #ea580c; }
.kpi-card-icon svg { width: 22px; height: 22px; }

.kpi-card-body { display: flex; flex-direction: column; }
.kpi-card-body span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-card-body strong { font-size: 24px; color: #0f172a; line-height: 1.2; margin: 3px 0 2px; font-weight: 800; }
.kpi-card-body small { font-size: 10.5px; color: #94a3b8; }

/* DUA SUB-PANEL KEMBAR: PROJECT PROGRESS & BUDGET UTILISATION */
.progress-budget-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-bottom: 20px;
}
.sub-twin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.sub-twin-header {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* QUICK FILTER TABS (MILESTONE & TIMELINE) */
.quick-filter-tabs {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
  border: 1px solid #cbd5e1;
}
.qf-tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.qf-tab:hover {
  color: #0284c7;
}
.qf-tab.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* M1 -> M2 -> M3 STEPPER PIPELINE */
.milestones-m-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.m-step-card {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  position: relative;
}
.m-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.m-step-card.done {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}
.m-step-card.active {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}
.m-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-step-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.m-step-card.done .m-step-tag {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.m-step-card.active .m-step-tag {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.m-step-pct {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.m-step-card h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}
.m-step-card p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}
.m-step-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}
.m-step-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}
.m-step-card.done .m-step-progress-fill {
  background: #10b981;
}
.m-step-card.active .m-step-progress-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

/* FINANCIAL MONITORING DONUT CHART */
.donut-wrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}
@media (max-width: 768px) {
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
.donut-chart-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}
.donut-svg {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}
.donut-circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 16;
}
.donut-circle-val {
  fill: none;
  stroke: #0284c7;
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.donut-center-pct {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.donut-center-sub {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-top: 3px;
}
.budget-legend-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.budget-legend-card {
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.budget-legend-card.used {
  border-color: #bae6fd;
  background: #f0f9ff;
}
.budget-legend-card.balance {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.legend-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.legend-dot.used { background: #0284c7; }
.legend-dot.balance { background: #10b981; }
.legend-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

/* BUDGET UTILISATION BOX */
.budget-util-box {
  display: flex;
  align-items: center;
  gap: 20px;
}
.budget-big-number {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.budget-big-number span { font-size: 16px; color: var(--muted); font-weight: 600; }
.budget-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.budget-details div { font-size: 12px; display: flex; justify-content: space-between; }
.budget-details b { color: #0f172a; }
.budget-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}
.budget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 10px;
}

/* SMART-BARISTA LIVE PERFORMANCE (KAD LEBAR TENGAH PDF) */
.perf-wide-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.perf-wide-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #1e3a8a;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.perf-four-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.perf-col-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.perf-col-box strong { font-size: 28px; color: #1e40af; line-height: 1.1; font-weight: 800; }
.perf-col-box span { font-size: 11.5px; font-weight: 700; color: #475569; margin-top: 4px; }
.perf-col-box small { font-size: 10px; color: var(--muted); }

/* ============================================================
   5. STANDARD PANELS & 2-COLUMN GRIDS
   ============================================================ */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-head h3 { margin: 0 0 2px; font-size: 15px; color: #0f172a; }
.panel-head p { margin: 0; font-size: 11.5px; color: var(--muted); }
.panel-head > a { font-size: 11.5px; font-weight: 700; color: var(--blue); }

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* WORKSTREAM BARS */
.workstream-item {
  display: grid;
  grid-template-columns: 180px 1fr 45px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.workstream-item:last-child { border-bottom: none; }
.workstream-info b { font-size: 12.5px; color: #1e293b; display: block; }
.workstream-info span { font-size: 10.5px; color: var(--muted); }
.workstream-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.workstream-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}
.workstream-pct { font-size: 12.5px; font-weight: 800; text-align: right; color: #0f172a; }

/* TESTING SCOREBOARD */
.testing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.testing-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testing-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.testing-card b { font-size: 12.5px; color: #1e293b; }
.testing-card small { font-size: 10.5px; color: var(--muted); }
.testing-score-badge {
  font-size: 15px;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 6px;
}
.testing-score-badge.pending { color: #b45309; background: #fef3c7; font-size: 11px; }

/* MYIPO PATENT PIPELINE */
.ip-pipeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.ip-step {
  border: 1.5px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ip-step.completed { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ip-step.in-progress { background: #eff6ff; border-color: #93c5fd; color: #1e40af; font-weight: 800; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.ip-step.waiting { background: #f8fafc; color: #94a3b8; }
.ip-step b { font-size: 11px; line-height: 1.2; }
.ip-step small { font-size: 9px; }

/* COLLABORATION & TALENT */
.collab-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.collab-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex: none;
}
.collab-info h4 { margin: 0 0 2px; font-size: 13.5px; color: #0f172a; }
.collab-info span { font-size: 11px; font-weight: 700; color: var(--blue); }
.collab-info p { margin: 4px 0 0; font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ============================================================
   6. TABLE & FORMS
   ============================================================ */
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 10px 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  vertical-align: middle;
}
td:first-child {
  max-width: 340px;
  white-space: normal;
  line-height: 1.4;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
.inactive-row { opacity: 0.45; background: #fafafa; }

.status {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.status.done { background: #dcfce7; color: #15803d; }
.status.progress { background: #dbeafe; color: #1e40af; }
.status.pending { background: #fef3c7; color: #b45309; }
.status.off { background: #fee2e2; color: #b91c1c; }

.table-progress {
  display: inline-block;
  width: 65px;
  height: 6px;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
  margin-right: 6px;
  vertical-align: middle;
}
.table-progress i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 10px;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 3px;
}
.row-actions { display: flex; align-items: center; gap: 6px; }

/* SLEEK ICON BUTTONS WITH HOVER TOOLTIPS (FIT-FIT, TIDAK SERABUT) */
.btn-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}
.btn-action-icon svg {
  width: 14px;
  height: 14px;
}
.btn-action-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.btn-action-icon.edit:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.btn-action-icon.deact {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}
.btn-action-icon.deact:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}
.btn-action-icon.act {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.btn-action-icon.act:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #15803d;
}

/* Tooltip on hover for btn-action-icon */
.btn-action-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0b1320;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  pointer-events: none;
}
.btn-action-icon:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #0b1320 transparent transparent transparent;
  z-index: 9999;
  pointer-events: none;
}

/* SLEEK ICON ACTION BUTTON IN PANEL HEADERS (REPLACES LONG TEXT LINKS) */
.btn-panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #475569;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}
.btn-panel-action svg {
  width: 15px;
  height: 15px;
  stroke: #475569;
  transition: stroke 0.2s;
}
.btn-panel-action:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
}
.btn-panel-action:hover svg {
  stroke: #1d4ed8;
}
.btn-panel-action:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #0b1320;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 9999;
  pointer-events: none;
}
.btn-panel-action:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  right: 10px;
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #0b1320 transparent transparent transparent;
  z-index: 9999;
  pointer-events: none;
}

/* TOPBAR + CIPTA PROJEK BUTTON FOR ADMIN */
.btn-topbar-add-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(2, 132, 199, 0.4);
}
.btn-topbar-add-project:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.btn-topbar-add-project svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

/* FORMS */
.form-card { max-width: 900px; margin: 0 auto; }
.form-card.narrow { max-width: 600px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { font-size: 12px; font-weight: 700; color: #334155; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .search input {
  display: block;
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  margin-top: 5px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 227, 0.1);
}
.form-grid em { font-style: normal; color: var(--red); }
.form-grid small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.alert {
  max-width: 1600px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ============================================================
   7. LIVE CLOCK, PROJECT SWITCHER, DRAWER & TEAM STYLES
   ============================================================ */
.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: #475569;
}
.live-clock-badge svg { width: 14px; height: 14px; stroke: var(--blue); }
.live-clock-badge #live-clock-time {
  font-weight: 800;
  color: var(--navy);
  font-family: monospace;
}

.project-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 8px;
}
.project-switcher label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.project-switcher select {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
}

/* OFF-CANVAS SIDE DRAWER (RESPONSIVE MENU TEPI) */
.drawer-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.drawer-toggle-btn svg { width: 20px; height: 20px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 38, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(85vw, 320px);
  height: 100vh;
  background: #071426;
  color: #fff;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}
.side-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer-header .drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-header .drawer-brand img {
  height: 30px;
  width: auto;
}
.drawer-header .drawer-brand h3 {
  font-size: 15px;
  margin: 0;
  color: #fff;
}
.drawer-header .drawer-brand span {
  font-size: 10px;
  color: #7dd3fc;
  display: block;
}
.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.drawer-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.drawer-nav-section {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
  padding: 12px 12px 6px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.drawer-item svg { width: 18px; height: 18px; stroke: #94a3b8; }
.drawer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.drawer-item.active {
  background: var(--blue);
  color: #fff;
}
.drawer-item.active svg { stroke: #fff; }

.drawer-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

/* BUTTON WHATSAPP & CONTACT PILLS */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  transition: all 0.2s;
}
.btn-whatsapp svg { width: 14px; height: 14px; stroke: #fff; }
.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(18, 140, 126, 0.4);
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155 !important;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  transition: all 0.2s;
}
.btn-phone svg { width: 13px; height: 13px; stroke: #64748b; }
.btn-phone:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

/* TEAM MEMBERS GRID CARDS & TABLE */
.team-member-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.team-member-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.team-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0f172a;
}
.team-role {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.team-institution {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}
.team-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-light);
  padding-top: 12px;
  margin-top: 4px;
}

/* ============================================================
   8. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-budget-grid { grid-template-columns: 1fr; }
  .perf-four-cols { grid-template-columns: repeat(2, 1fr); }
  .grid-2col { grid-template-columns: 1fr; }
  .testing-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-pipeline { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .horizontal-navbar { display: none; }
  .drawer-toggle-btn { display: inline-flex; }
  .live-clock-badge { display: none; }
  .quick-demo-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .login-shell { grid-template-columns: 1fr; min-height: 100vh; border-radius: 0; }
  .login-brand { display: none; }
  .login-card { padding: 30px 20px; }
  .top-header-container { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
  .header-right { width: 100%; justify-content: space-between; }
  .main-container { padding: 16px; }
  .kpis-grid { grid-template-columns: 1fr; }
  .milestones-m-flow { grid-template-columns: 1fr; }
  .perf-four-cols { grid-template-columns: 1fr; }
  .testing-cards-grid { grid-template-columns: 1fr; }
  .ip-pipeline { grid-template-columns: repeat(2, 1fr); }
  .workstream-item { grid-template-columns: 1fr; gap: 4px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   OFFICIAL EXECUTIVE REPORT SHEET (LAPORAN RASMI JPPKK)
   ============================================================ */
.report-official-sheet {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 30px;
}
.report-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid #0f172a;
  padding-bottom: 20px;
  margin-bottom: 24px;
  gap: 20px;
}
.report-doc-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}
.report-doc-logos img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.report-doc-meta {
  text-align: right;
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}
.report-doc-title {
  text-align: center;
  margin-bottom: 24px;
}
.report-doc-title h2 {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.report-doc-title p {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin: 0;
}
.report-section {
  margin-bottom: 24px;
}
.report-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px 14px;
  border-left: 4px solid #0284c7;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-bottom: 12px;
}
.report-table th, .report-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: left;
}
.report-table th {
  background: #f8fafc;
  font-weight: 800;
  color: #1e293b;
}
.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 12px;
}
.report-meta-item {
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.report-meta-item span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.report-meta-item strong {
  color: #0f172a;
  font-size: 13px;
}
.report-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  padding-top: 15px;
}
.report-sign-box {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 16px 20px;
  background: #fafafa;
}
.report-sign-box h4 {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 45px;
  text-transform: uppercase;
}
.report-sign-line {
  border-top: 1px solid #475569;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

/* FLOATING QUICK ACTION DOCK (BUTANG UP & HOME DI TEPI - TIDAK MENUTUP FOOTER) */
.floating-side-dock {
  position: fixed;
  right: 22px;
  bottom: 82px; /* Diletakkan selamat di atas footer agar tidak menutup teks & stats */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
  transition: all 0.3s ease;
}
.floating-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.floating-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}
.floating-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}
.floating-btn.btn-home:hover {
  background: #1e40af;
  border-color: #1e40af;
}
.floating-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.floating-btn:hover::before {
  opacity: 1;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
  }
  .app-top-header,
  .app-sidebar,
  .app-trademark-footer,
  .floating-side-dock,
  .head-actions,
  .drawer-backdrop,
  .visitor-modal-backdrop,
  .btn,
  .page-head .btn,
  .sidebar-toggle-btn,
  .row-actions {
    display: none !important;
  }
  .app-layout-shell {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .app-main-layout {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .main-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .report-official-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .page-head {
    display: none !important;
  }
  .panel {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ============================================================
   MOBILE RESPONSIVE FIX — FINAL
   Pembetulan paparan mobile sahaja. Desktop asal dikekalkan.
   ============================================================ */
@media (max-width: 900px) {
  html,
  body,
  body.has-sidebar-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body.has-sidebar-layout {
    position: relative;
  }

  .app-layout-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh;
    overflow-x: hidden !important;
  }

  /* Sidebar jadi off-canvas dan TIDAK mengambil ruang layout */
  .app-sidebar,
  .app-sidebar.slim-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(82vw, 280px) !important;
    max-width: 280px !important;
    height: 100dvh !important;
    z-index: 1001 !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .app-sidebar.mobile-open,
  .app-sidebar.slim-mode.mobile-open {
    transform: translate3d(0, 0, 0) !important;
  }

  /* Kalau desktop pernah disimpan slim-mode, mobile tetap buka penuh */
  .app-sidebar.slim-mode .sidebar-brand-box { padding: 0 14px !important; }
  .app-sidebar.slim-mode .brand-logo-wrap { padding: 6px 14px !important; }
  .app-sidebar.slim-mode .sidebar-logo-sub { display: block !important; }
  .app-sidebar.slim-mode .sidebar-section-title {
    text-align: left !important;
    padding: 14px 10px 6px !important;
    font-size: 9.5px !important;
  }
  .app-sidebar.slim-mode .sidebar-section-title span { display: inline !important; }
  .app-sidebar.slim-mode .sidebar-section-title::after { content: none !important; }
  .app-sidebar.slim-mode .sidebar-nav-item {
    justify-content: flex-start !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }
  .app-sidebar.slim-mode .sidebar-nav-item span { display: inline !important; }
  .app-sidebar.slim-mode .sidebar-nav-item svg { width: 17px !important; height: 17px !important; }
  .app-sidebar.slim-mode .sidebar-footer-brand { padding: 12px 10px 14px !important; }
  .app-sidebar.slim-mode .sf-brand-card {
    padding: 10px 12px !important;
    align-items: stretch !important;
  }
  .app-sidebar.slim-mode .sf-brand-text,
  .app-sidebar.slim-mode .sf-status-row { display: flex !important; }

  .drawer-backdrop {
    z-index: 1000 !important;
  }

  /* Main viewport mesti bermula di x=0 dan ikut lebar phone */
  .app-main-viewport {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    overflow-x: hidden !important;
  }

  /* Topbar satu baris yang benar-benar muat viewport */
  .app-top-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 60px !important;
    padding: 9px 10px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  .topbar-left {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 82px) !important;
    min-width: 0 !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .sidebar-toggle-btn {
    display: inline-flex !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .project-switcher,
  .topbar-project-tag {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .project-switcher {
    padding: 3px 6px !important;
    gap: 4px !important;
  }

  .project-switcher label {
    flex: none !important;
  }

  .project-switcher select {
    display: block !important;
    flex: 1 1 0 !important;
    width: 1px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
  }

  .topbar-project-tag {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .topbar-right {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  .topbar-clock-pill,
  .topbar-user-meta {
    display: none !important;
  }

  .topbar-user-badge {
    padding: 0 !important;
    gap: 0 !important;
  }

  .topbar-user-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .btn-topbar-logout {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .btn-topbar-logout span { display: none !important; }

  /* Semua content utama tidak boleh menolak viewport keluar */
  .main-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow-x: hidden !important;
  }

  .main-container > *,
  .panel,
  .sub-twin-panel,
  .perf-wide-panel,
  .report-official-sheet,
  .form-card,
  .alert,
  .page-head,
  .institution-eyebrow-pill {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .kpis-grid,
  .progress-budget-grid,
  .milestones-m-flow,
  .perf-four-cols,
  .grid-2col,
  .testing-cards-grid,
  .form-grid,
  .talent-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ip-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .workstream-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .panel-head,
  .sub-twin-header,
  .perf-wide-title,
  .budget-util-box,
  .report-doc-head,
  .institution-eyebrow-pill {
    flex-wrap: wrap !important;
  }

  .table-wrap,
  .visitor-modal-body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    max-width: none;
  }

  img,
  svg {
    max-width: 100%;
  }

  .app-trademark-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    overflow-x: hidden !important;
  }

  .footer-row,
  .footer-left,
  .footer-right {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  .footer-stats-capsule {
    max-width: 100% !important;
    flex-wrap: wrap !important;
  }

  .floating-side-dock {
    right: 10px !important;
  }
}

@media (max-width: 600px) {
  .login-page {
    padding: 0 !important;
    align-items: stretch !important;
  }

  .login-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
  }

  .login-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 26px 20px !important;
  }

  .login-header-top {
    flex-wrap: wrap;
  }

  .quick-demo-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .project-switcher label {
    display: none !important;
  }

  .main-container {
    padding: 12px !important;
  }

  .panel,
  .sub-twin-panel,
  .perf-wide-panel {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .report-official-sheet {
    padding: 18px 12px !important;
  }

  .report-meta-grid,
  .report-sign-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ============================================================
   MOBILE POLISH V4 — visual responsive only
   Gaya mobile-card seperti rujukan #4. Tiada perubahan fungsi.
   ============================================================ */
@media (max-width: 600px) {
  /* ===== LOGIN: kad mobile kemas, bukan desktop yang dipenuhkan ===== */
  .login-page {
    min-height: 100dvh !important;
    padding: 16px !important;
    align-items: flex-start !important;
    background-attachment: scroll !important;
  }

  .login-page::before {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }

  .login-shell {
    width: 100% !important;
    max-width: 470px !important;
    min-height: auto !important;
    margin: 0 auto !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.28) !important;
  }

  .login-card {
    min-height: auto !important;
    padding: 24px 20px 22px !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  .login-header-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 26px !important;
  }

  .login-header-top img {
    width: 100% !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: 52px !important;
    object-fit: contain !important;
    justify-self: start !important;
  }

  .login-header-top > div {
    min-width: 0 !important;
  }

  .login-header-top b {
    font-size: 15px !important;
  }

  .login-header-top small {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .login-titles h2 {
    font-size: clamp(27px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    margin-bottom: 8px !important;
  }

  .login-titles p {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }

  .form-stack {
    gap: 16px !important;
  }

  .field-group input,
  .field-group select,
  .field-group textarea,
  .input-icon-wrap input {
    min-height: 52px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
  }

  .btn-login {
    min-height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    margin-top: 2px !important;
  }

  .quick-login-box {
    margin-top: 22px !important;
    padding-top: 18px !important;
  }

  .quick-demo-cards {
    gap: 10px !important;
  }

  .quick-demo-card {
    border-radius: 14px !important;
    min-height: 72px !important;
    padding: 10px 12px !important;
  }

  .login-card-foot {
    margin-top: 22px !important;
    padding-top: 16px !important;
    position: static !important;
  }

  /* ===== APP TOPBAR ===== */
  .app-top-header {
    min-height: 64px !important;
    padding: 9px 12px !important;
    gap: 8px !important;
    box-shadow: 0 2px 10px rgba(15,23,42,.06) !important;
  }

  .topbar-left {
    max-width: calc(100% - 88px) !important;
    gap: 8px !important;
  }

  .sidebar-toggle-btn {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .project-switcher,
  .topbar-project-tag {
    min-height: 38px !important;
    border-radius: 10px !important;
  }

  .project-switcher select {
    font-size: 12px !important;
  }

  .topbar-user-avatar,
  .btn-topbar-logout {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  /* ===== CONTENT FRAME ===== */
  .main-container {
    padding: 16px 14px 22px !important;
  }

  .page-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
  }

  .page-head > div:first-child {
    min-width: 0 !important;
    width: 100% !important;
  }

  .institution-eyebrow-pill {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 4px 10px !important;
    align-items: center !important;
    width: 100% !important;
    padding: 13px 14px !important;
    border-radius: 14px !important;
  }

  .institution-eyebrow-pill .inst-icon {
    grid-row: 1 / span 2 !important;
    align-self: start !important;
  }

  .institution-eyebrow-pill .inst-label,
  .institution-eyebrow-pill strong {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .page-head h1 {
    font-size: clamp(28px, 8.5vw, 36px) !important;
    line-height: 1.15 !important;
    margin: 22px 0 10px !important;
    letter-spacing: -.7px !important;
  }

  .page-head p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  .head-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .head-actions .live-indicator {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    min-height: 36px !important;
    padding: 7px 13px !important;
  }

  .head-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    border-radius: 12px !important;
    padding: 9px 10px !important;
  }

  /* ===== HERO PROJECT ===== */
  .dashboard-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    padding: 22px 18px !important;
    border-radius: 20px !important;
    margin-bottom: 18px !important;
  }

  .banner-title-area {
    width: 100% !important;
    min-width: 0 !important;
  }

  .banner-top-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .banner-badge-sub,
  .banner-badge-status {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.45 !important;
  }

  .dashboard-banner h2 {
    font-size: clamp(27px, 8vw, 34px) !important;
    line-height: 1.18 !important;
    margin: 0 0 12px !important;
    overflow-wrap: anywhere !important;
  }

  .dashboard-banner p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    max-width: none !important;
  }

  .banner-progress-box {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .banner-ring {
    width: 68px !important;
    height: 68px !important;
  }

  .banner-ring-info {
    min-width: 0 !important;
  }

  .banner-ring-info b,
  .banner-ring-info small {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* ===== CARD / PANEL MOBILE ===== */
  .kpis-grid,
  .progress-budget-grid,
  .milestones-m-flow,
  .perf-four-cols,
  .grid-2col,
  .testing-cards-grid,
  .form-grid,
  .talent-grid {
    gap: 12px !important;
  }

  .kpi-card,
  .panel,
  .sub-twin-panel,
  .perf-wide-panel,
  .form-card,
  .report-official-sheet {
    border-radius: 16px !important;
  }

  .panel-head,
  .sub-twin-header,
  .perf-wide-title {
    gap: 10px !important;
    align-items: flex-start !important;
  }

  /* jadual kekal berfungsi, hanya scroll dalam kad */
  .table-wrap {
    border-radius: 12px !important;
  }

  /* floating controls tak tutup kandungan */
  .floating-side-dock {
    right: 12px !important;
    bottom: 18px !important;
    gap: 8px !important;
  }
}

@media (max-width: 380px) {
  .head-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .head-actions .live-indicator {
    grid-column: auto !important;
  }
  .dashboard-banner {
    padding: 18px 15px !important;
  }
}
