﻿:root {
    --color1: lightblue;
    --color2: lightgrey;
    --black: black;
}

* {
    margin: 0;
    border: none;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

body {
    overflow-x: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

.fill {
    height: 100%;
    width: 100%;
}

.fill-screen {
    height: 100vh;
    width: 100vw;
}

.content {
    padding: 0.5rem;
}

.page-container {
    height: 100vh;
    width: 100vw;
    display: flex;
}

.sidebar-container {
    height: 100vh;
    width: 300px;
}

.map-container {
    height: 100vh;
    width: calc(100vw - 300px);
}

.sb-details {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(300px - 1rem);
    font-size: 12px;
}

#map {
    height: 100%;
    width: 100%;
}

/*Loading screen*/
.loading-screen {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.loading-screen div {
    position: relative;
}

.loading-screen div .spinner {
    border: 10px solid transparent;
    border-top: 10px solid black;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.loading-screen div #spinner1 {
    height: 80px;
    width: 80px;
    animation: spin 1s linear infinite;
    margin: -55px 0 0 -55px;
}

.loading-screen div #spinner2 {
    height: 100px;
    width: 100px;
    animation: spin 1.5s linear infinite;
    margin: -65px 0 0 -65px;
}

.loading-screen div #spinner3 {
    animation: spin 2s linear infinite;
    margin: -75px 0 0 -75px;
    width: 120px;
    height: 120px;
}

.show {
    opacity: 1;
    z-index: 1000; }

.hide {
    opacity: 0;
    z-index: -1000; }

@keyframes spin {
    0% {
        transform: rotate(0deg); }
    100% {
        transform: rotate(360deg); } }

/*Modals*/
.modal-container {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

.modal-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-active {
    display: flex;
}

.modal {
    display: flex;
    flex-direction: column;
    width: 70vw;
    height: 70vh;
    /*background-color: #fff;*/
    /*border-radius: 4px;*/
    /*border: 1px solid #fff;
    padding: 1.5rem;*/
    z-index: 100;
    background-color: white;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 2rem 0;
}

.modal-title {
    margin-bottom: 0;
}

.modal-close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
}

/*Tabs*/
.tabs {
    width: 100%;
    height: 100%;
}

.tab-list {
    border-bottom: 1px solid #ccc;
    padding-left: 0;
    margin-bottom: 0;
}

.tab-list-item {
    display: inline-block;
    list-style: none;
    margin-bottom: -1px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.tab-list-active {
    /*background-color: white;*/
    /*border: solid #ccc;
    border-width: 1px 1px 0 1px;*/
    border-bottom: 2px solid var(--color1);
}

.tab-content {
    height: calc(100% - 50px);
    overflow-y: scroll;
    background-color: rgba(128, 128, 128, 0.1);
}

.card-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.card {
    overflow: hidden;
}

.card-title {
    padding: 0.5rem;
}

.card-body {
    height: calc(100% - 50px);
    overflow-y: scroll;
}

input, textarea, select {
    outline: none;
    background: none;
    border: none;
    resize: none;
    color: var(--black);
}

/*https://stackoverflow.com/questions/28686288/remove-default-text-placeholder-present-in-html5-input-element-of-type-date*/

input[type=date]:required:invalid::-webkit-datetime-edit {
    color: transparent;
}

input[type=date]:focus::-webkit-datetime-edit {
    color: black !important;
}

.header-buttons {
    display: flex;
}

.mx-label {
    position: relative;
    min-height: 50px;
}

.mx-label label {
    position: absolute;
    left: 5px;
    top: 5px;
    font-size: 10pt;
    pointer-events: none;
}

.mx-label p {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 14pt;
    right: 0;
    width: 100%;
    height: 30px;
    padding-left: 5px;
    /*Currently a bit of a hack to get the label to match up with inputs.*/
    padding-top: 2px;
}

.mx-input {
    position: relative;
    height: 50px;
}

.mx-input label {
    position: absolute;
    left: 5px;
    top: 5px;
    font-size: 10pt;
    transition: 0.3s;
    pointer-events: none;
}

.mx-input input {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 14pt;
    right: 0;
    width: 100%;
    height: 30px;
    padding-left: 5px;
    border-bottom: 1px solid var(--color2);
}

.mx-input input:valid {
    border-bottom: 3px solid var(--color1);
}


.mx-input input:focus + label,
.mx-input input:valid + label {
    left: 5px;
    top: 5px;
    font-size: 10pt;
}

.mx-input::after {
    content: '';
    position: absolute;
    border-bottom: 3px solid var(--color1);
    left: 0;
    bottom: 0;
    right: 100%;
    transition: 0.3s;
    z-index: 2;
}

.mx-input:focus-within::after {
    position: absolute;
    border-bottom: 3px solid var(--color1);
    right: 0;
}


.mx-textarea {
    position: relative;
    height: 100px;
}


.mx-textarea label {
    position: absolute;
    left: 5px;
    top: 20px;
    font-size: 12pt;
    transition: 0.3s;
    pointer-events: none;
}

.mx-textarea textarea {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 14pt;
    right: 0;
    width: 100%;
    height: 80px;
    padding-left: 5px;
    border-bottom: 1px solid var(--color2);
}

.mx-textarea textarea:valid {
    border-bottom: 3px solid var(--color1);
}

.mx-textarea textarea:focus + label,
.mx-textarea textarea:valid + label {
    left: 5px;
    top: 5px;
    font-size: 10pt;
}

.mx-textarea::after {
    content: '';
    position: absolute;
    border-bottom: 3px solid var(--color1);
    left: 0;
    bottom: 0;
    right: 100%;
    transition: 0.3s;
    z-index: 2;
}

.mx-textarea:focus-within::after {
    position: absolute;
    border-bottom: 3px solid var(--color1);
    right: 0;
}


.mx-select {
    position: relative;
    height: 50px;
}


.mx-select label {
    position: absolute;
    left: 5px;
    top: 20px;
    font-size: 12pt;
    transition: 0.3s;
    pointer-events: none;
}

.mx-select select {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 14pt;
    right: 0;
    width: 100%;
    height: 30px;
    border-bottom: 1px solid var(--color1);
}

.mx-select select:valid {
    border-bottom: 3px solid var(--color1);
}

.mx-select select:focus + label,
.mx-select select:valid + label {
    left: 5px;
    top: 5px;
    font-size: 10pt;
}

.mx-select::after {
    content: '';
    position: absolute;
    border-bottom: 3px solid var(--color1);
    left: 0;
    bottom: 0;
    right: 100%;
    transition: 0.3s;
    z-index: 2;
}

.mx-select:focus-within::after {
    position: absolute;
    border-bottom: 3px solid var(--color1);
    right: 0;
}


.mx-switch {
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.mx-switch .switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 30px;
}

.mx-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mx-switch .switch span {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color2);
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 30px;
}

.mx-switch .switch span::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    border-radius: 50%;
    background-color: white;
    -webkit-transition: .3s;
    transition: .4s;
}

.mx-switch .switch input:checked + span {
    background-color: #2196F3;
}

.mx-switch .switch input:checked + span::before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

.mx-switch .label {
    display: flex;
    width: calc(100% - 50px);
    flex-direction: column;
    justify-content: center;
    padding-left: 5px;
    font-size: 12pt;
}


.search-box {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.search-box-item {
    cursor: pointer;
    padding: 1em 0.5em;
}

.search-box-item:hover {
    background-color: var(--color2);
}

.search-box-item p {
    margin-bottom: 0;
}


.range-selector {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    background-color: white;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.button {
    overflow: hidden;
    position: relative;
    height: 50px;
    width: 100px;
    backface-visibility: hidden;
}

.button:hover .ripples {
    background-color: rgba(0, 0, 0, 0.1);
}

.button:focus .ripples {
    background-color: rgba(0, 0, 0, 0.3);
}


.button label {
    pointer-events: all;
    text-transform: uppercase;
    padding: 0.5em;
    cursor: pointer;
    width: 100px;
    display: flex;
    text-align: center;
    flex-direction: column;
    height: 50px;
    position: absolute;
    top: 0;
    left: 0;
}

.button .border {
    border: 1px solid black;
}

.button label p, i {
    margin: auto;
}


.button-sm {
    width: 50px;
}

.button-sm label {
    width: 50px;
}


.ripples {
    pointer-events: none;
    position: absolute;
    clip: rect(0, 100px, 50px, 0);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.button-sm .ripples {
    clip: rect(0, 50px, 50px, 0);
}

.ripple {
    position: fixed;
    background-color: black;
    border-radius: 50%;
    transition: 0.3s;
    width: 200px;
    height: 200px;
    opacity: 0;
    animation-name: ripple-fx;
    animation-duration: 0.3s;
    pointer-events: none;
    cursor: pointer;
}

@keyframes ripple-fx {
    from {
        transform: scale(0);
        opacity: 0.3;
    }

    to {
        transform: scale(1);
        opacity: 0;
    }
}


.t-h th {
    min-width: 50px;
}

.calendar-header {
    width: calc(100% / 7);
    height: 50px;
}

.calendar-day {
    width: calc(100% / 7);
    height: 100px;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calendar-day-header {
    height: 20px;
    display: flex;
    justify-content: space-between;
}

.calendar-day:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calendar-day-channel {
    height: 16px;
    width: 100%;
}

.calendar-item {
    width: 100%;
    height: 100%;
}

.mx-disclosure {

}

.mx-disclosure summary {
    cursor: pointer;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mx-disclosure summary h3 {
    cursor: pointer;
    pointer-events: none;
}

.mx-disclosure summary > * {
    display: inline;
}

.mx-pages-control {
    height: 100%;
    width: calc(100% - 50px);
    display: flex;
}

.mx-pages-sidebar {
    height: 100%;
    width: 50px;
    background-color: var(--color2);
    position: relative;
}

.mx-page {
    height: 100%;
    width: calc(100% - 50px);
    transform: translateX(100vw);
    transition: 0.5s;
    position: absolute;
}

.mx-active-page {
    transform: translateX(0);
}