.bi {
  display: inline-block;
  width: 1.1rem;
  height: 1rem;
}

/*
   * Sidebar
   */
@media (min-width: 768px) {
  .sidebar .offcanvas-lg {
    position: -webkit-sticky;
    position: sticky;
    top: 48px;
  }

  .navbar-search {
    display: block;
  }
}

.sidebar .nav-link {
  font-size: .875rem;
  font-weight: 440;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar-heading {
  font-size: .8rem;
}

/*
   * Navbar
   */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
}

main {
  height: 100vh !important;
  max-height: 100vh !important;
}

/*Loading indikator*/
.preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  left: calc(50% - 40px);
  top: calc(50vh - 14px);
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}

/*end Loading indikator*/

.dropdown-toggle {
  outline: 0;
}

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
  background-color: transparent;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
  background-color: var(--bs-tertiary-bg);
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

[data-bs-theme="dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

.scrollarea {
  overflow-y: auto;
}


.active2 {
  font-weight: bolder !important;
  /* color: #1954ac!important; */
  text-decoration: underline !important;
}

.active-menu {
  color: var(--bs-list-group-active-color);
  background-color: #d1d1d187 !important;
}

.bi::before,
[class*=" bi-"]::before,
[class^=bi-]::before {
  font-style: normal;
  font-weight: 500 !important;
}

.nav-item a {
  color: #212529 !important;
}

.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after,
.form-floating>.form-select~label::after {
  background-color: #e9ecef !important;
}

.select2-container {
  z-index: 999999 !important;
}

.select2-container--bootstrap-5 {
  z-index: 9999 !important;
}

.select2-container--default .select2-selection--single {
  background-color: #f8f9fa;
  /* border: 1px solid #6c757d!important; */
  border-radius: var(--bs-border-radius-sm);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #444;
  line-height: 25px;
}

.mb-3>label {
  padding: 3px !important;
  font-size: .875rem !important;
  color: #6c757d;
  border-radius: var(--bs-border-radius-sm);
  background-color: #e9ecef !important;
}

.select2-results__option {
  padding: 3px !important;
  user-select: none;
  -webkit-user-select: none;
  font-size: 0.8rem !important;
}

.col-form-label {
  padding-top: 0px !important;
  padding-bottom: calc(.375rem + var(--bs-border-width));
  margin-bottom: 0;
  font-size: inherit;
  line-height: 1.5;
}

table.dataTable tbody tr {
  height: 20px;
  /* atur tinggi baris */
  font-size: 14px;
  /* font kecil biar lebih rapat */
  padding: 2px 4px;
}

table.dataTable tbody td {
  padding: 1px 4px;
  /* padding cell biar lebih rapat */
  vertical-align: middle;
}


.breadcrumb-chevron {
  --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  gap: .5rem;
}

.breadcrumb-chevron .breadcrumb-item {
  display: flex;
  gap: inherit;
  align-items: center;
  padding-left: 0;
  line-height: 1;
}

.breadcrumb-chevron .breadcrumb-item::before {
  gap: inherit;
  float: none;
  width: 1rem;
  height: 1rem;
}

.breadcrumb-custom .breadcrumb-item {
  position: relative;
  flex-grow: 1;
  padding: .75rem 3rem;
}

.breadcrumb-custom .breadcrumb-item::before {
  display: none;
}

.breadcrumb-custom .breadcrumb-item::after {
  position: absolute;
  top: 50%;
  right: -25px;
  z-index: 1;
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  content: "";
  background-color: var(--bs-tertiary-bg);
  border-top-right-radius: .5rem;
  box-shadow: 1px -1px var(--bs-border-color);
  transform: scale(.707) rotate(45deg);
}

.breadcrumb-custom .breadcrumb-item:first-child {
  padding-left: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item:last-child {
  padding-right: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item:last-child::after {
  display: none;
}


/* tabel import  */
.import-table {
  font-size: .75em !important;
}

.table-sm>:not(caption)>*>* {
  padding: .1rem .1rem !important;
}

/* end tabel import */

input::placeholder {
  color: #6c757d;
  /* Warna abu-abu */
  font-style: italic;
  /* Gaya miring */
  font-size: 0.875rem;
  /* Ukuran font kecil */
  opacity: 1;
  /* Pastikan tidak transparan */
}

/* tabel import  */
.import-table {
  font-size: .75em !important;
}

.table-sm>:not(caption)>*>* {
  padding: .1rem .1rem !important;
}

/* end tabel import */

table.dataTable td {
  font-size: .9em;
}


table.dataTable tr.dtrg-level-0 td {
  font-size: 0.9em;
}

/* button select2 multipel */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: .1em .3em !important;
  margin-left: .1rem !important;
  margin-bottom: .2rem !important;
  font-size: .8rem 12.8px !important;
  color: #212529;
  cursor: auto;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

div.dt-buttons {
  float: right !important;
}

div.dt-buttons>.dt-button,
div.dt-buttons>div.dt-button-split .dt-button {
  padding: .2em .6em !important;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  cursor: pointer;
  font-size: .75em !important;
  line-height: 1.6em;
}

.tabel-kecil thead th {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.tabel-kecil td {
  font-size: .75em !important;
  font-family: "Roboto", sans-serif;
}


.td-inline-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-inline-group .form-control-sm {
  flex: 1;
  min-width: 0;
}