/* ==========================================================================
   SIMON-SDM LEMIGAS - Official Stylesheet
   Kementerian Energi dan Sumber Daya Mineral Republik Indonesia
   Balai Besar Pengujian Minyak dan Gas Bumi "LEMIGAS"
   ========================================================================== */

:root {
  /* Brand ESDM & LEMIGAS Executive Palette */
  --lemigas-navy-dark: #0A1628;      /* Executive Midnight Navy */
  --lemigas-navy: #0F223C;           /* Official LEMIGAS Deep Navy (Sidebar & Identity) */
  --lemigas-navy-card: #FFFFFF;      /* Pure White Surface */
  --lemigas-navy-light: #1E3A5F;     /* Elevated Nav Hover */
  --lemigas-gold: #D97706;           /* Lemigas Gold Accent (Warm High Contrast on Light) */
  --lemigas-gold-light: #B45309;     /* Deep readable gold */
  --lemigas-yellow: #CA8A04;         /* ESDM Flame Yellow */
  --lemigas-gold-subtle: rgba(217, 119, 6, 0.12);
  --lemigas-teal: #0D9488;
  --lemigas-teal-light: #0F766E;
  --lemigas-teal-subtle: rgba(13, 148, 136, 0.12);
  --lemigas-blue: #0284C7;
  --lemigas-blue-light: #0369A1;
  --lemigas-blue-subtle: rgba(2, 132, 199, 0.12);

  /* Clean Executive Bright / Light Theme Tokens (Warna Cerah & High Contrast) */
  --bg-page: #F1F5F9;                /* Clean Slate-Ice Page Background (Warna Cerah) */
  --surface: #FFFFFF;                /* Pure White Card Surface */
  --surface-alt: #F8FAFC;            /* Subtle Light Slate Surface */
  --surface-card: #FFFFFF;           /* Card Body */
  --ink-primary: #0F172A;            /* Deep Midnight Navy (Crystal Clear Text) */
  --ink-secondary: #334155;          /* Crisp Charcoal Slate */
  --ink-muted: #64748B;              /* Soft Muted Slate */
  --border-line: #E2E8F0;            /* Crisp Subtle Gray Border */
  --border-subtle: #CBD5E1;          /* Defined Outline */
  --border-focus: #D97706;           /* LEMIGAS Gold Focus Ring */

  /* State Colors */
  --success: #059669;
  --success-subtle: rgba(5, 150, 105, 0.12);
  --warning: #D97706;
  --warning-subtle: rgba(217, 119, 6, 0.12);
  --danger: #DC2626;
  --danger-subtle: rgba(220, 38, 38, 0.12);
  --info: #0284C7;
  --info-subtle: rgba(2, 132, 199, 0.12);

  /* Typography & Sizing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

/* Modern Executive Scrollbars (Thin, Sleek & Non-Intrusive) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
}

html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
}

/* ==========================================================================
   Layout: Sidebar + Main Content
   ========================================================================== */

.app-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 275px;
  background: var(--lemigas-navy);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

.sidebar-header {
  padding: 16px 14px 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar-brand-box {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-brand-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.sidebar-brand-logo {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

.sidebar-brand-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px;
}

.sidebar-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lemigas-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
}

.emblem-icon {
  font-size: 24px;
}

.sidebar-title-group h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1.2;
}

.sidebar-title-group .sub {
  font-size: 11px;
  color: var(--lemigas-gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar-title-group .agency {
  font-size: 10px;
  color: #94A3B8;
  display: block;
}

/* Nav Menu */
.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 1px;
  padding: 12px 14px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 3px;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: var(--lemigas-gold-light);
  border-color: rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.nav-item .icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.nav-item .badge-pill {
  margin-left: auto !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 3px 8px !important;
  min-height: 20px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.3px !important;
  background: rgba(245, 158, 11, 0.16) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
}

.nav-item:hover .badge-pill {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-0.5px) !important;
}

/* Executive Detail Modal Header Override */
.modal-header.modal-header-detail {
  background: linear-gradient(135deg, #071527 0%, #0F223C 50%, #1E3A5F 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.modal-header.modal-header-detail h3 {
  color: #FFFFFF !important;
}

.modal-header.modal-header-detail #detailNipTitle {
  color: #94A3B8 !important;
}

.modal-container-detail {
  box-shadow: 0 25px 60px -15px rgba(15, 34, 60, 0.45), 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid #CBD5E1 !important;
}

.nav-item .badge-pill.badge-pill-amber {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2) !important;
}

.nav-item .badge-pill.badge-pill-cyan {
  background: rgba(14, 165, 233, 0.16) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.2) !important;
}

.nav-item .badge-pill.badge-pill-rose {
  background: rgba(244, 63, 94, 0.16) !important;
  color: #FDA4AF !important;
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 1px 4px rgba(244, 63, 94, 0.2) !important;
}

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

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--lemigas-teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-info {
  font-size: 12px;
}

.user-name {
  font-weight: 600;
  color: #FFFFFF;
}

.user-role {
  color: #94A3B8;
  font-size: 11px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.main-content {
  margin-left: 275px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - 275px);
  overflow-x: hidden;
}

/* Topbar */
.topbar {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border-line) !important;
  backdrop-filter: blur(20px);
  padding: 10px 24px !important;
  height: 56px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-brand-badge {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 8px !important;
  height: 32px !important;
  background: #FFFFFF !important;
  border-radius: 6px !important;
  border: 1px solid #E2E8F0 !important;
  flex-shrink: 0 !important;
}

.topbar-logo-img {
  height: 24px !important;
  max-width: 90px !important;
  object-fit: contain !important;
}

@media (max-width: 991px) {
  .topbar-brand-badge {
    display: flex !important;
  }
}

.topbar-title-wrap {
  min-width: 0;
  flex: 1;
}

.topbar-headline-box {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-app-tag {
  font-size: 11px;
  font-weight: 800;
  color: #1E293B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.topbar-sep {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 600;
  flex-shrink: 0;
}

.topbar-page-headline {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-mobile-menu {
  display: none;
  background: #F1F5F9 !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--ink-primary) !important;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Role Selector Badge */
.role-switcher-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC !important;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle) !important;
}

.role-switcher-box label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B !important;
  text-transform: uppercase;
}

.role-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A !important;
  outline: none;
  cursor: pointer;
}

.role-select option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

/* Official LEMIGAS Action Buttons */
.btn-train-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-sizing: border-box;
}
.btn-train-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: 1px solid #FBBF24;
  color: #0A192F;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}
.btn-train-primary:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  transform: translateY(-1px);
}
.btn-train-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}
.btn-train-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
}
.btn-train-icon {
  font-size: 13px;
  line-height: 1;
}
.topbar-action-svg {
  width: 15px;
  height: 15px;
  display: block;
}
.topbar-btn-svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Page Container */
.page-container {
  padding: 26px 28px;
  flex: 1;
}

/* View Sections */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Cards, Stats & Grids
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Metrics Grid & Cards (Standardizing Modern Executive 5-Column Dashboard Grid) */
.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

@media (max-width: 1400px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 576px) {
  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

.metric-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-line) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px 20px !important;
  box-shadow: var(--shadow-sm) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  cursor: pointer !important;
  user-select: none !important;
}

.metric-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -6px rgba(15, 34, 60, 0.12), 0 4px 8px -4px rgba(15, 34, 60, 0.06) !important;
}

.metric-card:active {
  transform: translateY(-1px) scale(0.99) !important;
}

.metric-card .metric-info {
  display: flex;
  flex-direction: column;
}

.metric-card .metric-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--ink-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 4px !important;
}

.metric-card .metric-value {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 2px 0 4px 0 !important;
  line-height: 1.2 !important;
}

.metric-card .metric-sub {
  font-size: 11px !important;
  color: var(--ink-secondary) !important;
  font-weight: 500 !important;
}

.metric-card .metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-info .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A !important;
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}

.stat-info .stat-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.gold { background: var(--lemigas-gold-subtle); color: var(--lemigas-gold); }
.stat-icon.teal { background: var(--lemigas-teal-subtle); color: var(--lemigas-teal); }
.stat-icon.blue { background: var(--lemigas-blue-subtle); color: var(--lemigas-blue); }
.stat-icon.green { background: var(--success-subtle); color: var(--success); }
.stat-icon.danger { background: var(--danger-subtle); color: var(--danger); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

/* Workflow Stepper Bar (Executive, Fluid & Zero-Slider) */
.workflow-stepper-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-top: 3px solid var(--lemigas-gold);
  border-radius: var(--radius-md);
  padding: 18px 22px 16px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: visible !important;
}

.workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.workflow-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-header h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  letter-spacing: -0.2px;
}

.workflow-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 9px;
  border-radius: 9999px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #B45309;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  cursor: help;
}

.workflow-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-muted);
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.legend-dot.green { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.legend-dot.gold { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.legend-dot.gray { background: #94A3B8; }

.stepper-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding: 10px 4px 6px 4px;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* Background Gray Track */
.stepper-flow::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: #E2E8F0;
  border-radius: 9999px;
  z-index: 1;
}

/* Dynamic Active Progress Fill Track (Step 1 to Step 4) */
.stepper-flow::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 28px;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, #10B981 0%, #10B981 70%, #F59E0B 100%);
  border-radius: 9999px;
  z-index: 1;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0 !important;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2px 2px;
}
.step-node:hover {
  transform: translateY(-2px);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-node.completed .step-num {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-color: #059669;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.step-node.active .step-num {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-color: #B45309;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(217, 119, 6, 0.4);
  transform: scale(1.1);
}

.step-title {
  font-size: 11px;
  font-weight: 700;
  color: #334155 !important;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

.step-node.active .step-title {
  color: #B45309 !important;
  font-weight: 800;
}

.step-node.completed .step-title {
  color: #065F46 !important;
}

.step-sub {
  font-size: 9.5px;
  color: #94A3B8;
  margin-top: 1px;
  white-space: nowrap;
  display: block;
}
.step-node.active .step-sub {
  color: #D97706;
  font-weight: 600;
}

/* Table Cards */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.card-title-group h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A !important;
}

.card-title-group p {
  font-size: 12px;
  color: var(--ink-muted);
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-subtabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audit-subtabs button {
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 11.5px;
}
.audit-subtabs button.active {
  background: var(--lemigas-navy) !important;
  color: #FFFFFF !important;
  border-color: var(--lemigas-navy) !important;
  box-shadow: 0 2px 6px rgba(15, 34, 60, 0.25);
}

.toolbar-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--lemigas-gold);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--lemigas-gold-light);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-action-icon-pill:hover {
  background: #B45309;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding: 8px 14px 8px 32px;
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}

.search-input-wrap input::placeholder {
  color: #94A3B8 !important;
}

.search-input-wrap input:focus {
  border-color: var(--lemigas-gold);
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 14px;
}

.select-filter {
  padding: 8px 12px;
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: none;
  background: #FFFFFF !important;
  color: #0F172A !important;
  cursor: pointer;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-line) !important;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-line) !important;
  color: #0F172A !important;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #F8FAFC !important;
}

/* Badges & Pills */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.badge-status.diajukan { background: var(--lemigas-blue-subtle); color: var(--lemigas-blue); }
.badge-status.verifikasi { background: var(--lemigas-teal-subtle); color: var(--lemigas-teal); }
.badge-status.kurang { background: var(--warning-subtle); color: #B45309; }
.badge-status.revisi { background: var(--danger-subtle); color: var(--danger); }
.badge-status.sk-terbit { background: #EDE9FE; color: #6D28D9; }
.badge-status.siap-ttd { background: var(--lemigas-gold-subtle); color: var(--lemigas-gold); }
.badge-status.aktif { background: var(--success-subtle); color: var(--success); }

.badge-role {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-role.ta { background: #E0E7FF; color: #3730A3; }
.badge-role.tk { background: #DCFCE7; color: #166534; }

/* Progress Bar */
.progress-bar-wrap {
  width: 100px;
  background: var(--surface-alt);
  height: 7px;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-bar-fill.full { background: var(--success); }
.progress-bar-fill.medium { background: var(--warning); }
.progress-bar-fill.low { background: var(--danger); }

/* ==========================================================================
   Compact Verification & Card System (High Density / Low Clutter)
   ========================================================================== */
.verif-compact-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-left: 3.5px solid var(--border-line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}
.verif-compact-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.verif-compact-card.verif-ok {
  border-left-color: var(--lemigas-teal);
}
.verif-compact-card.verif-pending {
  border-left-color: var(--lemigas-gold);
}

.verif-compact-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.verif-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.verif-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.verif-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 11.5px;
  color: var(--lemigas-gold-light);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.verif-meta-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.verif-row-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.verif-candidate-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A !important;
  line-height: 1.3;
}

.verif-position {
  font-size: 11.5px;
  font-weight: 700;
  color: #B45309 !important;
}

.verif-unit-tag {
  font-size: 10.5px;
  color: #64748B !important;
  white-space: nowrap;
}

.verif-row-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.pill-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.2;
}

.pill-mini.pill-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.pill-mini.pill-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.pill-mini.pill-blue {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
}

.pill-mini.pill-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
}

.btn-toggle-verif {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}
.btn-toggle-verif:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.verif-compact-collapse {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  animation: fadeInVerif 0.2s ease;
}

@keyframes fadeInVerif {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.verif-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.verif-micro-box {
  background: var(--surface-alt);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
}

.verif-micro-title {
  font-size: 11px;
  font-weight: 800;
  color: #0F172A !important;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verif-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 10.5px;
  color: #334155 !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  outline: none;
  text-decoration: none;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11.5px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-gold {
  background: var(--lemigas-gold);
  color: #FFFFFF;
  border-color: var(--lemigas-gold);
}

.btn-gold:hover {
  background: #B45309;
  border-color: #B45309;
}

.btn-primary {
  background: var(--lemigas-gold);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #B45309;
}

.btn-navy {
  background: var(--lemigas-navy);
  color: #FFFFFF;
}

.btn-navy:hover {
  background: var(--lemigas-navy-light);
}

.btn-teal {
  background: var(--lemigas-teal);
  color: #FFFFFF;
}

.btn-teal:hover {
  background: #0F766E;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-line);
  color: var(--ink-secondary);
}

.btn-outline:hover {
  background: var(--surface-alt);
  color: var(--ink-primary);
}

.btn-success {
  background: var(--success);
  color: #FFFFFF;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #DC2626;
}

/* ==========================================================================
   Modals & Dossier Viewer
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active,
.modal-backdrop.open,
.modal-backdrop.show {
  display: flex !important;
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

.modal-container.modal-xl {
  max-width: 1100px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-line) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC !important;
}

.modal-title-group h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A !important;
}

.modal-title-group p {
  font-size: 12px;
  color: var(--ink-muted);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #FFFFFF !important;
  color: var(--ink-primary) !important;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-line) !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC !important;
}

/* Modal Top Tab Navigation Bar (Warm, Bright & High-Contrast) */
.modal-tabs-bar {
  padding: 12px 24px 0 24px !important;
  background: #F1F5F9 !important; /* Soft warm light slate background */
  border-bottom: 2px solid #CBD5E1 !important;
}

.modal-tabs {
  display: flex;
  gap: 6px;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  overflow-x: auto;
  scrollbar-width: none;
}
.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1E293B !important; /* Deep charcoal - crisp, sharp contrast! */
  background: #E2E8F0 !important; /* Defined light tab pill */
  border: 1px solid #CBD5E1 !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer;
  border-radius: 8px 8px 0 0 !important;
  margin-bottom: -2px !important;
  white-space: nowrap !important;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.1px;
}

.modal-tab-btn:hover {
  color: #0A192F !important;
  background: #FFFFFF !important;
  border-color: #94A3B8 !important;
}

.modal-tab-btn.active {
  color: #B45309 !important; /* LEMIGAS Gold */
  background: #FFFFFF !important; /* Crisp white folder tab */
  border: 1px solid #CBD5E1 !important;
  border-bottom: 3px solid var(--lemigas-gold) !important;
  font-weight: 800 !important;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.06);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-group {
  margin-bottom: 14px;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

.form-group.col-span-3 {
  grid-column: span 3;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--ink-primary);
  outline: none;
  background: var(--surface);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--lemigas-gold);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Document Checklist Grid */
.doc-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.doc-check-card {
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.doc-check-card.verified {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.doc-check-card.missing {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--lemigas-navy);
}

.doc-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.doc-badge.yes { background: var(--success); color: #fff; }
.doc-badge.no { background: var(--danger); color: #fff; }

.doc-filename {
  font-size: 11px;
  color: var(--ink-secondary);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.doc-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   Document Letterhead & Print Layouts (Nota Dinas, KAK, SK)
   ========================================================================== */

.official-doc-paper {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 40px 45px;
  border-radius: var(--radius-sm);
  color: #000000;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.kop-surat {
  text-align: center;
  border-bottom: 3px double #000000;
  padding-bottom: 12px;
  margin-bottom: 24px;
  position: relative;
}

.kop-surat .instansi-1 {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kop-surat .instansi-2 {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kop-surat .instansi-balai {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0F172A;
  margin: 3px 0;
}

.kop-surat .alamat {
  font-size: 10.5px;
  font-family: Arial, sans-serif;
  color: #333333;
}

.doc-judul-box {
  text-align: center;
  margin: 20px 0;
}

.doc-judul-box h2 {
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.doc-meta-table {
  width: 100%;
  margin-bottom: 16px;
  font-size: 12.5px;
}

.doc-meta-table td {
  padding: 3px 6px;
  vertical-align: top;
}

.doc-body-text {
  font-size: 12.5px;
  text-align: justify;
  margin-bottom: 18px;
}

.signature-block {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 12.5px;
}

.signature-box {
  width: 250px;
  text-align: center;
}

.signature-space {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-signature {
  width: 65px;
  height: 65px;
}

/* ==========================================================================
   Visual Charts & Analytics Report Styles
   ========================================================================== */

.charts-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.charts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chart-card:hover {
  box-shadow: var(--shadow-md);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.chart-container {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 280px;
  display: block !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.chart-container canvas {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.chart-container.tall {
  height: 330px !important;
}

/* Executive Report Banner */
.executive-report-banner {
  background: linear-gradient(135deg, #0A192F 0%, #1E293B 70%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.executive-report-banner::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.report-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.report-banner-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.report-banner-title p {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 4px;
}

.banner-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.banner-metric-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}

.banner-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lemigas-gold-light);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.banner-metric-value {
  font-size: 22px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #FFFFFF;
}

.banner-metric-sub {
  font-size: 11px;
  color: #CBD5E1;
  margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .charts-grid-2,
  .charts-grid-3 {
    grid-template-columns: 1fr;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .btn-mobile-menu {
    display: inline-block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-span-2,
  .form-group.col-span-3 {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Project TRAIN Style Login Gateway & Authentication
   ========================================================================== */

.login-gateway-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 15%, rgba(217, 119, 6, 0.22) 0%, rgba(15, 23, 42, 0.96) 50%, #020617 100%);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #0B132B !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  border-radius: 28px !important;
  padding: 34px 28px !important;
  box-shadow: 0 0 50px rgba(217, 119, 6, 0.18), 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(24px);
  text-align: center;
  margin: auto;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  color: #F8FAFC;
}

.login-brand-logo-card {
  width: 220px;
  max-width: 90%;
  height: 72px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 8px 16px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.login-brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.login-tagline {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #F59E0B;
  display: block;
  margin-bottom: 6px;
}

.login-title {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF !important;
  letter-spacing: -0.5px;
  margin: 0 0 4px 0;
}

.login-subtitle {
  font-size: 12px;
  color: #94A3B8;
  margin: 0 0 4px 0;
}

.login-agency-name {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 18px;
}

.login-security-notice {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 18px 0;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}
.login-security-notice span {
  font-size: 18px;
  line-height: 1.2;
}
.login-security-notice div {
  font-size: 11px;
  color: #CBD5E1;
  line-height: 1.45;
}
.login-security-notice b {
  color: #F59E0B;
}

.login-field-group {
  text-align: left;
  margin-bottom: 13px;
  width: 100%;
}
.login-field-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94A3B8;
  display: block;
  margin-bottom: 5px;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #475569;
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.login-input-wrap:focus-within {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
  background: rgba(30, 41, 59, 1);
}
.login-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 13.5px;
  width: 100%;
}
.login-input-wrap input::placeholder {
  color: #64748B;
}

.btn-login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.4);
  margin-top: 14px;
}
.btn-login-submit:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.5);
}

.login-quick-roles {
  margin-top: 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding-top: 16px;
  width: 100%;
}
.login-quick-roles-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  margin-bottom: 10px;
}
.quick-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.quick-role-pill {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #475569;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-role-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
  color: #F59E0B;
  transform: translateY(-1px);
}

/* ==========================================================================
   Icon-Only Action Buttons & Advanced Floating Tooltips
   ========================================================================== */

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  background: var(--surface-alt);
  color: var(--ink-secondary);
  position: relative;
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  z-index: 5;
}

.btn-icon.btn-icon-navy {
  background: var(--lemigas-navy);
  color: #FFFFFF;
  border-color: var(--lemigas-navy);
}
.btn-icon.btn-icon-navy:hover {
  background: #1e3a5f;
  border-color: var(--lemigas-gold);
}

.btn-icon.btn-icon-gold {
  background: var(--lemigas-gold);
  color: #FFFFFF;
  border-color: var(--lemigas-gold);
}
.btn-icon.btn-icon-gold:hover {
  background: #B45309;
}

.btn-icon.btn-icon-teal {
  background: var(--lemigas-teal);
  color: #FFFFFF;
  border-color: var(--lemigas-teal);
}
.btn-icon.btn-icon-teal:hover {
  background: #0F766E;
}

.btn-icon.btn-icon-purple {
  background: #7C3AED;
  color: #FFFFFF;
  border-color: #7C3AED;
}
.btn-icon.btn-icon-purple:hover {
  background: #6D28D9;
}

.btn-icon.btn-icon-success {
  background: var(--success);
  color: #FFFFFF;
  border-color: var(--success);
}
.btn-icon.btn-icon-success:hover {
  background: #059669;
}

.btn-icon.btn-icon-danger {
  background: var(--danger);
  color: #FFFFFF;
  border-color: var(--danger);
}
.btn-icon.btn-icon-danger:hover {
  background: #DC2626;
}

.btn-icon.btn-icon-outline {
  background: var(--surface);
  border-color: var(--border-line);
  color: var(--ink-secondary);
}
.btn-icon.btn-icon-outline:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--lemigas-gold);
  color: var(--lemigas-gold);
}

/* Action Buttons in Tables - STRICTLY HORIZONTAL (MENDATAR) */
.btn-icon-group {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.data-table th:last-child,
.data-table td:last-child {
  white-space: nowrap;
  min-width: 155px;
  text-align: left;
}

/* Tooltip System using data-tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0F172A;
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(217, 119, 6, 0.6);
  z-index: 10000;
  line-height: 1.3;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10000;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip position: Left (used on rightmost table columns to prevent edge truncation) */
[data-tooltip-pos="left"]::before {
  bottom: auto;
  top: 50%;
  right: calc(100% + 8px);
  left: auto;
  transform: translateY(-50%) translateX(4px);
}
[data-tooltip-pos="left"]::after {
  bottom: auto;
  top: 50%;
  right: calc(100% + 2px);
  left: auto;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #0F172A;
  transform: translateY(-50%) translateX(4px);
}
[data-tooltip-pos="left"]:hover::before,
[data-tooltip-pos="left"]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Tooltip position: Bottom */
[data-tooltip-pos="bottom"]::before {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}
[data-tooltip-pos="bottom"]::after {
  top: calc(100% + 2px);
  bottom: auto;
  border-width: 0 5px 6px 5px;
  border-color: transparent transparent #0F172A transparent;
  transform: translateX(-50%) translateY(-4px);
}
[data-tooltip-pos="bottom"]:hover::before,
[data-tooltip-pos="bottom"]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Digital Signature (E-Sign BSrE LEMIGAS) Styles
   ========================================================================== */

.signature-pad-container {
  border: 2px dashed #94A3B8;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  touch-action: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}
.signature-pad-container.active-drawing {
  border-color: var(--lemigas-gold);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}
.signature-canvas {
  width: 100%;
  height: 200px;
  display: block;
  cursor: crosshair;
  background: #FCFCFD;
}
.signature-pad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
  font-size: 11.5px;
}
.signature-color-picker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px #CBD5E1;
  transition: transform 0.15s ease;
}
.color-dot.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px var(--lemigas-gold);
}

/* Choice card for Signing Method in Dossier */
.signing-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.signing-method-card {
  border: 2px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.signing-method-card:hover {
  border-color: var(--lemigas-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.signing-method-card.active {
  border-color: var(--lemigas-gold);
  background: #FFFDF5;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}
.signing-method-card .badge-recommended {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--lemigas-gold);
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* E-Sign Official Stamp Box inside SK */
.esign-official-stamp {
  border: 1.5px solid #0284C7;
  background: #F0F9FF;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  position: relative;
}
.esign-stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0284C7;
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.esign-meta-row {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.45;
  margin-top: 3px;
}
.esign-meta-row strong {
  color: #0F172A;
}
.esign-signature-preview {
  max-height: 65px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: 6px auto;
}

.calligraphy-preview {
  font-family: 'Brush Script MT', 'Dancing Script', 'Great Vibes', cursive;
  font-size: 34px;
  color: #0A192F;
  text-align: center;
  padding: 24px;
  background: #FAF8F5;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  user-select: none;
}

/* ==========================================================================
   Prominent Logout Button & Nav Styles
   ========================================================================== */

.nav-item.nav-item-logout {
  color: #EF4444 !important;
  margin-top: 10px;
  border: 1px dashed rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.05);
}
.nav-item.nav-item-logout:hover {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border-color: #EF4444;
}

.btn-logout-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  color: #DC2626;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}
.btn-logout-pill:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   Project TRAIN Theme Integration & Mobile Optimizations
   ========================================================================== */

/* Brand Logo Badges in Sidebar & Topbar */
.sidebar-brand-card {
  width: 50px;
  height: 40px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.sidebar-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.topbar-brand-badge {
  display: none;
  background: #FFFFFF;
  padding: 3px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  align-items: center;
  justify-content: center;
}

/* Mobile Compact KPI Strip (Project TRAIN Format) */
.mobile-kpi-strip {
  display: none;
  margin: 10px 14px 14px 14px;
  padding: 10px 16px;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.m-kpi-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.m-kpi-lbl {
  font-weight: 800;
  color: #475569 !important;
  letter-spacing: 0.5px;
}
.m-kpi-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #0F172A !important;
}
.m-kpi-dot {
  color: #CBD5E1 !important;
  font-weight: bold;
}

/* Mobile Floating Island Glass Dock - STRICTLY for Mobile View */
.mobile-bottom-bar {
  display: none !important; /* STRICTLY HIDDEN ON PC / DESKTOP */
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  z-index: 99990;
  padding: 4px 6px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #64748B;
  font-size: 9.5px;
  font-weight: 600;
  padding: 5px 3px;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 0;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent;
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.m-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.m-dock-svg {
  width: 19px;
  height: 19px;
  stroke: #64748B;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.m-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.2s ease;
  color: #64748B;
}

/* Active Tab: Bright Gold Pill */
.mobile-nav-item.active {
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.mobile-nav-item.active .m-dock-svg {
  stroke: #B45309;
  transform: translateY(-1px) scale(1.06);
}

.mobile-nav-item.active .m-label {
  font-weight: 800;
  color: #B45309;
}

/* Logout Tab Accent */
.mobile-nav-logout .m-dock-svg {
  stroke: #DC2626;
}
.mobile-nav-logout .m-label {
  color: #DC2626;
}
.mobile-nav-logout:active {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

/* Dynamic Dock Badge */
.m-dock-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 800;
  height: 14px;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #08172E;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* Dynamic Pulse Dot for Reports */
.m-dock-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14B8A6;
  box-shadow: 0 0 6px #14B8A6;
  border: 1.5px solid #08172E;
}

/* Project TRAIN Custom Compact Scrollbars */
.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 119, 6, 0.4) rgba(15, 23, 42, 0.6);
}
.table-responsive::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 9999px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.4);
  border-radius: 9999px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 119, 6, 0.8);
}

/* ==========================================================================
   Mobile Responsive System (Project TRAIN Obsidian Glass Pattern)
   ========================================================================== */

/* Utility Visibility Classes */
.hidden-mobile {
  display: inherit;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.72);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.sidebar-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.topbar-brand-badge {
  display: none !important;
}
.topbar-logo-img {
  height: 28px;
  max-width: 110px;
  object-fit: contain;
}
.topbar-title-wrap {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.btn-topbar-action,
.btn-topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .topbar-brand-badge {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 3px 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }

  /* Prevent Any Horizontal Viewport Leaks */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
  }
  .app-wrapper {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    padding-bottom: 75px !important;
  }

  /* Compact Topbar - Official LEMIGAS Pattern */
  .topbar {
    padding: 0 10px !important;
    gap: 8px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }
  .topbar-left {
    min-width: 0 !important;
    flex: 1 !important;
    gap: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
  }
  .btn-mobile-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    min-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
    flex-shrink: 0 !important;
  }
  .topbar-brand-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: #FFFFFF !important;
    border-radius: 6px !important;
    border: 1px solid #E2E8F0 !important;
    flex-shrink: 0 !important;
  }
  .topbar-logo-img {
    height: 16px !important;
    max-width: 50px !important;
    object-fit: contain !important;
  }
  .topbar-title-wrap {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
  }
  .topbar-headline-box {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .topbar-app-tag {
    display: none !important;
  }
  .topbar-sep {
    display: none !important;
  }
  .topbar-page-headline {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;
  }
  .breadcrumbs {
    display: none !important;
  }
  .page-headline {
    display: none !important;
  }
  .mobile-brand-title {
    display: none !important;
  }
  .topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .role-switcher-box {
    display: none !important;
  }
  .topbar-user-badge {
    display: none !important;
  }
  .btn-train-action {
    padding: 0 !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .btn-train-action .btn-train-text {
    display: none !important;
  }
  .topbar-action-svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Compact Telemetry / KPI Strip */
  .mobile-kpi-strip {
    display: flex !important;
    margin: 8px 12px 10px 12px !important;
    padding: 6px 10px !important;
    font-size: 9.5px !important;
    border-radius: 10px !important;
  }
  .m-kpi-item {
    gap: 4px !important;
  }
  .m-kpi-lbl {
    font-size: 9px !important;
  }
  .m-kpi-val {
    font-size: 11px !important;
  }

  /* Page Content Container */
  .page-container {
    padding: 10px 12px 115px 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  /* Dashboard Stats Grid (2 Columns, Balanced & Compact) */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  .stat-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .stat-info .stat-label {
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stat-info .stat-value {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 2px 0 !important;
  }
  .stat-info .stat-note {
    font-size: 9px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stat-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  /* Workflow Stepper Mobile */
  .workflow-stepper-card {
    padding: 12px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .workflow-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
  }
  .workflow-header h3 {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
  }
  .stepper-flow {
    gap: 4px !important;
    padding: 4px 2px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .stepper-flow::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .stepper-flow::before {
    top: 14px !important;
    left: 12px !important;
    right: 12px !important;
  }
  .stepper-flow::after {
    top: 14px !important;
    left: 12px !important;
  }
  .step-node {
    min-width: 42px !important;
    flex: 1 !important;
    padding: 1px !important;
  }
  .step-num {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }
  .step-title {
    font-size: 8.5px !important;
    letter-spacing: -0.2px !important;
    font-weight: 700 !important;
  }
  .step-sub {
    display: none !important;
  }

  /* Charts */
  .charts-grid-2,
  .charts-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .chart-card {
    padding: 12px 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .chart-card-header {
    margin-bottom: 8px !important;
  }
  .chart-card-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  .chart-card-sub {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  .chart-container {
    height: 275px !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .chart-container canvas {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  /* Table Cards & Headers */
  .table-card {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .table-card-header {
    padding: 12px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .card-title-group h3 {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
  }
  .card-title-group p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  /* Compact Toolbars & Search */
  .table-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    gap: 6px !important;
  }
  .search-input-wrap {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .toolbar-filters-row {
    display: flex !important;
    flex: 1 1 calc(100% - 42px) !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .toolbar-filters-row .select-filter {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 6px 8px !important;
    height: 34px !important;
    font-size: 11px !important;
  }
  .btn-action-icon-pill {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 13px !important;
  }
  .btn-action-icon-pill .btn-text-label {
    display: none !important;
  }

  /* Horizontal Scrolling Tables */
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    border-radius: 0 0 12px 12px !important;
  }
  .data-table th,
  .data-table td {
    padding: 8px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  /* Action Buttons in Tables - STRICTLY HORIZONTAL (MENDATAR), TIDY & COMPACT */
  .btn-icon-group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 4px !important;
  }
  .data-table th:last-child,
  .data-table td:last-child {
    white-space: nowrap !important;
    min-width: 155px !important;
    width: 160px !important;
    padding: 6px 8px !important;
  }
  .btn-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  /* Executive Reports View */
  .executive-report-banner {
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .report-banner-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }
  .report-banner-title h2 {
    font-size: 14.5px !important;
    line-height: 1.3 !important;
  }
  .report-banner-title p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  .report-banner-actions {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .report-banner-actions .btn {
    flex: 1 !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
    justify-content: center !important;
  }
  .banner-metrics-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .banner-metric-box {
    padding: 9px 11px !important;
    border-radius: 10px !important;
  }
  .banner-metric-label {
    font-size: 9.5px !important;
  }
  .banner-metric-value {
    font-size: 15px !important;
  }
  .banner-metric-sub {
    font-size: 9px !important;
  }
  .banner-metric-box:last-child {
    grid-column: span 2 !important;
  }

  /* Modals */
  .modal-backdrop {
    z-index: 100000 !important;
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-container {
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 90vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: auto 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 100001 !important;
  }
  .modal-header {
    padding: 14px 16px !important;
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }
  .modal-header h3 {
    font-size: 14px !important;
  }
  .modal-header p {
    font-size: 11px !important;
  }
  .modal-body {
    padding: 14px 16px !important;
    max-height: calc(90vh - 130px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 1 auto !important;
  }
  .modal-tabs-bar {
    padding: 8px 12px 0 12px !important;
    background: #F1F5F9 !important;
    border-bottom: 2px solid #CBD5E1 !important;
  }
  .modal-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    padding-bottom: 0 !important;
    scrollbar-width: none !important;
  }
  .modal-tab-btn {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 11.5px !important;
    flex-shrink: 0 !important;
    border-radius: 6px 6px 0 0 !important;
    color: #1E293B !important;
    background: #E2E8F0 !important;
  }
  .modal-tab-btn.active {
    background: #FFFFFF !important;
    color: #B45309 !important;
    border-bottom: 3px solid var(--lemigas-gold) !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .form-group.col-span-2,
  .form-group.col-span-3 {
    grid-column: span 1 !important;
  }
  .modal-footer {
    padding: 12px 16px !important;
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    flex-shrink: 0 !important;
    z-index: 20 !important;
  }
  .modal-footer .btn {
    flex: 1 !important;
    width: auto !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Bottom Navigation */
  .mobile-bottom-bar {
    display: flex !important;
  }

  /* Login Gateway Card */
  .login-card {
    padding: 24px 18px !important;
    border-radius: 22px !important;
    max-width: 92vw !important;
  }
  .login-title {
    font-size: 20px !important;
  }
  .login-subtitle {
    font-size: 12px !important;
  }
}

/* ==========================================================================
   STRICT PC / DESKTOP VIEW RULES (Width >= 769px)
   Menu panel bawah (bottom dock) HANYA untuk mobile view!
   ========================================================================== */
@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* ==========================================================================
   CUSTOM SYSTEM DIALOG MODAL (Executive LEMIGAS Clean Light Theme)
   Replaces default browser alert, confirm, and prompt
   ========================================================================== */
.custom-dialog-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100000 !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.custom-dialog-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.custom-dialog-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 0, 0, 0.06) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 26px 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dialog-overlay.active .custom-dialog-card {
  transform: scale(1) translateY(0);
}

/* Icon Box Variants */
.custom-dialog-icon-box {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
}

.custom-dialog-icon-box svg {
  width: 28px !important;
  height: 28px !important;
}

.custom-dialog-icon-box.danger {
  background: #FEE2E2 !important;
  border: 2px solid #FCA5A5 !important;
  color: #DC2626 !important;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2) !important;
}

.custom-dialog-icon-box.warning,
.custom-dialog-icon-box.gold {
  background: #FEF3C7 !important;
  border: 2px solid #FCD34D !important;
  color: #B45309 !important;
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.2) !important;
}

.custom-dialog-icon-box.success {
  background: #DCFCE7 !important;
  border: 2px solid #86EFAC !important;
  color: #166534 !important;
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.2) !important;
}

.custom-dialog-icon-box.info,
.custom-dialog-icon-box.cert {
  background: #E0F2FE !important;
  border: 2px solid #BAE6FD !important;
  color: #0369A1 !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.2) !important;
}

/* Title & Message */
.custom-dialog-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.01em !important;
}

.custom-dialog-message {
  font-size: 0.92rem !important;
  color: #334155 !important;
  line-height: 1.55 !important;
  white-space: pre-line !important;
  word-break: break-word !important;
  margin: 0 0 22px 0 !important;
  width: 100% !important;
}

.custom-dialog-message .cert-box {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  text-align: left !important;
  font-family: 'JetBrains Mono', monospace, sans-serif !important;
  font-size: 0.8rem !important;
  color: #0F172A !important;
  margin-top: 10px !important;
  max-height: 220px !important;
  overflow-y: auto !important;
}

/* Action Buttons (Strictly Horizontal & Compact) */
.custom-dialog-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
}

.btn-dialog-cancel {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #CBD5E1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-dialog-cancel:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

.btn-dialog-confirm {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #EF4444 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}

.btn-dialog-confirm.btn-danger {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #EF4444 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}

.btn-dialog-confirm.btn-gold,
.btn-dialog-confirm.btn-primary {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #F59E0B !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.btn-dialog-confirm.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #10B981 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

.btn-dialog-confirm.btn-info {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #38BDF8 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.btn-dialog-confirm:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}

.btn-dialog-cancel:active,
.btn-dialog-confirm:active {
  transform: scale(0.98) !important;
}

/* ==========================================================================
   Contract Expiry Reminder Signs & Badges
   ========================================================================== */
.expiry-sign {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.expiry-sign.badge-expired {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #F87171;
}

.expiry-sign.badge-urgent {
  background: #FFEDD5;
  color: #C2410C;
  border: 1px solid #FB923C;
  animation: pulse-urgent 2s infinite ease-in-out;
}

.expiry-sign.badge-warning {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.expiry-sign.badge-info {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #7DD3FC;
}

.expiry-sign.badge-active {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

@keyframes pulse-urgent {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Document Checklist Icon Actions (Fix for cramped text buttons) */
.doc-actions-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
}

.doc-actions-icons .btn-icon {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* ==========================================================================
   Master SK Templates View Styling
   ========================================================================== */
.sk-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.sk-template-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sk-template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--lemigas-gold);
}

.sk-template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lemigas-navy), var(--lemigas-gold));
}

.sk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sk-card-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--lemigas-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.sk-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 6px 0 4px 0;
  line-height: 1.35;
}

.sk-card-bidang {
  font-size: 12px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sk-card-body {
  margin: 12px 0;
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-card-honor {
  background: var(--surface-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sk-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-line);
  margin-top: 8px;
}

/* ==========================================================================
   WhatsApp Gateway & Expiry Notification View Styling
   ========================================================================== */
.wa-banner-card {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(6, 78, 59, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.wa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

.wa-status-badge.live {
  background: #10B981;
  color: #FFFFFF;
}

.wa-status-badge.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.wa-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-line);
  margin-bottom: 20px;
  overflow-x: auto;
}

.wa-tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wa-tab-btn:hover {
  color: #0F172A;
}

.wa-tab-btn.active {
  color: #047857;
  border-bottom-color: #047857;
}

/* Ticket Monitoring & WA AI Bot Styles */
.ticket-gateway-banner {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-gateway-banner:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.3);
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Column Specific Helper Classes */
.cell-id {
  white-space: nowrap !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 800 !important;
  color: #0284C7 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.3px !important;
}
.cell-date {
  white-space: nowrap !important;
  font-size: 12px !important;
  color: #475569 !important;
  font-weight: 500 !important;
}
.cell-nowrap {
  white-space: nowrap !important;
}

/* Pagination Controls */
.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-line);
  font-size: 12.5px;
  color: #64748B;
}
.pagination-info strong {
  color: #0F172A;
  font-weight: 700;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pagination-page-size {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748B;
}
.pagination-page-size select {
  padding: 4px 8px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-line);
  background: #FFFFFF;
  color: #0F172A;
}
.pagination-nav-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-line);
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.btn-page:hover:not(:disabled) {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}
.btn-page.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #F8FAFC;
}

/* Edit Modal & Mobile Responsiveness */
.edit-form-section {
  background: #F8FAFC;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.edit-form-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .table-pagination-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }
  .pagination-controls {
    justify-content: space-between;
    width: 100%;
  }
  .pagination-nav-buttons {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .table-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .search-input-wrap {
    width: 100% !important;
    min-width: 100% !important;
  }
  .toolbar-filters-row {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }
  .toolbar-filters-row select {
    flex: 1 !important;
  }
  .btn-action-icon-pill {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   APP SPLASH SCREEN & LOGO SYSTEM (SIMON-SDM v0.0.1)
   ========================================================================== */
.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 30%, #1E293B 0%, #0F172A 60%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  user-select: none;
  cursor: pointer;
}
.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-card {
  max-width: 520px;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 34px 28px 24px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(2, 132, 199, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.splash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #0284C7, #10B981);
}
.splash-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.splash-logo-img {
  max-width: 380px;
  width: 100%;
  height: auto;
  max-height: 125px;
  object-fit: contain;
}
.splash-badge-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.splash-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}
.splash-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: splashPulse 1.5s infinite;
}
@keyframes splashPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #38BDF8; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.splash-badge-env {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.splash-app-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.4;
  margin-bottom: 4px;
}
.splash-sub-agency {
  font-size: 12px;
  color: #F59E0B;
  font-weight: 600;
  margin-bottom: 22px;
}
.splash-loading-wrap {
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
}
.splash-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}
.splash-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #F59E0B, #0284C7);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.splash-status-text {
  font-size: 11px;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
  min-height: 16px;
}
.splash-hint {
  font-size: 10.5px;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 4px;
}

/* Responsive Logo across Mobile & Desktop */
.login-brand-logo-img-new {
  max-width: 320px;
  width: 100%;
  height: auto;
  max-height: 95px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.badge-version-pill {
  font-size: 10px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Specific Mobile Viewport Optimizations */
@media (max-width: 480px) {
  .splash-card {
    padding: 24px 18px 20px 18px;
    border-radius: 16px;
  }
  .splash-logo-img {
    max-width: 270px;
    max-height: 90px;
  }
  .splash-app-title {
    font-size: 12.5px;
  }
  .splash-sub-agency {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .topbar-logo-img {
    height: 24px;
    max-width: 95px;
  }
  .topbar-app-tag {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .splash-card {
    padding: 18px 14px 16px 14px;
  }
  .splash-logo-img {
    max-width: 220px;
    max-height: 75px;
  }
  .splash-badge-box {
    flex-direction: column;
    gap: 4px;
  }
  .topbar-logo-img {
    height: 22px;
    max-width: 80px;
  }
}


/* ==========================================================================
   Executive Report & Analytics Revamp (Project TRAIN & SIMON-SDM)
   ========================================================================== */

/* RO Budget Absorption Card & Dual Bar Controls */
.ro-card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chart-filter-pills {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  border: 1px solid #E2E8F0;
}
.btn-pill-filter {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-pill-filter:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.6);
}
.btn-pill-filter.active {
  background: #FFFFFF;
  color: #0A192F;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ro-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}
.ro-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ro-summary-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ro-summary-val {
  font-size: 14px;
  font-weight: 800;
  color: #0A192F;
  font-family: 'JetBrains Mono', monospace;
}
.ro-summary-sub {
  font-size: 10.5px;
  color: #10B981;
  font-weight: 600;
}

/* 8 Mandatory ITJEN Document Compliance Grid */
.compliance-suite-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
}
.compliance-suite-header {
  padding: 20px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.compliance-suite-title h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compliance-suite-title p {
  margin: 0;
  font-size: 12.5px;
  color: #64748B;
}

.compliance-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 24px;
}
@media (max-width: 1200px) {
  .compliance-doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .compliance-doc-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
}

.compliance-doc-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}
.compliance-doc-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.compliance-doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #10B981;
}
.compliance-doc-card.status-pending::before {
  background: #F59E0B;
}

.doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.doc-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.doc-code-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.doc-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}
.doc-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
}

.doc-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.doc-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc-count-text {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.doc-pct-badge {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 6px;
}
.doc-pct-badge.full {
  color: #059669;
  background: #ECFDF5;
}
.doc-pct-badge.partial {
  color: #D97706;
  background: #FFFBEB;
}

.doc-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.doc-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
}
.doc-fill.full {
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}
.doc-fill.partial {
  background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
}

.compliance-suite-footer {
  padding: 14px 24px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #475569;
}
.compliance-audit-auditnote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Multi-View Reports Table Suite */
.report-table-suite {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.report-suite-top {
  padding: 20px 24px 16px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.report-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 8px;
  overflow-x: auto;
}
.report-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-tab-btn:hover {
  color: #0A192F;
  background: #F1F5F9;
}
.report-tab-btn.active {
  color: #0A192F;
  background: #EEF2F6;
  border-bottom: 3px solid #D97706;
}

.report-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.report-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.report-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 12.5px;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
  box-sizing: border-box;
}
.report-search-input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.report-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94A3B8;
  pointer-events: none;
}

.report-filter-select {
  padding: 9px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF;
  outline: none;
  cursor: pointer;
}

.table-total-row {
  background: #F8FAFC !important;
  font-weight: 800;
  border-top: 2px solid #CBD5E1 !important;
  border-bottom: 2px solid #CBD5E1 !important;
}
.table-total-row td {
  padding: 14px 16px !important;
  font-size: 13px !important;
  color: #0F172A !important;
}

/* Badge status indicators */
.badge-serapan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.badge-serapan.optimal {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.badge-serapan.mendekati {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.badge-serapan.akselerasi {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.badge-serapan.over {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}


/* ==========================================================================
   User Management & RBAC View Styling (PUTRA-INV Pattern)
   ========================================================================== */
.user-avatar-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  text-transform: uppercase;
}
.user-avatar-circle.role-kepegawaian {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}
.user-avatar-circle.role-kp3 {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.user-avatar-circle.role-audit {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}
.user-avatar-circle.role-pimpinan {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.badge-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-role-pill.kepegawaian {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.badge-role-pill.kp3 {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.badge-role-pill.audit {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.badge-role-pill.pimpinan {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.badge-perm-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  margin: 1px 2px;
}

.btn-user-action {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-user-action:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}
.btn-user-action.delete:hover {
  background: #FEF2F2;
  border-color: #F87171;
  color: #DC2626;
}

/* ==========================================================================
   User Management Mobile Optimization (PUTRA-INV & SIMON-SDM Pattern)
   ========================================================================== */

.users-mobile-container {
  display: none;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 768px) {
  .users-table-desktop {
    display: none !important;
  }
  .users-mobile-container {
    display: flex !important;
    padding: 0 12px 20px 12px !important;
  }

  /* Card Header */
  .users-card-header {
    padding: 14px 14px 12px 14px !important;
  }
  .users-card-header h3 {
    font-size: 15px !important;
  }
  .users-header-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 4px;
  }
  .btn-users-refresh,
  .btn-users-add {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }

  /* Summary KPI strip */
  .users-summary-strip {
    margin: 10px 12px 14px 12px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .users-summary-strip .ro-summary-item {
    padding: 8px 10px !important;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
  }
  .users-summary-strip .ro-summary-val {
    font-size: 18px !important;
  }
  .users-summary-strip .ro-summary-label {
    font-size: 9.5px !important;
  }
  .users-summary-strip .ro-summary-sub {
    font-size: 9px !important;
  }

  /* Toolbar */
  .users-toolbar-wrap {
    padding: 0 12px 14px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .users-toolbar-wrap .report-search-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }
  .users-toolbar-wrap .users-filter-group {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .users-toolbar-wrap .report-filter-select {
    width: 100% !important;
  }
}

/* User Mobile Card */
.user-mobile-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-mobile-card:active {
  transform: scale(0.99);
}

.user-m-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-m-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.user-m-info {
  flex: 1;
  min-width: 0;
}

.user-m-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-m-submeta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.user-m-username {
  font-size: 11px;
  font-weight: 700;
  color: #0284C7;
  background: #E0F2FE;
  padding: 2px 6px;
  border-radius: 6px;
}

.user-m-details {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.user-m-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.user-m-detail-label {
  color: #64748B;
  font-weight: 600;
  flex-shrink: 0;
}

.user-m-detail-val {
  color: #1E293B;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.user-m-perms-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.user-m-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
}

.user-m-btn {
  padding: 8px 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer;
  white-space: nowrap;
}

/* Desktop default for sidebar close button */
.btn-sidebar-close {
  display: none !important;
}

/* ==========================================================================
   Mobile Sidebar Optimization: Compact, Dense & High Layering
   ========================================================================== */
@media (max-width: 991px) {
  /* Overlay & Drawer Layering above Mobile Bottom Bar (99990) */
  .sidebar-overlay {
    z-index: 99995 !important;
  }
  .sidebar {
    z-index: 99996 !important;
    width: 275px !important;
    max-width: 82vw !important;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Compact Mobile Sidebar Header */
  .sidebar-header {
    padding: 8px 10px 6px 10px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .sidebar-brand-box {
    padding: 3px 6px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  }
  .sidebar-brand-logo {
    max-height: 42px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .btn-sidebar-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #CBD5E1 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease;
  }
  .btn-sidebar-close:active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
  }
  .sidebar-brand-meta {
    padding: 0 2px !important;
    margin-top: 2px !important;
  }
  .sidebar-meta-label {
    font-size: 9px !important;
    letter-spacing: 0.4px !important;
  }
  .sidebar-brand-meta .badge-version-pill {
    font-size: 9px !important;
    padding: 1px 5px !important;
  }

  /* Compact Mobile Sidebar Navigation (Eliminate excessive spacing) */
  .sidebar-nav {
    padding: 4px 6px 20px 6px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .nav-section-title {
    font-size: 8.5px !important;
    letter-spacing: 0.5px !important;
    padding: 5px 8px 2px 8px !important;
    margin-top: 3px !important;
    color: #94A3B8 !important;
  }
  .nav-item {
    padding: 5.5px 8px !important;
    gap: 7px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    margin-bottom: 1.5px !important;
    line-height: 1.25 !important;
  }
  .nav-item .icon {
    font-size: 14px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    flex-shrink: 0 !important;
  }
  .nav-item .badge-pill {
    font-size: 10px !important;
    padding: 2px 7px !important;
    min-height: 18px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Compact Mobile Sidebar Footer */
  .sidebar-footer {
    padding: 6px 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
    background: rgba(10, 25, 47, 0.96) !important;
    z-index: 10 !important;
  }
  .sidebar-footer .user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }
  .sidebar-footer .user-name {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .sidebar-footer .user-role {
    font-size: 9px !important;
  }
  .sidebar-footer .btn-logout-pill {
    padding: 3px 7px !important;
    font-size: 10px !important;
  }
}


/* ==========================================================================
   SIM-LKP ENHANCED RESPONSIVE & MOBILE STYLESHEET
   ========================================================================== */

/* Table responsive cards */
.table-card {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: #0F223C !important;
  color: #F8FAFC !important;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 14px;
  border-bottom: 1px solid #1E3A5F;
  vertical-align: middle;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-line);
  vertical-align: middle;
  font-size: 13px;
  color: var(--ink-primary);
}

.data-table tbody tr:hover td {
  background-color: #F8FAFC;
}

/* Horizontal Tab Pills Bar with smooth scroll */
.tab-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.tab-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.tab-pills-bar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.nav-tab-pill {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border-line);
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-tab-pill:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.nav-tab-pill.active {
  background: #0F223C;
  color: #FFFFFF;
  border-color: #0F223C;
  box-shadow: 0 2px 8px rgba(15, 34, 60, 0.25);
}

/* Badges */
.badge-asn { background: rgba(2, 132, 199, 0.12); color: #0284C7; border: 1px solid rgba(2, 132, 199, 0.3); }
.badge-pns { background: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }
.badge-pppk { background: rgba(147, 51, 234, 0.12); color: #9333EA; border: 1px solid rgba(147, 51, 234, 0.3); }
.badge-blu { background: rgba(217, 119, 6, 0.12); color: #D97706; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-nadine { background: #0F223C; color: #F59E0B; font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 700; display: inline-block; white-space: nowrap; }

/* Table Action Buttons */
.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-action-icon {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action-icon:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.btn-action-delete {
  color: #DC2626;
  border-color: #FECACA;
}

.btn-action-delete:hover {
  background: #FEF2F2;
  border-color: #DC2626;
  color: #B91C1C;
}

/* Mobile Scroll Hint Banner */
.mobile-scroll-hint {
  display: none;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .mobile-scroll-hint {
    display: block;
  }
}

.visible-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .visible-mobile-only {
    display: inline-block;
  }
  .hidden-mobile {
    display: none !important;
  }
  .content-body {
    padding: 14px !important;
  }
  .table-card-header {
    flex-direction: column;
    align-items: stretch;
  }
  .table-card-header > div {
    width: 100%;
  }
  .login-card {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }
}
