/***********************************************************************
 *  Link
 **********************************************************************/

.link-secondary {
  color: #737b7d !important;
}

.link-secondary:hover {
  color: #0a58ca !important;
}

/***********************************************************************
 *  Alert
 **********************************************************************/

.alert-dismissible {
  padding-right: 1rem;
}

/***********************************************************************
 *  Breadcrumb
 **********************************************************************/

.breadcrumb .breadcrumb-item.active {
  color: #afafaf;
}

/***********************************************************************
 *  Form elements
 **********************************************************************/

::placeholder {
  opacity: 0.5 !important;
}

/* Remove standard sign on .is-invalid class */
.form-control.is-invalid {
  background-image: none;
  padding-right: 0.5rem;
}

/* Change color on focused form-element */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.form-check-input:focus:checked {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgb(25 135 84 / 25%);
}

/* Checkbox */
.form-check {
  display: flex;
  column-gap: 10px;
  margin-bottom: 0;
  padding-left: 0;
}

.form-check .form-check-input {
  flex: 0 0 auto;
  width: 1.6em;
  height: 1.6em;
  margin-top: 0;
  margin-left: 0;
  float: none;
}

.form-check .form-check-input:hover {
  cursor: pointer;
}

.form-check .form-check-label {
  line-height: 1.33;
}

.form-check .form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

.form-check .form-check-input.is-invalid ~ .form-check-label {
  color: #373f41;
}

.form-check .form-check-input.is-invalid:checked {
  background-color: #198754;
}

.form-check .form-check-input.is-invalid:checked:focus {
  border-color: #198754;
}

.form-check .form-check-input.is-invalid:focus {
  border-color: #dc3545;
}

/* Radio */
.form-check.radio {
  align-items: center;
}

.form-check .form-check-input[type='radio'] {
  width: 1em;
  height: 1em;
}

/* Select */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.19615 5.25L-1.44838e-06 4.51501e-08L10.3923 9.53674e-07L5.19615 5.25Z' fill='%234D4D4D'/%3E%3C/svg%3E%0A") !important;
  background-size: 11px 6px !important;
}

/***********************************************************************
 *  Text
 **********************************************************************/

.km-form-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.15px;
}

.km-small {
  font-size: 13px;
  line-height: 1.33;
}

.km-xsmall {
  font-size: 12px;
  line-height: 1.33;
}

/***********************************************************************
 *  Button
 **********************************************************************/

.btn.btn-outline-secondary {
  color: #373f41;
  border-color: #ced4da;
}

.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus,
.btn.btn-outline-secondary:active {
  color: #373f41;
  background-color: #f6f6f6;
  border-color: #ced4da;
}

.btn.btn-outline-secondary.show {
  background-color: #f6f6f6;
}

.btn-sm {
  height: 40px;
}

.btn-xs {
  height: 34px;
  font-size: 0.875rem;
  padding: 0.25rem 1rem;
}

/* in alert */
.btn-close {
  background-size: 0.75em;
  padding: 2px !important;
  opacity: 0.3;
}

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

.btn-with-icon {
  position: relative;
  /* btn-sm -> font-size: 14px -> padding-left: 40px */
  padding-left: 2.8571em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-with-icon img {
  position: absolute;
  top: 50%;
  /* btn-sm -> font-size: 14px -> left: 10px */
  left: 0.7143em;
  transform: translateY(-50%);
}

.btn-group .btn.dropdown-toggle {
  /* font-size: 18px (bigger arrow icon) -> width: 32px */
  font-size: 18px;
  width: 1.7777em;
  flex: 0 0 auto;
}

/***********************************************************************
 *  Divider
 **********************************************************************/

.divider-horizontal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-horizontal:before {
  content: '';
  position: absolute;
  display: block;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px #dee2e6 solid;
}

.divider-horizontal .divider-content {
  align-self: center;
  padding: 0 0.25rem;
  background-color: #ffffff;
  z-index: 1;
  color: #6f7581;
}
