/* CUSTOM: css for maps and infowindow */
table td {
    color: black !important;
}
#map_container, #global_map_container {
    height: 50vh;
}
#map, #global_map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 80vw;
    margin: 0 auto;
}
#map.fullscreen, #global_map.fullscreen {
    position: fixed;
    z-index: 9999999;
    margin: 0;
    max-width: 100vw;
    height: 100vh !important;
}
#style-selector-control {
    left: 5px !important;
    top: 5px !important;
    background: white;
    border: 2px solid black;
    width: 110px;
    height: 55px;
}
#style-selector-control label {
    font-size: 11px;
    margin: 0;
}
#style-selector-control label:before, #style-selector-control label:after {
    margin: 5px;
    width: 14px;
    height: 14px;
}

.screen-map-polygon, .screen-map-polygon-global {
    background: #7687af;
    border: 1px solid #7687af;
    -webkit-transition: 0.2s ease-in;
    transition: 0.2s ease-in;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    color: white;
    border-radius: .25rem;
}

.gm-style-iw-chr {
    height: 0 !important;
}
.gm-style-iw-d {
    padding: 15px 0 0 5px !important;
}
button.gm-ui-hover-effect {
    top: 0px !important;
    right: 0px !important;
    width: 24px !important;
    height: 24px !important;
}
button.gm-ui-hover-effect:focus {
    outline: none !important;
}
button.gm-ui-hover-effect span {
    margin: 0 !important;
}

.badge {
    background: lightgray;
    border-radius: 20px;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
}
.badge.active {
    background: black;
    color: white;
}

#infowindow-content #body {
    margin-top: 20px;
    max-width: 250px;
}
#infowindow-content #body .loading:after {
    left: 54% !important;
}

#infowindow-content #body .infowindow-task-table {
    width: 100%;
}
#infowindow-content #body .infowindow-task-table td:first-child {
    text-align: left;
}
#infowindow-content #body .infowindow-task-table td {
    text-align: center;
}
#infowindow-content #body .infowindow-task-table td:last-child {
    text-align: right;
}
#infowindow-content > #timeline {
    justify-content: center;
    display: flex;
}
#infowindow-content > #timeline > .badge {
    font-size: 0.8rem;
    padding: 5px 25px;
}

.sales_point_area_warning {
    color: red;
    font-size: 1rem;
}

.save-multiple-tasks {
    position: fixed;
    top: calc(100vh - 5%);
    right: 2%;
    z-index: 99;
}