:root {
  --text-primary: #ff586b;
  --text-pink: #fe697a;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  /* disables smooth bounce scrolling */
}

.news-content>ul,
.news-content>ol {
  list-style-position: inside;
  padding-left: .8rem;
  margin-bottom: .5rem;
}

p {
  margin-bottom: .5rem;
}

.wrapper {
  margin-top: -5rem;
}

/* ===================================
UTILITY
=================================== */
.gap-16 {
  gap: 16px;
}

.mt-40px {
  margin-top: 40px;
}

/* .is-disabled {
  background-color: #D7D9DD !important;
  border-color: #D7D9DD !important;
} */

/* ===================================
MODAL
=================================== */
.modal-content {
  border-radius: 24px;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}

.modal-backdrop {
  background-color: #161C24;
}

.modal-backdrop.show {
  opacity: .8;
}

.modal-md {
  width: 600px;
  max-width: 600px;
}

#modal-show-title,
#modal-title {
  margin-bottom: 0 !important;
}

.modal-header {
  padding: 24px 0;
  margin: 0 24px;
}

.modal-footer {
  border-top: unset !important;
}

/* ===================================
END MODAL
=================================== */

/* ===================================
BREADCRUMB
=================================== */

/* ===================================
END BREADCRUMB
=================================== */
.breadcrumb-phinter {
  background: transparent;
  padding: 4px;
  margin-bottom: 8px;
  align-items: center;
}

.breadcrumb-item-phinter a {
  font-size: 14px;
  font-weight: 400;
  color: #5d6878;
}

.breadcrumb-item-phinter.active {
  font-size: 14px;
  font-weight: 600;
  color: #1d242f;
  /* font-style: ; */
}

/* ===================================
BUTTON
=================================== */
.btn-pink {
  background-color: var(--text-pink);
  color: var(--text-white);
  border-radius: 1000px;
  padding: 12px;
}

.btn-pink:hover {
  background-color: #b44b57;
  color: var(--text-white);
}

.btn-pink:focus,
.btn-pink:active {
  background-color: #6b2c33;
  color: var(--text-white);
}

.btn-pink:disabled {
  background-color: #c0c4cb;
  color: #fff;
  cursor: not-allowed;
  border: none;
}

.btn-primary-phinter {
  background-color: var(--text-pink);
  color: var(--text-white);
  border-radius: 1000px;
  padding: 12px 12px;
  min-width: 110px;
  /* height: 45px; */
  font-size: 14px;
  font-weight: 600;
}

.btn-outline-primary-phinter {
  color: var(--text-pink);
  border-color: var(--text-pink);
  border-radius: 1000px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary-phinter:disabled {
  background-color: #c0c4cb;
  border-color: #c0c4cb;
}

.btn-filter,
.btn-upload,
.btn-recalculate,
.btn-download {
  background: #fdfdff;
  border: 1px solid #ebecee;
  position: relative;
  border-radius: 8px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-items: center;
}

.btn-filter.is-active::after,
.btn-filter.has-active-filter::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  /* background: #FE697A; */
  box-shadow: 0 0 0 2px #F5F6F9;
}

#btn-apply-filter {
  min-width: 99px !important;
  height: 34px;
  font-size: 12px;
  font-weight: 400;
  padding: 0;
}

#btn-reset-filter {
  min-width: 99px !important;
  margin-right: 16px;
  font-size: 12px;
  font-weight: 400;
  padding: 0;
}

#btn-reset-filter:disabled {
  color: #c0c4cb;
  border-color: #c0c4cb;
  opacity: 1;
}

.btn-reset-table-filter {
  border-color: #FD697A !important;
  background: transparent !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  padding: 6px 20px !important;
  transition: all 0.15s ease;
  color: #FD697A !important;
}

.btn-reset-table-filter:hover,
.btn-reset-table-filter:focus {
  background: #fff5f7 !important;
  border-color: #ffd4da !important;
  color: #1D242F !important;
  box-shadow: none !important;
}

.btn {
  font-family: "Poppins", sans-serif !important;
}

.search-filter {
  height: 43px;
}

.search-clear-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98A2B3;
  cursor: pointer;
}

.search-clear-btn:hover {
  color: #667085;
}

.search-clear-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98A2B3;
  cursor: pointer;
}

.search-clear-btn:hover {
  color: #667085;
}

.search-clear-slot {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* ===================================
END BUTTON
=================================== */

/* ===================================
BADGE
=================================== */
.badge-primary {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #203868;
  background-color: #e6f2ff;
  border-radius: 999px;
}

.badge-danger {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ff0000;
  background-color: #ffe6e6;
  border-radius: 999px;
}

.badge-warning {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.badge-success {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1c7731;
  background-color: #eaf6ec;
  border-radius: 999px;
}

/* ===================================
END BADGE
=================================== */
/* ===================================
TOOTIP
=================================== */
.tooltip .arrow {
  display: none !important;
}

.custom-tooltip .tooltip-inner {
  background-color: #fff;
  font-weight: bold;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #ebecee;
  text-align: justify;
  width: 330px;
  max-width: none;
  box-shadow: 0 1px 10px 5px rgba(0, 0, 0, .1);
}

.custom-tooltip .tooltip-header {
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  /* leading-trim: NONE; */
  line-height: 150%;
  letter-spacing: 0%;
  color: #1d242f;
}

.custom-tooltip .tooltip-body {
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  /* leading-trim: NONE; */
  line-height: 150%;
  letter-spacing: 0%;
  color: #5d6878;
}

.custom-tooltip .arrow::before {
  border-right-color: #4caf50;
  /* Warna arrow */
}

.tooltip.custom-tooltip,
.tooltip.custom-tooltip.show {
  opacity: 1 !important;
}

/* ===================================
END TOOLTIP
=================================== */

/* ===================================
MODAL SWEETALERT CONFIRMATION YES/NO/CANCEL
=================================== */
.swal2-container {
  z-index: 20000 !important;
}

.swal2-container.swal2-shown {
  background-color: rgba(22, 28, 36, 0.8) !important;
}

.swal2-popup {
  border-radius: 24px !important;
  padding: 24px !important;
  width: 37.5rem !important;
  background-color: #FDFDFF !important;
  border: 1px solid #EBECEE !important;
}

.swal2-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.swal2-content {
  font-size: 14px;
  font-weight: 400;
}

.swal2-content h2 {
  color: black;
}

.swal2-image {
  margin-bottom: 20.67px;
}

.swal2-actions {
  margin-top: 40px !important;
  gap: 16px !important;
}

.swal-btn-cancel {
  padding: 12px 51px !important;
}

.swal-btn-yes {
  padding: 12px 63.5px !important;
}

/* SweetAlert: center relative to content area (exclude sidebar space) */
/* @media (min-width: 992px) {
  body.sidebar-mini {
    --swal-content-offset-left: 250px;
  }

  body.sidebar-mini.sidebar-collapse {
    --swal-content-offset-left: 4.6rem;
  }

  body .swal2-container.swal2-center {
    padding-left: calc(0.625em + var(--swal-content-offset-left, 0px));
  }
} */

.swal2-popup.swal-confirm-offset {
  margin-top: 100px !important;
}

/* Global SweetAlert modal offset from top (exclude toast layout). */
.swal2-container.swal2-center>.swal2-popup:not(.swal2-toast) {
  margin-top: 100px !important;
}

/* ===================================
END MODAL SWEETALERT CONFIRMATION YES/NO/CANCEL
=================================== */

/* ===================================
POPOVER UNTUK FILTER
=================================== */

.popover {
  width: 423px;
  left: -60px !important;
  max-width: none !important;
}

.popover.popover-lg {
  /* transform: translate3d(795px, 87px, 0px) !important; */
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  /* padding: 16px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popover-filter .form-control {
  border-radius: 6px;
}

/* Header popover-filter */
.popover-filter .mb-3.d-flex.justify-content-between.align-items-center {
  padding: 16px 16px 0px 16px;
}

/* Footer popover-filter */
.popover-filter .mt-3.d-flex.justify-content-end {
  padding: 6px 16px 16px 16px;
}

.popover-filter label {
  font-weight: 500;
  color: #333;
}

.popover-filter .btn-outline-secondary {
  border-radius: 20px;
  padding: 5px 15px;
}

.popover-filter .btn-primary {
  background-color: var(--text-pink);
  border-color: var(--text-pink);
  color: white;
  border-radius: 20px;
  padding: 5px 15px;
}

/* Geser posisi arrow popover ke ujung kanan untuk posisi bottom */
.popover.bs-popover-bottom .arrow {
  left: auto !important;
  /* hapus posisi default */
  right: 10px !important;
  /* jarak arrow dari sisi kanan popover */
}

/* Sesuaikan posisi arrow untuk top placement */
.popover .arrow {
  left: auto !important;
  right: 10px !important;
  display: none !important;
}

/* Geser popover ke kiri 20px */
#btn-filter+.popover {
  transform: translateX(-20px) !important;
}

/* Kalau mau geser ke kanan, ubah jadi positif */
#btn-filter+.popover {
  transform: translateX(10px) !important;
}

.btn-filter:hover,
.btn-filter:active {
  background-color: #fff0f2 !important;
  border-color: #ebecee !important;
  border: 1px solid #FE697A !important;
  color: #FE6A7A !important;
}

.btn-popover {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  min-width: unset;
  height: 34px;
  width: 99px;
}

.btn-filter {
  height: 45px !important;
}

.popover-filter .popover-title {
  font-size: 16px;
  font-weight: 600;
}

.popover-filter .popover-badge {
  border-radius: 3px;
  margin-left: 5px;
  background-color: #FE6A7A;
  color: white;
}

.popover-filter {
  max-height: none;
  overflow: visible;
}

.popover-filter .popover-body {
  max-height: min(420px, calc(100vh - 180px));
  max-height: min(420px, calc(100dvh - 180px));
  overflow-y: auto !important;
  overflow-x: hidden;
  padding-right: 4px;
}

.popover-filter .form-group {
  margin-bottom: 18px !important;
  padding: 0 16px;
}

.popover-filter>.popover-separator {
  margin: 16px 0;
  border-top: 1px solid #E8E9EC;
}

/* ===================================
END POPOVER UNTUK FILTER
=================================== */

/* ===================================
SELECT2 FILTER WITH ICON SEARCH
=================================== */
.select2-search--dropdown {
  position: relative;
}

.select2-search--dropdown:before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 14px;
}

.select2-search--dropdown .select2-search__field {
  padding-left: 25px !important;
}

/* ===================================
END SELECT2 FILTER WITH ICON SEARCH
=================================== */

/* ===================================
FORM INPUT
=================================== */
label:not(.form-check-label):not(.custom-file-label) {
  font-size: 12px;
  font-weight: 400;
  color: #1d242f;
  margin-bottom: 4px;
}

.form-control-phinter,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  opacity: 1;
  border-radius: 8px;
  border-width: 1px;
  background: #fdfdff;
  color: #1D242F;
  border: 1px solid #e9eaed;
  font-size: 14px;
}

.select2-container--bootstrap4 .select2-selection {
  border-radius: 8px !important;
  border: unset;
}


/* Hapus konten default arrow bawaan */
.select2-container--bootstrap4 .select2-selection__arrow b {
  display: none;
}

/* Tambahkan sedikit padding kanan agar tidak menabrak icon */
.select2-container--bootstrap4 .select2-selection--single {
  /* padding-right: 30px !important; */
  border-radius: 10px !important;
}

/* ===================================
END FORM INPUT
=================================== */

/* ===================================
DATEPICKER UNTUK TANGGAL
=================================== */
.datepicker.dropdown-menu {
  width: 339px !important;
  height: 342px !important;
  padding: 10px;
  font-size: 14px;
  display: flex;
}

.datepicker table {
  width: 100% !important;
  height: 100% !important;
  table-layout: fixed;
}

.datepicker table tr {
  height: calc(100% / 7);
}

.datepicker table tr td,
.datepicker table tr th {
  width: calc(100% / 7);
  text-align: center;
  vertical-align: middle;
}

.datepicker thead th {
  color: black !important;
  font-weight: bold;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.selected,
.datepicker table tr td.selected:hover {
  background: #fe697a !important;
  border-radius: 12px !important;
  color: #fff !important;
  border: none !important;
}

.datepicker table tr td.day:hover {
  background: #ffd4da !important;
  border-radius: 12px !important;
}

.datepicker-dropdown.datepicker-orient-bottom:after {
  display: none;
}

/* ===================================
END DATEPICKER UNTUK TANGGAL
=================================== */

/* ===================================
DATERANGE UNTUK RANGE TANGGAL
=================================== */
.daterangepicker td.start-date,
.daterangepicker td.start-date:hover,
.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker td.end-date,
.daterangepicker td.end-date:hover {
  background: #fe697a !important;
}

.daterangepicker td.start-date {
  border-radius: 12px 0 0 12px !important;
  background: #fe697a !important;
}

.daterangepicker td.end-date {
  border-radius: 0 12px 12px 0 !important;
  background: #fe697a !important;
}

.daterangepicker td.in-range {
  background-color: #ffd1d6 !important;
}

.calendar.right {
  display: none !important;
}

.calendar-table th {
  color: #ff586b;
}

.daterangepicker th.month {
  width: auto;
  color: #1d242f;
  font-size: 14px;
  font-weight: 600;
}

.daterangepicker .calendar-table .next span,
.daterangepicker .calendar-table .prev span {
  color: #6d7386;
}

/* ===================================
END DATERANGE UNTUK RANGE TANGGAL
=================================== */

/* ===================================
SIDEBAR
=================================== */
.main-sidebar {
  padding-top: 44px;
  padding-left: 24px;
  width: 260px;
}

.nav-sidebar .nav-item>.nav-link {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.sidebar-mini.sidebar-collapse .main-sidebar {
  width: 142px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  transition: none !important;
  box-sizing: border-box;
}

.sidebar-mini.sidebar-collapse .main-sidebar:hover {
  width: 142px !important;
}

.main-sidebar .sidebar {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 90px;
  padding-right: 24px !important;
  padding-left: 0 !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar .sidebar {
  padding-right: 0 !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-link-ff {
  width: 0;
}

.layout-fixed .brand-link-ff {
  padding-left: 0 !important;
}

.brand-link-ff .compact-logo {
  display: none;
}

.brand-link-ff .brand-image {
  margin-left: 0 !important;
}

/* User panel di bawah sidebar, tetap menempel */
.sidebar-user-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 260px;
  /* sesuaikan lebar sidebar kamu */
  background: #252E4B;
  z-index: 1050;
  padding: 20px 15px;
  border-top: 1px solid #1A2135;
  box-shadow: 0px -8px 10px 0px #00000026;
}

.sidebar-user-panel .user-panel {
  overflow: visible;
}

.sidebar-user-panel .sidebar-user-link {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
}

.sidebar-user-panel .sidebar-user-link .image {
  flex: 0 0 auto;
}

.sidebar-user-panel .sidebar-user-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-panel .sidebar-user-name {
  display: block;
  min-width: 0;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-mini.sidebar-collapse .sidebar-user-panel {
  width: 142px;
  padding: 20px 0;
  align-items: center;
  display: flex;
  justify-content: center;
}

.sidebar-mini.sidebar-collapse .brand-link-ff .full-logo {
  display: none;
}

.sidebar-mini.sidebar-collapse .brand-link-ff .compact-logo {
  display: inline;
  margin-left: 60px !important;
}

.sidebar-mini.sidebar-collapse .brand-link-ff {
  justify-content: start;
  display: flex;
  align-items: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar>.nav-item>.nav-link {
  width: 100%;
  margin: 6px 0;
}

.sidebar-mini.sidebar-collapse .main-sidebar .nav-sidebar>.nav-item {
  width: 100%;
  text-align: center;
}

.sidebar-mini.sidebar-collapse .sidebar-user-panel .info {
  display: none;
}

.sidebar-mini.sidebar-collapse .sidebar-user-panel .image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-mini.sidebar-collapse .sidebar-user-panel .sidebar-user-name,
.sidebar-mini.sidebar-collapse .sidebar-user-panel .sidebar-user-icon {
  display: none;
}

.user-panel .info a {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
}

/* .sidebar {
overflow-y: unset;
} */

.nav-pills .nav-link {
  color: #fff;
}

.nav-font {
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  vertical-align: middle;
}

.nav-font-active {
  font-size: 14px;
}

.nav-font-list {
  color: #a2a8b1;
}

.nav-pills .nav-link.active {
  display: flex;
  align-items: center;
  background: #fe697a;
  border-radius: 100px;
}

.nav-sidebar>.nav-item .nav-icon {
  margin-right: 0.5rem;
}

.nav-sidebar .nav-link>.right,
.nav-sidebar .nav-link>p>.right {
  right: 0.5rem !important;
}

/* Pastikan teks menu bisa membungkus */
.sidebar .nav-item p {
  white-space: normal !important;
  /* izinkan teks membungkus */
  word-wrap: break-word;
  /* pecah kata panjang */
  overflow-wrap: break-word;
  /* dukung browser modern */
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  line-height: 1.3em;
  /* jarak antar baris lebih rapat */
  max-width: 160px;
  /* batasi lebar teks agar tidak terlalu panjang */
  vertical-align: middle;
}

/* Sesuaikan tinggi minimum nav-link agar pas kalau 2 baris */
.sidebar .nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding-left: 16px;
  gap: 10px;
}

.sidebar .nav-link .right {
  position: static !important;
  /* Reset posisi absolut bawaan AdminLTE */
  margin-left: auto;
  /* Dorong panah ke kanan */
  display: flex;
  align-items: center;
  /* Pastikan panah sejajar tengah */
}

/* Untuk submenu level 2 dan 3 biar konsisten */
.sidebar .nav-treeview .nav-link p {
  font-size: 14px;
  line-height: 1.2em;
  max-width: 150px;
}

/* Kalau teks lebih panjang, biarkan wrapping tapi jangan bikin tinggi item berlebihan */
.sidebar .nav-item {
  align-items: start;
}

.sidebar .nav-item.menu-open>.nav-link {
  opacity: 1;
  border-radius: 100px;
  padding-top: 8px;
  padding-right: 16px;
  padding-bottom: 8px;
  padding-left: 16px;
  background: #FE697A;
}

.nav-item.menu-open>.nav-link i.right {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.sidebar .nav-item.has-submenu>.nav-link .right {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.sidebar .nav-item.menu-open>.nav-link .right {
  transform: rotate(180deg);
  /* putar panah ke atas */
}


/* Reset background merah untuk level 2 yang punya submenu */
.sidebar .nav-item.has-submenu.menu-open>.nav-link {
  background: transparent !important;
  color: #fff !important;
  /* hanya ubah font jadi putih */
}

/* Pastikan teks level 2 aktif tetap putih */
.sidebar .nav-item.has-submenu>.nav-link.active-lv2 p {
  color: #fff !important;
}

/* Treeview vertical indicators (scoped to each item). */
ul.nav.nav-treeview>li,
ul.nav.nav-treeview.lv3>li {
  position: relative;
  z-index: 1;
}

ul.nav.nav-treeview>li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff0f2;
  /* border-radius: 15px; */
  z-index: 1;
}

/* Short connector for items that open child treeviews */
ul.nav.nav-treeview>li.has-submenu::before {
  height: auto;
  top: 0;
  bottom: 0;
  min-height: 40px;
  transition: min-height 180ms ease;
}

ul.nav.nav-treeview>li.has-submenu.menu-open::before {
  min-height: 40px;
}

/* ul.nav.nav-treeview>li:first-child::before {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
} */

ul.nav.nav-treeview>li:last-child::before {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* When level 2 has level 3 submenu, hide its own parent indicator line. */
/* ul.nav.nav-treeview>li.has-submenu::before {
  display: none;
} */

/* Mask lv2 track behind lv3 branch without painting a full block background. */
/* ul.nav.nav-treeview>li.has-submenu::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 15px;
  z-index: 2;
  pointer-events: none;
} */

ul.nav.nav-treeview.lv3>li::before {
  left: 36px;
  width: 3px;
}

ul.nav.nav-treeview>li.active-sub::before {
  background: #FE697A !important;
}

ul.nav.nav-treeview.lv3>li.active-line::before {
  left: 36px;
  width: 3px;
  background: #FE697A;
}

ul.nav.nav-treeview>li:hover::before {
  background: #FE697A;
}

ul.nav.nav-treeview.lv3>li:hover::before {
  left: 36px;
  width: 3px;
  background: #FE697A;
}

.nav-sidebar .nav-treeview {
  position: relative;
}


ul.nav.nav-treeview:not(.lv3):before {
  /* content: ""; */
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #fff0f2;
  border-radius: 15px;
  opacity: 1;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 0;
}


/* Garis default level 3 (lebih menjorok ke dalam) */
ul.nav.nav-treeview.lv3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  /* menjorok sedikit ke kanan */
  width: 3px;
  height: 100%;
  background: #fff0f2;
  border-radius: 15px;
  pointer-events: none;
  z-index: 0;
}

/* Keep level-3 above parent connector so parent line stays behind. */
ul.nav.nav-treeview.lv3 {
  position: relative;
  z-index: 2;
  /* background: #252e4b; */
  background: transparent;
}

/* (Indicators are handled by the block above.) */

ul.nav.nav-treeview,
ul.nav.nav-treeview.lv3 {
  position: relative;
}

html,
body {
  background: radial-gradient(55.44% 34.62% at -12.31% -7.07%,
      #fe697a 0%,
      #252e4b 99.99%);
}

body {
  font-family: "Poppins", sans-serif !important;
}

/* Mode ikon-only */
.sidebar-icon-only .main-sidebar {
  width: 80px !important;
  transition: all 0.3s ease-in-out;
}

/* Sembunyikan teks menu */
.sidebar-icon-only .nav-sidebar .nav-link p,
.sidebar-icon-only .brand-text,
.sidebar-icon-only .user-panel .info {
  display: none !important;
}

.sidebar-icon-only .nav-sidebar .nav-link {
  justify-content: center;
}

.sidebar-icon-only .nav-sidebar .nav-icon {
  margin-right: 0 !important;
}

#toggle-sidebar-btn {
  transition: all 0.3s ease;
}

.sidebar-icon-only #toggle-sidebar-btn {
  margin-top: 10px;
}

.sidebar-mini.sidebar-collapse .content-wrapper,
.sidebar-mini.sidebar-collapse .main-footer,
.sidebar-mini.sidebar-collapse .main-header {
  margin-left: 142px !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar,
.sidebar-mini.sidebar-collapse .main-sidebar::before {
  margin-left: 0;
  width: 142px;
}

body:not(.sidebar-mini-md) .content-wrapper,
body:not(.sidebar-mini-md) .main-footer,
body:not(.sidebar-mini-md) .main-header {
  margin-left: 260px;
}

.card-login {
  background: #fdfdff;
  border: 1px solid #ebecee;
  padding: 24px;
  border-radius: 24px;
  border: 1px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card-login .headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1024px) {
  .card-login .headline {
    width: 472px;
  }

  .card-login {
    gap: 40px;
  }
}

@media (max-width: 1023.98px) {
  .card-login {
    gap: 40px;
  }
}

.card-login .headline h1 {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 28px;
  text-align: center;
  color: #1d242f;
}

.card-login .headline p {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #5d6878;
}

.form-phinter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-phinter label {
  font-size: 12px;
  font-weight: 400;
}

.form-check-label {
  font-size: 14px;
  font-weight: 400;
}

/* =======================
DATATABLE
======================= */

#datatable tbody td {
  cursor: pointer;
}

.table-purple {
  background-color: #252e4b;
}

.table-phinter thead th:first-child {
  border-top-left-radius: 15px;
}

.table-phinter thead th:last-child {
  border-top-right-radius: 15px;
}

.table-phinter tbody tr td {
  padding: 16px;
}

.table thead th {
  font-weight: 400;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  font-size: 14px;
  border-bottom: none;
  vertical-align: middle;
}

.dataTables_wrapper {
  background-color: #F9F9F9;
  border-radius: 16px;
  overflow: auto;
  margin-bottom: 30px;
}

.dataTables_wrapper div.d-flex {
  padding: 12px 16px;
}

table.dataTable {
  margin-top: 0 !important;
}

/* Container untuk ikon sort: flex column */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  position: relative;
  padding-right: 30px;
}

table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after {
  display: flex;
  align-items: center;
  position: absolute;
  right: 12px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  text-align: center;
  background: transparent;
  left: auto;
  margin: 0;
  pointer-events: none;
}

/* Sort up (atas) */
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_desc:before {
  content: "\f0de";
  /* fa-sort-up */
  top: 10px;
  color: rgba(143, 151, 163, 0.9);
  opacity: 1;
}

/* Sort down (bawah) */
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  content: "\f0dd";
  /* fa-sort-down */
  top: 22px;
  color: rgba(143, 151, 163, 0.9);
  opacity: 1;
}

/* Aktif: sort up */
table.dataTable thead th.sorting_asc:before {
  color: #ff586b;
  opacity: 1;
}

/* Aktif: sort down */
table.dataTable thead th.sorting_desc:after {
  color: #ff586b;
  opacity: 1;
}

/* Hide duplicated sort indicators in hidden scrollBody header when DataTables uses scrollX */
.dataTables_wrapper .dataTables_scrollBody thead th.sorting::before,
.dataTables_wrapper .dataTables_scrollBody thead th.sorting::after,
.dataTables_wrapper .dataTables_scrollBody thead th.sorting_asc::before,
.dataTables_wrapper .dataTables_scrollBody thead th.sorting_asc::after,
.dataTables_wrapper .dataTables_scrollBody thead th.sorting_desc::before,
.dataTables_wrapper .dataTables_scrollBody thead th.sorting_desc::after {
  display: none !important;
  content: none !important;
}

.dataTables_wrapper .dataTables_scrollBody thead th .dt-sorticon-component {
  display: none !important;
}

table.dataTable {
  font-size: 14px !important;
  margin-bottom: 32px !important;
}

div.dataTables_wrapper div.dataTables_info {
  color: #a2a8b1;
  font-size: 14px;
}

div.dataTables_wrapper div.dataTables_paginate {
  text-align: center;
  float: none;
  display: inline-block;
}

/* =======================
PHINTER: Fancy DataTable pagination
======================= */
div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-pager {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .pagination {
  margin: 0;
  gap: 8px;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-pill {
  background: #F3F5F7;
  border-radius: 999px;
  padding: 3px 3px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-pill .page-link {
  border: none;
  background: transparent;
  color: #667085;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: none;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-pill .page-item.active .page-link {
  background: #1F2A44;
  color: #fff;
  width: 35px;
  height: 35px;
  padding: 0;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-pill .page-item.disabled .page-link {
  color: #98A2B3;
  opacity: 1;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-arrows {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-arrows .page-link {
  border: none;
  background: #F3F5F7;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  color: #1F2A44;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-arrows .page-item.disabled .page-link {
  background: #E6E7EB;
  color: #98A2B3;
  opacity: 1;
}

div.dataTables_wrapper div.dataTables_paginate.ph-dt-pagination .ph-dt-arrows .page-link i {
  font-size: 24px;
}

div.dataTables_wrapper div.dataTables_length label {
  color: #a2a8b1;
  font-size: 14px;
}

div.dataTables_wrapper div.dataTables_length select {
  border: 1px solid #c0c4cb;
  border-radius: 8px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%235D6878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px 14px;
}

div.dataTables_wrapper div.dataTables_length select::-ms-expand {
  display: none;
}

.pagination {
  gap: 8px;
}

.page-item.disabled .page-link {
  background: #ebecee;
  color: #a2a8b1;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
  background: #ebecee;
  color: #a2a8b1;
  border-radius: 100px;
}

.page-item.active .page-link {
  background-color: #252e4b;
  border-color: #252e4b;
}

.page-link {
  background-color: #ebecee;
  color: #5d6878;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#datatable,
table.dataTable {
  border-bottom: 1px solid #DFE1E5;
}

/* =======================
END DATATABLE
======================= */

/* =======================
CONTENT
======================= */
.content-wrapper {
  min-height: 100vh !important;
  background: rgb(245, 246, 249);
  border-radius: 40px 0 0 40px;
}

.content {
  padding-top: 40px;
  padding-left: 24px;
  padding-right: 24px;
}

.card-phinter {
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.card-header-phinter,
.card-body-phinter {
  padding: 0;
}

.card-header-phinter {
  border-bottom: none;
}

.card-phinter .card-header-phinter h1 {
  font-weight: 600;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
}

/* #search {
  height: unset;
} */

/* .search-box {
max-width: 400px;
} */

.search-box .input-group-text {
  background-color: #fff;
  border-right: none;
  border-radius: 8px 0 0 8px !important;
}

.search-box input.form-control {
  border-left: none;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: none;
}

.search-box:focus {
  border-radius: 8px !important;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#overlay-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 28, 36, .8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#overlay-loader[aria-hidden="false"] {
  display: flex;
}

.loader {
  position: relative;
  width: 82px;
  height: 28px;
}

.loader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: transparent;
  box-shadow: 10px 0 0 10px #fe697a, 40px 0 0 5px #fe697a, 70px 0 0 0 #fe697a;
  animation: l21 1s infinite alternate linear;
}

@keyframes l21 {
  50% {
    box-shadow: 10px 0 0 5px #fe697a, 40px 0 0 10px #fe697a, 70px 0 0 5px #fe697a;
  }

  100% {
    box-shadow: 10px 0 0 0 #fe697a, 40px 0 0 5px #fe697a, 70px 0 0 10px #fe697a;
  }
}

/* =======================
FONT
======================= */

.p-text-xs {
  font-size: 10px;
  font-weight: 400;
}

.p-text-small {
  font-size: 14px;
  font-weight: 400;
}

.p-text-small-bold {
  font-size: 14px;
  font-weight: 600;
}

.p-text-sm-bold {
  font-size: 16px;
  font-weight: 600;
}

.p-text-sm {
  font-size: 16px;
  font-weight: 400;
}

.p-text-black {
  color: #1d242f;
}

.p-text-grey {
  color: #5d6878;
}

.p-text-primary {
  color: var(--text-primary);
}

/* ACTIVITY LOG STYLING MATTER */

.badge-soft-danger {
  background: #FF586B;
  color: white;
  padding: 4px 10px;
  font-weight: 700;
  border-radius: 6px;
}

.popover-body {
  padding: 0 !important;
}

/* ===================================
FLOATING ACTION
=================================== */
.floating-action {
  width: 681px;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 16px;
  margin: 0 24px;
  background: #FFFFFF;
  border: 1px solid var(--todo-border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--todo-shadow);
  transform: translate(-50%, 120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1050;
}

@media (min-width: 992px) {
  body:not(.sidebar-mini-md) {
    --floating-content-offset-left: 260px;
  }

  body.sidebar-mini.sidebar-collapse {
    --floating-content-offset-left: 142px;
  }

  .floating-action {
    left: calc(50% + (var(--floating-content-offset-left, 0px) / 2));
  }
}

.floating-action.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.floating-action .count-number {
  background: #FE697A;
  color: #fff;
  padding-left: 8px;
  padding-right: 8px;
  margin-right: 13px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  border-radius: 4px;
}

/* ===================================
SWEETALERT TOAST
=================================== */
body.swal2-toast-shown .swal2-container.swal2-bottom-end,
body.swal2-toast-shown .swal2-container.swal2-bottom-right {
  right: 24px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.swal2-toast-custom {
  width: 420px !important;
  display: flex;
  justify-content: start !important;
  position: relative;
  overflow: hidden !important;
  border-radius: 12px !important;
  padding: 11.5px 16px !important;
  border: 1px solid #EBECEE !important;
  box-shadow: 0px 1px 10px 3px #0000000D !important;
}

.swal2-toast-custom .swal2-content,
.swal2-toast-custom .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.toast-content-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toast-content-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.toast-time-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #344F98;
  border-bottom-left-radius: 12px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: toast-progress-linear var(--toast-duration, 3200ms) linear forwards;
}

@keyframes toast-progress-linear {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.message-toast {
  font-weight: 600;
  font-size: 14px;
  color: #1D242F;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.toast-close-btn {
  border: none;
  background: transparent;
  color: #98A2B3;
  font-size: 30px;
  line-height: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.toast-close-btn:hover {
  color: #667085;
}

.toast-close-btn:focus,
.toast-close-btn:focus-visible,
.toast-close-btn:active {
  outline: none;
  box-shadow: none;
}

/* ===================================
END SWEETALERT TOAST
=================================== */

.dropdown-menu {
  border-radius: 8px !important;
  border: none !important;
}

.card-form-phinter {
  margin: 0;
  border-radius: 16px;
  border: 1px solid #EBECEE;
  box-shadow: none;
}