/*------------ Card Guide ------------*/
.card-guide {
  display:  none !important;
}
@media (min-width: 1200px) {
  .card-guide {
    display:  inline-block !important;
  }
}

/*------------ Responsive SweetAlert2 ------------*/
.swal2-responsive {
  margin: 20px !important;
  font-size: 14px !important;
  max-width: calc(100vw - 40px) !important; /* Prevent window overflow */
  word-wrap: break-word !important; /* Break long words */
  overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
  .swal2-responsive {
    margin: 10px !important;
    font-size: 12px !important;
    max-width: calc(100vw - 20px) !important;
  }
  
  .swal2-responsive .swal2-title {
    font-size: 16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .swal2-responsive .swal2-content {
    font-size: 12px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important; /* Preserve line breaks */
  }
  
  .swal2-responsive .swal2-confirm,
  .swal2-responsive .swal2-cancel {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }
}

@media (max-width: 480px) {
  .swal2-responsive {
    margin: 5px !important;
    font-size: 11px !important;
    max-width: calc(100vw - 10px) !important;
  }
  
  .swal2-responsive .swal2-title {
    font-size: 14px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .swal2-responsive .swal2-content {
    font-size: 11px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-wrap !important;
    max-height: 60vh !important; /* Limit height on mobile */
    overflow-y: auto !important; /* Add scroll if needed */
  }
  
  .swal2-responsive .swal2-confirm,
  .swal2-responsive .swal2-cancel {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
}




/*------------ Icon Tampilan ------------*/
.card-body-icon {
    position: absolute;
    z-index: 0;
    top: -25px;
    right: -10px;
    font-size: 6rem;
    -webkit-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    transform: rotate(15deg);
}

.card-body-icon-ca {
    position: absolute;
    z-index: 0;
    top: -5px;
    right: 10px;
    font-size: 3rem;
    -webkit-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    transform: rotate(15deg);
}


/*------------ Card Guide ------------*/

/*------------ scrollbar ------------*/
::-webkit-scrollbar {
  width: 10px !important;
}
 
::-webkit-scrollbar-track {     
  background: #F8F9FA !important;    
}
 
::-webkit-scrollbar-thumb {
  background: #d3d3d3 !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #c82333 !important;
}
/*------------ scrollbar ------------*/

/*------------ Sticky Footer ------------*/
main > .container {
  padding: 60px 15px 0;
}

.footer {
  background-color: #f5f5f5;
}

.footer > .container {
  padding-right: 5px;
  padding-left: 5px;
}
/*------------ Sticky Footer ------------*/

/*------------ header ------------*/
.header-title {
  margin: 5px 0;
  text-align: center;
}

.header-button {
  margin: 5px 0;
  text-align: center;
}

@media (min-width: 992px) {
  .header-title {
    margin: 5px 0;
    text-align: left;
  }

  .header-button {
    margin: 5px 0;
    text-align: right;
  }
}
/*------------ header ------------*/

/*------------ img-size ------------*/
.h-500 {
  height: 32rem !important;
}

@media (max-width: 576px) {
  .h-500 {
    height: 16rem !important;
  }  
}

.img-w-100-hm-100 {
  max-height: 100px !important;
  width: 100px !important;
}

.img-w-75-hm-100 {
  max-height: 100px !important;
  width: 75px !important;
}

.img-w-50 {
  width: 50px !important;
}

.img-w-75 {
  width: 75px !important;
}

.img-w-100 {
  width: 100px !important;
}

.img-w-150 {
  width: 150px !important;
}

.img-w-200 {
  width: 200px !important;
}

.img-w-250 {
  width: 250px !important;
}

.img-w-300 {
  width: 300px !important;
}

.img-hm-200 {
  max-height: 200px !important;
}

/*------------ img-size ------------*/

/*------------ scroll to top ------------*/
.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  color: #fff;
  background: #dc3545;
  line-height: 46px;
}

.scroll-to-top:focus {
  background-color: #c82333;
  color: white;
}

.scroll-to-top:hover {
  background-color: #c82333;
  color: white;
}

.scroll-to-top i {
  font-weight: 800;
}
/*------------ scroll to top ------------*/

/*------------ textarea ------------*/
textarea {
  min-height: 90px;
  max-height: 210px;
}
/*------------ textarea ------------*/

/*------------ footer ------------*/
.footer-copyright {
  margin: 10px 0;
  text-align: left;
}

.footer-sosial-media {
  margin: 10px 0;
  text-align: left;
}



@media (min-width: 992px) {
  .footer-copyright {
    margin: 10px 0;
    text-align: left;
  }

  .footer-sosial-media {
    margin: 10px 0;
    text-align: right;
  }
}
/*------------ footer ------------*/

/*------------ btn login ------------*/
.btn-login {
  background: transparent !important;
  border: 1px solid #DC3545;
  color: #343a40 !important;
}

.btn-login:hover {
  background: #DC3545 !important;
  color: white !important;
}

.btn-login:focus {
  color: #fff !important;
  background-color: #c82333 !important;
  border-color: #bd2130 !important;
  box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.25) !important;
}
/*------------ btn login ------------*/

.card-body-icon {
    position: absolute;
    z-index: 0;
    top: -25px;
    right: -25px;
    font-size: 5rem;
    -webkit-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    transform: rotate(15deg);
}

/* ------------ Sidebar: scroll menu sampai bawah ------------ */
/* 1) AdminLTE: .sidebar punya height calc(100% - 3.5rem) mengira header brand selebar navbar;
      logo + judul + divider Kotama lebih tinggi → total kolom > viewport → bagian bawah terpotong
      oleh .main-sidebar { overflow-y: hidden } walau scrollbar di dalam .sidebar sudah di ujung.
   2) Flex + min-height:0 + height:auto pada .sidebar mengisi SISA ruang setelah brand (benar secara geometri).
   3) 100dvh mengurangi overlap dengan taskbar/widget Windows dibanding 100vh saja. */
.layout-fixed .wrapper .main-sidebar {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 280px !important;
  max-width: 280px !important;
  min-width: 280px !important;
}
@supports (height: 100dvh) {
  .layout-fixed .wrapper .main-sidebar {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}
.layout-fixed .wrapper .main-sidebar .brand-link {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  white-space: normal !important;
}
.layout-fixed .wrapper .main-sidebar .brand-link, 
.layout-fixed .wrapper .main-sidebar > br:first-child,
.layout-fixed .wrapper .main-sidebar > .dropdown-divider {
  flex-shrink: 0 !important;
}
.layout-fixed .wrapper .main-sidebar .brand-link img {
  display: block !important;
  max-width: 100px !important;
  width: 100px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}
.layout-fixed .wrapper .main-sidebar .sidebar {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 0.75rem !important;
  /* Hindari browser menggeser scroll saat fokus/klik item menu bawah */
  overflow-anchor: none;
  /* Firefox: scrollbar gelap menyatu dengan sidebar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
/* WebKit/Chromium: samarkan track & thumb ke warna sidebar gelap */
.layout-fixed .wrapper .main-sidebar .sidebar::-webkit-scrollbar {
  width: 6px;
}
.layout-fixed .wrapper .main-sidebar .sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.layout-fixed .wrapper .main-sidebar .sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}
.layout-fixed .wrapper .main-sidebar .sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.32);
}
.layout-fixed .wrapper .main-sidebar .sidebar .nav-link:focus {
  scroll-margin: 0;
}

/* Pembatas valid di dalam ul.nav-sidebar (ganti div.dropdown-divider ilegal) */
.nav-sidebar > .sidebar-divider-item {
  list-style: none;
  width: 100%;
  padding: 0 1rem;
  margin: 0.2rem 0;
  pointer-events: none;
}
.nav-sidebar > .sidebar-divider-item hr {
  margin: 0;
  border-top-color: rgba(255, 255, 255, 0.12);
}


