:root {
  --dark: #002333;
  --red: #D72E3B;
  --purple: #3722D3;
  --yellow: #FFD704;
  --gradient: linear-gradient(90deg, #D72E3B 0%, #FF3D00 100%);
  --black: #000000;
  --grey: #9A9A9A;
  --white: #FFFFFF;
  --green: #00DD00;
  --bg-light: #F5F4FF;
}

body {
  font-family: 'Poppins', sans-serif;
}

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

.main-sidebar, .main-sidebar::before {
  width: 304px;
}

/* min width 768px */
@media (min-width: 1009px) {

  body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
  body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer,
  body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
    margin-left: 304px;
  }
}

.sidebar-mini .main-sidebar .nav-link, .sidebar-mini-md .main-sidebar .nav-link, .sidebar-mini-xs .main-sidebar .nav-link {
  width: calc(304px - .5rem * 2);
}

.nav-sidebar>.nav-item .nav-icon {
  margin-right: 12px;
  font-size: 1rem;
}

.nav-link {
  padding: 14px 12px;
  color: var(--white) !important;
}

.nav-sidebar .nav-header {
  font-size: 12px;
}

[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
  background-color: var(--grey);
}

.card {
  border-radius: 20px;
  box-shadow: none;
}

table.dataTable {
  border-radius: 20px;
}

table.table-bordered.dataTable th:last-child {
  border-top-right-radius: 20px;
}

table.table-bordered.dataTable th:first-child {
  border-top-left-radius: 20px;
}

table.table-bordered.dataTable tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

.table td, .table th {
  vertical-align: middle;
}

.btn {
  border-radius: 10px;
}

.dt-toolbar .btn {
  padding: 12px 25px !important;
}

.dataTables_filter {
  min-height: 68px;
}

.dataTables_filter label input {
  height: 44px;
  border-radius: 30px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  margin-top: 7px;
}

.breadcrumb-item a,
.nav-tabs a {
  color: #dc3545 !important;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar::before {
  margin-left: -350px;
}

[class*=sidebar-dark-] {
  background-color: var(--dark);
}

.layout-navbar-fixed .wrapper .sidebar-dark-danger .brand-link:not([class*=navbar]) {
  background-color: var(--dark);
}

.bg-primary {
  background-color: #dc3545 !important;
}

.dt-toolbar,
.dataTables_info {
  float: left;
}

.dt-toolbar .btn {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 3px;
  padding-top: 3px;
}

.dt-center {
  text-align: center;
}

.dataTables_wrapper .btn {
  margin: 3px;
}

.alert ul {
  margin-bottom: 0;
}

table .one-actionButton {
  width: 40px;
  text-align: center;
}

table .two-actionButton {
  width: 80px;
  text-align: center;
}

table .three-actionButton {
  width: 120px;
  text-align: center;
}

.dt-toolbar-doctype {
  width: 100%;
}

.custom-red a.active {
  background-color: #dc3545 !important;
}

.page-link {
  color: #000;
}

.img_signature {
  width: 500px;
  border: 2px solid black;
  margin: 10px;
}

.navbar-nav {
  flex-direction: row;
}

@media (max-width: 768px) {
  .navbar .ml-auto li {
    margin-left: 10px !important;
  }
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  min-height: 175px;
  height: unset !important;
}

a {
  color: #dc3545;
}

.my-0 {
  float: right;
}

.login-page {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.73)), url("/images/login.jpg");
  width: 100%;
  background-size: cover;
  color: white;
}

.login-page .login-logo b {
  color: #fff;
}

.login-page .form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #da251e8a;
}

.profile-user-img {
  overflow: hidden;
  height: auto;
  width: auto;
  padding: 0px;
  margin: 20px auto;
  margin-bottom: 30px;
}

.img-fluid {
  padding: 0;
}

.doc_paging {
  max-width: 700px;
}

.doc_pdf {
  margin-top: 52px;
  position: relative;
  max-width: 700px;
  display:none;
  width: 100%;
  overflow-x: auto;
}

#canvas_doc {
  max-width: 700px;
  border: 1px solid;
  width: 100%;
}

.form-group.required label:after {
  content:" *";
  color:red;
}

.toast-top-right {
    top: 60px !important;
    right: 5px !important;
}

[class*=sidebar-dark] .brand-link {
    border-bottom: none;
}

.btn-close {
  position: relative;
  width: 1em;
  height: 1em;
  color: #000;
  background-color: transparent;
  border: none;
  opacity: 0.5;
}

.btn-close:hover {
  opacity: 0.75;
}

/* Menggunakan pseudo-elemen untuk menampilkan simbol silang */
.btn-close::before, 
.btn-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8em;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"%3E%3Cpath fill="%23495057" d="M2 5L4 3H0z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 10px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  appearance: none;
}

.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"%3E%3Cpath fill="%230d6efd" d="M2 5L4 3H0z"/%3E%3C/svg%3E');
}

select::-ms-expand {
  display: none;
}

.form-select::after {
  content: '\25BC';
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
}

.form-select[disabled] {
  background-color: #e9ecef;
  opacity: 1;
}

.dropdown-status {
  position: relative;
  display: inline-block;
}

.dropdown-status .dropdown-menu {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #495057;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-status:hover .dropdown-menu {
  display: block; 
}

.dropdown-status .dropdown-item {
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-status .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #16181b;
}