html, body {
    height: 100%;
    margin: 0;
}

#laporanMatrix th {
    text-align: center;
}

#laporanMatrix-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll untuk mobile */
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

#alertModal {
    z-index: 99999 !important; 
}

.modal-backdrop.alert-backdrop {
    z-index: 99999 !important;
}

.list-group.list-group-unbordered .list-group-item:last-child {
  border-bottom: none !important;
}

.dataTables_length {
  white-space: nowrap;
  margin-right: 1rem;
}

.dataTables_length label {
  display: flex;
  align-items: center;
  gap: 0.5rem; 
}

.nav-treeview > .nav-item > .nav-link {
  padding-left: 30px !important;
}

/* kalender jadwal */
.custom-control-input {
    width: 0.75em;
    height: 1em;
}
.custom-control-label {
    font-size: 0.5rem;
    margin-left: 0.25rem;
}

.bg-header-cal {
  background-color: #f8faff !important;
}

/* end of kalender jadwal */

.nowrap-col {
  white-space: nowrap !important;
}
  
#imgPreviewGambar {
    border-radius: 0.25rem;
    object-fit: contain;
  }

#imagePreviewWrapper:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

#imagePreviewWrapper img {
  border-radius: 10px;
  margin-top: 10px;
}

#uploadText {
  color: #999;
  font-size: 14px;
}

/* klik kiri di table */
.context-menu-list {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.25rem !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
  min-width: 160px;
  z-index: 9999 !important;
}

/* Item menu */
.context-menu-item {
  display: flex !important;
  align-items: center;
  padding: 8px 12px !important;
  font-size: 14px;
  color: #212529 !important;
  gap: 8px;
  white-space: nowrap;
}

/* Hover effect */
.context-menu-item:hover,
.context-menu-item.context-menu-hover {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Divider */
.context-menu-separator {
  height: 1px;
  margin: 4px 0;
  overflow: hidden;
  background-color: #e9ecef;
}




.custom-navbar {
    background-color: #ffffff !important;
  }

.custom-menu {
    background-color: #233c65 !important;
  }

.btn-custom {
  background-color: #233c65 !important;
  border-color: #233c65 !important;
  color: white !important;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom:active {
  background-color: #2c4777 !important;
  border-color: #2c4777 !important;
}


.bg-header-modal {
  background-color: #fff !important;
}

.bg-danger-50 {
  background-color: #e64151 !important;
}

.btn-danger-50 {
  background-color: #e64151 !important;
  border-color: #e64151 !important;
  color: white !important;
}

.btn-danger-50:hover,
.btn-danger-50:focus,
.btn-danger-50:active {
  background-color: #a34851 !important;
  border-color: #a34851 !important;
}

.bg-save-50 {
  background-color: #6ba8de !important;
}

.btn-save-50 {
  background-color: #57a1e1 !important;
  border-color: #57a1e1 !important;
  color: white !important;
}

.btn-save-50:hover,
.btn-save-50:focus,
.btn-save-50:active {
  background-color: #4691d3 !important;
  border-color: #4691d3 !important;
}


.bg-post-50 {
  background-color: #60cd60 !important;
}

.btn-post-50 {
  background-color: #6bdd6b !important;
  border-color: #6bdd6b !important;
  color: white !important;
}

.btn-post-50:hover,
.btn-post-50:focus,
.btn-post-50:active {
  background-color: #58ca58 !important;
  border-color: #58ca58 !important;
}

/* -- */
.bg-edit {
  background-color: #60cd60 !important;
}

.btn-edit {
  background-color: #efba0b !important;
  border-color: #efba0b !important;
  color: white !important;
}

.btn-edit:hover,
.btn-edit:focus,
.btn-edit:active {
  background-color: #cc9f0b !important;
  border-color: #cc9f0b !important;
}

.btn-user {
  background-color: #c90bef !important;
  border-color: #c90bef !important;
  color: white !important;
}

.btn-user:hover,
.btn-user:focus,
.btn-user:active {
  background-color: #a907c9 !important;
  border-color: #a907c9 !important;
}

.bg-secondary-50 {
  background-color: #a9a9a9 !important;
}

.btn-secondary-50 {
  background-color: #a9a9a9 !important;
  border-color: #a9a9a9 !important;
  color: white !important;
}

.btn-secondary-50:hover,
.btn-secondary-50:focus,
.btn-secondary-50:active {
  background-color: #818181 !important;
  border-color: #818181 !important;
}



/* TABLE */
.table thead th {
  background-color: #f8faff !important;
  color: #383838 !important;
}

table.dataTable,
table.dataTable thead th,
table.dataTable tbody td {
  font-size: 14px !important;
}

.modal {
  overflow-y: auto !important;
}

.modal-dialog {
  overflow-y: visible !important;
}

.select2-container {
  z-index: 9 !important;
}

.select2-dropdown {
  z-index: 9 !important;
}

.modal {
  z-index: 9999 !important;
}


 .image-radio {
    position: relative;
    display: inline-block;
    margin: 5px;
  }
  
  .image-radio img {
    border: 3px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
  }
  
  .image-radio input[type="radio"] {
    display: none;
  }
  
  .image-radio input[type="radio"]:checked + img {
    border-color: #6ba8de;
    opacity: 1;
  }
  
  .image-radio-check {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: #6ba8de;
    color: white;
    border-radius: 50%;
    padding: 2px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 15px;
  }
  
  .image-radio input[type="radio"]:checked + img + .image-radio-check {
    display: block;
  }
  
  .image-label {
    margin-top: 5px;
    /* font-weight: bold; */
    font-size: 11px;
    text-align: center;
  }

#modalRole table th,
#modalRole table td,
#modalDetailRole table th,
#modalDetailRole table td {
  padding: 2px 6px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  vertical-align: middle !important;
}

/* Kecilkan checkbox di kedua modal */
#modalRole input[type="checkbox"],
#modalDetailRole input[type="checkbox"] {
  transform: scale(0.8);
  margin: 0 auto;
  display: block;
}

/* Batasi tinggi baris di kedua modal */
#modalRole table tr,
#modalDetailRole table tr {
  height: 28px !important;
}


/* SHIMMER */
.shimmer-box {
  position: relative;
  overflow: hidden;
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
  z-index: 2;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Membuat teks transparan saat shimmer */
.text-transparent {
  color: transparent !important;
}

.shimmer-item {
  position: relative;
  overflow: hidden;
  padding: 12px 16px;
}

.shimmer-line {
  height: 14px;
  background: #e0e0e0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.shimmer-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Optional width utility (tailwind-style mimic) */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-100 { width: 100%; }

.mb-2 { margin-bottom: 8px; }


@media (max-width: 767.98px) {
    table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before {
        top: 14px; /* icon dropdown geser dikit ke tengah */
    }

    table.dataTable.dtr-inline.collapsed td.dtr-control {
        padding-left: 30px; /* beri ruang untuk icon toggle */
    }

     .footer-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  }

  .footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
  }

  .footer-item {
    flex: 1;
    text-align: center;
    color: #555;
    font-size: 12px;
    text-decoration: none;
  }

  .footer-item i {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
  }

  .footer-item.active,
  .footer-item:hover {
    color: #007bff;
  }

  /* Tambahkan padding bawah ke content agar tidak ketutupan */
  .content-wrapper {
    padding-bottom: 60px;
  }

}