@import './common/var.scss';
.es-toolbar {
  padding: 6px 12px;
  border-bottom: $--border-base;
  position: relative;
  background-color: #fff;
  .es-toolbar-content {
    display: flex;
    justify-content: flex-end;
    .es-button-content {
      flex: 1;
      .el-button {
        padding: 4px 8px;
        & + .el-button,
        & + .es-button-badge,
        & + .es-upload,
        & + .el-dropdown,
        & + .es-selector {
          margin-left: 6px;
        }
      }
      .es-button-badge,
      .es-upload,
      .es-selector {
        & + .el-button,
        & + .es-button-badge,
        & + .es-upload,
        & + .el-dropdown,
        & + .es-selector {
          margin-left: 6px;
        }
      }
    }
    .es-form-search {
      background: transparent;
      & > .es-form-content {
        padding: 0;
        .el-scrollbar__view {
          padding: 0;
        }
      }
      .el-form-item {
        margin-bottom: 0;
      }
    }
    .es-advanced-btn {
      margin-left: 6px;
      height: 32px;
      .es-advanced-icon {
        margin-right: -8px;
      }
    }
    .es-toolbar-text {
      line-height: 32px;
    }
    .es-toolbar-info {
      display: flex;

      align-items: center;
      .es-info {
        font-size: 13px;
        margin-left: 20px;
      }
    }
    .el-menu--horizontal {
      border-bottom: 0;
      position: relative;
      bottom: -6px;
    }
    .el-menu-item {
      height: 32px;
      line-height: 24px;
    }
    .el-input__inner,
    .es-checkbox-group,
    .el-input__suffix,
    .el-input__prefix {
      height: 32px;
      line-height: 32px;
    }
    .es-date-picker {
      .el-input__suffix,
      .el-input__prefix {
        height: 28px;
        line-height: 28px;
      }
    }
    .es-radio-group,
    .es-switch-content {
      line-height: 32px;
    }
    .el-switch {
      top: -2px;
    }
    .el-button {
      span {
        line-height: 14px;
      }
    }
    .el-checkbox,
    .el-radio {
      &:not(:last-child) {
        margin-right: 8px;
      }
    }
    .el-form-item {
      &.es-toolbar-item-radio,
      &.es-toolbar-item-checkbox,
      &.es-toolbar-item-switch {
        & + .el-form-item {
          margin-left: 16px;
        }
      }
      .el-input__icon {
        line-height: 32px;
        vertical-align: top;
      }
    }
    .es-form-search-small {
      .el-input__inner {
        width: 100%;
        max-width: 156px;
        box-sizing: border-box;
        &.el-date-editor--daterange {
          max-width: 300px;
          .el-input__icon,
          .el-range-separator {
            line-height: 24px;
          }
        }
      }
    }
  }
  .es-form-search-small {
    .el-form-item__content,
    .el-input-number {
      height: 32px;
      line-height: 32px !important;
    }
    .el-form-item__label {
      line-height: 32px !important;
      height: 32px;
    }
  }
  .el-button.es-upload {
    padding: 0 !important;
    border: 0 !important;
  }
  .es-advanced-filter {
    margin-top: 20px;
    z-index: 9;
    &.es-absolute {
      position: absolute;
      left: 0;
      top: 45px;
      right: 0;
      margin-top: 0;
      box-shadow: $--box-shadow-base;
      border-bottom-left-radius: 6px;
      border-bottom-right-radius: 6px;
      .es-form {
        background-color: #fff;
        border: $--border-base;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        border-top: 0;
        padding: 20px 20px 20px 10px;
      }
    }
  }
  .es-toolbar-button-group {
    .el-button--medium {
      border-radius: 3px !important;
    }
    .el-dropdown {
      margin-left: 6px;
    }
  }
}
