::-webkit-scrollbar {
  border-radius: 0.5rem;
  background-color: #51585f;
}

::-webkit-scrollbar-thumb {
  background-color: #8a8e8f;
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #b9bcbe;
}

::-webkit-scrollbar:vertical {
  width: 0.6rem;
}

::-webkit-scrollbar:horizontal {
  height: 0.6rem;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-body {
  flex: 1;
}

#pageContent {
  visibility: hidden;
}

.pageWrapper {
  pointer-events: all;
}

.pageWrapper.loading {
  pointer-events: none;
}

.preloader {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.preloader .container {
  margin-top: auto;
  margin-bottom: auto;
}

.icon-alert {
  width: 2rem;
  height: 2rem;
}

.ts-dropdown {
  z-index: 9999 !important;
}

.ts-dropdown-content .option {
  transition: color 0.2s ease-in-out;
}

.ts-dropdown-content .option:hover,
.ts-dropdown-content .option.active {
  background-color: #174979;
  color: #fff !important;
}

.btn-close:focus {
  box-shadow: none;
}

.form-control.is-invalid {
  background-image: none;
}

.form-select.is-invalid {
  background-image: none;
}

.uppercase-placeholder::placeholder {
  text-transform: uppercase;
}

.input-group .form-control.is-invalid ~ .input-group-text {
  border-color: #d63939 !important;
}

.input-group .form-control.is-invalid:focus ~ .input-group-text {
  border-color: #d63939 !important;
}

.input-group-flat:focus-within .form-control.is-invalid {
  border-color: #d63939 !important;
}

.input-group-flat .form-control.is-invalid {
  box-shadow: none;
}

.input-group-flat:has(.form-control.is-invalid:focus) {
  box-shadow: 0 0 0 0.25rem rgba(214, 57, 57, 0.25) !important;
}

.input-group-flat:focus-within:has(.form-control.is-invalid) {
  box-shadow: 0 0 0 0.25rem rgba(214, 57, 57, 0.25) !important;
}

.alert-dismissible .btn-close {
  top: auto;
}

@keyframes customFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.custom-fade-in {
  opacity: 0;
  animation: customFadeIn 1s ease-in-out forwards;
}

@keyframes customFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.custom-fade-out {
  animation: customFadeOut 0.5s ease-in-out forwards;
}

.alert {
  border-left: 0 !important;
}

.table thead th {
  font-size: 0.75rem !important;
}

.dt-container {
  margin-bottom: 1rem !important;
}

.btn-group .btn {
  padding: 0.5rem 0.6rem;
}

.dropdown-menu .dropdown-item:hover {
  color: #2b88e6;
}

.dropdown-item.active {
  background-color: inherit;
  color: #2b88e6;
  font-weight: bold;
}

.toast {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 0.9;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(50px);
  }
}

.toast.hide {
  animation: fadeOut 1s ease forwards;
}

.bg-teal:hover {
  background-color: #0b7e5b !important;
}

#rowNotification {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;

  scrollbar-width: none;
}

#rowNotification::-webkit-scrollbar {
  display: none;
}

#rowNotification {
  user-select: text;
  pointer-events: auto;
}

.card-header-tabs {
  padding: 0 !important;
}

.nav-tabs .nav-link:hover {
  border-color: transparent !important;
  color: inherit;
}

.nav-tabs .nav-link.active {
  border-color: transparent !important;
  color: #43c1ff !important;
  font-weight: bold;
}

#formInfo {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--tblr-border-color-translucent);
}

[data-bs-theme='light'] #formInfo {
  background-color: #eeeff1bd;
}

[data-bs-theme='dark'] #formInfo {
  background-color: #29374b;
}

[data-bs-theme='light'] .nav-tabs .nav-link.active {
  background-color: #eeeff1bd;
  --tblr-text-opacity: 1;
  color: rgba(var(--tblr-danger-rgb), var(--tblr-text-opacity)) !important;
}

#salesChartContainer {
  position: relative;
  width: 100%;
}
#salesChart {
  width: 100% !important;
  height: 100% !important;
}

.btn.disabled {
  border-color: transparent !important;
}

/* datatables */
.search-container {
  min-width: 200px;
  margin-bottom: 0.5rem;
}

.search-container input[type='search'] {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 575px) {
  .search-container {
    width: 100%;
    min-width: unset;
  }
}

.datatable-footer {
  gap: 0.5rem;
}

.tables-info,
.tables-paginate {
  width: 100%;
  text-align: center;
}

/* Desktop override */
@media (min-width: 768px) {
  .tables-info {
    text-align: left;
    width: auto;
  }

  .tables-paginate {
    justify-content: flex-end;
    text-align: right;
    width: auto;
  }
}

@media (max-width: 759px) {
  .datatable-footer {
    flex-direction: column;
    text-align: center;
  }

  .tables-info,
  .tables-paginate {
    width: 100%;
    margin-top: 0.25rem;
  }

  .tables-info {
    order: 1;
  }

  .tables-paginate {
    order: 2;
    justify-content: center !important;
    display: flex !important;
  }

  .tables-paginate .pagination {
    justify-content: center !important;
    width: 100%;
  }
}

@media (max-width: 991px) and (min-width: 760px) {
  .modal .tables-info,
  .modal .tables-paginate {
    text-align: center;
    justify-content: center !important;
    width: 100%;
    display: flex !important;
  }

  .modal .tables-paginate .pagination {
    justify-content: center !important;
    width: 100%;
  }
}

.suggestion {
  display: none;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

.suggestion.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.suggestion .dropdown-item {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 0.75rem !important;
}

.suggestion .dropdown-item:hover {
  background-color: #1749799d;
  color: #fff !important;
}

#suggestionPengirim,
#suggestionPenerima {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.suggestion::-webkit-scrollbar {
  display: none;
}

.responsive-text {
  font-size: 14px;
}

@media (max-width: 576px) {
  .responsive-text {
    font-size: 12px;
  }
}

.ts-wrapper.is-invalid:not(.single) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23929dab' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

#nprogress .bar {
  height: 3px !important;
  z-index: 9999 !important;
}

.dt-processing {
  background-color: var(--tblr-body-bg) !important;
}

.dark-theme div.dt-processing > div > div,
[data-bs-theme='dark'] div.dt-processing > div > div {
  background-color: #ffffff !important;
}

.light-theme div.dt-processing > div > div,
[data-bs-theme='light'] div.dt-processing > div > div {
  background-color: #007bff !important;
}
