﻿
/*   --------------------  auto lookup control    ----------------------     */

.SingleLookup {
    display: block;
    width: 100%;
    max-width: 500px;
    vertical-align: bottom;
    white-space: nowrap;
}

.SingleLookupText {
    position: relative;
    width: 85%;
    vertical-align: middle;
    background-color: #FFFFFF;
    border: 1px solid #7B9EBD;
    height: 20px;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.SingleLookupButtom-visually-hidden {
    display: none !important;
}

.SingleLookupButtom {
    border-top: 1px solid #d2ddec;
    border-bottom: 1px solid #d2ddec;
    border-right: 1px solid #d2ddec;
    line-height: 1.6;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    border-top-right-radius: 0.325rem;
    border-bottom-right-radius: 0.325rem;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    background-color:white;
}

    .SingleLookupButtom:hover {
        color: white;
        background-color: #d9705d;
    }

    .SingleLookupButtom[disabled],
    .SingleLookupButtom[disabled]:hover,
    .SingleLookupButtom[readonly],
    .SingleLookupButtom[readonly]:hover {
        background-color: #eee;
        color: #848484;
    }

    .autolookup-searchtext-col input[type=text] {
        width: 100%;
        height: 20px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.single-lookup .autolookup-searchtext-col input {
    width: 100% !important;
}

.autolookup {
    display: table;
    background-color: transparent;
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
}

.autolookup-row {
    display: table-row;
    line-height: 0px;
}

.autolookup-searchtext-col {
    display: table-cell;
    width: 150px;
    vertical-align: middle;
}

.autolookup-img-col {
    display: table-cell;
    width: 20px;
    vertical-align: middle;
    text-align: center;
    -webkit-transition: background-color .15s;
    -o-transition: background-color .15s;
    -moz-transition: background-color .15s;
    transition: background-color .15s;
}

    .autolookup-img-col:hover {
        background-color: #d9705d;
    }

    .autolookup-img-col > .lookup-search {
        display: block;
        line-height: 18px;
        border-top: 1px solid #d2ddec;
        border-bottom: 1px solid #d2ddec;
        border-right: 1px solid #d2ddec;
        -webkit-transition: color .15s,opacity .15s;
        -o-transition: color .15s,opacity .15s;
        -moz-transition: color .15s,opacity .15s;
        transition: color .15s,opacity .15s;
    }

        .autolookup-img-col > .lookup-search[disabled] {
            cursor: not-allowed !important;
            border-color: #c3c3c3 !important;
            color: #939192 !important;
            background-color: #fff !important;
        }


    .autolookup-img-col:hover > .lookup-search {
        color: #fff;
    }

        .autolookup-img-col:hover > .lookup-search[disabled] {
            color: #939192;
        }

    .autolookup-img-col input {
        top: 0 !important;
    }

    .autolookup-img-col > .lookup-search:hover {
        cursor: pointer;
    }

.autolookup-display-col {
    display: table-cell;
    min-width: 50px;
    vertical-align: middle;
}

    .autolookup-display-col > input[type=text] {
        height: 20px;
        border-left: 0 !important;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.autolookup.single-lookup {
    max-width: 400px;
}

    .autolookup.single-lookup .autolookup-display-col {
        display: none;
    }

    .autolookup.single-lookup .autolookup-searchtext-col {
        width: auto !important;
    }

    .autolookup.single-lookup .autolookup-img-col > .lookup-search {
        border-top-right-radius: 0.325rem;
        border-bottom-right-radius: 0.325rem;
    }

@media (max-width:539px) {
    /*.autolookup {
        display: block;
    }

    .autolookup-row {
        display: block;
        position: relative;
    }

    .autolookup-img-col,
    .autolookup-display-col,
    .autolookup-searchtext-col {
        display: block;
    }*/

    .autolookup-searchtext-col {
        width: 100px !important;
    }

    /*.autolookup-searchtext-col > input {
            padding-right: 20px;
        }*/

    /*.autolookup-img-col {
        position: absolute;
        top: 0;
        right: 0;
        height: 19px;
    }

        .autolookup-img-col > .lookup-search {
            border: none;
        }*/

    /*.autolookup-display-col > input {
        border-left: 1px solid #d5d5d5 !important;
        border-top: 0 !important;
    }*/
}

.lookup-advancesearch {
    display: table;
    width: 100%;
}

    .lookup-advancesearch .row {
        margin: 0;
        display: table-row;
    }

    .lookup-advancesearch .lookup-text {
        display: table-cell;
    }

        .lookup-advancesearch .lookup-text > input {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

.lookup-text > * {
    width: 100%;
}

.lookup-advancesearch .lookup-button-search {
    display: table-cell;
    width: 19px;
}

/*   --------------------  auto lookup dialog    ----------------------     */


body.lookup-body {
    border: 0 none inherit;
    background-color: #eef0f6;
    height: 100%;
    margin: 0;
    padding: 0;
}

NOBR {
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
}

DIV.objects {
    overflow-y: hidden;
    background: #ffffff;
    overflow-x: hidden;
    width: 100%;
    border: 1px solid #d1cdbb;
    height: 100%;
}

DIV.objectsObjList {
    word-wrap: break-word;
    background-clip: border-box;
    background-color: #fff;
    border: 1px solid #edf2f9;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    border-color: #edf2f9;
    overflow: auto;
}

IMG.button {
    width: 55px;
    height: 0;
}

thead.gridBar {
    table-layout: fixed;
    width: 100%;
    height: 21px;
    background-color: #e0e3e8;
    position: sticky;
    top: 0;
}

td.grid {
    padding: 5px;
    border-bottom: 1px solid #CDD4E3;
    border-right: 1px solid #CDD4E3;
}

tr.grid {
    padding-top: 1px;
    /*-moz-backface-visibility 
    margin-bottom: 1px;*/
    padding-left: 2px;
    height: 24px;
}

TABLE.gridBar {
    table-layout: fixed;
    width: 100%;
    height: 21px;
    background-color: #e0e3e8;
}

DIV.ScrollableList {
    overflow: scroll;
    width: 100%;
    border: 1px solid #949e9c;
    height: 100%;
    background-color: #ffffff;
}

BUTTON.btnExpandable, BUTTON.DialogButton {
    width: auto;
}

.selectBox, .LookupType {
    width: 100%;
    height: 20px;
    border: 1px solid #7b9ebd;
    padding-left: 5px;
    font-size: 11px;
    cursor: default;
}

td.displayNone {
    display: none;
}


.TreeViewLookup {
    vertical-align: middle;
}
