*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    display: flex;
    margin: 0;
    font-family: Open Sans;
    height: 100vh;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: hidden;
}

button, a {
    cursor: pointer;
}

:focus {
    outline: var(--outline) auto 1px;
}

.right {
    float: right;
}

.left {
    float: left;
}

#mainarea {
    background-color: var(--mc-backg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#maincontent {
    position: relative;
    width: 100%;
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.shadowbox {
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    -webkit-transition: box-shadow 0.2s;
    transition: box-shadow 0.2s;
}

    .shadowbox:hover {
        box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    }

.loaderContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: rgba(51,51,51,0.2);
}

.loader {
    display: inline-block;
    border: 0.25rem solid var(--loader-backg);
    border-top: 0.25rem solid var(--loader-foreg);
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 1s linear infinite;
    vertical-align: bottom;
    margin-right: 0.25rem;
}

.loaderContainer .loader {
    margin: 20vh auto auto auto;
    width: 5rem;
    height: 5rem;
    border-width: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ui-tooltip.ui-corner-all.ui-widget-shadow {
    border-color: var(--tooltip-border);
    background-color: var(--tooltip-backg);
    color: var(--tooltip-foreg);
}

.ui-tooltip::before {
    position: absolute;
    z-index: -1;
    content: '';
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}

.ui-tooltip.tt-top::before {
    bottom: -8px;
    left: calc(50% - 0.5rem);
    border-style: solid;
    border-width: 0.5rem 0.5rem 0 0.5rem;
    border-color: var(--tooltip-border) transparent transparent transparent;
}

.ui-tooltip.tt-bottom::before {
    top: -8px;
    left: calc(50% - 0.5rem);
    border-style: solid;
    border-width: 0 0.5rem 0.5rem 0.5rem;
    border-color: transparent transparent var(--tooltip-border) transparent;
}

.ui-tooltip.tt-right::before {
    top: calc(50% - 0.5rem);
    left: -8px;
    border-style: solid;
    border-width: 0.5rem 0 0.5rem 0.5rem;
    border-color: transparent transparent transparent var(--tooltip-border);
}

.ui-selectmenu-menu {
    max-height: 250px;
    overflow-y: scroll;
}

.ui-front {
    z-index: 99999 !important;
}

.actionsbar {
    padding: 0.5rem 1rem;
    padding-right: 0;
    text-align: right;
    display: flex;
    font-size: 0.75em;
}

    .actionsbar.actionsbar-large {
        font-size: 1em;
    }

    .actionsbar.fixed-bottom {
        padding: 0.5em 1em;
        background-color: #ffffff;
        width: auto;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #cccccc;
    }

.actionsbar-left {
    text-align: left;
    flex-grow: 1;
}

.actionsbar-right {
    text-align: right;
}

.filtersbar {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-bottom: -1rem;
}

    .filtersbar > .form-item-container {
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

.searchbar {
    position: relative;
    display: flex;
}

    .searchbar input.form-textbox {
        padding: 0.525em 0.5em;
        padding-right: 2.75em;
        width: 17em;
    }

    .searchbar button.clear {
        position: absolute;
        top: 0;
        left: 14em;
        background-color: transparent;
        color: #b94a48;
        border: 0;
        margin: 0.5em;
        outline: none;
    }

        .searchbar button.clear > i {
            font-size: 1.5em;
        }

    .searchbar ~ .buttonbar {
        margin-top: 1em;
    }

button.textbutton.shadowbox, a.textbutton.shadowbox {
    display: inline-block;
    text-decoration: none;
    font-size: 1em;
    font-family: var(--body-font);
    cursor: pointer;
    border: 0;
    background-color: var(--bb-backg);
    color: var(--bb-foreg);
    padding: 0.5em 1em;
    margin-left: 0.5em;
    -webkit-transition: box-shadow 0.2s, color 0.2s, background-color 0.2s;
    transition: box-shadow 0.2s, color 0.2s, background-color 0.2s;
}

    button.textbutton.shadowbox.lookupbtn, a.textbutton.shadowbox.lookupbtn {
        display: inline-block;
        text-decoration: none;
        font-size: 1em;
        font-family: var(--body-font);
        cursor: pointer;
        border: 0;
        background-color: var(--bb-backg);
        color: var(--bb-foreg);
        padding: 0.75em 0.5em;
        margin-left: 0.5em;
        margin-top: 38px;
        -webkit-transition: box-shadow 0.2s, color 0.2s, background-color 0.2s;
        transition: box-shadow 0.2s, color 0.2s, background-color 0.2s;
    }

    button.textbutton.shadowbox:hover, a.textbutton.shadowbox:hover {
        background-color: var(--bb-hl-backg);
        color: var(--bb-hl-foreg);
        text-decoration: none;
    }

#searchresults {
    position: relative;
}

.msg-noitems {
    position: absolute;
    top: 6em;
    left: calc(50% - 100px);
    width: 200px;
    background-color: #ffffff;
    text-align: center;
    padding: 1em;
    font-weight: bold;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}

body.modal-open {
    margin-right: 0;
}

.modal {
    overflow-y: hidden;
}

.modalInner {
    width: 400px;
    max-width: 100vw;
    margin: 20vh auto 0 auto;
}

.modal-content {
    border-radius: 0;
}

.modal-footer {
    margin-top: 0;
}

.result {
    display: inline-block;
    margin-right: 0.5em;
}

    .result.success {
        color: #c0cc06;
    }

    .result.fail {
        color: #b94a48;
    }

#miles-note {
    padding-top: 10px;
    font-size: 0.9em;
    display: none;
}