﻿.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

header {
    --bb-violet-rgb: 112.520718,44.062154,249.437846;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(var(--bb-violet-rgb), 1), rgba(var(--bb-violet-rgb), 0.95));
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05), inset 0 -1px 0 rgba(0,0,0,.1);
    font-size: 1rem;
    transition: transform .3s ease;
}


.layout {
    --bb-layout-sidebar-banner-background: #702cf8;
}

    .layout .header {
        background: #7dbcea;
        color: #fff;
        height: 64px;
        padding: 0 50px;
        line-height: 64px;
    }

    .layout .side {
        display: flex;
        height: 100%;
        background: #3ba0e9;
        color: #fff;
    }

.layout-side .side {
    justify-content: center;
    align-items: center;
}

.layout-main .main {
    background: rgba(16, 142, 233, 1);
    color: #fff;
    min-height: 120px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.main {
    flex: 1;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.85);
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: #fff;
    }

header.navbar {
    font-size: 1rem;
}

header .nav-link img {
    height: 24px;
    width: auto;
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .nav-item {
    font-size: 0.875rem;
    padding-left: 6px;
}

    .sidebar .nav-item a {
        color: #444;
        border-radius: var(--bs-border-radius);
        display: flex;
        align-items: center;
        padding: .25rem 1.5rem;
        font-weight: 400;
    }

.sidebar .navbar {
    --bb-bg-navbar: #8548ff;
    background-color: var(--bb-bg-navbar);
}

.sidebar .sidebar-title {
    display: none;
}

.sidebar-text {
    font-weight: 700;
}


.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }


.menu .nav-link.nav-table {
    color: var(--bs-info);
    font-weight: bold;
}

    .menu .nav-link.nav-table:hover {
        color: unset;
    }


@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    :root {
        --bs-header-height: 50px;
        --bs-sidebar-width: 300px;
    }

    .header-img span {
        display: none;
    }

    header.navbar {
        position: sticky;
        top: 0;
        z-index: 1050;
        height: var(--bs-header-height);
    }

    .modal-open header.navbar {
        z-index: 1040;
    }

    .section {
        flex-direction: row;
        display: flex;
    }

    .sidebar {
        width: var(--bs-sidebar-width);
        height: calc(100vh);
        position: sticky;
        top: 0;
        border-right: solid 1px #c0c4cc;
        background-color: #f0f0f0;
        display: flex;
        flex-direction: column;
        margin-top: calc(var(--bs-header-height)*-1);
    }

        .sidebar .sidebar-content {
            height: calc(100vh - var(--bs-header-height));
        }

            .sidebar .sidebar-content.collapse {
                display: flex;
                flex-direction: column;
            }

        .sidebar .sidebar-title {
            height: 50px;
            display: flex;
            align-items: center;
            padding: 1rem;
            border-bottom: solid 1px #c0c4cc;
        }

        .sidebar .scroll {
            overflow-x: hidden;
            max-height: calc(100% - 36px);
            padding: 5px 0;
        }

            .sidebar .scroll .menu {
                width: var(--bs-sidebar-width);
            }

    .main {
        width: calc(100% - var(--bs-sidebar-width));
    }

        .main .top-row {
            position: sticky;
            top: 0;
        }

    .navbar-toggler {
        display: none;
    }

    .chart {
        max-width: 740px;
    }

        .chart .btn i + span {
            display: inline;
        }

    header.hide {
        transform: translate3d(0,calc(-100% - 2px),0);
    }

    .ms-learn {
        right: 1rem;
    }

    .coms-demo .card {
        cursor: pointer;
    }

    .header-img span {
        display: none;
    }

    .home-section {
        margin: 2rem;
    }

    .welcome-header {
        margin-top: 0;
        margin-bottom: 0;
    }

    .donate .barcode {
        width: 480px;
    }

    .footer-body {
        padding: 3rem;
        flex-direction: row;
    }

    .coms-search {
        top: 3rem;
    }

        .coms-search.hide {
            top: 0;
        }
}
