.c8y-datapoint-pill, .c8y-alarm-pill, .c8y-event-pill {
  display: flex;
  overflow: hidden;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border-radius: @margin-16;
  background-color: @component-background-default;
  box-shadow: none;
  border: 1px solid @component-color-text-muted;
  font-size: @font-size-small;
  line-height: 1;
  &__btn {
    .btn-clean();
    align-self: stretch;
    padding: @margin-4 @margin-4 @margin-4 @margin-base;
    border-right: 1px solid @component-color-text-muted;
    color: @text-muted;
    line-height: 1;
  }
  &__label {
    display: flex;
    overflow: hidden;
    align-items: center;
    padding: @margin-4 calc(@margin-base + @margin-4) @margin-4 @margin-4;
    line-height: 1;
  }
}

.c8y-datapoint-pill{
  &__btn {
    &, &:not(.btn){
      padding: @margin-4;
      &:first-child{
        border-bottom-left-radius: @margin-16!important;
        border-top-left-radius: @margin-16!important;
      }
      + .c8y-datapoint-pill__btn{
        border-right: 0;
        padding-right: @margin-base;
      }
    }
  }
}

.c8y-alarm-pill {
  border-radius: @margin-4;
  &__btn {
    &, &:not(.btn){
      padding: @margin-4!important;
      + .c8y-alarm-pill__btn{
        border-right: 0;
      }
    }
  }
}

.c8y-event-pill {
  border-radius: 2px;
  border: 1px dotted @component-color-text-muted;
  &__btn {
    &, &:not(.btn){
      border-right: 1px dotted @component-color-text-muted;
      padding: @margin-4 !important;
      + .c8y-event-pill__btn{
        border-right: 0;
      }
    }
  }
}
.c8y-datapoint-pill, .c8y-alarm-pill, .c8y-event-pill{
  &.pill--sm{
    .c8y-datapoint-pill, .c8y-alarm-pill, .c8y-event-pill {
      &__btn {
        &, &:not(.btn){
          font-size: 11px;
          padding: 1px @margin-8 1px @margin-4!important;
          + .c8y-datapoint-pill__btn,
          + .c8y-alarm-pill__btn,
          + .c8y-event-pill__btn {
            border-right: 0;
            padding-right: @margin-base;
          }
        }
      }
    }
  }
}
