@import '../mixins/mixins.less';
.b(ap-select-layout, {
  display: flex;
  height: 100%;
  width: 100%;
  
  .v-enter-active,
  .v-leave-active {
    transition:
      all 0.2s,
      background 0s;
  }

  .v-enter-from,
  .v-leave-to {
    width: 0;
    min-width: 0;
    max-width: 0;
    margin-right: 0;
  }

  &-side {
    display: flex;
    flex-direction: column;
    width: 214px;
    min-width: 214px;
    max-width: 214px;
    margin-right: 16px;
    overflow: hidden;
    background-color: #fff;

    &__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid #e9e9e9;
      overflow: hidden;
      white-space: nowrap;

      & > h3 {
        margin: 0;
        color: #333;
        font-size: 16px;
        font-weight: bold;
        line-height: 18px;
      }

      &--imgWrap {
        border-radius: 2px;
        cursor: pointer;
        font-size: 24px;
        color: #999;
        display: flex;
        height: 24px;;

        &:hover {
          background: #f5f5f5;
        }

        & > img {
          width: 24px;
          height: 24px;
        }
      }
    }

    &__body {
      position: relative;
      flex: 1;

      &--search {
        margin: 10px 0;
        padding: 0 16px;
      }

      &--scroll {
        position: absolute;
        inset: 52px 0 0;
        overflow-y: auto;
        // width: 100%;
        padding: 0 16px;

        
      }
      &--scroll-item {
        margin-bottom: 8px;
        padding: 8px 12px;
        overflow: hidden;
        color: #333;
        line-height: 22px;
        width: calc(214px - 32px);
        text-overflow: ellipsis;
        text-wrap: nowrap;
        cursor: pointer;
        border-radius: 4px;

        &:hover {
          background: #f5f5f5;
        }

        &.active {
          background-color: #e4faf1;
          color: #34b77c;
          font-weight: bold;

          & > .ant-typography {
            color: #34b77c
          }
        }
      }
    }
  }

  &-content {
    flex: 1;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;

    &__header {
      display: flex;
      align-items: center;
      height: 32px;
      padding: 16px 16px 0;
      box-sizing: content-box;
      background: #fff;

      &--imgWrap {
        margin-right: 10px;
        border-radius: 2px;
        cursor: pointer;
        font-size: 24px;
        display: flex;
        height: 24px;;
        color: #999;

        &:hover {
          background: #f5f5f5;
        }
      }

      &--title {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
        line-height: 32px;
      }
    }
  }
});
