@root-entry-name: 'default';
@import (reference) '~antd/es/style/themes/index.less';

@pro-list-toolbar: ~'@{ant-prefix}-pro-table-list-toolbar';

.@{pro-list-toolbar} {
  min-height: 44px;
  padding-top: 12px;
  line-height: 1;

  .select-tip {
    display: flex;
    color: #222;

    .select-count {
      display: inline-block;
      width: 34px;
      color: var(--ant-primary-color);
      text-align: center;
    }
  }

  &-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;

    &-mobile {
      flex-direction: row;
    }
  }

  &-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: @heading-color;
    font-weight: 500;
    font-size: @font-size-lg;
  }

  &-search:not(:last-child) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  &-setting-item {
    margin: 0 4px;
    color: @icon-color-hover;
    font-size: @font-size-lg;
    cursor: pointer;

    > span {
      display: block;
      width: 100%;
      height: 100%;
    }

    &:hover {
      color: @primary-color-hover;
    }
  }

  &-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 30px;
  }

  &-right {
    display: flex;
    justify-content: flex-end;
  }

  &-btns {
    flex: 1;
    width: 0;
  }

  &-extra-line {
    margin-bottom: 8px;
  }

  &-filter {
    &:not(:last-child) {
      margin-right: @margin-md;
    }

    display: flex;
    align-items: center;

    .@{ant-prefix}-pro-table-search {
      margin: 0;
      padding: 0;
    }
  }

  &-inline-menu-item {
    display: inline-block;
    margin-right: @margin-lg;
    cursor: pointer;
    opacity: 0.75;

    &-active {
      font-weight: bold;
      opacity: 1;
    }
  }

  &-dropdownmenu-label {
    font-weight: bold;
    font-size: @font-size-lg;
    text-align: center;
    cursor: pointer;
  }

  .tab-tag {
    display: flex;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.85);
    font-variant: tabular-nums;
    list-style: none;
    font-feature-settings: 'tnum', 'tnum';

    &-wrap {
      position: relative;
      display: inline-block;
      display: flex;
      flex: auto;
      align-self: stretch;
      overflow: hidden;
      white-space: nowrap;
      transform: translate(0);
    }

    &-list {
      position: relative;
      display: flex;
      border: 1px solid #ecf1fa;
      border-radius: 15px;
      transition: transform 0.3s;
    }

    &-item {
      position: relative;
      display: inline-flex;
      align-items: center;
      height: 30px;
      padding: 8px 12px;
      font-size: 14px;
      background: transparent;
      border: 0;
      outline: none;
      cursor: pointer;

      &:hover {
        color: var(--ant-primary-color, #0e55cb);
      }

      &-active {
        color: var(--ant-primary-color, #0e55cb);
        background: var(--ant-primary-color-active-deprecated-f-30, #f3f6fc);
        border-radius: 15px;
        box-shadow: -3px -3px 6px rgba(255, 255, 255, 0.5),
          2px 2px 4px rgba(166, 177, 193, 0.500102);
      }
    }
  }

  .@{ant-prefix}-tabs-top > .@{ant-prefix}-tabs-nav {
    &::before {
      border-bottom: 0;
    }

    margin-bottom: 0;

    .@{ant-prefix}-tabs-nav-list {
      margin-top: 0;

      .@{ant-prefix}-tabs-tab {
        padding-top: 0;
      }
    }
  }
}

@media (max-width: 575px) {
  .@{pro-list-toolbar} {
    &-container {
      display: flex;
      flex-wrap: wrap;
    }

    &-left {
      margin-bottom: 16px;
    }
  }
}

.table-hide-btns-popover {
  .ant-popover-arrow {
    width: 0 !important;
    height: 0 !important;
  }

  .ant-popover-inner-content {
    min-width: 100px;
    max-height: 250px;
    overflow-y: auto;
  }
}
