@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-tag {
  --yh-tag-bg-color: var(--yh-color-primary-light-9);
  --yh-tag-border-color: var(--yh-color-primary-light-8);
  --yh-tag-text-color: var(--yh-color-primary);
  --yh-tag-hover-color: var(--yh-color-primary);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  font-size: var(--yh-font-size-xs);
  line-height: 1;
  color: var(--yh-tag-text-color);
  background-color: var(--yh-tag-bg-color);
  border: 1px solid var(--yh-tag-border-color);
  border-radius: var(--yh-radius-sm);
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.2s ease;
  /* 尺寸修饰符 */
}
.yh-tag--large {
  height: 32px;
  padding: 0 12px;
  font-size: var(--yh-font-size-base);
}

.yh-tag--small {
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
}

.yh-tag {
  /* 类型修饰符 */
}
.yh-tag--success {
  --yh-tag-bg-color: var(--yh-color-success-light-9);
  --yh-tag-border-color: var(--yh-color-success-light-8);
  --yh-tag-text-color: var(--yh-color-success);
}

.yh-tag--warning {
  --yh-tag-bg-color: var(--yh-color-warning-light-9);
  --yh-tag-border-color: var(--yh-color-warning-light-8);
  --yh-tag-text-color: var(--yh-color-warning);
}

.yh-tag--danger {
  --yh-tag-bg-color: var(--yh-color-danger-light-9);
  --yh-tag-border-color: var(--yh-color-danger-light-8);
  --yh-tag-text-color: var(--yh-color-danger);
}

.yh-tag--info {
  --yh-tag-bg-color: var(--yh-color-info-light-9);
  --yh-tag-border-color: var(--yh-color-info-light-8);
  --yh-tag-text-color: var(--yh-color-info);
}

.yh-tag {
  /* 主题效果 */
}
.yh-tag--dark {
  --yh-tag-bg-color: var(--yh-color-primary);
  --yh-tag-border-color: var(--yh-color-primary);
  --yh-tag-text-color: #ffffff;
}

.yh-tag--plain {
  --yh-tag-bg-color: transparent;
}

.yh-tag {
  /* 可选中标签 */
}
.yh-tag.is-checkable {
  cursor: pointer;
  user-select: none;
}
.yh-tag.is-checkable:hover {
  opacity: 0.85;
}
.yh-tag.is-checkable:active {
  opacity: 0.7;
}

.yh-tag {
  /* 选中状态 */
}
.yh-tag.is-checked {
  background-color: var(--yh-tag-text-color);
  border-color: var(--yh-tag-text-color);
  color: #ffffff;
}
.yh-tag.is-checked:hover {
  opacity: 0.9;
}

.yh-tag {
  /* 圆角标签 */
}
.yh-tag.is-round {
  border-radius: var(--yh-radius-round);
}

.yh-tag {
  /* 可关闭标签 */
}
.yh-tag.is-closable {
  padding-right: 6px;
}

.yh-tag__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  width: 14px;
  height: 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.yh-tag__close svg {
  width: 10px;
  height: 10px;
}
.yh-tag__close:hover {
  color: #ffffff;
  background-color: var(--yh-tag-text-color);
}

.yh-tag__content {
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.yh-tag__icon {
  margin-right: 4px;
  display: inline-flex;
}

.yh-tag__suffix-icon {
  margin-left: 4px;
  display: inline-flex;
}