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

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

body {
    background-image: url("/images/background_crop.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;

}

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: rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.0);
    justify-content: flex-end;
}

.main .top-row > a {
    margin-left: 1.5rem;
}

.sidebar {
    background-image: linear-gradient(180deg, rgba(255, 112, 0, 0.90) 0%, rgba(223, 126, 50, 0.60) 90%);
    border-right: solid 1px rgba(100,100,100,0.7);
}

.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;
}

.nav-item {
    font-size: 0.9rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

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

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

.nav-item a {
    color: #d7d7d7;
    border: 1px solid rgba(100,100,100,0.2);
    border-radius: 0.4rem;
    box-shadow: 5px 10px 5px rgba(136, 136, 136, 0.27);
    background-color: rgba(255, 112, 0, 0.97);
    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.3);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

.jumbotron {
    background: rgba(255, 253, 250, 0.98);
    box-shadow: 5px 10px 5px rgba(136, 136, 136, 0.27);
    border: 2px solid rgba(100,100,100,0.2);
    border-radius: 0.4rem;
}

.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;
}

a, h3, td, .tablerow > div {
    word-wrap: break-word;
}

.tablerow {
    margin-top: 5px;
    margin-bottom: 5px;
}

.col-2 > button {
    margin-left: 0px;
    max-width: 100%;
    overflow: hidden;
}

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

    .col-10 {
        max-width: 70%;
    }
}

@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;
    }
}
