﻿html {
    background-color: #333;
}

body {
    margin: 0;
    background-color: #333;
    color: #484848;
    overflow: hidden;
    font-family: Arial;
    font-size: 12px;
}

.header {
    border-bottom: 1px solid #000;
}


#body {
    position: relative;
    background-color: #ddd;
}

#main {
    position: relative;
}

#myMap {
    position: relative;
    height: 600px;
    background-color: #e9e9e9;
}

    #myMap img {
        /* fix foundation bug for map */
        max-width: none;
    }

    #myMap .load-msg {
        position: absolute;
        width: 100%;
        text-align: center;
        top: 10%;
    }

#open_app_message {
    position: absolute;
    left: 7%;
    bottom: 50px;
    width: 86%;
    background-color: #fefefe;
    border: 1px solid #666;
    padding: 8px 5px 10px 5px;
    text-align: center;
    font-size: 12px;
    box-shadow: 0px 3px 18px 1px rgba(0,0,0,0.73);
}

    #open_app_message span {
        font-size: 14px;
    }

    #open_app_message button {
        padding: 15px 15px;
        margin-bottom: 5px;
    }

#download_app_message {
    position: absolute;
    left: 9%;
    bottom: 50px;
    width: 82%;
    background-color: #fefefe;
    border: 1px solid #666;
    padding: 8px 5px 10px 5px;
    text-align: center;
    font-size: 12px;
    box-shadow: 0px 3px 18px 1px rgba(0,0,0,0.73);
}

#important_map_message {
    display: none;
    position: absolute;
    bottom: 30px;
    width: 90%;
    margin-left: 5%;
    cursor: pointer;
}

    #important_map_message .inner {
        position: relative;
        margin: 0 auto;
        padding: 5px;
        background-color: yellow;
        box-shadow: 2px 2px 5px #999;
        max-width: 640px;
        text-align: center;
    }

        #important_map_message .inner p {
            margin: 0;
            font-size: 90%;
        }

/* 25 jun 2020 */
.ol-attribution ul {
    font-size: 90% !important;
}

.map-type-selector {
    position: absolute;
    z-index: 10;
    left: 50px;
    top: 50px;
}

    .map-type-selector a {
        display: inline-block;
        color: #222;
        background-color: #fefefe;
        padding: 3px 5px;
        font-size: 100%;
        margin: 0;
        box-shadow: 2px 2px 5px #999;
    }

        .map-type-selector a.active {
            font-weight: bold;
            color: #333;
        }

            .map-type-selector a.active:hover {
                color: #000;
                font-weight: bold;
            }



/* 6 sep 2018 */

.available-map-loads .tiny-msg {
    position: absolute;
    z-index: 1000;
    top: 30%;
    left: 0;
    background-color: #fefefe;
    padding: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 5px #999;
    text-align: center;
}

.available-map-loads .expanded-msg {
    position: absolute;
    z-index: 1000;
    width: 90%;
    margin-left: 5%;
    top: 16%;
}

    .available-map-loads .expanded-msg .inner {
        position: relative;
        margin: 0 auto;
        max-width: 690px;
        padding: 8px;
        background-color: #fefefe;
        box-shadow: 0px 3px 8px #666;
        text-align: center;
        font-size: 110%
    }

.available-map-loads .fa-remove {
    float: right;
    margin-right: -4px;
    margin-top: -4px;
    cursor: pointer;
    font-size: 120%;
    color: #666;
}

#msgRetry {
    padding-top: 100px;
    text-align: center;
}


.right-off-canvas-menu li {
    font-size: 90%;
}

.toggle-tracklines {
    position: absolute;
    top: 48px;
    right: 46px;
    background-color: #fafafa;
    padding: 4px 8px 1px 8px;
    box-shadow: -0px 1px 2px #b9b9b9;
    font-size: 100%;
}

    .toggle-tracklines input {
        margin: 0;
    }

.narrow .toggle-tracklines {
    display: none;
}

#pnl {
    background-color: #ddd;
}

    #pnl .basic {
        position: relative;
        padding-top: 5px;
        padding-left: 1.6%;
        padding-bottom: 5px;
        background-color: #444;
        border-top: 1px solid #555;
    }

        #pnl .basic .status {
            position: absolute;
            top: 25px;
            right: 12px;
            font-size: 11px;
        }

        #pnl .basic .flag {
            float: left;
            margin-top: 4px;
            margin-right: 5px;
            border: 1px solid #ddd;
        }

/* on dark background*/
.basic .status .green {
    color: lightgreen;
}

.basic .status .yellow {
    color: #fafaa9;
}

.basic .status .red {
    color: lightsalmon;
}

.basic .status .gray {
    color: #ccc;
}

.basic .status .restraint {
    color: red;
}

/* on light background*/
.detail .status .green {
    color: green;
}

.detail .status .yellow {
    color: #fafaa9;
}

.detail .status .red {
    color: red;
}

.detail .status .gray {
    color: #999;
}

.narrow #pnl .basic {
    border-bottom: 1px solid #000;
}

.wide .nav {
    background-color: #444;
}

.nav a {
    position: relative;
}

    .nav a .count {
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        color: #2ba6cb;
        font-size: 90%;
        font-style: normal;
    }

    .nav a.active .count {
        color: #fff;
    }

    .nav a .count.photo {
        top: 0;
        left: 47%;
        width: 20px;
        color: #fff;
        font-size: 80%;
        font-style: normal;
    }

    .nav a.active .count.photo {
        color: #333;
    }

.narrow .nav a .count.photo {
    font-size: 70%;
    left: 66%;
}

.wide .nav a {
    display: inline-block;
    padding: 5px 24px;
    color: #fff;
    text-align: center;
}

    .wide .nav a.active {
        background-color: #efefef;
        color: #2ba6cb;
        box-shadow: 2px -2px 2px #333;
    }

.narrow .nav {
    font-size: 16px;
    text-align: center;
    background-color: #2ba6cb;
}

    .narrow .nav a {
        display: inline-block;
        padding: 5px 3% 4px 3%;
        color: #fff;
    }

        .narrow .nav a.active {
            background-color: #efefef;
            color: #2ba6cb;
        }

        .narrow .nav a.map.active {
            background-color: #008cba !important;
            color: white;
        }


.wide #pnl {
    background-color: #efefef;
    width: 400px;
    border-left: 1px solid #333;
    position: absolute;
    height: 100%;
    right: 0;
    z-index: 1;
}


#pnl .detail {
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    padding: 5px;
    margin-top: 5px;
}

.narrow #pnl .detail {
    height: 100%;
}

#pnl .detail h2 {
    font-size: 120%;
    font-weight: bold;
    color: #2ba6cb;
    text-transform: uppercase;
}

#pnl .detail label {
    font-size: 90%;
    color: #666;
}

.wide #pnl .detail a.close {
    display: none;
}

.narrow #pnl .detail a.close {
    display: block;
    color: #333;
}


#pnl .messages .form {
    position: relative;
}

    #pnl .messages .form textarea {
        font-size: 100%;
        margin-bottom: 5px;
    }


    #pnl .messages .form input[type=text] {
        font-size: 100%;
        height: 34px;
    }

#pnl .messages .item {
    position: relative;
    border-bottom: 2px solid #efefef;
    padding: 5px 5px;
    background-color: #fff;
    line-height: 16px;
}

.wide .messages .item {
    opacity: 0.8;
}

#pnl .messages .item.owner {
    padding-left: 30px;
}

#pnl .messages .item .name {
    display: block;
    font-weight: bold;
}

#pnl .messages .item .time {
    float: right;
    font-size: 90%;
    color: #999;
}

#pnl .messages .item .phone {
    position: absolute;
    left: 5px;
    top: 2px;
}



#pnl .photos ul {
    padding: 0 10px;
    width: 100%;
}

#pnl .photos li img {
    padding: 3px;
    background-color: #fff;
    box-shadow: 0 0 10px #000;
}

#pnl .settings .api a {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px;
    margin-right: 20px;
    background-color: #ddd;
}

    #pnl .settings .api a.active {
        font-weight: bold;
        color: #333;
        border: 2px solid #333;
        background-color: #ddd;
    }

#pnl .download p {
    font-size: 14px
}

#pnl .download .badges {
    margin-bottom: 20px;
}

    #pnl .download .badges a {
        margin: 6px;
    }

/*.narrow #pnl .info {
    padding: 5px 5px 0 0;
}


.narrow.low .info {
    display: none;
}

.narrow #pnl .detail {
    border-top: 1px solid #999;
}*/

.promo {
    background-image: url('https://cdn.locatoweb.com/images/phone-in-hand-bw-300px.png');
    background-repeat: no-repeat;
    background-position: bottom center;
}





#conn {
    display: none;
    position: absolute;
    top: 5px;
    right: 12px;
    z-index: 10;
    background-color: #efefef;
    height: 10px;
    width: 10px;
    font-size: 9px;
    line-height: 0;
    border-radius: 5px;
}

    #conn.green {
        background-color: lightgreen;
    }

    #conn.yellow {
        background-color: #fafaa9;
    }

    #conn.red {
        background-color: lightsalmon;
    }

    #conn.warm {
        background-color: #7ac87a;
    }

    #conn.restraint {
        background-color: red;
    }

.narrow .detail {
    display: none;
    position: absolute;
    bottom: 43px;
    z-index: 100;
    background-color: #efefef;
    width: 100%;
    border-bottom: 5px solid #efefef;
}


#pnl .basic h1 {
    margin: 0 !important;
    font-size: 15px;
    color: #eee;
}


.portrait {
    float: left;
    margin: 4px 6px 2px 0;
}

    .portrait img {
        max-height: 32px;
        border: 0;
    }

.date {
    margin-top: 0;
    color: #ddd;
    font-size: 11px;
}

    .date b {
        color: #2ba6cb;
    }

.data {
    background-color: #2ba6cb;
    border-bottom: 1px solid #333;
}

    .data .box {
        padding: 5px 0;
        text-align: center;
        font-size: 12px;
    }

        .data .box.dur {
            border-right: 1px solid #333;
        }

        .data .box.dst {
            border-right: 1px solid #333;
        }

        .data .box.speed {
            border-right: 1px solid #333;
        }

        .data .box.lat {
            border-left: 1px solid #333;
        }

        .data .box.lon {
            border-left: 1px solid #333;
        }

        .data .box label {
            margin: 0;
            padding: 0;
            font-size: 10px;
            color: #fff;
            line-height: 10px;
        }

        .data .box span {
            font-size: 14px;
            font-weight: bold;
            color: #fff;
        }

/*.battery {
    position: absolute;
    top: 6px;
    right: 5px;
    color: #fff;
}*/

.desc {
    margin: 10px 2px 5px 0;
    color: #ccc;
}


.participants {
    margin-top: 10px;
}

    .participants .user, .participants .dummy {
        position: relative;
        padding: 5px 1px 5px 50px;
        vertical-align: bottom;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #ccc;
        cursor: pointer;
        background-color: #fff;
    }

.wide .participants .user, .wide .participants .dummy {
    opacity: 0.8;
}

.participants .user:hover {
    background-color: #eee;
}

.participants .user.selected {
    padding: 5px 1px 5px 30px;
    border-right: 1px solid #fff;
    border-left: 1px solid #bbb;
    border-bottom: 0;
    border-top: 0;
    background-color: #ddd;
}

.participants .user .marker.pin {
    position: absolute;
    left: 0;
    top: 0;
}

.participants .user .marker.flag, .participants .dummy .marker.flag {
    position: absolute;
    left: 8px;
    top: -5px;
}

.participants .user.selected .marker.flag {
    left: -12px;
}


.participants .user .status, .participants .dummy .status {
    float: right;
    margin-right: 4px;
    font-size: 90%;
    margin-top: -4px;
}



.participants .battery {
    position: absolute;
    right: 4px;
    bottom: 4px;
}

.participants .ball {
    display: none;
    position: absolute;
    right: 18px;
    bottom: 4px;
}

#pom {
    position: absolute;
    top: 52px;
    right: 5px;
    padding: 2px;
    background-color: #fefefe;
    box-shadow: -2px 3px 3px #999;
    border-radius: 3px;
}

    #pom img {
        margin: 0;
    }

    #pom .user {
        padding: 3px;
        margin: 1px;
    }

        #pom .user span {
            margin-left: auto;
            margin-right: auto;
            display: block;
            width: 20px;
            height: 20px;
            border-radius: 10px;
            border: 1px solid #333;
        }

    #pom .selected span {
        width: 24px;
        height: 24px;
        border-radius: 12px;
    }

#footer {
    font-size: 12px;
    color: #ddd;
    background-color: #333;
    padding: 6px 15px;
    z-index: 200;
}

    #footer a {
        color: #eee;
    }

        #footer a:hover {
            color: #fff;
        }

.cacheStatus {
    float: right;
    color: #ddd;
}


/* embed */
.embed .logo {
    position: absolute;
    z-index: 100;
}

    .embed .logo img {
        width: 110px;
    }

.embed .wide .logo {
    top: 3px;
    right: 425px;
    background-color: #fff;
    padding: 0px 3px;
    opacity: 0.9;
    border-radius: 0px;
    box-shadow: 0px 0px 5px #666;
}


.embed .narrow .logo {
    top: 5px;
    right: 5px;
}

/*.embed .narrow .battery span {
    top: 42px;
}*/


/*bing capture only */
a.bing-capture {
    cursor: pointer !important;
    background-image: url('https://cdn.locatoweb.com/images/sys/capture-box-60px.png');
    background-repeat: no-repeat;
}

    a.bing-capture img {
        display: block;
        width: 41px;
        height: 33px;
        margin-left: 2px;
        margin-top: 2px;
    }

.infoBox {
    /*google info window*/
    display: block;
    font-size: 12px;
    width: 154px !important;
    min-height: 75px !important;
}

#ol_info_box {
    /* openlayers info window*/
    display: none;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 0 10px #000;
    border-radius: 5px;
}

    #ol_info_box .fa-remove {
        position: absolute;
        top: 4px;
        right: 4px;
    }

.captureInfoBox {
    padding: 5px;
    background-color: #eee;
    font-weight: bold;
    -webkit-box-shadow: 0 0 10px #000;
    box-shadow: 0 0 10px #000;
    text-align: center;
    min-height: 90px;
    opacity: 0.2;
}

    .captureInfoBox img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 140px;
    }

#modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1600px;
    background-color: rgba(0,0,0,0.8);
    z-index: 100;
}

.modalClose {
    position: absolute;
    display: block;
    width: 38px;
    height: 38px;
    top: 1px;
    right: 1px;
    background-image: url('https://cdn.locatoweb.com/images/btn-close.png');
    background-repeat: no-repeat;
    z-index: 1000;
}

#modal .modalBox {
    position: absolute;
    width: 80%;
    left: 0;
    right: 0;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    background-color: #eee;
    cursor: pointer;
    z-index: 100;
}

    #modal .modalBox textarea {
        display: block;
        width: 99%;
        height: 146px;
        font-size: 12px;
    }

    #modal .modalBox iframe {
        /*border: 1px solid #666;*/
    }

.captureWrapper {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    height: 100vh;
    text-align: center;
}

#modal .fa-spin {
    position: absolute;
    top: 47vh;
    margin-left: 49%;
    color: #fff;
    width: 2%;
    opacity: 0.5;
}


.captureImgFullSize {
    padding: 10px;
    background-color: #000;
    max-height: 98%;
}

#modal .fa-chevron-left {
    position: fixed;
    font-size: 200%;
    top: 46%;
    left: 10px;
    margin-left: 10px;
    z-index: 100;
    padding: 10px 10px 10px 5px;
    background-color: #000;
    opacity: 0.5;
    color: #fff;
}

    #modal .fa-chevron-left:hover {
        opacity: 1;
    }

#modal .fa-chevron-right {
    position: fixed;
    font-size: 200%;
    top: 46%;
    right: 10px;
    margin-right: 10px;
    z-index: 100;
    padding: 10px 5px 10px 10px;
    background-color: #000;
    opacity: 0.5;
    color: #fff;
}

    #modal .fa-chevron-right:hover {
        opacity: 1;
    }

.invalid {
    background-color: #fb4f4f !important;
}

/* special case for very narrow embedded map */
@media only screen and (max-width: 300px) {
    .date {
        font-size: 80% !important;
    }

        .date .status {
            font-size: 90% !important;
        }

    .data .box label {
        font-size: 70% !important;
    }

    .data .box span {
        font-size: 80% !important;
    }
}

/* max-width 640px, mobile-only styles, use when QAing mobile issues */
@media only screen and (max-width: 40em) {

    #footer {
        display: none;
    }

    .info .box {
        margin-right: 2%;
    }

        .info .box span {
            font-size: 12px;
        }


    /* embed */
    .embed .logo {
        display: none;
    }

    #important_map_message {
        bottom: 0px;
        width: 100%;
        margin-left: 0%;
    }

    .top-bar .name h1 a {
        padding: 0 1%;
    }
}


/* jarle: medium and down - max-width less than 1000 something */
@media only screen and (max-width:1100px) {
    .social {
        display: none;
    }

    .desc {
        display: none;
    }

    .info .box label {
        display: none;
    }



    /*.top-bar { display:none;}*/

}


/* jarle  medium and up */
@media only screen and (min-width: 1001px) {
}
