:root {
  --color-primary: #1bb7af;
  --color-primary-dark: #15918b;
  --color-secondary: #697a89;
}

body.darkmode {
  color: #909191;
}

.main {
  padding-top: 25px;
}

/* Sidebar */
.sidebar {
  background-color: var(--color-primary-dark) !important;
}
.sidebar .sidebar-body-menu a {
  opacity: 1;
  padding: 3px 0;
}
.sidebar .sidebar-body-menu a.active {
  background-color: rgb(255, 255, 255, 0.1);
  border-radius: 5px;
}
.sidebar .sidebar-body-menu .icon {
  font-size: 20px;
}
.sidebar .system-menu__title {
  margin-top: 18px;
}

/* Page */
.page-header .button {
  text-align: right;
}

/* Background */
.bg-primary {
  background-color: var(--color-primary) !important;
}

/* Text */
.text-primary {
  color: var(--color-primary) !important;
}

/* Button */
.btn {
  text-transform: uppercase;
}
.btn.btn-xs {
  padding: 5px 7px;
  font-size: 13px;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: #169993;
  border-color: #168e88;
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
  background-color: #169993;
  border-color: #168e88;
}
.btn-primary.focus,
.btn-primary:focus {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .2rem rgba(91, 225, 218, .5);
}
.btn.disabled,
.btn:disabled {
  background-color: #eff0f6;
  border-color: #eff0f6;
  color: #929398;
}

.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-secondary:hover {
  background-color: #576672;
  border-color: #576672;
}

.transparent-btn:focus,
button:focus {
  outline: 0;
  border: 2px solid var(--color-primary) !important;
}

/* Form */
input:focus {
  outline: 0;
  border: rgba(91, 225, 218, 0.5) solid !important;
  -webkit-box-shadow: 0 0 0 2px rgba(91, 225, 218, .5) !important;
  box-shadow: 0 0 0 2px rgba(91, 225, 218, .5) !important;
}
.form-control {
  border: 1px solid #ced4da !important;
}
.form-search {
  border-radius: 8px;
  border-width: 0;
  padding: 5px 16px;
  height: 40px;
  background: #eff0f6;
}

/* Table */
.table th {
  font-weight: 600;
}

/* Card */
.card-body {
  padding: 1.25rem 2rem;
}

/* Pagination */
.page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Badge */
.badge-primary {
  background-color: var(--color-primary);
}

/* Sweetalert */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
  background-color: var(--color-primary) !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(91, 225, 218, .5) !important;
}

/* DataTable */
table.dt-container {
  border-bottom: 1px solid #dfdfdf;
}
.dt-container td,
.dt-container th {
  padding: 0.75rem;
  line-height: 20px !important;
}
.dt-search {
  float: left;
  margin-right: 15px !important;
  margin-bottom: 15px;
}
.dt-search input {
  border-radius: 8px;
  border-width: 0;
  padding: 5px 16px;
  height: 40px;
  background: #eff0f6;
}
.dt-paging {
  float: left;
  margin-top: 15px !important;
}
.dt-length {
  margin-top: 17px;
  margin-bottom: 15px;
}
.dt-length label {
  visibility: hidden;
}
.dt-length select {
  height: 39px !important;
  width: 70px !important;
  margin-right: 5px;
}
table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: left !important;
}

/* Select2 */
.set-select2 {
  width: 100%;
}
.select2-container .select2-selection--single {
  display: block;
  width: 100%;
  height: calc(1.6em + .75rem + 2px) !important;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057 !important;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da !important;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 7px !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
  top: -2px;
  right: -10px;
}

@media(max-width: 576px) {
  /* Page */
  .page-header .button {
    text-align: left;
    padding-top: 15px;
  }
  .page-header .button .btn {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
  }
}