/** contains common classes */

a,
.link,
.error:not(:empty),
.success:not(:empty) {
  font-size: 14px;
  margin: 10px auto;
  display: inline-block;
}

.error:not(:empty) {
  color: var(--error-color);
}

.success:not(:empty) {
  color: var(--success-color);
}

.danger {
  background-color: var(--danger-color) !important;
  color: var(--danger-text-color) !important;
}

.primary {
  background-color: var(--button-color) !important;
  color: var(--button-text-color) !important;
}

a,
.link {
  color: var(--button-color);
  text-decoration: underline;
  cursor: pointer;
}

.link:last-child {
  margin-top: 10px;
}

.row {
  display: flex;
  flex-direction: row;
}

.row > * {
  flex: 1;
}

.icon {
  &.danger {
    background-color: transparent !important;
    color: var(--danger-color) !important;
  }

  &.primary {
    background-color: transparent !important;
    color: var(--button-color) !important;
  }
}

.icon-buttons {
  display: flex;
  justify-content: space-around;
  max-width: 200px;
  margin: auto;

  .icon {
    text-decoration: none !important;
    display: inline-flex;
    cursor: pointer;
    height: 30px;
    width: 30px;
    align-items: center;
    justify-content: center;

    &:hover {
      background-color: rgba($color: #000000, $alpha: 0.1) !important;
      border-radius: 50%;
    }
  }
}

.md {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-align: left;
  }

  img {
    max-width: 80vw;
    max-height: 60vh;
  }
}

.chips {
  display: flex;
  margin: 10px 0;

  .chip {
    margin: 0 10px !important;
  }
}

.chip {
  flex-shrink: 0;
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.486);
  margin: 10px 10px 0 0;
  user-select: none;

  .icon,
  img {
    margin: 0 10px 0 0;
  }

  img {
    height: 20px;
  }
}

.table-wrapper {
  width: 100%;
  overflow: auto;
}
