/*
 * Copyright (C) Hector Lucero Salomon - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 * Written by Hector Lucero <kammysmb@gmail.com>, September 2017
 */

@font-face {
    font-family: Calibri;
    src: url("fonts/Calibri Regular.ttf");
    font-weight: normal;
}

* {
    box-sizing: border-box;
    font-family: 'Calibri';
    font-size: 15px;
}

body {
    color: #404040;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 16px;
    font-weight: normal;
}

/**
USER LOGIN
 */
.user-login {
    cursor: pointer;
    display: none;
    margin-top: 30px;
    margin-right: -20px;
}
.user-login.active #username::after {
    background: url("img/arrow-down.svg");
    content: "";
    height: 6px;
    position: absolute;
    width: 10px;
}
#username {
    align-items: center;
    display: flex;
    height: 40px;

    background: #fff;
    padding: 15px;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;

    position: relative;
}
#username::after {
    background: url(img/arrow-right.svg);
    content: "";
    height: 10px;
    position: absolute;
    right: 20px;
    width: 6px;
}
#username p {
    margin: 0;
    margin-right: 20px;
}
.user-login button {
    background: transparent;
    border: 0;
    color: #404040;
    height: 20px;
}
#user-menu {
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    border-radius: 2px;
    display: none;
    padding: 10px;
}


/**
SCROLLBAR
 */
/* width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#map {
    width: 100%;
    height: 100vh;
}

#legend {
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.3) 0 1px 4px -1px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    margin-right: 10px;
    min-width: 22px;
    text-align: center;
    padding: 5px;
}

#legend img {
    width: 32px;
}

#map__sidebar__wrapper {
    font-family: Calibri;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    opacity: 1;
    width: 300px;

    top: 0;
    z-index: 1000;
    position: fixed;
    left: 250px;
    margin-left: -250px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#map__sidebar__wrapper.toggled {
    left: -50px;
}

#map__sidebar {
    background: #f5f5f5;
    height: 100%;
    padding: 20px;
    width: 300px;
}

#map__sidebar h1 {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

#map__sidebar__toggle-button {
    width: 40px;
    height: 48px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9) url('img/menu_icon.png') no-repeat center;
    background-size: 25px;
    border-left: 1px solid #D4D4D4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    position: absolute;
    z-index: -1;
    top: 8px;
    left: 300px;
}

#map-menu {
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    width: 100%;
}

#map-menu .filter {
    margin: 0;
    margin-bottom: 10px;
}
.map-menu__filter {
    align-items: center;
    display: flex;
    justify-content: space-between;

    margin: 0 -20px;
    margin-bottom: 15px;
    padding: 20px;
}
.map-menu__filter:hover {
    background: rgba(119, 136, 153, 0.1);
}

.map-menu__filter h2 {
    margin: 0;
}

#closed-sites-view.active .filter-selection {
    background: #fd003a;
    color: #fff;
    margin-bottom: 0;
}
#projected-sites-view.active .filter-selection {
    background: #fdf569;
    margin-bottom: 0;
}
#mobile-units-view.active .filter-selection {
    margin-bottom: 0;
}
#map-menu .filter.active {
    padding-bottom: 5px;
}

/* MAP OVERLAY */
#map-dim {
    background: rgba(0, 0, 0, 0.2);
    display: none;
    height: 100vh;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9998;
}

#map-dim.active {
    display: block;
}

#map-overlay {
    align-items: center;
    display: none;
    justify-content: center;
    height: 100vh;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9999;
}

#map-overlay.active {
    display: flex;
}

#map-instructions, #state-messages {
    display: none;
}

#map-instructions.active, #state-messages.active {
    display: block;
}

@media screen and (max-width: 800px) and (max-height: 780px) {
    #map-overlay.active {
        display: block;
    }
}

.close-button {
    background-image: url(//maps.gstatic.com/tactile/omnibox/clear-1x-20150504.png);
    background-size: 96px 24px;
    height: 24px;
    float: right;
    width: 24px;
    cursor: pointer;
}

/* FILTERS */
#filter__wrap {
    cursor: pointer;
    margin-top: 20px;
}

.textbox {
    border-radius: 0 !important;
}

.filter {
    background: #fff;
    cursor: pointer;
    margin: 0 -20px;
    margin-bottom: 10px;
    padding: 5px 20px;
    position: relative;
}
.filter [id$='__selection']{
    display: none;
}
.filter.active [id$='__selection']{
    display: block;
}
.filter::after {
    background: url("img/arrow-right.svg");
    content: "";
    height: 10px;
    position: absolute;
    right: 20px;
    top: 31px;
    width: 6px;
}
.filter.active::after {
    background: url("img/arrow-down.svg");
    content: "";
    height: 6px;
    position: absolute;
    right: 20px;
    top: 28px;
    width: 10px;
}

.filter-selection {
    margin: 0 -20px;
    padding: 5px 20px;
}
.filter-selection .wrap {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 20px);
}
.filter-selection:hover {
    background: #F1F3F4;
}
.filter.active .filter-selection {
    background: #F1F3F4;
    margin-bottom: 20px;
}

.filter__search__wrap {
    margin-bottom: 10px !important;
}

.filter__search__wrap input {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
    width: 260px;
}

.no-clinics {
    background: rgba(119, 136, 153, 0.6);
    border-radius: 2px;
    display: none;
    color: #fff;
    font-size: 12px;
    float: right;
    padding: 2px 5px;
}

#open-sites-view.active {
    padding-bottom: 5px;
}
#open-sites-view.active .filter-selection {
    background: rgba(0, 230, 77, 0.3); /* #00e64d; */
    margin-bottom: 0;
}

#states-view .filter-selection {
    margin-bottom: 0;
}

#states-view p {
    display: inline-block;
    margin-right: 5px;
}

.state-filters {
    cursor: pointer;
    margin-bottom: 10px;
}
.state-filters label {
    align-items: center;
    display: flex;
}
.state-filters input {
    margin: 0;
    margin-right: 10px;
}
.state-filter label {
    align-items: center;
    display: flex;
}

#states__selection {
    margin-right: -20px;
    overflow: auto;
    padding-top: 20px;
}

#states__selection div {
    margin-bottom: 10px;
}

.state-name {
    cursor: pointer;
}

#states__selection input {
    margin: 0;
    margin-right: 10px;
    vertical-align: middle;
}

#open-clinics__selection {
    margin-top: 15px;
}

.selected-states {
    display: inline;
}

.selected-state-tag {
    background: rgba(119, 136, 153, 0.7);
    border-radius: 2px;
    cursor: pointer;
    display: inline-block;
    color: #fff;
    font-size: 11px;
    margin-bottom: 10px;
    margin-right: 5px;
    padding: 5px 7px;
}
.selected-state-tag:hover {
    background: rgba(119, 136, 153, 0.9);
}
.selected-state-tag span {
    display: inline-block;
    font-size: 11px;
    margin-left: 6px;
}

/* TODO: Change all this to sidebar-filter class */

#cities .filter-selection {
    margin-bottom: 0;
}

#cities__selection {
    margin-right: -20px;
    max-height: 200px;
    overflow: auto;
    padding-top: 20px;
}

#cities__selection div {
    margin-bottom: 5px;
}

#cities__selection input {
    margin: 0;
    margin-right: 10px;
    vertical-align: middle;
}

#clinics-dropdown {
    font-family: 'Calibri';
    font-size: 14px;
    width: 260px;
}


/* MAP OVERLAYS */
.map__overlays {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
    line-height: 1.6;
    max-width: 800px;
    padding: 20px 20px 10px 20px;
    width: 100%;
}

.map__overlays h2 {
    font-size: 20px;
    margin: 0;
}

.map__overlays__header--controls {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
}

.map__overlays__header--controls .back-to-menu {
    cursor: pointer;
    background: #4f75fb;
    border: 1px solid #4f75fb;
    border-radius: 4px;
    color: #fff;
    padding: 5px;
}

.emergency-closures {
    background: rgba(255, 255, 255, 0.9);
    bottom: 0;
    display: none;
    flex-direction: column;
    max-width: 300px;
    height: 100vh;

    left: 300px;
    overflow: auto;
    padding-top: 73px;
    position: absolute;
    width: 100%;
    z-index: 0;
}
.emergency-closures.active {
    display: flex;
}
.emergency-closures .map__overlays__header {
    margin: 0 -20px;
    padding: 0 20px 10px 20px;
}
.emergency-closures__search_wrap {
    margin-bottom: 10px;
}

.emergency-closures__search_wrap input {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
    width: 255px;
}
.emergency-closures__sites {
    overflow-y: auto;
    margin: 0 -20px;
}

.no-state-notification {
    background: rgba(119, 136, 153, 0.5);
    border-radius: 3px;
    color: #fff;
    display: none;
    padding: 5px 20px;
    text-align: center;
    font-size: 14px;
}
.no-state-notification.active {
    display: block;
}

#open-sites.active {
    border-left: 5px solid rgba(0, 230, 77, 0.5);
}
#closed-sites.active {
    border-left: 5px solid #fd003a;
}
#projected-sites.active {
    border-left: 5px solid #fdf569;
}

#open-sites .selected-state-tag {
    background: rgba(0, 230, 77, 0.5);
    color: #404040;
}
#open-sites .selected-state-tag:hover {
    background: rgba(0, 230, 77, 0.8);
}
#projected-sites .selected-state-tag {
    background: #fdf569;
    color: #404040;
}
#projected-sites .selected-state-tag:hover {
    background: #ece458;
}
#closed-sites .selected-state-tag {
    background: #fd003a;
}
#closed-sites .selected-state-tag:hover {
    background: #ec0029;
}

.closed-site {
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    padding: 20px;
}
.closed-site:hover {
    background: #F1F3F4;
}
.closed-site h3 {
    font-size: 17px;
    font-weight: 400;
    margin: 0;
}
.closed-site p {
    font-size: 14px;
    margin: 0;
}
.emergency-dates {
    margin-top: 10px;
}

/* INFORMATION PANELS */
#current-closed-sites {
}

/* DATATABLE */

/* POPUP */
.site-main-info__wrap {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
}
.site-main-info {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.site-main-info h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    margin-bottom: 10px;
}
.site-main-info p {
    margin: 0;
}
.site-main-info span {
    font-weight: 500;
}
.site-main-info .closed-information {
    display: flex;
    margin-bottom: 10px;
}
.site-main-info .closed-information p {
    margin-right: 10px;
}
.site-address a {
    color: rgb(0, 123, 238);
}

.patient-instructions {
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
    background: rgba(200, 200, 200, 0.1);
}

.gm-style .gm-style-iw-c {
    border-radius: 0;
}

.gm-style-mtc div {
    font-family: 'Calibri' !important;
    font-size: 14px !important;
}

.sota-information {
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}
.sota-information h3 {
    font-size: 16px;
    font-weight: normal;
    margin: 10px 0;
}

.sota-information p {
    margin: 0;
}

.sota-information__main-info {
    margin-bottom: 10px;
}
.sota-information__main-info p {
    margin-right: 10px;
}
.sota-information__main-info span {
    font-weight: 500;
}

.sota-information__program-director-information span {
    font-weight: 500;
}

/* STATE MESSAGES */
#state-messages {
    max-height: 98vh;
    overflow: auto;
    position: relative;
}

#state-messages__notification {
    display: block;
    margin-bottom: 10px;
}

h4 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    margin-bottom: 10px;
}

.sota_message {
    background: aliceblue;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 5px 10px;
}

#sota_messages p {
    margin: 0;
}

.sota-state-wrap {
    border-bottom: 1px solid rgba(119, 136, 153, 0.7);
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.sota-state-wrap:last-child {
    border: 0;
    padding: 0;
}

#sota-states__search__wrap {
    position: absolute;
    right: 60px;
    top: 18px;
}

@media screen and (max-width: 768px) {
    #sota-states__search__wrap {
        position: relative;
        right: 0;
        top: 0;
    }

    .emergency-closures {
        height: initial;
        padding-top: 20px !important;
        top: 0;
    }
}

.message-date {
    margin-bottom: 10px;
    text-align: right;
}

.message__contact-information {
    margin-top: 10px !important;
}

.no-state-messages {
    background: rgba(119, 136, 153, 0.2);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 5px 10px;
    text-align: center;
}

#no-messages {
    background: rgba(119, 136, 153, 0.6);
    border-radius: 2px;
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
}

.hospitals_checkbox {
    bottom: 30px;
    position: absolute;
}
.hospitals_checkbox input {
    vertical-align: bottom;
}