html,
body,
.main,
.sidebar,
#app {
    height: 100%;
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;
}

#app {
    position: relative;

    flex: 1;

    background-color: #f6f6f3;
}

#app.loading > .loader {
    display: block;
}

.main {
    display: flex;
}

.sidebar {
    display: flex;
    flex-direction: column;

    width: 190px;
    padding: 10px;

    font-size: 14px;

    a {
        padding: 10px;

        text-decoration: none;

        color: #6f8196;
    }

    a.active,
    a:hover {
        background: #0000000d;
    }

    a.active {
        color: #00ade6;
    }
}

.loader {
    position: absolute;
    z-index: 1200;
    top: 50%;
    left: 50%;

    display: none;

    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;

    border: 5px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;

    animation: rotation 1s linear infinite;
}

#app.loading {
    opacity: 0.5;
    background-color: #f6f6f3;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#options {
    position: absolute;
    z-index: 1000;
    top: 10px;
    right: 10px;

    width: 344px;
    max-height: 96%;
    margin: 24px;
    padding: 10px 24px;

    font-size: 14px;

    color: #2b3848;
    outline: none;
    background: #fff;
    box-shadow: 0 1px 2px 0 #0000001a;

    h3 {
        margin: 10px 0;
    }

    .legends {
        padding: 10px 0;

        .threshold {
            display: table;

            width: 100%;

            .legend {
                display: inline-block;

                width: 12px;
                height: 12px;

                vertical-align: middle;
                white-space: nowrap;
            }
        }

        .threshold-layout {
            display: flex;
            justify-content: space-between;

            margin: 5px 0;
        }
    }

    .manager {
        display: flex;
        flex-direction: column;

        &::before {
            display: block;

            width: calc(100% + 48px);
            height: 1px;
            margin: 10px -24px 20px;

            content: '';

            background: #0000001a;
        }

        .form-control {
            display: flex;
            justify-content: space-between;

            margin-bottom: 10px;
        }
    }

    .data-source {
        a {
            color: #00ade6;
        }
    }

    .data-counts {
        display: flex;
        justify-content: space-between;

        margin-top: 10px;
        padding-top: 10px;

        .title {
            font-size: 0.833em;
            font-weight: 200;
            text-transform: uppercase;
        }

        .value {
            display: block;

            font-size: 3em;
            font-weight: bold;
            line-height: 1.833;
        }
    }

    .copyright {
        padding: 10px 0;

        text-align: right;

        a {
            text-decoration: none;

            color: #525860;

            &:hover {
                text-decoration: underline;

                color: #00ade6;
            }
        }
    }
}

.tooltip {
    position: absolute;
    z-index: 5000;

    padding: 10px;

    color: #fff;
    border-radius: 4px;
    background: #1d1e1f;
}

@media screen and (max-width: 900px) {
    #options {
        top: 0;
        right: 0;

        width: 200px;
        margin: 4px;
        padding: 8px 10px;

        font-size: 12px;

        .manager {
            &::before {
                margin: 5px -24px 10px;
            }
        }

        .data-counts {
            .value {
                font-size: 2em;
            }
        }
    }
}

.debug_circle {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background-color: #f00;

    transform: translate(-50%, -50%);
}

.debug_circle.title {
    width: fit-content;
    height: auto;
    padding: 5px 10px;
}

