﻿html, body, form {
    overflow: hidden;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
}

#menu {
    height: 40px;
    line-height: 40px;
    width: 100%;
    border-bottom: 1px solid darkgrey;
}

#content, #divLogin {
    height: -moz-calc(100% - 41x) !important;
    height: -webkit-calc(100% - 41px) !important;
    height: calc(100% - 41px) !important;
    width: 100%;
}

#content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    min-height: 0;
}

#map {
    flex: 1;
}

#sideBar {
    flex: 0 0 18em;
    background-color: #fafafa;
    border-left: 1px solid darkgrey;
}

#sideBarContent {
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

#divLogin {
    display: table;
}

#divLoginContent {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

#menuLeft {
    display: flex;
    float: left;
}

#menuRight {
    display: flex;
    float: right;
    height: 40px;
    margin-right: 6px;
    flex-direction: row;
    align-items: center;
}

    #menuRight div {
        background-size: contain;
    }

#LoginStatus1 {
    height: 24px;
    width: 24px;
    margin-left: 2px;
    margin-right: 5px;
    display: inline-block;
}

#LoginView1_Login1 {
    font-family: 'PT Sans', sans-serif;
    border-radius: 0;
    margin: 0 auto;
}

    #LoginView1_Login1 label {
        font-weight: normal;
        margin-right: 10px;
    }

    #LoginView1_Login1 table tr:first-child td:first-child {
        padding-top: 30px;
        padding-bottom: 22px;
    }

    #LoginView1_Login1 table td:first-child {
        padding-left: 30px;
    }

    #LoginView1_Login1 table td:last-child {
        padding-right: 30px;
    }

    #LoginView1_Login1 table tr:last-child td {
        padding-top: 16px;
        padding-bottom: 26px;
    }

    #LoginView1_Login1 table tr:nth-last-child(2) td {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: .9em;
    }

    #LoginView1_Login1 input[type=text], #LoginView1_Login1 input[type=password] {
        margin: 3px 0;
        padding: 2px 4px;
        border: none;
        border-radius: 0;
        width: 220px;
    }

    #LoginView1_Login1 input[type=checkbox] {
        position: relative;
        top: 3px;
        margin-right: 4px;
    }

    #LoginView1_Login1 input[type=submit] {
        border: none;
        border-radius: 0;
        padding: 10px 14px;
    }

    #LoginView1_Login1 table tr:last-child td:first-child a {
        position: relative;
        top: 10px;
    }

    #LoginView1_Login1 a:hover, #LoginView1_Login1 a:focus {
        text-decoration: none;
    }

#LoginStatus1[name=LoginStatus1\$ctl03] {
    display: none;
}

div.popover {
    padding: 0;
}

#sendActivationBox,
#activateLexBox,
#requestPasswordBox {
    margin: auto;
    margin-top: 100px;
    width: 500px;
    height: auto;
    background-color: #F7F6F3;
}

#activateLexContent,
#requestPasswordContent {
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 40px;
    padding-right: 40px
}

#activateLexInput {
    display:grid;
    grid-template-columns:auto auto;
    column-gap: 5px;
    row-gap: 5px;
}

#activateLexContent input,
#requestPasswordContent input {
    border: none;
    padding: 20px;
}

#resetEmail input,
#resetPassword input,
#requestEmail input {
    width: 220px;
    margin: 3px 0;
    padding: 2px 4px;
    font-size: 1em;
}

/* HEADER */
#logoDiv {
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#imgLogo {
    margin: 6px;
    margin-left: 10px;
    height: 28px;
}

#buttonUpload, .buttonDownload, #buttonSendDialog, #buttonSettings {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: initial;
    border: none;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    cursor: pointer;
    margin-right: 4px;
    border: inset 3px transparent;
}

#buttonUpload {
    background-image: url("../images/excel_upload.png");
}

#buttonSettings {
    background-image: url("../images/settings_black.png");
}

.buttonDownload {
    background-image: url("../images/excel_download.png");
}

#buttonSendDialog {
    background-image: url("../images/send.png");
}


/* DIALOGS */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

    .modal > * {
        max-height: calc(100% - 100px);
        pointer-events: all;
    }

.dialog {
    background: white;
    border: 1px solid lightgrey;
    border-radius: .75em;
    padding: 1.5em;
    display: none;
    max-width: 50em;
}

.dialogTitle {
    margin: 0;
    margin-bottom: 1em;
    font-size: 1.3em;
    position: relative;
    top: -.2em;
}

.dialogButton {
    background: lightslategrey;
    border: none;
    color: white;
    font-family: "Noto sans", sans-serif;
    font-size: .9em;
    padding: .3em .7em;
    border-radius: 1em;
    cursor: pointer;
}

#buttonCancelSend {
    background-color: lightgray;
}

.dialogInput {
    width: 15em;
    display: block;
    border-radius: 1em;
    border: 1px solid lightgrey;
    padding: .3em .7em;
    font: 1em "Noto Sans", sans-serif;
    margin-bottom: 1em;
}

.inputLabel {
    font-size: .9em;
    margin-bottom: .3em;
}

.dialogButtons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: .5em;
}

.inputLabel {
    margin: 0;
}

.inputAddressIndex {
    display: none;
}

#addressInputDialogButtons {
    margin-top: 2em;
}


/* POPUP */

#popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 1.25em;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 32px;
    left: -49px;
    min-width: 280px;
}

    #popup:after, #popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    #popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 48px;
        margin-left: -10px;
    }

    #popup:before {
        border-top-color: #cccccc;
        border-width: 11px;
        left: 48px;
        margin-left: -11px;
    }

#popupCloser {
    text-decoration: none;
    position: absolute;
    top: 6px;
    right: 12px;
}

    #popupCloser:after {
        content: "✖";
        color: grey;
    }

#popupContent {
    font-size: .9em;
}

#popupTitle {
    margin-right: 1em;
}

#popupInfo p {
    margin: .5em 0;
}

#popup .dialogButtons {
    margin-top: 1.5em;
    color: grey;
}

    #popup .dialogButtons span {
        cursor: pointer;
    }


/* MAP CONTROLS */

.selectionControl {
    top: 70px;
    left: .5em;
}

.zipCodeSelectionControl {
    top: 105px;
    left: .5em;
}

.mapControlIcon {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    filter: invert(100%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.selectionControl .mapControlIcon {
    background-image: url("../images/select.png");
}

.boxSelectionControl .mapControlIcon {
    background-image: url("../images/box_select.png");
}

.zipCodeSelectionControl .mapControlIcon {
    background-image: url("../images/zip_code_select.png");
}

.layerControl {
    bottom: 2.25em;
    right: .5em;
    background: none;
    font-size: .8em;
    padding: 0;
    overflow: hidden;
}

    .layerControl:hover {
        background: none;
    }

.ol-control.layerControl button {
    display: inline;
    color: grey;
    width: auto;
    height: 1.5em;
    border-radius: 0;
    margin: 0;
    padding: 0 .5em;
    font-size: 1em;
    background: rgba(0, 60, 136, .6);
    color: white;
}

    .ol-control.layerControl button.selected {
        color: #4c76ab;
        background: rgba(255, 255, 255, .8);
    }

.ol-control * {
    cursor: pointer;
}

.ol-control button {
    width: 1.5em;
    height: 1.5em;
}

.ol-control.enabled button {
    background-color: rgba(0, 136, 60, .5);
}

    .ol-control.enabled button:hover {
        background-color: rgba(0, 136, 60, .7);
    }


/* ADDRESS LIST */

#addressListHeader {
    padding: 1.5em;
}

#startInfo {
    font-size: .9em;
}

.rightMenuButton {
    margin: 5px 0 5px 0;
}

#selectedAddresses {
    margin-top: .5em;
    margin-bottom: 1.75em;
    font-size: 12px;
}

#totSelectedAddresses {
    font-size: 12px;
}

#selectedAddresses.tooMany {
    color: red;
}

#addressList {
    margin: 0;
    padding: 0;
    list-style: none;
}

#addressListTitle {
    margin-top: 0;
    margin-bottom: .5em;
    font-size: 1.5em;
}

#addressList li {
    padding: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fbfbfb;
}

    #addressList li:nth-child(2n+1) {
        background: #f3f3f3;
    }

    #addressList li.invalid-address {
        color: red;
        background: #fff3f3;
    }

    #addressList li:nth-child(2n+1).invalid-address {
        background: #ffe8e8;
    }

    #addressList li.selected {
        background: #ccf2ff !important;
    }

.addressTitle {
    font-weight: bold;
    margin: 0;
    margin-bottom: .5em;
}

#addressList li .addressInfo {
    cursor: pointer;
    flex: 1;
}

.addressInfo p {
    word-break: break-word;
}

#addressList li p:not(.addressTitle) {
    font-size: .8em;
    margin: .2em 0;
}

.phone-icon {
    margin-right: .4em;
}

.edit-icon {
    color: #606060;
    margin-left: .5em;
    cursor: pointer;
}

#selectedAddressesInfo .dialogButton {
    width: 100%;
}


/* CHECKBOX */
.roundCheckbox {
    position: relative;
    margin-right: 1em;
    line-height: 28px;
    width: 30px;
    height: 30px;
}

    .roundCheckbox label {
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 50%;
        cursor: pointer;
        height: 28px;
        left: 0;
        position: absolute;
        top: 0;
        width: 28px;
    }

        .roundCheckbox label:after {
            border: 2px solid #fff;
            border-top: none;
            border-right: none;
            content: "";
            height: 6px;
            left: 7px;
            opacity: 0;
            position: absolute;
            top: 8px;
            transform: rotate(-45deg);
            width: 12px;
        }

    .roundCheckbox input[type="checkbox"] {
        visibility: hidden;
    }

        .roundCheckbox input[type="checkbox"]:checked + label:after {
            opacity: 1;
        }


/* LISTS */

#manageLists {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#lists {
    flex: 1;
    height: 25px;
    margin-top: 7px;
}

#manageLists input[type=button] {
    flex: 0;
}

.disabledButton {
    background-color: #a7b2bd;
    pointer-events: none;
}


/* EXCEL UPLOAD */

.excelView {
    margin: 1px;
}

    .excelView tr td, .excelView tr th {
        padding: .2em .3em;
    }

        .excelView tr th select {
            margin-bottom: .3em;
        }

    .excelView.datatitles tr:nth-child(2) {
        background-color: cadetblue;
    }

#excelViewContainer {
    overflow: auto;
    margin: .75em 0 1em 0;
}

.showExcelView {
    display: none;
}

.errorMessage {
    color: red;
}

.error>input {
    color: red;
    border: none;
    width: 100%;
    background: none;
    text-align: center;
}

.error {
    color: red;
    margin-bottom: 10px;
}

#importExcelDialog .dialogButtons {
    margin-top: 2em;
}

#importExcelButtonWrapper {
    position: relative;
}

#excelImportLoading {
    display: none;
    position: absolute;
    height: 2.5em;
    left: -2.5em;
    margin-top: .1em;
}

.accountView {
    margin-left: auto;
    margin-right: auto;
}

.accountView th,
.accountView td {
    padding: 2px 10px 2px 10px ;
}
