/* Reset dasar untuk mencegah celah */
html,
body {
  margin: 0;
  padding: 0;
}
body > :first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Wrapper header */
.pkp_site_name_wrapper {
  margin: 0;
  padding: 0;
}

/* Kontainer header */
.pkp_site_name {
  margin: -5px 0 -5px 0;
  padding: 0;
}

/* Gambar header full-width tanpa ruang */
.pkp_site_name .is_img,
.pkp_site_name .is_img img {
  display: block;
  max-height: none !important;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  /* Pastikan wrapper punya tinggi minimum agar gambar tampil */
  .pkp_site_name_wrapper,
  .pkp_site_name {
    width: 100%;
    height: auto;
    min-height: 70px; /* tinggi minimum agar gambar muncul */
    overflow: hidden;
  }

  /* Pastikan gambar tetap tampil di lebar kecil */
  .pkp_site_name .is_img img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    object-position: center top;
  }

  /* Tombol menu toggle tetap di atas gambar */
  .pkp_site_nav_toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
  }
}

/* ================= HEADER / NAVBAR ================= */

/* Warna background utama navbar */
.pkp_navigation_primary_row {
  background-color: #0288D1; /* biru sidebar */
}

/* Warna teks utama navigasi */
.pkp_navigation_primary a {
  color: #fff !important;
}

/* Warna teks saat hover */
.pkp_navigation_primary a:hover {
  color: #01579B !important;
  background-color: #0288D1;
}

/* Warna teks submenu */
.pkp_navigation_primary ul li ul a {
  color: #fff !important;
}

/* HOVER EFFECT pada header */
.pkp_navigation_primary a:hover,
.pkp_search:hover {
  background-color: #0288D1;
  color: #01579B !important;
}

/* ACTIVE/CLICKED STATE */
.pkp_navigation_primary li.current > a,
.pkp_navigation_primary li.current > a:hover,
.pkp_navigation_primary a:active {
  background-color: #0288D1 !important;
  color: #01579B !important;
}

/* SEARCH BUTTON */
.pkp_search {
  color: white !important;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

/* Notifikasi task count */
.task_count {
  display: inline-block;
  background-color: white;
  color: #0288D1;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  margin-left: 5px;
  position: relative;
  top: -1px;
  animation: pulse 2s infinite;
}

/* Hilangkan brand footer default */
.pkp_brand_footer {
  display: none;
}

/* ================= SIDEBAR MAIN MENU ================= */

#customblock-main-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#customblock-main-menu li {
  margin: 0; /* hilangkan jarak antar li */
}

#customblock-main-menu li a {
  color: #01579B;
  text-decoration: none;
  display: block;
  padding: 5px 8px; /* lebih rapat */
  border-bottom: 1px solid #BBDEFB;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 600;
}

/* Animasi border bottom saat hover */
#customblock-main-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background-color: #01579B;
  transition: width 0.3s ease;
}

#customblock-main-menu li a:hover {
  color: #0288D1; /* teks biru terang saat hover */
}

#customblock-main-menu li a:hover::after {
  width: 100%; /* garis bawah penuh saat hover */
}
/* ================== JARAK ANTAR SIDEBAR BOX ================== */

/* Hilangkan jarak besar antar block sidebar */
.pkp_structure_sidebar .pkp_block {
  margin-bottom: 2px !important; /* default biasanya 20px */
  margin-top: 2px !important; /* default biasanya 20px */
}