: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-space {
  display: flex;
}
.nut-space-item {
  flex: none;
}
.nut-space-vertical {
  flex-direction: column;
}
.nut-space-vertical-item {
  margin-bottom: var(--nutui-space-gap, calc(8px * var(--nut-scale-f, 1)));
}
.nut-space-vertical-item-last {
  margin-bottom: 0;
}
.nut-space-horizontal {
  flex-direction: row;
}
.nut-space-horizontal-item {
  margin-right: var(--nutui-space-gap, calc(8px * var(--nut-scale-f, 1)));
}
.nut-space-horizontal-item-last {
  margin-right: 0;
}
.nut-space-horizontal-wrap {
  flex-wrap: wrap;
  margin-bottom: calc(var(--nutui-space-gap, calc(8px * var(--nut-scale-f, 1))) * -1);
}
.nut-space-horizontal-wrap-item {
  padding-bottom: var(--nutui-space-gap, calc(8px * var(--nut-scale-f, 1)));
}
.nut-space-align-center {
  align-items: center;
}
.nut-space-align-start {
  align-items: flex-start;
}
.nut-space-align-end {
  align-items: flex-end;
}
.nut-space-align-baseline {
  align-items: baseline;
}
.nut-space-justify-center {
  justify-content: center;
}
.nut-space-justify-start {
  justify-content: flex-start;
}
.nut-space-justify-end {
  justify-content: flex-end;
}
.nut-space-justify-between {
  justify-content: space-between;
}
.nut-space-justify-around {
  justify-content: space-around;
}
.nut-space-justify-evenly {
  justify-content: space-evenly;
}
.nut-space-justify-stretch {
  /* #ifndef dynamic*/
  justify-content: stretch;
  /* #endif */
}

[dir=rtl] .nut-space-horizontal > .nut-space-item,
.nut-rtl .nut-space-horizontal > .nut-space-item {
  margin-right: 0;
  margin-left: var(--nutui-space-gap, calc(8px * var(--nut-scale-f, 1)));
}
[dir=rtl] .nut-space-horizontal > .nut-space-item:last-child,
.nut-rtl .nut-space-horizontal > .nut-space-item:last-child {
  margin-right: 0;
  margin-left: 0;
}