.tag {
  border: 1px solid transparent;
}
.tag.expanded {
  border: 1px solid #bbb;
  box-shadow: 0 2px 6px rgba(3,3,3,.2);
  margin-bottom: 3px;
}

.tag .header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.tag .header:hover {
  background-color: #edf8ff;
}
.tag.expanded .header {
  border-bottom: solid 1px #bbb;
  background-color: #def3ff;
}

.tag .header .expand {
  flex-basis: 2%;
}
.tag .header .name {
  flex-basis: 20%;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 15px;
}
.tag .header .validation-problem-icon {
  margin-right: 5px;
}
.tag .header .name .entity-icon {
  margin-right: 5px;
  color: #667;
}
.tag .header .description {
  flex-basis: 76%;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 25px;
}
.tag .header .actions {
  flex-basis: 2%;
  text-align: center;
}
.tag .header .actions > div .fa-ellipsis-v {
  visibility: hidden;
}
.tag:hover .header .actions > div .fa-ellipsis-v {
  visibility: visible;
}

.tag .body {
  position: relative;
  padding: 15px;
}
.tag .body .close {
  position: absolute;
  right: 10px;
  top: 5px;
}

.tag .body .tag-description form {
  width: 100%;
}
.tag .body .tag-description .form-label {
  font-weight: 600;
}