@import '../../../styles/common/easyvCommon.less';

.field {
  display: flex;
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0px;
  }

  .label {
    width: 68px;
    line-height: 32px;
    text-align: right;
  }

  .labelRequired::before {
    display: inline-block;
    margin-right: 4px;
    color: #ff4d4f;
    font-size: 12px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    content: '* ';
  }

  :global {
    .easyv-select:not(.easyv-select-customize-input) .easyv-select-selector {
      color: rgba(180, 183, 193, 1);
      background: #181a24;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-sizing: border-box;
      border-radius: 2px;
    }
  }
}

.fieldContent {
  width: 100%;
  padding-left: 12px;
  .input();
}

.device {
  width: 100%;
  padding-left: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 115px;
  grid-gap: 8px;

  .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #181a24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    border-radius: 2px;
    cursor: pointer;

    & > span {
      color: #fff;
    }

    &.active {
      border-color: #2491f7;
      color: #2491f7;

      :global {
        .iconfont {
          color: #3a89fe;
        }
      }
    }

    :global(.iconfont) {
      font-size: 36px;
      height: 44px;
      line-height: 44px;
      color: rgba(180, 183, 193, 0.4);
    }
  }
}

.ratio {
  display: flex;

  :global(.icon-btn_close) {
    line-height: 32px;
    margin: 0 4px;
    font-size: 12px;
    color: #666;
  }

  .unit {
    line-height: 32px;
    margin-left: 6px;
  }

  :global {
    .easyv-input-affix-wrapper {
      padding: 0;
      color: rgba(180, 183, 193, 1);
      background: #353949 !important;
      // border: 1px solid rgba(255, 255, 255, 0.12);
      border: 0;
      border-radius: 2px;
      .input();

      :global {
        .easyv-input {
          text-indent: 12px;
        }
      }
    }

    .easyv-input-suffix {
      padding-right: 5px;
    }
  }
}

.icon-icon_pad {
  background-image: url(../../../images/icon_pad.png);
}

.icon-icon_phone {
  background-image: url(../../../images/icon_phone.png);
}

.icon-icon_custom {
  background-image: url(../../../images/icon_custom.png);
}

.selectDrop {
  .select();
  background-color: none !important;
}
