/* form */
.ivu-form {
  .ivu-form-item-error-tip {
    font-size: 14px;
    margin-top: 3px;
    padding-left: 20px;
    padding-top: 0;
    line-height: 20px;
    white-space: nowrap;
    background-image: url(../images/icon-error-tips.png);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 0 2px;
  }
  .ivu-form-item-label {
    font-weight: 600;
    color: @dark-color;
  }
}
.ivu-form-inline {
  .ivu-form-item {
    margin-bottom: 10px;
    margin-right: 20px;
  }
  .ivu-form-item-label,
  .ivu-form-item-content {
    display: inline-block;
    vertical-align: middle;
  }
}
.modal-form {
  .ivu-form-item-label {
    font-size: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
// ivu-select
.ivu-select {
  min-width: 140px;
  &-disabled {
    .ivu-select-selection {
      color: @btn-disable-color;
      background-color: @btn-disable-bg;
    }
  }
}

// input
.ivu-input {
  &-wrapper {
    min-width: 140px;
  }
}
.input-huge {
  > .ivu-icon {
    line-height: 50px;
    right: 5px;
  }
  .ivu-input {
    height: 50px;
    border-radius: @box-border-radius-large;

    &-with-prefix {
      padding-left: 40px;
      padding-right: 20px;
    }
    &-prefix {
      width: 40px;
      padding-left: 10px;
      i {
        line-height: 50px;
      }
    }
  }
}
// ivu-input-number
.ivu-input-number {
  min-width: 140px;
}

// table
.ivu-table {
  background-color: transparent;
  color: @dark-color;
  .ivu-table-header {
    border-radius: @box-border-radius-small;
    background-color: @white;
  }
  .ivu-table-row {
    background-color: @white;
    color: @dark-color-light;
    td {
      &:first-child {
        border-radius: @box-border-radius-small 0 0 @box-border-radius-small;
      }
      &:last-child {
        border-radius: 0 @box-border-radius-small @box-border-radius-small 0;
      }
    }
  }
  table {
    border-spacing: 0 4px;
    border-collapse: separate;
  }
}
.ivu-table-wrapper {
  border: 0;
}
.ivu-table:after,
.ivu-table:before {
  background: transparent;
}
.ivu-table td,
.ivu-table th {
  font-size: 14px;
  background: transparent;
  border: 0;
  letter-spacing: 1px;
}
.ivu-table-body {
  min-height: 200px;
}
.ivu-table-tip td {
  font-size: 20px;
  height: 200px;
  color: @dark-color-lighter;
}

.ivu-tree-children > li {
  font-size: 14px;
}

.table-action {
  .ivu-icon {
    color: @dark-color-light;
    margin: 0 6px;
    transition: transform 0.1s linear;
    cursor: pointer;

    &:hover {
      color: @primary-color;
      transform: scale(1.3, 1.3);
    }
  }
  .icon-act {
    color: @info-color;
  }
  .icon-danger {
    &:hover {
      color: @error-color;
    }
  }
}
// ivu-page
.ivu-page {
  &-item {
    border-radius: @box-border-radius-small;
    height: 32px;
    width: 32px;
    line-height: 30px;
    min-width: 32px;
    a {
      color: @dark-color-lighter;
    }

    &-active {
      background-color: @primary-color;
      a {
        color: @white;
        &:hover {
          color: @white;
        }
      }
    }
  }
}

/* button */
.ivu-btn + .ivu-btn {
  margin-left: 10px;
}

// ivu-modal
.ivu-modal {
  &-content {
    border-radius: @box-border-radius;
  }
  &-header {
    padding: 15px;
    &-inner {
      font-weight: 600;
      font-size: 18px;
      line-height: 25px;
      text-align: center;
    }
  }
  &-body {
    padding: 32px 20px 0;
  }
  &-mask {
    background: rgba(53, 61, 87, 0.65);
  }
  &-footer {
    border: none;
    text-align: center;
    .ivu-btn {
      min-width: 80px;
      &:not(:first-child) {
        margin-left: 20px;
      }
    }
  }
  // $Modal.confirm
  &-confirm {
    padding: 16px 0 48px 0;
    text-align: center;
    &-body {
      padding: 0 0 40px;
      font-size: 18px;
      color: @dark-color;
      font-weight: 600;
    }
    &-footer {
      text-align: center;

      .ivu-btn {
        border-radius: @box-border-radius;
        margin: 0 10px;
        width: 80px;
      }
    }
  }
}
