// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License for the
// specific language governing permissions and limitations
// under the License.

.tagger {
  position: relative;
  top: 0;
  left: -4px;
  width: 94%;
  margin: auto;
  /*+placement:shift -4px 0px;*/
  padding-bottom: 12px;
  border: 1px solid #cfc9c9;
  background: #f2f0f0;
}

.tagger .field {
  position: relative;
  float: left;
  width: 35%;
}

.tagger .tag-info {
  margin-top: 12px;
  margin-left: 8px;
  font-size: 11px;
  color: #757575;
}

.tagger .tag-info.title {
  margin-bottom: 5px;
  font-size: 11px;
  color: #6f9bf0;
}

.tagger form {
  margin: 12px 9px 0;
}

.tagger.readonly form {
  display: none;
}

.tagger form label {
  display: block;
  position: relative;
  float: left;
  top: 8px;
  left: 5px;
  width: 25px;
  margin-right: 9px;
  /*+placement:shift 5px 8px;*/
  font-size: 10px;
  color: #394552;
  text-align: right;
}

.tagger form label.error {
  position: absolute;
  top: 28px !important;
  left: 44px;
  color: #ff0000;
  /*[empty]background-color:;*/
}

.tagger form input {
  padding: 4px;
  border: 1px solid #808080;
  border-radius: 4px;
  /*+border-radius:4px;*/
  background: #ffffff;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -khtml-border-radius: 4px;
}

.tagger form input {
  width: 45%;
  margin-left: 9px;
}

.tagger form input[type='submit'] {
  width: auto;
  margin-left: 16px;
  padding: 7px 25px 7px 26px;
  /*+text-shadow:0px -1px 2px #000000;*/
  border: 0;
  border-radius: 4px;
  background: url('../images/bg-gradients.png') repeat-x 0 -220px;
  color: #ffffff;
  text-shadow: 0 -1px 2px #000000;
  /*+border-radius:4px;*/
  cursor: pointer;
  -moz-text-shadow: 0 -1px 2px #000000;
  -webkit-text-shadow: 0 -1px 2px #000000;
  -o-text-shadow: 0 -1px 2px #000000;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -khtml-border-radius: 4px;
}

.tagger form input[type='submit']:hover {
  background-position: 0 -946px;
}

.tagger ul {
  display: block;
  width: 96%;
  margin: 16px auto auto;
  /*+border-radius:2px;*/
  padding-bottom: 10px;
  border: 1px solid #d2d2d2;
  border-radius: 2px;
  box-shadow: inset 0 0 10px #dcdcdc;
  background: #ffffff;
  overflow: auto;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  /*+box-shadow:inset 0px 0px 10px #DCDCDC;*/
  -khtml-border-radius: 2px;
  -moz-box-shadow: inset 0 0 10px #dcdcdc;
  -webkit-box-shadow: inset 0 0 10px #dcdcdc;
  -o-box-shadow: inset 0 0 10px #dcdcdc;
}

.tagger ul li {
  display: inline-block;
  position: relative;
  float: left;
  top: 2px;
  left: 0;
  height: 15px;
  margin-top: 5px;
  margin-right: 2px;
  /*+border-radius:4px;*/
  margin-left: 7px;
  padding: 0 18px 0 7px;
  border-radius: 4px;
  background: #dfdfdf 0 4px;
  /*+placement:shift 0px 2px;*/
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -khtml-border-radius: 4px;
}

.tagger ul li span {
  color: #000000;
}

.tagger ul li span.label span.value {
  max-width: 100px;
  overflow: hidden;
}

.tagger ul li span.label {
  position: relative;
  top: -2px;
  left: 15px;
  font-size: 10px;
}

.tagger.readonly ul li span.label {
  left: 6px;
}

.tagger ul li span.label > span {
  display: block;
  float: left;
  margin-top: 2px;
}

.tagger ul li span.label > span.key {
  max-width: 134px;
  margin-right: 5px;
  margin-left: 15px;
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tagger ul li span.label > span.value {
  max-width: 160px;
  margin-left: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tagger ul li span.remove {
  display: block;
  position: absolute !important;
  top: 0 !important;
  left: -3px !important;
  width: 15px !important;
  height: 11px !important;
  padding: 4px 0 0 8px;
  background: #dfdfdf;
  font-size: 8px;
  font-weight: bold;
  color: #5b5b5b;
  text-indent: 4px;
  cursor: pointer;
  overflow: hidden !important;
}

.tagger.readonly ul li span.remove {
  display: none;
}

.tagger ul li span.remove:hover {
  color: #000000;
}

/** Dialog tagger*/
.ui-dialog .tagger {
  width: 375px;
}

.ui-dialog .tagger .tag-info {
  display: none;
}

.ui-dialog.editTags .ui-button {
  float: right;
}

.ui-dialog.editTags .ui-dialog-buttonpane {
  float: right;
}

.ui-dialog .tagger .field {
  width: 119px !important;
}

.ui-dialog .tagger input.key,
.ui-dialog .tagger input.value {
  width: 66px !important;
  height: 15px;
  font-size: 11px !important;
}

.ui-dialog .tagger input[type='submit'] {
  padding: 6px 15px;
}
