@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "../../helper-components/style/index";
@import "../../multiple-search/style/index";
@import "../components/Pin/index";
@import "../components/Filters/index";
@import "../components/AmountRangPickerButton/index";
@import "../components/AmountPickerButton/index";
@import "../components/MoreOptionsModal/index";
@import "../components/AdvanceModal/index";

@table-filter-prefix-cls: ~"@{mkui-prefix}-table-filter";

.@{table-filter-prefix-cls} {
  overflow: hidden;
  .reset-component;
  &-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 24px;
    border-bottom: 1px dashed @border-color-split;
    &-label {
      flex-shrink: 0;
      text-align: right;
      .mkui-collapse-btn {
        padding: 0;
        color: @text-color-secondary;
        .mkicon {
          position: absolute;
          top: 50%;
          transform: translateY(-5px);
          margin-left: 2px;
          color: @text-color-secondary;
        }
        &:hover {
          color: @primary-color;
          .mkicon {
            color: @primary-color;
          }
        }
      }
    }
    &-info {
      display: flex;
      flex-grow: 1;
      align-items: center;
      padding: 0 25px;
      &-choosed {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: left;
        min-height: 40px;
        &-item {
          position: relative;
          margin: 3px 8px 3px 0;
          padding: 2px 20px 2px 10px;
          line-height: 1.4;
          white-space: nowrap;
          background-color: @tag-default-bg;
          border: 1px solid @border-color-split;
          border-radius: @border-radius-base;
          cursor: pointer;
          transition: padding .3s @ease-in-out;
          &:not(:last-child) {
            margin-right: 5px;
          }
          &:hover {
            border-color: @primary-color;
            .@{table-filter-prefix-cls}-head-info-choosed-item-remove {
              color: @primary-color !important;
            }
          }
          &-label {
            color: @text-color-secondary;
          }
          &-value {
            display: inline-block;
            margin-left: 5px;
            color: @text-color;
          }
          &-remove {
            position: absolute;
            right: 5px;
            display: inline-block;
            color: @text-color-secondary-lighter !important;
            font-weight: bold;
            font-size: @font-size-sm;
            line-height: 22px !important;
            cursor: pointer;
            transition: all .3s;
            .iconfont-size-under-12px(10px);
          }
        }
      }
      &-total {
        white-space: nowrap;
        > span {
          display: inline-block;
          margin: 0 3px;
          color: @primary-color;
          line-height: 28px;
        }
      }
    }
    &-btns {
      .mkui-btn {
        padding: 0;
        margin-left: 5px;
      }
    }
  }

  &.@{table-filter-prefix-cls}-collapse {
    .@{table-filter-prefix-cls}-body {
      height: 0 !important;
    }
  }

  .@{table-filter-prefix-cls}-empty {
    height: 40px;
    color: @text-color-secondary;
  }

}
