
/*------------------------------------*\
    LAYOUT
\*------------------------------------*/

.typeahead-container {
    position: relative;
    z-index: 998;
    /*background-color: #fff;*/
    font-family: Arial;
    font-size: 16px;
    /*padding: 16px;*/
    width: 100%;
    max-width: 500px;
    /*line-height: 16px;*/
}

.typeahead-container.result,
.typeahead-container.filter {
    z-index: 999;
}

.typeahead-field {
    width: 100%;
    font-size: 16px;
    display: table-row;
    text-align: left;
    border-spacing: 0;
    border-collapse: separate;

}

.typeahead-field > span {
    display: table-cell;
    vertical-align: middle;
}

.typeahead-field .typeahead-query {
    width: 96%;
}

.typeahead-field .typeahead-filter {
    width: 2%;
    min-width: 60px;
}

.typeahead-field .typeahead-button {
    width: 2%;
    min-width: 50px;
}

.typeahead-result {
    position: absolute;
    top: 36px;
    left: 0;
    background-color: #fff;
    width: 92%;
    padding: 1px;
    -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}

.typeahead-result > ul {
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

.typeahead-result > ul > li:first-child {
    border-top: none;
}

.typeahead-result > ul > li {
    border-top: solid 1px rgba(0, 0, 0, 0.15);
}

.typeahead-result > ul > li > a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    text-decoration: none;
    color: #333;
    clear: both;
    background-color: #fff;
    position: relative;
}

.typeahead-result > ul > li.active > a {
    background-color: #ebebeb;
}

.typeahead-result > ul > li.typeahead-group a {
    background-color: #5bc0de;
/*    background: -webkit-linear-gradient(top, #37a3eb 0, #2181cf 100%);
    background: linear-gradient(to bottom, #37a3eb 0, #2181cf 100%);
*/
    font: bold 14px Arial;
    color: #fff;
/*    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,0.75);
    -moz-text-shadow: 0 1px 0 rgba(0,0,0,0.75);
    -webkit-text-shadow: 0 1px 0 rgba(0,0,0,0.75);
*/	
}

.typeahead-result > ul > li > a small {
    padding-left: 16px;
    color: #b6b6b6;
}


/*------------------------------------*\
    INPUT, BUTTON & DROPDOWN
\*------------------------------------*/

.typeahead-container * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.typeahead-container input[type="search"],
.typeahead-container input.typeahead-hint,
.typeahead-container .typeahead-filter button {
    outline: 0 none;
    display: inline;
    width: 100%;
    margin: 0;
    padding: 6px 12px 0;
    vertical-align: middle;
}

.typeahead-container input[type="search"] {
    border-right-width: 0;
}

.typeahead-container .typeahead-filter button {
    white-space: nowrap;
    background-color: #fff;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-right-width: 0;
    border-left-width: 0;
    padding-left: 0;
    padding-right: 18px;
    line-height: normal;
}

.typeahead-container .typeahead-filter button:before {
    content: "";
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    padding-left: 10px;
}

.typeahead-container .typeahead-filter {
    position: relative;
}

.typeahead-container .typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 140px;
    padding: 0.5em 0;
    margin: 2px 0 0;
    font-size: 16px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.15);
}

.typeahead-container .typeahead-filter {
}

.typeahead-container .typeahead-dropdown a {
    display: block;
    padding: 7px 16px;
    white-space: nowrap;
    text-decoration: none;
    color: #333;
}

.typeahead-container .typeahead-dropdown a:hover,
.typeahead-container .typeahead-dropdown a:focus {
    color: #262626;
    background-color: #f5f5f5;
}

.typeahead-container .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.typeahead-container .typeahead-dropdown .divider {
    height: 1px;
    overflow: hidden;
    background-color: #e5e5e5;
}

.typeahead-container button[type="submit"] {
    padding: 12px 16px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    min-width: 60px;
    outline: none;
    border: none;
    background-color: #FAFAFA;
    text-align: center;
    text-decoration: none;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.05)));
    background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05));
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05));
    border-radius: 0 4px 4px 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, background 0.25s ease, -webkit-box-shadow 0.25s ease;
    transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;

    -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}

.typeahead-container button[type="submit"]:hover {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.08)));
    background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
    color: rgba(0, 0, 0, 0.7);
}

.typeahead-container .search-icon {
    width: 16px;
    height: 16px;
    display: block;
    margin: 0 auto;
    background:url(icon-search-16px.png) no-repeat scroll left top transparent;
}


