// @import '../../styles-new/mixins';
@import '../../styles-new/default';

.im-number {
  padding: 11*@hd @h-spacing-lg;
  background-color: @fill-base ;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  &-title {
    height: 22*@hd;
    flex-shrink: 0;
    font-family: PingFangSC-Regular;
    font-size: @font-size-base;
    color: @color-text-main;
    font-weight: 400;
    min-width: 90*@hd;
    width: 125 *@hd;
    display: flex;
    align-items: center;
    flex: 0 0 auto;

    >img {
      width: 16*@hd;
      margin-left: 3*@hd;
    }
  }

  &-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 0;
    overflow: hidden;

    input {
      // width: auto;
      // width: 186*@hd;
      border: none;
      font-family: PingFangSC-Regular;
      font-size: @font-size-base;
      color: @picker-item-color;
      font-weight: 400;
      // line-height: @font-size-base;
      height: 22 *@hd;
      // width: calc(100% -2px);
      width: calc(~"100% - "2*@hd);
      overflow-x: scroll;
      padding: 0;
    }

    input::-webkit-input-placeholder {
      font-family: PingFangSC-Regular;
      font-size: @font-size-base;
      color: @color-text-placeholder;
      font-weight: 400;
    }

    input:disabled {
      background-color: @fill-base;
      color: @color-text-main;
    }

    &-error,
    &-info {
      margin-top: 5px;
      text-align: left;
      font-family: PingFangSC-Regular;
      font-size: @font-size-caption-sm;
      color: #dd0e0e;
      font-weight: 400;
      line-height: @font-size-caption-sm ;
    }

    &-info {
      color: @color-text-secondary;
    }
  }

  &-right {
    height: 20*@hd ;
    width: 20*@hd;
    position: relative;
    flex: 0 0 auto;

    img {
      position: absolute;
      // transform: translateY(-15%);
      height: @icon-size-md ;
      width: @icon-size-md;
      top: -3*@hd;
      right: -3*@hd;
    }
  }

  &-right-icon {
    img {
      height: 20*@hd;
      width: 20*@hd;
      margin-left: 6*@hd;
    }
  }

}


.im-numbertype {
  background-color: @fill-base ;
  padding: @v-spacing-md @h-spacing-lg;

  &-title {
    font-family: PingFangSC-Regular;
    font-size: @font-size-base;
    color: @color-text-main;
    font-weight: 400;
    display: flex;
    align-items: center;

    >img {
      margin-left: 4 * @hd;
      height: 20*@hd;
    }
  }

  &-content {
    display: flex;
    justify-content: flex-start;
    margin: 8*@hd 0;

    input {
      height: 28 * @hd;
      border: none;
      font-family: PingFangSC-Semibold;
      font-size: @font-size-title;
      color: @picker-item-color;
      letter-spacing: 0;
      flex: 1 1 auto;
      margin-right: 16*@hd;
      width: 0;
      padding: 0;
      // font-weight: 600;
    }

    input::-webkit-input-placeholder {
      font-family: PingFangSC-Regular;
      font-size: @font-size-title;
      color: @color-text-placeholder;
    }

    input:disabled {
      background-color: @fill-base;
      color: @color-text-main;
    }

    &-right-text {
      color: @color-text-right;
      font-size: @font-size-title;
    }

    &-image {
      width: @icon-size-md ;
      height: @icon-size-md;
    }
  }

  &-info {
    font-family: PingFangSC-Regular;
    font-size: @font-size-base-sm;
    color: @color-text-secondary;
    letter-spacing: 0;
    font-weight: 400;
  }
}
