/**Variable**/

/*toolbar*/
.vxe-toolbar {
  padding: 10px 0;
  &:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    overflow: hidden;
    visibility: hidden;
  }
  &.is--loading {
    position: relative;
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      background-color: $vxe-loading-background-color;
    }
  }
  &.size--small,
  &.size--mini {
    padding: 8px 0
  }
  &.size--medium {
    .vxe-tools--operate > .vxe-button,
    .vxe-custom--setting-btn {
      font-size: 17px;
    }
  }
  &.size--small {
    .vxe-tools--operate > .vxe-button,
    .vxe-custom--setting-btn {
      font-size: 15px;
    }
  }
  &.size--mini {
    .vxe-tools--operate > .vxe-button,
    .vxe-custom--setting-btn {
      font-size: 14px;
    }
  }
  .vxe-tools--wrapper,
  .vxe-tools--operate {
    float: right;
  }
  .vxe-custom--wrapper {
    display: inline-block;
    text-align: right;
    position: relative;
    vertical-align: middle;
    &.is--active {
      .vxe-custom--setting-btn {
        background-color: #D9DADB;
        border-radius: 50%;
      }
      .vxe-custom--option-wrapper {
        display: block;
      }
    }
  }
  .vxe-tools--operate > .vxe-button,
  .vxe-custom--setting-btn {
    font-size: 18px;
    vertical-align: middle;
    user-select: none;
    cursor: pointer;
  }
  .vxe-custom--setting-btn {
    &:hover {
      background-color: #F0F0F0;
      border-radius: 50%;
    }
    & > i {
      display: block;
    }
  }
  .vxe-custom--setting-btn {
    padding: 4px;
  }
  .vxe-custom--option-wrapper {
    display: none;
    position: absolute;
    right: 0;
    text-align: left;
    background-color: #fff;
    z-index: 19;
    max-height: 210px;
    overflow: auto;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.2);
    .vxe-custom--option {
      padding: 5px 5px;
      border: 1px solid $vxe-table-border-color;
      border-radius: 2px;
      font-weight: 700;
      font-size: 14px;
      > .vxe-checkbox {
        display: block;
        padding: 5px;
        margin: 0;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
}

.vxe-export--panel {
  & > table {
    width: 100%;
    border: 0;
    table-layout: fixed;
    tr {
      td {
        padding: 8px 10px;
        &:nth-child(1) {
          text-align: right;
          width: 30%;
          font-weight: 700;
        }
        &:nth-child(2) {
          width: 70%;
        }
        & > input,
        & > select {
          outline: 0;
          width: 80%;
          padding: 5px 8px;
          color: $vxe-font-color;
          border-radius: 4px;
          border: 1px solid $vxe-input-border-color;
          &:focus {
            border: 1px solid $vxe-primary-color;
          }
        }
        & > input {
          &::placeholder {
            color: $vxe-input-placeholder-color;
          }
        }
      }
    }
  }
  .vxe-export--panel-column {
    width: 80%;
    max-height: 216px;
    overflow: auto;
    border-radius: 4px;
    border: 1px solid $vxe-input-border-color;
    padding: 5px 0;
    margin: 0;
    & > li {
      position: relative;
      padding: 4px 30px 4px 10px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 700;
      cursor: pointer;
      &.active {
        color: $vxe-primary-color;
        &:before {
          content: "";
          position: absolute;
          height: 0.66em;
          width: 0.34em;
          top: 0.5em;
          right: 15px;
          border-width: 0.1em;
          border-style: solid;
          border-color: inherit;
          border-left: 0;
          border-top: 0;
          -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
        }
      }
      &:hover {
        background-color: $vxe-table-row-hover-background-color;
      }
    }
  }
  .vxe-export--panel-btns {
    text-align: right;
    margin-top: 10px;
  }
}
.vxe-modal--wrapper {
  &.size--mini,
  &.size--small {
    .vxe-export--panel {
      font-size: 12px;
    }
  }
}