button:focus,
.btn:focus,
.page-link:focus,
.form-control:focus,
:focus {
  outline: $outline;
}

.outline-light {
  button:focus,
  .btn:focus,
  .page-link:focus,
  .form-control:focus,
  :focus {
    outline: $outline-light;
  }
}

.navbar,
main:focus,
.page-footer {
  outline: none;
}

.vertical-spacing {
  padding-top: $vertical-spacing;
  padding-bottom: $vertical-spacing;
}

// one item on the left and one on the opposite right
.justified-between {
  display: flex;
  justify-content: space-between;

  // < MD
  @include media-breakpoint-down(md) {
    flex-direction: column;

    & > :not(:first-child) {
      margin-top: 5px;
    }
  }
}

.inherit-look {
  color: inherit;
  margin: inherit;
  padding: inherit;
  border: inherit;
  text-decoration: inherit;

  &:focus,
  &:hover {
    color: inherit;
    text-decoration: inherit;
  }
}

.disabled {
  cursor: not-allowed;
}
.clickable {
  cursor: pointer;
}

// links with svg icon
:link,
:visited {
  &.with-chevron {
    & > .icon {
      height: 20px;
      width: 20px;
      vertical-align: -4px;
      fill: currentColor;
      float: none;
    }
  }
}

.icon-rounded-wrapper {
  width: 3rem;
  height: 3rem;
  border: 2px solid $primary;
  display: inline-block;
  border-radius: 50%;

  .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.65rem;
    fill: $primary;
  }
}

.icon-file-download {
  width: 29px;
  height: 31px;
  fill: $primary;
}

.rodo {
  padding: 0 0 0 20px;

  li {
    &:not(:last-child) {
      margin-bottom: 15px;
    }
  }
}

abbr[title] {
  text-decoration: none;
}

mark {
  background-color: $color-highlight;
  font-weight: bold;
  font-style: normal;
  color: inherit;
  padding: 0 0.1em;
}

// custom backgrounds
.bg-custom {
  background-color: $color-grey-light-6;
}

.bg-custom-dark {
  background-color: $color-blue-dark;
}

.bg-custom-light {
  background-color: $color-white;
}

// custom borders
.border-custom {
  border: 1px solid $color-grey-light-5;
}

.captcha {
  background-color: $color-white;
  padding: 0.75rem;

  &.new-captcha {
    padding: 1.25rem;
    margin: 0;

    &.form-group-invalid label {
      --bs-border-color: #a91e2c;
      color: #a91e2c !important;
    }

    .form-control {
      background-image: none;
    }

    .text-danger {
      color: #a91e2c !important;
    }

    body.black-white & {
      &.form-group-invalid label {
        --bs-border-color: #{$color-white};
        color: $color-white !important;
      }

      .text-danger {
        color: $color-white !important;
      }
    }

    body.black-yellow & {
      &.form-group-invalid label {
        --bs-border-color: #{$color-yellow};
        color: $color-yellow !important;
      }

      .text-danger {
        color: $color-yellow !important;
      }
    }

    body.yellow-black & {
      &.form-group-invalid label {
        --bs-border-color: #{$color-black};
        color: $color-black !important;
      }

      .text-danger {
        color: $color-black !important;
      }
    }
  }
}

.triangle {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  display: inline-block;
  vertical-align: inherit;

  &--up {
    border-bottom: 6px solid $primary;
  }

  &--down {
    border-top: 6px solid $primary;
  }
}

.triangle-up {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid $primary;
  display: inline-block;
  vertical-align: inherit;
}

.triangle-down {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid $primary;
  display: inline-block;
  vertical-align: inherit;
}

.underline {
  text-decoration: underline;
}

.sort-order {
  width: 15rem;
}

.horizontal-line {
  border: 0;
  width: 25px;
  height: 5px;
  margin: 0.5rem 0;
  background-color: $color-grey-light-4;
}

.scrollable-table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
}

.sticky-header-table {
  overflow: auto;
  max-height: 700px;

  table th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

// temp
.forum {
  &__type {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
  }
}

.cms-consent-list {
  ol {
    padding: 0;

    li {
      margin-bottom: 1rem;
    }
  }
}
