/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-image {
  display: block;
  position: relative;
}
.nut-image-default {
  display: block;
  width: 100%;
  height: 100%;
}
.nut-image.nut-image-round {
  border-radius: 50%;
  overflow: hidden;
}
.nut-image-loading {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--nutui-color-background, #f2f3f5);
  background-size: 100% 100%;
}
.nut-image-error {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--nutui-color-background, #f2f3f5);
  background-size: 100% 100%;
}

[dir=rtl] .nut-image .nut-img-loading,
.nut-rtl .nut-image .nut-img-loading {
  left: auto;
  right: 0;
}
[dir=rtl] .nut-image .nut-img-error,
.nut-rtl .nut-image .nut-img-error {
  left: auto;
  right: 0;
}

.nut-avatar-group {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
}
.nut-avatar-group-avatar,
.nut-avatar-group .nut-avatar {
  border: 1px solid #fff;
  margin-left: -8px;
}
.nut-avatar-group-avatar:not(:first-of-type),
.nut-avatar-group .nut-avatar:not(:first-of-type) {
  margin-left: -8px;
}

[dir=rtl] .nut-avatar-group .nut-avatar:not(:first-of-type),
.nut-rtl .nut-avatar-group .nut-avatar:not(:first-of-type) {
  margin-left: 0;
  margin-right: -8px;
}

.nut-avatar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--nutui-avatar-normal-width, 40px);
  height: var(--nutui-avatar-normal-height, 40px);
}
.nut-avatar-round {
  border-radius: 999px;
  overflow: hidden;
}
.nut-avatar-square {
  border-radius: var(--nutui-avatar-square, 5px);
}
.nut-avatar-first-child {
  margin-left: 0;
  margin-right: 0;
}
.nut-avatar-img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
}
.nut-avatar-icon {
  background-size: 100% 100%;
}
.nut-avatar-text {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nut-avatar-large {
  width: var(--nutui-avatar-large-width, 60px);
  height: var(--nutui-avatar-large-height, 60px);
}
.nut-avatar-large-img {
  width: var(--nutui-avatar-large-width, 60px);
  height: var(--nutui-avatar-large-height, 60px);
}
.nut-avatar-large-icon {
  width: var(--nutui-avatar-large-width, 60px);
  height: var(--nutui-avatar-large-height, 60px);
}
.nut-avatar-large-text {
  width: var(--nutui-avatar-large-width, 60px);
  height: var(--nutui-avatar-large-height, 60px);
}
.nut-avatar-small {
  width: var(--nutui-avatar-small-width, 32px);
  height: var(--nutui-avatar-small-height, 32px);
}
.nut-avatar-small-text {
  width: var(--nutui-avatar-small-width, 32px);
  height: var(--nutui-avatar-small-height, 32px);
}

.nut-skeleton {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  width: 100%;
}
.nut-skeleton-content {
  display: flex;
  flex-direction: row;
}
.nut-skeleton-content-avatar {
  margin-right: 20px;
  background: var(--nutui-skeleton-background, var(--nutui-color-background, #f2f3f5)) !important;
}
.nut-skeleton-content-block {
  width: var(--nutui-skeleton-line-width, 100%);
  height: var(--nutui-skeleton-line-height, 15px);
  background: var(--nutui-skeleton-background, var(--nutui-color-background, #f2f3f5));
  margin-top: 10px;
  border-radius: var(--nutui-skeleton-line-border-radius, 0);
}
.nut-skeleton-content-line {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.nut-skeleton-content-line .nut-skeleton-content-block:last-child {
  width: 70%;
}
.nut-skeleton-content-title {
  width: 30%;
  height: var(--nutui-skeleton-line-height, 15px);
  background: var(--nutui-skeleton-background, var(--nutui-color-background, #f2f3f5));
}
.nut-skeleton-content-block-last-child {
  width: 55%;
}
.nut-skeleton-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: nut-skeleton 2s ease-in-out 0s infinite;
}
@keyframes nut-skeleton {
  0% {
    background-position-x: -500px;
  }
  to {
    background-position-x: calc(500px + 100%);
  }
}

[dir=rtl] .nut-skeleton-content .nut-avatar,
.nut-rtl .nut-skeleton-content .nut-avatar {
  margin-right: 0;
  margin-left: 20px;
}
[dir=rtl] .nut-skeleton-animation,
.nut-rtl .nut-skeleton-animation {
  left: auto;
  right: 0;
  animation: nut-skeleton-rtl 2s ease-in-out 0s infinite;
}
@keyframes nut-skeleton-rtl {
  0% {
    background-position-x: calc(500px + 100%);
  }
  to {
    background-position-x: -500px;
  }
}