@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");


::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f1f1f1; /* sama dengan sidebar */
}

.wrapper {
  display: flex;
  min-height: 100vh;
}


.main {
  padding-top: 50px;
  flex: 1;
  color: #0f0f0f;
  margin-left: 65px; /* Default margin when sidebar is not expanded */
  display: flex;
  flex-direction: column;
  width: calc(100% - 65px); /* Adjust width to accommodate sidebar */
  overflow: hidden;
  transition: 0.35s ease-in-out; /* Smooth transition */
  background-color: #fff;
}

.main2 {
  color: #0f0f0f;
  padding-top: 60px; /* untuk navbar */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background-color: #fff;
}


.navbar {
  position: fixed;
  min-height: 50px;
  top: 0;
  left: 65px;
  width: calc(100% - 65px);
  z-index: 999;
  transition: 0.35s ease-in-out;
}

#sidebar {
  position: fixed;
  top: 0px; /*55  tinggi navbar */
  left: 0px;
  bottom: 0px;
  width: 65px;
  min-width: 65px;
  z-index: 1000; /* di bawah navbar */
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: width 0.35s ease-in-out;
  border-right: 1px solid #dee2e6;
}

#sidebar.expand {
  width: 225px; /* Width when expanded */
}

#sidebar.expand ~ .main {
  margin-left: 225px; /* Adjust margin when sidebar is expanded */
  width: calc(100% - 225px); /* Adjust width accordingly */
}


#sidebar.expand ~ .main .navbar {
  left: 225px;
  width: calc(100% - 225px);
}

#toggle-btn {
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 0 .5rem;
}

#toggle-btn i {
  font-size: 1.7rem;
  color: #9c9c9c;
}

.btn-custom-nav {
  border: 0;
  padding: 0;
  
}

.btn-custom-nav i {
 font-size: 1.7rem;
}

.sidebar-logo {
  padding: 0rem 0;
}

.sidebar-logo a {
  white-space: nowrap;
  font-size: 1.2rem;
}


#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span,
#sidebar:not(.expand) a.sidebar-link-add span,
#sidebar:not(.expand) .tooltips2,
#sidebar:not(.expand) .tooltips {
  display: none;
}

#sidebar.expand .tooltips {
  display: none;
}

#sidebar.expand .tooltips2 {
  display: none;
}

#sidebar.expand .sidebar-logo,
#sidebar.expand a.sidebar-link span,
#sidebar.expand a.sidebar-link-add span {
  animation: fadeIn 0.25s ease;
}

#sidebar:not(.expand) .sidebar-dropdown {
  display: none !important; /* Biar ga ada space kosong */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.sidebar-dropdown {
  padding: 0 1.3rem;
  border-radius: 10px;
  color: #9c9c9c; /* Teks tetap berwarna putih */
}
/* Background color untuk submenu */
.sidebar-dropdown .sidebar-link {
  color: #9c9c9c; /* Teks tetap berwarna putih */
}

/* Hover effect untuk submenu */
.sidebar-dropdown .sidebar-link:hover {
  color: #0f0f0f; /* Teks tetap berwarna putih */
  background-color: transparent; /* override biar nggak pakai background */
  border-radius: 0; /* kalau nggak mau melengkung */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0);
}

/* Garis di kiri submenu      */
.sidebar-dropdown .sidebar-item::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ddd; /* warna garis vertikal */
  border-radius: 2px;
}

/* Hover biar interaktif         */
.sidebar-dropdown .sidebar-item:hover::before {
  background-color: #fef111;
}

.sidebar-nav {
  padding: 0;
  flex: 1 1 auto;
}

.sidebar-add {
  padding: 0.1rem 0;
}

a.sidebar-link-add {
  display: flex; /* flex biar ikon + teks sejajar */
  align-items: center; /* sejajarkan vertikal */
  padding: 0.625rem 0.525rem; /* horizontal padding aja */
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  background-color: #0f0f0f;
  border-radius: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sidebar-link-add i {
  font-size: 1.5rem;
  margin-right: 0.625rem;
  min-width: 25px; /* fix lebar ikon, biar stabil */
  text-align: center;
}



a.sidebar-link {
  display: flex; /* flex biar ikon + teks sejajar */
  align-items: center; /* sejajarkan vertikal */
  padding: 0.625rem 0.525rem; /* horizontal padding aja */
  color: #9c9c9c;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sidebar-link i {
  font-size: 1.4rem !important;
  margin-right: 0.625rem;
  min-width: 25px; /* fix lebar ikon, biar stabil */
  text-align: center;
}

.sidebar-link i,
.dropdown-item i {
  font-size: 1.1rem;
  margin-right: 0.75rem;
}

a.sidebar-link:hover {
  background-color: #fef111;
  border-radius: 1rem;
  color: #0f0f0f;
  box-shadow: 2px 7px 5px #fef2118f;
}

a.sidebar-link-add:hover {
  background-color: #fff;
  border-radius: 1rem;
  color: #0f0f0f;
}

.sidebar-item {
  padding: 0rem .7rem;
  position: relative;
}

.add-ikon {
  padding: 0.5rem 1rem;
  position: relative;
}

/* ================================================================ */

/* Tooltips disembunyikan secara default */
#sidebar:not(.expand) .tooltips {
  display: none;
  position: absolute;
  left: 80px;
  top: 13px;
  height: 35px;
  max-width: 250px;
  text-align: center;
  line-height: center;
  transform: translateY(50% -50%);
  background-color: #0f0f0f;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 5px 10px;
  border-radius: 10px;
  color: #fff;
  white-space: nowrap;
  z-index: 1000;
}

/* Tooltips disembunyikan secara default */
#sidebar:not(.expand) .tooltips2 {
  display: none;
  position: absolute;
  left: 80px;
  top: 10px;
  max-height: 300px;
  width: 160px;
  line-height: center;
  transform: translateY(50% -50%);
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 0;
  border-radius: 10px;
  color: #0f0f0f;
  white-space: nowrap;
  z-index: 1000;
}

.tooltips2 ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tooltips2 li {
  margin: 0;
  padding: 0.3rem 0.5rem; /* atas-bawah 1rem, kiri-kanan 1rem */
}

/* judul / header */
.tooltips2 .title {
  color: #0f0f0f;
  margin-left: 0.1rem;
}

/* link item */
.tooltips2 a {
  display: block;
  color: #9c9c9c;
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem; /* ruang di dalam background hover */
}

/* hover effect */
.tooltips2 a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0f0f0f;
}

/* Tampilkan tooltips saat item sidebar utama di-hover */
#sidebar:not(.expand) .sidebar-item:hover > .tooltips {
  display: block; /* Menampilkan tooltips saat di-hover */
  transition: all 0.5s ease;
}

/* Tampilkan tooltips saat sub-menu (anaknya) di-hover */
#sidebar:not(.expand) .sidebar-dropdown .sidebar-item:hover .tooltips {
  display: block; /* Menampilkan tooltips saat sub-menu di-hover */
}

/* Tampilkan tooltips saat item sidebar utama di-hover */
#sidebar:not(.expand) .sidebar-item:hover > .tooltips2 {
  display: block; /* Menampilkan tooltips saat di-hover */
}

/* Tampilkan tooltips saat sub-menu (anaknya) di-hover */
#sidebar:not(.expand) .sidebar-dropdown .sidebar-item:hover .tooltips2 {
  display: block; /* Menampilkan tooltips saat sub-menu di-hover */
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
  display: block;
  max-height: 15em;
  width: 100%;
  opacity: 1;
}
/* =================================================================== */

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 0.075rem 0.075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  transform: rotate(-135deg);
  transition: all 0.2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all 0.2s ease-out;
}

.sidebar-footer {
  margin-top: auto; /* ini yang bikin dia selalu ke bawah */
  padding: 1rem .6rem;
}


.avatar {
  height: 40px;
  width: 40px;
}

.cards {
  background-color: #fff;
  transition: 0.4s;
  cursor: pointer;
 padding: .5rem 1rem .5rem 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.cards:hover {
  /* background-color: #07317b; */
  /* background-color: #0f0f0f;
    color: #fff; */
  transform: translateY(-10.5px);
}

/* Icon Card default styles */
.ikon-card {
  display: flex; /* Gunakan Flexbox */
  justify-content: center; /* Atur agar konten berada di tengah secara horizontal */
  align-items: center; /* Atur agar konten berada di tengah secara vertikal */
  padding: 10px;
  width: 80px;
  height: 80px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.bg-merah { background-color: #ffcbcb9d; color: #ff5252; }
.bg-biru  { background-color: #b9dfff89; color: #299eff; }
.bg-hijau { background-color: #b2ffbfa1; color: #47da5f; }
.bg-kuning{ background-color: #fcffaf9e; color: #ffb013; }
.bg-ungu  { background-color: #e1d6ff8e; color: #916cff; }

.font-merah { color: #ff5252; }
.font-biru  { color: #299eff; }
.font-hijau { color: #47da5f; }
.font-kuning{ color: #ffb013; }
.font-ungu  { color: #916cff; }

/* Icon styles */
.ikon-card i {
  font-size: 40px;
  transition: all 0.3s ease;
}

/* BUAT HOVER ITEM */
/* Hover effect on card to change ikon-card */
/* .cards:hover .ikon-card {
    background-color: #fef111;  
    border-color: #fef111;  
} */

/* Hover effect on card to change icon inside ikon-card */
/* .cards:hover .ikon-card i {
    color: #0f0f0f; 
} */

/* ===== TABLE ===== */
/* .table>thead tr {
    color: #fff;
    text-align: left;

}

tr.highlight th {
    background-color: #07317b;
    color: #fff;
} */

.content {
  flex: 1 1 auto;
}

footer {
  background-color: #f5f5f5;
  padding: 1rem 0.875rem;
}

@media (min-width: 768px) {
  .navbar form {
    max-width: 320px;
  }

  .input-group-navbar .form--control:focus {
    outline: none;
    box-shadow: 0 0 0 0 rgba(255, 255, 255);
    border: 20px;
  }

  .input-group-navbar .form--control {
    color: #3e4455;
  }

  .input-group-navbar .btn {
    background-color: #07317b;
    color: #fff;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    z-index: 10000;
  }

  .navbar-expand .navbar-nav .dropdown-menu {
    box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.05);
  }
}

/* Untuk layar kecil (HP / Tablet < 768px) */
@media (max-width: 767.98px) {
  #toggle-btn {
    display: none;
  }
}

/* custom modal kecil katalog  sparepart */
.custom-modal {
  display: none;
  /* default modal tersembunyi */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: .5rem .5rem;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: .9rem;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 95%;
  line-height: 1;
  flex-wrap: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* <— animasi halus */
  overflow-x: visible; /* ganti auto -> visible */
  overflow-y: visible; /* optional kalau tooltip vertikal */
  /* biar tetap lurus, tidak patah ke bawah */
}

/* efek hover membesar */
.custom-modal:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Optional: responsive kecil-kecil */
@media (max-width: 576px) {
  .custom-modal {
    gap: 8px;
  }
}

/* Tooltip custom */
.custom-modal [data-tooltip] {
  position: relative;
  cursor: pointer;
}

.custom-modal [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%; /* di atas tombol */
  left: 50%;
  transform: translateX(-50%);
  background: #0f0f0f;
  color: #fff;
  padding: .3rem .5rem;
  border-radius: .5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10000;
}

.custom-modal [data-tooltip]:hover::after {
  opacity: 1;
}





/* Submenu styling */

.table-input {
    width: 100%;
    min-width: 100px;  /* bebas ubah angkanya */
    box-sizing: border-box;
}

/* CUSTOM STYLE UNTUK ARROW MODAL*/
.nav-arrow {
    background: transparent;
    border: none;
    font-size: 3rem;              /* GEDE */
    padding: 0 0px;
    cursor: pointer;
    line-height: 1;
    transition: color .2s ease, transform .15s ease;
}

/* PREV - abu */
.nav-arrow.prev {
    color: #adb5bd; /* bootstrap gray */
}

/* NEXT - biru */
.nav-arrow.next {
    color: #0d6efd; /* bootstrap primary */
}

/* HOVER */
.nav-arrow.prev:hover {
    color: #6c757d; /* gray lebih tua */
}

.nav-arrow.next:hover {
    color: #0b5ed7; /* primary lebih tua */
}

/* ACTIVE / CLICK */
.nav-arrow:active {
    transform: scale(0.9);
}

/* DISABLED */
.nav-arrow:disabled {
    color: #dee2e6;
}


/* STYLE SEARCH INPUT */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 30px;
    padding-right: 30px;
}

.search-box .icon-search {
    position: absolute;
    top: 50%;
    left: 9px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6c757d;
    line-height: 1;
}

.search-box .icon-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
}


/* style input form foto */
.profile-container {
    position: relative;
    display: inline-block;
    }

    .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
    display: block;
}

    .overlay {
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 1.2em;
        pointer-events: none;
        /* Prevent overlay from blocking clicks */
    }

    .profile-container:hover .overlay {
        opacity: 1;
    }

    .profile-container:hover .profile-image {
        filter: brightness(70%);
    }
    /* end */


  #bulkActionBar {
    display: none;
  }