.label {
  display: inline;
  font-size: 75%;
  line-height: 1;
  color: var(--label-color);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;

  a& {
    &:hover,
    &:focus {
      text-decoration: none;
      cursor: pointer;
    }
  }

  &:empty {
    display: none;
  }

  // Quick fix for labels in buttons
  .btn & {
    position: relative;
    top: var(--minus-1px);
  }
}

.label-default {
    .label-variant-espo(var(--label-default-bg); var(--gray-light-10));
}

.label-primary {
    .label-variant-espo(var(--brand-primary); var(--brand-primary-10));
}

.label-success {
    .label-variant-espo(var(--brand-success); var(--brand-success-10));
}

.label-info {
    .label-variant-espo(var(--brand-info); var(--brand-info-10));
}

.label-warning {
    .label-variant-espo(var(--brand-warning); var(--brand-warning-10));
}

.label-danger {
    .label-variant-espo(var(--brand-danger); var(--brand-danger-10));
}
