/* -----------------------------------------------------------------
   1. RESET & GLOBAL STYLE
   ----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");


html,
body {
  height: 100% !important;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #333;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;
  overflow: hidden;
  /* Mencegah scroll ganda di window utama */
}

.book,
.book-summary,
.book-body,
.markdown-section,
.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section p,
.markdown-section li,
#custom-top-header,
#my-book-switcher {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;
}

/* -----------------------------------------------------------------
   2. CUSTOM HEADER (FIXED TOP - WHITE)
   ----------------------------------------------------------------- */
#custom-top-header {
  /* Layout: Flexbox untuk Logo Kiri & Search Kanan */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;

  /* Posisi: Melayang Tetap di Atas */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 70px !important;
  /* Tinggi Header Tetap */
  z-index: 10000 !important;
  /* Layer Paling Atas */

  /* Tampilan Visual */
  background-color: #ffffff !important;
  border-bottom: 1px solid #eaeaea !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  padding: 0 40px !important;
  /* Jarak Kiri-Kanan Header */
  box-sizing: border-box !important;
}

/* --- BAGIAN KIRI: LOGO --- */
.header-left {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex-shrink: 0 !important;
}

.header-logo {
  max-height: 40px !important;
  /* Batasi tinggi logo */
  width: auto !important;
  display: block !important;
}

.header-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111 !important;
  letter-spacing: -0.5px !important;
  white-space: nowrap !important;
}

/* --- BAGIAN KANAN: SEARCH BAR --- */
.header-right {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  /* Dorong Search ke Kanan Mentok */
}

.search-wrapper {
  display: flex !important;
  align-items: center !important;
  background: #f3f4f6 !important;
  /* Abu muda modern */
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  /* Sudut agak kotak modern */
  padding: 8px 16px !important;
  width: 100% !important;
  max-width: 280px !important;
  height: 38px !important;
  transition: all 0.2s ease;
}

.search-wrapper:focus-within {
  background: #fff !important;
  border-color: #3b82f6 !important;
  /* Biru saat aktif */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.search-wrapper i {
  color: #9ca3af !important;
  margin-right: 10px !important;
  font-size: 14px !important;
}

.search-wrapper input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 14px !important;
  width: 100% !important;
  color: #374151 !important;
}

/* Badge Ctrl+K */
.kbd-badge {
  display: none !important;
  /* Opsional: Tampilkan jika ingin ada badge */
}

#book-search-input {
  display: none !important;
}

/* -----------------------------------------------------------------
   3. SIDEBAR (FIXED LEFT)
   ----------------------------------------------------------------- */
.book-summary {
  position: fixed !important;
  top: 80px !important;
  /* Turunkan sejauh tinggi Header */
  left: 0 !important;
  bottom: 0 !important;
  width: 280px !important;
  /* Lebar Sidebar */
  background: #fafbfc !important;
  /* Subtle background */
  border-right: 1px solid #d0d7de !important;
  overflow-y: auto !important;
  z-index: 900 !important;
  box-shadow: none !important;
  padding-bottom: 40px !important;
}

/* Sembunyikan "Published with HonKit" dan divider di atasnya */
.book-summary ul.summary li:has(.gitbook-link),
.book-summary ul.summary li:has(+ li > .gitbook-link) {
  display: none !important;
}

/* --- SCROLLBAR HANYA SAAT HOVER (Tambahkan bagian baru ini) --- */
/* 1. Sembunyikan Scrollbar secara default untuk Webkit (Chrome, Safari) */
.book-summary::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

/* 2. Sembunyikan Scrollbar secara default untuk Firefox */
.book-summary {
  scrollbar-width: none !important;
  /* Firefox */
}

/* 3. Tampilkan Scrollbar saat Hover (Webkit) */
.book-summary:hover::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.book-summary:hover::-webkit-scrollbar-thumb {
  background: #d0d7de !important;
  border-radius: 6px !important;
}

.book-summary:hover::-webkit-scrollbar-track {
  background: transparent !important;
}

/* Dropdown di Sidebar */
.custom-sidebar-header {
  padding: 20px;
  background: #fafbfc;
  position: relative;
  border-bottom: 1px solid #d0d7de;
}

/* Sidebar Summary Wrapper */
.book-summary ul.summary {
  padding: 0 12px !important;
  margin: 0 !important;
  list-style: none !important;
}


/* Modifikasi pada container untuk menempatkan ikon */
.custom-sidebar-header.dropdown-wrapper {
  position: relative;
  /* KUNCI: Untuk penempatan ikon absolut */
}

#my-book-switcher {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #424c55 !important;
  background: #ffffff !important;
  border: 1px solid #d0d7de !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  width: 100% !important;
  box-sizing: border-box !important;

  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  padding-right: 32px !important;
  transition: all 0.2s ease !important;
}

#my-book-switcher:hover {
  border-color: #424c55 !important;
  background-color: #f6f8fb !important;
}

#my-book-switcher:focus {
  outline: none !important;
  border-color: #1e40af !important;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1) !important;
}

/* --- Gaya untuk Ikon Chevron Kustom (Baru) --- */
.custom-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  color: #8b949e !important;
  pointer-events: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

/* Rapikan List Menu */
.book-summary ul.summary li a {
  padding: 10px 20px !important;
  color: #424c55 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: normal !important;
  line-height: 1.5 !important;
  height: auto !important;
  border-radius: 6px !important;
  margin: 4px 8px !important;
  transition: all 0.2s ease !important;
}

.book-summary ul.summary li a:hover {
  background-color: #eaeef2 !important;
  color: #1f2937 !important;
}

.book-summary ul.summary li.active>a {
  background-color: #dbeafe !important;
  color: #1e40af !important;
  font-weight: 600 !important;
}

.book-summary ul.summary li.header {
  padding: 24px 20px 12px 20px !important;
  color: #57606a !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.book-summary h2 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #8b949e !important;
  margin: 24px 20px 8px 20px !important;
  padding: 0 !important;
}

/* =========================================================
   SIDEBAR DROPDOWN – CLEAN VERSION (STABLE)
   ========================================================= */

/* Parent chapter */
.book-summary ul.summary>li.chapter {
  position: relative;
  margin: 0 !important;
}

.book-summary ul.summary>li.divider {
  height: 1px !important;
  background: #d0d7de !important;
  margin: 12px 20px !important;
  border: none !important;
}

/* Tambah ruang untuk chevron - HANYA untuk chapter dengan children */
.book-summary ul.summary>li.chapter:has(> ul)>a {
  position: relative;
  padding-right: 36px !important;
}

/* Chapter tanpa children - padding normal */
.book-summary ul.summary>li.chapter:not(:has(> ul))>a {
  position: relative;
  padding-right: 20px !important;
}

/* Chevron - HANYA untuk chapter dengan children */
.book-summary ul.summary>li.chapter:has(> ul)>a::after {
  content: "›";
  font-size: 18px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: #8b949e;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.book-summary ul.summary>li.chapter:has(> ul)>a:hover::after {
  color: #424c55;
}

/* Rotate saat open */
.book-summary ul.summary>li.chapter:has(> ul).open>a::after {
  transform: translateY(-50%) rotate(90deg);
  color: #424c55;
}

/* Child hidden default - HANYA untuk chapter dengan children */
.book-summary ul.summary>li.chapter:has(> ul)>ul {
  display: none;
  margin: 0 !important;
  padding: 4px 0 4px 0 !important;
  margin-left: 28px !important;
  border-left: 2px solid #d0d7de !important;
  animation: slideDown 0.3s ease-out;
}

/* Show if open - HANYA untuk chapter dengan children */
.book-summary ul.summary>li.chapter:has(> ul).open>ul {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AUTO OPEN jika ada active child */
.book-summary ul.summary>li.chapter>ul li.active {
  position: relative;
}

.book-summary ul.summary>li.chapter>ul li.active>a {
  color: #1e40af !important;
  background-color: #dbeafe !important;
  font-weight: 600 !important;
}

/* Garis biru vertikal di item aktif (menimpa border-left abu) */
.book-summary ul.summary>li.chapter>ul li.active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2563eb;
  border-radius: 0;
}

/* Styling untuk sub-items (articles) */
.book-summary ul.summary>li.chapter ul li a {
  padding: 8px 16px 8px 20px !important;
  font-size: 13px !important;
  color: #57606a !important;
  margin: 2px 4px !important;
}

.book-summary ul.summary>li.chapter ul li a:hover {
  background-color: #eaeef2 !important;
  color: #1f2937 !important;
}


/* =========================================================
   SIDEBAR ICON (FONT AWESOME)
   ========================================================= */

/* Base icon */
.book-summary ul.summary li.chapter>a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #8b949e;
  transition: color 0.2s ease;
}

/* ACTIVE */
.book-summary ul.summary li.active>a::before {
  color: #1e40af;
}

/* HOVER */
.book-summary ul.summary li a:hover::before {
  color: #424c55;
}

/* Header section icon */
.book-summary ul.summary li.header i {
  margin-right: 8px;
  font-size: 14px;
  color: #111827;
}

/* =========================================================
   ICON MAPPING – FULL SUMMARY
   ========================================================= */

/* HOME - 1.1 */
.book-summary ul.summary>li.chapter[data-level="1.1"]>a::before {
  content: "\f015";
  /* fa-house */
}

/* =========================================================
   JADWAL KERJA
   ========================================================= */

/* Jadwal Kerja Otomatis */
.book-summary li.chapter[data-level="2.1"]>a::before {
  content: "\f133";
  /* calendar */
}

/* Drag & Drop Jadwal */
.book-summary li.chapter[data-level="2.2"]>a::before {
  content: "\f0b2";
  /* arrows-alt */
}

/* Sync Google Calendar */
.book-summary li.chapter[data-level="2.3"]>a::before {
  content: "\f273";
  /* google */
}

/* Mobile Jadwal */
.book-summary li.chapter[data-level="2.4"]>a::before {
  content: "\f3cd";
  /* mobile */
}

/* =========================================================
   JADWAL SHIFT
   ========================================================= */

.book-summary li.chapter[data-level="3.1"]>a::before {
  content: "\f017";
  /* clock */
}

.book-summary li.chapter[data-level="3.2"]>a::before {
  content: "\f0c5";
  /* copy / bulk */
}

/* =========================================================
   ABSENSI
   ========================================================= */

/* Clock In Out */
.book-summary li.chapter[data-level="4.1"]>a::before {
  content: "\f017";
  /* clock */
}

/* Presensi Manual */
.book-summary li.chapter[data-level="4.1.1"]>a::before {
  content: "\f044";
  /* pen */
}

/* Izin & Cuti */
.book-summary li.chapter[data-level="4.2"]>a::before {
  content: "\f06c";
  /* leaf */
}

/* Pengajuan Izin H-1 */
.book-summary li.chapter[data-level="4.2.1"]>a::before {
  content: "\f013";
  /* settings */
}

/* Izin Terlambat */
.book-summary li.chapter[data-level="4.3"]>a::before {
  content: "\f252";
  /* hourglass */
}

/* Dinas Luar */
.book-summary li.chapter[data-level="4.4"]>a::before {
  content: "\f5a0";
  /* location-dot */
}

/* Cut Off Presensi */
.book-summary li.chapter[data-level="4.5"]>a::before {
  content: "\f274";
  /* calendar-xmark */
}

/* =========================================================
   CUTI TAHUNAN
   ========================================================= */

.book-summary li.chapter[data-level="5.1"]>a::before {
  content: "\f0ae";
  /* tasks (saldo cuti otomatis) */
}

.book-summary li.chapter[data-level="5.2"]>a::before {
  content: "\f0fe";
  /* plus-square (menambahkan saldo cuti) */
}

/* =========================================================
   GARIS PERSETUJUAN
   ========================================================= */

.book-summary li.chapter[data-level="6.1"]>a::before {
  content: "\f046";
  /* checklist */
}

.book-summary li.chapter[data-level="6.2"]>a::before {
  content: "\f14a";
  /* check-square */
}

.book-summary li.chapter[data-level="6.3"]>a::before {
  content: "\f017";
  /* clock (monitoring) */
}

.book-summary li.chapter[data-level="6.3.1"]>a::before {
  content: "\f0e5";
  /* comment-dots (follow up) */
}

/* =========================================================
   LEMBUR
   ========================================================= */

.book-summary li.chapter[data-level="7.1"]>a::before {
  content: "\f013";
  /* settings */
}

.book-summary li.chapter[data-level="7.2"]>a::before {
  content: "\f251";
  /* stopwatch */
}

/* =========================================================
   PAYROLL
   ========================================================= */

.book-summary li.chapter[data-level="8.1"]>a::before {
  content: "\f0ae";
  /* components */
}

.book-summary li.chapter[data-level="8.2"]>a::before {
  content: "\f555";
  /* money-check */
}

.book-summary li.chapter[data-level="8.3"]>a::before {
  content: "\f81d";
  /* money-bill */
}

.book-summary li.chapter[data-level="8.3.1"]>a::before {
  content: "\f571";
  /* file invoice dollar */
}

/* =========================================================
   BPJS & PPH21
   ========================================================= */

.book-summary li.chapter[data-level="9.1"]>a::before {
  content: "\f080";
  /* chart */
}

.book-summary li.chapter[data-level="9.2"]>a::before {
  content: "\f201";
  /* chart-line */
}

.book-summary li.chapter[data-level="9.3"]>a::before {
  content: "\f200";
  /* pie-chart */
}

.book-summary li.chapter[data-level="9.4"]>a::before {
  content: "\f15b";
  /* file-lines */
}

/* =========================================================
   REIMBURSEMENT
   ========================================================= */

.book-summary li.chapter[data-level="10.1"]>a::before {
  content: "\f09d";
  /* credit-card */
}

.book-summary li.chapter[data-level="10.2"]>a::before {
  content: "\f3d1";
  /* request */
}

/* PINJAMAN / LOAN */
.book-summary li.chapter[data-level="11.1"]>a::before {
  content: "\f4c0";
  /* loan config */
}

.book-summary li.chapter[data-level="11.2"]>a::before {
  content: "\f09d";
  /* loan request */
}

.book-summary li.chapter[data-level="11.3"]>a::before {
  content: "\f53c";
  /* money-bill-wave for payment */
}

.book-summary li.chapter[data-level="11.3.1"]>a::before {
  content: "\f1da";
  /* history */
}

/* =========================================================
   DATA KARYAWAN
   ========================================================= */

.book-summary li.chapter[data-level="12.1"]>a::before {
  content: "\f0c0";
  /* users */
}

.book-summary li.chapter[data-level="12.1.1"]>a::before {
  content: "\f56f";
  /* import */
}

.book-summary li.chapter[data-level="12.2"]>a::before {
  content: "\f234";
  /* user-plus */
}

.book-summary li.chapter[data-level="12.3"]>a::before {
  content: "\f074";
  /* transfer */
}

.book-summary li.chapter[data-level="12.4"]>a::before {
  content: "\f2ed";
  /* resign / trash */
}

.book-summary li.chapter[data-level="12.4.1"]>a::before {
  content: "\f08b";
  /* offboarding / sign-out */
}

.book-summary li.chapter[data-level="12.5"]>a::before {
  content: "\f071";
  /* surat peringatan / exclamation */
}

/* =========================================================
   HAK AKSES USER
   ========================================================= */

.book-summary li.chapter[data-level="13.1"]>a::before {
  content: "\f023";
  /* lock */
}


/* =========================================================
   PAGE TITLE ICON (H1 AUTO)
   ========================================================= */

.markdown-section h1::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 14px;
  color: #6b7280;
  display: inline-block;
}


/* HOME */
.markdown-section h1#selamat-datang-di-humanis::before {
  content: "\f015";
  /* fa-house */
}

/* JADWAL KERJA */
.markdown-section h1#jadwal-kerja::before,
.markdown-section h1#jadwal-kerja-otomatis--berulang::before {
  content: "\f133";
  /* fa-calendar */
}

.markdown-section h1#drag-and-drop-ubah-jadwal-karyawan::before {
  content: "\f0b2";
  /* fa-arrows-alt */
}

.markdown-section h1#hari-libur-sync-google-kalender::before {
  content: "\f273";
  /* fa-google */
}

.markdown-section h1#melihat-jadwal-kerja-pada-mobile::before {
  content: "\f3cd";
  /* fa-mobile */
}

/* JADWAL SHIFT */
.markdown-section h1#jadwal-shift::before {
  content: "\f017";
  /* fa-clock */
}

.markdown-section h1#bulk-jadwal-shift::before {
  content: "\f0c5";
  /* fa-copy / bulk */
}

/* ABSENSI / KEHADIRAN */
.markdown-section h1#kehadiran::before,
.markdown-section h1#absensi::before,
.markdown-section h1#melakukan-clock-in--clock-out-karyawan::before {
  content: "\f017";
  /* fa-clock */
}

.markdown-section h1#mengajukan-presensi-manual::before {
  content: "\f044";
  /* fa-pen */
}

.markdown-section h1#mengajukan-izin--cuti::before {
  content: "\f06c";
  /* fa-leaf */
}

.markdown-section h1#mengaktifkan-pengajuan-izin-h-1::before {
  content: "\f013";
  /* fa-settings */
}

.markdown-section h1#mengajukan-izin-terlambat::before {
  content: "\f252";
  /* fa-hourglass */
}

.markdown-section h1#dinas-luar::before {
  content: "\f5a0";
  /* fa-location-dot */
}

.markdown-section h1#cut-off-presensi::before {
  content: "\f274";
  /* fa-calendar-xmark */
}

/* CUTI TAHUNAN */
.markdown-section h1#cuti-tahunan::before,
.markdown-section h1#pengaturan-saldo-cuti-otomatis::before {
  content: "\f0ae";
  /* fa-tasks */
}

.markdown-section h1#menambahkan-saldo-cuti-karyawan::before {
  content: "\f0fe";
  /* fa-plus-square */
}

/* GARIS PERSETUJUAN */
.markdown-section h1#garis-persetujuan::before,
.markdown-section h1#atur-garis-persetujuan::before,
.markdown-section h1#pengaturan-garis-persetujuan-di-humanis::before {
  content: "\f046";
  /* fa-list-check */
}

.markdown-section h1#menyetujui-pengajuan-karyawan::before,
.markdown-section h1#persetujuan-pengajuan-karyawan-di-humanis::before {
  content: "\f14a";
  /* fa-check-square */
}

.markdown-section h1#monitoring-pengajuan-terunda::before,
.markdown-section h1#cara-melacak-status-pengajuan-tertunda-di-humanis::before {
  content: "\f017";
  /* fa-clock */
}

.markdown-section h1#follow-up-pengajuan::before,
.markdown-section h1#konfirmasi-pengajuan-tertunda-melalui-fitur-chat-di-humanis::before {
  content: "\f0e5";
  /* fa-comment-dots */
}

/* LEMBUR / OVERTIME */
.markdown-section h1#lembur::before,
.markdown-section h1#pengaturan-lembur::before,
.markdown-section h1#pengaturan-lembur-karyawan::before {
  content: "\f013";
  /* fa-settings */
}

.markdown-section h1#mengajukan-lembur::before {
  content: "\f251";
  /* fa-stopwatch */
}

/* PAYROLL / GAJI KOMPONEN */
.markdown-section h1#payroll::before,
.markdown-section h1#komponen-gaji::before,
.markdown-section h1#gaji-komponen::before {
  content: "\f0ae";
  /* fa-components */
}

.markdown-section h1#penyesuaian-gaji::before,
.markdown-section h1#penyesuaian-gaji-karyawan::before {
  content: "\f555";
  /* fa-money-check */
}

.markdown-section h1#gaji-pokok-tunjangan-potongan::before,
.markdown-section h1#create-penggajian::before,
.markdown-section h1#payroll-otomatis::before {
  content: "\f81d";
  /* fa-money-bill */
}

.markdown-section h1#slip-gaji::before,
.markdown-section h1#melihat--mengunduh-slip-gaji::before {
  content: "\f571";
  /* fa-file-invoice-dollar */
}

/* BPJS & PPh 21 */
.markdown-section h1#bpjs--pph-21::before,
.markdown-section h1#bpjs-pph-21::before,
.markdown-section h1#perhitungan-bpjs-dan-pph-21::before,
.markdown-section h1#perhitungan-bpjs::before {
  content: "\f080";
  /* fa-chart-bar */
}

.markdown-section h1#laporan-bpjs::before {
  content: "\f201";
  /* fa-chart-line */
}

.markdown-section h1#perhitungan-pph-21::before {
  content: "\f200";
  /* fa-pie-chart */
}

.markdown-section h1#laporan-pph-21::before {
  content: "\f15b";
  /* fa-file-lines */
}

/* REIMBURSEMENT */
.markdown-section h1#reimbursement::before,
.markdown-section h1#mengatur-reimbursement::before,
.markdown-section h1#pengaturan-master-reimbursement-di-humanis::before {
  content: "\f09d";
  /* fa-credit-card */
}

.markdown-section h1#mengajukan-reimbursement::before {
  content: "\f3d1";
  /* fa-request */
}

/* PINJAMAN / LOAN */
.markdown-section h1#pinjaman::before,
.markdown-section h1#mengatur-pinjaman::before,
.markdown-section h1#pengaturan-maksimal-pinjaman-karyawan-di-humanis::before {
  content: "\f4c0";
  /* fa-loan config */
}

.markdown-section h1#mengajukan-pinjaman::before,
.markdown-section h1#pengajuan-pinjaman-di-aplikasi-humanis::before {
  content: "\f09d";
  /* fa-loan request */
}

.markdown-section h1#pembayaran-pinjaman-di-humanis::before,
.markdown-section h1#bayar-pinjaman-dan-ubah-nominal-cicilan::before {
  content: "\f53c";
  /* money-bill-wave for payment */
}

.markdown-section h1#cek-perubahan-nominal-cicilan::before,
.markdown-section h1#cek-riwayat-perubahan-pinjaman-karyawan::before {
  content: "\f1da";
  /* history */
}

/* DATA KARYAWAN */
.markdown-section h1#data-karyawan::before,
.markdown-section h1#tambah-data-karyawan::before {
  content: "\f0c0";
  /* fa-users */
}

.markdown-section h1#import-data-karyawan::before {
  content: "\f56f";
  /* fa-import */
}

.markdown-section h1#aktivasi--undang-karyawan::before {
  content: "\f234";
  /* fa-user-plus */
}

.markdown-section h1#mutasi-karyawan::before,
.markdown-section h1#proses-mutasi-karyawan::before {
  content: "\f074";
  /* fa-transfer */
}

.markdown-section h1#resign::before,
.markdown-section h1#karyawan-resign::before,
.markdown-section h1#prosedur-pengajuan-karyawan-resign::before {
  content: "\f2ed";
  /* fa-resign / trash */
}

.markdown-section h1#cara-administrasi-offboarding-karyawan::before {
  content: "\f08b";
  /* fa-sign-out / offboarding */
}

.markdown-section h1#surat-peringatan-karyawan::before,
.markdown-section h1#memberikan-surat-peringatan-karyawan::before {
  content: "\f071";
  /* fa-exclamation-triangle */
}

/* HAK AKSES USER */
.markdown-section h1#hak-akses-user::before,
.markdown-section h1#pengaturan-hak-akses-karyawan-di-humanis::before {
  content: "\f023";
  /* fa-lock */
}




/* -----------------------------------------------------------------
   4. CONTENT BODY (LAYOUT PADDING BESAR)
   ----------------------------------------------------------------- */
/* Sembunyikan Header Bawaan */
.book-header {
  display: none !important;
}

/* Wadah Utama Konten */
.book-body {
  position: fixed !important;
  top: 70px !important;
  /* Tinggi Header */
  left: 280px !important;
  /* Lebar Sidebar */
  right: 0 !important;
  bottom: 0 !important;

  background: #ffffff !important;
  overflow-y: auto !important;
  /* Scroll bar konten */
  z-index: 1 !important;
  transition: left 0.3s ease !important;
}

.page-inner {
  max-width: 80%;
}

/* --- KUNCI PADDING KIRI-KANAN (SEPERTI GAMBAR 2) --- */
.page-wrapper {
  /* 1. Batasi lebar maksimal tulisan agar tidak sampai ujung layar */
  max-width: 1000px !important;

  /* 2. Taruh di tengah-tengah (Center) */
  margin: 0 auto !important;

  /* 3. Beri jarak lega di dalam container */
  padding-top: 60px !important;
  padding-bottom: 80px !important;
  padding-left: 120px !important;
  /* Padding kiri lebih lega */
  padding-right: 120px !important;
  /* Padding kanan lebih lega */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Judul Halaman (H1) */
.markdown-section h1 {
  font-size: clamp(28px, 5vw, 36px) !important;
  font-weight: 800 !important;
  margin-bottom: 40px !important;
  color: #111827 !important;
  border-bottom: none !important;
}

.markdown-section h1 i {
  margin-right: 12px;
  font-size: 0.9em;
  color: #2563eb;
  vertical-align: middle;
}

/* Paragraf */
.markdown-section p,
.markdown-section li {
  color: #374151 !important;
  font-size: 16px !important;
}

/* Heading style seperti GitBook */

.markdown-section h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
}

.markdown-section h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
}

.markdown-section h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
}

.markdown-section h4 {
  font-size: 18px !important;
}

.markdown-section p {
  line-height: 1.7 !important;
}

.markdown-section li {
  line-height: 1.7 !important;
}

/* .markdown-section p {
    line-height: 1.8 !important;
    color: #374151 !important;
    margin-bottom: 1.5em !important;
    font-size: clamp(14px, 2.5vw, 18px) !important;
}

.markdown-section li {
    font-size: clamp(14px, 2.5vw, 18px) !important;
    line-height: 1.8 !important;
    margin-bottom: 0.5em !important;
} */

/* -----------------------------------------------------------------
   5. RESPONSIVE (MOBILE)
   ----------------------------------------------------------------- */

/* ---------------------------------------------------------------
   HAMBURGER BUTTON (Mobile Only)
   --------------------------------------------------------------- */
#mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  margin-right: 10px;
  color: #374151;
  font-size: 20px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

#mobile-menu-toggle:hover {
  background: #f3f4f6;
}

/* ---------------------------------------------------------------
   MOBILE OVERLAY BACKDROP
   --------------------------------------------------------------- */
#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop Extra Large */
@media (min-width: 1500px) {
  .page-wrapper {
    max-width: 1200px !important;
    padding-left: 140px !important;
    padding-right: 140px !important;
  }

  .nav-container {
    max-width: 1200px !important;
    padding: 20px 140px 40px 140px !important;
  }
}

/* Desktop Large */
@media (min-width: 1200px) and (max-width: 1499px) {
  .page-wrapper {
    max-width: 1100px !important;
    padding-left: 120px !important;
    padding-right: 120px !important;
  }

  .nav-container {
    max-width: 1100px !important;
    padding: 20px 100px 40px 100px !important;
  }
}

@media (max-width: 1199px) {
  #custom-top-header {
    padding: 0 30px !important;
  }

  .page-wrapper {
    max-width: 900px !important;
    padding-left: 80px !important;
    padding-right: 80px !important;
  }

  .nav-container {
    max-width: 900px !important;
  }

  .header-title {
    font-size: clamp(18px, 4vw, 24px) !important;
  }
}

@media (max-width: 1000px) {
  /* Tablet landscape */
  #custom-top-header {
    padding: 0 20px !important;
    height: 60px !important;
  }

  .book-summary {
    width: 240px !important;
    top: 60px !important;
  }

  .book-body {
    left: 240px !important;
    top: 60px !important;
  }

  .page-wrapper {
    max-width: 800px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    padding-top: 40px !important;
  }

  .nav-container {
    max-width: 800px !important;
    padding: 20px 40px 40px 40px !important;
  }

  .search-wrapper {
    max-width: 220px !important;
  }
}

/* ---------------------------------------------------------------
   MOBILE / TABLET PORTRAIT  (≤ 768px)
   --------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Body: allow normal scroll on mobile */
  body {
    overflow: auto !important;
    overflow-x: hidden !important;
  }

  /* --- TOP HEADER: visible & compact on mobile --- */
  #custom-top-header {
    display: flex !important;
    padding: 0 12px !important;
    height: 56px !important;
    z-index: 9000 !important;
    position: fixed !important;
  }

  /* Show hamburger */
  #mobile-menu-toggle {
    display: flex !important;
  }

  /* Hide search bar on very small screens to save space */
  .search-wrapper {
    max-width: 160px !important;
  }

  /* Header title smaller */
  .header-title {
    font-size: 16px !important;
  }

  /* --- SIDEBAR: slide-in drawer from left --- */
  .book-summary {
    position: fixed !important;
    top: 56px !important;
    left: -290px !important;
    /* Hidden off-screen by default */
    width: 280px !important;
    height: calc(100% - 56px) !important;
    bottom: 0 !important;
    z-index: 900 !important;
    overflow-y: auto !important;
    transition: left 0.3s ease !important;
    box-shadow: none !important;
  }

  /* When sidebar is open */
  .book-summary.mobile-open {
    left: 0 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12) !important;
  }

  /* Show overlay backdrop */
  #sidebar-overlay {
    display: block;
  }

  /* --- MAIN CONTENT BODY --- */
  .book-body {
    position: static !important;
    margin-top: 56px !important;
    /* Push below fixed header */
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 56px) !important;
    overflow: visible !important;
    transition: none !important;
  }

  /* body-inner must be static on mobile so iframes are not blocked */
  .book-body .body-inner {
    position: static !important;
    overflow: visible !important;
  }

  /* Hide the default GitBook book-header toggle */
  .book-header {
    display: none !important;
  }

  /* Content padding */
  .page-wrapper {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 30px !important;
    padding-bottom: 60px !important;
    max-width: 100% !important;
  }

  .nav-container {
    max-width: 100% !important;
    padding: 20px 20px 40px 20px !important;
  }

  /* Images */
  .markdown-section img {
    max-height: 400px !important;
  }
}

/* ---------------------------------------------------------------
   SMALL MOBILE  (≤ 480px)
   --------------------------------------------------------------- */
@media (max-width: 480px) {

  body {
    overflow: auto !important;
    overflow-x: hidden !important;
  }

  #custom-top-header {
    height: 52px !important;
  }

  .book-summary {
    top: 52px !important;
    height: calc(100% - 52px) !important;
  }

  .book-body {
    margin-top: 52px !important;
  }

  /* Hide search input on very small screens, keep icon */
  .search-wrapper {
    display: none !important;
  }

  .page-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 24px !important;
    padding-bottom: 48px !important;
  }

  .markdown-section h1 {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }

  .markdown-section h2 {
    font-size: 18px !important;
  }

  .markdown-section h3 {
    font-size: 16px !important;
  }

  .markdown-section p,
  .markdown-section li {
    font-size: 15px !important;
  }

  .markdown-section img {
    max-height: 300px !important;
  }

  .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 15px 16px 40px 16px !important;
  }

  .nav-container .nav-btn {
    min-height: 70px !important;
    padding: 12px 14px !important;
  }

  .nav-title {
    font-size: 13px !important;
  }
}

/* ================================
   PREV / NEXT STYLE
   ================================ */

/* 1. Container Utama (GRID 2 KOLOM) */
.nav-container {
  /* Layout Grid */
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  /* Bagi 2 kolom sama besar */
  gap: 20px;
  /* Jarak tengah */

  /* Posisi & Ukuran */
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 80px 40px 80px !important;
  border-top: 1px solid #eaeaea;
  box-sizing: border-box;

  /* PENTING: Memaksa turun ke bawah & Tinggi Otomatis */
  clear: both !important;
  /* Turun ke bawah jika ada elemen floating */
  height: auto !important;
  /* JANGAN stretch setinggi halaman */
  flex: 0 0 auto !important;
  /* Mencegah flex-grow jika parentnya flex */

  /* Ensure visibility */
  visibility: visible !important;
  opacity: 1 !important;
  display: grid !important;
  position: static !important;
}

/* 2. Tombol Navigasi */
.nav-container .nav-btn {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;

  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.2s ease;

  height: auto !important;
  min-height: 80px;
  align-self: start !important;

  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  position: static !important;
  margin: 0 !important;
}

/* Element Dummy (Jika salah satu tombol hilang) */
.nav-container .dummy {
  display: none;
}

/* Jika hanya satu tombol, lebarkan penuh */
.nav-container .nav-btn:only-child {
  grid-column: 1 / -1;
}

/* Hover Effect */
.nav-container .nav-btn:not(.dummy):hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
  z-index: 10;
}

/* 3. Typography */
.nav-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
  align-items: flex-start;
}

/* Prev button: teks rata kanan */
.nav-content.align-right {
  text-align: right;
  align-items: flex-end;
}

/* Label Kecil (Previous / Next) */
.nav-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Judul Halaman */
.nav-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;

  /* Batasi teks panjang maksimal 2 baris */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-container .nav-btn:hover .nav-title {
  color: #2563eb;
}

/* 4. Icon Panah */
.nav-icon {
  font-size: 18px;
  color: #9ca3af;
  flex-shrink: 0;
}

.nav-btn-prev .nav-icon {
  margin-right: 15px;
}

.nav-btn-next .nav-icon {
  margin-left: 15px;
}

.nav-container .nav-btn:hover .nav-icon {
  color: #2563eb;
}

/* 5. Mobile Responsive */
@media (max-width: 1000px) {
  .nav-container {
    padding: 20px 60px 40px 60px !important;
  }
}

@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: 1fr;
    /* Jadi 1 kolom di HP */
    gap: 15px;
    padding: 20px 20px 40px 20px !important;
  }

  .nav-container .dummy {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-container .nav-btn {
    padding: 10px 12px !important;
  }
}

/* ===============================
   CUSTOM CALLOUT (NO PLUGIN)
================================ */

.callout {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 5px solid;
  font-size: 14px;
}

.callout-info {
  background: #eef6ff;
  border-color: #2563eb;
  color: #1e3a8a;
}

.callout-success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.callout-warning {
  background: #fff7ed;
  border-color: #f97316;
  color: #7c2d12;
}

.callout-danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}

/* ===============================
   IMAGE STYLE
================================ */

.markdown-section img {
  max-width: 100% !important;
  max-height: 600px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  /* Optional: adds a nice rounded corner to screenshots */
  margin: 20px auto !important;
  /* Center the image */
  display: block !important;
}

/* ===========================
   RESPONSIVE YOUTUBE IFRAME
   =========================== */
iframe[src*="youtube.com"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    position: relative !important;
    z-index: 50 !important;
    pointer-events: auto !important;
}

/* ===========================
   IMAGE LIGHTBOX
   =========================== */

/* Gambar di konten bisa diklik */
.markdown-section img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.markdown-section img:hover {
  opacity: 0.85;
}

/* Overlay backdrop */
#img-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#img-lightbox.active {
  display: flex;
  opacity: 1;
}

/* Gambar preview */
#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn 0.25s ease;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Tombol close */
#lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 100000;
  line-height: 1;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  #img-lightbox {
    padding: 16px;
  }

  #lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
  }

  #lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}