div.tagsinput {
  border: 1px solid #ccc;
  background: #fff;
  padding: 5px;
  padding-left: 10px;
  width: 178px;
  height: 30px;
  /* overflow-y: auto; */
  overflow:hidden;
  border-radius: 4px;
}
div.tagsinput span.tag {
    width: 70px;
  /* border: 1px solid #a5d24a; */
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  display: block;
  float: left;
  padding: 2px;
  text-decoration: none;
  background: #3B6FFF;
  color: #fff;
  margin-right: 2px;
  margin-bottom: 2px;
  font-family: helvetica;
  font-size: 13px;
  display: flex;
}
div.tagsinput span.tag span{
    display: block;
    width: 60px;
    white-space: nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
}
div.tagsinput span.tag a {
    width: 10px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
}
div.tagsinput input {
  width: 0px;
  margin: 0px;
  font-family: helvetica;
  font-size: 13px;
  border: 1px solid transparent;
  padding: 5px;
  background: transparent;
  color: transparent !important;
  outline: 0px;
  margin-right: 5px;
  margin-bottom: 5px;
}
div.tagsinput div {
  display: block;
  float: left;
}
.tags_clear {
  clear: both;
  width: 100%;
  height: 0px;
}
.not_valid {
  background: #fbd8db !important;
  color: #90111a !important;
}

/* 水印 tags 容器：单行 40px，与表单其他 .tagsinput 一致 */
#upload_waterInput_tagsinput {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 36px 0 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#upload_waterInput_tagsinput::-webkit-scrollbar {
  display: none;
  height: 0;
}
#upload_waterInput_tagsinput > span.tag {
  float: none !important;
  flex: 0 1 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: auto !important;
}
#upload_waterInput_tagsinput .tag {
  display: inline-flex !important;
  align-items: center !important;
  min-width: auto !important;
  margin: 0 !important;
}
#upload_waterInput_tagsinput .tag > span:first-child {
  width: auto !important;
  max-width: 100% !important;
  min-width: 3em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  flex: 0 1 auto !important;
}
#upload_waterInput_tagsinput > span.tag:not(:only-of-type) > span:first-child {
  min-width: 0 !important;
  max-width: 4em !important;
}
#upload_waterInput_tagsinput .tag > a {
  flex-shrink: 0 !important;
  width: auto !important;
}
#upload_waterInput_tagsinput .tags_clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
#upload_waterInput_addTag {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

/* 水印：必须覆盖上行 div.tagsinput input 的 transparent，否则「无」等占位不可见 */
#upload_waterInput_tagsinput input#upload_waterInput_tag {
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
  width: auto !important;
  min-width: 56px !important;
  max-width: 100px !important;
  flex: 0 0 auto !important;
  pointer-events: none !important;
  caret-color: transparent !important;
  user-select: none !important;
  cursor: default !important;
}
#upload_waterInput_tagsinput input#upload_waterInput_tag:focus {
  color: rgba(0, 0, 0, 0.88) !important;
  -webkit-text-fill-color: rgba(0, 0, 0, 0.88) !important;
}
