﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Elydium blue = #202F65 */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    overflow: hidden;
}

a, .btn-link {
    color: #0366d6;
}

.e-btn, .e-css.e-btn {
    margin: 4px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

.main .top-row {
    color: #d7d7d7;
    /*    background-color: rgba(0, 0, 66, 0.4);*/
    justify-content: flex-end;
}

.main .top-row > div {
    margin: 0.75rem;
    padding-right: 1.25rem;
}

body > app > div.main > div.content.px-4 {
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
}
    
.main .top-row .fa {
    top: -1px;
}

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

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

.sidebar {
    backdrop-filter: brightness(0.25);
    -webkit-backdrop-filter: brightness(0.25);
    background-color: rgba(0, 0, 66, 0.4);
}

.top-row {
    background-color: rgba(0, 0, 12, 0.90);
/*    background-color: rgba(0,0,0,0.4);*/
}

.navbar {
    flex-wrap: nowrap;
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.sidebar .navbar-brand-separator {
    font-size: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.25rem;
    color: #fff;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .fa {
    width: 2rem;
    font-size: 1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.sidebar .nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.mud-button-filled {
    background-color: rgba(0, 0, 66, 0.7) !important;
    color: ghostwhite !important;
}

.mud-button-outlined {
    color: ghostwhite !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.elydium-centred-horizontally {
    justify-content: center;
    display: flex;
    margin: 0 0.5rem 0 0.5rem;
}

.elydium-centred-vertically {
    display: flex;
    align-items: center;
}

.elydium-card.mud-paper {
    background: transparent;
    background-color: rgba(0, 0, 66, 0.4);
    border-color: #d7d7d7;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.elydium-card .mud-card-header {
    background: transparent;
    font-size: 1.6rem;
    color: #d7d7d7;
    font-weight: bold;
    line-height: 2rem;
}

.elydium-card .mud-card-content {
    margin: 1.5rem 0 1.5rem 0;
    background: transparent;
    color: #d7d7d7;
    font-size: 1.2rem;
}

.elydium-card a {
    color: #d7d7d7;
    text-decoration: none;
}

.elydium-card a:hover {
    color: #999;
    text-decoration: none;
}

.mud-expand-panel .fg-errors, .mud-expand-panel .fg-hard-errors {
    font-weight: bold;
    color: red;
    font-size: 1.1rem;
}

.mud-expand-panel .fg-warnings, .mud-expand-panel .fg-soft-errors {
    font-weight: bold;
    color: goldenrod;
    font-size: 1.1rem;
}

.mud-expand-panel .fg-recommendations {
    font-weight: bold;
    color: steelblue;
    font-size: 1.1rem;
}

.mud-expand-panel .bg-errors, .mud-expand-panel .bg-hard-errors {
    background-color: lightpink;
    margin: 0 0 0 0;
}

.mud-expand-panel .bg-warnings, .mud-expand-panel .bg-soft-errors {
    background-color: lightgoldenrodyellow;
    margin: 0 0 0 0;
}

.mud-expand-panel .bg-recommendations {
    background-color: lightsteelblue;
    margin: 0 0 0 0;
}

/*.elydium-card .e-card .e-card-header {
    background-color: rgba(0, 0, 66, 0.4);
}

.elydium-card .e-card .e-card-actions {
    background-color: rgba(0, 0, 66, 0.4);
}

.elydium-card .e-card .e-card-header .e-card-header-caption .e-card-header-title {
    font-size: 1.6rem;
    color: #d7d7d7;
    font-weight: bold;
    line-height: 2rem;
}

.elydium-card .e-card {
    margin: 1.5rem 0 1.5rem 0;
    background: transparent;
    border-color: #d7d7d7;
    border-radius: 5px;
}

.elydium-card .e-card .e-card-content {
    background-color: rgba(0, 0, 66, 0.4);
    color: #d7d7d7;
    font-size: 1.2rem;
}*/

.elydium-card-sub-heading {
    font-size: 0.9rem;
    color: rgb(203, 212, 255);
}

.elydium-card .e-card-content a {
    color: white
}

/*.elydium-card .e-card:active, .elydium-card .e-card:hover {
    background: transparent;
    border-color: #d7d7d7;
}
*/
.e-spinner-pane.elydium-spinner .e-spinner-inner .e-spin-material {
    stroke: #202F65; /* Elydium blue */
}

span.btn-text {
    padding: 0px 5px;
}

.left-margin-10px {
    margin-left: 10px;
}

.bg-img {
    padding: 0px;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.25);
    -webkit-filter: brightness(0.25);
    z-index: -1;
}

.view-properties-header {
    padding: 5px;
    /*margin: 5px;*/
    position: relative;
    top: 5px;
    width: 100%;
    text-align: center;
}

.view-properties-footer {
    /*padding: 5px;*/
    margin: 5px;
}

.view-properties-block {
    border: 1px solid #97b0f8; /* rgba(0, 0, 66, 0.4);*/
    padding: 5px;
    border-radius: 5px;
    border-collapse: separate;
    border-spacing: 0px;
    background-color: #d5ddf6; /* #C5CDD0;*/
    margin: 10px;
    font-size: 1.2em;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#map {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 779.98px) {

/*    
    .main .top-row:not(.auth) {
        display: none;
    }
*/

/*    
    html, body, app {
        height: max(100vh,100%);
    }
*/
    
    app {
        height: 100vh;
    }

    .main .top-row {
        background-color: rgba(0, 0, 66, 0.4); /* same as sidebar */
    }

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

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

    div.e-card-content ul.nav.flex-column {
        margin-left: 0.5rem;
    }

    .top-row {
        backdrop-filter: brightness(0.25);
        -webkit-backdrop-filter: brightness(0.25);
    }
}

@media (min-width: 780px) {

    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

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

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    div.e-card-content ul.nav.flex-column {
        margin-left: 3rem;
    }

    /* custom scrollbar - see https://dev.to/xtrp/how-to-create-a-beautiful-custom-scrollbar-for-your-site-in-plain-css-1mjg */
  /*  ::-webkit-scrollbar {
        width: 20px;
    }

    ::-webkit-scrollbar-track {
        background-color: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #d6dee1;
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: #a8bbbf;
    }*/
}
