div.fancy-select {
    position: relative;
    line-height: normal;
    display: inline-block;
    *display: inline;
    vertical-align: middle;
    background: #fff;
    /*z-index:1;*/
    *zoom:1;}

div.fancy-select * {
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    font-family: Tahoma, Sans-serif;
}

div.fancy-select.disabled {
    opacity: 0.5;
}

div.fancy-select select:focus + div.trigger {
    box-shadow: 0 0 0 0px #999;
}

div.fancy-select select:focus + div.trigger.open {
    box-shadow: none;
}

div.fancy-select div.trigger {
    position: relative;
    width: 132px;
    left: 0;
    top: 0;
    border: 1px solid #bababa;
    color: #666;
    min-width: 100px;
    height: 24px;
    line-height: 24px;
    text-align: left;
    /* ellipsis */
    overflow: visible;
    /* hidden */
    background: transparent;
    text-indent: 8px;
    cursor: pointer;
    padding: 0px 14px 0px 14px;
    display: inline-block;
    vertical-align: middle;
    z-index: 1;
}

div.fancy-select div.trigger.outLine {
    border: solid #999;
    border-width: 1px;
}

div.fancy-select div.trigger:after {
    display: block;
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #bababa;
    top: 9px;
    right: 6px;
}

div.fancy-select div.trigger.open {
    background: #fff;
    border: 1px solid #999;
    box-shadow: none;
    z-index: 0;
}

div.fancy-select div.trigger.open:after {
    border-top-color: #bababa #bababa #bababa #eaeaea;
}

div.fancy-select ul.options {
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    /*visibility:hidden;*/
    opacity: 0;
    max-height: 200px;
    overflow: auto;
    background: #fff;
    border: solid;
    border-width: 1px 0 1px;
    border-color: #bababa #fff #bababa #fff;
    width: 160px;
    z-index: 50;
}

div.fancy-select ul.options.open {
    display: block;
    /*visibility:visible;*/
    position: absolute;
    top: 0;
    opacity: 1;
    border: solid;
    border-width: 1px;
    border-color: #bababa;
    z-index: 10;
}

div.fancy-select ul.options.overflowing {
    top: auto;
    /*bottom: 40px;*/
}

div.fancy-select ul.options.overflowing.open {
    top: auto;
    /*bottom: 50px;*/
}

div.fancy-select ul.options li {
    padding: 3px 12px;
    color: #767676;
    cursor: pointer;
    white-space: nowrap;
}

div.fancy-select ul.options li.selected {
    font-weight: bold;
}

div.fancy-select ul.options li.hover {
    color: #fff;
    background: #999;
}
