/*!
 * CirebonWeb (https://cirebonweb.com)
 * Copyright (c) 2023 CirebonWeb
 * Licensed under MIT (https://opensource.org/licenses/MIT)
 */

/* 
* Bootstrap 4.6.2 Custom Styles
*/

:root {
  --ui-font: "Plus Jakarta Sans", Inter, Manrope, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 400;
}

.btn,
.nav-item,
.dropdown-menu,
.form-control {
  font-size: 14px;
}

.nav-sidebar>.nav-item .nav-icon,
.nav-sidebar>.nav-item p {
  font-size: 15px;
}

h1 {
  font-size: 25px !important;
  font-weight: 800;
}

h2 {
  font-size: 20px !important;
  font-weight: 800;
}

h3 {
  font-size: 16px;
  font-weight: 600;
}

/* h4 {
  font-size: 15px !important;
  font-weight: 600 !important;
} */

a {
  color: #0055b1;
}

a:hover,
.navbar-light .navbar-nav .nav-link:hover {
  color: #003b7a;
}

/* .bg-birumuda {
  background-color: #298ffb;
  color: #ffffff;
} */

.nav-item .list i {
  font-size: 17px;
  border: 1px solid #666666;
  border-radius: 4px;
  padding: 3px 5px;
}

li.nav-header {
  border-bottom: 1px solid #666666;
}

.navbar-light .navbar-nav .nav-link,
.main-footer {
  color: #393939;
}

[class*="sidebar-dark-"] {
  background-color: #0a0544;
}

/*
* Custom CSS
*/

.wh-3rem {
  width: 3rem;
  height: 3rem;
}

/* .card-header h3 {
  font-size: 16px;
  font-weight: 600;
} */

.small-box h3 {
  font-weight: 800;
}

.small-box p {
  font-size: 15px;
}

.bg-dark .icon {
  color: rgba(255, 255, 255, 0.15);
}

.small-box .icon>i {
  top: -15px;
}

.info-kecil {
  border-left: 1px solid #919191;
  padding-left: 10px;
  margin-bottom: 10px;
}

/* .kotak {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
} */

.lencana {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 6px;
}

small,
.info-kecil {
  line-height: 1;
}

.info-kecil {
  border-left: 1px solid #919191;
  padding-left: 10px;
  margin-bottom: 10px;
}

/* button */
.btn-group > .btn,
.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  line-height: 15px;
}

.btn-block {
  padding: 10px 0px
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
  background-color: #0068d7;
}

/*  Form Input */
.input-group-text {
  background-color: #fff;
}

.modal .input-group-text {
  border-top-left-radius: 0.25rem !important;
  border-bottom-left-radius: 0.25rem !important;
} 

/* Reset bawaan DataTables */
table.dataTable>thead .sorting::before,
table.dataTable>thead .sorting::after,
table.dataTable>thead .sorting_asc::before,
table.dataTable>thead .sorting_asc::after,
table.dataTable>thead .sorting_desc::before,
table.dataTable>thead .sorting_desc::after {
  float: none !important;
  position: absolute !important;
  right: 0.4em !important;
  /* konsisten untuk semua ikon */
  line-height: 0.2;
  font-size: 0.8em;
  margin-right: 5px
}

/* Segitiga ke atas */
table.dataTable>thead .sorting::before,
table.dataTable>thead .sorting_asc::before,
table.dataTable>thead .sorting_desc::before {
  content: "\25B2" !important;
  /* ▲ */
  top: calc(50% - 0.6em) !important;
}

/* Segitiga ke bawah */
table.dataTable>thead .sorting::after,
table.dataTable>thead .sorting_asc::after,
table.dataTable>thead .sorting_desc::after {
  content: "\25BC" !important;
  /* ▼ */
  top: calc(50% + 0.2em) !important;
}

/* Pencarian */
div.dataTables_wrapper div.dataTables_filter label input {
    width: 50%; 
    display: inline-block; 
}

/* Tombol */
.dataTables_wrapper,
.dataTables_wrapper .btn-sm,
.dataTables_wrapper .form-control {
  font-size: 13px
}

.dataTables_wrapper .dt-button {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.dataTables_wrapper .dt-button:hover {
  background: #000000;
  color: #ffffff;
}

.dataTables_wrapper .custom-select-sm {
  font-size: 90%;
}

.dataTable tbody tr:hover {
  background-color: #f0f8ff;
}

.dataTable .dtr-details {
  width: 100%;
}

table.dataTable>tbody>tr.child span.dtr-title {
  font-weight: 600;
  min-width: 110px;
}

/*  Form Input */
.input-group-text {
  background-color: #fff;
}

.modal .input-group-text {
  border-top-left-radius: 0.25rem !important;
  border-bottom-left-radius: 0.25rem !important;
}

/* loading */ 
.loadingSpinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  transform: translate(-50%, -50%);
  z-index: 9999;
  text-align: center;
  background: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


td.col-boolean,
th.col-boolean {
    min-width: 70px;
}

@media (min-width: 992px) {
  .small-box>.inner {
    padding-left: 20px;
  }

  .col-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media screen and (min-width: 768px) {
  /* pencarian */
  div.dataTables_wrapper div.dataTables_filter {
      text-align: right !important;
  }

  div.dataTables_wrapper div.dataTables_filter label {
      text-align: right !important;
  }

  div.dataTables_wrapper div.dataTables_filter label input {
      width: 50%; 
      display: inline-block; 
  }
}

@media screen and (max-width: 768px) {
  /* pencarian */
  div.dataTables_wrapper div.dataTables_filter {
      text-align: center !important;
  }

  div.dataTables_wrapper div.dataTables_filter label {
      text-align: center !important;
  }
}

@media screen and (max-width: 600px) {
  .small-box p {
    margin-bottom: 0;
  }

  .dataTables_wrapper .dt-buttons {
    float: none;
    text-align: center;
    margin-bottom: 10px;
  }

  .dataTable tr.child .dtr-data {
    float: right;
  }

  /* Batalkan float untuk kolom gambar saja */
  .dataTable tr.child .dt-gambar .dtr-data {
    float: none !important;
    display: block;
    text-align: right;
  }
}