﻿h1, h2, h3, h4, h5, h6 {
    margin-top: 1.2em;
    margin-bottom: 0.8em;
}

h1 {
    margin-top: 0;
}

.strong {
    font-family: "Arial Black";
}

.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6,
.card-header .h1, .card-header .h2, .card-header .h3, .card-header .h4, .card-header .h5, .card-header .h6 {
    margin-top: 0;
    margin-bottom: 0;
}

.color-background a {
    color: white !important;
}

.color-background-inactive {
    opacity: 0.5;
    color: black;
    cursor: not-allowed;
}

.color-background-psy-green {
    color: white !important;
    background-color: #3EA743;
}

.color-background-reha-orange {
    color: white !important;
    background-color: #EB690B;
}

.color-background-akut-blue {
    color: white !important;
    background-color: #009EE0;
}


header {
    min-height: 80px;
}

main {
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}

    main.login-layout {
        max-width: 800px;
        min-width: 540px;
    }

.full-width {
    width: 100%;
}

.align-right {
    text-align: right;
}

.align-left {
    text-align: left;
}

/* class to apply to the actual page content */
.content-spacing {
    padding-top: 60px;
    padding-bottom: 120px;
}

.fit {
    width: 100%;
}

#nav-logo {
    height: 60px;
    margin-right: 4px;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 10px;
}

.navbar-collapse {
    padding: 20px;
}

nav.secondary-navigation {
    width: 100%;
    padding-top: 80px;
}

    nav.secondary-navigation .breadcrumb {
        justify-content: center;
        margin-bottom: 0;
    }

    nav.secondary-navigation .breadcrumb-item a {
        color: inherit;
    }

    nav.secondary-navigation .breadcrumb-item.active a {
        font-weight: bolder;
        color: #005F96;
    }


.login-form {
    margin: 80px 40px;
}

    .login-form h3 {
        margin-top: 0;
        margin-bottom: 0;
    }

    .login-form .title {
        margin-top: 55px;
    }

    .login-form .login {
        margin-top: 80px;
    }

    .login-form .btn {
        min-width: 160px;
    }


.btn.disabled, .btn:disabled {
    /* disabling the pointer-events makes the bootstrap tooltip work */
    pointer-events: none;
}

.h1-with-right-span {
    display: flex;
    justify-content: space-between;
}

    .h1-with-right-span > span {
        margin-left: 0.6em;
    }

div.div-with-badges {
    /* use flexbox to right-align the badges */
    display: flex;
    justify-content: space-between;
}

    div.div-with-badges > span.badges {
        margin-left: 0.6em;
        margin-bottom: 0.2em;
    }

.fa-add-margin-top-and-bottom {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

footer {
    z-index: 999;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px;
    line-height: 40px;
}

/* Sidebar styling */

.sidebar-layout-main .sidebar-wrapper {
    /* whole screen height minus space taken up by header and footer */
    height: calc(100vh - 120px);
    /* scroll in the sidebar when height of content is higher  */
    overflow-y: auto;
    /* put it to the left of the screen. margin is set to 0 when the sidebar is toggled, see below */
    margin-left: -35rem;
    width: 35rem;
    /* transition for toggling the sidebar */
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
}

.sidebar-layout-main.has-additional-navigation .sidebar-wrapper {
    /* take 48px more into account for the additional navigation */
    height: calc(100vh - 168px);
}

.sidebar-layout-main.toggled .sidebar-wrapper {
    /* when toggled: put it onto the screen */
    margin-left: 0;
}

.sidebar-layout-main .outer-content-wrapper {
    /* wrapper takes up all the space */
    width: 100%;
    /* scroll in the sidebar when height of content is higher  */
    overflow-y: auto;
    /* for some weird reason, the height magically can become higher than the inner div (inner-content-wrapper) so here we set the height the same as the inner-content-wrapper */
    height: calc(100vh - 120px);
}

.sidebar-layout-main.has-additional-navigation .outer-content-wrapper {
    /* take 48px more into account for the additional navigation */
    height: calc(100vh - 168px);
}

.sidebar-layout-main .outer-content-wrapper .inner-content-wrapper {
    /* provide space so the toggle button is visible */
    padding-left: 50px;
    /* a little space to the right */
    padding-right: 10px;
    /* take up a whole viewport width of space (so line breaks etc. are not rerendered when sidebar is faded in) */
    min-width: 100vw;
    /* whole screen height minus space taken up by header and footer */
    height: calc(100vh - 120px);
}

    .sidebar-layout-main .outer-content-wrapper .inner-content-wrapper > div {
        max-width: 1140px;
    }

.sidebar-layout-main .toggle-button {
    cursor: pointer;
    border: solid 2px #6c757d;
    border-radius: .25rem;
    color: #6c757d;
    padding: 2px 8px;
    position: absolute;
    background: white;
    margin-top: 68px;
    margin-left: -32px;
}

    .sidebar-layout-main .toggle-button:before {
        font-family: FontAwesome;
        content: "\f053"; /* arrow left */
    }

.sidebar-layout-main.toggled .toggle-button:before {
    content: "\f054"; /* arrow right */
}

@media (min-width: 768px) {

    .sidebar-layout-main .sidebar-wrapper {
        /* on big screens: show the sidebar by default and toggle to hide, see below */
        margin-left: 0;
    }

    .sidebar-layout-main.toggled .sidebar-wrapper {
        /* when toggled: put it to the left of the screen */
        margin-left: -35rem;
    }

    .sidebar-layout-main .outer-content-wrapper .inner-content-wrapper {
        /* override the min-width being 100vw: content does only take up the space that is provided */
        min-width: 0;
    }

    /* switch the arrows since the sidebar is now shown by default */
    .sidebar-layout-main.toggled .toggle-button:before {
        content: "\f053"; /* arrow left */
    }

    .sidebar-layout-main .toggle-button:before {
        content: "\f054"; /* arrow right */
    }
}

.sidebar {
    padding: 20px 0 20px 0;
    height: 100%;
    border-right: 1px solid #dee2e6 !important;
}

    .sidebar .sidebar-menu {
        margin-left: 18px;
        margin-right: 18px;
        padding-bottom: 20px;
    }

        .sidebar .sidebar-menu .title {
            margin-top: 20px;
            text-align: center;
        }

        .sidebar .sidebar-menu .sidebar-actions {
            margin-top: 20px;
        }

    .sidebar a:not(.btn) {
        color: black;
    }

    .sidebar .active, .sidebar .active a {
        color: #007bff;
    }

    .sidebar li.navigation-item {
        padding: 12px 20px;
        border-top: 1px solid #dee2e6 !important;
        background: #f5f5f5;
    }

        .sidebar li.navigation-item:last-child {
            border-bottom: 1px solid #dee2e6 !important;
        }

        .sidebar li.navigation-item:hover {
            background: #d8d8d8;
        }

        .sidebar li.navigation-item > a {
            font-family: "Arial Black";
        }

.service-range-navigation > li.active {
    padding: 12px 0;
}

.service-group-navigation li {
    padding-left: 10px;
}

.service-group-navigation a {
    cursor: pointer;
}

/* Questionnaire styling */

input[type="file"] {
    width: 100%;
}

.multiline-text span {
    white-space: pre-line;
}

.questionnaire .question label {
    margin-bottom: 0;
}

    .questionnaire .question label.question-label {
        margin-bottom: 0.2em;
    }


.questionnaire .question .question-input-wrapper, .questionnaire .question .comment-wrapper {
    padding: 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

.questionnaire .question .form-check {
    padding-left: 1.35rem !important;
}

.questionnaire .question h5, .questionnaire .question h6 {
    margin-top: 2.4em;
    margin-bottom: 1.2em;
}

.questionnaire .question .btn-add-element {
    margin-top: 6px;
}

.question-visibility-target input.invisible {
    visibility: visible !important;
    opacity: 0;
    height: 0;
    width: 0;
    display: block;
}

.comment-wrapper {
    margin-bottom: .25rem;
}

.comment-title {
    font-weight: bold;
}

.comment-card {
    margin-bottom: .25rem;
    width: 80%;
    float: left;
}

    .comment-card.comment-card-current-user {
        float: right;
    }

.comment-author {
    font-weight: bold;
}

a.inactive {
    pointer-events: none;
    color: gray;
}

.fa-stack-2x {
    font-size: 2em;
    width: inherit !important;
    height: inherit !important;
}
