: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-grid-item {
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  color: var(--nutui-grid-item-text-color, var(--nutui-color-title, #1a1a1a));
  overflow: hidden;
}
.nut-grid-item-text {
  color: var(--nutui-grid-item-text-color, var(--nutui-color-title, #1a1a1a));
  font-size: var(--nutui-grid-item-text-font-size, var(--nutui-font-size-s, calc(12px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
  word-break: break-all;
  margin: var(--nutui-grid-item-text-margin, calc(8px * var(--nut-scale-f, 1))) 0 0 0;
}
.nut-grid-item-text-reverse {
  margin: 0 0 var(--nutui-grid-item-text-margin, calc(8px * var(--nut-scale-f, 1))) 0;
}
.nut-grid-item-text-horizontal {
  margin: 0 0 0 var(--nutui-grid-item-text-margin, calc(8px * var(--nut-scale-f, 1)));
}
.nut-grid-item-text-horizontal-reverse {
  margin: 0 var(--nutui-grid-item-text-margin, calc(8px * var(--nut-scale-f, 1))) 0 0;
}
.nut-grid-item-content {
  display: flex;
  box-sizing: border-box;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: var(--nutui-grid-item-content-padding, calc(16px * var(--nut-scale-f, 1)) calc(8px * var(--nut-scale-f, 1)));
  background: var(--nutui-grid-item-content-bg-color, var(--nutui-gray-1));
  border: 0 solid var(--nutui-grid-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
}
.nut-grid-item-content-border {
  border-right-width: var(--nutui-grid-border-width, 0px);
  border-bottom-width: var(--nutui-grid-border-width, 0px);
}
.nut-grid-item-content-surround {
  border-top-width: var(--nutui-grid-border-width, 0px);
  border-left-width: var(--nutui-grid-border-width, 0px);
  border-radius: var(--nutui-grid-item-border-radius, var(--nutui-radius-l, calc(8px * var(--nut-scale-f, 1))));
}
.nut-grid-item-content-center {
  align-items: center;
  justify-content: center;
}
.nut-grid-item-content-square {
  margin-top: -100%;
}
.nut-grid-item-content-reverse {
  flex-direction: column-reverse;
}
.nut-grid-item-content-horizontal {
  flex-direction: row;
}
.nut-grid-item-content-horizontal-reverse {
  flex-direction: row-reverse;
}
.nut-grid-item-content-clickable {
  cursor: pointer;
}
.nut-grid-item-content-clickable::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
  border: inherit;
  border-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
  border-radius: inherit;
  transform: translate(-50%, -50%);
  opacity: 0;
  content: " ";
}
.nut-grid-item-content-clickable:active::before {
  opacity: 0.1;
}

[dir=rtl] .nut-grid-item-content-border,
.nut-rtl .nut-grid-item-content-border {
  border-right-width: 0;
  border-left-width: 1px;
}
[dir=rtl] .nut-grid-item-content-surround,
.nut-rtl .nut-grid-item-content-surround {
  border-left-width: 0;
  border-right-width: 1px;
}
[dir=rtl] .nut-grid-item-content-horizontal .nut-grid-item-text,
.nut-rtl .nut-grid-item-content-horizontal .nut-grid-item-text {
  margin: 0 var(--nutui-grid-item-text-margin, calc(8px * var(--nut-scale-f, 1))) 0 0;
}
[dir=rtl] .nut-grid-item-content-horizontal.nut-grid-item-content-reverse .nut-grid-item-text,
.nut-rtl .nut-grid-item-content-horizontal.nut-grid-item-content-reverse .nut-grid-item-text {
  margin: 0 0 0 var(--nutui-grid-item-text-margin, calc(8px * var(--nut-scale-f, 1)));
}
[dir=rtl] .nut-grid-item-content-clickable::before,
.nut-rtl .nut-grid-item-content-clickable::before {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}

.nut-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  border: 0 solid var(--nutui-grid-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
}
.nut-grid-border {
  border-top-width: var(--nutui-grid-border-width, 0px);
  border-left-width: var(--nutui-grid-border-width, 0px);
}

[dir=rtl] .nut-grid-border,
.nut-rtl .nut-grid-border {
  border-left-width: 0;
  border-right-width: calc(1px * var(--nut-scale-f, 1));
}