﻿/*!
 * Mvc.Lookup 1.1.0
 * https://github.com/NonFactors/MVC6.Lookup
 *
 * Copyright © NonFactors
 *
 * Licensed under the terms of the MIT License
 * http://www.opensource.org/licenses/mit-license.php
 */

.mvc-lookup-group {
    display: table;
}

.mvc-lookup-browse,
.mvc-lookup-group .mvc-lookup-input {
    display: table-cell;
}

.mvc-lookup-input {
    box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px inset;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    border: 1px solid #CCCCCC;
    box-sizing: border-box;
    padding: 6px 12px;
    display: block;
    height: 34px;
    width: 100%;
}

.mvc-lookup-browse {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    border: 1px solid #CCCCCC;
    background-color: #EEEEEE;
    vertical-align: middle;
    padding: 0 12px;
    cursor: pointer;
    border-left: 0;
    line-height: 1;
    width: 1%;
}

    .mvc-lookup-browse::before {
        content: '\1F50D';
    }

.mvc-lookup-dialog .ui-dialog-title {
    line-height: 1.4em;
    min-height: 1.4em;
}

.mvc-lookup,
.mvc-lookup-dialog,
.mvc-lookup-dialog:after,
.mvc-lookup-dialog:before {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.mvc-lookup {
    font-size: 0.9em;
    min-width: 427px;
    display: none;
}

.mvc-lookup-search-group {
    height: calc(2em + 12px);
    position: relative;
}

.mvc-lookup-search-box {
    position: absolute;
    display: table;
}

.mvc-lookup-search {
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    border: 1px solid #CCCCCC;
    box-sizing: border-box;
    display: table-cell;
    padding: 6px 12px;
    width: 100%;
}

.mvc-lookup-rows {
    vertical-align: middle;
    display: table-cell;
    width: 1%;
}

    .mvc-lookup-rows .ui-spinner {
        border-radius: 0 5px 5px 0;
        border-right: medium none;
        box-sizing: content-box;
        border-left: 0 none;
        height: 100%;
    }

    .mvc-lookup-rows input {
        background-color: #EEEEEE;
        padding: 6px 1.6em 6px 0;
        box-sizing: border-box;
        text-align: center;
        height: 100%;
        width: 5em;
        margin: 0;
    }

    .mvc-lookup-rows a.ui-spinner-button {
        border: 1px solid #CCCCCC;
        border-bottom: none;
        border-top: none;
        width: 1.6em;
    }

    .mvc-lookup-rows a.ui-spinner-down {
        border-top: 1px solid #CCCCCC;
    }

    .mvc-lookup-rows .ui-icon {
        margin-left: -8px;
        cursor: pointer;
        left: 50%;
    }

.mvc-lookup-loading {
    background: url('data:image/gif;base64,R0lGODlhEAAQAPMPAJycnBQUFODg4L6+vnp6egAAAFhYWDY2NoqKivDw8CQkJGhoaEZGRqysrAQEBP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAPACwAAAAAEAAQAAAEcfDJl+gydeonlEhFIVCbJBRK4ojJqAkjUiArnEkJM4OOYXymjEDnGLhwQFyicTjiNAiGD1CiJK5RBoNaul6tA8ItqEkgAgxnyzghKABmBEzQoLA5I8Fh0AAI5E8TCQYEDwBUAnAlAgQjhxIDYyUDA1URACH5BAUKAA8ALAAAAAAPABAAAARd8Mn5yJKJTiaVFEGjSUeiOIJSDKMEKAFQcJMRJ8FhFUWWSYbCQTAZEFu01qOxIBBYygfAsFhAox/A6DdpMAxbwQ/BaCQADYH6KNYsBAPzVUPQxiVzDCBzfxyVaiMRACH5BAUKAA8ALAAAAAAQAA8AAARa8Mn5AKJYLslUSkcmOUbSJYaYVEXTNZMwSMTRgAyCHIWAFD1NIBUDAAuzyWCxUhYukoEOIMh8rg2CVsR9wLqUBaLZBRAGiQH6qpIgBPCEgIwBzOAPOfeLz1MiACH5BAUKAA8ALAAAAAAQABAAAARc8MkpAb2SpGeYNAP2HATnLdgmBUMXookgIYvMEADgJVagEqSH6jFQiB4liqyW2AAaDdEiEHCAcgDZZVHoHiihi2AsUAkQluNkkH2M1UJJYtAcHgeyJtwtt8P1GBEAIfkEBQoACAAsAAAAABAADgAABEUQyYkIoVgaWQrP3NYhASgRXgeQmBEMSHFYXhVPRrFh9UrtmMNEgAD4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MjwZhfXG/pY8vKR7DRAAAOw==') no-repeat center;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    position: absolute;
    text-align: center;
    min-height: 50px;
    min-width: 50px;
    display: none;
    left: 44%;
    top: 44%;
}

.mvc-lookup-error {
    background-color: #F2DEDE;
    border: 1px solid #EBCCD1;
    text-align: center;
    color: #A94442;
    margin: 30px 0;
    display: none;
    padding: 15px;
}

.mvc-lookup table {
    border-collapse: collapse;
    border: 1px solid #DDDDDD;
    margin-bottom: 0.8em;
    width: 100%;
}

.mvc-lookup tbody tr:nth-of-type(2n+1) {
    background-color: #F9F9F9;
}

.mvc-lookup tbody tr:hover {
    background-color: #F5F5F5;
}

.mvc-lookup tr {
    cursor: pointer;
}

.mvc-lookup-asc::after {
    padding-left: 3px;
    content: '\2193';
}

.mvc-lookup-desc::after {
    padding-left: 3px;
    content: '\2191';
}

.mvc-lookup thead > tr > th,
.mvc-lookup tbody > tr > td {
    border: 1px solid #DDDDDD;
    line-height: 1.42857143;
    padding: 0.3em 0.6em;
}

.mvc-lookup td:not(:first-child):last-child {
    text-align: center;
    font-weight: bold;
    width: 1em;
}

    .mvc-lookup td:not(:first-child):last-child::after {
        content: '\25CF';
    }

.mvc-lookup tr:hover td:not(:first-child):last-child::after {
    content: '\2714';
    color: #5CB85C;
}

.mvc-lookup ul {
    text-align: right;
    margin: 0;
}

    .mvc-lookup ul li {
        display: inline;
        cursor: pointer;
    }

        .mvc-lookup ul li + li span {
            border-left: 0;
        }

    .mvc-lookup ul span {
        border: 1px solid #DDDDDD;
        box-sizing: content-box;
        display: inline-block;
        padding: 0.4em 0.6em;
        text-align: center;
        min-width: 0.9em;
        color: #777777;
    }

        .mvc-lookup ul span:focus,
        .mvc-lookup ul span:hover {
            background-color: #EEEEEE;
            color: #777777;
        }

.mvc-lookup .active span,
.mvc-lookup .active span:hover {
    background-color: rgba(77, 78, 80, 0.76);
    border-color: rgba(77, 78, 80, 0.76);
    color: #FFFFFF;
}
