* {
  outline: none !important;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-fluid {
  @include media-breakpoint-down(xs) {
    padding-right: 10px;
    padding-left: 10px;
  }
  @include media-breakpoint-up(md) {
    padding-right: 30px;
    padding-left: 30px;
  }
}

h1 {
  font-size: 36px;
  line-height: 48px;
}

h2 {
  font-size: 24px;
  line-height: 36px;
}

h3 {
  font-size: 21px;
  line-height: 30px;
}

h4 {
  font-size: 18px;
  line-height: 22px;
}

h5 {
  font-size: 16px;
  line-height: 18px;
}

h6 {
  font-size: 12px;
  line-height: 14px;
}

// Navs
.nav-tabs {
  .nav-item {
    margin-right: 0.15rem;
    a.active {
      cursor: default;
    }
  }
}

// Custom Control
.custom-control {
  .custom-control-input,
  .custom-control-input + .custom-control-label {
    cursor: pointer;
  }
}

// card (substitute panel of bootstrap3)
.card {
  margin-bottom: 20px;
}

.card-header {
  font-weight: 700;
  text-transform: none;
}

.card-header:first-child {
}

// Well (substitute Well of bootstrap3)
.card.well {
  min-height: 20px;
  padding: $card-spacer-y $card-spacer-x;
}

// Dropdowns
.dropdown-toggle {
  &.btn.disabled {
    pointer-events: auto;
    cursor: not-allowed;
  }

  // hide caret
  &.dropdown-toggle-no-caret::after {
    content: none;
  }
}

// Badges
.badge {
  @extend .badge-pill;
}

//Modals
.modal-open {
  width: 100%;
  padding-right: 0 !important;
}

.modal-content {
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid #e5e5e5;
}

.modal-footer {
  border-top: 1px solid #e5e5e5;
}

// When fading in the modal, animate it to slide down
.modal.fade .modal-dialog {
  @include transition($modal-transition);
  transform: $modal-fade-transform;
}

.modal.show .modal-dialog {
  transform: $modal-show-transform;
}

// When trying to close, animate focus to scale
.modal.modal-static .modal-dialog {
  transform: $modal-scale-transform;
}

// col-form-label (substitute for control-label of bootstrap3)
.col-form-label {
  text-align: right;
}

// label
label {
  // add with-no-font-weight class in case you do not want to apply font-weight 700 to label
  :not(.with-no-font-weight) {
    font-weight: 700;
  }
}

// disabled button (reproduction from bootstrap3.)
// see https://cccabinet.jpn.org/bootstrap4/components/buttons#disabled-state
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  cursor: not-allowed;
}

// progress bar
.progress {
  margin-bottom: 18px;
  overflow: hidden;
}

.text-break {
  word-break: break-word;
  overflow-wrap: break-word;
}

// prevent tooltip flickering (flashing) on hover
.tooltip {
  pointer-events: none;
}
