@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    overflow-x: hidden;
    color: #797979;
    font-size: 15px;
    background-color: #e0f0f5;
}

html {
    position: relative;
    min-height: 100%;
}

h3 {
    color: #264d81;
    text-decoration: underline;
}

a, .btn-link {
    color: #0366d6;
}

i {
    color: #264d81;
}

    i.light {
        color: #ffffff;
    }

.btn-primary {
    background-color: #294d7e;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 10px 30px;
    border: none;
    height: 39px;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: #102c52;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 14px 26px -12px rgba(33, 150, 243, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(33, 150, 243, 0.2);
    }

    .btn-primary:focus {
        background-color: #102c52;
    }

.btn-secondary {
    background-color: #666;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 8px 30px;
}

    .btn-secondary:hover {
        background-color: #333;
        text-decoration: none;
        box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(33, 150, 243, 0.2);
    }

    .btn-secondary:focus {
        background-color: #333;
    }

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 5rem;
    display: flex;
    align-items: center;
}

    .top-row.navbar {
        padding: 0 0 0 1rem;
    }

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #ffffff;
        border-bottom: 0 solid #e2e2e2;
        justify-content: flex-end;
        box-shadow: 0 2px 4px -4px rgba(0, 0, 0, 0.08);
    }

        .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: #102c52;
    box-shadow: 2px 10px 30px 0 #d5e7ff, 0 4px 17px 0 #5f6e84, 0 8px 10px -5px #161a1f;
    cursor: pointer;
}

    .sidebar .top-row {
        background-color: #ffffff;
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
        width: 100%;
        height: 100%;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-lvl-1 {
        height: 3rem;
        font-size: 1.2rem;
        border-bottom: solid 1px #EEEEEE;
        padding: 0;
        width: 100%;
    }

        .sidebar .nav-lvl-1 .nav-link {
            color: #EEEEEE;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
            transition: all 0.3s ease;
        }

            .sidebar .nav-lvl-1 .nav-link.active {
                background-color: #EEEEEE;
                color: #102c52;
            }

            .sidebar .nav-lvl-1 .nav-link:hover {
                background-color: #EEEEEE;
                color: #102c52;
            }

    .sidebar .nav-lvl-2 {
        font-size: 1rem;
        padding: 0;
        width: 100%;
    }

        .sidebar .nav-lvl-2 .nav-link {
            color: #EEEEEE;
            background-color: #102c52;
            height: 2rem;
            display: flex;
            align-items: center;
            line-height: 2rem;
            transition: all 0.3s ease;
        }

            .sidebar .nav-lvl-2 .nav-link.active {
                background-color: #EEEEEE;
                color: #102c52;
            }

            .sidebar .nav-lvl-2 .nav-link:hover {
                /*Ignore this error, visual studio is dumb CSS 4.0 supports Hex values with Alpha*/
                background-color: #EEEEEE;
                color: #102c52;
            }

.content {
    padding-top: 1.1rem;
    height: calc(100vh - 5rem);
}

.nav-bar {
    height:89%;
    overflow-y: scroll;
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

    .nav-bar ::-webkit-scrollbar {
        display: none; /*Google*/
    }

.navbar-toggler {
    margin-right: 1rem;
    position: fixed;
    /*TODO Add in support for Left and Right handed modes*/
    right: 10px;
}

.navbar-toggler-icon {
    color: #102c52;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


.logo-big {
    display: none;
}

.logo-small {
    height: 100%;
    display: block;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.form-control {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    border: solid 1px #ababab;
    color: #000;
    height: 40px;
    border-radius: 4px;
    box-shadow: none;
}

    .form-control:focus {
        box-shadow: none;
    }

    .form-control[readonly] {
        background-color: #fff;
    }

.search-block {
    margin-top: 6px;
    margin-bottom: 6px;
    position: relative;
    width: 250px;
    float: left;
    text-align: right;
}

    .search-block .form-control {
        border-radius: 25px;
        border: solid 2px #d6d9dd;
        padding-right: 37px;
        height: 36px;
    }

        .search-block .form-control:focus {
            border-color: #00b1e1 !important;
            box-shadow: none;
        }

    .search-block i {
        position: absolute;
        top: 10px;
        right: 13px;
        color: #d6d9dd;
    }

.pagingTables_info {
    border: solid 1px #ccc;
    padding: 0.375rem 0.75rem;
    font-size: 13px;
    color: #333333;
    display: inline-block;
    background-color: #fff;
}

.pagination-btn {
    border: solid 1px #ccc;
    border-radius: 0;
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    margin-left: 3px;
    font-size: 13px;
}

    .pagination-btn.active {
        border-color: #00b2e2;
        background-color: #00b2e2;
        color: #fff;
    }

.top-heading {
    width: 100%;
    padding: 4px 16px;
    float: left;
}

    .top-heading h1 {
        padding: 0 15px 15px 7px;
        color: #264d81;
        font-weight: 500;
        float: left;
    }

    .top-heading i {
        float: left;
        padding-top: 8px;
    }

.reportViewer{
    width: 90%;
    height: 90%;
    overflow-y: scroll;
}


#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;
    }

.action{
    font-size: 16px;
    padding: 4px;
}


@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;
    }
}





/*Rules for when the screen is larger than 768px*/
@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main {
        width: calc(100vh - 250px);
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .logo-big {
        height: 100%;
        display: block;
    }

    .logo-small {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
