:root,
page {
  --nut-scale-f: 1;
  --nut-scale-font: var(--nut-scale-f, 1);
  --nut-scale-icon: var(--nut-scale-f, 1);
  --nut-icon-height: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important;
  --nut-icon-width: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important;
  --nut-icon-line-height: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important;
}

/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-form-item {
  display: flex;
  line-height: unset;
}
.nut-form-item-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.nut-form-item-label {
  display: flex;
  flex-direction: row;
  font-size: var(--nutui-form-item-label-font-size, var(--nutui-font-size-s, calc(12px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
  font-weight: normal;
  width: var(--nutui-form-item-label-width, calc(90px * var(--nut-scale-f, 1)));
  margin-right: var(--nutui-form-item-label-margin-right, calc(10px * var(--nut-scale-f, 1)));
  flex: 0 0 auto;
  word-wrap: break-word;
  text-align: var(--nutui-form-item-label-text-align, left);
  line-height: unset;
}
.nut-form-item-label-left-required {
  color: var(--nutui-form-item-required-color, var(--nutui-color-primary, #ff0f23));
  margin-right: var(--nutui-form-item-required-margin-right, calc(4px * var(--nut-scale-f, 1)));
  position: absolute;
  left: calc(-10px * var(--nut-scale-f, 1));
}
.nut-form-item-label-right-required {
  color: var(--nutui-form-item-required-color, var(--nutui-color-primary, #ff0f23));
  margin-left: var(--nutui-form-item-required-margin-right, calc(4px * var(--nut-scale-f, 1)));
  position: absolute;
  right: calc(-10px * var(--nut-scale-f, 1));
}
.nut-form-item .nut-form-item-labeltxt {
  position: relative;
  font-size: var(--nutui-form-item-label-font-size, var(--nutui-font-size-s, calc(12px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
}
.nut-form-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nut-form-item-body-slots {
  text-align: var(--nutui-form-item-body-slots-text-align, left);
}
.nut-form-item-body-slots .nut-input {
  padding: 0;
  border: 0;
}
.nut-form-item-body-slots .nut-input-container {
  height: auto;
}
.nut-form-item-body-slots .nut-input-text {
  font-size: var(--nutui-form-item-body-font-size, var(--nutui-font-size-base, calc(14px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
  text-align: var(--nutui-form-item-body-input-text-align, left);
  color: var(--nutui-color-title, #1a1a1a);
  width: 100%;
  outline: 0 none;
  border: 0;
  text-decoration: none;
  background: transparent;
}
.nut-form-item-body-slots .nut-range-container {
  min-height: calc(24px * var(--nut-scale-f, 1));
}
.nut-form-item-body-slots .nut-textarea {
  padding: 0;
}
.nut-form-item-body-slots .nut-textarea .nut-textarea-textarea {
  font: inherit;
  text-align: var(--nutui-form-item-body-input-text-align, left);
}
.nut-form-item-body-tips {
  text-align: var(--nutui-form-item-tip-text-align, left);
  font-size: var(--nutui-form-item-tip-font-size, var(--nutui-font-size-xs, calc(11px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
  color: var(--nutui-form-item-error-message-color, var(--nutui-color-primary, #ff0f23));
}

[dir=rtl] .nut-form-item-label,
.nut-rtl .nut-form-item-label {
  text-align: right;
  margin-right: 0;
  margin-left: var(--nutui-form-item-label-margin-right, calc(10px * var(--nut-scale-f, 1)));
}
[dir=rtl] .nut-form-item-label .required::before,
.nut-rtl .nut-form-item-label .required::before {
  margin-right: 0;
  margin-left: var(--nutui-form-item-required-margin-right, calc(4px * var(--nut-scale-f, 1)));
}
[dir=rtl] .nut-form-item-body-slots,
.nut-rtl .nut-form-item-body-slots {
  text-align: right;
}
[dir=rtl] .nut-form-item-body-slots .nut-icon-ArrowRight,
[dir=rtl] .nut-form-item-body-slots .nut-icon-ArrowLeft,
.nut-rtl .nut-form-item-body-slots .nut-icon-ArrowRight,
.nut-rtl .nut-form-item-body-slots .nut-icon-ArrowLeft {
  transform: rotateY(180deg);
}
[dir=rtl] .nut-form-item-body-slots .nut-input-text,
.nut-rtl .nut-form-item-body-slots .nut-input-text {
  text-align: right;
}
[dir=rtl] .nut-form-item-body-slots .nut-textarea-textarea,
.nut-rtl .nut-form-item-body-slots .nut-textarea-textarea {
  text-align: right;
}
[dir=rtl] .nut-form-item-tips,
.nut-rtl .nut-form-item-tips {
  text-align: right;
}

/* position */
.nut-form-item-label-right {
  justify-content: flex-end;
  padding-right: calc(24px * var(--nut-scale-f, 1));
  white-space: nowrap;
}

.nut-form-item-label-left {
  position: relative;
  padding-left: calc(12px * var(--nut-scale-f, 1));
  white-space: nowrap;
}

.nut-form-item-top {
  flex-direction: column;
  align-items: flex-start;
  white-space: nowrap;
}

.nut-form-item-label-top {
  display: block;
  padding-bottom: calc(4px * var(--nut-scale-f, 1));
  padding-right: calc(24px * var(--nut-scale-f, 1));
}

.nut-form-item-body-top {
  margin-left: 0;
  width: 100%;
}

[dir=rtl] .form-layout-right .nut-form-item-label,
.nut-rtl .form-layout-right .nut-form-item-label {
  text-align: left;
  padding-right: 0;
  padding-left: calc(24px * var(--nut-scale-f, 1));
}

[dir=rtl] .form-layout-left .nut-form-item-label,
.nut-rtl .form-layout-left .nut-form-item-label {
  text-align: right;
  padding-left: 0;
  padding-right: calc(12px * var(--nut-scale-f, 1));
}

[dir=rtl] .form-layout-top .nut-form-item-label,
.nut-rtl .form-layout-top .nut-form-item-label {
  padding-right: 0;
  padding-left: calc(24px * var(--nut-scale-f, 1));
}

[dir=rtl] .form-layout-top .nut-form-item-body,
.nut-rtl .form-layout-top .nut-form-item-body {
  margin-left: 0;
  margin-right: 0;
}