@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..600;1,100..600&display=swap');


body,
html {
    height: 100vh;
    overflow: hidden;
}

h5 {
    background: #70f0d9;
    padding: 2px;
}

/* login page */
.login-page {
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.login-card-wrapper {
    width: 25vw;
    min-width: 350px;
}

.login-card-wrapper h4 {
    background: #333;
    color: white;
    font-weight: 300;
    width: 100%;
    padding: 1.5vw;
}

.card,
form,
input,
button {
    border-radius: 0;
}

input {
    border: 0;
    border-bottom: solid 1px #ddd;
}

input:active,
input:focus {
    border: 0;
    box-shadow: none;
    border-bottom: solid 1px #888;
}

/* end of login page */

.tums {
    font-family: 'Overpass', serif !important;
    font-size: 12px;

    --topnavbar-ht: 48px;
    --topnavbar-activetab-ht: 56px;
    --context-navbar-ht: 32px;
    --graphicarea-ht: 5vh;
    --fsize-topnavbar: 15px;
    height: inherit;
}

.tums.loading {
    cursor: wait
}

.landing {
    background-color: #e9e9e9;
}

.top-navbar {
    background: #e9e9e9;
    height: calc(var(--topnavbar-activetab-ht) + 10px);
    /* position: fixed; */
    vertical-align: top;
}

.top-navbar-row {
    padding-bottom: 10px;
    background-color: #fff;
}

.tab, .top-navbar-switch {
    cursor: pointer;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.top-navbar-tab {
    height: var(--topnavbar-ht);
    margin-left: 0.4vw;
}

.top-navbar img {
    height: var(--topnavbar-ht);
}

.top-navbar-tab-block {
    height: var(--topnavbar-ht);
    vertical-align: top;
    min-width: var(--topnavbar-ht);
    display: inline-block;
    background: #fff;
}

.active .top-navbar-tab-block {
    height: var(--topnavbar-activetab-ht);
}

.top-navbar-tab-block i {
    line-height: var(--topnavbar-ht);
}

.top-navbar-btn {
    padding: 1vh;
    display: inline-flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    width: var(--topnavbar-activetab-ht);
}

.active .top-navbar-btn:hover {
    background: yellow;
}

.top-navbar-btn svg {
    font-size: 3vh !important;
    color: black;
}

.top-navbar-tab .label {
    padding: 0vh 1vw;
    background: #fff;
}

.top-navbar-tab.active .label {
    color: black;
    margin-right: 1px;
}

.top-navbar-tab.active {
    height: var(--topnavbar-activetab-ht);
}

.top-navbar-tab.active .text {
    line-height: var(--topnavbar-activetab-ht);
    color: black;
}

.top-navbar-tab .text,
.dropdown-menu {
    font-size: var(--fsize-topnavbar);
    font-weight: 600;
    line-height: var(--topnavbar-ht);
}

.top-navbar-tab .label {
    display: inline-block;
    color: #666;
}

.top-navbar-tab .user-selection .text {
    padding-right: 1vw;
    padding-left: 1vw;
}

.top-navbar-tab .user-selection {
    /* padding: 0 0 0 1vw; */
}

.top-navbar-tab .label .b-dropdown {
    vertical-align: baseline;
}

.top-navbar-tab .topbar-icon {
    color: #888;
    font-size: 0.6rem;
}

.top-navbar-tab.active .topbar-icon {
    color: black;
    font-size: 0.6rem;
}

.popover {
    min-width: 220px;
}

.popover-header {
    text-transform: capitalize;
}

.badge {
    line-height: 3vh !important;
    height: 3vh;
    padding: 0 1vh !important;
}

.tums .dropdown-menu,
.tums .dropdown-menu-item {
    border: solid 1px #e9e9e9;
    border-radius: 0;
}

.dropdown-menu li a a {
    font-size: var(--fsize-filterpanel) !important;
    text-decoration: none;
    color: #333;
    border-bottom: solid 1px #e9e9e9;
    width: 100%;
    display: inline-block;
}

.tab-content {
    background-color: #f7f7f7;
    height: calc(100% - 6.8vh);
}

.sec-tabs {
    background-color: #e9e9e9;
}

.sec-tab,
.cp-tab {
    width: 100px;
    height: 32px;
    background-color: white;
    color: #333;
    vertical-align: middle;
}

.sec-tab-content,
.cp-tab-content {
    position: relative;
    height: calc(100% - var(--context-navbar-ht));
}

.sec-tab.button {
    display: inline-flex;
    width: 32px;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    cursor: pointer;
}

.sec-tab .dropdown-toggle::after {
    display: none;
}

.sec-tab .dropdown-menu {
    font-size: 12px;
    border-radius: 0px;
}

.backdrop-container {
    height: calc(100vh - (var(--topnavbar-activetab-ht) + var(--context-navbar-ht) + 10px));
    width: 100vw;
}

.mapboxgl-canvas-container {
    height: inherit;
}

.mapboxgl-canvas {
    width: 100% !important;
    height: inherit !important;
    background-color: black;
}

.preset-sidebar {
    position: absolute;
    background-color: #333333b0;
    overflow: auto;
    top: 0;
    right: 0;
    max-height: calc(100vh - (var(--topnavbar-activetab-ht) + var(--context-navbar-ht) + 10px));
}

.showing-cp .preset-sidebar {
    right: 50vw;
}

.preset-sidebar ul {
    padding-left: 1rem;
}

.preset-sidebar li {
    white-space: pre;
    list-style: none;
}

.preset-sidebar li.hide-children>li,
.preset-sidebar li.hide-children>ul,
li.hide-children>pre {
    display: none;
}

.loa-collapser {
    color: white;
    position: absolute;
    left: 0;
    /* margin-top: -8px; */
}

.hide-siblings li:not(:first-child) {
    display: none;
}

.preset-sidebar li .btn {
    color: white;
}

.preset-sidebar li a {
    text-decoration: none;
}

.preset-sidebar .type {
    border-bottom: solid 1px white;
}

.preset-sidebar .type:hover {
    color: #70f0d9;
    cursor: pointer;
}

.preset-sidebar .type.fselected {
    color: #ffe014;
}

.cp {
    position: relative;
    margin-left: auto;
    top: calc(-100% + 32px);
    height: calc(100vh - (var(--topnavbar-activetab-ht) + var(--context-navbar-ht) + 10px));
    width: 50vw;
    Z-INDEX: 1;
    background: #333333;
    display: none;
    color: white;
}

.cp-tabs {
    background-color: inherit;
    display: flex;
    justify-content: stretch;
}

.cp-tab {
    background-color: #fedc37;
    flex-grow: 1;
    font-weight: 600;
}

.cp-tab.active {
    background-color: #333;
    color: white;
}

.cp-tab-content svg {
    width: 100%;
    height: 100%;
}

.cp-tab-content.asset {
    display: flex;
    flex-direction: row;
}

.tums a.mapboxgl-ctrl-logo,
.tums .mapboxgl-ctrl-attrib {
    display: none;
}

.no-caret::after {
    content: none;
}

.marker {
    background-size: cover;
    width: 20px;
    height: 20px;

    border-radius: 50%;
    cursor: pointer;
    white-space: nowrap;
}

.marker.ebike {
    background-image: url('./GraphicBikeMonitorContext.svg');
    width: 50px;
    height: 50px;
}

.marker.zone {
    margin-top: -30px;
    background-size: contain;
}

.marker span {
    color: #fff;
    bottom: -18px;
    position: absolute;
}

#zone-relation,
#telemetry {
    width: 50%;
    height: 100%;
}

#zone-relation {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding: 5px;
}

.blob-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    top: 106px;
}

#zone-relation #zone-type-graphic {
    fill: #71bf44;
}

#presets-tab-content {
    padding: 1rem;
    height: 90vh;
    display: flex;
    justify-content: space-between;
}

#presets-form-section {
    width: 45%;
    overflow: auto;
}

#generated-json {
    width: 45%;
    overflow: auto;
    white-space: break-spaces;
}

.current-situation table {
    width: 50vw;
    margin-left: 25vw;
}

#mode-selector-switch .mode.active {
    background-color: #ffdd00;
    color: #333;
}