/* ============================================================
   bki.css
   ============================================================ */

/* ============ SCROLLBAR STYLING UNTUK GANTT ============ */
.timeline-table-wrapper::-webkit-scrollbar {
  height: 12px; /* Tinggi scrollbar horizontal */
  width: 8px;   /* Lebar scrollbar vertical */
}

.timeline-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-base);
  border-radius: 10px;
}

.timeline-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--green-400);
  border-radius: 10px;
  border: 2px solid var(--bg-base);
}

.timeline-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--green-500);
}

/* ===== FIX MODAL DETAIL: scroll lancar ===== */
#modalDetail .modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 72vh;
}

#modalDetail .modal {
  overflow-y: auto;
}

/* ms-item default: overflow hidden agar tidak bocor */
.ms-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* ms-body tertutup */
.ms-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}

/* ===================== NOTIFIKASI ===================== */
.notif-bell { position: relative; cursor: pointer; }

.notif-count {
  position: absolute; top: 4px; right: 4px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid #fff;
  pointer-events: none;
}

.topbar { position: relative; }

.notif-panel {
  display: none; position: absolute;
  top: 60px; right: 16px; width: 340px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,40,20,0.16);
  border: 1px solid var(--border);
  z-index: 9999; overflow: hidden;
  animation: fadeIn .2s ease;
}
.notif-panel.open { display: block; }

.notif-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text-700);
  background: var(--bg-card2, #f8faf9);
}

.notif-list { max-height: 380px; overflow-y: auto; padding: 6px 0; }

.notif-empty {
  padding: 32px 16px; text-align: center;
  font-size: 13px; color: var(--text-300);
}

.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card2, #f8faf9); }
.notif-item.notif-unread {
  background: #f0fdf4;
  border-left: 3px solid var(--green-400, #4ade80);
}

.notif-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.notif-icon.tambah { background: #dcfce7; }
.notif-icon.edit   { background: #dbeafe; }
.notif-icon.hapus  { background: #fee2e2; }
.notif-icon.upload { background: #fef3c7; }
.notif-icon.video  { background: #f3e8ff; }
.notif-icon.info   { background: #f1f5f9; }

.notif-body { flex: 1; min-width: 0; }
.notif-body strong {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-700); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-body span {
  font-size: 11px; color: var(--text-500);
  line-height: 1.4; display: block;
}
.notif-time { font-size: 10px; color: var(--text-300); white-space: nowrap; margin-top: 2px; }

/* JANGAN tambahkan overflow:visible di sini — biarkan JS yang handle */
