/* ==========================================================================
   SISTEM MANAJEMEN PENEMPATAN PMI (SIM PMI) - DESIGN SYSTEM & STYLESHEET
   Ultra-Modern Enterprise UI Theme
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #1e1b4b;

  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.9);

  --border-light: #e2e8f0;
  --border-focus: #818cf8;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Accent Colors */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --teal-500: #14b8a6;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

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

/* SIDEBAR */
.sidebar {
  width: 270px;
  background: linear-gradient(180deg, var(--navy-900) 0%, #090d16 100%);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transition: width var(--transition-normal);
}

.sidebar-header {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--emerald-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.brand-info h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.brand-info span {
  font-size: 11px;
  color: var(--text-light);
  display: block;
}

.sidebar-nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex-grow: 1;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 12px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 3px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-item.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.08) 100%);
  color: #818cf8;
  font-weight: 600;
  border-left: 3px solid var(--primary-500);
}

.nav-item i, .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 600;
}

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

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

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-label {
  font-size: 11px;
  color: #38bdf8;
  display: block;
}

/* MAIN CONTENT AREA */
.main-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOP HEADER */
.topbar {
  height: 68px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.page-heading h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-heading span {
  font-size: 12px;
  color: var(--text-muted);
}

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

/* QUICK ROLE SWITCHER BAR */
.role-switcher-banner {
  background: linear-gradient(90deg, #1e1b4b, #312e81);
  color: #e0e7ff;
  padding: 8px 28px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.role-switcher-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.role-chip {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.role-chip:hover {
  background: var(--primary-600);
  border-color: var(--primary-500);
}

.role-chip.active {
  background: var(--emerald-600);
  border-color: var(--emerald-500);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* CONTENT CONTAINER */
.content-body {
  padding: 28px;
  flex-grow: 1;
}

/* ==========================================================================
   UI COMPONENTS & CARDS
   ========================================================================== */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

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

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  background: #fafbfc;
}

/* KPI STATS CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.primary::before { background: linear-gradient(90deg, var(--primary-600), var(--primary-500)); }
.stat-card.emerald::before { background: linear-gradient(90deg, var(--emerald-600), var(--teal-500)); }
.stat-card.amber::before { background: linear-gradient(90deg, var(--amber-600), var(--amber-500)); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--purple-600), var(--primary-500)); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }

.stat-info span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
  line-height: 1.1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.stat-icon-wrapper.primary { background: #eef2ff; color: var(--primary-600); }
.stat-icon-wrapper.emerald { background: #ecfdf5; color: var(--emerald-600); }
.stat-icon-wrapper.amber { background: #fffbeb; color: var(--amber-600); }
.stat-icon-wrapper.purple { background: #faf5ff; color: var(--purple-600); }
.stat-icon-wrapper.blue { background: #eff6ff; color: var(--blue-600); }

/* ==========================================================================
   PIPELINE STEPPER & VISUAL KANBAN
   ========================================================================== */

.pipeline-stepper-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.pipeline-steps-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow-x: auto;
  padding: 10px 0;
  gap: 8px;
}

.pipeline-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  transition: all var(--transition-normal);
  z-index: 2;
}

.pipeline-step-item:hover .step-circle {
  transform: scale(1.1);
  border-color: var(--primary-500);
}

.pipeline-step-item.active .step-circle {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.step-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 100px;
  line-height: 1.2;
}

.pipeline-step-item.active .step-label {
  color: var(--primary-600);
  font-weight: 700;
}

.step-count-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: var(--text-main);
  margin-top: 4px;
  font-weight: 700;
}

.pipeline-step-item.active .step-count-badge {
  background: #e0e7ff;
  color: var(--primary-700);
}

/* ==========================================================================
   PIPELINE TABS & TABLE FILTER
   ========================================================================== */

.pipeline-tab-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary-600);
  background: rgba(79, 70, 229, 0.04);
}

.tab-btn.active {
  color: var(--primary-600);
  border-bottom: 2px solid var(--primary-600);
  background: rgba(79, 70, 229, 0.06);
}

.tab-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.tab-btn.active .tab-count {
  background: var(--primary-600);
  color: #fff;
}

/* SEARCH & FILTER BAR */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-input-group {
  position: relative;
  flex-grow: 1;
  max-width: 360px;
}

.search-input-group input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  transition: all var(--transition-fast);
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-input-group .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* FORMS & INPUTS */
.form-select, .form-input, .form-textarea {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-family: inherit;
  background-color: #fff;
  color: var(--text-main);
  transition: all var(--transition-fast);
  width: 100%;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--rose-500);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  font-family: inherit;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.35);
}

.btn-success {
  background: var(--emerald-600);
  color: #fff;
}
.btn-success:hover { background: #047857; }

.btn-outline {
  background: #fff;
  border-color: var(--border-light);
  color: var(--navy-700);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-danger {
  background: var(--rose-600);
  color: #fff;
}
.btn-danger:hover { background: #be123c; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* DATA TABLES */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

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

.data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--navy-700);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--navy-800);
  vertical-align: middle;
}

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

/* BADGES & PILLS */
.pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

/* PROFILE 360 & DETAIL STYLING */
.profile-header-banner {
  background: linear-gradient(135deg, var(--navy-900), #1e1b4b);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-main-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-500), var(--teal-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.profile-names h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-tag {
  font-size: 11.5px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

/* TIMELINE AUDIT TRAIL */
.timeline-list {
  position: relative;
  padding-left: 28px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 3px solid var(--primary-600);
  box-shadow: 0 0 0 3px #e0e7ff;
}

.timeline-content {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

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

.timeline-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy-900);
}

.timeline-time {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* MODAL DIALOGS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbfc;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-600);
  min-width: 280px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s ease;
}

.toast.toast-success { border-left-color: var(--emerald-600); }
.toast.toast-error { border-left-color: var(--rose-600); }
.toast.toast-warning { border-left-color: var(--amber-600); }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* GRID UTILITIES */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* PRINT STYLESHEET (A4 Ready) */
@media print {
  .sidebar, .topbar, .role-switcher-banner, .btn, .filter-bar, .pipeline-tab-nav, .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  .main-area {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .content-body {
    padding: 0 !important;
  }

  .print-document {
    width: 100%;
    margin: 0 auto;
  }

  .print-kop-surat {
    border-bottom: 3px double #000;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-align: center;
  }

  .print-kop-surat h2 {
    font-size: 18pt;
    font-weight: bold;
    text-transform: uppercase;
  }

  .print-kop-surat p {
    font-size: 9.5pt;
    margin: 2px 0;
  }

  .data-table th, .data-table td {
    border: 1px solid #999 !important;
    padding: 6px 8px !important;
    color: #000 !important;
  }
}
