#context {
    background-color: #e5e5e5;
    padding: 5px 0;
    border-radius: 5px;
    position: absolute;
    min-width: 150px;
    display: none;
}

#context.active {
    display: block;
}

#context a {
    color: black;
    text-decoration: none;
    padding: 2px 1em;
    display: block;
}

#context a:hover {
    background-color: #c4c4c4;
}

.dashboard-tile {
    width: 50%;
    padding: 1em;
}

.dashboard-tile > div {
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 1em;
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    transition: .3s ease-in-out;
    
    height: 400px;
}

.none-selected {
    color: #5d5d5d;
    font-style: italic;
}

tr.collision-upper {
    border-top: 1px solid #c4c4c4;
    border-left: 1px solid #c4c4c4;
    border-right: 1px solid #c4c4c4;
    border-bottom: none;
    td {
        border: none;
    }
}

tr.collision-lower {
    border-bottom: 1px solid #c4c4c4;
    border-left: 1px solid #c4c4c4;
    border-right: 1px solid #c4c4c4;
    border-top: none;
    td {
        border: none;
    }
}

.progressbar {
    height: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    width: 100%;
    --progress: attr(data-progress);
}

.progressbar div {
    content: '';
    display: block;
    height: 10px;
    width: 0%;
    background-color: #337ab7;
    transition: .5s ease-in-out;
}

.progress-item {
    width: 25%;
    min-width: 250px;
    text-align: end;
    padding: .5em;
}

.progress-item.active {
    color: #337ab7;
}

.divider {
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #e5e5e5;
}

.btn-icon svg {
    fill: white;
    width: 20px;
    margin-top: -2px;
}

.table-vertical-center td {
    vertical-align: middle;
}

ol li a {
    color: black;
}

.back-button {
    display: block;
    padding: 1em;
    margin-bottom: 1em;
    background-color: #eee;
    width: 56px;
    color: black !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 12px;

    transition: .3s ease-in-out;

    span {
        width: 0%;
        overflow: hidden;
        white-space: nowrap;
        transition: .3s ease-in-out;
    }

    svg {
        margin-right: 0em;
        transition: .3s ease-in-out;
    }
}

.back-button:hover {
    width: 125px;

    span {
        width: 80%;
    }

    svg {
        margin-right: .5em;
    }
}

.back-button:active {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .2);
}

.table-clickable-row {
    cursor: pointer;
}

.table-clickable-row td a:not(.btn), .table-rep-button {
    display: block; 
    padding: 12px 24px;
    text-decoration: none;
    color: black;
}

.table-clickable-row td {
    padding: 0;
    height: 50px;
    padding-left: 10px;
}

.table-clickable-row:hover {
    background-color: #f8f9fa;
}

.table-clickable-row.selected {
    background-color: #e5e5e5;
}

/* Set a fixed scrollable wrapper */
.table-wrap {
    overflow-y: auto;

    /* Set header to stick to the top of the container. */
    thead tr th {
        position: sticky;
        top: 0;
    }

    tbody tr.sticky td {
        position: sticky;
        bottom: 0;
        background-color: white;
    }

    tbody tr.sticky-upper td {
        position: sticky;
        bottom: 100%;
        background-color: white;
        border-top: 2px solid #e8e8e8;
        border-bottom: 2px solid #e8e8e8;
    }

    

    th {
        background-color: white;
    }
    
    /* If we use border,
    we must use table-collapse to avoid
    a slight movement of the header row */
    table {
        border-collapse: collapse;
    }
    tbody tr {
        border-bottom: 2px solid #e8e8e8;
    }
    thead {
        font-weight: 500;
        color: rgba(0, 0, 0, 0.85);
    }
    tbody tr:hover {
        background: #e6f7ff;
    }
}
    
.construction-info {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-button {
    padding-bottom: 2px;
}

.current-construction-site {
    height: 50px;
    width: auto;
    background-color: #e5e5e5;
    border-radius: 1em;
    display: flex;
    align-items: center;
    padding-left: 1em;
}

.construction-site-indicator {
    transition: .3s ease-in-out;
}

.selection-card div {
    width: 200px;
    height: 150px;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 1em;
    margin: 1em;
    transition: .3s ease-in-out;
}

.selection-card:hover {
    div {background-color: #c4c4c4;}
    color: black;
}

.selection-card {
    text-decoration: none;
    color: black !important;
}

.selection-card svg {
    width: 50px;
    height: 50px;
    fill: black;
}

.selection-card.selected div {
    background-color: #c4c4c4;
}

.map-selection {
    width: 100%;
    height: 100%;
    border: 1px solid #e5e5e5;
}

.map-button {
    padding: auto;
    margin: .5em;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    transition: .3s ease-in-out;
    position: absolute;
    opacity: 0;
}

#map-window, #map-preview-window {
    margin-left: 1em;
    max-height: 38vh;
    max-width: 100%;
    /* max-width: 50vw; */
    /* overflow: scroll; */
}

/* #map-window #map-container, #map-preview-window #map-container {
    transform: scale(2);
    transform-origin: 0 0;
} */

.map-button.active {
    background-color: #e5e5e5;
    border: 1px solid #c4c4c4;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    color: red;
    opacity: 1;
}

.map-button:hover {
    opacity: 1;
}

span.map-indicator {
    position: absolute;
    color: blue;
    font-weight: bold;
    z-index: 10;
}

span.map-construction {
    position: absolute;
    color: blue;
    background-color: rgba(255, 237, 237, 0.69);
    border: 1px solid blue;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}



.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5em;
    background-color: #f8f9fa;
    border-right: 1px solid #e5e5e5;
    z-index: 1000;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    align-items: start;
    padding-top: .5em;
    padding-left: 1.2em;

    box-shadow: 0 0 0px rgba(0, 0, 0, .2), inset -1px 0 10px rgba(0, 0, 0, .2);

    transition: .3s ease-in-out;

    h5 {
        font-size: .7em;
        font-weight: bold;
        margin-top: .5em;
        padding-top: 1.2em;
        padding-bottom: 1.2em;
    }

    .menu-item {
        width: 40px;
        height: 40px;
        padding: .5em;
        margin-top: .5em;
        text-align: left;
        border-radius: 8px;
        box-shadow: none;
    
        text-decoration: none;
        color: black;
    
        display: flex;
        align-items: center;
    
        transition: .3s ease-in-out;
    }


    .menu-item div {
        width: 24px;
        height: 24px;
        margin-right: 0;
        margin-top: -4px;
        margin-left: -1px;

        transition: .3s ease-in-out;
    }
    
    .menu-item:hover {
        background-color: #eaeaea;
        color: black;
        box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    
    }

    .menu-item:active {
        box-shadow: inset 0 0 10px rgba(0, 0, 0, .2);
    }
    
    .menu-item span {
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: .3s ease-in-out;
        width: 0;
    }
    
    .menu-item svg {
        fill: black;
    }

    .menu-item.active {
        background-color: #e5e5e5;
        border: 1px solid #c4c4c4;
        box-shadow: 0 0 10px rgba(0, 0, 0, .2);
        color: black;
    }
}

.side-menu:hover {
    width: 17em;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2), inset 0px 0 0px rgba(0, 0, 0, .2);
    
    .menu-item span {
        opacity: 1;
        width: 15em;
    }

    .menu-item {
        width: 14.5em;
    }

    .menu-item.active {
        background-color: #e5e5e5;
        border: 1px solid #c4c4c4;
        box-shadow: 0 0 10px rgba(0, 0, 0, .2);
        color: black;
    }

    .menu-item div {
        margin-right: .5em;
    }
}

.side-menu-bottom {
    position: absolute;
    bottom: 0;
    padding-bottom: 1em;
}

.context-container {
    padding-top: 2em;
    padding-bottom: 3em;

    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(5em + var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

/* @media (min-width: 1040px) {
    .context-container {
        max-width: 1800px;
    }
} */
  
input[name="measure"] {
    min-width: 250px;
}

#map-container {
    position: relative;
    height: fit-content;
    width: fit-content;
}

#map-image {
    position: relative;
    /* transition: .3s ease-in-out; */
    transform-origin: 0 0;
    max-width: 100%;
    /* max-height: 30vh; */
    width: auto;
    height: auto;
}

textarea.large-textarea {
    height: 500px;
}

.status-active, .status-inactive, .status-collision {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    font-size: .75em;
    text-align: center;
    line-height: 20px;
    transition: .3s ease-in-out;
}

.status-active {
    background-color: #e6ee00;

    &:before {
        background-color: #e6ee00;
    }

    &:after {
        background-color: #e6ee00;
    }
}

.status-inactive {
    background-color: #858585;
}

.status-collision {
    background-color: #d91414;
    color: white;

    &:before {
        background-color: #d91414;
    }

    &:after {
        background-color: #d91414;
    }
}

.status-active.pulse, .status-collision.pulse {
    position: relative;
    
    &:before {
        content: '';
        position: absolute;
        display: block;
        width: 300%;
        height: 300%;
        box-sizing: border-box;
        margin-left: -100%;
        margin-top: -100%;
        border-radius: 45px;
        animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    }
    
    &:after {
        content: '';
        position: absolute;
        left: 0; 
        top: 0;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        box-shadow: 0 0 8px rgba(0,0,0,.3);
        animation: pulse-dot 2.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite;;
    }
}

@keyframes pulse-ring {
  0% {
    transform: scale(.33);
  }
  80%, 100% {
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(.8);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(.8);
  }
}

.site-building {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 60px;
    height: 50px;
    transition: .3s ease-in-out;
}

.site-building > a {
    text-decoration: none;
    text-wrap: nowrap;
    color: black;
    background-color: rgba(229, 229, 229, 0.8);
    border-radius: .5em;
    padding: .5em;
    margin-bottom: .5em;

    transition: .3s ease-in-out;
}

.site-building > a:hover {
    background-color: rgba(196, 196, 196, 0.8);
}

.popup {
    position: fixed;
    z-index: 1000;
    display: none;

    background-color: rgba(0, 0, 0, .2);

    inset: 0;

    transition: .3s ease-in-out;

    #bp-sites, #bp-buildings, #bp-floors {
        display: none;
    }

    #bp-sites.active, #bp-buildings.active, #bp-floors.active {
        display: flex;
        flex-wrap: wrap;
    }

    .window {
        width: min(80vw, 800px);
        height: min(60vh, 600px);
        background-color: white;
        border-radius: 1em;
        padding: 1em;
    }

}

.popup.site-map {
    .window {
        max-width: 80vw;
        height: 80vh;

        display: flex;
        align-items: center;
        justify-content: center;

        .site-map-image {
            margin: 0;
            height: calc(80vh - 2em);
            width: fit-content;


            img {
                height: auto;
                max-height: calc(80vh - 2em);
                width: auto;
            }
        }
    }
}

.popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-button, .axis-button {
    border: none;
    background-color: #e5e5e5;
    padding: .5em;
    border-radius: .5em;
    transition: .3s ease-in-out;
}

.bp-button:hover, .axis-button:hover {
    background-color: #c4c4c4;
}



.link-button {
    text-decoration: none !important;
    color: #5d5d5d;
}

.link-button:hover {
    color: black;
}

.site-map-image {
    margin-left: 2em;
    width: 50%;
    position: relative;
}

.map-marker {
    width: 25px;
    height: 25px;
    position: absolute;
}

.bottom-buttons {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 80px;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
}

.home-logo {
    max-width: 60vw;
}

/* *, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: Black;
} */

.shape {
    margin: 0 auto;
    aspect-ratio: 1;
    position: relative;
    --width: 100%;
    --scale: 1;
    --opacity: 0.66;
    --top: 0;
    --left: 0;
    --path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    --background: linear-gradient(#1ebfc3, #096cfe);
    --offset: 0deg;
    --speed: 100000ms;
    clip-path: var(--path);
    background: var(--background);
    scale: var(--scale);
    opacity: var(--opacity);
    width: var(--width);
    top: var(--top);
    left: var(--left);
    rotate: var(--offset);
    mix-blend-mode: difference;
    animation: turn var(--speed) linear forwards infinite;
}
@keyframes turn {
    to {
        rotate: calc(var(--offset) + 1turn);
   }
}

.blur-container {
    --blur: 40px;
    filter: blur(var(--blur));
    height: 100vh;
    width: 100%;
    display: grid;
    overflow: hidden;

    position: fixed;
    inset: 0;
    z-index: -1;
}
.blur-container > * {
    grid-column: -1;
    grid-row: -1;
}

.logo-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 150px;
}