﻿.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1;
}

.sidebar .iconmoon {
    color: black !important;
}

.top-row {
    background-color: var(--rio-grey);
    border: none;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.bottom-row {
    background-color: var(--rio-green);
    vertical-align: middle;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    bottom: 0;
}

.bottom-row div {
    text-align: center;
    vertical-align: middle;
    font-size: 0.75rem;
    color: #000;
}

.top-row-header-title {
    display: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 1.25em;
}

.top-row a, .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item .nav-link {
    color: black !important;
}

.toolbar-row {
    background-color: var(--rio-green);
    border-bottom: none;
    height: 5rem;
    display: flex;
    align-items: center;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item .nav-link {
    color: black !important;
}

.icon-title-wrap {
    padding-left: 10px;
    white-space: nowrap;
}

.top-row {
    height: 4.5rem;
}

.sidebar-header-title {
    /*display: none;*/
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.top-row, .sidebar {
    background: var(--rio-grey) !important;
    border: none;
}

.navbar-brand {
    font-size: 1.1rem;
}

.oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    display: contents;
    top: -2px;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
     background-color: rgba(255, 255, 255, 0.25);
     color: white;
}

.nav-item a:hover {
     background-color: rgba(255, 255, 255, 0.1);
     color: white;
}

.file-drop-zone {
    display: flex;
    width: 100%;
    height: 100px;
    border: 3px dotted var(--rio-green);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    margin-bottom: 2px;
}

.hover {
    border-style: solid;
    background-color: #f3f3f3;
}

.floating-update-button {
    position: fixed;
    right: 2rem;
    top: 2rem;
    padding: 1rem 1.5rem;
    animation: fadein 2s ease-out;
}

@keyframes fadein {
    from {
        right: -100%;
    }

    to {
        right: 2rem;
    }
}

.full-drop-input {
    width: 100%;
    height: 100%;
    padding: 20px;
    opacity: 0;
    cursor: pointer;
    position: absolute;
}

@media (min-width: 390px) and (max-width: 512px) {
    .sidebar {
        max-height: 100vh;
        overflow-y: auto;
    }

    .bottom-row {
        width: 100vw;
        height: 1.5rem;
        z-index: 3;
    }

    .navbar-dark .navbar-brand {
        color: black !important;
    }

    .navbar-toggler {
        background-color: var(--rio-red);
    }

    nav.k-widget.k-breadcrumb.k-breadcrumb-wrap {
        display: none;
    }

    .media {
        display: none;
    }

    .nav-item a {
        color: black !important;
    }

    .nav-item a.active {
        color: var(--status-completed) !important;
    }

    .nav-item a:hover {
        color: var(--status-completed) !important;
    }
}

@media (max-width: 640.98px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 100px;
        height: auto;
        position: sticky;
        background-color: var(--rio-grey) !important;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .bottom-row {
        position: sticky;
        bottom: 0;
        z-index: 3;
    }

    .top-row-header-title {
        display: block;
    }

    .main > div {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
    }

    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar-header-title {
        display: none;
    }

    .top-row {
        height: 3.5rem;
    }

    .sidebar {
        max-height: 100vh;
        overflow-y: auto;
        width: 100px;
        height: auto;
        position: sticky;
        background-color: var(--rio-grey) !important;
        top: 0;
    }

    .icon-title-wrap {
        white-space: nowrap;
        display: none;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .bottom-row {
        position: sticky;
        bottom: 0;
        z-index: 3;
    }

    .top-row-header-title {
        display: block;
    }

    .main > div {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
    }

    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }

    .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block !important;
    }
}
