/* Minification failed. Returning unminified contents.
(901,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(910,21): run-time error CSS1039: Token not allowed after unary operator: '-kundo-knowledge-width'
(916,25): run-time error CSS1039: Token not allowed after unary operator: '-kundo-knowledge-width'
(923,25): run-time error CSS1039: Token not allowed after unary operator: '-kundo-knowledge-width'
 */
/* 
    2022-01-24
    A goal is to clean all CSS and put the remaining style in this CSS file.
    For generic styling based on Unleah Bootstrap it's better to implement it in Unleah CSS.
*/

.container-search-result {
    display: none;
    max-height: 256px;
    overflow-y: scroll;
    max-width: 256px;
    margin-top: -1px;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #dee2e6;
}

    .container-search-result span {
        padding: 0.25rem 0.5rem;
    }

    .container-search-result .search-result-item {
        padding: 0.25rem 0.5rem;
    }

        .container-search-result .search-result-item:hover {
            background-color: lightgrey;
            cursor: pointer;
        }

#manual-dropdown {
    width: 480px;
    max-width: calc(100% - 56px);
    max-height: calc(100% - 56px);
    overflow-y: auto;
    position: fixed !important;
    transform: translate(-100%, 56px) !important;
    left: 100% !important;
}

#manual-content img {
    max-width: 100%;
    height: auto;
}

#manual-content .card p {
    margin-bottom: 0.25rem;
}

    #manual-content .card p:last-child {
        margin-bottom: 0;
    }

html {
    overflow-x: hidden;
}

header {
    /*No further then 1050 since thats above modal/shadow*/
    z-index: 1050 !important;
}

#sidebutton-wrapper {
    z-index: 1046;
    height: calc(100% - 56px);
    width: 56px;
    position: fixed;
    display: flex;
    flex-direction: column;
    background: white;
    border-right: 1px solid rgba(0,0,0,0.2);
}

#main {
    margin-left: 56px;
    overflow-x: hidden;
    height: calc(100% - 30px);
    flex-grow: 1;
}

@media (max-width: 1200px) {
    #main {
        margin-right: 0px !important;
    }
}


/* Nested ids just to work with both on/off featureflag new layout */
#main #loadsearch {
    max-width: calc(100% - 56px);
    z-index: 1030;
}

#aside-right {
    top: 56px;
    right: 0;
    height: calc(100% - 56px);
    background: white;
    position: fixed;
    max-width: calc(100% - 54px);
    width: 400px;
    border-left: 1px solid #dee2e6;
    display: none;
}

@media (max-width: 1200px) {
    #aside-right {
        width: auto !important;
    }
}

@media (min-width: 1500px) {
    #aside-right {
        width: 500px;
    }
}

@media (min-width: 1600px) {
    #aside-right {
        width: 600px;
    }
}

#footer-two {
    margin-left: 56px;
    overflow-x: hidden;
}

#offcanvas-menu {
    margin-top: 56px;
    margin-left: 56px;
    max-width: calc(100% - 56px);
    transition: initial;
}

    #offcanvas-menu .dropdown-item.active, .dropdown-item:active {
        color: #174376;
        background-color: white;
        font-weight: bold;
        border-left: 4px solid #174376;
    }

        #offcanvas-menu .dropdown-item.active, .dropdown-item:active i {
            font-weight: bold;
        }

.dropdown-menu {
}

    .dropdown-menu li {
        position: relative;
    }

    .dropdown-menu > li:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-menu .dropdown-menu {
        position: absolute;
        left: calc(100% - 1px);
        display: none;
        top: -8%;
    }

#search-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.nav-tabs .nav-link {
    border: 0;
    border-radius: 0;
    color: #212529;
}

    .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
        color: #174376;
        background-color: white;
        font-weight: bold;
        border-bottom: 4px solid #174376;
    }


.active i {
    color: #174376 !important;
    font-weight: bold;
}

p {
    max-width: 1100px;
}

.cursor-pointer {
    cursor: pointer !important;
}

.formstandard {
    padding: 4px;
}

.table {
    width: 100% !important;
}

.alert-fixed-bottom-shadow {
    display: flex;
    align-items: center;
    right: 1rem !important;
    bottom: 0 !important;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

.fixed-bottom-right-shadow {
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1030;
}

.fh-mini-bs {
}

    .fh-mini-bs .form-control, .fh-mini-bs .form-select {
        height: auto;
        padding: 2px 4px !important;
        font-size: .875rem !important;
        min-height: 0;
    }

    .fh-mini-bs label {
        margin-bottom: 0 !important;
        font-size: .875rem !important;
        display: block;
        width: fit-content !important;
    }

    .fh-mini-bs textarea {
        max-width: initial !important;
        font-size: .875rem !important;
        padding: 4px !important;
        margin-bottom: .25rem !important;
    }

    .fh-mini-bs .btn-sm {
        padding: .25rem !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;
    }

        .fh-mini-bs .btn-sm i {
            font-size: .7rem !important;
        }


    .fh-mini-bs .input-group-text {
        height: auto !important;
        font-size: .875rem !important;
        line-height: 1 !important;
    }

input,
select,
textarea {
    max-width: 600px;
}

#attachment-section .custom-file-label {
    max-width: 600px !important;
}

    #attachment-section .custom-file-label::after {
        content: "Välj fil";
    }

#countStatus .spinner-border {
    height: 1.25rem !important;
    width: 1.25rem !important;
    border-width: .15rem !important;
}

.max-width-fit {
    max-width: fit-content !important;
    max-width: -webkit-fit-content !important;
    max-width: -moz-fit-content !important;
    max-width: -ms-fit-content !important;
    max-width: -o-fit-content !important;
}

.max-height-fit {
    max-height: fit-content !important;
    max-height: -webkit-fit-content !important;
    max-height: -moz-fit-content !important;
    max-height: -ms-fit-content !important;
    max-height: -o-fit-content !important;
}

#layout-header {
    background-color: #174376;
    z-index: 1040;
}

#layout-main {
    margin-top: 56px;
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
}

#layout-header .navbar-nav .active {
    font-weight: bold !important;
}

.numberinput {
    max-width: 111px !important;
}

.link ~ fieldset .numberinput {
    max-width: 56px !important;
}

.plusminus {
    display: block;
    font-size: medium;
    font-weight: normal;
    width: 20px;
}

.validation-summary-errors {
    color: #B94A48;
    font-weight: bold;
}

.validation-summary-valid {
    display: none;
}

/*färgade rader*/

.row-red {
    background-color: #ffa0a0 !important;
}

.row-green {
    background-color: #adffa0 !important;
}

.row-orange {
    background-color: #ffe075 !important;
}

.row-blue {
    background-color: #a0cdff !important;
}

.row-gray {
    background-color: #f4f4f4 !important;
}

.flikar {
    height: 22px;
    list-style-type: none;
    margin: 0 0 0 10px;
    padding: 0;
    width: 790px;
}

    .flikar input[type="submit"],
    .flikar input[type="button"] {
        background-image: url(images/flikflik.png);
        background-repeat: no-repeat;
        border: 0;
        color: Gray;
        cursor: pointer;
        display: inline;
        float: left;
        height: 22px;
        line-height: 22px;
        padding: 0 10px 0 30px;
    }

    .flikar form {
        float: left;
        margin: 0;
        padding: 0;
    }

    .flikar li {
        background-image: url(images/flik.jpg);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        display: inline;
        float: left;
    }

    .flikar a {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        color: Black;
        cursor: pointer;
        float: left;
        height: 22px;
        line-height: 22px;
        padding: 0 10px;
        text-decoration: none;
    }

        .flikar a:hover {
            color: #15467A;
            text-decoration: underline;
        }

        .flikar a > img {
            float: left;
            padding-top: 2px;
        }

.nohover:hover,
.nohover tr:hover {
    cursor: default;
    background-color: #fff !important;
    box-shadow: none !important;
}

.loadsearch .epost {
    position: relative;
    top: 50%;
}

.filter {
    margin: 0 0 0 12px;
    /*width: 795px;*/
}

    .filter input[type="checkbox"] {
        margin-top: 3px;
        padding: 0;
    }

    .filter select {
        /*
            height: 18px;
            margin-top: 3px;
            padding: 0;
        */
    }

    .filter span {
        float: left;
        margin: 0;
    }

        .filter span > span {
            display: block;
            float: left;
            font-weight: normal;
            height: 22px;
            padding: 0 4px 0 4px;
        }

        .filter span > label {
            background-image: url(images/flikflik.png);
            background-repeat: no-repeat;
            color: Gray;
            cursor: pointer;
            display: block;
            float: left;
            height: 22px;
            line-height: 22px;
            padding: 0 5px 0 25px;
            text-decoration: none;
            font-weight: 700;
            margin: 0;
        }

.nav-link i {
    color: #212529;
}

.papertop {
    /*width: 798px;*/
    background-image: url(images/papertop2.png);
    background-repeat: repeat-x;
    clear: both;
    min-height: 22px;
    margin: 0 0 12px 0;
    padding: 3px;
}

    .papertop input[type="button"] {
        padding-left: 1px;
        padding-right: 1px;
    }

    .papertop table {
        margin: 0;
        padding: 0;
        width: 100%
    }

        .papertop table > img {
            height: 18px;
            margin: 0;
            padding: 0;
            width: 19px;
        }

.form select {
    width: 220px;
}

.form div.row {
    height: 42px;
    width: 412px;
}

.form div.empty {
    height: 42px;
    width: 226px;
}

.form div.rubrik {
    font-size: large;
    font-weight: bold;
    width: 412px;
}

.link {
    background-color: #979797 !important;
    color: white !important;
    cursor: pointer;
    padding: 0 4px;
    margin-top: 4px;
}

    .link.accordion-button::after {
        filter: brightness(100);
    }

.form textarea {
    height: 100px;
    width: 430px;
}

/* Resultbox is used for a fake <datalist> */
.resultbox {
    background-color: White;
    border: 1px solid lightgrey;
    display: none;
    margin: -1px 0 0 0;
    overflow-y: scroll;
    max-height: 128px;
    padding: 5px;
    position: absolute;
    width: 200px;
    z-index: 1000;
}

    .resultbox div:hover {
        background-color: gray;
        cursor: pointer;
    }

/* Top    
----------------------------------------------------------*/

.rightTop {
    background-image: url(Images/top_bg.jpg);
    background-size: cover;
    background-position: center;
    /*display: block;*/
    /*float: right;*/
    /*height: 50px;*/
    /*margin: 0;
    padding: 0;*/
    /*text-align: right;*/
    /*width: 798px;*/
}

    .rightTop div {
        color: White;
        /*float: right;*/
        padding: 10px;
    }

    .rightTop form {
        margin: 0
    }

/** New stuff after Bootstrap */
body:not(:-moz-handler-blocked) input.btn {
    padding-bottom: 6px;
    padding-top: 6px;
}

footer {
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
    color: #808080;
}

.table-filter thead {
    background-color: #e7e7e7
}

.nowrap {
    white-space: nowrap
}

#smalllist table tbody tr.active {
    font-weight: bold
}

.table-hover tr {
    cursor: pointer;
}

#smalllist table tbody tr i {
    float: right;
    transform: translateY(0.25rem);
}

#smalllist table tbody tr:not(.active):hover i {
    opacity: 0.5
}

#smalllist table tbody tr:not(.active) i {
    opacity: 0.25
}

.social {
    opacity: 0.5
}

    .social:hover {
        opacity: 1
    }

html, body {
    color: black;
    margin: 0;
    min-height: 100vh;
}

/* Wrapper for page content to push down footer */
#wrap {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    /* Negative indent footer by it's height */
    margin: 0 auto -113px;
}

.footer, #push {
    height: 113px; /* .push must be the same height as .footer */
    padding-top: 8px;
}

.navbar .nav > li > a {
    color: black
}

.ajaxexpand {
    cursor: pointer
}
/* Needed for Safari on iPad to trigger touch events */

.required::after {
    color: #dc3545;
    content: "*";
    padding-left: 5px;
}

/* Utilities */
.text-center {
    text-align: center !important
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

/* Horizontally and vertically centered images */
.flex-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: white;
    background-image: none;
    /*height: 92px;*/
}

.start-button-image {
    max-height: 30px;
    max-width: 30px;
    margin-right: 4px;
}

.external-link-icon {
    transform: rotate(45deg);
    opacity: 0.35;
}

.start-button {
    margin-right: 6px;
}

.margin-y {
    margin-top: 8px;
    margin-bottom: 8px;
}

.color-white {
    color: white;
}

.display-none {
    display: none;
}

.alert-fixed-top,
.alert-fixed-bottom {
    position: fixed;
    right: 20px;
    z-index: 3000;
}

.alert-fixed-top {
    top: 60px;
}

.alert-fixed-bottom {
    bottom: 20px;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

/* Spinner */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.loadsearch {
    display: none;
    width: 100%;
    left: 0;
    bottom: 0;
    position: absolute;
    transform: translateY(100%);
    border-radius: 0;
    z-index: 99;
}

    .loadsearch .bar {
        width: 100%;
    }

.table th {
    border-top: none;
}

.field-validation-error {
    color: #b94a48;
}

/*Invoice*/

.invoice-detail-cell {
    padding: 0 !important;
    background-color: white !important;
    box-shadow: none !important;
}

    .invoice-detail-cell thead {
        background-color: white !important;
    }

.invoice-detail {
    padding: 20px 20px 30px 20px;
    background-color: #f5f5f5;
}

.invoice-latest-row {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

    .invoice-latest-row [class*="span"] {
        min-height: 0;
    }

    .invoice-latest-row:last-of-type {
        border-bottom: none;
    }

    .invoice-latest-row form {
        margin-bottom: 0;
    }

.invoice-detail-header {
    margin-bottom: 0;
}

.invoice-form {
    margin-bottom: 0;
}

    .invoice-form input,
    .invoice-form select {
        width: 100%;
        margin-bottom: 0;
    }

.invoice-save {
    padding-top: 24px;
    text-align: right;
}

.table-invoice tbody tr {
    cursor: pointer;
}

.invoice-form .field-validation-error {
    display: inline-block;
    margin-top: 6px;
}

.invoice-expanded {
    background-color: #f5f5f5;
}

/*Add red border stop invalid inputs also when not focused*/
.input-validation-error {
    border-color: #e9322d !important;
    -webkit-box-shadow: 0 0 6px #f8b9b7 !important;
    -moz-box-shadow: 0 0 6px #f8b9b7 !important;
    box-shadow: 0 0 6px #f8b9b7 !important;
    color: #b94a48 !important;
}

.event-number-input {
    max-width: 80px;
}

.event-description {
    height: 400px;
}

.event-submit-button {
    margin-right: 8px;
}

.event-form .input-validation-error {
    margin-bottom: 4px !important;
}

.event-form .field-validation-error {
    display: block;
    margin-bottom: 8px;
}

.invoice-detail-info {
    margin-bottom: 16px;
}


@media (min-width: 576px) {
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
}

/*
    Chat base adjustments
*/

:root {
    --kundo-knowledge-width: 105px;
}

#start-kundo-chat,
#kundo_chat_frame {
    right: auto !important;
}

#start-kundo-chat {
    left: calc(var(--kundo-knowledge-width) + 16px) !important;
}

@media(min-width: 768px) {
    #start-kundo-chat,
    #kundo_chat_frame {
        left: calc(var(--kundo-knowledge-width) + 2rem) !important;
    }
}

@media(min-width: 1200px) {
    #start-kundo-chat,
    #kundo_chat_frame {
        left: calc(var(--kundo-knowledge-width) + 3rem) !important;
    }
}


/*
    Knowledge adjustments
*/

@media (min-width: 336px) {
    .kundo-knowledge-widget__iframe-wrapper--expand {
        width: calc(100vw - 32px) !important;
    }
}

/*
    Knowledge adjustments after Kundo-Chat added
*/

.kundo-knowledge-widget__iframe-wrapper {
    z-index: 10001 !important;
}

