﻿/* CUSTOM DROPDOWNLIST */
select.CustomDropDownList
{
    display: none;
}

.CustomDropDownListOuterWrapper
{
    float: left;
    width: 300px;
    padding: 5px;
    color: #2e2e34;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9rem;
    line-height: 25px;
    background: #fff;
    box-sizing: border-box;
    border: 1px solid #c6c6c6;
    position: relative;
    border-radius: 3px;
    margin-right: 0px;
}

    .CustomDropDownListOuterWrapper.Large
    {
        width: 500px;
    }

.CustomDropDownListInnerWrapper
{
}

    .CustomDropDownListInnerWrapper .Selected
    {
        float: left;
        width: 100%;
        cursor: pointer;
    }

        .CustomDropDownListInnerWrapper .Selected.SingelValue
        {
            cursor: default
        }

        .CustomDropDownListInnerWrapper .Selected:before
        {
            position: absolute;
            width: 30px;
            top: 0;
            bottom: 0;
            right: 0px;
            text-align: center;
            color: #232323;
            padding-top: 8px;
            content: '\f107';
            font-size: 20px;
            font-family: 'FontAwesome5';
            padding-left: 0px;
            background-color: #fff;
            border-bottom-right-radius: 3px;
            border-top-right-radius: 7px;
        }

        .CustomDropDownListInnerWrapper .Selected.SingelValue:before
        {
            content: '';
            width:0;
        }

        .CustomDropDownListInnerWrapper .Selected span
        {
            float: left;
            padding-top: 3px;
            margin-left: 5px;
            white-space: nowrap;
            width: calc(100% - 30px);
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 0px;
            box-sizing: border-box;
        }
        .CustomDropDownListInnerWrapper .Selected.SingelValue span
        {            
            width: calc(100%);
        }

    .CustomDropDownListInnerWrapper .Items
    {
        position: absolute;
        z-index: 990;
        background: #fff;
        min-width: 100%;
        left: 0px;
        top: 45px;
        box-sizing: border-box;
        padding: 0px;
        border: 1px solid #ccc;
        display: none;
        border-radius: 3px;
    }

        .CustomDropDownListInnerWrapper .Items .DropDownSearchField
        {
            width: 100%;
            box-sizing: border-box;
            padding: 8px 10px;
            border: 0;
            border-bottom: 1px solid #ccc;
            outline: none;
            font: inherit;
            color: inherit;
        }

        .CustomDropDownListInnerWrapper .Items .ItemsContent
        {
            max-height: 300px;
            overflow: auto;
            /* Tvinger rendering: overflow:auto viser tom liste uten en border (hasLayout-quirk). Gjennomsiktig, så den ikke synes. */
            border: 1px solid transparent;
        }

        .CustomDropDownListInnerWrapper .Items.Active
        {
            display: block;
        }

        .CustomDropDownListInnerWrapper .Items .Item
        {
            float: left;
            width: 100%;
            text-align: left;
            padding: 10px;
            box-sizing: border-box;
            padding-top: 10px;
            padding-bottom: 6px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
            padding-right: 20px;
        }

            .CustomDropDownListInnerWrapper .Items .Item.Selected
            {
                color: #e03c31;
                background: #eee;
            }

                .CustomDropDownListInnerWrapper .Items .Item.Selected:before
                {
                    display: none;
                }

            .CustomDropDownListInnerWrapper .Items .Item:hover
            {
                background: #eee;
            }

        .CustomDropDownListInnerWrapper .Items:after
        {
            content: '';
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid #fff;
            position: absolute;
            top: -8px;
            right: 6px;
        }

        .CustomDropDownListInnerWrapper .Items:before
        {
            content: '';
            width: 0;
            height: 0;
            border-left: 9px solid transparent;
            border-right: 9px solid transparent;
            border-bottom: 9px solid #bbb;
            position: absolute;
            top: -9px;
            right: 5px;
        }
