/* Input element */

.typeahead {
    overflow: auto;
    max-height: 9.8em;
    margin: 0.5em 0 0 0;
    border: 1px solid #bbb;
    padding: 0;
    line-height: 1.4em;
    background: #fff;
    color: #000;
    cursor: text;
}
.typeaheadFocus {
    outline: 5px auto -webkit-focus-ring-color;
    -moz-outline: 2px solid #7eadd9;
    -moz-outline-radius: 3px;
    outline-offset: -2px;
}

#page .typeahead input.typeaheadCaret {
    display: block;
    float: left;
    border: 0;
    outline: 0;
    margin: 2px 0 1px 3px;
    padding: 3px 0 4px 0;
    line-height: normal;
}
#page .typeahead input.typeaheadHidden {
    width: 0 !important;
    margin: 0;
    padding: 0;
    border: 1px solid #fff;
    border-width: 5px 0;
    color: #fff;
    background: #fff;
}

.typeahead a.typeaheadSelected {
    display: block;
    float: left;
    position: relative;
    margin: 3px 0 1px 3px;
    padding: 2px 19px 2px 3px;
    background: #ddd;
    color: #333;
    text-decoration: none;
    cursor: default;
    white-space: nowrap;
    line-height: normal;
}
.typeahead a:hover {
    background: #ccc;
}
.typeahead a.typeaheadActive {
    background: #0060e9;
    color: #fff;
}
.typeahead span.typeaheadRemove {
    position: absolute;
    right: 3px;
    top: 3px;
    display: block;
    width: 13px;
    height: 13px;
    background: url(../../../../../flatness/buttons/delete.2.png) no-repeat left top;
    cursor: pointer;
    font-size: 0;
    text-indent: -1000em;
}
.typeahead span.typeaheadRemove:hover {
    cursor: pointer;
}

/* Results */

#page ul.typeaheadResults {
    position: absolute;
    margin: 0;
    padding: 0;
    border-top: 0;
    list-style: none;
}
#page ul.fixedTypeahead {
    position: fixed;
}
#page ul.typeaheadResults ul,
#page ul.typeaheadResults li {
    display: block;
    margin: 0;
    padding: 0;
}
#page ul.typeaheadResults ul {
    overflow: auto;
    max-height: 300px;
    padding: 4px 0 0 0;
    border: 1px solid #ddd;
    border-top: 0;
    background: #fff;
    color: #000;

}
ul.typeaheadResults li.paginatedResults p {
    font-size: 20px;
    text-align: right;
}
ul.typeaheadResults li.paginatedResults p span {
    margin-left: 0.5em;
}
#page ul.typeaheadResults li.paginatedResults li {
    margin: 0 4px 4px 4px;
}
ul.typeaheadResults li.paginatedResults ul a {
    display: block;
    padding: 3px;
    text-decoration: none;
    color: #000;
}
ul.typeaheadResults li.paginatedResults ul a:hover {
    background: #5297FF;
    color: #fff;
}
ul.typeaheadResults ul li.highlight a {
    background: #0060e9;
    color: #fff;
}

ul.typeaheadResults li.paginatedResults span {
    text-decoration: underline;
    font-weight: bold;
}

p.typeaheadSuggestions {
    margin: 13px 0 0 0;
    color: #696969;
    font-size: 11px;
}
p.typeaheadSuggestions span {
    color: #1b1b1b;
}
p.typeaheadSuggestions a {
    margin: 0 3px;
}

div.typeaheadHint {
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-top: 0;
    background: #f5f5f5;
    color: #999;
    list-style-type: none;
    font-size: 11px;
}