@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.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 {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .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 {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.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);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

@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) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}



/* ReSharper disable CssBrowserCompatibility */
.body {
    margin: 0;
}

h2 {
    font-size: 13px !important;
}

.header {
    background-image: url("/images/bg2.png");
    -ms-background-repeat: repeat;
    background-repeat: repeat;
    background-color: #dbdbdb;
    -ms-background-size: 70px 70px;
    background-size: 70px 70px;
    height: 40px;
}

.window-background {
    position: absolute;
    display: inline-block;
    -ms-opacity: 0.1;
    opacity: 0.1;
}

    .window-background img {
        width: 400px;
        position: fixed;
        bottom: 0;
        right: 0;
    }


.navbar-brand {
    position: relative;
    left: 10px;
    color: #999999 !important;
    color: rgba(153, 153, 153, 0.7) !important;
    top: 5.5px;
    font: 2.2em Helvetica, Arial, Sans-Serif;
    text-align: center;
    font-weight: bold;
    padding: 0 !important;
    margin-right: 45px;
    text-decoration: none;
    font-family: helvetica, sans-serif !important;
    float: left;
    line-height: 1.1em;
}

.logotype {
    width: 70px !important;
}

.navbar-brand-subtitle {
    position: absolute;
    top: 23px;
    left: 10px;
    width: 100px;
    float: left;
    font: 0.20em Avant Garde, Arial, sans-serif;
    color: #659ddf;
    text-align: left !important;
}

.otimo-background-image {
    width: auto;
    float: right;
    top: 100px;
    left: 3px;
    position: relative;
}


.app-name {
    position: relative;
    font-size: 12px;
    text-align: left;
    margin-left: 0;
    top: +0px;
    color: #03B6C8;
    text-shadow: 0.4px 0.4px 0 #ffffff, -0.4px -0.4px 0 #000000;
    text-shadow: 0.4px 0.4px 0 rgba(255,255,255,.5), -0.4px -0.4px 0 rgba(0,0,0,.5); /* 50% white from bottom */
}

.otimo-copyright {
    text-align: right;
    font-size: 7px;
    color: #47231B;
}

.otimo-background-image a {
    position: relative;
    top: 8px;
    left: 1.5px;
    z-index: 2;
}

    .otimo-background-image a img {
        width: 60px;
        top: 0px;
        height: auto;
        position: relative;
        -ms-opacity: 1;
        opacity: 1;
    }

.pasiva-webservice-text {
    margin-top: 190px;
    text-align: center;
    /*width: 100%;*/
    height: 100%;
    display: inline;
    line-height: 100%;
    font-size: 50px;
    color: #0000ff;
    color: rgba(0,0,255, 0.1);
    font-family: sans-serif;
}

.service-exception {
    font-family: sans-serif;
    font-size: 0.8em;
    color: darkred;
}

.content {
    margin: 5px;
    font-family: sans-serif;
    height: 100%;
    font-size: 0.6em;
}

table th {
    font-family: consolas;
}

table th {
    text-align: left;
}

    table th.time,
    table th.recieved,
    table th.returned {
        text-align: right;
    }


table td {
    padding: 3px;
    vertical-align: top;
    white-space: nowrap;
    vertical-align: top;
}

.subservice-name {
    color: darkslateblue;
    font-weight: bold;
}


.statistics_start-time {
    text-align: left;
    width: 150px;
}

.statistics-service-name {
    text-align: left;
}

.statistics-subservice-statustime {
    text-align: left;
    width: 100px;
}

.statistics-elapsed-time {
    text-align: right;
}

.statistics-recieved-bytes {
    text-align: right;
}

.statistics-returned-bytes {
    text-align: right;
}

.statistics-user-name {
    text-transform: uppercase;
    vertical-align: center;
    font-size: 75%;
    /*padding-top: 2px;*/
    color: darkblue;
    font-weight: bold;
}

.statistics-client-id {
    text-transform: uppercase;
    vertical-align: center;
    font-size: 70%;
    color: gray;
    font-weight: normal;
}


.statistics-exception-display {
    max-width: 600px;
    white-space: normal;
}

.warning-data-recieved, .warning-data-returned, .warning-elapsed-time {
    color: white;
    background-color: rgb(150,150,0);
    font-weight: bold;
}

.version {
    margin-left: 20px;
    font-family: monospace;
}
/* ReSharper restore CssBrowserCompatibility */

.service-running {
    background-color: #beffd2;
    border: 1px black solid;
}
