.c8y-nav-stacked {
  position: relative;
  z-index: 10;
  display: block;
  margin-bottom: 0;
  padding-left: 0;
  width: 100%;
  list-style: none;

  .c8y-stacked-item {
    position: relative;
    display: flex;
    float: none;
    align-items: center;
    flex-flow: row nowrap;
    padding: 9px 0 9px 16px;
    width: 100%;
    border: 0;
    background-color: @component-background-expanded;
    background-image: none;
    box-shadow: inset 0 -1px 0 @component-border-color;
    cursor: pointer;

    appearance: none;
    .transition(all 0.25s ease);

    &:hover:not(.active) {
      background-color: @component-background-active;
      box-shadow: inset 0 0 0 1px @component-color-actions-hover;
      .ui-sortable-handle {
        margin-left: -16px;
        width: 30px;
        outline: none;
      }
    }
    &:focus-within,
    &:focus {
      .c8y-focus-inset();
    }

    .btn-clean:focus {
      outline: none;
    }

    &.active {
      border-left: 4px solid @component-brand-primary;
      background-color: @component-background-default;
      .btn-remove {
        display: none;
      }
    }
    > .c8y-switch {
      margin: calc(@margin-base * -1 - 1px) 0 calc(@margin-base * -1);
    }
    .msgid {
      display: inline-block;
      min-width: 40px;
    }
  }

  &.ui-sortable .c8y-stacked-item {
    max-height: 40px !important;
    .ui-sortable-handle {
      overflow: hidden;
      margin-left: 0;
      width: 0;
      text-align: center;

      .transition(all 0.25s ease);
    }
  }
}
