.ngTagsInput *, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.ngTagsInput {
    position: relative;
}

.ngTagsInput:active {
    outline: none;
}

.ngTagsInput .tags {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    background-color: white;
    background-color: -moz-field;
    border: 1px solid #ccc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
    margin-top: 5px;
    padding: 2px 2px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    font-size: 14px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.ngTagsInput .tags.focused {
    outline: none;
    -webkit-box-shadow: 0px 0px 3px 1px rgba(5,139,242,0.6);
    -moz-box-shadow: 0px 0px 3px 1px rgba(5,139,242,0.6);
    box-shadow: 0px 0px 3px 1px rgba(5,139,242,0.6);
}

.ngTagsInput .tags ul {
    margin: 0px;
    padding: 0px;
    overflow: visible;
    list-style-type: none;
}

.ngTagsInput .tags li {
    margin: 2px 2px;
    padding: 0px 2px 0px 0px;
    display: inline-block;
    border-radius: 2px;
    height: 21px;
    line-height: 18px;
    border: 1px solid #c2d6f1;
    box-sizing: border-box;
    float: left;
    background: #bad1f1;

}

.ngTagsInput .tags li.selected {
    background: rgb(254,187,187); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(254,187,187,1) 0%, rgba(254,144,144,1) 45%, rgba(255,92,92,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(254,187,187,1)), color-stop(45%,rgba(254,144,144,1)), color-stop(100%,rgba(255,92,92,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(254,187,187,1) 0%,rgba(254,144,144,1) 45%,rgba(255,92,92,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(254,187,187,1) 0%,rgba(254,144,144,1) 45%,rgba(255,92,92,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(254,187,187,1) 0%,rgba(254,144,144,1) 45%,rgba(255,92,92,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(254,187,187,1) 0%,rgba(254,144,144,1) 45%,rgba(255,92,92,1) 100%); /* W3C */
}

.ngTagsInput .tags span {
    font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ngTagsInput .tags button {
    margin: 0px;
    border: none;
    background: none;
    color: #585858;
    cursor: pointer;
    font: bold 16px Arial, sans-serif;
    vertical-align: top;
}

.ngTagsInput .tags button:active {
    color: #ff0000;
}

.ngTagsInput .tags input {
    border: 0px;
    outline: none;
    margin: 2px;
    padding: 0px 0px 0px 4px;
    height: 21px;
    float: left;
    font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ngTagsInput .tags input::-ms-clear {
    display: none;
}
.ngTagsInput .autocomplete {
    margin-top: 5px;
    position: absolute;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
    width: 100%;
    z-index: 999;
}

.ngTagsInput .autocomplete ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.ngTagsInput .autocomplete li {
    padding: 3px 16px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ngTagsInput .autocomplete li.selected {
    color: #fff;
    background-color: #0097cf
}

.ngTagsInput .autocomplete li em {
    font-weight: bold;
    font-style: normal;
}

.tag-template .left-panel {
  float: left;
  width: 19px;
  height: 19px;
  margin-top: 0px;
}

.tag-template .left-panel img {
  width: 100%;
  vertical-align: top;
}

.tag-template .right-panel {
  float: left;
  margin-left: 5px;
}

.autocomplete-template .left-panel {
  float: left;
}

.autocomplete-template .left-panel img {
  width: 48px;
  height: 48px;
  vertical-align: middle;
}

.autocomplete-template .right-panel {
  float: left;
  margin-left: 5px;
  margin-top: 7px;
}

.autocomplete-template .right-panel span:first-child {
  font-size: 16px;
}

.autocomplete-template .right-panel span:nth-child(2) {
  font-size: 14px;
  color: gray;
}

.autocomplete-template .right-panel span:last-child {
  display: block;
  font-size: 14px;
  font-style: italic;
}
