﻿span.fancytree-node.type-pdf > span.fancytree-icon {
    background-image: url('../Fancytree/icons/page_white_acrobat.png') !important;
}

span.fancytree-node.type-jpg > span.fancytree-icon, span.fancytree-node.type-jpeg > span.fancytree-icon, span.fancytree-node.type-png > span.fancytree-icon {
    background-image: url('../Fancytree/icons/image.png') !important;
}

span.fancytree-node.type-doc > span.fancytree-icon, span.fancytree-node.type-docx > span.fancytree-icon {
    background-image: url('../Fancytree/icons/page_white_word.png') !important;
}

span.fancytree-node.type-xlsx > span.fancytree-icon, span.fancytree-node.type-xls > span.fancytree-icon {
    background-image: url('../Fancytree/icons/page_white_excel.png') !important;
}

span.fancytree-node.type-ppt > span.fancytree-icon, span.fancytree-node.type-pptx > span.fancytree-icon {
    background-image: url('../Fancytree/icons/page_white_powerpoint.png') !important;
}


.lb-closeContainer {
    z-index: 1000;
    width: 100%;
    background-color: white;
    height: 50px;
    position: absolute;
    top: -50px;
}
.lb-closeContainer .lb-close {
    top: 0 !important;
    right: 0;
    background: white !important;
    height: 50px;
    width: 50px;
    border-radius: 0 5px 5px 0;
}

.lb-closeContainer .lb-close i.fa.fa-times {
    margin-top: 5px;
}

.block__linklist > ul {
    width: 100% !important;
}

ul:focus {
    outline: none;
}

.fancytree-node {
    display: inline !important;
}

.fancytree-container {
    min-height: 10px;
    background: red;
    overflow: auto;
}

.fancytree-container > li {
    float: left;
    clear: both;
}

.lb-closeContainer .lb-close .fa-times {
    text-shadow: none !important;
}

.lb-dataContainer .lb-details .lb-caption {
    width: 35%;
    left: 34%;
}

.fancytree-ico-c span.fancytree-icon:hover {
    background-position: inherit;
}

span.fancytree-title {
    color: #005864 !important;
    border-bottom: none !important;
}

span.fancytree-node:hover span.fancytree-title {
    color: #FFF !important;
    background: #005864 !important;
    border-bottom-color: #005864 !important;
}

span.fancytree-icon {
    cursor: pointer;
}

.fancytree-exp-e span.fancytree-expander, .fancytree-exp-ed span.fancytree-expander {
    transform: rotate(45deg);
}

    .fancytree-exp-e span.fancytree-expander:hover, .fancytree-exp-ed span.fancytree-expander:hover {
        background-position: -32px -80px;
    }

.fancytree-exp-c span.fancytree-expander:hover {
    background-position: 0px -80px;
}

.hideme {
    display: none;
}

.sh-content-holder {
    border: 1px solid #b5b5b5;
    padding: 20px 20px 5px 20px;
    margin-bottom: 20px;
}

.sh-content-holder-altbgcol {
    background-color: #e6f4fb;
}

.sh-content-header {
    cursor: pointer;
}

.sh-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}

.sh-content-faded {
    padding-top: 0px;
    max-height: 36px;
    overflow: hidden;
    transition: .4s ease-out;
    background-image: linear-gradient(180deg,#000000 0%,rgba(0,0,0,0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sh-content-faded-show {
    padding-top: 7px;
    -webkit-text-fill-color: inherit !important;
    transition: .4s ease-in;
}

.sh-content-nofade {
    padding-top: 0px;
    max-height: 36px;
    overflow: hidden;
    transition: .4s ease-out;
}

.sh-content-nofade-show {
    padding-top: 7px;
    transition: .4s ease-in;
}

.sh-content-arrow-holder {
    cursor: pointer;
    background-color: white;
    border: 1px solid #b5b5b5;
    border-radius: 50%;
    padding: 11px;
    width: 34px;
    position: relative;
    display: flex;
    margin: 0 auto;
    top: -37px;
    /*left: 46%;
      align-self: baseline;*/
}

.sh-content-arrow {
    position: relative;
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    left: 1px;
}

.arrowup {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    top: 2px;
}

.arrowdown {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: -1px;
}

.popoverextra {
    /*background-color: rgba(128, 128, 128, 0.2);
    padding: 5px;
    border-radius: .5em;*/
    cursor: pointer;
    border-bottom: 1px dashed #005864;
}

.popoverextra:after {
        content: '\f05a';
        font-family: FontAwesome;
        font-weight: normal;
        font-style: normal;
        margin: 0px 0px 0px 5px;
        color: #005864;
}

.popover {
    background-color: white;
    border: 1px solid #005864;
}

.popover-header {
    background-color: white;
    border-bottom: none;
}

.popover-header:after {
    content: '\f00d';
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    float: right;
    color: inherit;
    cursor: pointer;
}

.popover-body {
    
}

.lawstyle p {
    line-height: 1.5;
}


.container, .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
    margin: 0 auto;
    position: relative;
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}



.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #000;
}

/* Stopp scrolling når modal er åpen */
body.modal-open {
    overflow: hidden;
}

/* Animasjoner */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(0);
    }
}

.modal {
    animation: modalFadeIn 0.3s ease-in-out;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-in-out;
} 

dialog {
    display: none
}

    dialog::backdrop, dialog + .backdrop {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: #000;
        background: rgba(0,0,0,0.45);
        z-index: auto;
        display: none;
        left: 0
    }

    dialog[open] {
        display: block
    }

@media print {
    dialog, .reveal-modal, dialog {
        display: none;
        background: #fff !important
    }
}

#cookie-consent-modal {
    position: fixed
}

@media print {
    #cookie-consent-modal {
        display: none !important
    }
}

@media only screen and (max-width: 40.063em) {
    #cookie-consent-modal {
        min-width: 100%;
        height: 100%;
        overflow: auto
    }
}

@media only screen and (min-width: 40.063em) {
    #cookie-consent-modal {
        min-width: 600px !important
    }
}

#cookie-consent-modal .cookie-consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    padding-top: 5px;
}

#cookie-consent-modal .cookie-consent-modal-header h2 {
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

#cookie-consent-modal .cookie-consent-modal-header .close-button {
    font-size: 32px;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 5;
}

#cookie-consent-modal .cookie-consent-modal-description > p {
    margin-bottom: 0;
}

#cookie-consent-modal .cookie-consent-language-switcher {
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    line-height: 1;
    position: static;
    margin-bottom: 1rem;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    font-style: normal;
    font-weight: 700;
}

#cookie-consent-modal .cookie-consent-modal-title {
    margin-bottom: 24px
}

#cookie-consent-modal .cookie-consent-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

#cookie-consent-modal .cookie-consent-actions .button {
    flex: 1;
    margin-bottom: 0;
    /*transition: all 0.3s ease;*/
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

    #cookie-consent-modal .cookie-consent-actions .button.secondary {
        border: 2px solid #1D1D20;
        color: #1D1D20;
        background-color: #ffffff;
    }

    #cookie-consent-modal .cookie-consent-actions .button.primary {
        background-color: #1D1D20;
        color: #ffffff;
        border: 2px solid #1D1D20;
    }

        #cookie-consent-modal .cookie-consent-actions .button.primary:hover {
            background-color: #005864;
            border-color: #005864;
            /*transform: translateY(-1px);*/
            /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
        }

    #cookie-consent-modal .cookie-consent-actions .button.secondary:hover {
        background-color: #005864;
        color: #fff;
        border-color: #005864;
        /*transform: translateY(-1px);*/
        /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    }

.iframe-consent-overlay {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
    text-align: center;
    padding: .5rem 0 .5rem 0;
    border: 1px solid #1D1D20;
}

.iframe-consent-overlay + iframe {
    height: 0 !important;
}

.iframe-consent-overlay a {
    width: 96%;
    text-decoration: underline;
    border: none;
}
    .iframe-consent-overlay a:hover {
        color: #fff;
        background-color: #005864;
        text-decoration: none;
    }

.embed-responsive-16by9:has(> .iframe-consent-overlay)::before {
    padding-top: .5rem!important;
}

.max1800 {
    max-width: 1620px;
    width: 100%;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

.fullwidthstyle {
    width: 100%;
    max-width: 100%;
    flex: auto;
}
.fullwidthstyle .article {
    max-width: 100%!important;
}

p + ul {
    margin-top: -10px;
}