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

html, body {
    font-family: 'Segoe Ul', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
}


/* Egendefinert */
#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;
    }

.max-width-1900 {
    max-width: 1900px;
}

.max-width-1000 {
    max-width: 1000px;
}

.max-width-800 {
    max-width: 800px;
}

.max-width-600 {
    max-width: 600px;
}

.max-width-500 {
    max-width: 500px;
}

.max-width-450 {
    max-width: 450px;
}

.max-width-400 {
    max-width: 400px;
}

.max-width-300 {
    max-width: 300px;
}

.max-width-200 {
    max-width: 200px;
}

.max-height-400 {
    max-height: 400px;
}


.cursor-pointer {
    cursor: pointer;
}

.ms-group-empty {
    background-color: white;
}

.ms-group-data {
    background-color: beige;
}

.ms-font-80 {
    font-size: 80%;
}

.ms-font-blue {
    color: #1a73e8;
}


.ms-light-blue {
    background-color: #c4f5ff;
}

/*
.ms-blue {
    background-color: rgb(13, 35, 82);
}

.ms-blue-dark {
    background-color: rgb(19, 98, 174);
}

*/

.ms-main-box {
    background-color: #e9ecef;
}

.ms-status-message {
    background-color: gray;
    padding: 5px;
}


/* TABLE */
.ms-table {
    margin: 0 0 20px 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ms-row {
    background: #ffffff26;
}

    .ms-row:hover {
        background-color: #e9e9e9;        
    }

    /*
    .ms-row:nth-of-type(odd) {
        background: #e9e9e9;
    }
    */
    .ms-row.ms-header {
        font-weight: 700;
        font-size: 90%;
        color: #6c757d;
        background: #dee2e6;
        min-height:45px;
    }

    .ms-row.ms-green {
        background: #27ae60;
    }

    .ms-row.ms-blue {
        background: #2980b9;
    }

.ms-row-edit:hover {
    background-color: beige;
    cursor: pointer;
}

.ms-cell {
    padding: 6px 12px;
}

.ms-cell-compact {
    padding: 3px 12px;
}


/* CPRES reports */

.ms-pres-header1 {
    position: sticky;
    top: 60px; /*below global top panel*/
    z-index: 20;
}

.ms-pres-footer {
}

.ms-pres-title {
    position: sticky;
    top: 105px; /*below global top panel*/
    z-index: 10;
}

.ms-pres-header2 {
}

.ms-pres-data {
}

.ms-pre {
    white-space: pre-wrap;    
}

/* TABLE */



.ms-hint p {
    margin-bottom: 0rem;
}

.ms-bi-large {
    font-size: 150%;
}

.ms-bi-xxl {
    font-size: 300%;
}

.ms-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: .25rem;
}


.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    /* 
        Set the fixed height of the footer here 
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    display: none;
    left: 0;
    height: 30px;
    width: 100%;
        Vertically center the text there
    line-height: 30px; 
    */
    background-color: lightyellow;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.ms-spinner-box {
    top: 40%;
    left: 0%;
    position: fixed;
    z-index: 1000;
    text-align: center;
    width: 100%;
}

.ms-spinner {
    width: 3rem;
    height: 3rem;
}


/* Egendefinert */

.custom-spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: fixed;
    z-index: 1000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}



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



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

.top-row {
    /*
        flexible height
        height: 3.5rem;
    */
    display: flex;
    align-items: center;
    z-index: 30;
}

.bottom-row {
    position: fixed;
    bottom: 0;
    color: #d7d7d7;
}

.main {
    flex: 1;
    background-color: #f7f7f7;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

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

.sidebar {
    background-image: linear-gradient(180deg, rgb(9 33 78) 0%, #3d408c 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 2.5rem;
    }

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

    .sidebar .nav-item {
        font-size: 1.1rem;
        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;
}

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

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

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar-width {
        width: 250px;
    }

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

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

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

    .sidebar .navbar-toggler {
        display: none;
    }

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