@import 'common/angular/common.mixin';

@include animation-hide;

$bg-menu-hovered: #f4f5f7;
$bg-item-hover-color: var(--user-header-bg-color, var(--header-panel-color-bg-hover));
$item-text-color: var(--header-panel-color);

.menu__item.kanban-menu {
  cursor: pointer;

  &.text {
    padding: 7px 10px;

    font-size: 14px;
    font-weight: 500;
    color: $item-text-color;

    border-radius: 2px;

    &:hover {
      background-color: $bg-item-hover-color;
    }
  }

  &.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 52px;

    line-height: 160%;
    color: var(--main-menu-icon-color);
    text-decoration: none;

    &.active {
      position: relative;
      padding: 0 20px;
      background: #2222220f;
    }

    .sub__title {
      margin-top: -8px;
      font-family: var(--bmenu-item-font);
      font-size: 10px;
      white-space: pre-line;

      &.line-height {
        margin-top: -3px;
        line-height: 1;
      }
    }
  }
}

.body-kanbans-item {
  min-width: 320px;
  background: var(--color-gray-fff);
  border-radius: 3px;
  box-shadow:
    rgb(78 78 78) 0 4px 8px -2px,
    rgb(9 30 66 / 31%) 0 0 1px 0;

  .recents,
  .marked {
    &__title {
      margin-top: 14px;
      margin-bottom: 6px;
      padding: 0 20px;

      font-size: 12px;
      font-weight: 600;
      color: var(--color-gray-888);
      text-transform: uppercase;
    }

    .recent-item {
      cursor: pointer;

      display: flex;
      align-items: center;

      padding: 8px 20px;

      color: var(--color-gray-222);
      text-decoration: none;

      &.disabled {
        color: var(--color-gray-aaa);
      }

      &:hover:not(.disabled) {
        background-color: var(--theme-hack-bg2-color, $bg-menu-hovered);
      }

      .kanban-icon {
        display: flex;
        margin-right: 12px;
      }

      app-cmf-favorites-button {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 12px;
        height: 12px;
        margin-left: auto;
      }
    }

    .sub-title {
      cursor: pointer;
    }
  }

  .actions {
    margin-top: 6px;
    margin-bottom: 6px;
    border-top: 1px solid lightgray;

    .action {
      cursor: pointer;

      display: block;

      padding: 8px 20px;

      color: var(--color-gray-222);
      text-decoration: none;

      &:first-child {
        margin-top: 5px;
      }
    }
  }
}

:host {
  margin-top: 2px;
}
