/*
 * Copyright (C) Pootle contributors.
 *
 * This file is a part of the Pootle project. It is distributed under the GPL3
 * or later license. See the LICENSE file for a copy of the license and the
 * AUTHORS file for copyright and authorship information.
 */

.select2-default
{
    color: #999 !important;
}

.select2-results__options
{
    padding: 4px;
}


.select2-container--default .select2-results__option[aria-selected="true"]
{
    background: transparent;
}

/* HEADER S2-POOTLES - ie nav/lang/project/resources */

#header-meta .s2-pootle .select2-container--default .select2-selection__rendered,
#header-meta .s2-pootle .select2-container--default .selection,
{
    line-height: 44px;
}

#header-meta .s2-pootle .select2-container--default .select2-selection--single .select2-selection__arrow
{
    height: 44px;
}

#header-meta .s2-pootle .select2-container--default .select2-selection--single .select2-selection__clear
{
    font-weight: normal;
}

#header-meta .s2-pootle .select2-container .select2-selection--single .select2-selection__rendered
{
    padding-left: 0;
    padding-right: 23px;
    line-height: 44px;
}


html[dir="rtl"] #header-meta .s2-pootle .select2-container .select2-selection--single .select2-selection__rendered
{
    padding-left: 23px;
    padding-right: 0;
    line-height: 44px;
}


#header-meta .s2-pootle .select2-container--default .select2-selection--single .select2-selection__clear
{
    margin-left: 13px;
    color: #999;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[dir="rtl"] #header-meta .s2-pootle .select2-container--default .select2-selection--single .select2-selection__clear
{
    margin-right: 13px;
    margin-left: 0;
}

#header-meta .s2-pootle .select2-container--default .select2-selection--single .select2-selection__clear:hover
{
    color: #444;
}

#header-meta .s2-pootle .select2-container .select2-choice abbr,
#header-meta .s2-pootle .select2-container .select2-selection__clear
{
    display: inline-block;
}

#header-meta .s2-pootle .select2-container .select2-choice,
#header-meta .s2-pootle .select2-container--default .select2-selection--single
{
    height: auto;
    padding: 0 0 0 4px;
}

html[dir="rtl"] #header-meta .s2-pootle .select2-container .select2-choice,
html[dir="rtl"] #header-meta .s2-pootle .select2-container--default .select2-selection--single
{
    height: auto;
    padding: 0 4px 0 0;
}


#select2-js-select-navigation-results .select2-results__option .admin
{
    color: #c30;
    display: block;
}

#select2-js-select-navigation-results .select2-results__option .result
{
    display: block;
}

#select2-js-select-navigation-results .select2-results__option--highlighted .admin
{
    background-color: #c30;
    color: #fff;
}

#select2-js-select-navigation-results .select2-results__option
{
    padding: 0;
}

#select2-js-select-navigation-results .select2-results__option .result
{
    padding: 6px;
}


/* ALL S2-POOTLES */

.s2-pootle
{
    margin-top: -2px;
}

.s2-pootle .select2-container
{
    top: 0;
    left: 1px;
}

.s2-pootle .select2-container--open
{
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    background-color: #fcfcfc;
    background-image: linear-gradient(to bottom, #fcfcfc 0%, #eee 50%);
    left: 0;
    top: -1px;
    margin-right: -2px;
    margin-bottom: -2px;
}

.s2-pootle .select2-container .select2-choice,
.s2-pootle .select2-container--default .select2-selection--single
{
    border: 1px solid transparent;
    background-color: transparent;
    background-image: none;
    filter: none;
}


.select2-results .select2-results__option[aria-disabled="true"]
{
    background: #f4f4f4;
    display: list-item;
    cursor: default;
    margin: 0.5em;
}

.select2-results .project-disabled
{
    font-style: italic;
    opacity: 0.5;
}

.select2-results .folder
{
    font-weight: bold;
}

.select2-results .text
{
    margin-left: 0.3em;
}

html[dir="rtl"] .select2-results .text
{
    margin-left: 0;
    margin-right: 0.3em;
}

.select2-result-label
{
    white-space: nowrap;
}

.select2-results .file
{
    margin-left: 1.5em;
}

html[dir="rtl"] .select2-results .file
{
    margin-left: 0;
    margin-right: 1.5em;
}

html[dir="ltr"] .select2-resource-root .file
{
    margin-left: auto;
}

html[dir="rtl"] .select2-resource-root .file
{
    margin-right: auto;
}

.select2-match
{
    color: #000;
    background-color: rgba(255, 255, 0, 0.5);
}

.select2-nplurals
{
    width: 8em;
    min-width: 8em;
    max-width: 12em;
}

.select2-checkstyle
{
    width: 14em;
    min-width: 14em;
    max-width: 20em;
}

.select2-localfiletype
{
    width: 16em;
    min-width: 16em;
    max-width: 20em;
}

.select2-language
{
    width: 21em;
    min-width: 21em;
    max-width: 30em;
}

.select2-username
{
    width: 20em;
    min-width: 20em;
    max-width: 20em;
}


.select2-search input
{
    width: 100%;
    height: auto !important;
    min-height: 26px;
    padding: 4px 20px 4px 5px;
    margin: 0;
    outline: 0;
    font-family: sans-serif;
    font-size: 1em;
    border: 1px solid #aaa;
    border-radius: 0;
    box-shadow: none;
    background: url('../images/select2.png') no-repeat 100% -22px, linear-gradient(to top, #fff 85%, #eee 99%);
}

html[dir="rtl"] .select2-search input
{
    background: url('../images/select2.png') no-repeat -40px -22px, linear-gradient(to top, #fff 85%, #eee 99%);
}

.select2-container--default .select2-results__option[aria-selected="true"]
{
    color: #999;
}

.s2-pootle .select2-container a
{
    outline: none;
}

.s2-pootle li
{
    outline: none;
}

.s2-pootle .select2-container--focus .select2-selection
{
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    background-color: #fcfcfc;
    background-image: linear-gradient(to bottom, #fcfcfc 0%, #eee 50%);
    outline: none;
}


#select2-js-select-navigation-container
{
    color: #0489b7;
}

.select2-dropdown
{
    background: #fff none repeat scroll 0 0;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
    border: none;
    color: #000;
    margin-top: -1px;
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 9999;
}

form.formtable .select2-container
{
    min-width: 13em;
}

#select2-js-filter-checks-results .select2-results__group
{
    visibility: hidden;
    display: none;
}


#select2-js-filter-checks-results .select2-results__option[id$="-category"]
{
    margin-left: -0.7em;
    font-weight: 600;
}
