/* ==========================================================================
   ENTERPRISE SMART VIRTUAL OFFICE & CMS DASHBOARD STYLES
   UPT Puskesmas Malimpung Kabupaten Pinrang
   ========================================================================== */

:root {
  --forest-950: #022c22;
  --forest-900: #064e3b;
  --forest-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --mint-100: #d1fae5;
  --mint-50: #ecfdf5;
  --surface-bg: #f8fafc;
  --surface-card: #ffffff;
  --surface-alt: #f1f5f9;
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --ink-tertiary: #94a3b8;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   STATE 1: DEDICATED LOGIN GATE VIEW
   ========================================================================== */
.office-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 20%, #064e3b 0%, #022c22 100%);
  position: relative;
  overflow: hidden;
}

.office-login-wrapper::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.office-login-card {
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.office-login-header {
  padding: 2.25rem 2rem 1.75rem;
  background: linear-gradient(135deg, #022c22, #064e3b);
  color: #ffffff;
  text-align: center;
  border-bottom: 3px solid var(--emerald-500);
}

.office-login-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.office-login-logos img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.office-login-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cde6de;
  margin-bottom: 0.5rem;
}

.office-login-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.office-login-desc {
  font-size: 0.8125rem;
  color: #a7f3d0;
  line-height: 1.45;
}

.office-login-body {
  padding: 2rem;
}

.form-group-field {
  margin-bottom: 1.25rem;
}

.form-group-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--forest-950);
  margin-bottom: 0.35rem;
}

.form-input-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input-control:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.btn-auth-submit {
  width: 100%;
  padding: 0.8125rem 1.5rem;
  background: var(--emerald-600);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.btn-auth-submit:hover {
  background: var(--emerald-700);
}

.auth-error-banner {
  padding: 0.625rem 0.875rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: none;
}

/* Quick Fill NIP Assistant */
.quick-fill-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-light);
}

.quick-fill-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
  margin-bottom: 0.25rem;
}

.quick-fill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-nip-card {
  text-align: left;
  padding: 0.625rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-nip-card:hover {
  background: var(--mint-50);
  border-color: var(--emerald-500);
}

/* ==========================================================================
   STATE 2: ENTERPRISE DASHBOARD WORKSPACE LAYOUT
   ========================================================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   STATE 2: ENTERPRISE DASHBOARD WORKSPACE LAYOUT (MODERN EXECUTIVE PALETTE)
   ========================================================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--surface-bg);
}

/* Sidebar Kiri Enterprise */
.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #091e19 0%, #051411 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo-img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
}

.sidebar-brand-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.65625rem;
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-sidebar-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* User Card in Sidebar (Executive Identity) */
.sidebar-user-card {
  margin: 0.875rem 0.875rem 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.user-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.online-indicator-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background: #10b981;
  border: 2px solid #091e19;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

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

.user-meta-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-meta-role-pill {
  margin-top: 0.15rem;
}

.user-meta-role {
  font-size: 0.6875rem;
  color: #34d399;
  font-weight: 700;
  display: inline-block;
}

.user-meta-tupoksi {
  font-size: 0.65625rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-top: 0.1rem;
}

/* Navigation Menu */
.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.875rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.sidebar-menu-category {
  font-size: 0.65625rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 0.625rem 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5625rem 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  position: relative;
}

.sidebar-link .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sidebar-link:hover .nav-icon {
  color: #34d399;
  transform: scale(1.08);
}

.sidebar-link.active {
  background: rgba(16, 185, 129, 0.14);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #10b981;
}

.sidebar-link.active .nav-icon {
  color: #10b981;
}

.sidebar-link .badge-counter {
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.875rem 0.875rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
}

.btn-sidebar-ext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  text-decoration: none;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-sidebar-ext:hover {
  background: rgba(52, 211, 153, 0.18);
  color: #ffffff;
  border-color: #34d399;
}

.btn-sidebar-ext .footer-icon {
  width: 15px;
  height: 15px;
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-logout:hover {
  background: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
}

.btn-sidebar-logout .footer-icon {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   WORKSPACE UTAMA (TOPBAR & VIEWPORT)
   ========================================================================== */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8fafc;
}

/* Topbar Modern Glassmorphism */
.dashboard-topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.topbar-left-area {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.btn-sidebar-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  padding: 0.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
}

.crumb-root {
  font-weight: 500;
  color: #64748b;
}

.crumb-sep {
  color: #cbd5e1;
}

.crumb-current {
  color: #0f172a;
  font-weight: 700;
}

.cloud-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #065f46;
  margin-left: 0.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-clock-card {
  font-size: 0.78125rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #d1fae5;
  letter-spacing: 0.02em;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-action.btn-news {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-primary-action.btn-news:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn-primary-action.btn-article {
  background: #065f46;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(6, 95, 70, 0.25);
}

.btn-primary-action.btn-article:hover {
  background: #022c22;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 44, 34, 0.35);
}

/* ==========================================================================
   VIEWPORT MASING-MASING TAB
   ========================================================================== */
.dashboard-viewport {
  padding: 1.75rem 2rem 3rem;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Tab View Panes Visibility */
.tab-view-pane {
  display: none;
  animation: fadeInPane 0.2s ease-in-out;
}

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

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

/* ==========================================================================
   EXECUTIVE WELCOME BANNER (COCKPIT HEADER)
   ========================================================================== */
.overview-welcome-banner {
  background: linear-gradient(135deg, #091e19 0%, #0d2822 50%, #064e3b 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: #ffffff;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -10px rgba(6, 78, 59, 0.3);
}

.overview-welcome-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-banner-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.welcome-greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  margin-bottom: 0.75rem;
}

.greeting-pulse-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 6px #34d399;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.welcome-subtitle {
  font-size: 0.84375rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.welcome-meta-chips {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.71875rem;
  color: #e2e8f0;
  font-weight: 600;
}

.meta-chip.highlight {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.welcome-banner-illustration {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 900px) {
  .welcome-banner-illustration {
    display: block;
  }
}

.illustration-badge-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.illustration-badge-circle span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 120px;
}

/* ==========================================================================
   4 MODERN EXECUTIVE KPI CARDS (DUOTONE VECTORS & ELEVASI HALUS)
   ========================================================================== */
.stat-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.stat-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.stat-kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.kpi-duotone-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-duotone-icon.emerald {
  background: #ecfdf5;
  color: #059669;
}

.kpi-duotone-icon.sky {
  background: #f0f9ff;
  color: #0284c7;
}

.kpi-duotone-icon.violet {
  background: #f5f3ff;
  color: #7c3aed;
}

.kpi-duotone-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.stat-kpi-number {
  font-family: var(--font-heading);
  font-size: 2.125rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kpi-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.kpi-status-chip.success {
  background: #ecfdf5;
  color: #047857;
}

.kpi-status-chip.info {
  background: #f0f9ff;
  color: #0369a1;
}

.kpi-status-chip.purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.kpi-status-chip.warning {
  background: #fffbeb;
  color: #b45309;
}

.stat-kpi-sub {
  font-size: 0.71875rem;
  color: #64748b;
}

/* ==========================================================================
   MULTI-FACETED COCKPIT GRID (8:4 GRID LAYOUT)
   ========================================================================== */
.overview-cockpit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .overview-cockpit-grid {
    grid-template-columns: 8fr 4fr;
  }
}

.cockpit-main-col,
.cockpit-side-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Container & Header */
.content-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.content-box-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
}

.content-box-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.content-box-desc {
  font-size: 0.78125rem;
  color: #64748b;
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

.btn-table-header-link {
  background: transparent;
  border: none;
  color: #059669;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-table-header-link:hover {
  background: #ecfdf5;
  color: #047857;
}

/* Compliance Cards Grid (3 Columns) */
.compliance-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .compliance-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compliance-item-card {
  padding: 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s;
}

.compliance-item-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.compliance-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-icon.emerald { background: #ecfdf5; color: #059669; }
.compliance-icon.blue { background: #f0f9ff; color: #0284c7; }
.compliance-icon.purple { background: #f5f3ff; color: #7c3aed; }

.compliance-text h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.compliance-text p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Quick Action Items */
.quick-action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.quick-action-item:hover {
  background: #ffffff;
  border-color: #34d399;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-icon.emerald { background: #ecfdf5; color: #059669; }
.quick-action-icon.sky { background: #f0f9ff; color: #0284c7; }
.quick-action-icon.amber { background: #fffbeb; color: #d97706; }
.quick-action-icon.violet { background: #f5f3ff; color: #7c3aed; }

.quick-action-meta {
  flex: 1;
  min-width: 0;
}

.quick-action-meta strong {
  display: block;
  font-size: 0.8125rem;
  color: #0f172a;
  font-weight: 700;
}

.quick-action-meta span {
  font-size: 0.6875rem;
  color: #64748b;
}

.quick-action-arrow {
  color: #94a3b8;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: transform 0.15s;
}

.quick-action-item:hover .quick-action-arrow {
  transform: translateX(2px);
  color: #059669;
}

/* Ecosystem Status Rows */
.eco-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.625rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.eco-status-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78125rem;
  color: #1e293b;
}

.eco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.eco-dot.green {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.eco-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
}

/* Audit Stream Item */
.audit-stream-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.audit-stream-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.audit-stream-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audit-stream-body {
  flex: 1;
  min-width: 0;
}

.audit-stream-title {
  font-size: 0.75rem;
  color: #0f172a;
  line-height: 1.35;
}

.audit-stream-time {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.content-box-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.content-box-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--forest-950);
  margin: 0;
}

.content-box-desc {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  margin: 0.2rem 0 0 0;
}

.content-box-body {
  padding: 1.5rem;
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.dashboard-table th {
  background: var(--surface-alt);
  color: var(--forest-950);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.dashboard-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.dashboard-table tr:hover td {
  background: rgba(0,0,0,0.015);
}

/* Badge Status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.status-pill.published {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-pill.draft {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Action Buttons */
.action-btn-group {
  display: inline-flex;
  gap: 0.35rem;
}

.action-btn {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--ink);
}

.action-btn.edit:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.action-btn.delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.action-btn.view:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

/* Primary Button */
.btn-primary-act {
  background: var(--emerald-600);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s;
}

.btn-primary-act:hover {
  background: var(--emerald-700);
}

/* Modals */
.modal-overlay-office {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 44, 34, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay-office.open,
.modal-overlay-office.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

.modal-dialog-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--forest-950), var(--forest-900));
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-dialog-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-dialog-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-dialog-footer {
  padding: 1rem 1.5rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   DEDICATED FULL-PAGE CMS STUDIO EDITOR VIEW (#tab-pane-editor)
   ========================================================================== */
.editor-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.editor-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-editor-back {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--border-dark);
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-editor-back:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: var(--forest-950);
}

.editor-page-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--forest-950);
  font-family: var(--font-heading);
}

.editor-status-subtitle {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.badge-status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #065f46;
  margin-left: 0.35rem;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-editor-action.sec {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-dark);
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-editor-action.sec:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Studio Editor 2-Column Grid (WordPress Style) */
.editor-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.75rem;
  align-items: start;
}

.editor-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.editor-side-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.editor-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.editor-field-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--forest-950);
  margin-bottom: 0.5rem;
}

.editor-input-title {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 2px solid var(--border-light);
  border-radius: 10px;
  color: var(--forest-950);
  outline: none;
  transition: border-color 0.2s;
}

.editor-input-title:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.editor-slug-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-bg);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  border: 1px dashed var(--border-dark);
  flex-wrap: wrap;
}

.slug-prefix {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--emerald-700);
  font-weight: 600;
}

.editor-input-slug {
  border: none;
  background: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78125rem;
  color: var(--ink);
  border: 1px solid var(--border-light);
  flex-grow: 1;
  min-width: 140px;
}

/* Visual Formatting Toolbar */
.editor-toolbar-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.toolbar-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toolbar-btn-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.toolbar-tool-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  color: var(--ink);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toolbar-tool-btn:hover {
  background: var(--mint-50);
  border-color: var(--emerald-500);
  color: var(--emerald-700);
}

.toolbar-tool-media {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 700;
}

.toolbar-tool-media:hover {
  background: #d1fae5;
  border-color: #059669;
  color: #047857;
}

/* Semantik Foto Inline Dokumentasi di Naskah */
.post-inline-figure {
  margin: 1.75rem 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.post-inline-figure.align-center {
  display: block;
  width: 100%;
  clear: both;
}

.post-inline-figure.align-left {
  float: left;
  max-width: 48%;
  margin: 0.5rem 1.5rem 1.25rem 0;
}

.post-inline-figure.align-right {
  float: right;
  max-width: 48%;
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.post-inline-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.post-inline-figure:not(:has(.post-inline-caption)) .post-inline-img {
  border-radius: 12px;
}

.post-inline-caption {
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  background: #ffffff;
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

/* Naskah Textarea Area */
.editor-textarea-body {
  width: 100%;
  padding: 1.1rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink);
  font-family: var(--font-sans);
  border: 2px solid var(--border-light);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  min-height: 380px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.editor-textarea-body:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Sidebar Settings Panels */
.editor-panel-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--forest-950);
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.editor-panel-card.seo-panel {
  border-left: 4px solid var(--emerald-600);
  background: #fafdfc;
}

.editor-panel-card.medical-panel {
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE DRAWER NAVIGATION (@media queries)
   ========================================================================== */
.btn-sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--forest-950);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.35rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 44, 34, 0.6);
  backdrop-filter: blur(2px);
  z-index: 99;
  display: none;
}

/* Tablet Layout (<= 992px) */
@media (max-width: 992px) {
  .editor-studio-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    width: 240px;
  }
}

/* Mobile Smartphone Layout (<= 768px) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .btn-sidebar-toggle {
    display: inline-flex;
  }

  .btn-sidebar-close {
    display: inline-block;
  }

  /* Transform Sidebar to Off-Canvas Drawer */
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.3);
  }

  .dashboard-sidebar.drawer-open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  /* Main Workspace expands to 100% full viewport width */
  .dashboard-main {
    width: 100% !important;
    min-width: 0 !important;
    padding: 1rem 0.75rem;
  }

  .dashboard-topbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .topbar-clock {
    display: none;
  }

  /* Stat KPI Grid */
  .stat-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Tabel Responsif */
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .dashboard-table {
    min-width: 600px;
  }

  /* Editor Header Responsif */
  .editor-header-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .editor-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .editor-header-actions button {
    flex: 1;
    justify-content: center;
    font-size: 0.78125rem;
    padding: 0.5rem;
  }

  .editor-card, .editor-panel-card {
    padding: 1rem;
  }

  .editor-input-title {
    font-size: 1.1rem;
    padding: 0.65rem;
  }

  /* Responsif Foto Inline di Smartphone */
  .post-inline-figure.align-left,
  .post-inline-figure.align-right {
    float: none;
    max-width: 100%;
    margin: 1.25rem 0;
  }
}

/* ==========================================================================
   DYNAMIC CRUD MODULES STYLING (Programs, Integrations, Filter Toolbars)
   ========================================================================== */
.table-toolbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.table-toolbar-search {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 400px;
}

.table-toolbar-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

.table-toolbar-search input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.table-toolbar-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-tertiary);
  pointer-events: none;
  font-size: 0.875rem;
}

/* Kartu Program Siklus Hidup ILP */
.programs-ilp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.program-card-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.program-card-item .card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.program-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.program-card-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--forest-950);
  margin: 0 0 0.4rem 0;
  line-height: 1.35;
}

.program-card-coord {
  font-size: 0.78125rem;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.program-card-target {
  font-size: 0.75rem;
  color: var(--ink-secondary);
  background: #f8fafc;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.program-card-interventions {
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.program-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Kartu Integrasi Sistem */
.integration-card-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.integration-card-box.highlight {
  background: #f0fdf9;
  border-left: 4px solid var(--emerald-600);
}

.integration-card-box.satusehat {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.integration-badge.connected {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.integration-badge.offline {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   WYSIWYG VISUAL CANVAS & RICH TEXT STUDIO
   ========================================================================== */
.editor-mode-switcher {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}

.btn-mode-tab {
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-mode-tab:hover {
  color: var(--forest-950);
}

.btn-mode-tab.active {
  background: #ffffff;
  color: var(--forest-950);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wysiwyg-editor-wrapper {
  position: relative;
}

.wysiwyg-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-800);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Kanvas WYSIWYG Utama */
.editor-wysiwyg-canvas {
  min-height: 420px;
  max-height: 800px;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.editor-wysiwyg-canvas:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Placeholder saat kosong */
.editor-wysiwyg-canvas:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-style: italic;
  pointer-events: none;
  display: block;
}

/* Render Tipografi di Dalam Kanvas WYSIWYG */
.editor-wysiwyg-canvas p {
  margin: 0 0 1.25rem 0;
}

.editor-wysiwyg-canvas p:last-child {
  margin-bottom: 0;
}

.editor-wysiwyg-canvas .single-post-lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  color: #064e3b;
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 0.85rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 0 0 1.5rem 0;
}

.editor-wysiwyg-canvas h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #064e3b;
  margin: 2rem 0 0.85rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e2e8f0;
  line-height: 1.35;
}

.editor-wysiwyg-canvas h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f766e;
  margin: 1.5rem 0 0.65rem 0;
  line-height: 1.35;
}

.editor-wysiwyg-canvas blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.35rem;
  background: #f8fafc;
  border-left: 4px solid #0f766e;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}

.editor-wysiwyg-canvas ul, 
.editor-wysiwyg-canvas ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.editor-wysiwyg-canvas li {
  margin-bottom: 0.4rem;
}

.editor-wysiwyg-canvas hr.post-divider {
  border: none;
  border-top: 2px dashed #cbd5e1;
  margin: 2rem 0;
}

.editor-wysiwyg-canvas a {
  color: #059669;
  text-decoration: underline;
  font-weight: 600;
}

/* Gambar Visual di Dalam Kanvas */
.editor-wysiwyg-canvas figure.post-inline-figure {
  margin: 1.75rem auto;
  padding: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.editor-wysiwyg-canvas figure.post-inline-figure.align-center {
  text-align: center;
}

.editor-wysiwyg-canvas figure.post-inline-figure.align-left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 50%;
}

.editor-wysiwyg-canvas figure.post-inline-figure.align-right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 50%;
}

.editor-wysiwyg-canvas figure.post-inline-figure img.post-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.editor-wysiwyg-canvas figcaption.post-inline-caption {
  font-size: 0.8125rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* Footer Info Bar di Bawah Kanvas */
.wysiwyg-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-secondary);
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #edf2f7;
}

/* ==========================================================================
   MODUL PROFIL STAF PEGAWAI (PROFIL SAYA)
   ========================================================================== */
.profile-photo-wrapper label:hover {
  background: #059669 !important;
  color: #ffffff !important;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

#profile-avatar-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.sidebar-user-card:hover .user-meta-name {
  color: #34d399;
}

/* ==========================================================================
   RESPONSIVE LAYOUT & MOBILE DRAWER OPTIMIZATION
   ========================================================================== */

/* 1. Backdrop Overlay untuk Mobile Drawer */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 12, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* 2. Tablet Viewport (Max 1024px) */
@media (max-width: 1024px) {
  .overview-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .dashboard-viewport {
    padding: 1.25rem 1.5rem;
  }
}

/* 3. Mobile Devices (Max 768px) */
@media (max-width: 768px) {
  .dashboard-layout {
    position: relative;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.35);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .btn-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dashboard-topbar {
    padding: 0.625rem 1rem;
  }

  .topbar-breadcrumb .crumb-root,
  .topbar-breadcrumb .crumb-sep,
  .cloud-sync-pill {
    display: none;
  }

  .crumb-current {
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: block;
  }

  .topbar-clock-card {
    display: none;
  }

  .topbar-actions {
    gap: 0.35rem;
  }

  .btn-primary-action {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }

  .overview-welcome-banner {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
  }

  .welcome-banner-illustration {
    display: none;
  }

  .welcome-heading {
    font-size: 1.2rem;
  }

  .welcome-subtitle {
    font-size: 0.8125rem;
  }

  .welcome-meta-chips {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .compliance-3col-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-viewport {
    padding: 1rem 0.75rem;
  }

  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1);
  }

  .dashboard-table {
    min-width: 600px;
  }

  .content-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* 4. Small Mobile Phones (Max 480px) */
@media (max-width: 480px) {
  .stat-kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .crumb-current {
    max-width: 120px;
  }

  .btn-primary-action span {
    display: none;
  }

  .btn-primary-action {
    padding: 0.45rem;
    border-radius: 8px;
  }
}



