@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    min-height: 100vh;
}

app {
    position: relative;
    min-height: 100vh;
}

.main {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

    .main .top-row {
        background-color: #F4B369;
    }


.top-row {
    height: 60px;
    display: flex;
    align-items: center;
    color: #ffffff;    
}

    .top-row a {
        color: #ffffff;
        text-decoration: none;
    }

    .top-row a.active {
        color: #ffffff;
    }

    .top-row a.hover {
        color: #ffffff;
    }


.spinnerOnLoad {
    height: 20px;
    width: 70px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: 40px;
    margin-left: -35px;
}

    .spinnerOnLoad > div {
        width: 18px;
        height: 18px;
        background-color: #C46412;
        border-radius: 100%;
        display: inline-block;
        -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
        animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    }

    .spinnerOnLoad .bounce1 {
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .spinnerOnLoad .bounce2 {
        -webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
    }

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}



#spinner {
    height: 20px;
    width: 70px;
    position: fixed;
    left: 50%;
    margin-top: 0px;
    margin-left: -35px;
}

    #spinner > div {
        width: 18px;
        height: 18px;
        background-color: #DD7904;
        border-radius: 100%;
        display: inline-block;
        -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
        animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    }

    #spinner .bounce1 {
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    #spinner .bounce2 {
        -webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
    }

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }

    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

.menu-row {
    height: 100px;
    background-color: #DD7904;
    display: flex;
    align-items: center;
    color: #ffffff;
}

    .menu-row a {
        color: #ffffff;
        text-decoration: none;
    }

        .menu-row a.active {
            color: #ffffff;
        }

        .menu-row a.hover {
            color: #ffffff;
        }

.content {
    padding-top: 0px;
    background-color: #DD7904;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


.mapCanvas {
    flex-grow: 1;
}

.GoogleMap {
    height: 100%
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }


.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }


    #lookupOverlay {
        position: fixed;
        z-index: 1;
        top: 0;
        left: 10px;
        overflow-x: hidden;
        transition: 1s;
        margin-top: 95px;
    }

    #lookupCustomerOverlay {
        position: fixed;
        z-index: 1;
        top: 0;
        left: 923px;
        overflow-x: hidden;
        transition: 1s;
        margin-top: 95px;
    }


    #DataOverlay {
        position: fixed;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #FBC98E;
        border-left: solid 1px rgba(0,0,0,0.4);
        overflow-x: hidden;
        transition: 1s;
    }

    #SettingsOverlay {
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        bottom: 0;
        background-color: #F7931E;
        border-right: solid 1px rgba(0,0,0,0.4);
        overflow-x: hidden;
        transition: 1s;
    }

    #LoginOverlay {
        position: fixed;
        z-index: 1;
        top: 50%;
        left: 50%;
        margin-top: -50px;
        margin-left: -100px;
    }

    #TripOverlay {
        position: fixed;
        z-index: 1;
        top: 10%;
        left: 50%;
        margin-top: -50px;
        margin-left: -350px;
    }


    .Login {
        border-radius: 10px;
        border: solid 1px rgba(0,0,0,0.4);
        background-color: #ffffff;
    }

    .LoginHeader {
        border-radius: 10px 10px 0px 0px;
        width: 100%;
        padding: 15px 15px 15px 15px;
        color: #ffffff;
        background-color: #F7931E;
        text-align: center;
    }
    
    #LogOutView{
        color: #000000;
    }

    .LoginBody {
        padding: 15px 15px 15px 15px;
    }



    .TripHeader {
        border-radius: 10px 10px 0px 0px;
        width: 100%;
        padding: 15px 15px 15px 15px;
        color: #ffffff;
        background-color: #F7931E;
        text-align: center;
    }

    .TripBody {
        padding: 15px 15px 15px 15px;
        max-height: 700px;
        overflow-y: auto;
    }

    .TripFooter {
        border-radius: 0px 0px 10px 10px;
        width: 100%;
        height: 10px;
        color: #ffffff;
    }


    #LoginFailed {
        width: 100%;
        color: #DD0000;
    }

    .SettingsOverlayTop {
        width: 100%;
        height: 60px;
        text-align: center;
        padding-top: 7px;
        background-color: #F4B369;
    }

    .DataOverlayTop {
        width: 100%;
        height: 60px;
        text-align: center;
        padding-top: 7px;
        background-color: #F4B369;
    }

    #Status {
        width: 100%;
        min-height: 30px;
        padding: 7px 7px 7px 7px;
        padding-top: 7px;
        position: fixed;
        z-index: 300;
        bottom: 0;
        left: 0;
        background-color: #ffffff;
        opacity: 0.5;
        font-size: 14px;
        border-left: solid 1px rgba(0,0,0,0.4);
        overflow-x: hidden;
        text-align: center;
        transition: 1s;
    }

    .OverlayVisible {
        display: block;
        background-color: #ffffff;
    }

    .OverlayHidden {
        display: none;
    }

    .OverlayHeader {
        width: 100%;
        text-align: center;
        padding: 10px 10px 10px 10px;
        border-bottom: 1px solid #808080;
        background-color: #DD7904;
        color: #ffffff;
        font-size: 18px;
        font-weight: bold;
    }

    .OverlayHeaderSOS {
        width: 100%;
        text-align: center;
        padding: 10px 10px 10px 10px;
        border-bottom: 1px solid #808080;
        background-color: #A70000;
        color: #ffffff;
        font-size: 18px;
        font-weight: bold;
    }

    .OverlayBody {
        width: 100%;
        padding: 0px 0px 0px 0px;
        background-color: #ffffff;
    }

    .OverlayBodyPlain {
        width: 100%;
        padding: 0px 0px 0px 0px;
    }

    .OverlaySubHeader {
        width: 100%;
        text-align: center;
        padding: 5px 5px 5px 5px;
        background-color: #8ED4F2;
        color: #3a0647;
        font-size: 16px;
        font-weight: bold;
    }

    .cell {
        margin: 2px 2px 2px 2px;
        vertical-align: top;
    }


    .travellerCell {
        padding: 5px 5px 5px 5px;
        vertical-align: top;
    }

    .settingsTagCell {
        padding: 0px 5px 0px 5px;
        vertical-align: top;
    }

    .OverlayItem {
        width: 100%;
        padding: 5px 10px 5px 10px;
    }

    .OverlayItemTravel {
        width: 100%;
        padding: 5px 10px 5px 10px;
        text-align: center;
        background-color: #FBC98E;
        color: #3a0647;
        border-bottom: solid 1px rgba(0,0,0,0.4);
    }

    .OverlayItemRecentCheckIns {
        width: 100%;
        padding: 5px 10px 5px 10px;
        text-align: center;
        background-color: #FBC98E;
        color: #3a0647;
        border-top: solid 1px rgba(0,0,0,0.4);
        border-bottom: solid 1px rgba(0,0,0,0.4);
    }
    
    .OverlayItemTraveller {
        width: 100%;
        padding:0px 5px 0px 5px;
    }


    .AddressItem {
        width: 100%;
        padding: 5px 10px 0px 10px;
        text-align: center;
    }
    

    .OverlayShow {
        width: 300px;
    }

    .OverlayHide {
        width: 0px;
    }

    .OverlayLoginHide {
        visibility: hidden;
    }

    .ViewShow {
       display:block;
    }

    .ViewHide {
        display: none;
    }

    .DropDownControl {
        border-radius: 5px;
        padding: .5rem;
    }

    .button {
        font-size: 16px;
        padding: 2px 5px 2px 5px;
        background-color: #F7931E;
        color: #ffffff
    }

    .TripInProgress {
        background-color: #ffffff;
        border-bottom: solid 1px rgba(0,0,0,0.4);
    }

    .TripNotStarted {
        background-color: #DBDBDB;
        border-bottom: solid 1px rgba(0,0,0,0.4);
    }
}
